Mention the changes.
[gnulib.git] / ChangeLog
1 2011-07-12  Bruno Haible  <bruno@clisp.org>
2
3         * NEWS: Mention the changes.
4
5         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7         (Files, Makefile.am): Update.
8         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9         * modules/arpa_inet (Depends-on): Update.
10         * modules/ctype (Depends-on): Update.
11         * modules/dirent (Depends-on): Update.
12         * modules/fcntl-h (Depends-on): Update.
13         * modules/glob (Depends-on): Update.
14         * modules/iconv-h (Depends-on): Update.
15         * modules/inttypes-incomplete (Depends-on): Update.
16         * modules/langinfo (Depends-on): Update.
17         * modules/locale (Depends-on): Update.
18         * modules/math (Depends-on): Update.
19         * modules/netdb (Depends-on): Update.
20         * modules/poll-h (Depends-on): Update.
21         * modules/pty (Depends-on): Update.
22         * modules/search (Depends-on): Update.
23         * modules/signal (Depends-on): Update.
24         * modules/spawn (Depends-on): Update.
25         * modules/stdio (Depends-on): Update.
26         * modules/stdlib (Depends-on): Update.
27         * modules/string (Depends-on): Update.
28         * modules/strings (Depends-on): Update.
29         * modules/sys_file (Depends-on): Update.
30         * modules/sys_ioctl (Depends-on): Update.
31         * modules/sys_select (Depends-on): Update.
32         * modules/sys_socket (Depends-on): Update.
33         * modules/sys_stat (Depends-on): Update.
34         * modules/sys_time (Depends-on): Update.
35         * modules/sys_times (Depends-on): Update.
36         * modules/sys_utsname (Depends-on): Update.
37         * modules/sys_wait (Depends-on): Update.
38         * modules/termios (Depends-on): Update.
39         * modules/time (Depends-on): Update.
40         * modules/unistd (Depends-on): Update.
41         * modules/wchar (Depends-on): Update.
42         * modules/wctype-h (Depends-on): Update.
43         * MODULES.html.sh (Support for building libraries and executables):
44         Update.
45
46         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
47         * modules/snippet/unused-parameter: Renamed from
48         modules/unused-parameter.
49         (Files, Makefile.am): Update.
50         * build-aux/snippet/unused-parameter.h: Renamed from
51         build-aux/unused-parameter.h.
52         * modules/selinux-h (Depends-on): Update.
53         * modules/unistr/base (Depends-on): Update.
54         * MODULES.html.sh (Core language properties): Update.
55
56         Rename module 'link-warning' to 'snippet/link-warning'.
57         * modules/snippet/link-warning: Renamed from modules/link-warning.
58         (Files, Makefile.am): Update.
59         * build-aux/snippet/link-warning.h: Renamed from
60         build-aux/link-warning.h.
61         * MODULES.html.sh (Support for building libraries and executables):
62         Update.
63
64         Rename module 'c++defs' to 'snippet/c++defs'.
65         * modules/snippet/c++defs: Renamed from modules/c++defs.
66         (Files, Makefile.am): Update.
67         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
68         * modules/arpa_inet (Depends-on): Update.
69         * modules/ctype (Depends-on): Update.
70         * modules/dirent (Depends-on): Update.
71         * modules/fcntl-h (Depends-on): Update.
72         * modules/glob (Depends-on): Update.
73         * modules/iconv-h (Depends-on): Update.
74         * modules/langinfo (Depends-on): Update.
75         * modules/locale (Depends-on): Update.
76         * modules/math (Depends-on): Update.
77         * modules/netdb (Depends-on): Update.
78         * modules/poll-h (Depends-on): Update.
79         * modules/pty (Depends-on): Update.
80         * modules/search (Depends-on): Update.
81         * modules/signal (Depends-on): Update.
82         * modules/spawn (Depends-on): Update.
83         * modules/stdio (Depends-on): Update.
84         * modules/stdlib (Depends-on): Update.
85         * modules/string (Depends-on): Update.
86         * modules/strings (Depends-on): Update.
87         * modules/sys_ioctl (Depends-on): Update.
88         * modules/sys_select (Depends-on): Update.
89         * modules/sys_socket (Depends-on): Update.
90         * modules/sys_stat (Depends-on): Update.
91         * modules/sys_time (Depends-on): Update.
92         * modules/sys_wait (Depends-on): Update.
93         * modules/termios (Depends-on): Update.
94         * modules/time (Depends-on): Update.
95         * modules/unistd (Depends-on): Update.
96         * modules/wchar (Depends-on): Update.
97         * modules/wctype-h (Depends-on): Update.
98
99         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
100         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
101         (Files, Makefile.am): Update.
102         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
103         * modules/argv-iter (Depends-on): Update.
104         * modules/arpa_inet (Depends-on): Update.
105         * modules/dirent (Depends-on): Update.
106         * modules/fcntl-h (Depends-on): Update.
107         * modules/fnmatch (Depends-on): Update.
108         * modules/getopt-posix (Depends-on): Update.
109         * modules/glob (Depends-on): Update.
110         * modules/iconv-h (Depends-on): Update.
111         * modules/inttypes-incomplete (Depends-on): Update.
112         * modules/locale (Depends-on): Update.
113         * modules/math (Depends-on): Update.
114         * modules/netdb (Depends-on): Update.
115         * modules/search (Depends-on): Update.
116         * modules/signal (Depends-on): Update.
117         * modules/spawn (Depends-on): Update.
118         * modules/stdio (Depends-on): Update.
119         * modules/stdlib (Depends-on): Update.
120         * modules/string (Depends-on): Update.
121         * modules/strings (Depends-on): Update.
122         * modules/sys_socket (Depends-on): Update.
123         * modules/sys_stat (Depends-on): Update.
124         * modules/sys_time (Depends-on): Update.
125         * modules/sys_times (Depends-on): Update.
126         * modules/sys_utsname (Depends-on): Update.
127         * modules/time (Depends-on): Update.
128         * modules/unistd (Depends-on): Update.
129         * modules/wchar (Depends-on): Update.
130         * MODULES.html.sh (Support for building libraries and executables):
131         Update.
132
133 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
134
135         Improvements on _Noreturn and related modules.
136
137         modules/_Exit-tests: test _Noreturn too
138         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
139         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
140         (main): Use them.
141
142         stdnoreturn, stdnoreturn-tests: remove modules
143         They're not needed here and a bit premature for use elsewhere.  See
144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
145         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
146         * tests/test-stdnoreturn.c: Remove files.
147         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
148         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
149         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
150         and using noreturn.
151         * modules/openat, modules/sigpipe-die, modules/xalloc:
152         * modules/xmemdup0, modules/xstrtol:
153         Remove dependency on stdnoreturn.
154
155         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
156         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
157         Reparenthesize to avoid GCC warning.
158         Support Microsoft's syntax.
159         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
160
161         _Noreturn-tests: remove module
162         * modules/_Noreturn-tests: Remove.
163         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
164         * tests/test-_Noreturn.c: Remove.
165         * tests/test-stdnoreturn.c: Merge from the old
166         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
167
168 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
169
170         _Noreturn, stdnoreturn, and related modules.
171
172         * top/maint.mk: Adjust to new noreturn support.
173         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
174         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
175
176         xalloc: use stdnoreturn.h
177         * lib/xalloc.h: Include <stdnoreturn.h>.
178         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
179         * modules/xalloc (Depends-on): Add stdnoreturn.
180
181         xstrtol: use stdnoreturn.h
182         * lib/xstrtol.h: Include <stdnoreturn.h>.
183         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
184         * modules/xstrtol (Depends-on): Add stdnoreturn.
185
186         xmemdup0: use stdnoreturn.h
187         * lib/xmemdup0.h: Include <stdnoreturn.h>.
188         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
189         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
190
191         sigpipe-die: use stdnoreturn.h
192         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
193         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
194         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
195
196         openat: use stdnoreturn.h
197         * lib/openat.h: Include <stdnoreturn.h>.
198         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
199         * modules/openat (Depends-on): Add stdnoreturn.
200
201         * lib/openat-die.c (openat_save_fail): Modernize comment.
202
203         * lib/xalloc-die.c (xalloc_die): Modernize comment.
204
205         * lib/glthread/thread.h: Modernize comment.
206
207         obstack: use _Noreturn
208         * lib/obstack.c (__attribute__): Remove macro.
209         (print_and_abort): Use _Noreturn.
210
211         c-stack: use _Noreturn
212         * lib/c-stack.c (die, overflow_handler, segv_handler):
213         Use _Noreturn rather than __attribute__((noreturn)).
214
215         argmatch-tests, exclude_tests: use _Noreturn
216         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
217         Remove.
218         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
219
220         stdlib: use _Noreturn
221         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
222         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
223         * modules/stdlib (Depends-on): Add _Noreturn.
224         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
225
226         stdnoreturn-tests: new module
227         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
228
229         stdnoreturn: new module
230         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
231         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
232
233         _Noreturn-tests: new module
234         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
235
236         _Noreturn: new module
237         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
238         New section, mentioning it.
239         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
240
241         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
242
243 2011-07-11  Eric Blake  <eblake@redhat.com>
244
245         ffs: new module
246         * modules/ffs: New file.
247         * m4/ffs.m4: Likewise.
248         * lib/ffs.c: Likewise.
249         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
250         * modules/strings (Makefile.am): Substitute witness.
251         (Depends-on): Add c++defs.
252         * lib/strings.in.h (ffs): Declare.
253         * modules/ffs-tests: New test file.
254         * tests/test-ffs.c: Test new module.
255         * MODULES.html.sh (Integer arithmetic functions): Mention it.
256         * doc/posix-functions/ffs.texi (ffs): Likewise.
257
258         regex: avoid compiler warning
259         * lib/regex.c (includes): Include <strings.h>, for use of
260         strcasecmp in regcomp.c.
261         Reported by Joachim Schmitz.
262
263 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
264
265         stdint: respect system's intmax_t if INTMAX_MAX
266         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
267         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
268         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
269         long but int64_t is long long, and where we will clash with the
270         system intmax_t if we override it.  See
271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
272         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
273         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
274         similarly for UINTMAX_C.
275
276 2011-07-08  Bruno Haible  <bruno@clisp.org>
277
278         pthread_sigmask tests: Avoid a compiler warning.
279         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
280         non-zero.
281
282         sigprocmask tests: A better way to avoid a compiler warning.
283         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
284         (main): Complain if system() returns non-zero.
285         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
286
287 2011-07-08  Bruno Haible  <bruno@clisp.org>
288
289         pthread_sigmask: Work around IRIX bug.
290         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
291         bug.
292         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
293         there may be unblocked pending signals.
294         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
295
296 2011-07-08  Bruno Haible  <bruno@clisp.org>
297
298         pthread_sigmask: Work around Cygwin bug.
299         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
300         bug.
301         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
302         the system's pthread_sigmask function.
303         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
304
305 2011-07-08  Bruno Haible  <bruno@clisp.org>
306
307         pthread_sigmask: Work around bug in single-threaded implementation.
308         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
309         FreeBSD, HP-UX, Solaris bug.
310         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
311         * lib/pthread_sigmask.c: Include <stddef.h>.
312         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
313         the system's pthread_sigmask function.
314         * modules/pthread_sigmask (configure.ac): Invoke
315         gl_PREREQ_PTHREAD_SIGMASK.
316         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
317         HP-UX, Solaris.
318
319 2011-07-08  Eric Blake  <eblake@redhat.com>
320
321         test-sigprocmask: avoid compiler warning
322         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
323         * tests/test-sigprocmask.c (main): Use it to silence warning.
324         Reported by Jim Meyering.
325
326         test-snprintf: avoid compiler warning
327         * tests/test-snprintf.c (main): Avoid shadowed declaration.
328         * tests/test-vsnprintf.c (main): Likewise.
329         Reported by Jim Meyering.
330
331 2011-07-08  Bruno Haible  <bruno@clisp.org>
332
333         Tests for module 'pthread_sigmask'.
334         * modules/pthread_sigmask-tests: New file.
335         * tests/test-pthread_sigmask1.c: New file, based on
336         tests/test-sigprocmask.c.
337         * tests/test-pthread_sigmask2.c: New file.
338
339 2011-07-08  Jim Meyering  <meyering@redhat.com>
340
341         test-getopt.h: avoid warning about an unused variable
342         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
343
344 2011-07-07  Jim Meyering  <meyering@redhat.com>
345
346         maint: reduce list of files exempt from sc_prohibit_leading_TABs
347         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
348         now that it no longer contains leading TABs.
349         Remove unused "url=FIXME" statement.
350
351 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
352
353         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
354         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
355         When gl_THREADLIB is not in use, assume that the POSIX sematics
356         are desired.  This is better for Emacs, which uses POSIX semantics
357         on GNUish and/or POSIXish platforms, and does not use threads at
358         all otherwise.
359
360         pthread_sigmask: fix typo when testing for libraries
361         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
362         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
363
364 2011-07-08  Eric Blake  <eblake@redhat.com>
365
366         fts: introduce FTS_NOATIME
367         * lib/fts_.h (FTS_NOATIME): New bit flag.
368         (FTS_OPTIONMASK): Adjust.
369         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
370         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
371
372 2011-07-08  Bruno Haible  <bruno@clisp.org>
373
374         Tests for module 'thread'.
375         * modules/thread-tests: New file.
376         * tests/test-thread_self.c: New file.
377         * tests/test-thread_create.cc: New file.
378
379 2011-07-08  Bruno Haible  <bruno@clisp.org>
380
381         thread: Avoid gcc warnings when using gl_thread_self().
382         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
383         'void *'.
384         (gl_thread_self_pointer): Update.
385
386 2011-07-07  Bruno Haible  <bruno@clisp.org>
387
388         signal-c++-tests: Check declaration of pthread_sigmask.
389         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
390         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
391         $(LIB_PTHREAD_SIGMASK).
392
393 2011-07-07  Bruno Haible  <bruno@clisp.org>
394
395         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
396         * lib/signal.in.h (pthread_sigmask): Override if
397         REPLACE_PTHREAD_SIGMASK is 1.
398         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
399         REPLACE_PTHREAD_SIGMASK.
400         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
401         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
402         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
403         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
404         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
405
406 2011-07-07  Bruno Haible  <bruno@clisp.org>
407
408         pthread_sigmask: Ensure declaration in <signal.h>.
409         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
410         include <pthread.h>.
411         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
412         problem.
413
414 2011-07-07  Bruno Haible  <bruno@clisp.org>
415
416         pthread_sigmask: Document the module.
417         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
418
419 2011-07-07  Bruno Haible  <bruno@clisp.org>
420
421         pthread_sigmask: Follow gnulib conventions.
422         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
423         gl_PTHREAD_SIGMASK.
424         * modules/pthread_sigmask (configure.ac): Update.
425
426 2011-07-07  Bruno Haible  <bruno@clisp.org>
427
428         pthread_sigmask: Make declaration C++ safe.
429         * lib/signal.in.h: In two special conditions, just do an #include_next.
430         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
431         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
432         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
433         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
434         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
435         not REPLACE_PTHREAD_MASK.
436         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
437         not REPLACE_PTHREAD_MASK.
438         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
439
440 2011-07-07  Bruno Haible  <bruno@clisp.org>
441
442         pthread_sigmask: Fix return value.
443         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
444         * lib/pthread_sigmask.c: New file.
445         * modules/pthread_sigmask (Files): Add it.
446         (configure.ac): Invoke AC_LIBOBJ.
447
448 2011-07-07  Eric Blake  <eblake@redhat.com>
449
450         getopt: more portable argv creation
451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
452         const, use char arrays rather than strings.
453         Suggested by Paul Eggert.
454
455 2011-07-07  Bruno Haible  <bruno@clisp.org>
456
457         Tests for module 'sigprocmask'.
458         * modules/sigprocmask-tests: New file.
459         * tests/test-sigprocmask.c: New file.
460
461 2011-07-07  Bruno Haible  <bruno@clisp.org>
462
463         float tests: Tweak.
464         * tests/test-float.c (main): Tweak skip message.
465
466 2011-07-07  Eric Blake  <eblake@redhat.com>
467
468         getopt: avoid compiler warning during configure
469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
470         assigning string literals to non-const pointer.
471
472         getopt-gnu: avoid crash in glibc getopt
473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
474         * tests/test-getopt.h (test_getopt): Enhance test.
475         * tests/test-getopt_long.h (test_getopt_long): Likewise.
476         * doc/posix-functions/getopt.texi (getopt): Document it.
477         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
478         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
479         Likewise.
480
481 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
482
483         getopt: handle W; without long options in getopt [BZ #12922]
484         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
485         but no long options are defined, just return 'W'.
486
487 2011-07-07  Bruno Haible  <bruno@clisp.org>
488
489         Avoid literal tabs.
490         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
491         variable containing a tab instead of a literal tab.
492         Reported by Jim Meyering.
493
494 2011-07-07  Bruno Haible  <bruno@clisp.org>
495
496         Comments.
497         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
498
499 2011-07-06  Bruno Haible  <bruno@clisp.org>
500
501         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
502         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
503         <winsock2.h>.
504         (rpl_fd_isset, FD_ISSET): New definitions, copied from
505         lib/sys_socket.in.h.
506         (close, gethostname): Hide declarations from <winsock2.h>.
507         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
508         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
509         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
510         (select): Don't override if gnulib's <sys/select.h> was already
511         included.
512         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
513         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
514         setsockopt, shutdown, select): Tweak indentation.
515
516 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
517
518         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
519         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
520         in an application that does not use the sys_select module.
521
522 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
523
524         poll: do not return 0 on timeout=-1
525         * lib/poll.c: Loop with yield if no events occured
526
527 2011-07-06  Eric Blake  <eblake@redhat.com>
528
529         pthread_sigmask: always replace when not using pthread
530         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
531         replacement when using some threading other than pthread.  Fix
532         logic bug.
533
534 2011-07-06  Bruno Haible  <bruno@clisp.org>
535
536         Comments.
537         * m4/printf.m4: Update comments about mingw.
538
539 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
540
541         sys_select: define sigset_t more portably
542         * lib/sys_select.in.h: Always include <sys/types.h>, since
543         we now need sigset_t and mingw defines it there.
544         Include <signal.h> before split inclusion guard, to avoid
545         mishaps on Solaris, whose <signal.h> eventually includes us.
546         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
547         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
548         which come from ...
549         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
550         gl_CHECK_TYPE_SIGSET_T.
551         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
552         does the real work.
553         * modules/sys_select (Depends-on): Add 'signal'.
554
555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
556         Suggested by Bruno Haible.
557
558         pselect: Use pthread_sigmask, not sigprocmask.
559         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
560         multithreaded apps better than sigprocmask does.
561         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
562         sigprocmask directly.
563
564 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
565
566         * lib/pselect.c (pselect): Use plain name, without "rpl_".
567         Don't #undef,  since we don't need any underlying pselect.
568         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
569         (Depends-on): Add select.
570         (Link): Add $(LIBSOCKET).
571         These changes suggested by Bruno Haible.
572
573         pselect: document better
574         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
575         * doc/posix-functions/pselect.texi (pselect): Document new module.
576
577         pthread_sigmask: new module
578         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
579         * doc/posix-functions/pthread_sigmask.texi: Document new module.
580         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
581         This is done only as a macro; I don't know how well that'll
582         work for C++.  Move <sys/types.h> include before the include_next,
583         to avoid mishap on Solaris.
584         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
585         * modules/signal (Makefile.am): Substitute the check's results.
586         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
587
588         test-pselect: new module
589         * modules/pselect-tests, tests/test-pselect.c: New files.
590         * tests/test-select.c, tests/test-sys_select-c++.cc:
591         If TEST_PSELECT is defined, test pselect instead of testing select.
592
593         * tests/test-sys_select.c (sigset_t): Test for it, too.
594         Suggested by Bruno Haible.
595
596 2011-07-05  Eric Blake  <eblake@redhat.com>
597
598         snprintf: guarantee %1$d, for libintl
599         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
600         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
601         * doc/posix-functions/snprintf.texi (snprintf): Update.
602         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
603         * tests/test-snprintf.c (main): Enhance test.
604         * tests/test-vsnprintf.c (main): Likewise.
605
606 2011-07-05  Jim Meyering  <meyering@redhat.com>
607
608         maint: exempt stdio-read.c and stdio-write.c from the cppi check
609         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
610         per Bruno's request, to accommodate this idiom (no space after "#")
611         even when the function is inside an #if block:
612         char *
613         gets (char *s)
614         #undef gets
615         {
616           ...
617         }
618
619 2011-07-04  Jim Meyering  <meyering@redhat.com>
620
621         maint: indent with spaces, not TABs, and add a rule to check this
622         * tests/test-userspec.c: Indent with spaces, not TABs.
623         * tests/test-argp.c: Likewise.
624         * tests/test-c-stack2.sh: Likewise.
625         * tests/test-parse-duration.sh: Likewise
626         * m4/strtod.m4: Likewise.
627         * m4/alloca.m4: Likewise.
628         * m4/pselect.m4: Likewise.
629         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
630
631 2011-07-03  Jim Meyering  <meyering@redhat.com>
632
633         maint.mk: correct omissions in prohibit_argmatch_without_use check
634         This rule would mistakenly report that argmatch.h is included without
635         use even when both the argmatch and invalid_arg macro were used.
636         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
637         of argmatch and invalid_arg.
638
639 2011-07-03  Bruno Haible  <bruno@clisp.org>
640
641         Comments about EINTR.
642         * lib/safe-read.h: Explain the purpose of this module.
643         * lib/safe-write.h: Likewise.
644         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
645         module.
646         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
647         module.
648         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
649
650 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
651
652         xnanosleep: Rewrite to use new dtotimespec module.
653         It has the conversion code that used to be in xnanosleep.
654         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
655         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
656         (TIME_T_MAX): Remove.
657         (xnanosleep): Rewrite in terms of dtotimespec.
658         * modules/xnanosleep (Depends-on): Add dtotimespec.
659         Remove intprops, stdbool.
660
661         timespec-add, timespec-sub: new modules
662         * lib/timespec.h (timespec_add, timespec_sub): New decls.
663         * lib/timespec-add.c, lib/timespec-sub.c:
664         * modules/timespec-add, modules/timespec-sub: New files.
665
666         dtotimespec: new module
667         * lib/timespec.h (dtotimespec): New decl.
668         * lib/dtotimespec.c, modules/dtotimespec: New files.
669
670         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
671
672         pselect: new module
673         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
674         (pselect): New decls.
675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
676         since the standard pselect decl uses 'restrict'.
677         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
678         HAVE_PSELECT, REPLACE_PSELECT.
679         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
680         HAVE_PSELECT, REPLACE_PSELECT.
681         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
682
683         sys_select: don't depend on sys_socket
684         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
686         This fix works on GNU and GNU-like platforms, but has not been tested
687         on native Windows.
688         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
689         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
690         gl_HEADER_SYS_SOCKET.
691         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
692         gl_PREREQ_SYS_H_WINSOCK2.
693
694 2011-06-29  Eric Blake  <eblake@redhat.com>
695
696         pipe2: fix C89 compile problem
697         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
698         Reported by Bruno Haible.
699
700         pipe, pipe2: don't corrupt fd on error
701         * lib/pipe.c (pipe): Leave fd unchanged on error.
702         * lib/pipe2.c (pipe2): Likewise.
703         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
704         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
705
706 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
707
708         mmap-anon: do not use regular expressions inadvertently
709         * m4/mmap-anon.m4: Remove trailing period from strings sought
710         in the output.
711
712 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
713
714         nanosleep: fix integer overflow problem
715         * lib/nanosleep.c (my_usleep): Don't assume signed integer
716         arithmetic wraps around on overflow.
717
718         nanosleep: simplify carrying
719         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
720         first call to the underyling nanosleep, not for the last one.
721         This doesn't fix any bugs, but it simplifies the computation of
722         the remaining delay.  Found while auditing integer overflow issues.
723
724         dup2: remove test for existence of fcntl
725         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
726         "#if HAVE_FCNTL", in the configure-time test program.
727         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
728         and therefore speeds up "configure" a bit.  Found while
729         adding the dup2 module to Emacs.
730
731 2011-06-24  Eric Blake  <eblake@redhat.com>
732
733         maint.mk: enhance useless header checks
734         * top/maint.mk (_sc_header_without_use): Check both include
735         styles.
736         (sc_prohibit_assert_without_use)
737         (sc_prohibit_close_stream_without_use)
738         (sc_prohibit_getopt_without_use)
739         (sc_prohibit_quotearg_without_use)
740         (sc_prohibit_quote_without_use)
741         (sc_prohibit_long_options_without_use)
742         (sc_prohibit_inttostr_without_use)
743         (sc_prohibit_ignore_value_without_use)
744         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
745         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
746         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
747         (sc_prohibit_hash_pjw_without_use)
748         (sc_prohibit_safe_read_without_use)
749         (sc_prohibit_argmatch_without_use)
750         (sc_prohibit_canonicalize_without_use)
751         (sc_prohibit_root_dev_ino_without_use)
752         (sc_prohibit_openat_without_use)
753         (sc_prohibit_c_ctype_without_use)
754         (sc_prohibit_signal_without_use)
755         (sc_prohibit_stdio--_without_use)
756         (sc_prohibit_stdio-safer_without_use)
757         (sc_prohibit_strings_without_use)
758         (sc_prohibit_intprops_without_use)
759         (sc_prohibit_stddef_without_use)
760         (sc_prohibit_xfreopen_without_use): Update clients.
761
762 2011-06-24  Jim Meyering  <meyering@redhat.com>
763
764         syntax-check: keep one maint.mk rule in sync with its header
765         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
766         of the bug Eric has just fixed, with today's commit 25e4c2ec.
767         I prefer to avoid temporary files here, so use <(...), but that
768         is not supported by /bin/sh, so...
769         (SHELL): Define to /bin/bash.
770
771 2011-06-24  Eric Blake  <eblake@redhat.com>
772
773         maint.mk: update sc_prohibit_intprops_without_use
774         * top/maint.mk (_intprops_names): Match recent changes.
775
776 2011-06-24  Bruno Haible  <bruno@clisp.org>
777
778         strerror-override: No-op tweak.
779         * lib/strerror-override.h (strerror_override): Reorder conditions,
780         for consistency with lib/strerror-override.c.
781
782 2011-06-23  Eric Blake  <eblake@redhat.com>
783
784         maint.mk: test further PATH_MAX issues
785         * top/maint.mk (sc_prohibit_path_max_array): Rename...
786         (sc_prohibit_path_max_allocation): ...and also test alloca.
787         Suggested by Jim Meyering.
788
789 2011-06-22  Eric Blake  <eblake@redhat.com>
790
791         maint.mk: add syntax-check to avoid char[PATH_MAX]
792         * top/maint.mk (sc_prohibit_path_max_array): New rule.
793
794         stat: be robust to PATH_MAX definition
795         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
796         * modules/stat (Depends-on): Add verify.
797
798         link: work around IRIX bug
799         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
800         * lib/link.c (rpl_link): Work around it.
801         * tests/test-link.h (test_link): Enhance test.
802         * doc/posix-functions/link.texi (link): Document the bug.
803
804         getopt: silence clang warning
805         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
806         dereference.
807         Reported by Gustavo Martin Domato.
808
809 2011-06-22  Jim Meyering  <meyering@redhat.com>
810
811         bootstrap: do not insert a blank line into each .gitignore file
812         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
813
814 2011-06-21  Eric Blake  <eblake@redhat.com>
815
816         perror: test for output mismatch
817         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
818         perror on IRIX.
819
820         strerror_r: fix OpenBSD behavior on out-of-range
821         * lib/strerror_r.c (strerror_r): Always use maximal string.
822         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
823
824         strerror_r: fix OpenBSD behavior on 0
825         * lib/strerror-override.c (strerror_override): Also override 0
826         when needed.
827         * lib/strerror-override.h (strerror_override): Likewise.
828         * lib/strerror.c (strerror): Simplify, now that 0 override is done
829         earlier.
830         * lib/strerror_r.c (strerror_r): Likewise.
831         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
832         behavior...
833         (gl_FUNC_STRERROR_0): ...into new macro.
834         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
835         is overridden.
836         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
837         * modules/strerror-override (Files): Add strerror.m4.
838         (configure.ac): Also provide override for 0 when needed.
839         * doc/posix-functions/strerror.texi (strerror): Document this.
840         * doc/posix-functions/perror.texi (perror): Likewise.
841
842         perror: adjust array size
843         * modules/perror (Depends-on): Add strerror-override.
844         * lib/perror.c (perror): Use it to avoid magic number.
845
846         strerror-override: reduce size
847         * lib/strerror-override.c (strerror_override): Use fewer lines.
848
849 2011-06-20  Bruno Haible  <bruno@clisp.org>
850
851         pathmax: Ensure correct value for PATH_MAX on HP-UX.
852         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
853
854 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
855
856         alloca: port to compilers that can optimize like GCC 4.6.0
857         * lib/alloca.c (find_stack_direction): New signature, taken from
858         Autoconf git.  This works with GCC 4.6.0.  This code should never
859         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
860         be used with other compilers that optimize as well as GCC 4.6.0 does.
861         (alloca): Adjust to new signature.
862         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
863         New macro, which patches Autoconf in a similar way.
864
865         c-stack: stop worrying about stack direction
866         * lib/c-stack.c (find_stack_direction): Remove.
867         (segv_handler): Don't worry about stack direction growth, as it's
868         too much of a pain to configure this correctly, given how compilers
869         are optimizing-away our stack-growth detection code.  Instead, assume
870         that any access to just before or just after the stack is OK.
871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
872         Don't require AC_FUNC_ALLOCA; no longer needed.
873
874 2011-06-20  Eric Blake  <eblake@redhat.com>
875
876         test-stat: don't allocate PATH_MAX bytes
877         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
878         PATH_MAX-sized buffer.
879         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
880         * modules/stat-tests (Depends-on): Likewise.
881         * tests/test-fstatat.c (includes): Drop pathmax.h.
882         * tests/test-stat.c (includes): Likewise.
883         Reported by Bruno Haible.
884
885 2011-06-20  Bruno Haible  <bruno@clisp.org>
886
887         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
888         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
889         * lib/float.c: New file.
890         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
891         REPLACE_FLOAT_LDBL.
892         * modules/float (Files): Add lib/float.c.
893         (configure.ac): Invoke AC_LIBOBJ.
894         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
895
896 2011-06-20  Bruno Haible  <bruno@clisp.org>
897
898         Tests for module 'float'.
899         * modules/float-tests: New file.
900         * tests/test-float.c: New file.
901
902 2011-06-19  Bruno Haible  <bruno@clisp.org>
903
904         isinf: Coding style.
905         * lib/isinf.c: Use GNU coding style.
906
907 2011-06-19  Bruno Haible  <bruno@clisp.org>
908
909         linkat test: Avoid test failure on AIX 7.1.
910         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
911         * tests/test-link.h (test_link): Likewise.
912
913 2011-06-19  Bruno Haible  <bruno@clisp.org>
914
915         pread test: Avoid test failure on OpenBSD 4.9.
916         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
917
918 2011-06-19  Bruno Haible  <bruno@clisp.org>
919
920         sprintf-posix: Fix test failure on AIX 7.1.
921         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
922         * doc/posix-functions/dprintf.texi: Mention limited precision problem
923         on AIX.
924         * doc/posix-functions/fprintf.texi: Likewise.
925         * doc/posix-functions/printf.texi: Likewise.
926         * doc/posix-functions/snprintf.texi: Likewise.
927         * doc/posix-functions/sprintf.texi: Likewise.
928         * doc/posix-functions/vdprintf.texi: Likewise.
929         * doc/posix-functions/vfprintf.texi: Likewise.
930         * doc/posix-functions/vprintf.texi: Likewise.
931         * doc/posix-functions/vsnprintf.texi: Likewise.
932         * doc/posix-functions/vsprintf.texi: Likewise.
933
934 2011-06-19  Bruno Haible  <bruno@clisp.org>
935
936         roundl-ieee: Fix test failure on AIX 7.1.
937         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
938         * doc/posix-functions/roundl.texi: Mention problem with negative
939         arguments.
940
941 2011-06-19  Bruno Haible  <bruno@clisp.org>
942
943         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
944         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
945         * doc/posix-functions/round.texi: Mention problem with negative
946         arguments.
947         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
948
949 2011-06-19  Bruno Haible  <bruno@clisp.org>
950
951         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
952         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
953         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
954         * doc/posix-functions/roundf.texi: Mention problem with negative
955         arguments.
956         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
957
958 2011-06-19  Bruno Haible  <bruno@clisp.org>
959
960         ceilf-ieee: Work around bug on MacOS X 10.5.
961         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
962
963         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
964         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
965         IEEE compliant, avoid compiler optimizations.
966         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
967         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
968         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
969         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
970         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
971         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
973         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
974         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
975         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
976
977 2011-06-19  Bruno Haible  <bruno@clisp.org>
978
979         ceilf-ieee: Work around bug on AIX 7.1.
980         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
981         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
982
983 2011-06-19  Bruno Haible  <bruno@clisp.org>
984
985         ceil-ieee: Work around bug on AIX 7.1.
986         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
987         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
988
989 2011-06-18  Bruno Haible  <bruno@clisp.org>
990
991         fsync test: Avoid test failure on MacOS X and AIX.
992         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
993         EINVAL.
994
995 2011-06-18  Bruno Haible  <bruno@clisp.org>
996
997         openat, fdopendir tests: Fix link errors.
998         * modules/openat-tests (Depends-on): Add progname.
999         * modules/fdopendir-tests (Depends-on): Likewise.
1000         * tests/test-fchownat.c: Include progname.h.
1001         (main): Call set_program_name.
1002         * tests/test-fstatat.c: Include progname.h.
1003         (main): Call set_program_name.
1004         * tests/test-mkdirat.c: Include progname.h.
1005         (main): Call set_program_name.
1006         * tests/test-openat.c: Include progname.h.
1007         (main): Call set_program_name.
1008         * tests/test-unlinkat.c: Include progname.h.
1009         (main): Call set_program_name.
1010         * tests/test-fdopendir.c: Include progname.h.
1011         (main): Call set_program_name.
1012
1013 2011-06-18  Bruno Haible  <bruno@clisp.org>
1014
1015         Doc update.
1016         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1017         HP-UX.
1018         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1019
1020 2011-06-18  Bruno Haible  <bruno@clisp.org>
1021
1022         getcwd tests: Avoid compilation error on HP-UX 11.31.
1023         * modules/getcwd-tests (Depends-on): Add pathmax.
1024         * tests/test-getcwd.c: Include pathmax.h.
1025
1026 2011-06-18  Bruno Haible  <bruno@clisp.org>
1027
1028         isfinite, isinf: Fix link error on AIX 6 and 7.
1029         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1030         needed, also test the macro with a 'float' argument.
1031         * m4/isinf.m4 (gl_ISINF): Likewise.
1032
1033 2011-06-18  Bruno Haible  <bruno@clisp.org>
1034
1035         getloadavg: Don't clobber LIBS. Regression from previous commit.
1036         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1037         AC_CHECK_LIB from here...
1038         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1039         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1040         gl_func_getloadavg_done.
1041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1042
1043 2011-06-18  Bruno Haible  <bruno@clisp.org>
1044
1045         clean-temp: Improve documentation.
1046         * lib/clean-temp.h: Explain better how to use this module.
1047         Reported by John Darrington <john@darrington.wattle.id.au>.
1048
1049 2011-06-17  Bruno Haible  <bruno@clisp.org>
1050
1051         pread, pwrite: Avoid cc warning on AIX.
1052         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1053         (pwrite): Likewise.
1054
1055 2011-06-17  Bruno Haible  <bruno@clisp.org>
1056
1057         spawn-pipe tests: Fix link error.
1058         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1060
1061 2011-06-17  Bruno Haible  <bruno@clisp.org>
1062
1063         Tests: Remove unnecessary dependency.
1064         * modules/canonicalize-tests (Depends-on): Remove progname.
1065         * modules/chown-tests (Depends-on): Likewise.
1066         * modules/dirname-tests (Depends-on): Likewise.
1067         * modules/fdopendir-tests (Depends-on): Likewise.
1068         * modules/fdutimensat-tests (Depends-on): Likewise.
1069         * modules/hash-tests (Depends-on): Likewise.
1070         * modules/lchown-tests (Depends-on): Likewise.
1071         * modules/linkat-tests (Depends-on): Likewise.
1072         * modules/renameat-tests (Depends-on): Likewise.
1073         * modules/spawn-pipe-tests (Depends-on): Likewise.
1074         * modules/utimensat-tests (Depends-on): Likewise.
1075
1076 2011-06-17  Bruno Haible  <bruno@clisp.org>
1077
1078         spawn-pipe tests: Fix link error.
1079         * tests/test-spawn-pipe-child.c: Undefine fflush.
1080
1081 2011-06-17  Bruno Haible  <bruno@clisp.org>
1082
1083         Fix tests link errors.
1084         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1085         * modules/chown-tests (Makefile.am): Don't link test-chown with
1086         LIBINTL.
1087         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1088         LIBINTL.
1089         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1090         LIBINTL.
1091         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1092         LIBINTL.
1093
1094 2011-06-16  Bruno Haible  <bruno@clisp.org>
1095
1096         crypto/gc-sha1: Fix recent regression.
1097         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1098         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1099
1100         crypto/gc-md5: Fix recent regression.
1101         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1102
1103         crypto/gc-md4: Fix recent regression.
1104         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1105         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1106
1107         crypto/gc-arctwo: Fix recent regression.
1108         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1109         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1110
1111         crypto/gc-rijndael: Fix recent regression.
1112         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1113         (configure.ac): Invoke AC_LIBOBJ here.
1114         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1116
1117         crypto/gc-hmac-sha1: Fix recent regression.
1118         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1119         (configure.ac): Invoke AC_LIBOBJ here.
1120         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1122
1123         crypto/gc-hmac-md5: Fix recent regression.
1124         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1125         (configure.ac): Invoke AC_LIBOBJ here.
1126         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1128
1129         crypto/gc-des: Fix recent regression.
1130         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1131         (configure.ac): Invoke AC_LIBOBJ here.
1132         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1134
1135         crypto/gc-arcfour: Fix recent regression.
1136         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1137         (configure.ac): Invoke AC_LIBOBJ here.
1138         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1140
1141 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1144         After the 2011-05-21 change, this macro requires
1145         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1146         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1147
1148 2011-06-16  Bruno Haible  <bruno@clisp.org>
1149
1150         fprintftime: Move AC_LIBOBJ invocations to module description.
1151         * m4/fprintftime.m4: Remove file.
1152         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1153         (configure.ac): Remove gl_FPRINTFTIME call.
1154         (Makefile.am): Augment lib_SOURCES.
1155         Reported by Jim Meyering.
1156
1157 2011-06-16  Bruno Haible  <bruno@clisp.org>
1158
1159         tmpfile-safer: Finish 2011-05-23 commit.
1160         * m4/stdio-safer.m4: Really remove file.
1161         Reported by Jim Meyering.
1162
1163 2011-06-16  Bruno Haible  <bruno@clisp.org>
1164
1165         syntax-check: Fix typo.
1166         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1167         printf-posix.m4.
1168         Reported by Jim Meyering.
1169
1170 2011-06-13  Jim Meyering  <meyering@redhat.com>
1171
1172         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1173         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1174
1175 2011-05-23  Bruno Haible  <bruno@clisp.org>
1176
1177         yesno: Move AC_LIBOBJ invocations to module description.
1178         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1179         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1180
1181 2011-05-23  Bruno Haible  <bruno@clisp.org>
1182
1183         xstrtol: Move AC_LIBOBJ invocations to module description.
1184         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1185         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1186
1187 2011-05-23  Bruno Haible  <bruno@clisp.org>
1188
1189         xstrtold: Move AC_LIBOBJ invocations to module description.
1190         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1191         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1192
1193 2011-05-23  Bruno Haible  <bruno@clisp.org>
1194
1195         xstrtod: Move AC_LIBOBJ invocations to module description.
1196         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1197         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1198
1199 2011-05-23  Bruno Haible  <bruno@clisp.org>
1200
1201         xnanosleep: Move AC_LIBOBJ invocations to module description.
1202         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1203         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1204
1205 2011-05-23  Bruno Haible  <bruno@clisp.org>
1206
1207         xgetcwd: Move AC_LIBOBJ invocations to module description.
1208         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1209         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1210
1211 2011-05-23  Bruno Haible  <bruno@clisp.org>
1212
1213         xalloc: Move AC_LIBOBJ invocations to module description.
1214         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1215         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1216
1217 2011-05-23  Bruno Haible  <bruno@clisp.org>
1218
1219         write-any-file: Move AC_LIBOBJ invocations to module description.
1220         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1221         invocation.
1222         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1223
1224 2011-05-23  Bruno Haible  <bruno@clisp.org>
1225
1226         utimens: Move AC_LIBOBJ invocations to module description.
1227         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1228         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1229
1230 2011-05-23  Bruno Haible  <bruno@clisp.org>
1231
1232         utimecmp: Move AC_LIBOBJ invocations to module description.
1233         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1234         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1235
1236 2011-05-23  Bruno Haible  <bruno@clisp.org>
1237
1238         userspec: Move AC_LIBOBJ invocations to module description.
1239         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1240         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1241
1242 2011-05-23  Bruno Haible  <bruno@clisp.org>
1243
1244         unlinkdir: Move AC_LIBOBJ invocations to module description.
1245         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1246         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1247
1248 2011-05-23  Bruno Haible  <bruno@clisp.org>
1249
1250         unistd-safer: Move AC_LIBOBJ invocations to module description.
1251         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1252         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1253
1254 2011-05-23  Bruno Haible  <bruno@clisp.org>
1255
1256         tempname: Move AC_LIBOBJ invocations to module description.
1257         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1258         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1259
1260 2011-05-23  Bruno Haible  <bruno@clisp.org>
1261
1262         strftime: Move AC_LIBOBJ invocations to module description.
1263         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1264         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1265
1266 2011-05-23  Bruno Haible  <bruno@clisp.org>
1267
1268         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1269         * m4/stdlib-safer.m4: Remove file.
1270         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1271         (configure.ac): Remove gl_STDLIB_SAFER call.
1272         (Makefile.am): Augment lib_SOURCES.
1273
1274 2011-05-23  Bruno Haible  <bruno@clisp.org>
1275
1276         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1277         * m4/stdio-safer.m4: Remove file.
1278         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1279         (configure.ac): Remove gl_TMPFILE_SAFER call.
1280         (Makefile.am): Augment lib_SOURCES.
1281
1282 2011-05-23  Bruno Haible  <bruno@clisp.org>
1283
1284         popen-safer: Move AC_LIBOBJ invocations to module description.
1285         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1286         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1287         (configure.ac): Remove gl_POPEN_SAFER call.
1288         (Makefile.am): Augment lib_SOURCES.
1289
1290 2011-05-23  Bruno Haible  <bruno@clisp.org>
1291
1292         freopen-safer: Move AC_LIBOBJ invocations to module description.
1293         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1294         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1295         (configure.ac): Remove gl_FREOPEN_SAFER call.
1296         (Makefile.am): Augment lib_SOURCES.
1297
1298 2011-05-23  Bruno Haible  <bruno@clisp.org>
1299
1300         fopen-safer: Move AC_LIBOBJ invocations to module description.
1301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1302         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1303         (configure.ac): Remove gl_FOPEN_SAFER call.
1304         (Makefile.am): Augment lib_SOURCES.
1305
1306 2011-05-23  Bruno Haible  <bruno@clisp.org>
1307
1308         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1309         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1310         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1311
1312 2011-05-23  Bruno Haible  <bruno@clisp.org>
1313
1314         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1315         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1316         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1317
1318 2011-05-23  Bruno Haible  <bruno@clisp.org>
1319
1320         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1321         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1322         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1323
1324 2011-05-23  Bruno Haible  <bruno@clisp.org>
1325
1326         settime: Move AC_LIBOBJ invocations to module description.
1327         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1328         * modules/settime (Makefile.am): Augment lib_SOURCES.
1329
1330 2011-05-23  Bruno Haible  <bruno@clisp.org>
1331
1332         savedir: Move AC_LIBOBJ invocations to module description.
1333         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1334         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1335
1336 2011-05-23  Bruno Haible  <bruno@clisp.org>
1337
1338         save-cwd: Move AC_LIBOBJ invocations to module description.
1339         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1340         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1341
1342 2011-05-23  Bruno Haible  <bruno@clisp.org>
1343
1344         same: Move AC_LIBOBJ invocations to module description.
1345         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1346         * modules/same (Makefile.am): Augment lib_SOURCES.
1347
1348 2011-05-23  Bruno Haible  <bruno@clisp.org>
1349
1350         safe-write: Move AC_LIBOBJ invocations to module description.
1351         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1352         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1353         instead of gl_SAFE_WRITE.
1354         (Makefile.am): Augment lib_SOURCES.
1355
1356 2011-05-23  Bruno Haible  <bruno@clisp.org>
1357
1358         safe-read: Move AC_LIBOBJ invocations to module description.
1359         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1360         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1361         of gl_SAFE_READ.
1362         (Makefile.am): Augment lib_SOURCES.
1363
1364 2011-05-23  Bruno Haible  <bruno@clisp.org>
1365
1366         safe-alloc: Move AC_LIBOBJ invocations to module description.
1367         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1368         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1369
1370 2011-05-23  Bruno Haible  <bruno@clisp.org>
1371
1372         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1373         * m4/rijndael.m4: Remove file.
1374         * modules/crypto/rijndael (Files): Remove it.
1375         (configure.ac): Remove gl_RIJNDAEL call.
1376         (Makefile.am): Augment lib_SOURCES.
1377
1378 2011-05-23  Bruno Haible  <bruno@clisp.org>
1379
1380         readtokens: Move AC_LIBOBJ invocations to module description.
1381         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1382         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1383
1384 2011-05-23  Bruno Haible  <bruno@clisp.org>
1385
1386         read-file: Move AC_LIBOBJ invocations to module description.
1387         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1388         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1389         of gl_FUNC_READ_FILE.
1390         (Makefile.am): Augment lib_SOURCES.
1391
1392 2011-05-23  Bruno Haible  <bruno@clisp.org>
1393
1394         quotearg: Move AC_LIBOBJ invocations to module description.
1395         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1396         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1397
1398 2011-05-23  Bruno Haible  <bruno@clisp.org>
1399
1400         quote: Move AC_LIBOBJ invocations to module description.
1401         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1402         * modules/quote (Makefile.am): Augment lib_SOURCES.
1403
1404 2011-05-23  Bruno Haible  <bruno@clisp.org>
1405
1406         posixver: Move AC_LIBOBJ invocations to module description.
1407         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1408         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1409
1410 2011-05-23  Bruno Haible  <bruno@clisp.org>
1411
1412         posixtm: Move AC_LIBOBJ invocations to module description.
1413         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1414         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1415
1416 2011-05-23  Bruno Haible  <bruno@clisp.org>
1417
1418         physmem: Move AC_LIBOBJ invocations to module description.
1419         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1420         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1421
1422 2011-05-23  Bruno Haible  <bruno@clisp.org>
1423
1424         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1425         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1426         invocation.
1427         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1428
1429 2011-05-23  Bruno Haible  <bruno@clisp.org>
1430
1431         mpsort: Move AC_LIBOBJ invocations to module description.
1432         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1433         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1434
1435 2011-05-23  Bruno Haible  <bruno@clisp.org>
1436
1437         modechange: Move AC_LIBOBJ invocations to module description.
1438         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1439         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1440
1441 2011-05-23  Bruno Haible  <bruno@clisp.org>
1442
1443         mkdir-p: Move AC_LIBOBJ invocations to module description.
1444         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1445         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1446
1447 2011-05-23  Bruno Haible  <bruno@clisp.org>
1448
1449         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1450         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1451         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1452
1453 2011-05-23  Bruno Haible  <bruno@clisp.org>
1454
1455         mgetgroups: Move AC_LIBOBJ invocations to module description.
1456         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1457         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1458
1459 2011-05-23  Bruno Haible  <bruno@clisp.org>
1460
1461         memxor: Move AC_LIBOBJ invocations to module description.
1462         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1463         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1464
1465 2011-05-23  Bruno Haible  <bruno@clisp.org>
1466
1467         memcoll: Move AC_LIBOBJ invocations to module description.
1468         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1469         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1470
1471 2011-05-23  Bruno Haible  <bruno@clisp.org>
1472
1473         memcasecmp: Move AC_LIBOBJ invocations to module description.
1474         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1475         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1476
1477 2011-05-23  Bruno Haible  <bruno@clisp.org>
1478
1479         crypto/md5: Move AC_LIBOBJ invocations to module description.
1480         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1481         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1482
1483 2011-05-23  Bruno Haible  <bruno@clisp.org>
1484
1485         crypto/md4: Move AC_LIBOBJ invocations to module description.
1486         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1487         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1488
1489 2011-05-23  Bruno Haible  <bruno@clisp.org>
1490
1491         crypto/md2: Move AC_LIBOBJ invocations to module description.
1492         * m4/md2.m4: Remove file.
1493         * modules/crypto/md2 (Files): Remove it.
1494         (configure.ac): Remove gl_MD2 call.
1495         (Makefile.am): Augment lib_SOURCES.
1496
1497 2011-05-23  Bruno Haible  <bruno@clisp.org>
1498
1499         long-options: Move AC_LIBOBJ invocations to module description.
1500         * m4/long-options.m4: Remove file.
1501         * modules/long-options (Files): Remove it.
1502         (configure.ac): Remove gl_LONG_OPTIONS call.
1503         (Makefile.am): Augment lib_SOURCES.
1504
1505 2011-05-23  Bruno Haible  <bruno@clisp.org>
1506
1507         i-ring: Move AC_LIBOBJ invocations to module description.
1508         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1509         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1510
1511 2011-05-23  Bruno Haible  <bruno@clisp.org>
1512
1513         idcache: Move AC_LIBOBJ invocations to module description.
1514         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1515         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1516
1517 2011-05-23  Bruno Haible  <bruno@clisp.org>
1518
1519         human: Move AC_LIBOBJ invocations to module description.
1520         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1521         * modules/human (Makefile.am): Augment lib_SOURCES.
1522
1523 2011-05-23  Bruno Haible  <bruno@clisp.org>
1524
1525         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1526         * m4/hmac-sha1.m4: Remove file.
1527         * modules/crypto/hmac-sha1 (Files): Remove it.
1528         (configure.ac): Remove gl_HMAC_SHA1 call.
1529         (Makefile.am): Augment lib_SOURCES.
1530
1531 2011-05-23  Bruno Haible  <bruno@clisp.org>
1532
1533         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1534         * m4/hmac-md5.m4: Remove file.
1535         * modules/crypto/hmac-md5 (Files): Remove it.
1536         (configure.ac): Remove gl_HMAC_MD5 call.
1537         (Makefile.am): Augment lib_SOURCES.
1538
1539 2011-05-23  Bruno Haible  <bruno@clisp.org>
1540
1541         hash: Move AC_LIBOBJ invocations to module description.
1542         * m4/hash.m4: Remove file.
1543         * modules/hash (Files): Remove it.
1544         (configure.ac): Remove gl_HASH call.
1545         (Makefile.am): Augment lib_SOURCES.
1546
1547 2011-05-23  Bruno Haible  <bruno@clisp.org>
1548
1549         hard-locale: Move AC_LIBOBJ invocations to module description.
1550         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1551         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1552
1553 2011-05-23  Bruno Haible  <bruno@clisp.org>
1554
1555         getugroups: Move AC_LIBOBJ invocations to module description.
1556         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1557         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1558
1559 2011-05-23  Bruno Haible  <bruno@clisp.org>
1560
1561         gettime: Move AC_LIBOBJ invocations to module description.
1562         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1563         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1564
1565 2011-05-23  Bruno Haible  <bruno@clisp.org>
1566
1567         getndelim2: Move AC_LIBOBJ invocations to module description.
1568         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1569         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1570
1571 2011-05-23  Bruno Haible  <bruno@clisp.org>
1572
1573         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1574         * m4/gc-pbkdf2-sha1.m4: Remove file.
1575         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1576         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1577         (Makefile.am): Augment lib_SOURCES.
1578
1579 2011-05-23  Bruno Haible  <bruno@clisp.org>
1580
1581         fts: Move AC_LIBOBJ invocations to module description.
1582         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1583         * modules/fts (configure.ac): ... to here.
1584
1585 2011-05-23  Bruno Haible  <bruno@clisp.org>
1586
1587         file-type: Move AC_LIBOBJ invocations to module description.
1588         * m4/file-type.m4: Remove file.
1589         * modules/file-type (Files): Remove it.
1590         (configure.ac): Remove gl_FILE_TYPE call.
1591         (Makefile.am): Augment lib_SOURCES.
1592
1593 2011-05-23  Bruno Haible  <bruno@clisp.org>
1594
1595         filenamecat*: Respect rules for use of AC_LIBOBJ.
1596         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1597         Remove AC_LIBOBJ invocation.
1598         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1599         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1600
1601 2011-05-23  Bruno Haible  <bruno@clisp.org>
1602
1603         filemode: Move AC_LIBOBJ invocations to module description.
1604         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1605         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1606
1607 2011-05-23  Bruno Haible  <bruno@clisp.org>
1608
1609         openat-safer: Move AC_LIBOBJ invocations to module description.
1610         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1611         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1612
1613 2011-05-23  Bruno Haible  <bruno@clisp.org>
1614
1615         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1617         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1618
1619 2011-05-23  Bruno Haible  <bruno@clisp.org>
1620
1621         exclude: Move AC_LIBOBJ invocations to module description.
1622         * m4/exclude.m4: Remove file.
1623         * modules/exclude (Files): Remove it.
1624         (configure.ac): Remove gl_EXCLUDE call.
1625         (Makefile.am): Augment lib_SOURCES.
1626
1627 2011-05-23  Bruno Haible  <bruno@clisp.org>
1628
1629         dirname*: Respect rules for use of AC_LIBOBJ.
1630         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1631         invocations.
1632         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1633         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1634
1635 2011-05-23  Bruno Haible  <bruno@clisp.org>
1636
1637         dirent-safer: Move AC_LIBOBJ invocations to module description.
1638         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1639         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1640
1641 2011-05-23  Bruno Haible  <bruno@clisp.org>
1642
1643         crypto/des: Move AC_LIBOBJ invocations to module description.
1644         * m4/des.m4: Remove file.
1645         * modules/crypto/des (Files): Remove it.
1646         (configure.ac): Remove gl_DES call.
1647         (Makefile.am): Augment lib_SOURCES.
1648
1649 2011-05-23  Bruno Haible  <bruno@clisp.org>
1650
1651         cycle-check: Move AC_LIBOBJ invocations to module description.
1652         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1653         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1654
1655 2011-05-23  Bruno Haible  <bruno@clisp.org>
1656
1657         c-strtold: Move AC_LIBOBJ invocations to module description.
1658         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1659         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1660
1661 2011-05-23  Bruno Haible  <bruno@clisp.org>
1662
1663         c-strtod: Move AC_LIBOBJ invocations to module description.
1664         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1665         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1666
1667 2011-05-23  Bruno Haible  <bruno@clisp.org>
1668
1669         crc: Move AC_LIBOBJ invocations to module description.
1670         * m4/crc.m4: Remove file.
1671         * modules/crc (Files): Remove it.
1672         (configure.ac): Remove gl_CRC call.
1673         (Makefile.am): Augment lib_SOURCES.
1674
1675 2011-05-23  Bruno Haible  <bruno@clisp.org>
1676
1677         close-stream: Move AC_LIBOBJ invocations to module description.
1678         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1679         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1680
1681 2011-05-23  Bruno Haible  <bruno@clisp.org>
1682
1683         closeout: Move AC_LIBOBJ invocations to module description.
1684         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1685         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1686
1687 2011-05-23  Bruno Haible  <bruno@clisp.org>
1688
1689         closein: Move AC_LIBOBJ invocations to module description.
1690         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1691         * modules/closein (Makefile.am): Augment lib_SOURCES.
1692
1693 2011-05-23  Bruno Haible  <bruno@clisp.org>
1694
1695         cloexec: Move AC_LIBOBJ invocations to module description.
1696         * m4/cloexec.m4: Remove file.
1697         * modules/cloexec (Files): Remove it.
1698         (configure.ac): Remove gl_CLOEXEC call.
1699         (Makefile.am): Augment lib_SOURCES.
1700
1701 2011-05-23  Bruno Haible  <bruno@clisp.org>
1702
1703         check-version: Move AC_LIBOBJ invocations to module description.
1704         * m4/check-version.m4: Remove file.
1705         * modules/check-version (Files): Remove it.
1706         (configure.ac): Remove gl_CHECK_VERSION call.
1707         (Makefile.am): Augment lib_SOURCES.
1708
1709 2011-05-23  Bruno Haible  <bruno@clisp.org>
1710
1711         chdir-safer: Move AC_LIBOBJ invocations to module description.
1712         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1713         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1714
1715 2011-05-23  Bruno Haible  <bruno@clisp.org>
1716
1717         canonicalize: Move AC_LIBOBJ invocations to module description.
1718         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1719         AC_LIBOBJ invocation.
1720         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1721
1722 2011-05-23  Bruno Haible  <bruno@clisp.org>
1723
1724         canon-host: Move AC_LIBOBJ invocations to module description.
1725         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1726         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1727         instead of gl_CANON_HOST.
1728         (Makefile.am): Augment lib_SOURCES.
1729
1730 2011-05-23  Bruno Haible  <bruno@clisp.org>
1731
1732         backupfile: Move AC_LIBOBJ invocations to module description.
1733         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1734         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1735
1736 2011-05-23  Bruno Haible  <bruno@clisp.org>
1737
1738         argmatch: Move AC_LIBOBJ invocations to module description.
1739         * m4/argmatch.m4: Remove file.
1740         * modules/argmatch (Files): Remove it.
1741         (configure.ac): Remove gl_ARGMATCH call.
1742         (Makefile.am): Augment lib_SOURCES.
1743
1744 2011-05-23  Bruno Haible  <bruno@clisp.org>
1745
1746         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1747         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1748         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1749
1750 2011-05-23  Bruno Haible  <bruno@clisp.org>
1751
1752         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1753         * m4/arcfour.m4: Remove file.
1754         * modules/crypto/arcfour (Files): Remove it.
1755         (configure.ac): Remove gl_ARCFOUR call.
1756         (Makefile.am): Augment lib_SOURCES.
1757
1758 2011-05-22  Bruno Haible  <bruno@clisp.org>
1759
1760         write: Move AC_LIBOBJ invocations to module description.
1761         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1762         * modules/write (configure.ac): ... to here.
1763
1764 2011-05-22  Bruno Haible  <bruno@clisp.org>
1765
1766         wmemset: Move AC_LIBOBJ invocations to module description.
1767         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1768         here...
1769         * modules/wmemset (configure.ac): ... to here.
1770
1771 2011-05-22  Bruno Haible  <bruno@clisp.org>
1772
1773         wmemmove: Move AC_LIBOBJ invocations to module description.
1774         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1775         here...
1776         * modules/wmemmove (configure.ac): ... to here.
1777
1778 2011-05-22  Bruno Haible  <bruno@clisp.org>
1779
1780         wmemcpy: Move AC_LIBOBJ invocations to module description.
1781         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1782         here...
1783         * modules/wmemcpy (configure.ac): ... to here.
1784
1785 2011-05-22  Bruno Haible  <bruno@clisp.org>
1786
1787         wmemcmp: Move AC_LIBOBJ invocations to module description.
1788         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1789         here...
1790         * modules/wmemcmp (configure.ac): ... to here.
1791
1792 2011-05-22  Bruno Haible  <bruno@clisp.org>
1793
1794         wmemchr: Move AC_LIBOBJ invocations to module description.
1795         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1796         here...
1797         * modules/wmemchr (configure.ac): ... to here.
1798
1799 2011-05-22  Bruno Haible  <bruno@clisp.org>
1800
1801         wcswidth: Move AC_LIBOBJ invocations to module description.
1802         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1803         here...
1804         * modules/wcswidth (configure.ac): ... to here.
1805
1806 2011-05-22  Bruno Haible  <bruno@clisp.org>
1807
1808         wcwidth: Respect rules for use of AC_LIBOBJ.
1809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1810         invocation from here...
1811         * modules/wcwidth (configure.ac): ... to here.
1812         (Depends-on): Update conditions.
1813
1814 2011-05-22  Bruno Haible  <bruno@clisp.org>
1815
1816         wctype: Move AC_LIBOBJ invocations to module description.
1817         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1818         invocation from here...
1819         * modules/wctype (configure.ac): ... to here.
1820         (Depends-on): Update conditions.
1821
1822 2011-05-22  Bruno Haible  <bruno@clisp.org>
1823
1824         wctrans: Move AC_LIBOBJ invocations to module description.
1825         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1826         invocation from here...
1827         * modules/wctrans (configure.ac): ... to here.
1828
1829 2011-05-22  Bruno Haible  <bruno@clisp.org>
1830
1831         wctomb: Move AC_LIBOBJ invocations to module description.
1832         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1833         invocations from here...
1834         * modules/wctomb (configure.ac): ... to here.
1835
1836 2011-05-22  Bruno Haible  <bruno@clisp.org>
1837
1838         wctob: Move AC_LIBOBJ invocations to module description.
1839         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1840         gl_PREREQ_WCTOB invocations from here...
1841         * modules/wctob (configure.ac): ... to here.
1842         (Depends-on): Update conditions.
1843
1844 2011-05-22  Bruno Haible  <bruno@clisp.org>
1845
1846         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1847         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1848         here...
1849         * modules/wcsxfrm (configure.ac): ... to here.
1850
1851 2011-05-22  Bruno Haible  <bruno@clisp.org>
1852
1853         wcstok: Move AC_LIBOBJ invocations to module description.
1854         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1855         * modules/wcstok (configure.ac): ... to here.
1856
1857 2011-05-22  Bruno Haible  <bruno@clisp.org>
1858
1859         wcsstr: Move AC_LIBOBJ invocations to module description.
1860         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1861         * modules/wcsstr (configure.ac): ... to here.
1862
1863 2011-05-22  Bruno Haible  <bruno@clisp.org>
1864
1865         wcsspn: Move AC_LIBOBJ invocations to module description.
1866         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1867         * modules/wcsspn (configure.ac): ... to here.
1868
1869 2011-05-22  Bruno Haible  <bruno@clisp.org>
1870
1871         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1872         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1873         gl_PREREQ_WCSRTOMBS invocations from here...
1874         * modules/wcsrtombs (configure.ac): ... to here.
1875
1876 2011-05-22  Bruno Haible  <bruno@clisp.org>
1877
1878         wcsrchr: Move AC_LIBOBJ invocations to module description.
1879         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1880         here...
1881         * modules/wcsrchr (configure.ac): ... to here.
1882
1883 2011-05-22  Bruno Haible  <bruno@clisp.org>
1884
1885         wcspbrk: Move AC_LIBOBJ invocations to module description.
1886         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1887         here...
1888         * modules/wcspbrk (configure.ac): ... to here.
1889
1890 2011-05-22  Bruno Haible  <bruno@clisp.org>
1891
1892         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1893         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1894         gl_PREREQ_WCSNRTOMBS invocations from here...
1895         * modules/wcsnrtombs (configure.ac): ... to here.
1896
1897 2011-05-22  Bruno Haible  <bruno@clisp.org>
1898
1899         wcsnlen: Move AC_LIBOBJ invocations to module description.
1900         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1901         here...
1902         * modules/wcsnlen (configure.ac): ... to here.
1903
1904 2011-05-22  Bruno Haible  <bruno@clisp.org>
1905
1906         wcsncpy: Move AC_LIBOBJ invocations to module description.
1907         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1908         here...
1909         * modules/wcsncpy (configure.ac): ... to here.
1910
1911 2011-05-22  Bruno Haible  <bruno@clisp.org>
1912
1913         wcsncmp: Move AC_LIBOBJ invocations to module description.
1914         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1915         here...
1916         * modules/wcsncmp (configure.ac): ... to here.
1917
1918 2011-05-22  Bruno Haible  <bruno@clisp.org>
1919
1920         wcsncat: Move AC_LIBOBJ invocations to module description.
1921         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1922         here...
1923         * modules/wcsncat (configure.ac): ... to here.
1924
1925 2011-05-22  Bruno Haible  <bruno@clisp.org>
1926
1927         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1928         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1929         from here...
1930         * modules/wcsncasecmp (configure.ac): ... to here.
1931
1932 2011-05-22  Bruno Haible  <bruno@clisp.org>
1933
1934         wcslen: Move AC_LIBOBJ invocations to module description.
1935         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1936         * modules/wcslen (configure.ac): ... to here.
1937
1938 2011-05-22  Bruno Haible  <bruno@clisp.org>
1939
1940         wcsdup: Move AC_LIBOBJ invocations to module description.
1941         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1942         * modules/wcsdup (configure.ac): ... to here.
1943
1944 2011-05-22  Bruno Haible  <bruno@clisp.org>
1945
1946         wcscspn: Move AC_LIBOBJ invocations to module description.
1947         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1948         here...
1949         * modules/wcscspn (configure.ac): ... to here.
1950
1951 2011-05-22  Bruno Haible  <bruno@clisp.org>
1952
1953         wcscpy: Move AC_LIBOBJ invocations to module description.
1954         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1955         * modules/wcscpy (configure.ac): ... to here.
1956
1957 2011-05-22  Bruno Haible  <bruno@clisp.org>
1958
1959         wcscoll: Move AC_LIBOBJ invocations to module description.
1960         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1961         here...
1962         * modules/wcscoll (configure.ac): ... to here.
1963
1964 2011-05-22  Bruno Haible  <bruno@clisp.org>
1965
1966         wcscmp: Move AC_LIBOBJ invocations to module description.
1967         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1968         * modules/wcscmp (configure.ac): ... to here.
1969
1970 2011-05-22  Bruno Haible  <bruno@clisp.org>
1971
1972         wcschr: Move AC_LIBOBJ invocations to module description.
1973         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1974         * modules/wcschr (configure.ac): ... to here.
1975
1976 2011-05-22  Bruno Haible  <bruno@clisp.org>
1977
1978         wcscat: Move AC_LIBOBJ invocations to module description.
1979         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1980         * modules/wcscat (configure.ac): ... to here.
1981
1982 2011-05-22  Bruno Haible  <bruno@clisp.org>
1983
1984         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1985         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1986         here...
1987         * modules/wcscasecmp (configure.ac): ... to here.
1988
1989 2011-05-22  Bruno Haible  <bruno@clisp.org>
1990
1991         wcrtomb: Move AC_LIBOBJ invocations to module description.
1992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1993         invocations from here...
1994         * modules/wcrtomb (configure.ac): ... to here.
1995
1996 2011-05-22  Bruno Haible  <bruno@clisp.org>
1997
1998         wcpncpy: Move AC_LIBOBJ invocations to module description.
1999         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2000         here...
2001         * modules/wcpncpy (configure.ac): ... to here.
2002
2003 2011-05-22  Bruno Haible  <bruno@clisp.org>
2004
2005         wcpcpy: Move AC_LIBOBJ invocations to module description.
2006         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2007         * modules/wcpcpy (configure.ac): ... to here.
2008
2009 2011-05-22  Bruno Haible  <bruno@clisp.org>
2010
2011         waitpid: Move AC_LIBOBJ invocations to module description.
2012         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2013         invocation from here...
2014         * modules/waitpid (configure.ac): ... to here.
2015
2016 2011-05-22  Bruno Haible  <bruno@clisp.org>
2017
2018         utimensat: Move AC_LIBOBJ invocations to module description.
2019         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2020         here...
2021         * modules/utimensat (configure.ac): ... to here.
2022
2023 2011-05-22  Bruno Haible  <bruno@clisp.org>
2024
2025         usleep: Move AC_LIBOBJ invocations to module description.
2026         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2027         here...
2028         * modules/usleep (configure.ac): ... to here.
2029
2030 2011-05-22  Bruno Haible  <bruno@clisp.org>
2031
2032         unlockpt: Move AC_LIBOBJ invocations to module description.
2033         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2034         gl_PREREQ_UNLOCKPT invocations from here...
2035         * modules/unlockpt (configure.ac): ... to here.
2036
2037 2011-05-22  Bruno Haible  <bruno@clisp.org>
2038
2039         unlink: Respect rules for use of AC_LIBOBJ.
2040         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2041         * modules/unlink (configure.ac): ... to here.
2042
2043 2011-05-22  Bruno Haible  <bruno@clisp.org>
2044
2045         uname: Move AC_LIBOBJ invocations to module description.
2046         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2048         here...
2049         * modules/uname (configure.ac): ... to here.
2050
2051 2011-05-22  Bruno Haible  <bruno@clisp.org>
2052
2053         ttyname_r: Move AC_LIBOBJ invocations to module description.
2054         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2055         gl_PREREQ_TTYNAME_R invocations from here...
2056         * modules/ttyname_r (configure.ac): ... to here.
2057
2058 2011-05-22  Bruno Haible  <bruno@clisp.org>
2059
2060         tsearch: Move AC_LIBOBJ invocations to module description.
2061         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2062         invocations from here...
2063         * modules/tsearch (configure.ac): ... to here.
2064
2065 2011-05-22  Bruno Haible  <bruno@clisp.org>
2066
2067         towctrans: Move AC_LIBOBJ invocations to module description.
2068         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2069         AC_LIBOBJ invocation from here...
2070         * modules/towctrans (configure.ac): ... to here.
2071
2072 2011-05-22  Bruno Haible  <bruno@clisp.org>
2073
2074         tmpfile: Move AC_LIBOBJ invocations to module description.
2075         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2076         invocations from here...
2077         * modules/tmpfile (configure.ac): ... to here.
2078
2079 2011-05-22  Bruno Haible  <bruno@clisp.org>
2080
2081         times: Move AC_LIBOBJ invocations to module description.
2082         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2083         * modules/times (configure.ac): ... to here.
2084
2085 2011-05-22  Bruno Haible  <bruno@clisp.org>
2086
2087         time_r: Move AC_LIBOBJ invocations to module description.
2088         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2089         invocations from here...
2090         * modules/time_r (configure.ac): ... to here.
2091
2092 2011-05-22  Bruno Haible  <bruno@clisp.org>
2093
2094         timegm: Move AC_LIBOBJ invocations to module description.
2095         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2096         invocations from here...
2097         * modules/timegm (configure.ac): ... to here.
2098
2099 2011-05-22  Bruno Haible  <bruno@clisp.org>
2100
2101         tcgetsid: Move AC_LIBOBJ invocations to module description.
2102         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2103         and gl_PREREQ_TCGETSID invocations from here...
2104         * modules/tcgetsid (configure.ac): ... to here.
2105         (Depends-on): Update conditions.
2106
2107 2011-05-22  Bruno Haible  <bruno@clisp.org>
2108
2109         symlinkat: Move AC_LIBOBJ invocations to module description.
2110         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2111         here...
2112         * modules/symlinkat (configure.ac): ... to here.
2113
2114 2011-05-22  Bruno Haible  <bruno@clisp.org>
2115
2116         symlink: Move AC_LIBOBJ invocations to module description.
2117         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2118         here...
2119         * modules/symlink (configure.ac): ... to here.
2120
2121 2011-05-22  Bruno Haible  <bruno@clisp.org>
2122
2123         strverscmp: Move AC_LIBOBJ invocations to module description.
2124         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2126         from here...
2127         * modules/strverscmp (configure.ac): ... to here.
2128
2129 2011-05-22  Bruno Haible  <bruno@clisp.org>
2130
2131         strtok_r: Move AC_LIBOBJ invocations to module description.
2132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2133         and gl_PREREQ_STRTOK_R invocations from here...
2134         * modules/strtok_r (configure.ac): ... to here.
2135         (Depends-on): Update conditions.
2136
2137 2011-05-22  Bruno Haible  <bruno@clisp.org>
2138
2139         strtoumax: Move AC_LIBOBJ invocations to module description.
2140         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2142         from here...
2143         * modules/strtoumax (configure.ac): ... to here.
2144
2145 2011-05-22  Bruno Haible  <bruno@clisp.org>
2146
2147         strtoimax: Move AC_LIBOBJ invocations to module description.
2148         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2150         from here...
2151         * modules/strtoimax (configure.ac): ... to here.
2152
2153 2011-05-22  Bruno Haible  <bruno@clisp.org>
2154
2155         strtoull: Move AC_LIBOBJ invocations to module description.
2156         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2158         from here...
2159         * modules/strtoull (configure.ac): ... to here.
2160
2161 2011-05-22  Bruno Haible  <bruno@clisp.org>
2162
2163         strtoll: Move AC_LIBOBJ invocations to module description.
2164         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2166         here...
2167         * modules/strtoll (configure.ac): ... to here.
2168
2169 2011-05-22  Bruno Haible  <bruno@clisp.org>
2170
2171         strtoul: Move AC_LIBOBJ invocations to module description.
2172         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2173         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2174         * modules/strtoul (configure.ac): ... to here.
2175
2176 2011-05-22  Bruno Haible  <bruno@clisp.org>
2177
2178         strtol: Move AC_LIBOBJ invocations to module description.
2179         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2180         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2181         * modules/strtol (configure.ac): ... to here.
2182
2183 2011-05-22  Bruno Haible  <bruno@clisp.org>
2184
2185         strtod: Move AC_LIBOBJ invocations to module description.
2186         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2187         invocations from here...
2188         * modules/strtod (configure.ac): ... to here.
2189
2190 2011-05-22  Bruno Haible  <bruno@clisp.org>
2191
2192         strstr*: Move AC_LIBOBJ invocations to module description.
2193         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2194         invocations from here...
2195         * modules/strstr-simple (configure.ac): ... to here.
2196         * modules/strstr (configure.ac): ... and here.
2197
2198 2011-05-22  Bruno Haible  <bruno@clisp.org>
2199
2200         strsignal: Move AC_LIBOBJ invocations to module description.
2201         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2202         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2203         * modules/strsignal (configure.ac): ... to here.
2204         (Depends-on): Update conditions.
2205
2206 2011-05-22  Bruno Haible  <bruno@clisp.org>
2207
2208         strsep: Move AC_LIBOBJ invocations to module description.
2209         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2211         here...
2212         * modules/strsep (configure.ac): ... to here.
2213
2214 2011-05-22  Bruno Haible  <bruno@clisp.org>
2215
2216         strptime: Move AC_LIBOBJ invocations to module description.
2217         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2218         gl_PREREQ_STRPTIME invocations from here...
2219         * modules/strptime (configure.ac): ... to here.
2220
2221 2011-05-22  Bruno Haible  <bruno@clisp.org>
2222
2223         strpbrk: Move AC_LIBOBJ invocations to module description.
2224         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2225         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2226         here...
2227         * modules/strpbrk (configure.ac): ... to here.
2228
2229 2011-05-22  Bruno Haible  <bruno@clisp.org>
2230
2231         strnlen: Move AC_LIBOBJ invocations to module description.
2232         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2233         invocations from here...
2234         * modules/strnlen (configure.ac): ... to here.
2235
2236 2011-05-22  Bruno Haible  <bruno@clisp.org>
2237
2238         strndup: Move AC_LIBOBJ invocations to module description.
2239         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2240         invocations from here...
2241         * modules/strndup (configure.ac): ... to here.
2242         (Depends-on): Update conditions.
2243
2244 2011-05-22  Bruno Haible  <bruno@clisp.org>
2245
2246         strncat: Move AC_LIBOBJ invocations to module description.
2247         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2248         invocations from here...
2249         * modules/strncat (configure.ac): ... to here.
2250
2251 2011-05-22  Bruno Haible  <bruno@clisp.org>
2252
2253         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2254         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2255         invocations from here...
2256         * modules/strdup (configure.ac): ... to here.
2257         * modules/strdup-posix (configure.ac): ... and here.
2258
2259 2011-05-22  Bruno Haible  <bruno@clisp.org>
2260
2261         strcspn: Move AC_LIBOBJ invocations to module description.
2262         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2263         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2264         here...
2265         * modules/strcspn (configure.ac): ... to here.
2266
2267 2011-05-22  Bruno Haible  <bruno@clisp.org>
2268
2269         strchrnul: Move AC_LIBOBJ invocations to module description.
2270         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2271         gl_PREREQ_STRCHRNUL invocations from here...
2272         * modules/strchrnul (configure.ac): ... to here.
2273
2274 2011-05-22  Bruno Haible  <bruno@clisp.org>
2275
2276         strcasestr*: Move AC_LIBOBJ invocations to module description.
2277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2278         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2279         * modules/strcasestr-simple (configure.ac): ... to here.
2280         * modules/strcasestr (configure.ac): ... and here.
2281
2282 2011-05-22  Bruno Haible  <bruno@clisp.org>
2283
2284         strcase: Move AC_LIBOBJ invocations to module description.
2285         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2286         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2287         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2288         gl_PREREQ_STRNCASECMP invocations from here...
2289         * modules/strcase (configure.ac): ... to here.
2290
2291 2011-05-22  Bruno Haible  <bruno@clisp.org>
2292
2293         stpncpy: Move AC_LIBOBJ invocations to module description.
2294         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2295         here...
2296         * modules/stpncpy (configure.ac): ... to here.
2297
2298 2011-05-22  Bruno Haible  <bruno@clisp.org>
2299
2300         stpcpy: Move AC_LIBOBJ invocations to module description.
2301         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2302         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2303         here...
2304         * modules/stpcpy (configure.ac): ... to here.
2305
2306 2011-05-21  Bruno Haible  <bruno@clisp.org>
2307
2308         stat: Move AC_LIBOBJ invocations to module description.
2309         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2310         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2311         here...
2312         * modules/stat (configure.ac): ... to here.
2313
2314 2011-05-21  Bruno Haible  <bruno@clisp.org>
2315
2316         sleep: Move AC_LIBOBJ invocations to module description.
2317         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2318         * modules/sleep (configure.ac): ... to here.
2319
2320 2011-05-21  Bruno Haible  <bruno@clisp.org>
2321
2322         signbit: Move AC_LIBOBJ invocations to module description.
2323         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2324         * modules/signbit (configure.ac): ... to here.
2325
2326 2011-05-21  Bruno Haible  <bruno@clisp.org>
2327
2328         sigprocmask: Move AC_LIBOBJ invocations to module description.
2329         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2330         gl_PREREQ_SIGPROMASK invocations from here...
2331         * modules/sigprocmask (configure.ac): ... to here.
2332
2333 2011-05-21  Bruno Haible  <bruno@clisp.org>
2334
2335         sigaction: Move AC_LIBOBJ invocations to module description.
2336         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2337         gl_PREREQ_SIGACTION invocations from here...
2338         * modules/sigaction (configure.ac): ... to here.
2339
2340 2011-05-21  Bruno Haible  <bruno@clisp.org>
2341
2342         sig2str: Move AC_LIBOBJ invocations to module description.
2343         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2345         here...
2346         * modules/sig2str (configure.ac): ... to here.
2347
2348 2011-05-21  Bruno Haible  <bruno@clisp.org>
2349
2350         setlocale: Move AC_LIBOBJ invocations to module description.
2351         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2352         gl_PREREQ_SETLOCALE invocations from here...
2353         * modules/setlocale (configure.ac): ... to here.
2354
2355 2011-05-21  Bruno Haible  <bruno@clisp.org>
2356
2357         unsetenv: Move AC_LIBOBJ invocations to module description.
2358         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2359         and gl_PREREQ_UNSETENV invocations from here...
2360         * modules/unsetenv (configure.ac): ... to here.
2361         (Depends-on): Update.
2362
2363 2011-05-21  Bruno Haible  <bruno@clisp.org>
2364
2365         setenv: Move AC_LIBOBJ invocations to module description.
2366         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2367         here...
2368         * modules/setenv (configure.ac): ... to here.
2369
2370 2011-05-21  Bruno Haible  <bruno@clisp.org>
2371
2372         selinux-h: Move AC_LIBOBJ invocations to module description.
2373         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2374         AC_LIBOBJ invocation from here...
2375         * modules/selinux-h (configure.ac): ... to here.
2376
2377 2011-05-21  Bruno Haible  <bruno@clisp.org>
2378
2379         select: Respect rules for use of AC_LIBOBJ.
2380         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2381         here...
2382         * modules/select (configure.ac): ... to here.
2383
2384 2011-05-21  Bruno Haible  <bruno@clisp.org>
2385
2386         scandir: Move AC_LIBOBJ invocations to module description.
2387         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2388         invocations from here...
2389         * modules/scandir (configure.ac): ... to here.
2390
2391 2011-05-21  Bruno Haible  <bruno@clisp.org>
2392
2393         rpmatch: Move AC_LIBOBJ invocations to module description.
2394         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2396         here...
2397         * modules/rpmatch (configure.ac): ... to here.
2398
2399 2011-05-21  Bruno Haible  <bruno@clisp.org>
2400
2401         rmdir: Respect rules for use of AC_LIBOBJ.
2402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2403         * modules/rmdir (configure.ac): ... to here.
2404
2405 2011-05-21  Bruno Haible  <bruno@clisp.org>
2406
2407         renameat: Move AC_LIBOBJ invocations to module description.
2408         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2409         here...
2410         * modules/renameat (configure.ac): ... to here.
2411
2412 2011-05-21  Bruno Haible  <bruno@clisp.org>
2413
2414         rename: Respect rules for use of AC_LIBOBJ.
2415         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2416         here...
2417         * modules/rename (configure.ac): ... to here.
2418
2419 2011-05-21  Bruno Haible  <bruno@clisp.org>
2420
2421         remove: Move AC_LIBOBJ invocations to module description.
2422         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2423         here...
2424         * modules/remove (configure.ac): ... to here.
2425
2426 2011-05-21  Bruno Haible  <bruno@clisp.org>
2427
2428         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2429         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2430         macro.
2431         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2432         * modules/relocatable-lib (configure.ac): ... to here.
2433         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2434         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2435
2436 2011-05-21  Bruno Haible  <bruno@clisp.org>
2437
2438         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2439         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2440         here...
2441         * modules/relocatable-prog (configure.ac): ... to here.
2442
2443 2011-05-21  Bruno Haible  <bruno@clisp.org>
2444
2445         regex: Move AC_LIBOBJ invocations to module description.
2446         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2447         invocations from here...
2448         * modules/regex (configure.ac): ... to here.
2449
2450 2011-05-21  Bruno Haible  <bruno@clisp.org>
2451
2452         realloc-*: Move AC_LIBOBJ invocations to module description.
2453         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2454         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2455         AC_LIBOBJ invocations from here...
2456         * modules/realloc-gnu (configure.ac): ... to here.
2457         * modules/realloc-posix (configure.ac): ... and here.
2458
2459 2011-05-21  Bruno Haible  <bruno@clisp.org>
2460
2461         readutmp: Move AC_LIBOBJ invocations to module description.
2462         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2463         * modules/readutmp (configure.ac): ... to here.
2464
2465 2011-05-21  Bruno Haible  <bruno@clisp.org>
2466
2467         readlinkat: Move AC_LIBOBJ invocations to module description.
2468         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2469         here...
2470         * modules/readlinkat (configure.ac): ... to here.
2471
2472 2011-05-21  Bruno Haible  <bruno@clisp.org>
2473
2474         readlink: Move AC_LIBOBJ invocations to module description.
2475         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2476         gl_PREREQ_READLINK invocations from here...
2477         * modules/readlink (configure.ac): ... to here.
2478
2479 2011-05-21  Bruno Haible  <bruno@clisp.org>
2480
2481         readline: Move AC_LIBOBJ invocations to module description.
2482         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2483         gl_PREREQ_READLINE invocations from here...
2484         * modules/readline (configure.ac): ... to here.
2485
2486 2011-05-21  Bruno Haible  <bruno@clisp.org>
2487
2488         read: Move AC_LIBOBJ invocations to module description.
2489         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2490         * modules/read (configure.ac): ... to here.
2491
2492 2011-05-21  Bruno Haible  <bruno@clisp.org>
2493
2494         rawmemchr: Move AC_LIBOBJ invocations to module description.
2495         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2496         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2497         from here...
2498         * modules/rawmemchr (configure.ac): ... to here.
2499
2500 2011-05-21  Bruno Haible  <bruno@clisp.org>
2501
2502         random_r: Move AC_LIBOBJ invocations to module description.
2503         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2504         gl_PREREQ_RANDOM_R invocations from here...
2505         * modules/random_r (configure.ac): ... to here.
2506
2507 2011-05-21  Bruno Haible  <bruno@clisp.org>
2508
2509         pwrite: Move AC_LIBOBJ invocations to module description.
2510         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2511         * modules/pwrite (configure.ac): ... to here.
2512
2513 2011-05-21  Bruno Haible  <bruno@clisp.org>
2514
2515         putenv: Move AC_LIBOBJ invocations to module description.
2516         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2517         * modules/putenv (configure.ac): ... to here.
2518
2519 2011-05-21  Bruno Haible  <bruno@clisp.org>
2520
2521         login_tty: Move AC_LIBOBJ invocations to module description.
2522         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2523         * modules/login_tty (configure.ac): ... to here.
2524
2525 2011-05-21  Bruno Haible  <bruno@clisp.org>
2526
2527         openpty: Move AC_LIBOBJ invocations to module description.
2528         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2529         * modules/openpty (configure.ac): ... to here.
2530
2531 2011-05-21  Bruno Haible  <bruno@clisp.org>
2532
2533         forkpty: Move AC_LIBOBJ invocations to module description.
2534         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2535         * modules/forkpty (configure.ac): ... to here.
2536
2537 2011-05-21  Bruno Haible  <bruno@clisp.org>
2538
2539         ptsname: Move AC_LIBOBJ invocations to module description.
2540         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2541         invocations from here...
2542         * modules/ptsname (configure.ac): ... to here.
2543
2544 2011-05-21  Bruno Haible  <bruno@clisp.org>
2545
2546         pread: Move AC_LIBOBJ invocations to module description.
2547         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2548         * modules/pread (configure.ac): ... to here.
2549
2550 2011-05-21  Bruno Haible  <bruno@clisp.org>
2551
2552         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2553         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2554         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2555         * modules/posix_spawn (configure.ac): ... to here.
2556         * modules/posix_spawnp (configure.ac): ... and here.
2557
2558 2011-05-21  Bruno Haible  <bruno@clisp.org>
2559
2560         popen: Move AC_LIBOBJ invocations to module description.
2561         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2562         invocations from here...
2563         * modules/popen (configure.ac): ... to here.
2564
2565 2011-05-21  Bruno Haible  <bruno@clisp.org>
2566
2567         poll: Move AC_LIBOBJ invocations to module description.
2568         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2569         invocations from here...
2570         * modules/poll (configure.ac): ... to here.
2571
2572 2011-05-21  Bruno Haible  <bruno@clisp.org>
2573
2574         pipe-posix: Move AC_LIBOBJ invocations to module description.
2575         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2576         * modules/pipe-posix (configure.ac): ... to here.
2577
2578 2011-05-21  Bruno Haible  <bruno@clisp.org>
2579
2580         openat: Respect rules for use of AC_LIBOBJ.
2581         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2582         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2583         * modules/openat (configure.ac): ... to here.
2584
2585 2011-05-21  Bruno Haible  <bruno@clisp.org>
2586
2587         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2588         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2589         invocation from here...
2590         * modules/obstack-printf (configure.ac): ... to here.
2591         * modules/obstack-printf-posix (configure.ac): ... and here.
2592
2593 2011-05-21  Bruno Haible  <bruno@clisp.org>
2594
2595         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2596         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2597         from here...
2598         * modules/nl_langinfo (configure.ac): ... to here.
2599
2600 2011-05-21  Bruno Haible  <bruno@clisp.org>
2601
2602         nanosleep: Move AC_LIBOBJ invocations to module description.
2603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2604         gl_PREREQ_NANOSLEEP invocations from here...
2605         * modules/nanosleep (configure.ac): ... to here.
2606
2607 2011-05-21  Bruno Haible  <bruno@clisp.org>
2608
2609         mountlist: Move AC_LIBOBJ invocations to module description.
2610         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2611         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2612         * modules/mountlist (configure.ac): ... to here.
2613
2614 2011-05-21  Bruno Haible  <bruno@clisp.org>
2615
2616         mktime: Respect rules for use of AC_LIBOBJ.
2617         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2618         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2619         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2620         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2621         * modules/mktime (configure.ac): ... to here.
2622         * modules/mktime-internal (configure.ac): ... and here.
2623         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2624
2625 2011-05-21  Bruno Haible  <bruno@clisp.org>
2626
2627         mkstemps: Move AC_LIBOBJ invocations to module description.
2628         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2629         here...
2630         * modules/mkstemps (configure.ac): ... to here.
2631
2632 2011-05-21  Bruno Haible  <bruno@clisp.org>
2633
2634         mkstemp: Move AC_LIBOBJ invocations to module description.
2635         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2636         gl_PREREQ_MKSTEMP invocations from here...
2637         * modules/mkstemp (configure.ac): ... to here.
2638
2639 2011-05-21  Bruno Haible  <bruno@clisp.org>
2640
2641         mkostemps: Move AC_LIBOBJ invocations to module description.
2642         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2643         here...
2644         * modules/mkostemps (configure.ac): ... to here.
2645
2646 2011-05-21  Bruno Haible  <bruno@clisp.org>
2647
2648         mkostemp: Move AC_LIBOBJ invocations to module description.
2649         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2650         gl_PREREQ_MKOSTEMP invocations from here...
2651         * modules/mkostemp (configure.ac): ... to here.
2652
2653 2011-05-21  Bruno Haible  <bruno@clisp.org>
2654
2655         mknod: Move AC_LIBOBJ invocations to module description.
2656         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2657         * modules/mknod (configure.ac): ... to here.
2658
2659 2011-05-21  Bruno Haible  <bruno@clisp.org>
2660
2661         mkfifoat: Move AC_LIBOBJ invocations to module description.
2662         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2663         here...
2664         * modules/mkfifoat (configure.ac): ... to here.
2665
2666 2011-05-21  Bruno Haible  <bruno@clisp.org>
2667
2668         mkfifo: Respect rules for use of AC_LIBOBJ.
2669         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2670         here...
2671         * modules/mkfifo (configure.ac): ... to here.
2672
2673 2011-05-21  Bruno Haible  <bruno@clisp.org>
2674
2675         mkdtemp: Move AC_LIBOBJ invocations to module description.
2676         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2677         invocations from here...
2678         * modules/mkdtemp (configure.ac): ... to here.
2679
2680 2011-05-21  Bruno Haible  <bruno@clisp.org>
2681
2682         mkdir: Move AC_LIBOBJ invocations to module description.
2683         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2684         * modules/mkdir (configure.ac): ... to here.
2685
2686 2011-05-21  Bruno Haible  <bruno@clisp.org>
2687
2688         memset: Move AC_LIBOBJ invocations to module description.
2689         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2691         here...
2692         * modules/memset (configure.ac): ... to here.
2693
2694 2011-05-21  Bruno Haible  <bruno@clisp.org>
2695
2696         memrchr: Move AC_LIBOBJ invocations to module description.
2697         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2699         here...
2700         * modules/memrchr (configure.ac): ... to here.
2701
2702 2011-05-21  Bruno Haible  <bruno@clisp.org>
2703
2704         mempcpy: Move AC_LIBOBJ invocations to module description.
2705         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2707         here...
2708         * modules/mempcpy (configure.ac): ... to here.
2709
2710 2011-05-21  Bruno Haible  <bruno@clisp.org>
2711
2712         memmove: Move AC_LIBOBJ invocations to module description.
2713         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2715         here...
2716         * modules/memmove (configure.ac): ... to here.
2717
2718 2011-05-21  Bruno Haible  <bruno@clisp.org>
2719
2720         memmem*: Move AC_LIBOBJ invocations to module description.
2721         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2722         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2723         here...
2724         (gl_FUNC_MEMMEM): ... and here...
2725         * modules/memmem-simple (configure.ac): ... to here.
2726         * modules/memmem (configure.ac): ... and here.
2727
2728 2011-05-21  Bruno Haible  <bruno@clisp.org>
2729
2730         memcpy: Move AC_LIBOBJ invocations to module description.
2731         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2732         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2733         here...
2734         * modules/memcpy (configure.ac): ... to here.
2735
2736 2011-05-21  Bruno Haible  <bruno@clisp.org>
2737
2738         memcmp: Simplify autoconf macro.
2739         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2740         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2741         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2742
2743 2011-05-21  Bruno Haible  <bruno@clisp.org>
2744
2745         memcmp: Move AC_LIBOBJ invocations to module description.
2746         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2747         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2748         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2749         * modules/memcmp (configure.ac): ... to here.
2750         (Depends-on): Update conditions.
2751
2752 2011-05-21  Bruno Haible  <bruno@clisp.org>
2753
2754         memchr: Respect rules for use of AC_LIBOBJ.
2755         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2756         invocations from here...
2757         * modules/memchr (configure.ac): ... to here.
2758
2759 2011-05-21  Bruno Haible  <bruno@clisp.org>
2760
2761         mbtowc: Move AC_LIBOBJ invocations to module description.
2762         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2763         invocations from here...
2764         * modules/mbtowc (configure.ac): ... to here.
2765
2766 2011-05-21  Bruno Haible  <bruno@clisp.org>
2767
2768         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2769         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2770         gl_PREREQ_MBSRTOWCS invocations from here...
2771         * modules/mbsrtowcs (configure.ac): ... to here.
2772
2773 2011-05-21  Bruno Haible  <bruno@clisp.org>
2774
2775         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2776         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2777         gl_PREREQ_MBSNRTOWCS invocations from here...
2778         * modules/mbsnrtowcs (configure.ac): ... to here.
2779
2780 2011-05-21  Bruno Haible  <bruno@clisp.org>
2781
2782         mbsinit: Move AC_LIBOBJ invocations to module description.
2783         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2784         invocations from here...
2785         * modules/mbsinit (configure.ac): ... to here.
2786
2787 2011-05-21  Bruno Haible  <bruno@clisp.org>
2788
2789         mbrlen: Move AC_LIBOBJ invocations to module description.
2790         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2791         invocations from here...
2792         * modules/mbrlen (configure.ac): ... to here.
2793
2794 2011-05-21  Bruno Haible  <bruno@clisp.org>
2795
2796         mbrtowc: Respect rules for use of AC_LIBOBJ.
2797         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2798         invocations from here...
2799         * modules/mbrtowc (configure.ac): ... to here.
2800
2801 2011-05-21  Bruno Haible  <bruno@clisp.org>
2802
2803         malloc-*: Move AC_LIBOBJ invocations to module description.
2804         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2805         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2806         AC_LIBOBJ invocations from here...
2807         * modules/malloc-gnu (configure.ac): ... to here.
2808         * modules/malloc-posix (configure.ac): ... and here.
2809
2810 2011-05-21  Bruno Haible  <bruno@clisp.org>
2811
2812         lstat, openat: Respect rules for use of AC_LIBOBJ.
2813         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2815         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2816         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2817         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2818         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2819         here.
2820         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2821
2822 2011-05-21  Bruno Haible  <bruno@clisp.org>
2823
2824         lseek: Move AC_LIBOBJ invocations to module description.
2825         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2826         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2827         * modules/lseek (configure.ac): ... to here.
2828
2829 2011-05-21  Bruno Haible  <bruno@clisp.org>
2830
2831         linkat: Move AC_LIBOBJ invocations to module description.
2832         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2833         here...
2834         * modules/linkat (configure.ac): ... to here.
2835
2836 2011-05-21  Bruno Haible  <bruno@clisp.org>
2837
2838         link: Respect rules for use of AC_LIBOBJ.
2839         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2840         * modules/link (configure.ac): ... to here.
2841
2842 2011-05-21  Bruno Haible  <bruno@clisp.org>
2843
2844         lchown: Move AC_LIBOBJ invocations to module description.
2845         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2846         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2847         * modules/lchown (configure.ac): ... to here.
2848
2849 2011-05-21  Bruno Haible  <bruno@clisp.org>
2850
2851         iswctype: Move AC_LIBOBJ invocations to module description.
2852         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2853         here...
2854         * modules/iswctype (configure.ac): ... to here.
2855
2856 2011-05-21  Bruno Haible  <bruno@clisp.org>
2857
2858         iswblank: Move AC_LIBOBJ invocations to module description.
2859         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2860         here...
2861         * modules/iswblank (configure.ac): ... to here.
2862
2863 2011-05-21  Bruno Haible  <bruno@clisp.org>
2864
2865         atanl: Move AC_LIBOBJ invocations to module description.
2866         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2867         * modules/atanl (configure.ac): ... to here.
2868
2869 2011-05-21  Bruno Haible  <bruno@clisp.org>
2870
2871         acosl: Move AC_LIBOBJ invocations to module description.
2872         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2873         * modules/acosl (configure.ac): ... to here.
2874
2875 2011-05-21  Bruno Haible  <bruno@clisp.org>
2876
2877         asinl: Respect rules for use of AC_LIBOBJ.
2878         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2879         * modules/asinl (configure.ac): ... to here.
2880
2881 2011-05-21  Bruno Haible  <bruno@clisp.org>
2882
2883         tanl: Move AC_LIBOBJ invocations to module description.
2884         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2885         * modules/tanl (configure.ac): ... to here.
2886
2887 2011-05-21  Bruno Haible  <bruno@clisp.org>
2888
2889         cosl: Move AC_LIBOBJ invocations to module description.
2890         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2891         * modules/cosl (configure.ac): ... to here.
2892
2893 2011-05-21  Bruno Haible  <bruno@clisp.org>
2894
2895         sinl: Move AC_LIBOBJ invocations to module description.
2896         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2897         * modules/sinl (configure.ac): ... to here.
2898
2899 2011-05-21  Bruno Haible  <bruno@clisp.org>
2900
2901         logl: Move AC_LIBOBJ invocations to module description.
2902         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2903         * modules/logl (configure.ac): ... to here.
2904
2905 2011-05-21  Bruno Haible  <bruno@clisp.org>
2906
2907         expl: Move AC_LIBOBJ invocations to module description.
2908         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2909         * modules/expl (configure.ac): ... to here.
2910
2911 2011-05-21  Bruno Haible  <bruno@clisp.org>
2912
2913         roundl: Move AC_LIBOBJ invocations to module description.
2914         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2915         * modules/roundl (configure.ac): ... to here.
2916
2917 2011-05-21  Bruno Haible  <bruno@clisp.org>
2918
2919         round: Move AC_LIBOBJ invocations to module description.
2920         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2921         * modules/round (configure.ac): ... to here.
2922
2923 2011-05-21  Bruno Haible  <bruno@clisp.org>
2924
2925         roundf: Move AC_LIBOBJ invocations to module description.
2926         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2927         * modules/roundf (configure.ac): ... to here.
2928
2929 2011-05-21  Bruno Haible  <bruno@clisp.org>
2930
2931         truncl: Move AC_LIBOBJ invocations to module description.
2932         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2933         * modules/truncl (configure.ac): ... to here.
2934
2935 2011-05-21  Bruno Haible  <bruno@clisp.org>
2936
2937         trunc: Move AC_LIBOBJ invocations to module description.
2938         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2939         * modules/trunc (configure.ac): ... to here.
2940
2941 2011-05-21  Bruno Haible  <bruno@clisp.org>
2942
2943         truncf: Move AC_LIBOBJ invocations to module description.
2944         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2945         * modules/truncf (configure.ac): ... to here.
2946
2947 2011-05-21  Bruno Haible  <bruno@clisp.org>
2948
2949         ceill: Move AC_LIBOBJ invocations to module description.
2950         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2951         * modules/ceill (configure.ac): ... to here.
2952
2953 2011-05-21  Bruno Haible  <bruno@clisp.org>
2954
2955         ceil: Move AC_LIBOBJ invocations to module description.
2956         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2957         * modules/ceil (configure.ac): ... to here.
2958
2959 2011-05-21  Bruno Haible  <bruno@clisp.org>
2960
2961         ceilf: Move AC_LIBOBJ invocations to module description.
2962         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2963         * modules/ceilf (configure.ac): ... to here.
2964
2965 2011-05-21  Bruno Haible  <bruno@clisp.org>
2966
2967         floorl: Respect rules for use of AC_LIBOBJ.
2968         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2969         * modules/floorl (configure.ac): ... to here.
2970
2971 2011-05-21  Bruno Haible  <bruno@clisp.org>
2972
2973         floor: Respect rules for use of AC_LIBOBJ.
2974         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2975         * modules/floor (configure.ac): ... to here.
2976
2977 2011-05-21  Bruno Haible  <bruno@clisp.org>
2978
2979         floorf: Move AC_LIBOBJ invocations to module description.
2980         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2981         * modules/floorf (configure.ac): ... to here.
2982
2983 2011-05-20  Bruno Haible  <bruno@clisp.org>
2984
2985         sqrtl: Respect rules for use of AC_LIBOBJ.
2986         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2987         * modules/sqrtl (configure.ac): ... to here.
2988
2989 2011-05-20  Bruno Haible  <bruno@clisp.org>
2990
2991         ldexpl: Respect rules for use of AC_LIBOBJ.
2992         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2993         * modules/ldexpl (configure.ac): ... to here.
2994
2995 2011-05-20  Bruno Haible  <bruno@clisp.org>
2996
2997         frexpl*: Respect rules for use of AC_LIBOBJ.
2998         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2999         invocation from here...
3000         * modules/frexpl (configure.ac): ... to here.
3001         * modules/frexpl-nolibm (configure.ac): ... and here.
3002
3003 2011-05-20  Bruno Haible  <bruno@clisp.org>
3004
3005         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3006         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3007         invocation from here...
3008         * modules/frexp (configure.ac): ... to here.
3009         * modules/frexp-nolibm (configure.ac): ... and here.
3010
3011 2011-05-20  Bruno Haible  <bruno@clisp.org>
3012
3013         isnan: Respect rules for use of AC_LIBOBJ.
3014         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3015         invocations here.
3016         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3017         REPLACE_ISNAN.
3018         * modules/isnand (configure.ac): Likewise.
3019         * modules/isnanl (configure.ac): Likewise.
3020
3021 2011-05-20  Bruno Haible  <bruno@clisp.org>
3022
3023         isnanl*: Respect rules for use of AC_LIBOBJ.
3024         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3025         invocation from here...
3026         * modules/isnanl (configure.ac): ... to here.
3027         * modules/isnanl-nolibm (configure.ac): ... and here.
3028
3029 2011-05-20  Bruno Haible  <bruno@clisp.org>
3030
3031         isnand*: Move AC_LIBOBJ invocations to module description.
3032         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3033         invocation from here...
3034         * modules/isnand (configure.ac): ... to here.
3035         * modules/isnand-nolibm (configure.ac): ... and here.
3036
3037 2011-05-20  Bruno Haible  <bruno@clisp.org>
3038
3039         isnanf*: Move AC_LIBOBJ invocations to module description.
3040         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3041         invocation from here...
3042         * modules/isnanf (configure.ac): ... to here.
3043         * modules/isnanf-nolibm (configure.ac): ... and here.
3044
3045 2011-05-20  Bruno Haible  <bruno@clisp.org>
3046
3047         isnan*: Separate the AC_LIBOBJ invocations.
3048         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3049         AC_LIBOBJ invocation.
3050         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3051         here.
3052         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3053         AC_LIBOBJ invocation.
3054         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3055         here.
3056         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3057         AC_LIBOBJ invocation.
3058         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3059         here.
3060         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3061
3062 2011-05-08  Bruno Haible  <bruno@clisp.org>
3063
3064         isinf: Move AC_LIBOBJ invocations to module description.
3065         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3066         * modules/isinf (configure.ac): ... to here.
3067
3068 2011-05-08  Bruno Haible  <bruno@clisp.org>
3069
3070         isfinite: Move AC_LIBOBJ invocations to module description.
3071         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3072         * modules/isfinite (configure.ac): ... to here.
3073
3074 2011-05-08  Bruno Haible  <bruno@clisp.org>
3075
3076         isblank: Move AC_LIBOBJ invocations to module description.
3077         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3078         here...
3079         * modules/isblank (configure.ac): ... to here.
3080
3081 2011-05-08  Bruno Haible  <bruno@clisp.org>
3082
3083         isapipe: Move AC_LIBOBJ invocations to module description.
3084         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3085         gl_PREREQ_ISAPIPE invocations from here...
3086         * modules/isapipe (configure.ac): ... to here.
3087         (Depends-on): Update condition.
3088
3089 2011-05-08  Bruno Haible  <bruno@clisp.org>
3090
3091         ioctl: Move AC_LIBOBJ invocations to module description.
3092         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3093         invocations from here...
3094         * modules/ioctl (configure.ac): ... to here.
3095         (Depends-on): Update condition.
3096
3097 2011-05-08  Bruno Haible  <bruno@clisp.org>
3098
3099         imaxdiv: Move AC_LIBOBJ invocations to module description.
3100         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3101         invocations from here...
3102         * modules/imaxdiv (configure.ac): ... to here.
3103
3104 2011-05-08  Bruno Haible  <bruno@clisp.org>
3105
3106         imaxabs: Move AC_LIBOBJ invocations to module description.
3107         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3108         invocations from here...
3109         * modules/imaxabs (configure.ac): ... to here.
3110
3111 2011-05-08  Bruno Haible  <bruno@clisp.org>
3112
3113         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3115         AC_LIBOBJ invocations from here...
3116         * modules/getaddrinfo (configure.ac): ... to here.
3117         (Depends-on): Add conditions.
3118
3119 2011-05-08  Bruno Haible  <bruno@clisp.org>
3120
3121         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3122         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3123         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3124         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3125         (gl_PREREQ_INET_PTON): ... from here.
3126         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3127         gl_PREREQ_INET_PTON here.
3128         (Depends-on): Update condition.
3129
3130 2011-05-08  Bruno Haible  <bruno@clisp.org>
3131
3132         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3133         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3134         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3135         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3136         (gl_PREREQ_INET_NTOP): ... from here.
3137         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3138         gl_PREREQ_INET_NTOP here.
3139         (Depends-on): Update condition.
3140
3141 2011-05-08  Bruno Haible  <bruno@clisp.org>
3142
3143         iconv_open: Move AC_LIBOBJ invocations to module description.
3144         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3145         AC_LIBOBJ invocations from here...
3146         * modules/iconv_open (configure.ac): ... to here.
3147
3148 2011-05-08  Bruno Haible  <bruno@clisp.org>
3149
3150         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3151         If module 'iconv_open' is among the main modules and module
3152         'iconv_open-utf' is among the tests dependencies, then
3153         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3154         return the special iconv_t values. Therefore iconv() and iconv_close()
3155         must support these special iconv_t values, already in lib, not only in
3156         tests.
3157         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3159         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3160         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3161         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3162         (Depends-on): Add the dependencies of iconv_open-utf.
3163         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3164         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3165         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3166
3167 2011-05-08  Bruno Haible  <bruno@clisp.org>
3168
3169         group-member: Move AC_LIBOBJ invocations to module description.
3170         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3171         gl_PREREQ_GROUP_MEMBER invocations from here...
3172         * modules/group-member (configure.ac): ... to here.
3173
3174 2011-05-08  Bruno Haible  <bruno@clisp.org>
3175
3176         grantpt: Move AC_LIBOBJ invocations to module description.
3177         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3178         invocations from here...
3179         * modules/grantpt (configure.ac): ... to here.
3180
3181 2011-05-08  Bruno Haible  <bruno@clisp.org>
3182
3183         glob: Move AC_LIBOBJ invocations to module description.
3184         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3185         from here...
3186         * modules/glob (configure.ac): ... to here.
3187
3188 2011-05-08  Bruno Haible  <bruno@clisp.org>
3189
3190         getusershell: Move AC_LIBOBJ invocations to module description.
3191         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3192         Move AC_LIBOBJ invocation from here...
3193         * modules/getusershell (configure.ac): ... to here.
3194         (Depends-on): Update condition.
3195
3196 2011-05-08  Bruno Haible  <bruno@clisp.org>
3197
3198         gettimeofday: Move AC_LIBOBJ invocations to module description.
3199         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3200         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3201         gl_PREREQ_GETTIMEOFDAY invocations from here...
3202         * modules/gettimeofday (configure.ac): ... to here.
3203
3204 2011-05-08  Bruno Haible  <bruno@clisp.org>
3205
3206         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3207         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3208         just gl_FUNC_TZSET.
3209         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3210         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3211         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3212         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3213
3214 2011-05-08  Bruno Haible  <bruno@clisp.org>
3215
3216         getsubopt: Move AC_LIBOBJ invocations to module description.
3217         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3218         gl_PREREQ_GETSUBOPT invocations from here...
3219         * modules/getsubopt (configure.ac): ... to here.
3220
3221 2011-05-08  Bruno Haible  <bruno@clisp.org>
3222
3223         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3224         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3225         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3226         * modules/getpass-gnu (configure.ac): ... to here.
3227
3228 2011-05-08  Bruno Haible  <bruno@clisp.org>
3229
3230         getpass: Move AC_LIBOBJ invocations to module description.
3231         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3232         gl_PREREQ_GETPASS invocations from here...
3233         * modules/getpass (configure.ac): ... to here.
3234
3235 2011-05-08  Bruno Haible  <bruno@clisp.org>
3236
3237         getpagesize: Move AC_LIBOBJ invocations to module description.
3238         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3239         from here...
3240         * modules/getpagesize (configure.ac): ... to here.
3241
3242 2011-05-08  Bruno Haible  <bruno@clisp.org>
3243
3244         getopt: Move AC_LIBOBJ invocations to module description.
3245         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3246         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3247         invocations from here...
3248         * modules/getopt-gnu (configure.ac): ... to here.
3249         * modules/getopt-posix (configure.ac): ... and here.
3250         (Depends-on): Update condition.
3251
3252 2011-05-08  Bruno Haible  <bruno@clisp.org>
3253
3254         getopt, argp: Respect rules for use of AC_LIBOBJ.
3255         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3256         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3257         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3258         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3259
3260 2011-05-08  Bruno Haible  <bruno@clisp.org>
3261
3262         getlogin_r: Move AC_LIBOBJ invocations to module description.
3263         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3264         gl_PREREQ_GETLOGIN_R invocations from here...
3265         * modules/getlogin_r (configure.ac): ... to here.
3266
3267 2011-05-08  Bruno Haible  <bruno@clisp.org>
3268
3269         getlogin: Move AC_LIBOBJ invocations to module description.
3270         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3271         here...
3272         * modules/getlogin (configure.ac): ... to here.
3273
3274 2011-05-08  Bruno Haible  <bruno@clisp.org>
3275
3276         getloadavg: Move AC_LIBOBJ invocations to module description.
3277         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3278         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3279         * modules/getloadavg (configure.ac): ... to here.
3280
3281 2011-05-08  Bruno Haible  <bruno@clisp.org>
3282
3283         gethrxtime: Move AC_LIBOBJ invocations to module description.
3284         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3285         LIB_GETHRXTIME from here...
3286         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3287         invocations from here...
3288         * modules/gethrxtime (configure.ac): ... to here.
3289
3290 2011-05-08  Bruno Haible  <bruno@clisp.org>
3291
3292         gethostname: Move AC_LIBOBJ invocations to module description.
3293         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3294         gl_PREREQ_GETHOSTNAME invocations from here...
3295         * modules/gethostname (configure.ac): ... to here.
3296
3297 2011-05-08  Bruno Haible  <bruno@clisp.org>
3298
3299         getgroups: Move AC_LIBOBJ invocations to module description.
3300         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3301         here...
3302         * modules/getgroups (configure.ac): ... to here.
3303
3304 2011-05-08  Bruno Haible  <bruno@clisp.org>
3305
3306         getdtablesize: Move AC_LIBOBJ invocations to module description.
3307         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3308         invocation from here...
3309         * modules/getdtablesize (configure.ac): ... to here.
3310
3311 2011-05-08  Bruno Haible  <bruno@clisp.org>
3312
3313         getdomainname: Move AC_LIBOBJ invocations to module description.
3314         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3315         gl_PREREQ_GETDOMAINNAME invocations from here...
3316         * modules/getdomainname (configure.ac): ... to here.
3317
3318 2011-05-08  Bruno Haible  <bruno@clisp.org>
3319
3320         getline: Move AC_LIBOBJ invocations to module description.
3321         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3322         invocations from here...
3323         * modules/getline (configure.ac): ... to here.
3324
3325 2011-05-08  Bruno Haible  <bruno@clisp.org>
3326
3327         getline: Simplify.
3328         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3329         It's already handled through the module dependency.
3330
3331 2011-05-08  Bruno Haible  <bruno@clisp.org>
3332
3333         getdelim: Move AC_LIBOBJ invocations to module description.
3334         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3335         and gl_PREREQ_GETDELIM invocations from here...
3336         * modules/getdelim (configure.ac): ... to here.
3337         (Depends-on): Fix condition.
3338
3339 2011-05-08  Bruno Haible  <bruno@clisp.org>
3340
3341         getcwd: Move AC_LIBOBJ invocations to module description.
3342         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3343         invocations from here...
3344         * modules/getcwd (configure.ac): ... to here.
3345
3346 2011-05-08  Bruno Haible  <bruno@clisp.org>
3347
3348         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3349         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3350         here...
3351         * modules/getcwd-lgpl (configure.ac): ... to here.
3352
3353 2011-05-07  Bruno Haible  <bruno@clisp.org>
3354
3355         crypto/gc: Move AC_LIBOBJ invocations to module description.
3356         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3357         * modules/crypto/gc (configure.ac): ... to here.
3358
3359 2011-05-07  Bruno Haible  <bruno@clisp.org>
3360
3361         fwriting: Move AC_LIBOBJ invocations to module description.
3362         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3363         here...
3364         * modules/fwriting (configure.ac): ... to here.
3365
3366 2011-05-07  Bruno Haible  <bruno@clisp.org>
3367
3368         fwritable: Move AC_LIBOBJ invocations to module description.
3369         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3370         here...
3371         * modules/fwritable (configure.ac): ... to here.
3372
3373 2011-05-07  Bruno Haible  <bruno@clisp.org>
3374
3375         futimens: Move AC_LIBOBJ invocations to module description.
3376         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3377         here...
3378         * modules/futimens (configure.ac): ... to here.
3379
3380 2011-05-07  Bruno Haible  <bruno@clisp.org>
3381
3382         ftruncate: Move AC_LIBOBJ invocations to module description.
3383         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3384         gl_PREREQ_FTRUNCATE invocations from here...
3385         * modules/ftruncate (configure.ac): ... to here.
3386
3387 2011-05-07  Bruno Haible  <bruno@clisp.org>
3388
3389         fsync: Move AC_LIBOBJ invocations to module description.
3390         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3391         invocations from here...
3392         * modules/fsync (configure.ac): ... to here.
3393
3394 2011-05-07  Bruno Haible  <bruno@clisp.org>
3395
3396         fsusage: Move AC_LIBOBJ invocations to module description.
3397         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3398         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3399         * modules/fsusage (configure.ac): ... to here.
3400
3401 2011-05-07  Bruno Haible  <bruno@clisp.org>
3402
3403         freopen: Move AC_LIBOBJ invocations to module description.
3404         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3405         invocations from here...
3406         * modules/freopen (configure.ac): ... to here.
3407
3408 2011-05-07  Bruno Haible  <bruno@clisp.org>
3409
3410         free: Move AC_LIBOBJ invocations to module description.
3411         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3412         invocations from here...
3413         * modules/free (configure.ac): ... to here.
3414
3415 2011-05-07  Bruno Haible  <bruno@clisp.org>
3416
3417         freadable: Move AC_LIBOBJ invocations to module description.
3418         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3419         here...
3420         * modules/freadable (configure.ac): ... to here.
3421
3422 2011-05-07  Bruno Haible  <bruno@clisp.org>
3423
3424         fpurge: Move AC_LIBOBJ invocations to module description.
3425         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3426         invocations from here...
3427         * modules/fpurge (configure.ac): ... to here.
3428
3429 2011-05-07  Bruno Haible  <bruno@clisp.org>
3430
3431         fpending: Move AC_LIBOBJ invocations to module description.
3432         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3433         gl_FUNC_FPENDING.
3434         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3435         invocations from here...
3436         * modules/fpending (configure.ac): ... to here.
3437
3438 2011-05-07  Bruno Haible  <bruno@clisp.org>
3439
3440         fopen: Move AC_LIBOBJ invocations to module description.
3441         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3442         invocations from here...
3443         * modules/fopen (configure.ac): ... to here.
3444
3445 2011-05-07  Bruno Haible  <bruno@clisp.org>
3446
3447         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3448         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3449         gl_FUNC_FNMATCH_POSIX.
3450         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3451         invocations from here...
3452         * modules/fnmatch (configure.ac): ... to here.
3453         * modules/fnmatch-gnu (configure.ac): ... and here.
3454
3455 2011-05-07  Bruno Haible  <bruno@clisp.org>
3456
3457         flock: Move AC_LIBOBJ invocations to module description.
3458         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3459         invocations from here...
3460         * modules/flock (configure.ac): ... to here.
3461
3462 2011-05-07  Bruno Haible  <bruno@clisp.org>
3463
3464         fileblocks: Move AC_LIBOBJ invocations to module description.
3465         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3466         gl_PREREQ_FILEBLOCKS invocations from here...
3467         * modules/fileblocks (configure.ac): ... to here.
3468
3469 2011-05-06  Bruno Haible  <bruno@clisp.org>
3470
3471         fflush: Move AC_LIBOBJ invocations to module description.
3472         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3473         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3474         invocations from here...
3475         * modules/fflush (configure.ac): ... to here.
3476
3477 2011-05-06  Bruno Haible  <bruno@clisp.org>
3478
3479         fdopendir: Move AC_LIBOBJ invocations to module description.
3480         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3481         here...
3482         * modules/fdopendir (configure.ac): ... to here.
3483         (Depends-on): Improve conditions.
3484
3485 2011-05-06  Bruno Haible  <bruno@clisp.org>
3486
3487         _Exit: Move AC_LIBOBJ invocations to module description.
3488         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3489         invocations from here...
3490         * modules/_Exit (configure.ac): ... to here.
3491
3492 2011-05-21  Bruno Haible  <bruno@clisp.org>
3493
3494         euidaccess: Respect rules for use of AC_LIBOBJ.
3495         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3496         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3497         from here...
3498         * modules/euidaccess (configure.ac): ... to here.
3499
3500 2011-05-06  Bruno Haible  <bruno@clisp.org>
3501
3502         error: Move AC_LIBOBJ invocations to module description.
3503         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3504         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3505         invocations from here...
3506         * modules/error (configure.ac): ... to here.
3507
3508 2011-05-06  Bruno Haible  <bruno@clisp.org>
3509
3510         duplocale: Move AC_LIBOBJ invocations to module description.
3511         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3512         gl_PREREQ_DUPLOCALE invocations from here...
3513         * modules/duplocale (configure.ac): ... to here.
3514
3515 2011-05-05  Bruno Haible  <bruno@clisp.org>
3516
3517         dirfd: Move AC_LIBOBJ invocations to module description.
3518         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3519         gl_FUNC_DIRFD.
3520         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3521         here...
3522         * modules/dirfd (configure.ac): ... to here.
3523         (Depends-on): Fix condition.
3524
3525 2011-05-05  Bruno Haible  <bruno@clisp.org>
3526
3527         chown: Respect rules for use of AC_LIBOBJ.
3528         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3529         * modules/chown (configure.ac): ... to here.
3530
3531 2011-05-05  Bruno Haible  <bruno@clisp.org>
3532
3533         chdir-long: Move AC_LIBOBJ invocations to module description.
3534         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3535         gl_PREREQ_CHDIR_LONG invocations from here...
3536         * modules/chdir-long (configure.ac): ... to here.
3537
3538 2011-05-05  Bruno Haible  <bruno@clisp.org>
3539
3540         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3541         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3542         from here...
3543         * modules/canonicalize-lgpl (configure.ac): ... to here.
3544
3545 2011-05-05  Bruno Haible  <bruno@clisp.org>
3546
3547         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3548         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3549         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3550         REPLACE_CALLOC.
3551         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3552         * modules/calloc-gnu (configure.ac): Likewise.
3553
3554 2011-05-05  Bruno Haible  <bruno@clisp.org>
3555
3556         btowc: Move AC_LIBOBJ invocations to module description.
3557         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3558         invocations from here...
3559         * modules/btowc (configure.ac): ... to here.
3560
3561 2011-05-21  Bruno Haible  <bruno@clisp.org>
3562
3563         atexit: Move AC_LIBOBJ invocations to module description.
3564         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3565         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3566         here...
3567         * modules/atexit (configure.ac): ... to here.
3568
3569 2011-05-05  Bruno Haible  <bruno@clisp.org>
3570
3571         atoll: Move AC_LIBOBJ invocations to module description.
3572         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3573         invocations from here...
3574         * modules/atoll (configure.ac): ... to here.
3575
3576 2011-05-05  Bruno Haible  <bruno@clisp.org>
3577
3578         argz: Move AC_LIBOBJ invocations to module description.
3579         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3580         * modules/argz (configure.ac): ... to here.
3581
3582 2011-05-05  Bruno Haible  <bruno@clisp.org>
3583
3584         alphasort: Move AC_LIBOBJ invocations to module description.
3585         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3586         gl_PREREQ_ALPHASORT invocations from here...
3587         * modules/alphasort (configure.ac): ... to here.
3588
3589 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3590
3591         verify: new macro verify_expr; verify_true deprecated
3592         * NEWS: Mention this.
3593         * doc/verify.texi (Compile-time Assertions): Document this.
3594         * lib/verify.h (verify_true): Deprecate.
3595         (verify_expr): New macro.
3596         * tests/test-verify.c (function): Test verify_expr.
3597
3598 2011-06-14  Jim Meyering  <meyering@redhat.com>
3599
3600         init.sh: give more portable redirection-related advice in a comment
3601         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3602         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3603         for lots of discussion.  Stefano Lattarini suggested the solution
3604         of putting "9>&2" after the command.  Reported by Bruno Haible.
3605
3606 2011-06-13  Bruno Haible  <bruno@clisp.org>
3607
3608         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3609         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3610         'none'.
3611
3612 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3613
3614         ftoastr: use strtof only if HAVE_STRTOF
3615         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3617         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3618         * modules/ftoastr (configure.ac): Check for strtof.
3619
3620 2011-06-13  Bruno Haible  <bruno@clisp.org>
3621
3622         gnulib-tool: Addendum to 2011-06-08 commit.
3623         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3624         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3625
3626 2011-06-13  Bruno Haible  <bruno@clisp.org>
3627
3628         fseeko: Provide a non-inline replacement of fseek().
3629         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3630         * modules/fseeko (Depends-on): Add fseek.
3631         * modules/fseek (License): Change to LGPLv2+.
3632
3633 2011-06-13  Bruno Haible  <bruno@clisp.org>
3634
3635         ftello: Provide a non-inline replacement of ftell().
3636         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3637         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3638         not have ftello() (such as on mingw).
3639         * modules/ftello (Depends-on): Add ftell.
3640         * modules/ftell (License): Change to LGPLv2+.
3641
3642 2011-05-07  Bruno Haible  <bruno@clisp.org>
3643
3644         ftell: Move AC_LIBOBJ invocations to module description.
3645         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3646         * modules/ftell (configure.ac): ... to here.
3647
3648 2011-05-07  Bruno Haible  <bruno@clisp.org>
3649
3650         ftello: Respect rules for use of AC_LIBOBJ.
3651         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3652         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3653         here...
3654         * modules/ftello (configure.ac): ... to here.
3655
3656 2011-05-07  Bruno Haible  <bruno@clisp.org>
3657
3658         fseeko: Simplify.
3659         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3660         (gl_FUNC_FSEEKO): Inline it here.
3661
3662 2011-05-07  Bruno Haible  <bruno@clisp.org>
3663
3664         fseek: Move AC_LIBOBJ invocations to module description.
3665         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3666         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3667         * modules/fseek (configure.ac): ... to here.
3668
3669 2011-05-07  Bruno Haible  <bruno@clisp.org>
3670
3671         fseek: Respect rules for use of AC_LIBOBJ.
3672         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3673         here...
3674         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3675
3676 2011-05-07  Bruno Haible  <bruno@clisp.org>
3677
3678         fseeko: Respect rules for use of AC_LIBOBJ.
3679         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3680         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3681         here...
3682         * modules/fseeko (configure.ac): ... to here.
3683
3684 2011-06-13  Bruno Haible  <bruno@clisp.org>
3685
3686         gnulib-tool: Allow comments in the 'Depends-on' section.
3687         * doc/gnulib.texi (Module description): Mention comment syntax in the
3688         Depends-on section.
3689         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3690
3691 2011-06-13  Bruno Haible  <bruno@clisp.org>
3692
3693         file-set.h: guard __attibute__ use, now that it's not always defined
3694         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3695         versions that support it.  This fixes a coreutils build failure with
3696         the vendor cc on HP-UX 11.31.
3697
3698 2011-06-12  Bruno Haible  <bruno@clisp.org>
3699
3700         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3701         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3702         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3703         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3704         (acl, aclsort): New declarations.
3705         (aclv_nontrivial): New declaration.
3706         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3707         (file_has_acl): Read also the second kind of HP-UX ACLs.
3708         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3709         kind of HP-UX ACLs if the first kind fails.
3710         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3711         second kind of HP-UX ACLs.
3712         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3713         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3714         agree.
3715         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3716         hpuxjfs.
3717         Handle hpuxjfs.
3718         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3719         hpuxjfs.
3720         Handle hpuxjfs.
3721         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3722         (func_test_same_acls): Use both lsacl and getacl.
3723         Handle hpuxjfs.
3724         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3725         (func_test_same_acls): Use both lsacl and getacl.
3726         Handle hpuxjfs.
3727
3728 2011-06-12  Bruno Haible  <bruno@clisp.org>
3729
3730         acl: Complete the 2010-08-10 fix.
3731         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3732         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3733         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3734         explicitly.
3735         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3736         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3737
3738 2011-06-12  Bruno Haible  <bruno@clisp.org>
3739
3740         spawn-pipe tests: Comments.
3741         * tests/test-spawn-pipe-child.c (main): Update comment.
3742         Reported by James Youngman <jay@gnu.org>.
3743
3744 2011-06-11  James Youngman  <jay@gnu.org>
3745
3746         New module 'stat-size'.
3747         * modules/stat-size: New module.  Provides macros for accessing
3748         file size information in instances of struct stat.  Depends on the
3749         fileblocks module because it calls st_blocks.
3750         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3751         * doc/gnulib.texi: Include stat-size.texi.
3752         * doc/stat-size.texi: Documentation for this module.
3753         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3754         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3755         AC_STRUCT_ST_BLOCKS.
3756
3757 2011-06-09  Bruno Haible  <bruno@clisp.org>
3758
3759         thread: Support pthreads-win32.
3760         * lib/glthread/thread.h (gl_thread_self): Define differently on
3761         pthreads-win32.
3762         (gl_null_thread): New declaration.
3763         (gl_thread_self_pointer): New macro.
3764         * lib/glthread/thread.c (gl_null_thread): New constant.
3765         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3766         gl_thread_self.
3767         * tests/test-tls.c: Likewise.
3768         Suggested by Paul Eggert. Reported by Eric Blake.
3769
3770 2011-06-09  Bruno Haible  <bruno@clisp.org>
3771
3772         thread: Fix confusion between NULL and 0.
3773         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3774         Reported by Paul Eggert.
3775
3776 2011-06-09  Bruno Haible  <bruno@clisp.org>
3777
3778         spawn-pipe tests: Avoid test failure on HP-UX 11.
3779         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3780         is closed.
3781
3782 2011-06-09  Bruno Haible  <bruno@clisp.org>
3783
3784         acl tests: Fix compilation error on HP-UX 11.
3785         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3786
3787 2011-06-09  Bruno Haible  <bruno@clisp.org>
3788
3789         rmdir: Avoid test failure on HP-UX 10.20.
3790         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3791         EEXIST.
3792
3793 2011-06-08  Eric Blake  <eblake@redhat.com>
3794
3795         perror: fix test on mingw
3796         * modules/perror-tests (Depends-on): Add dup2.
3797
3798         strerror_r-posix: fix on MacOS
3799         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3800         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3801         logic bug.
3802         * lib/strerror_r.c (strerror_r): Fix the bug.
3803         * lib/strerror.c (strerror): Likewise.
3804         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3805         problem.
3806         * doc/posix-functions/strerror.texi (strerror): Likewise.
3807         * doc/posix-functions/perror.texi (perror): Likewise.
3808         * tests/test-strerror.c (main): Enhance test.
3809         * tests/test-strerror_r.c (main): Likewise.
3810
3811 2011-06-08  Bruno Haible  <bruno@clisp.org>
3812
3813         gnulib-tool: Better isolation between different gnulib-tool invocations.
3814         * gnulib-tool: New option --witness-c-macro.
3815         (witness_c_macro): New variable.
3816         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3817         AM_CPPFLAGS define it as a C macro.
3818         (func_emit_tests_Makefile_am): Likewise.
3819         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3820         read it from there.
3821         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3822         m4_define, not AC_DEFUN.
3823         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3824         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3825         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3826         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3827         s|...|...|, to substitute the values of the GNULIB_* module indicator
3828         variables.
3829         * modules/dirent (Makefile.am): Likewise.
3830         * modules/fcntl-h (Makefile.am): Likewise.
3831         * modules/iconv-h (Makefile.am): Likewise.
3832         * modules/langinfo (Makefile.am): Likewise.
3833         * modules/locale (Makefile.am): Likewise.
3834         * modules/math (Makefile.am): Likewise.
3835         * modules/netdb (Makefile.am): Likewise.
3836         * modules/poll-h (Makefile.am): Likewise.
3837         * modules/pty (Makefile.am): Likewise.
3838         * modules/search (Makefile.am): Likewise.
3839         * modules/signal (Makefile.am): Likewise.
3840         * modules/spawn (Makefile.am): Likewise.
3841         * modules/stdio (Makefile.am): Likewise.
3842         * modules/stdlib (Makefile.am): Likewise.
3843         * modules/string (Makefile.am): Likewise.
3844         * modules/sys_ioctl (Makefile.am): Likewise.
3845         * modules/sys_select (Makefile.am): Likewise.
3846         * modules/sys_socket (Makefile.am): Likewise.
3847         * modules/sys_stat (Makefile.am): Likewise.
3848         * modules/sys_times (Makefile.am): Likewise.
3849         * modules/sys_utsname (Makefile.am): Likewise.
3850         * modules/sys_wait (Makefile.am): Likewise.
3851         * modules/termios (Makefile.am): Likewise.
3852         * modules/time (Makefile.am): Likewise.
3853         * modules/unistd (Makefile.am): Likewise.
3854         * modules/wchar (Makefile.am): Likewise.
3855
3856 2011-06-08  Eric Blake  <eblake@redhat.com>
3857
3858         strerror: simplify replacement
3859         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3860         * modules/strerror (configure.ac): No prereqs needed here...
3861         * modules/strerror-override (configure.ac): ...but this needs it.
3862         (Files): Add file for needed prereq macro.
3863
3864 2011-06-08  Bruno Haible  <bruno@clisp.org>
3865
3866         strerror_r-posix: Tweaks.
3867         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3868         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3870         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3871         (gl_FUNC_STRERROR_R): ... to here.
3872         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3873
3874 2011-06-07  Eric Blake  <eblake@redhat.com>
3875
3876         perror: document fixed bugs
3877         * doc/posix-functions/perror.texi (perror): Document recent
3878         patches.
3879
3880 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3881
3882         stat-time: get_stat_birthtime failure is better-defined
3883         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3884         return a timestamp whose tv_sec and tv_nsec values are both -1.
3885         Previously, the spec said only that the tv_nsec value was negative.
3886         This upward-compatible change simplifies GNU tar a bit.
3887
3888 2011-06-07  Eric Blake  <eblake@redhat.com>
3889
3890         strerror_r-posix: work around cygwin 1.7.9
3891         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3892         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3893         bug without replacing strerror_r.
3894         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3895         strerror_r is buggy, but without requiring strerror_r compilation.
3896         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3897
3898         test-perror: relax test to ignore cygwin bug
3899         * tests/test-perror2.c (main): Relax test on requiring detection
3900         of stream errors, and use unbuffered stream.
3901         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3902         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3903         * doc/posix-functions/fputc.texi (fputc): Likewise.
3904         * doc/posix-functions/fputs.texi (fputs): Likewise.
3905         * doc/posix-functions/fputws.texi (fputws): Likewise.
3906         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3907         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3908         * doc/posix-functions/getopt.texi (getopt): Likewise.
3909         * doc/posix-functions/perror.texi (perror): Likewise.
3910         * doc/posix-functions/printf.texi (printf): Likewise.
3911         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3912         * doc/posix-functions/psignal.texi (psignal): Likewise.
3913         * doc/posix-functions/putc.texi (putc): Likewise.
3914         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3915         Likewise.
3916         * doc/posix-functions/putchar.texi (putchar): Likewise.
3917         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3918         Likewise.
3919         * doc/posix-functions/puts.texi (puts): Likewise.
3920         * doc/posix-functions/putwc.texi (putwc): Likewise.
3921         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3922         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3923         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3924         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3925         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3926         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3927         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3928         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3929
3930 2011-05-22  Bruno Haible  <bruno@clisp.org>
3931
3932         strerror: Move AC_LIBOBJ invocations to module description.
3933         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3934         gl_PREREQ_STRERROR invocations from here...
3935         * modules/strerror (configure.ac): ... to here.
3936
3937 2011-05-21  Bruno Haible  <bruno@clisp.org>
3938
3939         perror: Use common idiom.
3940         * modules/perror (configure.ac): Reorder statements.
3941
3942 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3943
3944         tests: fix usage message in 'mktempd_'
3945         * tests/init.sh (mktempd_): In the usage message, use literal
3946         'mktempd_', not '$ME' (which is even undefined), as the name of
3947         the subroutine.
3948
3949 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3950
3951         tests init: new function 'fatal_', for hard errors
3952         Before this patch, the only way offered by tests/init.sh to
3953         properly signal a hard error was the `framework_failure_'
3954         function.  But the error message issued by that function,
3955         as its name would suggest, refers to a set-up failure in the
3956         testsuite, while hard errors can obviously also be due to
3957         other reasons.  The best way to fix this inconsistency is to
3958         introduce a new function with a more general error message.
3959         * tests/init.sh (fatal_): New function.
3960
3961 2011-06-06  Eric Blake  <eblake@redhat.com>
3962
3963         canonicalize-lgpl: use common idiom
3964         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3965         over newer POSIX -Rf.
3966         Reported by Bruno Haible.
3967
3968         canonicalize-lgpl: work around AIX realpath bug
3969         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3970         * doc/posix-functions/realpath.texi (realpath): Document it.
3971         Reported by Bruno Haible.
3972
3973         strerror: work around FreeBSD bug
3974         * lib/strerror.c (strerror): Special case 0.
3975         Reported by Bruno Haible.
3976
3977         strerror-override: avoid bloating errno module
3978         * modules/errno (Files, configure.ac): Move replacement strings...
3979         * modules/strerror-override: ...to new module.
3980         * modules/strerror (Depends-on): Add strerror-override.
3981         * modules/strerror_r-posix (Depends-on): Likewise.
3982         * MODULES.html.sh: Document new module.
3983         Reported by Bruno Haible.
3984
3985 2011-06-06  Bruno Haible  <bruno@clisp.org>
3986
3987         spawn-pipe tests: Rename program.
3988         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3989         * tests/test-spawn-pipe-child.c: Update comment.
3990         * tests/test-spawn-pipe.sh: Update.
3991         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3992
3993         spawn-pipe tests: Link the child program only against libc.
3994         * tests/test-spawn-pipe-child.c: New file, extracted from
3995         tests/test-spawn-pipe.c.
3996         (main): Expect only one argument.
3997         (is_open): New function, copied from tests/test-pipe.c.
3998         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3999         (child_main): Remove function.
4000         (test_pipe): Pass only one argument to the child program.
4001         (main): Remove child process code. Expect the child program's name as
4002         first argument.
4003         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4004         argument.
4005         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4006         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4007         test-spawn-pipe-child against no libraries.
4008
4009 2011-06-06  Bruno Haible  <bruno@clisp.org>
4010
4011         careadlinkat: Avoid mismatch between ssize_t and int.
4012         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4013         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4014
4015 2011-06-06  Jim Meyering  <meyering@redhat.com>
4016
4017         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4018         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4019         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4020
4021 2011-06-05  Bruno Haible  <bruno@clisp.org>
4022
4023         ansi-c++-opt: Interoperability with libtool.
4024         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4025         set the variable to "no", not to ":".
4026         * NEWS: Mention the change.
4027
4028 2011-06-05  Bruno Haible  <bruno@clisp.org>
4029
4030         acl: Fix test failure on AIX 7.
4031         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4032         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4033
4034 2011-06-05  Bruno Haible  <bruno@clisp.org>
4035
4036         pipe-filter-ii: Fix test failure on AIX and IRIX.
4037         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4038         with EAGAIN, retry with a smaller buffer size.
4039
4040 2011-06-05  Bruno Haible  <bruno@clisp.org>
4041
4042         localename: Fix link dependencies.
4043         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4044         * modules/localename-tests (Makefile.am): Link test-localename with
4045         $(LIBTHREAD).
4046
4047 2011-06-05  Bruno Haible  <bruno@clisp.org>
4048
4049         error: Avoid gcc warning.
4050         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4051
4052 2011-06-05  Bruno Haible  <bruno@clisp.org>
4053
4054         unsetenv: Avoid gcc warning.
4055         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4056
4057 2011-06-05  Bruno Haible  <bruno@clisp.org>
4058
4059         setenv: Avoid gcc warning.
4060         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4061
4062 2011-06-05  Bruno Haible  <bruno@clisp.org>
4063
4064         sys_select: Ensure memset is declared also on AIX 7.
4065         * lib/sys_select.in.h: Include <string.h> also on AIX.
4066         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4067         self-contained also on AIX 7.1.
4068
4069 2011-06-04  Jim Meyering  <meyering@redhat.com>
4070
4071         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4072         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4073         function name, "error".
4074         (_gl_translatable_diag_func_re): New configurable variable.
4075
4076 2011-06-04  Bruno Haible  <bruno@clisp.org>
4077
4078         getopt: Avoid gcc warning.
4079         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4080
4081 2011-06-04  Bruno Haible  <bruno@clisp.org>
4082
4083         strerror_r: Fix comments.
4084         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4085         commit.
4086
4087 2011-06-04  Bruno Haible  <bruno@clisp.org>
4088
4089         perror: Fix compilation error.
4090         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4091         Undefine fprintf, not sprintf.
4092         * modules/perror (Depends-on): Remove intprops, verify.
4093
4094 2011-06-04  Bruno Haible  <bruno@clisp.org>
4095
4096         setlocale: Enable replacement on Cygwin 1.5.
4097         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4098         Cygwin 1.5.x.
4099         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4100         LC_CTYPE category also exists on Cygwin 1.5.x.
4101
4102 2011-06-04  Bruno Haible  <bruno@clisp.org>
4103
4104         strerror-override: Don't disable symbol renamings.
4105         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4106         * lib/strerror-override.c: Include config.h.
4107         (strerror_override): Don't undefine.
4108
4109 2011-06-03  Bruno Haible  <bruno@clisp.org>
4110
4111         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4112         * lib/localename.h: Update copyright header.
4113         * lib/localename.c: Likewise.
4114         * lib/relocatable.h: Likewise.
4115         * lib/relocatable.c: Likewise.
4116
4117 2011-06-02  Bruno Haible  <bruno@clisp.org>
4118
4119         doc: Fix a module name.
4120         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4121
4122 2011-06-02  Bruno Haible  <bruno@clisp.org>
4123
4124         pipe2: Remove dependency on 'nonblocking' module.
4125         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4126         O_NONBLOCK is defined by gnulib.
4127         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4128         is zero.
4129         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4130         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4131         defined by gnulib.
4132         (get_nonblocking_flag): New function.
4133         (main): Test O_NONBLOCK flag only if it is nonzero.
4134         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4135
4136 2011-06-03  Jim Meyering  <meyering@redhat.com>
4137
4138         maint: three new prohibit-header-without-use rules
4139         Prohibit use of cloexec.h, posixver.h, same.h without use.
4140         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4141         (sc_prohibit_posixver_without_use): Likewise.
4142         (sc_prohibit_same_without_use): Likewise.
4143
4144 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4145
4146         allocator: 'die' routine is now given requested size
4147         * lib/allocator.h (struct allocator.die): New size arg.
4148         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4149         If the actual problem is an ssize_t limitation, not a size_t or
4150         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4151
4152 2011-06-01  Eric Blake  <eblake@redhat.com>
4153
4154         strerror: drop strerror_r dependency
4155         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4156         * lib/strerror-override.c (strerror_override): ...to new file.
4157         * lib/strerror-override.h: Add prototype.
4158         * lib/strerror-impl.h: Delete.
4159         * lib/strerror.c (strerror): New implementation.
4160         * modules/errno (Files): Add new files.
4161         (configure.ac): Compile new file as appropriate.
4162         * modules/strerror (Files): Drop unused file.
4163         (Depends-on): Drop strerror_r-posix.
4164         * MODULES.html.sh: Document strerror_r-posix.
4165         Requested by Sam Steingold.
4166
4167         perror: call strerror_r directly
4168         * modules/perror (Files): Drop strerror-impl.h.
4169         * lib/perror.c (perror): Use our own stack buffer, rather than
4170         calling a wrapper that uses static storage.
4171         * doc/posix-functions/perror.texi (perror): Document a limitation
4172         of our replacement.
4173
4174         strerror_r: fix includes for FreeBSD
4175         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4176         since we use abort on some platforms.
4177         Reported by Matthias Bolte.
4178
4179 2011-05-31  Bruno Haible  <bruno@clisp.org>
4180
4181         Fix link errors in tests: openat-die uses gettext-h.
4182         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4183         against $(LIBINTL).
4184         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4185         against $(LIBINTL).
4186         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4187         $(LIBINTL).
4188         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4189         against $(LIBINTL).
4190         * modules/linkat-tests (Makefile.am): Link test-linkat against
4191         $(LIBINTL).
4192         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4193         $(LIBINTL).
4194         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4195         against $(LIBINTL).
4196         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4197         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4198         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4199         $(LIBINTL).
4200         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4201         $(LIBINTL).
4202         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4203         $(LIBINTL).
4204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4205
4206 2011-05-31  Bruno Haible  <bruno@clisp.org>
4207
4208         Fix link errors in tests: wait-process uses gettext-h.
4209         * modules/nonblocking-pipe-tests (Makefile.am): Set
4210         test_nonblocking_pipe_main_LDADD.
4211         * modules/nonblocking-socket-tests (Makefile.am): Link
4212         test-nonblocking-socket-main against $(LIBINTL).
4213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4214
4215 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4216
4217         assert-h: work around 'verify' incompatibility
4218         * lib/verify.h: Use @...@ directives, not ifdef.
4219         * modules/assert-h (assert.h): Implement the directives.
4220         (assert.h): Substitute the symbol-prefix more consistently.
4221
4222 2011-05-29  Jim Meyering  <meyering@redhat.com>
4223
4224         trim: remove three superfluous assignments
4225         * lib/trim.c (trim2): Remove three superfluous assignments
4226         and correct brace positioning.
4227
4228 2011-05-29  Bruno Haible  <bruno@clisp.org>
4229
4230         wctype-h: Avoid namespace pollution on Solaris 2.6.
4231         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4232         identifiers.
4233         * doc/posix-headers/wctype.texi: Mention the problem.
4234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4235
4236 2011-05-28  Jim Meyering  <meyering@redhat.com>
4237
4238         parse-datetime.y: accommodate -Wstrict-overflow
4239         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4240         placate -Wstrict-overflow.
4241
4242         trim: avoid a warning from -O2 -Wstrict-overflow
4243         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4244
4245 2011-05-29  Bruno Haible  <bruno@clisp.org>
4246
4247         gnulib-tool: Fix bug in yesterday's commit.
4248         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4249         twice.
4250
4251 2011-05-29  Bruno Haible  <bruno@clisp.org>
4252
4253         Allow multiple gnulib generated include files to be combined.
4254         * gnulib-tool (func_compute_include_guard_prefix): New function.
4255         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4256         ${gl_include_guard_prefix} references.
4257         (func_import, func_create_testdir): Invoke
4258         func_compute_include_guard_prefix.
4259         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4260         * lib/ctype.in.h: Likewise.
4261         * lib/dirent.in.h: Likewise.
4262         * lib/errno.in.h: Likewise.
4263         * lib/fcntl.in.h: Likewise.
4264         * lib/float.in.h: Likewise.
4265         * lib/getopt.in.h: Likewise.
4266         * lib/iconv.in.h: Likewise.
4267         * lib/langinfo.in.h: Likewise.
4268         * lib/locale.in.h: Likewise.
4269         * lib/math.in.h: Likewise.
4270         * lib/netdb.in.h: Likewise.
4271         * lib/netinet_in.in.h: Likewise.
4272         * lib/poll.in.h: Likewise.
4273         * lib/pthread.in.h: Likewise.
4274         * lib/pty.in.h: Likewise.
4275         * lib/sched.in.h: Likewise.
4276         * lib/se-selinux.in.h: Likewise.
4277         * lib/search.in.h: Likewise.
4278         * lib/signal.in.h: Likewise.
4279         * lib/spawn.in.h: Likewise.
4280         * lib/stdarg.in.h: Likewise.
4281         * lib/stddef.in.h: Likewise.
4282         * lib/stdint.in.h: Likewise.
4283         * lib/stdio.in.h: Likewise.
4284         * lib/stdlib.in.h: Likewise.
4285         * lib/string.in.h: Likewise.
4286         * lib/strings.in.h: Likewise.
4287         * lib/sys_file.in.h: Likewise.
4288         * lib/sys_ioctl.in.h: Likewise.
4289         * lib/sys_select.in.h: Likewise.
4290         * lib/sys_socket.in.h: Likewise.
4291         * lib/sys_stat.in.h: Likewise.
4292         * lib/sys_time.in.h: Likewise.
4293         * lib/sys_times.in.h: Likewise.
4294         * lib/sys_uio.in.h: Likewise.
4295         * lib/sys_utsname.in.h: Likewise.
4296         * lib/sys_wait.in.h: Likewise.
4297         * lib/sysexits.in.h: Likewise.
4298         * lib/termios.in.h: Likewise.
4299         * lib/time.in.h: Likewise.
4300         * lib/unistd.in.h: Likewise.
4301         * lib/wchar.in.h: Likewise.
4302         * lib/wctype.in.h: Likewise.
4303         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4304         * modules/ctype (Makefile.am): Likewise.
4305         * modules/dirent (Makefile.am): Likewise.
4306         * modules/errno (Makefile.am): Likewise.
4307         * modules/fcntl-h (Makefile.am): Likewise.
4308         * modules/float (Makefile.am): Likewise.
4309         * modules/getopt-posix (Makefile.am): Likewise.
4310         * modules/iconv-h (Makefile.am): Likewise.
4311         * modules/langinfo (Makefile.am): Likewise.
4312         * modules/locale (Makefile.am): Likewise.
4313         * modules/math (Makefile.am): Likewise.
4314         * modules/netdb (Makefile.am): Likewise.
4315         * modules/netinet_in (Makefile.am): Likewise.
4316         * modules/poll-h (Makefile.am): Likewise.
4317         * modules/pthread (Makefile.am): Likewise.
4318         * modules/pty (Makefile.am): Likewise.
4319         * modules/sched (Makefile.am): Likewise.
4320         * modules/search (Makefile.am): Likewise.
4321         * modules/selinux-h (Makefile.am): Likewise.
4322         * modules/signal (Makefile.am): Likewise.
4323         * modules/spawn (Makefile.am): Likewise.
4324         * modules/stdarg (Makefile.am): Likewise.
4325         * modules/stddef (Makefile.am): Likewise.
4326         * modules/stdint (Makefile.am): Likewise.
4327         * modules/stdio (Makefile.am): Likewise.
4328         * modules/stdlib (Makefile.am): Likewise.
4329         * modules/string (Makefile.am): Likewise.
4330         * modules/strings (Makefile.am): Likewise.
4331         * modules/sys_file (Makefile.am): Likewise.
4332         * modules/sys_ioctl (Makefile.am): Likewise.
4333         * modules/sys_select (Makefile.am): Likewise.
4334         * modules/sys_socket (Makefile.am): Likewise.
4335         * modules/sys_stat (Makefile.am): Likewise.
4336         * modules/sys_time (Makefile.am): Likewise.
4337         * modules/sys_times (Makefile.am): Likewise.
4338         * modules/sys_uio (Makefile.am): Likewise.
4339         * modules/sys_utsname (Makefile.am): Likewise.
4340         * modules/sys_wait (Makefile.am): Likewise.
4341         * modules/sysexits (Makefile.am): Likewise.
4342         * modules/termios (Makefile.am): Likewise.
4343         * modules/time (Makefile.am): Likewise.
4344         * modules/unistd (Makefile.am): Likewise.
4345         * modules/wchar (Makefile.am): Likewise.
4346         * modules/wctype-h (Makefile.am): Likewise.
4347         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4348
4349 2011-05-29  Bruno Haible  <bruno@clisp.org>
4350
4351         assert-h: Allow multiple gnulib generated replacements to coexist.
4352         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4353
4354 2011-05-29  Bruno Haible  <bruno@clisp.org>
4355
4356         argp: Allow coexistence with strerror_r-posix module.
4357         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4358         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4359         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4360         not the glibc signature.
4361
4362 2011-05-28  Bruno Haible  <bruno@clisp.org>
4363
4364         gnulib-tool: Alternative structure of testdirs, similar to --import.
4365         * gnulib-tool: New option --single-configure.
4366         (func_usage): Document it.
4367         (single_configure): New variable.
4368         (func_modules_transitive_closure_separately,
4369         func_modules_transitive_closure_separately,
4370         func_determine_use_libtests, func_modules_add_dummy_separately,
4371         func_modules_to_filelist_separately): New functions, extracted from
4372         func_import.
4373         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4374         (func_import): Use the new functions.
4375         (func_create_testdir): Set final_modules. Handle $single_configure =
4376         true case.
4377
4378 2011-05-28  Bruno Haible  <bruno@clisp.org>
4379
4380         getloadavg: Remove an unreliable safety check.
4381         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4382         getloadavg.c is in place.
4383         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4384         Reported by Sam Steingold <sds@gnu.org>.
4385
4386 2011-05-28  Bruno Haible  <bruno@clisp.org>
4387
4388         doc: Cleanup yet another file produced by texinfo.tex.
4389         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4390
4391 2011-05-28  Bruno Haible  <bruno@clisp.org>
4392
4393         Finish the conditional dependencies mechanism.
4394         * gnulib-tool: New option --no-conditional-dependencies.
4395         (func_usage): Document it. Don't mark --conditional-dependencies as
4396         experimental.
4397         (cond_dependencies): The possible values can now be true, false, empty.
4398         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4399         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4400         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4401
4402 2011-05-28  Bruno Haible  <bruno@clisp.org>
4403
4404         doc: Use a recent texinfo.tex.
4405         * doc/Makefile (tex_opts): New variable.
4406         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4407
4408 2011-05-28  Jim Meyering  <meyering@redhat.com>
4409
4410         intprops.h: adjust comment to match code change
4411         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4412         only once, it *may* have side effects.  Also fix an unrelated typo.
4413         (_GL_INT_SIGNED): Likewise.
4414
4415 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4416
4417         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4418
4419 2011-05-26  Bruno Haible  <bruno@clisp.org>
4420
4421         mbsrchr: Avoid collision with system function on Interix.
4422         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4423         Reported by Markus Duft <mduft@gentoo.org>.
4424
4425 2011-05-15  James Youngman  <jay@gnu.org>
4426
4427         getopt: for ambiguous options, enumerate the possibilities.
4428         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4429         the ambiguous options when an ambiguous prefix is given. This was
4430         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4431         glibc change was
4432         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4433
4434 2011-05-25  Eric Blake  <eblake@redhat.com>
4435
4436         getcwd: work around mingw bug
4437         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4438         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4439         Reported by Matthias Bolte.
4440
4441 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4442
4443         test-intprops: disable -Wtype-limits diagnostics
4444         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4445         diagnostics.  Otherwise, the integer overflow macros generate many
4446         diagnostics.  Reported by Jim Meyering in
4447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4448
4449         intprops: shorten, to pacify gcc -Woverlength-strings
4450         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4451         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4452         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4453         likely to run afoul of C compiler limits for string constant lengths.
4454         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4455
4456 2011-05-24  Eric Blake  <eblake@redhat.com>
4457
4458         docs: document recently fixed glibc printf bug
4459         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4460         * doc/posix-functions/printf.texi (printf): Likewise.
4461         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4462         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4463
4464         closein-tests: convert to init.sh
4465         * modules/closein-tests (Files): Add init.sh
4466         * tests/test-closein.sh Use it.
4467
4468         yesno-tests: convert to init.sh
4469         * modules/yesno-tests (Files): Add init.sh.
4470         * tests/test-yesno.sh: Use it.
4471
4472         atexit-tests: ensure reliable exit status
4473         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4474         Reported by Bruno Haible.
4475
4476 2011-05-24  Bruno Haible  <bruno@clisp.org>
4477
4478         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4480         gl_PREREQ_STRERROR_R invocations from here...
4481         * modules/strerror_r-posix (configure.ac): ... to here.
4482
4483 2011-05-24  Eric Blake  <eblake@redhat.com>
4484
4485         strerror_r: fix missing header
4486         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4487
4488         strerror_r: fix AIX test failures
4489         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4490         ERANGE failure.
4491
4492         strerror_r: fix Solaris test failures
4493         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4494         failures.
4495         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4496
4497         strerror_r: enforce POSIX recommendations
4498         * lib/strerror_r.c (safe_copy): New helper method.
4499         (strerror_r): Guarantee a non-empty string.
4500         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4501         recent POSIX rulings and to match our strerror guarantees.
4502         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4503
4504 2011-05-24  Jim Meyering  <meyering@redhat.com>
4505
4506         test-perror2.c: avoid warning about unused variable
4507         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4508
4509 2011-05-24  Eric Blake  <eblake@redhat.com>
4510
4511         perror: avoid spurious test failure on HP-UX
4512         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4513
4514         tests: fix logic bug in init.sh
4515         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4516         shell.
4517
4518 2011-05-24  Jim Meyering  <meyering@redhat.com>
4519
4520         utimensat: do not reference an out-of-scope buffer
4521         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4522         declared in an inner scope, yet "times" would be dereferenced outside
4523         the scope in which "ts" was valid.
4524         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4525         of ts[2] "out/up", so that the use of aliased "times" (via
4526         "times = ts;") does not end up referencing an out-of-scope "ts"
4527
4528         opendir-safer.c: don't clobber errno; don't close negative FD
4529         * lib/opendir-safer.c (opendir_safer):
4530         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4531         file descriptor, and more importantly, don't clobber the
4532         offending errno value with EINVAL.  Before, upon failure
4533         of dup_safer, we would pass the negative file descriptor to
4534         fdopendir, which would clobber errno.
4535
4536 2011-05-23  Bruno Haible  <bruno@clisp.org>
4537
4538         idcache: Fix module description.
4539         * modules/idcache (Include): Set to "idcache.h".
4540
4541 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4542
4543         gnulib-tool: fix portability problem with MacOS sed
4544         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4545         before the "}".  Problem reported by Leo in
4546         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4547         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4548         sed_extract_condition1, sed_extract_condition2.
4549
4550 2011-05-23  Bruno Haible  <bruno@clisp.org>
4551
4552         hash: Simplify autoconf macro.
4553         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4554
4555 2011-05-23  Bruno Haible  <bruno@clisp.org>
4556
4557         getugroups: Fix module description.
4558         * modules/getugroups (Include): Set to "getugroups.h".
4559
4560 2011-05-23  Bruno Haible  <bruno@clisp.org>
4561
4562         linkat: Simplify autoconf macro.
4563         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4564
4565 2011-05-23  Bruno Haible  <bruno@clisp.org>
4566             Eric Blake  <eblake@redhat.com>
4567
4568         linkat, renameat: Update dependencies.
4569         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4570         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4571         symlinkat.
4572
4573 2011-05-23  Jim Meyering  <meyering@redhat.com>
4574
4575         maint.mk: more tight_scope improvements
4576         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4577         (_gl_TS_headers): Define only in if-0'd block.
4578         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4579         sometimes we must *not* use it.  Adjust uses accordingly.
4580         (sc_tight_scope): Use much simpler grep-based test to determine
4581         whether we skip this rule.
4582
4583         maint.mk: generalize/improve the tight-scope rule
4584         * top/maint.mk: Emit a warning when the test is skipped.
4585         (_gl_TS_dir): Add $(srcdir)/ prefix.
4586         (_gl_TS_function_match): Simplify, rather than trying
4587         to enumerate common types.  Otherwise, it would fail to match an
4588         "extern unsigned char const *" declaration in idutils.
4589         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4590         a way to support use of that type of macro.
4591         (_gl_TS_var_match): Simplify regexp.
4592         (_gl_TS_obj_files): New configurable variable.
4593         (_gl_TS_headers): Likewise.
4594
4595 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4596
4597         verify: fix bug when gnulib <assert.h> is also included
4598         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4599         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4600         Perhaps there's a better way, but this fixes the immediate problem.
4601         Problem reported by Bruno Haible in
4602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4603
4604 2011-05-22  Bruno Haible  <bruno@clisp.org>
4605
4606         xgetcwd: Simplify autoconf macro.
4607         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4608
4609 2011-05-22  Bruno Haible  <bruno@clisp.org>
4610
4611         New module 'mktime-internal'.
4612         * modules/mktime-internal: New file.
4613         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4614         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4615         mktime_internal as a C macro if libc has __mktime_internal.
4616         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4617         conditions.
4618         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4619
4620 2011-05-22  Bruno Haible  <bruno@clisp.org>
4621
4622         timegm: Correct mktime replacement statements.
4623         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4624         defining mktime as a C macro. This completes a 2009-07-28 commit.
4625
4626 2011-05-22  Bruno Haible  <bruno@clisp.org>
4627
4628         timegm: Simplify autoconf macro.
4629         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4630
4631 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4632
4633         clock-time: change to LGPLv2+.
4634         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4635         BSD-like but we have no mark for that; this is good enough for now.
4636
4637 2011-05-21  Bruno Haible  <bruno@clisp.org>
4638
4639         strerror_r: Fix comments.
4640         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4641
4642 2011-05-21  Bruno Haible  <bruno@clisp.org>
4643
4644         relocatable-prog-wrapper: Fix possible link error.
4645         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4646         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4647         (gl_FUNC_SETENV): ... to here.
4648         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4649         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4650
4651 2011-05-21  Bruno Haible  <bruno@clisp.org>
4652
4653         relocatable-prog-wrapper: Assume strerror() exists.
4654         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4655         m4/strerror.m4.
4656         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4657         * lib/relocwrapper.c: Remove mention of strerror module.
4658         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4659         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4660         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4661         C macro.
4662
4663 2011-05-21  Bruno Haible  <bruno@clisp.org>
4664
4665         select: Simplify replacement idiom.
4666         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4667         Win32 platforms.
4668         * lib/sys_select.in.h (select): Simplify accordingly.
4669         * modules/select (Depends-on): Likewise.
4670
4671 2011-05-21  Bruno Haible  <bruno@clisp.org>
4672
4673         mkdir-p: Simplify autoconf macro.
4674         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4675         gl_FUNC_LCHOWN.
4676
4677 2011-05-21  Eric Blake  <eblake@redhat.com>
4678
4679         strerror_r: avoid clobbering strerror on cygwin
4680         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4681         fall back instead to sys_errlist.
4682         * modules/strerror (configure.ac): Add witness.
4683         * tests/test-strerror_r.c (main): Enhance test.
4684         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4685         * tests/test-perror2.c (main): Free memory before exit.
4686
4687 2011-05-21  Bruno Haible  <bruno@clisp.org>
4688
4689         mkdtemp: Use gnulib naming conventions.
4690         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4691         * modules/mkdtemp (configure.ac): Update.
4692
4693 2011-05-20  Eric Blake  <eblake@redhat.com>
4694
4695         strerror_r: avoid corrupting errno on Solaris
4696         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4697         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4698
4699         strerror_r: avoid compiler warning
4700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4701
4702         strerror_r: simplify AIX code
4703         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4704
4705         test-perror: avoid spurious failure on FreeBSD
4706         * modules/perror-tests (Depends-on): Add strerror, now that
4707         strerror_r no longer pulls it in.
4708
4709 2011-05-20  Bruno Haible  <bruno@clisp.org>
4710
4711         strerror_r-posix: Remove unused dependencies.
4712         * modules/strerror_r-posix (Depends-on): Remove strerror.
4713         Reported by Eric Blake.
4714
4715 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4716
4717         intprops: remove assumption about A|B representation
4718         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4719         is a valid integer if both A and B are.  Although this is true for
4720         all known practical hosts, the C standard doesn't guarantee it,
4721         and the code need not assume it.  Also, this change may work around
4722         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4724
4725 2011-05-20  Eric Blake  <eblake@redhat.com>
4726
4727         perror: work around FreeBSD bug
4728         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4729         is broken.  Move AC_LIBOBJ...
4730         * modules/perror (configure.ac): Here.
4731         * doc/posix-functions/perror.texi (perror): Document this.
4732         * tests/test-perror2.c (main): Enhance test.
4733
4734         test-perror: check for strerror interactions
4735         * tests/macros.h (STREQ): Add macro.
4736         * modules/perror-tests (Files): Add second test.
4737         * tests/test-perror2.c (main): New file.
4738         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4739
4740         test-perror: rewrite to use init script
4741         * modules/perror-tests (Files): Add init.sh.
4742         * tests/test-perror.sh: Use temporary directory.
4743
4744 2011-05-20  Jim Meyering  <meyering@redhat.com>
4745
4746         maint: replace misused "a" with "an"
4747         * doc/intprops.texi: "a integer"
4748         * doc/regex.texi: "a explanation"
4749         * lib/alignof.h: "a object"
4750         * lib/argmatch.h: "a explanation"
4751         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4752         * lib/stdint.in.h: "a integer"
4753         * lib/userspec.c: "a owner"
4754         * doc/gnulib.texi: Fix "a idea", and reword.
4755
4756 2011-05-19  Jim Meyering  <meyering@redhat.com>
4757
4758         maint: correct misuse of "a" and "an"
4759         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4760         * lib/argp-help.c: "an docum...": s/an/a/
4761         * lib/argp-parse.c: "An vector": s/An/A/
4762         * lib/execute.c: "an native": s/an/a/
4763         * lib/spawn-pipe.c: Likewise.
4764         * lib/gc.h: "an Gc_rc": s/an/a/
4765         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4766         * lib/fts.c: "an stat.st_dev": s/an/a/
4767
4768 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         intprops-tests: work around HP-UX 11.23 cc bug with constants
4771         * tests/test-intprops.c (VERIFY): New macro.
4772         (main): Use it, instead of verify, to work around the compiler bug; see
4773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4774
4775         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4776         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4777         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4778         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4779         (_GL_REMAINDER_OVERFLOW): Use it.
4780
4781         intprops-tests: revert unsigned part of previous change
4782         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4783         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4784         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4786
4787 2011-05-19  Bruno Haible  <bruno@clisp.org>
4788
4789         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4790         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4791         strerror_r() returned without filling the buffer.
4792         Reported by Eric Blake.
4793
4794 2011-05-19  Eric Blake  <eblake@redhat.com>
4795
4796         strerror_r: guarantee unchanged errno
4797         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4798         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4799         failure.
4800         * tests/test-strerror_r.c (main): Enhance test.
4801
4802 2011-05-19  Bruno Haible  <bruno@clisp.org>
4803
4804         strerror_r: Reorder #if blocks.
4805         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4806         for consistency with the previous commit.
4807
4808 2011-05-19  Bruno Haible  <bruno@clisp.org>
4809
4810         perror: Avoid clobbering the strerror buffer when possible.
4811         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4812         * lib/strerror.c: Include it.
4813         * modules/strerror (Files): Add lib/strerror-impl.h.
4814         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4815         (my_strerror): New function, defined through lib/strerror-impl.h.
4816         (perror): Use it instead of strerror.
4817         * modules/perror (Files): Add lib/strerror-impl.h.
4818         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4819
4820 2011-05-19  Eric Blake  <eblake@redhat.com>
4821
4822         strerror_r: fix on newer cygwin
4823         * lib/strerror_r.c (strerror_r): Cygwin now has
4824         __xpg_strerror_r, use it.
4825
4826 2011-05-19  Bruno Haible  <bruno@clisp.org>
4827
4828         strerror_r: Avoid clobbering the strerror buffer when possible.
4829         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4830         (sys_nerr, sys_errlist): New declarations.
4831         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4832         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4833         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4834
4835 2011-05-19  Bruno Haible  <bruno@clisp.org>
4836
4837         strerror_r: Fix test failure on mingw.
4838         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4839         EXTEND_STRERROR_R.
4840         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4841         macros from errno.in.h instead.
4842
4843 2011-05-19  Eric Blake  <eblake@redhat.com>
4844
4845         strerror: relax test for Solaris
4846         * tests/test-strerror.c (main): Permit Solaris behavior.
4847         * tests/test-strerror_r.c (main): Likewise.
4848
4849         strerror: enforce POSIX ruling on strerror(0)
4850         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4851         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4852         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4853         * doc/posix-functions/strerror.texi (strerror): Document it.
4854         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4855         * tests/test-strerror.c (main): Strengthen test.
4856         * tests/test-strerror_r.c (main): Likewise.
4857
4858 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4859
4860         intprop-tests: port to older and more-pedantic compilers
4861         * modules/intprops-tests (Files): Add tests/macros.h.
4862         * tests/test-intprops.c: Include macros.h.
4863         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4864         it's no longer documented to expand to an integer constant expression.
4865         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4866         argument is floating point, as it's no longer documented to expand
4867         to an integer constant expression in that case.
4868         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4869         compiler bugs reported by Bruno Haible.  See
4870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4871         (U0, U1): New constants, to work around the same bugs.  Also,
4872         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4873
4874         intprops: work around C compiler bugs
4875         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4876         bug in Sun C 5.11 2010/08/13 and other compilers; see
4877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4878
4879         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4880         * doc/intprops.texi (Integer Type Determination): Fix
4881         documentation for TYPE_IS_INTEGER: it returns an constant
4882         expression, not an integer constant expression.  Fix doc for
4883         TYPE_SIGNED: it returns an integer constant expression only if its
4884         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4885         hardly worth documented that way....)
4886
4887 2011-05-18  Bruno Haible  <bruno@clisp.org>
4888
4889         strerror_r: Avoid clobbering the strerror buffer when possible.
4890         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4891         Handle gnulib defined errno values here. When strerror() returns NULL
4892         or an empty string, return EINVAL.
4893         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4894         gnulib defined errno values here.
4895         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4896
4897 2011-05-18  Eric Blake  <eblake@redhat.com>
4898
4899         fnmatch: avoid compiler warning
4900         * lib/fnmatch_loop.c (FCT): Use correct type.
4901         Reported by Matthias Bolte.
4902
4903 2011-05-13  Jim Meyering  <meyering@redhat.com>
4904
4905         maint.mk: three new prohibit_<HDR>_without_use rules
4906         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4907         (sc_prohibit_stdio-safer_without_use): Likewise.
4908         (sc_prohibit_xfreopen_without_use): Likewise.
4909
4910 2011-05-17  Jim Meyering  <meyering@redhat.com>
4911
4912         announce-gen: fail if the NEWS delta is empty
4913         If there's nothing noteworthy in NEWS, then either you forgot
4914         or you shouldn't be releasing.
4915         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4916
4917 2011-05-17  Pádraig Brady <P@draigBrady.com>
4918
4919         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4920         reserved symbols starting with double underscore from the check.
4921
4922 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4923
4924         intprops: add doc
4925         * doc/intprops.texi: New file, documenting intprops.
4926         * doc/gnulib.texi (Particular Modules): Include it.
4927
4928         verify: add doc to gnulib manual and fix example
4929         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4930         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4931         (Compile-time Assertions): Fix example so it can't overflow.
4932
4933 2011-05-17  Jim Meyering  <meyering@redhat.com>
4934
4935         warnings.m4: don't usurp save_CPPFLAGS variable name
4936         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4937
4938         doc: fix typo
4939         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4940
4941 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4942             Bruno Haible  <bruno@clisp.org>
4943
4944         doc: Tweak recent change.
4945         * README (Portability guidelines): Tweak new text.
4946         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4947         Interix 6.1.
4948
4949 2011-05-16  Eric Blake  <eblake@redhat.com>
4950
4951         inttypes: avoid autoconf warning
4952         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4953         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4954
4955 2011-05-16  Sam Steingold <sds@gnu.org>
4956         and Eric Blake  <eblake@redhat.com>
4957
4958         vc-list-files: accept multiple directory operands
4959         * build-aux/vc-list-files: Iterate over all remaining operands.
4960
4961 2011-05-16  Bruno Haible  <bruno@clisp.org>
4962
4963         Fix confusion regarding deprecated modules.
4964         * modules/calloc (Status, Notice): Mark module as deprecated, not
4965         obsolete.
4966         * modules/fnmatch-posix (Status, Notice): Likewise.
4967         * modules/getdate (Status, Notice): Likewise.
4968         * modules/getopt (Status, Notice): Likewise.
4969         * modules/malloc (Status, Notice): Likewise.
4970         * modules/pipe (Status, Notice): Likewise.
4971         * modules/realloc (Status, Notice): Likewise.
4972         * modules/rename-dest-slash (Status, Notice): Likewise.
4973         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4974         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4975         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4976         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4977         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4978
4979 2011-05-16  Bruno Haible  <bruno@clisp.org>
4980
4981         doc: List the target platforms.
4982         * doc/gnulib-intro.texi (Target Platforms): New section.
4983         * doc/gnulib.texi (Introduction): Update menu.
4984         * README (Portability guidelines): Refer to the new section. Update
4985         statement about oldest supported environment. Remove rationale why
4986         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4987         unportable C89 function.
4988         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4989         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4990
4991 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4992
4993         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4994
4995 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         intprops-tests: new module
4998         * modules/intprops-tests, tests/test-intprops.c: New files.
4999
5000         intprops: add safe, portable integer overflow checking
5001         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5002         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5003         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5004         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5005         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5006         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5007         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5008         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5009         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5010         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5011         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5012
5013 2011-05-12  James Youngman  <jay@gnu.org>
5014
5015         Add a test for glibc's Bugzilla bug #12378.
5016         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5017         doesn't allow the literal matching of a lone "[" (which is
5018         required by POSIX).
5019         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5020
5021 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5022
5023         Sync glibc change fixing Bugzilla bug #12378.
5024         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5025         beginning and fall back to matching as normal character if the
5026         string ends before the matching ']' is found.  This is what POSIX
5027         requires.
5028
5029 2011-05-13  Eric Blake  <eblake@redhat.com>
5030
5031         getcwd-lgpl: relax test for FreeBSD
5032         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5033         issue.
5034         * tests/test-getcwd-lgpl.c (main): Relax test.
5035         Reported by Matthias Bolte.
5036
5037 2011-05-11  Eric Blake  <eblake@redhat.com>
5038
5039         test-fflush: silence compiler warning
5040         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5041
5042 2011-05-11  Bruno Haible  <bruno@clisp.org>
5043
5044         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5045         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5046         * modules/canonicalize (Depends-on): Add 'nocrash'.
5047         * modules/canonicalize-lgpl (Depends-on): Likewise.
5048         * doc/posix-functions/realpath.texi: Update platforms list.
5049         Reported by Ryan Schmidt <ryandesign@macports.org>.
5050
5051 2011-05-11  Bruno Haible  <bruno@clisp.org>
5052
5053         group-member: Declare function in <unistd.h>.
5054         * lib/unistd.in.h (group_member): New declaration.
5055         * lib/group-member.h: Remove file.
5056         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5057         * tests/test-unistd-c++.cc: Check signature of group_member.
5058         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5059         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5060         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5061         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5062         HAVE_GROUP_MEMBER.
5063         * modules/group-member (Files): Remove lib/group-member.h.
5064         (Depends-on): Add unistd. Specify conditions.
5065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5066         (Include): Change to <unistd.h>.
5067         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5068         HAVE_GROUP_MEMBER.
5069         * NEWS: Mention the change.
5070         * lib/euidaccess.c: Don't include group-member.h.
5071
5072 2011-05-11  Bruno Haible  <bruno@clisp.org>
5073
5074         group-member: Document module.
5075         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5076         module.
5077
5078 2011-05-11  Bruno Haible  <bruno@clisp.org>
5079
5080         fclose: Fix mistake earlier today.
5081         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5082
5083 2011-05-11  Eric Blake  <eblake@redhat.com>
5084
5085         fclose: preserve fflush errors
5086         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5087         Reported by Jim Meyering.
5088
5089         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5090         * build-aux/bootstrap (check_versions): When no specific version
5091         is required, merely check that the app produces an exit status
5092         that indicates its existence.
5093
5094         maint.mk: drop redundant check
5095         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5096         the same but better.
5097
5098 2011-05-11  Bruno Haible  <bruno@clisp.org>
5099
5100         fclose: Fix possible link error.
5101         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5102         unregister_shadow_fd. Improve comments.
5103         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5104         Eric Blake.
5105
5106 2011-05-11  Jim Meyering  <meyering@redhat.com>
5107
5108         maint.mk: improve "can not" detection and generalize rule name
5109         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5110         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5111         Use the same technique as in sc_prohibit_doubled_word, so that
5112         we recognize "can not" also when the words are separated by a newline.
5113         Suggested by Eric Blake.
5114         (perl_filename_lineno_text_): Define.  Factored out of...
5115         (prohibit_doubled_word_): ...here.  Use the new definition.
5116         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5117         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5118         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5119
5120 2011-05-10  Eric Blake  <eblake@redhat.com>
5121
5122         fclose: avoid double close race when possible
5123         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5124         all but WINDOWS_SOCKETS.
5125
5126 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5127
5128         openat: correct new comment
5129         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5130
5131 2011-05-10  Jim Meyering  <meyering@redhat.com>
5132
5133         openat: add comments
5134         * lib/openat-proc.c (openat_proc_name): Add comments,
5135         mostly from Eric Blake.
5136
5137 2011-05-09  Eric Blake  <eblake@redhat.com>
5138
5139         openat: reduce syscalls in first probe of /proc
5140         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5141         be a directory.  Simplify the probe for .. bugs.
5142         * modules/openat (Depends-on): Drop same-inode.
5143         Reported by Bastien ROUCARIES.
5144
5145 2011-05-09  Jim Meyering  <meyering@redhat.com>
5146
5147         maint.mk: change semantics/name of tight_scope variables
5148         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5149         Rename variables to align with semantics that make them more useful.
5150
5151         maint.mk: tweak new rule's name not to impinge
5152         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5153         (sc_tight_scope): Use new rule name rather than $@-0.
5154
5155         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5156         * top/maint.mk (sc_tight_scope): New rule.
5157         (sc_tight_scope-0): New rule, ifdef'd out.
5158         (_gl_TS_dir): Default.
5159         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5160         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5161
5162 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5163
5164         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5165         Haible <bruno@clisp.org>.
5166
5167 2011-05-08  Bruno Haible  <bruno@clisp.org>
5168
5169         Comments.
5170         * m4/isnanf.m4: Add comment.
5171         * m4/isnanl.m4: Likewise.
5172
5173 2011-05-08  Bruno Haible  <bruno@clisp.org>
5174
5175         glob: Remove obsolete macro.
5176         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5177
5178 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5179
5180         intprops: Sun C 5.11 supports __typeof__
5181         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5182         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5183         which is new.
5184         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5185
5186         intprops: switch to usual gnulib indenting and naming
5187         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5188         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5189
5190         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5191
5192 2011-05-08  Jim Meyering  <meyering@redhat.com>
5193
5194         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5195         * top/maint.mk (release-prep): Use make's --no-print-directory
5196         option when generating the announcement.  This eliminates the
5197         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5198         generated announcement template.
5199
5200 2011-05-08  Bruno Haible  <bruno@clisp.org>
5201
5202         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5203         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5204         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5205
5206 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5207
5208         ignore-value, verify: Omit include files from lib_SOURCES.
5209         * modules/ignore-value, modules/verify (Makefile.am):
5210         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5211         that leads Automake to duplicate use of am__objects_... variables
5212         in Makefile.in.  See
5213         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5214
5215 2011-05-07  Bruno Haible  <bruno@clisp.org>
5216
5217         fclose: Simplify autoconf macro.
5218         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5219         defined.
5220
5221 2011-05-07  Bruno Haible  <bruno@clisp.org>
5222
5223         canonicalize-lgpl: Fix autoconf macro ordering bug.
5224         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5225         gl_STDLIB_H_DEFAULTS.
5226
5227 2011-05-06  Eric Blake  <eblake@redhat.com>
5228
5229         maintainer-makefile: make sc_po_check easier to tune
5230         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5231         to probe for strings, such as an alternate location for gnulib.
5232
5233         fclose: guarantee behavior on seekable stdin
5234         * modules/fclose (Depends-on): Add fflush.
5235         * doc/posix-functions/fclose.texi (fclose): Document this.
5236         * tests/test-fclose.c (main): Make test for this unconditional.
5237
5238 2011-05-06  Bruno Haible  <bruno@clisp.org>
5239
5240         fflush, fpurge: Relicense under LGPLv2+.
5241         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5242         * modules/fpurge (License): Likewise.
5243         With permission from Eric Blake and Jim Meyering.
5244         Suggested by Eric Blake.
5245
5246 2011-05-06  Karl Berry  <karl@gnu.org>
5247
5248         * MODULES.html.sh (func_all_modules): remove exit.
5249
5250 2011-05-06  Jim Meyering  <meyering@redhat.com>
5251
5252         maint.mk: use info-gnu@ as the default only for a stable release
5253         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5254         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5255         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5256         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5257
5258 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5259
5260         assert-h: new module, which supports C1X-style static_assert
5261         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5262         * lib/verify.h: Revamp so that this can be copied into assert.h,
5263         while retaining the ability to use it standalone as before.
5264         Rename private identifiers so as not to encroach on the
5265         standard C namespace, since this is now used by assert.h.
5266         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5267         the old verify_true.
5268         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5269         the old verify_true.  Use _GL_VERIFY_TYPE.
5270         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5271         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5272         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5273         defined when this file is copied into the replacement assert.h.
5274         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5275         and _Static_assert is not built in.
5276         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5277         defined, and use the new macros mentioned above.
5278         * doc/posix-headers/assert.texi: Document this.
5279
5280 2011-05-05  Bruno Haible  <bruno@clisp.org>
5281
5282         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5283         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5284         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5285         gl_REPLACE_FCLOSE here.
5286         * modules/fflush (Depends-on): Remove fclose.
5287         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5288         combination with module 'fclose'.
5289
5290 2011-05-05  Bruno Haible  <bruno@clisp.org>
5291
5292         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5293         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5294         gl_FUNC_FFLUSH.
5295         (gl_FUNC_FFLUSH): Use it.
5296         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5297         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5298         gl_REPLACE_FSEEKO here.
5299
5300 2011-05-05  Bruno Haible  <bruno@clisp.org>
5301
5302         tzset: Relicense under LGPL.
5303         * modules/tzset (License): Change to LGPL.
5304         No agreement needed; it's a no-op.
5305
5306         strtoimax, strtoumax: Relicense under LGPL.
5307         * modules/strtoimax (License): Change to LGPL.
5308         * modules/strtoumax (License): Likewise.
5309         With permission from Jim Meyering, Paul Eggert:
5310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5312
5313         getgroups: Relicense under LGPL.
5314         * modules/getgroups (License): Change to LGPL.
5315         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5319
5320         nanosleep: Relicense under LGPL.
5321         * modules/nanosleep (License): Change to LGPL.
5322         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5323         Haible:
5324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5328
5329         futimens: Relicense under LGPL.
5330         * modules/futimens (License): Change to LGPL.
5331         With permission from Eric Blake:
5332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5333
5334         fflush: Relicense under LGPL.
5335         * modules/fflush (License): Change to LGPL.
5336         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5340
5341         tmpfile: Relicense under LGPL.
5342         * modules/tmpfile (License): Change to LGPL.
5343         With permission from Ben Pfaff:
5344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5345
5346         isfinite: Relicense under LGPL.
5347         * modules/isfinite (License): Change to LGPL.
5348         With permission from Ben Pfaff, Bruno Haible:
5349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5351
5352         acosl..tanl: Relicense under LGPL.
5353         * modules/acosl (License): Change to LGPL.
5354         * modules/asinl (License): Likewise.
5355         * modules/atanl (License): Likewise.
5356         * modules/cosl (License): Likewise.
5357         * modules/expl (License): Likewise.
5358         * modules/logl (License): Likewise.
5359         * modules/sinl (License): Likewise.
5360         * modules/sqrtl (License): Likewise.
5361         * modules/tanl (License): Likewise.
5362         Source code originally from glibc and Paolo Bonzini. Agreements:
5363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5365
5366 2011-05-05  Bruno Haible  <bruno@clisp.org>
5367
5368         signal: Define sighandler_t.
5369         * lib/signal.in.h (sighandler_t): New type.
5370         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5371         whether sighandler_t is defined.
5372         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5373         * modules/signal (Depends-on): Add extensions.
5374         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5375         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5376         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5377
5378 2011-05-05  Eric Blake  <eblake@redhat.com>
5379
5380         maint: remove useless REPLACE_*_H macros
5381         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5382         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5383         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5384         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5385         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5386         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5387         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5388         * m4/btowc.m4: Update callers.
5389         * m4/dirfd.m4: Likewise.
5390         * m4/duplocale.m4: Likewise.
5391         * m4/fchdir.m4: Likewise.
5392         * m4/fdopendir.m4: Likewise.
5393         * m4/inet_ntop.m4: Likewise.
5394         * m4/inet_pton.m4: Likewise.
5395         * m4/ioctl.m4: Likewise.
5396         * m4/mbrlen.m4: Likewise.
5397         * m4/mbrtowc.m4: Likewise.
5398         * m4/mbsinit.m4: Likewise.
5399         * m4/mbsnrtowcs.m4: Likewise.
5400         * m4/mbsrtowcs.m4: Likewise.
5401         * m4/poll.m4: Likewise.
5402         * m4/setlocale.m4: Likewise.
5403         * m4/wcrtomb.m4: Likewise.
5404         * m4/wcsnrtombs.m4: Likewise.
5405         * m4/wcsrtombs.m4: Likewise.
5406         * m4/wctob.m4: Likewise.
5407         * m4/wcwidth.m4: Likewise.
5408         * modules/posix_spawn: Likewise.
5409         * modules/posix_spawn_file_actions_addclose: Likewise.
5410         * modules/posix_spawn_file_actions_adddup2: Likewise.
5411         * modules/posix_spawn_file_actions_addopen: Likewise.
5412         * modules/posix_spawn_file_actions_destroy: Likewise.
5413         * modules/posix_spawn_file_actions_init: Likewise.
5414         * modules/posix_spawnattr_destroy: Likewise.
5415         * modules/posix_spawnattr_getflags: Likewise.
5416         * modules/posix_spawnattr_getpgroup: Likewise.
5417         * modules/posix_spawnattr_getschedparam: Likewise.
5418         * modules/posix_spawnattr_getschedpolicy: Likewise.
5419         * modules/posix_spawnattr_getsigdefault: Likewise.
5420         * modules/posix_spawnattr_getsigmask: Likewise.
5421         * modules/posix_spawnattr_init: Likewise.
5422         * modules/posix_spawnattr_setflags: Likewise.
5423         * modules/posix_spawnattr_setpgroup: Likewise.
5424         * modules/posix_spawnattr_setschedparam: Likewise.
5425         * modules/posix_spawnattr_setschedpolicy: Likewise.
5426         * modules/posix_spawnattr_setsigdefault: Likewise.
5427         * modules/posix_spawnattr_setsigmask: Likewise.
5428         * modules/posix_spawnp: Likewise.
5429
5430 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5431
5432         Add option to do-release-commit-and-tag to specify branch.
5433         * build-aux/do-release-commit-and-tag: Add --branch.
5434
5435 2011-05-03  Bruno Haible  <bruno@clisp.org>
5436
5437         Avoid unnecessary compilation units, through conditional dependencies.
5438         * modules/accept (Depends-on): Add conditions to the dependencies.
5439         * modules/acosl (Depends-on): Likewise.
5440         * modules/argz (Depends-on): Likewise.
5441         * modules/asinl (Depends-on): Likewise.
5442         * modules/atanl (Depends-on): Likewise.
5443         * modules/atoll (Depends-on): Likewise.
5444         * modules/bind (Depends-on): Likewise.
5445         * modules/btowc (Depends-on): Likewise.
5446         * modules/canonicalize-lgpl (Depends-on): Likewise.
5447         * modules/ceil (Depends-on): Likewise.
5448         * modules/ceilf (Depends-on): Likewise.
5449         * modules/ceill (Depends-on): Likewise.
5450         * modules/chdir-long (Depends-on): Likewise.
5451         * modules/chown (Depends-on): Likewise.
5452         * modules/close (Depends-on): Likewise.
5453         * modules/connect (Depends-on): Likewise.
5454         * modules/cosl (Depends-on): Likewise.
5455         * modules/dirfd (Depends-on): Likewise.
5456         * modules/dprintf (Depends-on): Likewise.
5457         * modules/dprintf-posix (Depends-on): Likewise.
5458         * modules/error (Depends-on): Likewise.
5459         * modules/euidaccess (Depends-on): Likewise.
5460         * modules/expl (Depends-on): Likewise.
5461         * modules/faccessat (Depends-on): Likewise.
5462         * modules/fchdir (Depends-on): Likewise.
5463         * modules/fclose (Depends-on): Likewise.
5464         * modules/fcntl (Depends-on): Likewise.
5465         * modules/fdopendir (Depends-on): Likewise.
5466         * modules/fflush (Depends-on): Likewise.
5467         * modules/floor (Depends-on): Likewise.
5468         * modules/floorf (Depends-on): Likewise.
5469         * modules/floorl (Depends-on): Likewise.
5470         * modules/fnmatch (Depends-on): Likewise.
5471         * modules/fopen (Depends-on): Likewise.
5472         * modules/fprintf-posix (Depends-on): Likewise.
5473         * modules/frexp (Depends-on): Likewise.
5474         * modules/frexp-nolibm (Depends-on): Likewise.
5475         * modules/frexpl (Depends-on): Likewise.
5476         * modules/frexpl-nolibm (Depends-on): Likewise.
5477         * modules/fseek (Depends-on): Likewise.
5478         * modules/fsusage (Depends-on): Likewise.
5479         * modules/ftell (Depends-on): Likewise.
5480         * modules/ftello (Depends-on): Likewise.
5481         * modules/futimens (Depends-on): Likewise.
5482         * modules/getcwd (Depends-on): Likewise.
5483         * modules/getcwd-lgpl (Depends-on): Likewise.
5484         * modules/getdelim (Depends-on): Likewise.
5485         * modules/getdomainname (Depends-on): Likewise.
5486         * modules/getgroups (Depends-on): Likewise.
5487         * modules/gethostname (Depends-on): Likewise.
5488         * modules/getline (Depends-on): Likewise.
5489         * modules/getlogin_r (Depends-on): Likewise.
5490         * modules/getopt-posix (Depends-on): Likewise.
5491         * modules/getpeername (Depends-on): Likewise.
5492         * modules/getsockname (Depends-on): Likewise.
5493         * modules/getsockopt (Depends-on): Likewise.
5494         * modules/getsubopt (Depends-on): Likewise.
5495         * modules/getusershell (Depends-on): Likewise.
5496         * modules/glob (Depends-on): Likewise.
5497         * modules/grantpt (Depends-on): Likewise.
5498         * modules/iconv_open (Depends-on): Likewise.
5499         * modules/iconv_open-utf (Depends-on): Likewise.
5500         * modules/inet_ntop (Depends-on): Likewise.
5501         * modules/inet_pton (Depends-on): Likewise.
5502         * modules/ioctl (Depends-on): Likewise.
5503         * modules/isapipe (Depends-on): Likewise.
5504         * modules/isfinite (Depends-on): Likewise.
5505         * modules/isinf (Depends-on): Likewise.
5506         * modules/lchown (Depends-on): Likewise.
5507         * modules/ldexpl (Depends-on): Likewise.
5508         * modules/link (Depends-on): Likewise.
5509         * modules/linkat (Depends-on): Likewise.
5510         * modules/listen (Depends-on): Likewise.
5511         * modules/logl (Depends-on): Likewise.
5512         * modules/lstat (Depends-on): Likewise.
5513         * modules/mbrlen (Depends-on): Likewise.
5514         * modules/mbrtowc (Depends-on): Likewise.
5515         * modules/mbsinit (Depends-on): Likewise.
5516         * modules/mbsnrtowcs (Depends-on): Likewise.
5517         * modules/mbsrtowcs (Depends-on): Likewise.
5518         * modules/mbtowc (Depends-on): Likewise.
5519         * modules/memcmp (Depends-on): Likewise.
5520         * modules/mkdir (Depends-on): Likewise.
5521         * modules/mkdtemp (Depends-on): Likewise.
5522         * modules/mkfifo (Depends-on): Likewise.
5523         * modules/mkfifoat (Depends-on): Likewise.
5524         * modules/mknod (Depends-on): Likewise.
5525         * modules/mkostemp (Depends-on): Likewise.
5526         * modules/mkostemps (Depends-on): Likewise.
5527         * modules/mkstemp (Depends-on): Likewise.
5528         * modules/mkstemps (Depends-on): Likewise.
5529         * modules/mktime (Depends-on): Likewise.
5530         * modules/nanosleep (Depends-on): Likewise.
5531         * modules/open (Depends-on): Likewise.
5532         * modules/openat (Depends-on): Likewise.
5533         * modules/perror (Depends-on): Likewise.
5534         * modules/poll (Depends-on): Likewise.
5535         * modules/popen (Depends-on): Likewise.
5536         * modules/posix_spawn (Depends-on): Likewise.
5537         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5538         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5539         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5540         * modules/posix_spawnp (Depends-on): Likewise.
5541         * modules/pread (Depends-on): Likewise.
5542         * modules/printf-posix (Depends-on): Likewise.
5543         * modules/ptsname (Depends-on): Likewise.
5544         * modules/putenv (Depends-on): Likewise.
5545         * modules/pwrite (Depends-on): Likewise.
5546         * modules/readline (Depends-on): Likewise.
5547         * modules/readlink (Depends-on): Likewise.
5548         * modules/readlinkat (Depends-on): Likewise.
5549         * modules/recv (Depends-on): Likewise.
5550         * modules/recvfrom (Depends-on): Likewise.
5551         * modules/regex (Depends-on): Likewise.
5552         * modules/remove (Depends-on): Likewise.
5553         * modules/rename (Depends-on): Likewise.
5554         * modules/renameat (Depends-on): Likewise.
5555         * modules/rmdir (Depends-on): Likewise.
5556         * modules/round (Depends-on): Likewise.
5557         * modules/roundf (Depends-on): Likewise.
5558         * modules/roundl (Depends-on): Likewise.
5559         * modules/rpmatch (Depends-on): Likewise.
5560         * modules/select (Depends-on): Likewise.
5561         * modules/send (Depends-on): Likewise.
5562         * modules/sendto (Depends-on): Likewise.
5563         * modules/setenv (Depends-on): Likewise.
5564         * modules/setlocale (Depends-on): Likewise.
5565         * modules/setsockopt (Depends-on): Likewise.
5566         * modules/shutdown (Depends-on): Likewise.
5567         * modules/sigaction (Depends-on): Likewise.
5568         * modules/signbit (Depends-on): Likewise.
5569         * modules/sigprocmask (Depends-on): Likewise.
5570         * modules/sinl (Depends-on): Likewise.
5571         * modules/sleep (Depends-on): Likewise.
5572         * modules/snprintf (Depends-on): Likewise.
5573         * modules/snprintf-posix (Depends-on): Likewise.
5574         * modules/socket (Depends-on): Likewise.
5575         * modules/sprintf-posix (Depends-on): Likewise.
5576         * modules/sqrtl (Depends-on): Likewise.
5577         * modules/stat (Depends-on): Likewise.
5578         * modules/strchrnul (Depends-on): Likewise.
5579         * modules/strdup-posix (Depends-on): Likewise.
5580         * modules/strerror (Depends-on): Likewise.
5581         * modules/strerror_r-posix (Depends-on): Likewise.
5582         * modules/strndup (Depends-on): Likewise.
5583         * modules/strnlen (Depends-on): Likewise.
5584         * modules/strptime (Depends-on): Likewise.
5585         * modules/strsep (Depends-on): Likewise.
5586         * modules/strsignal (Depends-on): Likewise.
5587         * modules/strstr-simple (Depends-on): Likewise.
5588         * modules/strtod (Depends-on): Likewise.
5589         * modules/strtoimax (Depends-on): Likewise.
5590         * modules/strtok_r (Depends-on): Likewise.
5591         * modules/strtoumax (Depends-on): Likewise.
5592         * modules/symlink (Depends-on): Likewise.
5593         * modules/symlinkat (Depends-on): Likewise.
5594         * modules/tanl (Depends-on): Likewise.
5595         * modules/tcgetsid (Depends-on): Likewise.
5596         * modules/tmpfile (Depends-on): Likewise.
5597         * modules/trunc (Depends-on): Likewise.
5598         * modules/truncf (Depends-on): Likewise.
5599         * modules/truncl (Depends-on): Likewise.
5600         * modules/uname (Depends-on): Likewise.
5601         * modules/unlink (Depends-on): Likewise.
5602         * modules/unlockpt (Depends-on): Likewise.
5603         * modules/unsetenv (Depends-on): Likewise.
5604         * modules/usleep (Depends-on): Likewise.
5605         * modules/utimensat (Depends-on): Likewise.
5606         * modules/vasprintf (Depends-on): Likewise.
5607         * modules/vdprintf (Depends-on): Likewise.
5608         * modules/vdprintf-posix (Depends-on): Likewise.
5609         * modules/vfprintf-posix (Depends-on): Likewise.
5610         * modules/vprintf-posix (Depends-on): Likewise.
5611         * modules/vsnprintf (Depends-on): Likewise.
5612         * modules/vsnprintf-posix (Depends-on): Likewise.
5613         * modules/vsprintf-posix (Depends-on): Likewise.
5614         * modules/wcrtomb (Depends-on): Likewise.
5615         * modules/wcscasecmp (Depends-on): Likewise.
5616         * modules/wcscspn (Depends-on): Likewise.
5617         * modules/wcsdup (Depends-on): Likewise.
5618         * modules/wcsncasecmp (Depends-on): Likewise.
5619         * modules/wcsnrtombs (Depends-on): Likewise.
5620         * modules/wcspbrk (Depends-on): Likewise.
5621         * modules/wcsrtombs (Depends-on): Likewise.
5622         * modules/wcsspn (Depends-on): Likewise.
5623         * modules/wcsstr (Depends-on): Likewise.
5624         * modules/wcstok (Depends-on): Likewise.
5625         * modules/wcswidth (Depends-on): Likewise.
5626         * modules/wctob (Depends-on): Likewise.
5627         * modules/wctomb (Depends-on): Likewise.
5628         * modules/wctype (Depends-on): Likewise.
5629         * modules/wcwidth (Depends-on): Likewise.
5630         * modules/write (Depends-on): Likewise.
5631
5632 2011-05-03  Bruno Haible  <bruno@clisp.org>
5633
5634         Support for conditional dependencies.
5635         * doc/gnulib.texi (Module description): Document the syntax of
5636         conditional dependencies.
5637         * gnulib-tool: New option --conditional-dependencies.
5638         (func_usage): Document it.
5639         (cond_dependencies): New variable.
5640         (func_get_automake_snippet_conditional,
5641         func_get_automake_snippet_unconditional): New functions, extracted from
5642         func_get_automake_snippet.
5643         (func_get_automake_snippet): Use them.
5644         (sed_first_32_chars): New variable.
5645         (func_module_shellfunc_name): New function.
5646         (func_module_shellvar_name): New function.
5647         (func_module_conditional_name): New function.
5648         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5649         func_cond_module_condition): New functions.
5650         (func_modules_transitive_closure): Add support for conditional
5651         dependencies.
5652         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5653         conditional automake snippet in an automake conditional.
5654         (func_emit_autoconf_snippets): Emit shell functions that contain the
5655         code for conditional modules.
5656         (func_import, func_create_testdir): Update specification.
5657
5658 2011-05-03  Eric Blake  <eblake@redhat.com>
5659
5660         test-getaddrinfo: report error information
5661         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5662
5663 2011-05-03  Jim Meyering  <meyering@redhat.com>
5664
5665         bootstrap: avoid build failure when $GZIP is set
5666         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5667         program name.  If defined at all, it is supposed to list gzip options.
5668         Reported by Alan Curry in http://debbugs.gnu.org/8609
5669
5670 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5671
5672         readme-release: new module with release instructions
5673         * modules/readme-release: New module.
5674         * top/README-release: New file, from coreutils, grep, diffutils.
5675         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5676
5677 2011-05-02  Eric Blake  <eblake@redhat.com>
5678
5679         fflush: also replace fclose when fixing fflush
5680         * modules/fflush (Depends-on): Add fclose.
5681         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5682         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5683         memstreams with no backing fd.
5684         * doc/posix-functions/fclose.texi (fclose): Document the use of
5685         fflush module to fix the bug.
5686         * tests/test-fclose.c (main): Relax test when fclose is used in
5687         isolation.
5688
5689         fclose: add some tests
5690         * modules/fclose-tests: New test module.
5691         * tests/test-fclose.c: New file.
5692         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5693
5694         fclose: reduced dependencies
5695         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5696         simpler lseek.
5697         * lib/fclose.c (rpl_fclose): Likewise.
5698         Reported by Simon Josefsson.
5699
5700         exit: drop remaining clients
5701         * modules/argmatch (Depends-on): Replace exit with stdlib.
5702         * modules/copy-file (Depends-on): Likewise.
5703         * modules/execute (Depends-on): Likewise.
5704         * modules/exitfail (Depends-on): Likewise.
5705         * modules/obstack (Depends-on): Likewise.
5706         * modules/pagealign_alloc (Depends-on): Likewise.
5707         * modules/pipe-filter-gi (Depends-on): Likewise.
5708         * modules/pipe-filter-ii (Depends-on): Likewise.
5709         * modules/savewd (Depends-on): Likewise.
5710         * modules/spawn-pipe (Depends-on): Likewise.
5711         * modules/wait-process (Depends-on): Likewise.
5712         * modules/xsetenv (Depends-on): Likewise.
5713         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5714         * modules/git-merge-changelog (Depends-on): Likewise.
5715         * modules/long-options (Depends-on): Likewise.
5716         * modules/pt_chown (Depends-on): Likewise.
5717         * modules/sysexits (Depends-on): Likewise.
5718
5719         freading: relax license from LGPLv3+ to LGPLv2+
5720         * modules/freading (License): Relax LGPL version.
5721
5722 2011-05-02  Bruno Haible  <bruno@clisp.org>
5723
5724         fchdir: Remove unused dependencies.
5725         * modules/fchdir (Depends-on): Remove include_next.
5726
5727 2011-05-02  Bruno Haible  <bruno@clisp.org>
5728
5729         gnulib-tool: Refactor.
5730         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5731         from func_emit_autoconf_snippets.
5732         (func_emit_autoconf_snippets): Use it.
5733
5734 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5735
5736         * NEWS: Document removal of 'exit'.
5737         * modules/exit: Remove file.
5738
5739 2011-05-01  Bruno Haible  <bruno@clisp.org>
5740
5741         Update DEPENDENCIES.
5742         * DEPENDENCIES (gettext): Recommend the newest release.
5743         Reported by Simon Josefsson.
5744
5745 2011-05-01  Bruno Haible  <bruno@clisp.org>
5746
5747         gnulib-tool: Reduce code duplication.
5748         * gnulib-tool (func_emit_autoconf_snippets): New function.
5749         (func_import, func_create_testdir): Use it.
5750
5751 2011-04-30  Eric Blake  <eblake@redhat.com>
5752
5753         fclose: don't fail on non-seekable input stream
5754         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5755         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5756         since fflush is allowed to fail in that case.
5757
5758 2011-04-30  Bruno Haible  <bruno@clisp.org>
5759
5760         dup3: cleanup
5761         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5762
5763 2011-04-30  Bruno Haible  <bruno@clisp.org>
5764
5765         netdb: Make it work in C++ mode.
5766         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5767         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5768         module.
5769         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5770         gl_MODULE_INDICATOR_FOR_TESTS.
5771         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5772         * modules/netdb-c++-tests: New file.
5773         * tests/test-netdb-c++.cc: New file.
5774
5775 2011-04-30  Bruno Haible  <bruno@clisp.org>
5776
5777         New modules 'vfscanf', 'vscanf'.
5778         * modules/vfscanf: New file.
5779         * modules/vscanf: New file.
5780         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5781         here.
5782         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5783         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5784
5785 2011-04-30  Bruno Haible  <bruno@clisp.org>
5786
5787         passfd: Add comments.
5788         * lib/passfd.c: Add comments about platforms.
5789
5790 2011-04-30  Bruno Haible  <bruno@clisp.org>
5791
5792         sys_uio: Make <sys/uio.h> self-contained.
5793         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5794         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5795
5796 2011-04-30  Bruno Haible  <bruno@clisp.org>
5797
5798         sys_socket: Ensure 'struct iovec' definition.
5799         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5800         <sys/socket.h>.
5801         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5802
5803 2011-04-30  Bruno Haible  <bruno@clisp.org>
5804
5805         sys_uio: Protect definition of 'struct iovec'.
5806         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5807         it as a C struct.
5808
5809 2011-04-30  Bruno Haible  <bruno@clisp.org>
5810
5811         manywarnings: fix indentation
5812         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5813
5814 2011-04-30  Pádraig Brady <P@draigBrady.com>
5815
5816         manywarnings: add -Wno-missing-field-initializers if needed.
5817         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5818         option if it's needed to allow initialization with { 0, }
5819
5820 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5821
5822         announce-gen: cosmetic improvement
5823         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5824
5825 2011-04-29  Jim Meyering  <meyering@redhat.com>
5826
5827         vc-list-files: indent with spaces, not TABs
5828         * build-aux/vc-list-files: Convert leading TABs to spaces,
5829         to match the style of most other files in gnulib.
5830
5831         announce-gen: indent with spaces, not TABs
5832         * build-aux/announce-gen: Convert all TABs to spaces, to match
5833         the style of most other files in gnulib.
5834
5835 2011-04-29  Eric Blake  <eblake@redhat.com>
5836
5837         quotearg: avoid uninitialized variable use
5838         * lib/quotearg.c (quoting_options_from_style): Initialize
5839         remaining fields, and ensure that custom styles are only used via
5840         quoting_options rather than quoting_style.
5841
5842 2011-04-29  Jim Meyering  <meyering@redhat.com>
5843
5844         maint.mk: remove unused VC-tag variable
5845         * top/maint.mk (VC-tag): Remove unused variable.
5846
5847 2011-04-29  Bruno Haible  <bruno@clisp.org>
5848
5849         netdb: fix gai_strerror replacements
5850         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5851         * modules/netdb: Substitute it.
5852
5853 2011-04-29  Jim Meyering  <meyering@redhat.com>
5854
5855         test-getcwd.c: avoid new set-but-not-used warning
5856         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5857         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5858         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5859         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5860
5861         test-hash.c: avoid a new shadowing warning
5862         * tests/test-hash.c (main): Don't shadow "dup".
5863
5864 2011-04-28  Eric Blake  <eblake@redhat.com>
5865
5866         getaddrinfo: fix gai_strerror signature
5867         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5868         and work around mingw with UNICODE defined.
5869         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5870         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5871         * modules/netdb (Makefile.am): Substitute it.
5872         * lib/netdb.in.h (gai_strerror): Declare replacement.
5873         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5874         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5875         the fix.
5876
5877         getsockopt: avoid compiler warning
5878         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5879         Reported by Matthias Bolte.
5880
5881         tests: drop unused link dependency
5882         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5883         * modules/dirent-safer-tests (Makefile.am): Likewise.
5884         * modules/fdopendir-tests (Makefile.am): Likewise.
5885         * modules/mkfifoat-tests (Makefile.am): Likewise.
5886         * modules/openat-safer-tests (Makefile.am): Likewise.
5887         * modules/openat-tests (Makefile.am): Likewise.
5888         * modules/readlinkat-tests (Makefile.am): Likewise.
5889         * modules/symlinkat-tests (Makefile.am): Likewise.
5890         * modules/linkat-tests (Makefile.am): Likewise.
5891         (Depends-on): Switch to filenamecat-lgpl.
5892         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5893         LIBINTL.
5894         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5895         * tests/test-linkat.c (main): Don't require xalloc.
5896
5897         hash, mgetgroups: drop xalloc dependency
5898         * lib/hash.c (includes): Adjust includes.
5899         * lib/mgetgroups.c (includes): Likewise.
5900         (xgetgroups): Move...
5901         * lib/xgetgroups.c: ...to new file.
5902         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5903         * modules/xgetgroups: New file, split from...
5904         * modules/mgetgroups: ...here.
5905         (Depends-on): Add xalloc-oversized.
5906         * modules/hash (Depends-on): Likewise.
5907         * modules/hash-tests (Depends-on): Drop xalloc.
5908         (test_hash_LDADD): Drop unused library.
5909         * tests/test-hash.c (main): Break xalloc dependency.
5910         (includes): Drop unused include.
5911
5912         xalloc-oversized: new module
5913         * modules/xalloc-oversized: New module.
5914         * modules/xalloc (Depends-on): Add it.
5915         * lib/xalloc.h (xalloc_oversized): Move...
5916         * lib/xalloc-oversized.h: ...into new file.
5917
5918         utimecmp: drop dependency on xmalloc
5919         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5920         due to memory pressure.
5921         * modules/utimecmp (Depends-on): Drop xalloc.
5922
5923 2011-04-27  Eric Blake  <eblake@redhat.com>
5924
5925         getcwd: fix mingw bugs
5926         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5927         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5928         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5929
5930 2011-04-27  Bruno Haible  <bruno@clisp.org>
5931
5932         mkstemps: Ensure declaration on MacOS X 10.5.
5933         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5934         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5935         MacOS X.
5936
5937 2011-04-27  Bruno Haible  <bruno@clisp.org>
5938
5939         mkstemp: More documentation.
5940         * doc/posix-functions/mkstemp.texi: Document header file problem on
5941         MacOS X.
5942
5943 2011-04-27  Bruno Haible  <bruno@clisp.org>
5944
5945         mkstemp: Tweak configure message when cross-compiling.
5946         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5947         result as a guess.
5948
5949 2011-04-27  Bruno Haible  <bruno@clisp.org>
5950
5951         clean-temp: Clarify what it does.
5952         * lib/clean-temp.h: Add more comments.
5953         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5954         module.
5955         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5956         * doc/glibc-functions/mkstemps.texi: Likewise.
5957         * doc/glibc-functions/mkostemps.texi: Likewise.
5958
5959 2011-04-27  Eric Blake  <eblake@redhat.com>
5960
5961         fchdir: avoid extra chdir and fix test
5962         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5963         getcwd-lgpl.
5964         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5965         have to be canonical.
5966         (canonicalize_file_name): Drop unused macro.
5967         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5968
5969         filenamecat-lgpl: fix licence
5970         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5971         when it was first created.
5972
5973         linkat, renameat: add missing dependency
5974         * modules/linkat (Depends-on): Require getcwd-lgpl.
5975         * modules/renameat (Depends-on): Likewise.
5976
5977         tests: reduce dependencies
5978         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5979         * tests/test-renameat.c (main): Likewise.
5980         * modules/linkat-tests (Depends-on): Relax dependency.
5981         * modules/renameat-tests (Depends-on): Likewise.
5982         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5983         dependency explicit.
5984
5985         save-cwd: reduce default dependency
5986         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5987         * lib/save-cwd.c: Update comments.
5988         * NEWS: Document the semantic change.
5989
5990         getcwd: enhance tests
5991         * tests/test-getcwd-lgpl.c: New file, taken from...
5992         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5993         repeat long path stress tests from m4 probe.
5994         * modules/getcwd-lgpl-tests: New module.
5995         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5996         * m4/getcwd-abort-bug.m4: Update comment.
5997         * m4/getcwd-path-max.m4: Likewise.
5998
5999         getcwd-lgpl: new module
6000         * modules/getcwd-lgpl: New module.
6001         * lib/getcwd-lgpl.c: New file.
6002         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6003         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6004         * modules/getcwd (configure.ac): Set C witness.
6005         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6006
6007         getcwd: tweak comments
6008         * m4/getcwd-abort-bug.m4: Fix comments.
6009         * m4/getcwd-path-max.m4: Likewise.
6010         * m4/getcwd.m4: Likewise.
6011
6012 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6013         and Eric Blake  <eblake@redhat.com>
6014
6015         mkstemp: replace if system version uses wrong permissions
6016         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6017         read/write mode bits set in file created by mkstemp.
6018         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6019
6020 2011-04-27  Eric Blake  <eblake@redhat.com>
6021
6022         passfd: avoid compiler warning
6023         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6024         Reported by Laine Stump.
6025
6026 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6027
6028         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6029         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6030
6031 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6032         and Eric Blake  <eblake@redhat.com>
6033
6034         mkstemp: mention clean-temp module
6035         * lib/mkstemp.c: Add comment.
6036         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6037
6038 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6039
6040         inttypes: also provide default values for 32-bit tests
6041         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6042         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6043
6044 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6045
6046         strtoumax: remove dependency on strtoimax
6047         This is like the strtoull change of yesterday.
6048         * modules/strtoumax (Files): Add lib/strtoimax.c.
6049         (Depends-on): Remove strtoimax and add verify.
6050
6051         inttypes-incomplete: new module
6052         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6053         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6054         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6055         of gl_INTTYPES_H.
6056         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6057         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6058         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6059         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6060         * modules/strtoumax, modules/xstrtol (Depends-on):
6061         Depend on inttypes-incomplete, not inttypes.
6062         * modules/inttypes-incomplete: New module, containing the contents
6063         of the old modules/inttypes module, except that the Files: section
6064         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6065         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6066         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6067         (Depends-on): Depend only on inttypes-incomplete.
6068         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6069
6070         inttypes: omit now-redundant strtoimax and strtoumax work
6071         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6072         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6073
6074         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6075         This supports apps that need pointers to strtoimax and strtoumax,
6076         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6077         nonexistent functions.  See
6078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6079         et seq.
6080         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6081         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6082         a macro.
6083         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6084
6085 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6086
6087         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6088
6089 2011-04-25  Bruno Haible  <bruno@clisp.org>
6090
6091         strtol, strtoul: Mark modules as obsolete.
6092         * modules/strtol (Status, Notice): New sections.
6093         * modules/strtoul (Status, Notice): New sections.
6094
6095 2011-04-25  Bruno Haible  <bruno@clisp.org>
6096
6097         strtod: Remove check for strtod, unless supporting old platforms.
6098         * modules/strtod-obsolete: New file.
6099         * m4/strtod-obsolete.m4: New file.
6100         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6101         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6102         * modules/strtod (Depends-on): Add strtod-obsolete.
6103         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6104
6105 2011-04-25  Bruno Haible  <bruno@clisp.org>
6106
6107         strcase: Make module obsolete.
6108         * modules/strcase (Status, Notice): New sections.
6109
6110 2011-04-25  Bruno Haible  <bruno@clisp.org>
6111
6112         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6113         * modules/dup2-obsolete: New file.
6114         * m4/dup2-obsolete.m4: New file.
6115         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6116         gl_FUNC_DUP2_OBSOLETE is not also defined.
6117         * modules/dup2 (Depends-on): Add dup2-obsolete.
6118         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6119
6120 2011-04-25  Bruno Haible  <bruno@clisp.org>
6121
6122         strnlen: Avoid memchr related link error on old obsolete platforms.
6123         * modules/memchr-obsolete: New file.
6124         * m4/memchr-obsolete.m4: New file.
6125         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6126         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6127         * modules/memchr (Depends-on): Add memchr-obsolete.
6128         * modules/strnlen (Depends-on): Likewise.
6129         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6130
6131 2011-04-25  Jim Meyering  <meyering@redhat.com>
6132
6133         maint.mk: makefile_at_at_check extend and clean up
6134         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6135         in addition to */Makefile.am.
6136         Exempt legitimate uses of @VAR@ notation, e.g.,
6137         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6138         Remove obsolete coreutils-specific comment.
6139         Prompted by discussion here:
6140         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6141
6142 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6143
6144         strtoul: remove dependency on strtol
6145         This is so that 'configure' need not check for strtol merely because
6146         the application needs strtoul.
6147         * modules/strtoul (Files): Add lib/strtol.c.
6148         (Depends-on): Remove strtol.
6149
6150         strtoull: remove dependency on strtoul
6151         This is like the strtoll change.
6152         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6153         (Depends-on): Remove strtoul.
6154
6155         strtoll: remove dependency on strtol
6156         This is so that 'configure' need not check for strtol merely because
6157         the application needs strtoll.
6158         * modules/strtoll (Files): Add lib/strtol.c.
6159         (Depends-on): Remove strtol.
6160
6161 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6162
6163         inttypes: Move some configure check to module 'imaxdiv'.
6164         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6165         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6166         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6167
6168 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6169
6170         inttypes: Move some configure check to module 'imaxabs'.
6171         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6172         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6173         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6174
6175 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6176
6177         inttypes: Remove configure tests that are not needed since 2009-12-31.
6178         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6179         gl_cv_header_working_inttypes_h.
6180
6181 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6182
6183         * modules/strnlen (Depends-on): Remove memchr.
6184         The strnlen implementation doesn't need the memchr module's fixes; see
6185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6186
6187         strtol: remove dependency on wchar
6188         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6189         * modules/strtol (Depends-on): Remove wchar.
6190
6191 2011-04-21  Eric Blake  <eblake@redhat.com>
6192
6193         passfd: fix test regression on Linux
6194         * modules/passfd-tests (configure.ac): Correct socketpair check.
6195
6196         passfd: speed up configure and drop unused code
6197         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6198         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6199         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6200         Instead of probing at configure for unix_scm_rights_bsd44_way,
6201         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6202         check to a struct member probe.
6203         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6204         (sendfd, recvfd): Update preprocessor checks.
6205         * modules/passfd (Files): Reflect rename, and drop unused file.
6206         (Depends-on): Drop unused dependency.
6207
6208         passfd: allow compilation on mingw
6209         * modules/sys_socket (Depends-on): Add sys_uio.
6210         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6211         iovec and a minimal struct msghdr.
6212         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6213         * tests/test-sys_socket.c (main): Enhance test.
6214         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6215         guaranteed to provide what we need.
6216         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6217         * modules/passfd-tests (Depends-on): Add sys_wait.
6218         * tests/test-passfd.c (main): Skip test on mingw, for now.
6219         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6220         partial 'struct msghdr' implementation.
6221
6222         sys_uio: new module
6223         * modules/sys_uio: New module.
6224         * modules/sys_uio-tests: Likewise.
6225         * lib/sys_uio.in.h: New file.
6226         * m4/sys_uio_h.m4: Likewise.
6227         * tests/test-sys_uio.c: Likewise.
6228         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6229         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6230
6231 2011-04-20  Jim Meyering  <meyering@redhat.com>
6232
6233         useless-if-before-free: avoid false-positive
6234         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6235         disjunct so that it too requires a terminating ";".  Without that,
6236         this script would identify as useless one statement from gcc that
6237         was not:
6238           if (aligned_ptr)
6239             free (((void **) aligned_ptr) [-1]);
6240
6241 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6242
6243         doc: update users.txt.
6244         * users.txt: Add barcode.
6245
6246 2011-04-19  Bruno Haible  <bruno@clisp.org>
6247
6248         ioctl: Remove link dependency on native Windows.
6249         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6250         (gl_close_fn, gl_ioctl_fn): New types.
6251         (struct fd_hook): Renamed from struct close_hook. Change type of
6252         private_close_fn field. Add private_ioctl_fn field.
6253         (close_hook_fn): Add parameter for primary close method.
6254         (execute_close_hooks, execute_all_close_hooks): Likewise.
6255         (ioctl_hook_fn): New type.
6256         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6257         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6258         argument.
6259         (unregister_fd_hook): Renamed from unregister_close_hook.
6260         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6261         Don't include <unistd.h>.
6262         (close): Remove undef.
6263         (anchor): Update.
6264         (execute_close_hooks): Add argument for primary close method.
6265         (execute_all_close_hooks): Likewise.
6266         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6267         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6268         argument. Allow each argument to be NULL.
6269         (unregister_fd_hook): Renamed from unregister_close_hook.
6270         * lib/close.c (rpl_close): Pass 'close' function pointer to
6271         execute_all_close_hooks.
6272         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6273         (primary_ioctl): New function.
6274         (ioctl): Don't call ioctlsocket here. Instead, call
6275         execute_all_ioctl_hooks.
6276         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6277         close method.
6278         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6279         (fd_sockets_hook): Renamed from close_sockets_hook.
6280         (gl_sockets_startup, gl_sockets_cleanup): Update.
6281         * modules/fd-hook: Renamed from modules/close-hook. Update.
6282         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6283         * modules/sockets (Depends-on): Likewise.
6284         * modules/ioctl (Depends-on): Add fd-hook.
6285         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6286         GNULIB_SOCKET.
6287
6288 2011-04-19  Bruno Haible  <bruno@clisp.org>
6289
6290         Move the support of O_NONBLOCK in open() to the 'open' module.
6291         * modules/nonblocking (Depends-on): Remove 'open'.
6292         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6293         gl_cv_have_open_O_NONBLOCK.
6294         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6295         O_NONBLOCK support.
6296         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6297
6298 2011-04-17  Bruno Haible  <bruno@clisp.org>
6299
6300         pipe2: Simplify code.
6301         * lib/pipe2.c (pipe2): Reduce code duplication.
6302
6303 2011-04-17  Bruno Haible  <bruno@clisp.org>
6304
6305         nonblocking: Add comment.
6306         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6307
6308 2011-04-17  Bruno Haible  <bruno@clisp.org>
6309
6310         nonblocking: Add tests for sockets.
6311         * tests/test-nonblocking-socket.sh: New file.
6312         * tests/test-nonblocking-socket-main.c: New file.
6313         * tests/test-nonblocking-socket-child.c: New file.
6314         * tests/test-nonblocking-socket.h: New file.
6315         * tests/socket-server.h: New file.
6316         * tests/socket-client.h: New file.
6317         * modules/nonblocking-socket-tests: New file.
6318         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6319
6320 2011-04-17  Bruno Haible  <bruno@clisp.org>
6321
6322         nonblocking: Add tests for pipes.
6323         * tests/test-nonblocking-pipe.sh: New file.
6324         * tests/test-nonblocking-pipe-main.c: New file.
6325         * tests/test-nonblocking-pipe-child.c: New file.
6326         * tests/test-nonblocking-pipe.h: New file.
6327         * tests/test-nonblocking-writer.h: New file.
6328         * tests/test-nonblocking-reader.h: New file.
6329         * tests/test-nonblocking-misc.h: New file.
6330         * modules/nonblocking-pipe-tests: New file.
6331         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6332
6333 2011-04-16  Bruno Haible  <bruno@clisp.org>
6334
6335         gettext: Clarify the needed programmer actions.
6336         * modules/gettext (Notice): New field.
6337         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6338
6339 2011-04-16  Bruno Haible  <bruno@clisp.org>
6340
6341         strchrnul: Tweak last commit.
6342         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6343         bug.
6344         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6345         as in _GL_FUNCDECL_SYS.
6346         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6347         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6348
6349 2011-04-15  Eric Blake  <eblake@redhat.com>
6350
6351         strchrnul: work around cygwin bug
6352         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6353         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6355         * modules/string (Makefile.am): Substitute it.
6356         * lib/string.in.h (strchrnul): Use it.
6357
6358 2011-04-15  Bruno Haible  <bruno@clisp.org>
6359
6360         Don't require lib/stdio-write.c when only module 'stdio' is used.
6361         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6362         invocation.
6363         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6364
6365 2011-04-14  Bruno Haible  <bruno@clisp.org>
6366
6367         Support non-blocking pipe I/O in read() on native Windows.
6368         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6369         (read): New declaration.
6370         * lib/read.c: New file.
6371         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6372         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6373         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6374         vscanf): New declarations.
6375         * lib/stdio-read.c: New file.
6376         * m4/read.m4: New file.
6377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6378         REPLACE_READ.
6379         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6380         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6381         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6382         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6383         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6384         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6385         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6386         * modules/read: New file.
6387         * modules/nonblocking (Files): Add lib/stdio-read.c.
6388         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6389         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6390         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6391         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6392         * modules/pread (Depends-on): Add read.
6393         * modules/safe-read (Depends-on): Likewise.
6394         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6395         gets, scanf, vfscanf, vscanf): Verify signatures.
6396         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6397         problem with non-blocking pipes.
6398         * doc/posix-functions/fgetc.texi: Likewise.
6399         * doc/posix-functions/fgets.texi: Likewise.
6400         * doc/posix-functions/fread.texi: Likewise.
6401         * doc/posix-functions/fscanf.texi: Likewise.
6402         * doc/posix-functions/getc.texi: Likewise.
6403         * doc/posix-functions/getchar.texi: Likewise.
6404         * doc/posix-functions/gets.texi: Likewise.
6405         * doc/posix-functions/scanf.texi: Likewise.
6406         * doc/posix-functions/vfscanf.texi: Likewise.
6407         * doc/posix-functions/vscanf.texi: Likewise.
6408
6409 2011-04-14  Bruno Haible  <bruno@clisp.org>
6410
6411         Support non-blocking pipe I/O in write() on native Windows.
6412         * lib/write.c (rpl_write): Split a write request that failed merely
6413         because the byte count was larger than the pipe buffer's size.
6414         * doc/posix-functions/write.texi: Mention the problem with large byte
6415         counts.
6416
6417 2011-04-14  Bruno Haible  <bruno@clisp.org>
6418
6419         wchar: Ensure that wchar_t gets defined on uClibc.
6420         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6421         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6422
6423 2011-04-13  Bruno Haible  <bruno@clisp.org>
6424
6425         safe-write, full-read: Avoid unnecessary compilation units.
6426         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6427         (Depends-on): Remove safe-read. Add ssize_t.
6428         * modules/full-read (Files): Add lib/full-write.c.
6429         (Depends-on): Add full-write.
6430
6431 2011-04-13  Bruno Haible  <bruno@clisp.org>
6432
6433         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6434         * modules/pwrite (Depends-on): Add 'write'.
6435
6436 2011-04-13  Bruno Haible  <bruno@clisp.org>
6437
6438         Support non-blocking pipe I/O in write() on native Windows.
6439         * lib/unistd.in.h (write): Enable replacement also if
6440         GNULIB_UNISTD_H_NONBLOCKING is 1.
6441         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6442         (rpl_write): When failing to write on a non-blocking pipe, change
6443         errno from ENOSPC to EAGAIN.
6444         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6445         putchar, puts, vfprintf, vprintf): Enable replacement also if
6446         GNULIB_STDIO_H_NONBLOCKING is 1.
6447         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6448         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6449         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6450         CALL_WITH_SIGPIPE_EMULATION.
6451         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6452         * m4/nonblocking.m4: New file.
6453         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6454         for non-blocking I/O support.
6455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6456         GNULIB_UNISTD_H_NONBLOCKING.
6457         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6458         required for non-blocking I/O support.
6459         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6460         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6461         lib/stdio-write.c, m4/asm-underscore.m4.
6462         (Depends-on): Add stdio, unistd.
6463         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6464         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6465         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6466         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6467         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6468         problem with non-blocking pipes.
6469         * doc/posix-functions/fputc.texi: Likewise.
6470         * doc/posix-functions/fputs.texi: Likewise.
6471         * doc/posix-functions/fwrite.texi: Likewise.
6472         * doc/posix-functions/printf.texi: Likewise.
6473         * doc/posix-functions/putc.texi: Likewise.
6474         * doc/posix-functions/putchar.texi: Likewise.
6475         * doc/posix-functions/puts.texi: Likewise.
6476         * doc/posix-functions/vfprintf.texi: Likewise.
6477         * doc/posix-functions/vprintf.texi: Likewise.
6478         * doc/posix-functions/write.texi: Likewise.
6479
6480 2011-04-10  Jim Meyering  <meyering@redhat.com>
6481
6482         maint.mk: prohibit doubled words
6483         Detect them also when they're separated by a newline.
6484         There are 3 ways to customize it:
6485           - disable the test on a per file basis, as usual with rules using
6486             $(VC_LIST_EXCEPT)
6487           - replace the default doubled-word-selecting regexp (affects all files)
6488           - ignore a particular file-vs-doubled-word match
6489         I nearly used that last one to ignore the "is is" match in
6490         coreutils' NEWS file, since the text was "ls -is is ..."
6491         To do that, I would have added this line to cfg.mk:
6492           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6493         but it would have ignored any "is is" match in NEWS.
6494         Low probability, but still...
6495         Instead, I changed the text, slightly:
6496           -  ls -is is now consistent with ls -lis in ignoring values returned
6497           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6498         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6499         (prohibit_doubled_word_): Define.
6500         (sc_prohibit_doubled_word): New rule.
6501         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6502
6503 2011-04-10  Jim Meyering  <meyering@redhat.com>
6504
6505         maint: fix doubled-word typo in comment
6506         * m4/gethostname.m4: s/is is/it is/
6507         * m4/getdomainname.m4: Likewise.
6508
6509 2011-04-10  Jim Meyering  <meyering@redhat.com>
6510
6511         maint: remove doubled word: s/it it/it/
6512         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6513
6514 2011-04-10  Jim Meyering  <meyering@redhat.com>
6515
6516         maint.mk: remove useless semicolon and backslash
6517         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6518         semicolon and backslash.
6519
6520 2011-04-10  Bruno Haible  <bruno@clisp.org>
6521
6522         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6523         * modules/stdint-tests (Depends-on): Add wchar.
6524
6525 2011-04-10  Jim Meyering  <meyering@redhat.com>
6526
6527         maint: remove doubled words in comments, e.g., s/a a/a/
6528         * lib/strptime.c (day_of_the_week): s/the the/the/
6529         * tests/test-chown.h (test_chown): s/a a/a/
6530
6531         test-chown.h: correct a cast
6532         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6533         when the destination is a stat.st_gid.
6534
6535 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6536
6537         getaddrinfo: Fix test for sa_len member.
6538         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6539         include <sys/types.h> before <sys/socket.h>.
6540
6541 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6542
6543         maint: change "can not" to "cannot"
6544         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6545         boundaries.
6546
6547 2011-04-09  Jim Meyering  <meyering@redhat.com>
6548
6549         maint: change "a a" to "a"
6550         * tests/test-lchown.h (test_lchown): s/a a/a/
6551
6552         maint.mk: prohibit \<the the\>
6553         * top/maint.mk (sc_prohibit_the_the): New rule.
6554
6555         maint: fix "the the" in comment
6556         * lib/count-one-bits.h: s/the the/the/
6557
6558         maint: change "can not" to "cannot"
6559         But do not change the occurrences in maintain.texi or in
6560         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6561         * doc/gnulib-tool.texi: s/can not/cannot/
6562         * doc/posix-functions/accept.texi (accept): Likewise.
6563         * doc/posix-functions/socket.texi (socket): Likewise.
6564         * lib/mbrtowc.c: Likewise.
6565
6566         maint.mk: prohibit use of "can not"
6567         * top/maint.mk (sc_prohibit_can_not): New rule.
6568         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6569
6570 2011-04-09  Bruno Haible  <bruno@clisp.org>
6571
6572         careadlinkat: Guard against misuse of careadlinkatcwd.
6573         * lib/careadlinkat.c: Include <stdlib.h>.
6574         (careadlinkatcwd): Check that the fd argument is as expected.
6575
6576 2011-04-09  Bruno Haible  <bruno@clisp.org>
6577
6578         careadlinkat: Use common coding style.
6579         * lib/careadlinkat.c: Move gnulib includes after system includes.
6580
6581 2011-04-09  Bruno Haible  <bruno@clisp.org>
6582
6583         careadlinkat: Clarify specification.
6584         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6585         (careadlinkatcwd): Add comment.
6586         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6587
6588 2011-04-09  Bruno Haible  <bruno@clisp.org>
6589
6590         areadlinkat: Avoid link error on many platforms.
6591         * modules/areadlinkat (Depends-on): Add areadlink.
6592
6593 2011-04-09  Bruno Haible  <bruno@clisp.org>
6594
6595         allocator, careadlinkat: Fix double-inclusion guard.
6596         * lib/allocator.h: Fix double-inclusion guard.
6597         * lib/careadlinkat.h: Likewise.
6598
6599 2011-04-09  Bruno Haible  <bruno@clisp.org>
6600
6601         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6602         * lib/relocwrapper.c: Update dependencies hierarchy.
6603         * build-aux/install-reloc: Update list of files to be compiled.
6604         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6605         lib/allocator.[hc].
6606
6607 2011-04-08  Eric Blake  <eblake@redhat.com>
6608
6609         strftime: silence gnulib-tool warning
6610         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6611
6612 2011-04-08  Bruno Haible  <bruno@clisp.org>
6613
6614         verify: Fix syntax error with GCC 4.6 in C++ mode.
6615         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6616         (HAVE_STATIC_ASSERT): New macro.
6617         (verify_true, verify): Use 'static_assert' if it is supported and
6618         '_Static_assert' is not supported.
6619
6620 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6621
6622         allocator: New module.
6623         * modules/allocator, lib/allocator.c: New files.
6624         * lib/allocator.h (stdlib_allocator): New decl.
6625         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6626         Remove.  Do not include <stdlib.h>.
6627         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6628         * modules/careadlinkat (Files): Remove lib/allocator.h.
6629         (Depends-on): Add allocator.
6630
6631         stdlib: let modules use system malloc, realloc
6632         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6633         if !_GL_USE_STDLIB_ALLOC.
6634         (malloc, realloc): Limit this change to a smaller scope.
6635
6636         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6637         (malloc, realloc): Don't #undef; no longer needed.
6638         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6639         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6640         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6641         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6642         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6643         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6644         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6645         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6646
6647         careadlinkat: rename members to avoid problem
6648         * lib/allocator.h (struct allocator): Rename members from
6649         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6650         and realloc are #define'd.  Reported by Eric Blake in
6651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6652         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6653
6654 2011-04-08  Eric Blake  <eblake@redhat.com>
6655
6656         nonblocking: reduce dependency
6657         * tests/test-nonblocking.c: Only test sockets when in use.
6658         * modules/nonblocking-tests (Depends-on): Drop socket.
6659         (Makefile.am): Link even if sockets are not present.
6660         * modules/pipe2-tests (Makefile.am): Likewise.
6661         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6662
6663         pipe2: fix O_NONBLOCK support on mingw
6664         * modules/pipe2 (Depends-on): Add nonblocking.
6665         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6666         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6667         * tests/test-nonblocking.c (main): Likewise.
6668         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6669
6670         fcntl-h: fix O_ACCMODE on cygwin
6671         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6672         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6673
6674         pipe-filter: drop O_NONBLOCK workarounds
6675         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6676         * modules/pipe-filter-ii (Depends-on): Likewise.
6677         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6678
6679         nonblocking: provide O_NONBLOCK for mingw
6680         * modules/nonblocking (Depends-on): Add open.
6681         (configure.ac): Set new witness macro.
6682         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6683         * modules/fcntl-h (Makefile.am): Substitute it.
6684         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6685         nonblocking module is in use.
6686         * lib/nonblocking.c: Adjust portability test.
6687         * lib/open.c (open): Don't let native open see gnulib flag.
6688         * tests/test-fcntl-h.c (main): Enhance test.
6689         * tests/test-open.h (test_open): Likewise.
6690         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6691
6692         careadlinkat: fix compilation error on mingw
6693         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6694         within struct allocator.
6695
6696 2011-04-06  Eric Blake  <eblake@redhat.com>
6697
6698         binary-io: relicense under LGPLv2+
6699         * modules/binary-io (License): Relax to LGPLv2+.
6700         Requested for libvirt, and required by pipe2.
6701
6702 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6703
6704         verify: use _Static_assert if available
6705         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6706         (verify_true, verify): Use it if available.  This generates better
6707         diagnostics with GCC 4.6.0 and later.
6708
6709 2011-04-05  Bruno Haible  <bruno@clisp.org>
6710
6711         Remove leftover generated .h files after config.status changed.
6712
6713         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6714         GL_GENERATE_ALLOCA_H.
6715         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6716         GL_GENERATE_ALLOCA_H evaluates to false.
6717
6718         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6719         GL_GENERATE_ARGZ_H.
6720         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6721         evaluates to false.
6722
6723         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6724         GL_GENERATE_BYTESWAP_H.
6725         * modules/byteswap (Makefile.am): Remove byteswap.h if
6726         GL_GENERATE_BYTESWAP_H evaluates to false.
6727
6728         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6729         GL_GENERATE_ERRNO_H.
6730         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6731         evaluates to false.
6732
6733         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6734         GL_GENERATE_FLOAT_H.
6735         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6736         evaluates to false.
6737
6738         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6739         GL_GENERATE_FNMATCH_H.
6740         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6741         GL_GENERATE_FNMATCH_H evaluates to false.
6742
6743         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6744         GL_GENERATE_GLOB_H.
6745         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6746         evaluates to false.
6747
6748         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6749         automake conditional GL_GENERATE_ICONV_H.
6750         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6751         evaluates to false.
6752
6753         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6754         GL_GENERATE_NETINET_IN_H.
6755         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6756         GL_GENERATE_NETINET_IN_H evaluates to false.
6757
6758         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6759         conditional GL_GENERATE_PTHREAD_H.
6760         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6761         * modules/pthread (Makefile.am): Remove pthread.h if
6762         GL_GENERATE_PTHREAD_H evaluates to false.
6763
6764         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6765         GL_GENERATE_SCHED_H.
6766         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6767         evaluates to false.
6768
6769         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6770         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6771         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6772         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6773
6774         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6775         GL_GENERATE_STDARG_H.
6776         * modules/stdarg (Makefile.am): Remove stdarg.h if
6777         GL_GENERATE_STDARG_H evaluates to false.
6778
6779         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6780         GL_GENERATE_STDBOOL_H.
6781         * modules/stdbool (Makefile.am): Remove stdbool.h if
6782         GL_GENERATE_STDBOOL_H evaluates to false.
6783
6784         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6785         conditional GL_GENERATE_STDDEF_H.
6786         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6787         * modules/stddef (Makefile.am): Remove stddef.h if
6788         GL_GENERATE_STDDEF_H evaluates to false.
6789
6790         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6791         GL_GENERATE_STDINT_H.
6792         * modules/stdint (Makefile.am): Remove stdint.h if
6793         GL_GENERATE_STDINT_H evaluates to false.
6794
6795         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6796         GL_GENERATE_SYSEXITS_H.
6797         * modules/sysexits (Makefile.am): Remove sysexits.h if
6798         GL_GENERATE_SYSEXITS_H evaluates to false.
6799
6800         Reported by Karl Berry and Ralf Wildenhues.
6801
6802 2011-04-05  Bruno Haible  <bruno@clisp.org>
6803
6804         Ensure to rebuild generated .h files when config.status has changed.
6805         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6806         config.status.
6807         * modules/ctype (Makefile.am): Likewise.
6808         * modules/dirent (Makefile.am): Likewise.
6809         * modules/errno (Makefile.am): Likewise.
6810         * modules/fcntl-h (Makefile.am): Likewise.
6811         * modules/float (Makefile.am): Likewise.
6812         * modules/getopt-posix (Makefile.am): Likewise.
6813         * modules/glob (Makefile.am): Likewise.
6814         * modules/iconv-h (Makefile.am): Likewise.
6815         * modules/inttypes (Makefile.am): Likewise.
6816         * modules/langinfo (Makefile.am): Likewise.
6817         * modules/locale (Makefile.am): Likewise.
6818         * modules/math (Makefile.am): Likewise.
6819         * modules/netdb (Makefile.am): Likewise.
6820         * modules/netinet_in (Makefile.am): Likewise.
6821         * modules/poll-h (Makefile.am): Likewise.
6822         * modules/pthread (Makefile.am): Likewise.
6823         * modules/pty (Makefile.am): Likewise.
6824         * modules/sched (Makefile.am): Likewise.
6825         * modules/search (Makefile.am): Likewise.
6826         * modules/selinux-h (Makefile.am): Likewise.
6827         * modules/signal (Makefile.am): Likewise.
6828         * modules/spawn (Makefile.am): Likewise.
6829         * modules/stdarg (Makefile.am): Likewise.
6830         * modules/stdbool (Makefile.am): Likewise.
6831         * modules/stddef (Makefile.am): Likewise.
6832         * modules/stdint (Makefile.am): Likewise.
6833         * modules/stdio (Makefile.am): Likewise.
6834         * modules/stdlib (Makefile.am): Likewise.
6835         * modules/string (Makefile.am): Likewise.
6836         * modules/strings (Makefile.am): Likewise.
6837         * modules/sys_file (Makefile.am): Likewise.
6838         * modules/sys_ioctl (Makefile.am): Likewise.
6839         * modules/sys_select (Makefile.am): Likewise.
6840         * modules/sys_socket (Makefile.am): Likewise.
6841         * modules/sys_stat (Makefile.am): Likewise.
6842         * modules/sys_time (Makefile.am): Likewise.
6843         * modules/sys_times (Makefile.am): Likewise.
6844         * modules/sys_utsname (Makefile.am): Likewise.
6845         * modules/sys_wait (Makefile.am): Likewise.
6846         * modules/sysexits (Makefile.am): Likewise.
6847         * modules/termios (Makefile.am): Likewise.
6848         * modules/time (Makefile.am): Likewise.
6849         * modules/unistd (Makefile.am): Likewise.
6850         * modules/wchar (Makefile.am): Likewise.
6851         * modules/wctype-h (Makefile.am): Likewise.
6852         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6853
6854 2011-04-05  Bruno Haible  <bruno@clisp.org>
6855
6856         pipe2: Relicense under LGPLv2+.
6857         * modules/pipe2 (License): Change to LGPLv2+.
6858         Requested by Eric Blake, for libvirt.
6859
6860 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6861
6862         bootstrap: compute gnulib_extra_files after updating build_aux
6863         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6864         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6865
6866 2011-04-05  Eric Blake  <eblake@redhat.com>
6867
6868         bootstrap: preserve git whitelist item sorting
6869         * build-aux/bootstrap (sort_patterns): New function.
6870         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6871
6872 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6873
6874         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6875         sc_space_tab check.
6876
6877 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6878
6879         areadlink, areadlinkat: rewrite in terms of careadlinkat
6880         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6881         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6882         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6883         (malloc, realloc): Remove #undefs.
6884         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6885         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6886         readlink, ssize_t, stdint, unistd.
6887         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6888         areadlink, stdint.
6889
6890         careadlinkat: new module
6891         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6892         * modules/careadlinkat: New files, written by me with
6893         a review and feedback from Ben Pfaff in
6894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6895
6896 2011-04-01  Bruno Haible  <bruno@clisp.org>
6897
6898         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6899         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6900         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6901         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6902         Reported by Bruce Korb <bruce.korb@gmail.com>.
6903
6904 2011-04-01  Bruno Haible  <bruno@clisp.org>
6905
6906         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6907         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6908         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6909         * modules/wcpcpy (Depends-on): Add extensions.
6910         * modules/wcpncpy (Depends-on): Likewise.
6911         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6912         systems.
6913         * doc/posix-functions/wcpncpy.texi: Likewise.
6914         * doc/posix-functions/wcwidth.texi: Likewise.
6915
6916 2011-03-31  Eric Blake  <eblake@redhat.com>
6917
6918         nonblocking: fix mingw test failures
6919         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6920         non-blocking flag on regular file.
6921         (get_nonblocking_flag): Set errno on invalid fd.
6922         * tests/test-nonblocking.c (main): Avoid test failure on
6923         directories if fchdir is not active.
6924         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6925
6926 2011-03-31  Bruno Haible  <bruno@clisp.org>
6927
6928         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6929         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6930         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6931         Reported by Simon Josefsson <simon@josefsson.org>.
6932
6933 2011-03-31  Bruno Haible  <bruno@clisp.org>
6934         and Eric Blake  <eblake@redhat.com>
6935
6936         nonblocking: new module
6937         * modules/nonblocking: New module.
6938         * modules/nonblocking-tests: Likewise.
6939         * lib/nonblocking.h: New file.
6940         * lib/nonblocking.c: Likewise.
6941         * tests/test-nonblocking.c: New test.
6942         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6943
6944 2011-03-30  Bruno Haible  <bruno@clisp.org>
6945
6946         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6947         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6948         instead of 'printf' format for GCC >= 4.4.
6949         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6950         (fprintf, printf, vfprintf, vprintf): Declare with
6951         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6952         the system's vfprintf() function.
6953         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6954
6955 2011-03-30  Eric Blake  <eblake@redhat.com>
6956
6957         passfd: fix scoping bug
6958         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6959         before sendmsg/recvmsg.
6960
6961         passfd: standardize coding conventions
6962         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6963         can be learned at compile time.
6964         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6965         ifdefs.
6966         (sendfd, recvfd): Follow gnulib code conventions.
6967
6968         passfd: fix incorrect sendmsg arguments
6969         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6970         incorrect msg_controllen value.
6971         * modules/passfd-tests (Depends-on): Check for alarm.
6972         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6973         Reported by Bastien ROUCARIES.
6974
6975 2011-03-30  Bruno Haible  <bruno@clisp.org>
6976
6977         c-strcasestr: Relicense under LGPLv2+.
6978         * modules/c-strcasestr (License): Change to LGPLv2+.
6979         Requested by Eric Blake, for libvirt.
6980
6981 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6982
6983         * users.txt: Add libidn2.  Fix libtasn1 link.
6984
6985 2011-03-30  Jim Meyering  <meyering@redhat.com>
6986
6987         tests: readlink* ("",... fails with EINVAL on newer kernels
6988         readlink and readlinkat have typically failed with ENOENT for
6989         the invalid, empty file name,  "".  However, with the advent
6990         of linux-2.6.39, they fail with EINVAL.
6991         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6992         when operating on the empty file name.
6993         * tests/test-readlink.h (test_readlink): Likewise.
6994
6995 2011-03-29  Bruno Haible  <bruno@clisp.org>
6996
6997         Relicense some modules under LGPLv2+, for libidn2.
6998         * modules/array-mergesort (License): Change to LGPLv2+.
6999         * modules/c-strcaseeq (License): Likewise.
7000         * modules/striconveh (License): Likewise.
7001         * modules/striconveha (License): Likewise.
7002         * modules/uniconv/base (License): Likewise.
7003         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7004         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7005         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7006         * modules/unictype/base (License): Likewise.
7007         * modules/unictype/bidiclass-of (License): Likewise.
7008         * modules/unictype/category-M (License): Likewise.
7009         * modules/unictype/category-none (License): Likewise.
7010         * modules/unictype/category-of (License): Likewise.
7011         * modules/unictype/category-test (License): Likewise.
7012         * modules/unictype/category-test-withtable (License): Likewise.
7013         * modules/unictype/combining-class (License): Likewise.
7014         * modules/unictype/joiningtype-of (License): Likewise.
7015         * modules/unictype/scripts (License): Likewise.
7016         * modules/uninorm/base (License): Likewise.
7017         * modules/uninorm/canonical-decomposition (License): Likewise.
7018         * modules/uninorm/composition (License): Likewise.
7019         * modules/uninorm/decompose-internal (License): Likewise.
7020         * modules/uninorm/decomposition-table (License): Likewise.
7021         * modules/uninorm/nfc (License): Likewise.
7022         * modules/uninorm/nfd (License): Likewise.
7023         * modules/uninorm/u32-normalize (License): Likewise.
7024         * modules/unistr/base (License): Likewise.
7025         * modules/unistr/u32-cpy (License): Likewise.
7026         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7027         * modules/unistr/u32-to-u8 (License): Likewise.
7028         * modules/unistr/u32-uctomb (License): Likewise.
7029         * modules/unistr/u8-check (License): Likewise.
7030         * modules/unistr/u8-mblen (License): Likewise.
7031         * modules/unistr/u8-mbtouc (License): Likewise.
7032         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7033         * modules/unistr/u8-mbtoucr (License): Likewise.
7034         * modules/unistr/u8-prev (License): Likewise.
7035         * modules/unistr/u8-strlen (License): Likewise.
7036         * modules/unistr/u8-to-u32 (License): Likewise.
7037         * modules/unistr/u8-uctomb (License): Likewise.
7038         * modules/unitypes (License): Likewise.
7039         Requested by Simon Josefsson.
7040
7041 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7042
7043         lib-symbol-visibility: Add a notice.
7044         * modules/lib-symbol-visibility (Notice): New field.
7045
7046 2011-03-29  Bruno Haible  <bruno@clisp.org>
7047
7048         getaddrinfo: Doc fix.
7049         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7050         section "fixed in Gnulib".
7051
7052 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7053
7054         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7055         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7056
7057 2011-03-26  Bruno Haible  <bruno@clisp.org>
7058
7059         unictype/property-byname: Reduce the number of load-time relocations.
7060         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7061         (UC_PROPERTY_INDEX_*): New enumeration values.
7062         (uc_property_byname): Convert an index from the lookup table to an
7063         uc_property_t.
7064         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7065         values.
7066
7067 2011-03-26  Bruno Haible  <bruno@clisp.org>
7068
7069         unictype/property-byname: Allow omitted word separators and aliases.
7070         * lib/unictype/pr_byname.gperf: Add property names without word
7071         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7072         for 'space'.
7073
7074 2011-03-26  Bruno Haible  <bruno@clisp.org>
7075
7076         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7077         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7078         also hyphens to space.
7079         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7080         without spaces.
7081         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7082
7083 2011-03-26  Bruno Haible  <bruno@clisp.org>
7084
7085         unictype/joiningtype-byname: Recognize long names as well.
7086         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7087         a long name.
7088         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7089         unictype/joiningtype_byname.h.
7090         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7091         * lib/unictype/joiningtype_byname.gperf: New file.
7092         * modules/unictype/joiningtype-byname (Files): Add
7093         lib/unictype/joiningtype_byname.gperf.
7094         (Depends-on): Add gperf.
7095         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7096         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7097         long names.
7098
7099         Tests for module 'unictype/joiningtype-longname'.
7100         * modules/unictype/joiningtype-longname-tests: New file.
7101         * tests/unictype/test-joiningtype_longname.c: New file.
7102
7103         New module 'unictype/joiningtype-longname'.
7104         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7105         * lib/unictype/joiningtype_longname.c: New file.
7106         * modules/unictype/joiningtype-longname: New file.
7107         * modules/unictype/joiningtype-all (Depends-on): Add
7108         unictype/joiningtype-longname.
7109
7110 2011-03-26  Bruno Haible  <bruno@clisp.org>
7111
7112         unictype/bidiclass-byname: Recognize long names as well.
7113         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7114         name.
7115         * lib/unictype/bidi_byname.c: Include <string.h>,
7116         unictype/bidi_byname.h.
7117         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7118         * lib/unictype/bidi_byname.gperf: New file.
7119         * modules/unictype/bidiclass-byname (Files): Add
7120         lib/unictype/bidi_byname.gperf.
7121         (Depends-on): Add gperf.
7122         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7123         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7124         long names.
7125
7126         Tests for module 'unictype/bidiclass-longname'.
7127         * modules/unictype/bidiclass-longname-tests: New file.
7128         * tests/unictype/test-bidi_longname.c: New file.
7129
7130         New module 'unictype/bidiclass-longname'.
7131         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7132         * lib/unictype/bidi_longname.c: New file.
7133         * modules/unictype/bidiclass-longname: New file.
7134         * modules/unictype/bidiclass-all (Depends-on): Add
7135         unictype/bidiclass-longname.
7136
7137 2011-03-26  Bruno Haible  <bruno@clisp.org>
7138
7139         unictype/bidi*: Rename modules.
7140         * modules/unictype/bidiclass-all: Renamed from
7141         modules/unictype/bidicategory-all.
7142         * modules/unictype/bidiclass-name: Renamed from
7143         modules/unictype/bidiclass-name.
7144         (Description): Update.
7145         * modules/unictype/bidiclass-name-tests: Renamed from
7146         modules/unictype/bidicategory-name-tests.
7147         * modules/unictype/bidiclass-byname: Renamed from
7148         modules/unictype/bidicategory-byname.
7149         (Description): Update.
7150         * modules/unictype/bidiclass-byname-tests: Renamed from
7151         modules/unictype/bidicategory-byname-tests.
7152         * modules/unictype/bidiclass-of: Renamed from
7153         modules/unictype/bidicategory-of.
7154         (Description): Update.
7155         * modules/unictype/bidiclass-of-tests: Renamed from
7156         modules/unictype/bidicategory-of-tests.
7157         * modules/unictype/bidiclass-test: Renamed from
7158         modules/unictype/bidicategory-test.
7159         (Description): Update.
7160         * modules/unictype/bidiclass-test-tests: Renamed from
7161         modules/unictype/bidicategory-test-tests.
7162         * modules/unictype/bidicategory-all: New file, a simple redirection.
7163         * modules/unictype/bidicategory-name: Likewise.
7164         * modules/unictype/bidicategory-byname: Likewise.
7165         * modules/unictype/bidicategory-of: Likewise.
7166         * modules/unictype/bidicategory-test: Likewise.
7167         * modules/unictype/property-bidi-* (Dependencies): Update.
7168         * lib/unictype/bidi_*.c: Update comment.
7169
7170 2011-03-26  Bruno Haible  <bruno@clisp.org>
7171
7172         unictype/bidi*: Rename functions, part 2.
7173         * modules/unictype/bidicategory-name (configure.ac): Update required
7174         libunistring version.
7175         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7176
7177 2011-03-25  Bruno Haible  <bruno@clisp.org>
7178
7179         New module 'unictype/combining-class-all'.
7180         * modules/unictype/combining-class-all: New file.
7181
7182         Tests for module 'unictype/combining-class-byname'.
7183         * modules/unictype/combining-class-byname-tests: New file.
7184         * tests/unictype/test-combiningclass_byname.c: New file.
7185
7186         New module 'unictype/combining-class-byname'.
7187         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7188         * lib/unictype/combiningclass_byname.c: New file.
7189         * lib/unictype/combiningclass_byname.gperf: New file.
7190         * modules/unictype/combining-class-byname: New file.
7191
7192         Tests for module 'unictype/combining-class-longname'.
7193         * modules/unictype/combining-class-longname-tests: New file.
7194         * tests/unictype/test-combiningclass_longname.c: New file.
7195
7196         New module 'unictype/combining-class-longname'.
7197         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7198         * lib/unictype/combiningclass_longname.c: New file.
7199         * modules/unictype/combining-class-longname: New file.
7200
7201         Tests for module 'unictype/combining-class-name'.
7202         * modules/unictype/combining-class-name-tests: New file.
7203         * tests/unictype/test-combiningclass_name.c: New file.
7204
7205         New module 'unictype/combining-class-name'.
7206         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7207         * lib/unictype/combiningclass_name.c: New file.
7208         * modules/unictype/combining-class-name: New file.
7209
7210 2011-03-25  Bruno Haible  <bruno@clisp.org>
7211
7212         unictype/combining-class: Rename source files.
7213         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7214         of unictype/combining.h.
7215         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7216         Update.
7217         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7218         * modules/unictype/combining-class (Description): Fix.
7219         (Files, Makefile.am): Update.
7220         * tests/unictype/test-combiningclass.c: Renamed from
7221         tests/unictype/test-combining.c.
7222         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7223
7224 2011-03-25  Bruno Haible  <bruno@clisp.org>
7225
7226         unictype: Update list of canonical combining classes.
7227         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7228
7229 2011-03-25  Bruno Haible  <bruno@clisp.org>
7230
7231         unictype/category-byname: Recognize long names as well.
7232         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7233         a long name.
7234         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7235         unictype/categ_byname.h.
7236         (UC_CATEGORY_INDEX_*): New enumeration values.
7237         (uc_general_category_byname): Use uc_general_category_lookup and
7238         convert from index to value.
7239         * lib/unictype/categ_byname.gperf: New file.
7240         * modules/unictype/category-byname (Files): Add
7241         lib/unictype/categ_byname.gperf.
7242         (Depends-on): Add gperf.
7243         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7244         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7245         long names.
7246
7247         Tests for module 'unictype/category-longname'.
7248         * modules/unictype/category-longname-tests: New file.
7249         * tests/unictype/test-categ_longname.c: New file.
7250
7251         New module 'unictype/category-longname'.
7252         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7253         * lib/unictype/categ_longname.c: New file.
7254         * modules/unictype/category-longname: New file.
7255         * modules/unictype/category-all (Depends-on): Add it.
7256
7257 2011-03-25  Bruno Haible  <bruno@clisp.org>
7258
7259         Tests for module 'unictype/category-LC'.
7260         * modules/unictype/category-LC-tests: New file.
7261         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7262
7263         New module 'unictype/category-LC'.
7264         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7265         (UC_CATEGORY_LC): New declaration.
7266         (UC_CASED_LETTER): New macro.
7267         * lib/gen-uni-tables.c (is_category_LC): New function.
7268         (output_categories): Also handle category LC.
7269         (UC_CATEGORY_MASK_LC): New enumeration value.
7270         (general_category_byname): Also handle category LC.
7271         * lib/unictype/categ_LC.c: New file.
7272         * lib/unictype/categ_LC.h: New file, automatically generated.
7273         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7274         category LC.
7275         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7276         * modules/unictype/category-LC: New file.
7277         * modules/unictype/category-byname (Depends-on): Add
7278         unictype/category-LC.
7279         * modules/unictype/category-all (Depends-on): Likewise.
7280
7281 2011-03-25  Eric Blake  <eblake@redhat.com>
7282
7283         xmalloc: revert yesterday's regression
7284         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7285         realloc's underlying behavior (allowing allocation of zero-size
7286         objects, especially if malloc-gnu is also in use).
7287
7288 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7289
7290         maint.mk: add missing version to VC-tag
7291         * top/maint.mk: git tag was missing actual tag name; add it.
7292
7293         valgrind: do leak checking, and exit with code 1 on error (not 0)
7294         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7295         to VALGRIND.
7296
7297 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7298
7299         posix-modules: say what it does.
7300         * posix-modules: Add a line to the --help output saying what it does.
7301
7302 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7303
7304         xmalloc: Do not leak if underlying realloc is C99 compatible.
7305         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7306         This avoids a leak on C99-based systems.  See
7307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7308
7309 2011-03-24  Eric Blake  <eblake@redhat.com>
7310
7311         realloc: document portability problem
7312         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7313         passing 0 size to realloc.
7314
7315 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7316
7317         doc: update users.txt
7318         * users.txt: Add cvsps, tmpwatch
7319
7320 2011-03-23  Matt Rice  <ratmice@gmail.com>
7321
7322         doc: update users.txt
7323         * users.txt: Add gdb.
7324
7325 2011-03-23  Jim Meyering  <meyering@redhat.com>
7326
7327         doc: update users.txt
7328         Looking through matches up to the following URL (there are still
7329         several more pages), I found several projects that use gnulib:
7330         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7331         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7332         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7333
7334 2011-03-22  Bruno Haible  <bruno@clisp.org>
7335
7336         unictype/bidi*: Rename functions.
7337         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7338         uc_bidi_class, uc_is_bidi_class): New declarations.
7339         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7340         uc_bidi_category_byname.
7341         (uc_bidi_category_byname): New function.
7342         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7343         u_bidi_category_name.
7344         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7345         (uc_bidi_category_name): New function.
7346         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7347         uc_bidi_category.
7348         (uc_bidi_category): New function.
7349         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7350         uc_is_bidi_category. Invoke uc_bidi_class.
7351         (uc_is_bidi_category): New function.
7352         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7353         instead of uc_bidi_category_byname.
7354         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7355         instead of uc_bidi_category_name.
7356         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7357         uc_bidi_category.
7358         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7359         instead of uc_is_bidi_category.
7360
7361 2011-03-21  Bruno Haible  <bruno@clisp.org>
7362
7363         New module 'unictype/joininggroup-all'.
7364         * modules/unictype/joininggroup-all: New file.
7365
7366         Tests for module 'unictype/joininggroup-of'.
7367         * modules/unictype/joininggroup-of-tests: New file.
7368         * tests/unictype/test-joininggroup_of.c: New file.
7369         * tests/unictype/test-joininggroup_of.h: New file, automatically
7370         generated by gen-uni-tables.
7371
7372         New module 'unictype/joininggroup-of'.
7373         * modules/unictype/joininggroup-of: New file.
7374         * lib/unictype/joininggroup_of.c: New file.
7375         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7376         gen-uni-tables.
7377
7378         Tests for module 'unictype/joininggroup-byname'.
7379         * modules/unictype/joininggroup-byname-tests: New file.
7380         * tests/unictype/test-joininggroup_byname.c: New file.
7381
7382         New module 'unictype/joininggroup-byname'.
7383         * modules/unictype/joininggroup-byname: New file.
7384         * lib/unictype/joininggroup_byname.c: New file.
7385         * lib/unictype/joininggroup_byname.gperf: New file.
7386
7387         Tests for module 'unictype/joininggroup-name'.
7388         * modules/unictype/joininggroup-name-tests: New file.
7389         * tests/unictype/test-joininggroup_name.c: New file.
7390
7391         New module 'unictype/joininggroup-name'.
7392         * modules/unictype/joininggroup-name: New file.
7393         * lib/unictype/joininggroup_name.c: New file.
7394         * lib/unictype/joininggroup_name.h: New file.
7395
7396         New module 'unictype/joiningtype-all'.
7397         * modules/unictype/joiningtype-all: New file.
7398
7399         Tests for module 'unictype/joiningtype-of'.
7400         * modules/unictype/joiningtype-of-tests: New file.
7401         * tests/unictype/test-joiningtype_of.c: New file.
7402         * tests/unictype/test-joiningtype_of.h: New file, automatically
7403         generated by gen-uni-tables.
7404
7405         New module 'unictype/joiningtype-of'.
7406         * modules/unictype/joiningtype-of: New file.
7407         * lib/unictype/joiningtype_of.c: New file.
7408         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7409         gen-uni-tables.
7410
7411         Tests for module 'unictype/joiningtype-byname'.
7412         * modules/unictype/joiningtype-byname-tests: New file.
7413         * tests/unictype/test-joiningtype_byname.c: New file.
7414
7415         New module 'unictype/joiningtype-byname'.
7416         * modules/unictype/joiningtype-byname: New file.
7417         * lib/unictype/joiningtype_byname.c: New file.
7418
7419         Tests for module 'unictype/joiningtype-name'.
7420         * modules/unictype/joiningtype-name-tests: New file.
7421         * tests/unictype/test-joiningtype_name.c: New file.
7422
7423         New module 'unictype/joiningtype-name'.
7424         * modules/unictype/joiningtype-name: New file.
7425         * lib/unictype/joiningtype_name.c: New file.
7426
7427         unictype: Add support for Arabic shaping properties.
7428         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7429         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7430         declarations.
7431         (UC_JOINING_GROUP_*): New enumeration values.
7432         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7433         declarations.
7434         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7435         (unicode_joining_type): New variable.
7436         (UC_JOINING_GROUP_*): New enumeration values.
7437         (unicode_joining_group): New variable.
7438         (fill_arabicshaping, joining_type_as_c_identifier,
7439         output_joining_type_test, output_joining_type,
7440         joining_group_as_c_identifier, output_joining_group_test,
7441         output_joining_group): New functions.
7442         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7443         fill_arabicshaping and output_joining_type_test, output_joining_type,
7444         output_joining_group_test, output_joining_group.
7445         Reported by Simon Josefsson.
7446
7447 2011-03-21  Jim Meyering  <meyering@redhat.com>
7448
7449         strftime: fix a bug in yesterday's change
7450         * lib/strftime.c (add): Accommodate width's initial value of -1.
7451         Otherwise, nstrftime would copy uninitialized data into
7452         the result buffer.
7453
7454 2011-03-21  Jim Meyering  <meyering@redhat.com>
7455
7456         tests: add strftime-tests module
7457         * tests/test-strftime.c: New file.
7458         * modules/strftime-tests: New module.
7459
7460 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7461
7462         strftime: don't assume a byte count fits in 'int'
7463         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7464         found this problem by static analysis, using gcc -Wstrict-overflow
7465         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7466         on an integer overflow having undefined behavior, but it turns out
7467         that the argument is a size, which might not fit in 'int' anyway,
7468
7469 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7470
7471         stdio: don't require ignore_value around fwrite
7472
7473         This patch works around libc bug 11959
7474         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7475         Without this patch, applications must often write
7476         ignore_value (fwrite (...)) even though the ignore_value is
7477         not helpful here.  It's common to write many objects, using
7478         fwrite/printf/etc., and then use ferror to detect output error.
7479
7480         I considered making this patch optional, but decided against it,
7481         because libc is obviously being inconsistent here: there is no
7482         reason libc should insist that user code must inspect fwrite
7483         return's value without also insisting that it inspect printf's,
7484         putchar's, etc.  If user code wants to have a strict style where
7485         all these functions' values are checked (so that ferror need not
7486         be checked), we could add support for that style in a new gnulib
7487         module, but in the meantime it's better to be consistent and to
7488         support common usage.
7489
7490         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7491         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7492         that we are compiling in checking mode, and if not C++, and
7493         if not already wrapping fwrite for some other reason.
7494         (fwrite): #define to rpl_fwrite if the latter is defined.
7495
7496 2011-03-20  Bruno Haible  <bruno@clisp.org>
7497
7498         verror: Fix compilation error introduced on 2011-02-13.
7499         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7500         instead of __attribute__.
7501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7502
7503 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7504             Bruno Haible  <bruno@clisp.org>
7505
7506         socklen: do not depend on sys_socket
7507         While trying to modify Emacs to use gnulib's socklen module,
7508         I discovered a circular dependency: socklen depends on sys_socket
7509         and vice versa.  Emacs can use socklen, but it does not need
7510         sys_socket because it has its own substitute for sys/socket.h.
7511         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7512         gl_TYPE_SOCKLEN_T.
7513         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7514         gl_PREREQ_SYS_H_SOCKET.
7515         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7516         gl_PREREQ_SYS_H_SOCKET.
7517         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7518         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7519         * modules/socklen (Depends-on): Do not depend on sys_socket.
7520         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7521
7522 2011-03-20  Jim Meyering  <meyering@redhat.com>
7523
7524         maint.mk: sort file names *after* new transformation
7525         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7526         prefix would have led to an unwarranted failure in GNU parted.
7527         Sort after that transformation.
7528
7529 2011-03-19  Jim Meyering  <meyering@redhat.com>
7530
7531         maint.mk: fix po-file syntax-check rule
7532         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7533         Patch by Bruno Haible.
7534
7535 2011-03-19  Bruno Haible  <bruno@clisp.org>
7536
7537         socklen: Update comment.
7538         * m4/socklen.m4: Update comment about platforms.
7539
7540 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7541             Bruno Haible  <bruno@clisp.org>
7542
7543         inet_ntop, inet_pton: Simplify.
7544         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7545         documented to provide socklen_t and we already depend on sys_socket.
7546         * modules/inet_pton (Depends-on): Likewise.
7547         * lib/arpa_inet.in.h: Adjust comment.
7548
7549 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7550             Bruno Haible  <bruno@clisp.org>
7551
7552         netdb: Simplify.
7553         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7554         documented to provide socklen_t and we already depend on sys_socket.
7555         * lib/netdb.in.h: Adjust comment.
7556
7557 2011-03-19  Bruno Haible  <bruno@clisp.org>
7558
7559         sys_socket, netdb: Document problem with socklen_t.
7560         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7561         platforms.
7562         * doc/posix-headers/netdb.texi: Likewise.
7563
7564 2011-03-18  Eric Blake  <eblake@redhat.com>
7565
7566         maint.mk: let po check work in VPATH build
7567         * top/maint.mk (po_file): Allow cfg.mk override.
7568         (sc_po_check): Allow VPATH use.
7569         Reported by Jiri Denemark.
7570
7571 2011-03-16  Jim Meyering  <meyering@redhat.com>
7572
7573         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7574         Before, you would have had to create one .x-sc_ file per rule in order
7575         to exempt offending files.  Now, you may instead use a Make variable --
7576         usually defined in cfg.mk -- whose name identifies the affected rule.
7577         * top/maint.mk (_sc_excl): Define.
7578         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7579         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7580
7581 2011-03-13  Bruno Haible  <bruno@clisp.org>
7582
7583         ignore-value tests: Avoid warnings.
7584         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7585         empty for gcc < 3.4.
7586
7587 2011-03-13  Bruno Haible  <bruno@clisp.org>
7588
7589         passfd: Fix link error on Solaris.
7590         * modules/passfd (Description): Correct.
7591         (Depends-on): Add socketlib.
7592         (Link): New section.
7593         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7594
7595 2011-03-13  Bruno Haible  <bruno@clisp.org>
7596
7597         passfd: Fix link error on AIX 5.2.
7598         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7599
7600 2011-03-13  Bruno Haible  <bruno@clisp.org>
7601
7602         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7603         * lib/sys_socket.in.h: Include <stddef.h>.
7604         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7605         CMSG_FIRSTHDR. Remove unused variable.
7606
7607 2011-03-13  Bruno Haible  <bruno@clisp.org>
7608
7609         passfd: Fix compilation error on OpenBSD.
7610         * lib/passfd.c: Include <sys/uio.h>.
7611
7612 2011-03-13  Bruno Haible  <bruno@clisp.org>
7613
7614         passfd test: Fix warnings.
7615         * tests/test-passfd.c: Include <sys/wait.h>.
7616         (main): Fix typo.
7617
7618 2011-03-13  Bruno Haible  <bruno@clisp.org>
7619
7620         passfd module, part 4, tweaks.
7621         * tests/test-passfd.c: Reorder includes.
7622         (main): Fix perror and printf calls.
7623
7624 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7625
7626         passfd module, part 4.
7627         * modules/passfd-tests: New file.
7628         * tests/test-passfd.c: New file.
7629
7630 2011-03-13  Jim Meyering  <meyering@redhat.com>
7631
7632         Makefile: rely on GNU make; derive syntax-check rule names
7633         Rather than requiring that each sc_ rule be listed as a dependent
7634         of "check", use features of GNU make to derive the list.
7635         * Makefile (syntax-check-rules): Define.
7636         (check): Depend on the new variable, not the hard-coded list.
7637
7638 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7639             Bruno Haible  <bruno@clisp.org>
7640
7641         passfd module, part 3.
7642         * lib/passfd.h (recvfd): Add a flags argument.
7643         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7644         (recvfd): Add a flags argument.
7645         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7646         exists.
7647         * modules/passfd (Depends-on): Add cloexec.
7648         Suggested by Eric Blake.
7649
7650 2011-03-13  Bruno Haible  <bruno@clisp.org>
7651
7652         passfd module, part 2, tweaks.
7653         * modules/passfd (Files): Reorder.
7654         (Depends-on): Remove errno.
7655         (Include): Remove <sys/socket.h>, <sys/un.h>.
7656         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7657         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7658         specification header. Include <sys/socket.h> always. Don't include
7659         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7660         (sendfd): Clarify that it sets errno when it fails.
7661         (recvfd): Fix specification.
7662
7663 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7664
7665         passfd module, part 2.
7666         * modules/passfd: New file.
7667         * lib/passfd.h: New file.
7668         * lib/passfd.c: New file.
7669
7670 2011-03-12  Bruno Haible  <bruno@clisp.org>
7671
7672         wcswidth, mbswidth: Avoid integer overflow.
7673         * lib/wcswidth.c: Include <limits.h>.
7674         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7675         * lib/mbswidth.c: Include <limits.h>.
7676         (mbsnwidth): Avoid 'int' overflow.
7677         Reported by Jim Meyering.
7678
7679 2011-03-12  Bruno Haible  <bruno@clisp.org>
7680
7681         futimens, utimensat: Avoid endless recursion on Solaris 10.
7682         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7683         Solaris.
7684         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7685         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7686
7687 2011-03-11  Jim Meyering  <meyering@redhat.com>
7688
7689         maint.mk: relax a regexp to accommodate other formatting styles
7690         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7691         between "ngettext" and the following "(".
7692
7693 2011-03-11  Pádraig Brady <P@draigBrady.com>
7694
7695         maint.mk: suppress a false positive warning
7696         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7697         diagnostics are marked with ngettext.
7698
7699 2011-03-10  Eric Blake  <eblake@redhat.com>
7700
7701         wchar: add explicit dependencies, for Tru64
7702         * modules/mbmemcasecoll (Depends-on): Add wchar.
7703         * modules/mbtowc (Depends-on): Likewise.
7704         * modules/vasnprintf (Depends-on): Likewise.
7705         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7706         * modules/wctomb (Depends-on): Likewise.
7707         Reported by Peter O'Gorman.
7708
7709 2011-03-08  Bruno Haible  <bruno@clisp.org>
7710
7711         passfd module, part 1, tweaks.
7712         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7713         Improve indentation. Improve AC_MSG_CHECKING messages.
7714         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7715         gl_SOCKET_FAMILIES.
7716
7717 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7718
7719         passfd module, part 1.
7720         * m4/afunix.m4: New file.
7721         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7722         sockets.
7723
7724 2011-03-08  Bruno Haible  <bruno@clisp.org>
7725
7726         regex-quote: New API.
7727         * lib/regex-quote.h: Include <stdbool.h>.
7728         (struct regex_quote_spec): New type.
7729         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7730         New declarations.
7731         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7732         'const struct regex_quote_spec *' argument.
7733         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7734         (pcre_special): New constant.
7735         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7736         New functions.
7737         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7738         'const struct regex_quote_spec *' argument.
7739         * modules/regex-quote (Depends-on): Add stdbool.
7740         * tests/test-regex-quote.c (check): Update for new API. Add test for
7741         anchored results.
7742         * NEWS: Mention the API change.
7743         Reported by Reuben Thomas and Eric Blake.
7744
7745 2011-03-06  Bruno Haible  <bruno@clisp.org>
7746
7747         regex-quote: Fix creation of POSIX extended regular expressions.
7748         * lib/regex-quote.c (ere_special): Add grouping and alternation
7749         operators.
7750
7751 2011-03-05  Bruno Haible  <bruno@clisp.org>
7752
7753         doc: Improve doc regarding autopoint vs. gnulib.
7754         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7755         disable autopoint while running autoreconf.
7756         Suggested by Ralf Wildenhues.
7757
7758 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7759
7760         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7761         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7762
7763 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7764
7765         parse-duration: remove xalloc.h dependency
7766         * lib/parse-duration.c (parse_period): handle NULL return from
7767         strdup instead of calling xstrdup().
7768         * modules/parse-duration: remove "xalloc" dependency
7769
7770 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7771
7772         bootstrap: honor m4_base when running aclocal
7773         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7774
7775 2011-03-02  Jim Meyering  <meyering@redhat.com>
7776
7777         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7778         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7779         on request from Matt Booth.
7780
7781 2011-03-01  Eric Blake  <eblake@redhat.com>
7782
7783         test-link: work on Hurd
7784         * tests/test-link.h (test_link): Hurd rejects linking directories
7785         with EISDIR instead of the POSIX-mandated EPERM.
7786
7787 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7788
7789         stdio: simplify by moving files to printf-posix, sigpipe
7790         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7791         since this symbol is needed only if printf is replaced.
7792         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7793         Require gl_ASM_SYMBOL_PREFIX.
7794         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7795         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7796         (Depends-on): Add 'raise'.
7797         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7798         * modules/stdio (Files): Remove lib/stdio-write.c,
7799         m4/asm-underscore.m4.
7800         (Depends-on): Remove 'raise'.
7801
7802         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7803         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7804         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7805         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7806
7807 2011-02-28  Bruno Haible  <bruno@clisp.org>
7808
7809         localcharset: Assume ANSI C behaviour of free().
7810         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7811         calling free().
7812         Suggested by Simon Josefsson <simon@josefsson.org>.
7813
7814 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7815             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7816             Bruno Haible  <bruno@clisp.org>  (tiny change)
7817
7818         On Cygwin, use /proc file system instead of win32 API.
7819         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7820         Win32 file names.
7821         (DllMain): Simplify by removing Cygwin specific code.
7822         (find_shared_library_fullname): Use Linux specific implementation also
7823         for Cygwin.
7824         (get_shared_library_fullname): Update accordingly.
7825         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7826         Win32 file names.
7827         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7828         Cygwin specific code.
7829
7830 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7831             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7832
7833         Fix OpenMP flag detection for various Fortran compilers.
7834         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7835         OpenMP-conditional compilation construct, to force compile
7836         failure with missing OpenMP flag.
7837         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7838
7839 2011-02-25  Eric Blake  <eblake@redhat.com>
7840
7841         strstr: expand test coverage
7842         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7843         compilation.
7844         * tests/test-memmem.c (main): Duplicate tests.
7845         * tests/test-strcasestr.c (main): Likewise.
7846         * tests/test-c-strcasestr.c (main): Likewise.
7847
7848 2011-02-25  Jim Meyering  <meyering@redhat.com>
7849
7850         maint.mk: detect missing-NL-at-EOF, too
7851         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7852         it also detects when a file lacks a newline at EOF.
7853         (require_exactly_one_NL_at_EOF_): Renamed from
7854         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7855         since people may well have .x-sc_... file names tied to the
7856         existing name.  Suggested by Eric Blake.
7857
7858 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7859
7860         dirname: move m4/dos.m4 functionality into lib/dosname.h
7861
7862         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7863         extracts symbols from it, puts them into config.h; but it's much
7864         easier to use the symbols directly.  filename.h already does this,
7865         but it disagrees with dos.m4 in some respects.  This patch
7866         introduces a different include file dosname.h that packages up
7867         dos.m4, and then later we can work on merging filename.h and
7868         dosname.h.  Applications that need only the easy-to-configure
7869         symbols should consider including dosname.h rather than dirname.h.
7870         * NEWS: Mention incompatible changes.
7871         * m4/dos.m4: Remove.
7872         * lib/dosname.h, modules/dosname: New files.
7873         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7874         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7875         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7876         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7877         Include dosname.h, not dirname.h.
7878         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7879         Include dosname.h, for definitions of symbols like ISSLASH
7880         that used to be in config.h.
7881         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7882         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7883         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7884         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7885         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7886         * modules/rmdir (Files): Likewise.
7887         * modules/stat (Files): Likewise.
7888         * modules/unlink (Files): Likewise.
7889         * modules/dirname-lgpl (Depends-on): Add dosname.
7890         * modules/lstat (Depends-on): Likewise.
7891         * modules/openat (Depends-on): Likewise.
7892         * modules/rmdir (Depends-on): Likewise.
7893         * modules/savewd (Depends-on): Likewise.
7894         * modules/stat (Depends-on): Likewise.
7895         * modules/unlink (Depends-on): Likewise.
7896         * modules/openat (Depends-on): Remove dirname-lgpl.
7897         * modules/savewd (Depends-on): Likewise.
7898         * tests/test-dirname.c: Do not use removed symbols like
7899         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7900         the remaining symbols, e.g., ISSLASH ('\\').
7901
7902 2011-02-25  Eric Blake  <eblake@redhat.com>
7903
7904         strstr: revert patches that introduced bug and pessimization
7905         * lib/str-two-way.h: Add another reference.
7906         (two_way_short_needle, two_way_long_needle): Revert changes from
7907         2011-02-24; they pessimize search speed.
7908         (critical_factorization): Partially revert changes from
7909         2010-06-22; they violate the requirement that the left half of the
7910         needle be smaller than the period of the needle.
7911
7912 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7913
7914         filenamecat: remove unnecessary dependency on dirname-lgpl
7915         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7916         is no direct dependency, just an indirect one via filenamecat-lgpl.
7917
7918         remove: remove unnecessary use of m4/dos.m4
7919         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7920         * modules/remove (FILES): Remove m4/dos.m4.
7921
7922         * lib/openat-proc.c: Don't include dirname.h; not needed.
7923
7924         backupfile: remove unnecessary use of m4/dos.m4
7925         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7926         of its symbols are used by the backupfile code.  backupfile.c does
7927         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7928         for the rare case of programs that want all their backup file
7929         names to live within 8+3 limits, and dos.m4 doesn't address that.
7930         * modules/backupfile (Files): Remove m4/dos.m4.
7931
7932 2011-02-24  Jim Meyering  <meyering@redhat.com>
7933
7934         strstr: fix a bug whereby strstr would mistakenly return NULL
7935         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7936         in period calculation.
7937         (two_way_long_needle): Likewise.
7938         The original problem was reported by Mike Stump in
7939         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7940         Ralf Wildenhues provided the short needle and haystack.
7941         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7942         Add a more involved test to trigger the bug in two_way_long_needle.
7943
7944 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7945
7946         gnulib-tool: remove use of bold display in help screen
7947         * gnulib-tool (func_usage): Do not use bold display anymore in the
7948         help screen.  That was just meant to be a temporary emphasis for a
7949         backward-incompatible change.
7950
7951 2011-02-23  Bruno Haible  <bruno@clisp.org>
7952
7953         Fix misindentation of preprocessor directives.
7954         * lib/argp-namefrob.h: Reindent preprocessor directives.
7955         * lib/getopt_int.h (struct _getopt_data): Likewise.
7956         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7957         * lib/vasnprintf.c (decode_long_double): Likewise.
7958         * tests/test-argmatch.c: Insert blank lines, for clarity.
7959         * tests/test-exclude.c: Likewise.
7960
7961 2011-02-22  Bruno Haible  <bruno@clisp.org>
7962
7963         ioctl: Fix for MacOS X in 64-bit mode.
7964         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7965         value.
7966         Suggested by Eric Blake.
7967         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7968
7969 2011-02-22  Jim Meyering  <meyering@redhat.com>
7970
7971         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7972         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7973         in lib/.
7974
7975 2011-02-22  Eric Blake  <eblake@redhat.com>
7976
7977         maint: avoid any CDPATH issue
7978         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7979
7980         maint: adjust cpp indentation for my modules, as well
7981         * Makefile (sc_cpp_indent_check): Add my name.
7982         * lib/fbufmode.c: Filter through cppi.
7983         * lib/fpurge.c: Likewise.
7984         * lib/freadable.c: Likewise.
7985         * lib/freading.c: Likewise.
7986         * lib/fwritable.c: Likewise.
7987         * lib/fwriting.c: Likewise.
7988         * lib/sigaction.c: Likewise.
7989
7990 2011-02-22  Jim Meyering  <meyering@redhat.com>
7991
7992         maint: adjust cpp indentation to reflect nesting depth
7993         I.e., in a block of code that begins with an unnested "#if",
7994         put one space between the "#" in column 1 and following token.
7995         For example,
7996         -#include <sys/vfs.h>
7997         +# include <sys/vfs.h>
7998         Do this only in .c files that are part of a module I maintain.
7999         * lib/linkat.c: Filter through cppi.
8000         * lib/nanosleep.c: Likewise.
8001         * lib/openat.c: Likewise.
8002         * lib/openat-die.c: Likewise.
8003         * lib/dup3.c: Likewise.
8004         * lib/fchownat.c: Likewise.
8005         * lib/flock.c: Likewise.
8006         * lib/fsync.c: Likewise.
8007         * lib/fts.c: Likewise.
8008         * lib/getpass.c: Likewise.
8009         * lib/gettimeofday.c: Likewise.
8010         * lib/userspec.c: Likewise.
8011         * Makefile (sc_cpp_indent_check): New rule, to check this.
8012
8013 2011-02-22  Bruno Haible  <bruno@clisp.org>
8014
8015         New module 'wctomb'.
8016         * lib/stdlib.in.h (wctomb): New declaration.
8017         * lib/wctomb.c: New file.
8018         * lib/wctomb-impl.h: New file.
8019         * m4/wctomb.m4: New file.
8020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8021         REPLACE_WCTOMB.
8022         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8023         REPLACE_WCTOMB.
8024         * modules/wctomb: New file.
8025         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8026         * doc/posix-functions/wctomb.texi: Mention the new module.
8027         * modules/wctob (Depends-on): Add wctomb.
8028
8029 2011-02-22  Bruno Haible  <bruno@clisp.org>
8030
8031         New module 'mbtowc'.
8032         * lib/stdlib.in.h (mbtowc): New declaration.
8033         * lib/mbtowc.c: New file.
8034         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8035         * m4/mbtowc.m4: New file.
8036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8037         REPLACE_MBTOWC.
8038         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8039         REPLACE_MBTOWC.
8040         * modules/mbtowc: New file.
8041         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8042         * doc/posix-functions/mbtowc.texi: Mention the new module.
8043         * modules/btowc (Depends-on): Add mbtowc.
8044
8045 2011-02-22  Bruno Haible  <bruno@clisp.org>
8046
8047         wcrtomb: Add more tests for native Windows platforms.
8048         * tests/test-wcrtomb-w32-1.sh: New file.
8049         * tests/test-wcrtomb-w32-2.sh: New file.
8050         * tests/test-wcrtomb-w32-3.sh: New file.
8051         * tests/test-wcrtomb-w32-4.sh: New file.
8052         * tests/test-wcrtomb-w32-5.sh: New file.
8053         * tests/test-wcrtomb-w32.c: New file.
8054         * modules/wcrtomb-tests (Files): Add them.
8055         (Makefile.am): Arrange to run these tests.
8056         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8057         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8058
8059 2011-02-20  Bruno Haible  <bruno@clisp.org>
8060
8061         wcrtomb: Enhance test.
8062         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8063
8064 2011-02-20  Bruno Haible  <bruno@clisp.org>
8065
8066         mbrtowc: Tiny optimization.
8067         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8068
8069 2011-02-20  Jim Meyering  <meyering@redhat.com>
8070
8071         test-exclude.c: remove unmatched #endif
8072         * tests/test-exclude.c: Remove stray #endif, left over from
8073         the change of a week ago.
8074
8075 2011-02-19  Jim Meyering  <meyering@redhat.com>
8076
8077         git-version-gen: skip "-dirty" check when appropriate
8078         * build-aux/git-version-gen: Don't run any git commands when the
8079         version string comes from .tarball-version.  Prior to this, we
8080         would run git update-index --refresh even from a just-unpacked
8081         tarball directory, and that could affect a .git/ directory in a
8082         parent of the build directory.  Reported by Mike Frysinger.
8083
8084 2011-02-19  Bruno Haible  <bruno@clisp.org>
8085
8086         unictype/property-byname: Reduce the size of the 'data' segment.
8087         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8088
8089 2011-02-19  Bruno Haible  <bruno@clisp.org>
8090
8091         unictype/scripts: Reduce the size of the 'data' segment.
8092         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8093         '%pic'.
8094         * lib/unictype/scripts_byname.gperf: Regenerated.
8095
8096 2011-02-19  Bruno Haible  <bruno@clisp.org>
8097
8098         stdint: Update documentation.
8099         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8100
8101 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8102
8103         stdint: omit redundant check for wchar.h
8104         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8105         always tests whether wchar.h exists, so remove the now-redundant test.
8106
8107 2011-02-18  Bruno Haible  <bruno@clisp.org>
8108
8109         stdint: Cut dependency to module 'wchar'.
8110         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8111         include the necessary prerequisites.
8112         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8113         * modules/stdint (Depends-on): Remove wchar.
8114         (Makefile.am): Substitute HAVE_WCHAR_H.
8115         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8116
8117 2011-02-18  Eric Blake  <eblake@redhat.com>
8118
8119         longlong: skip, rather than fail, on cross-compilation
8120         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8121         when cross-compiling; regression from 2011-02-16.
8122
8123 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8124
8125         * NEWS: Mention 2011-02-08 change to stdlib.
8126
8127 2011-02-17  Bruno Haible  <bruno@clisp.org>
8128
8129         getloadavg: Add comments about platforms.
8130         * m4/getloadavg.m4: Add comment.
8131         * lib/getloadavg.c: Likewise.
8132
8133 2011-02-17  Bruno Haible  <bruno@clisp.org>
8134
8135         getloadavg: Fix link error on Solaris 2.6.
8136         * modules/getloadavg (Link): New section.
8137         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8138         linking test-getloadavg.
8139         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8140         getloadavg.
8141
8142 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8143
8144         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8145         It was 'int', but this doesn't match the IRIX 6.5 manual.
8146         Suggested by Bruno Haible in
8147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8148
8149 2011-02-17  Bruno Haible  <bruno@clisp.org>
8150
8151         havelib: Fix comments.
8152         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8153         change.
8154
8155 2011-02-17  Bruno Haible  <bruno@clisp.org>
8156
8157         havelib: Update config.rpath.
8158         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8159
8160 2011-02-17  Bruno Haible  <bruno@clisp.org>
8161
8162         getloadavg test: Add some plausibility checks.
8163         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8164         is improbable.
8165
8166 2011-02-16  Eric Blake  <eblake@redhat.com>
8167
8168         maintainer-makefile: make syntax-check a no-op from tarballs
8169         * top/maint.mk (no-vc-detected): New rule.
8170         (local-checks-available): Use it to avoid hanging if someone tries
8171         'make syntax-check' from a tarball.  Also append to any non-syntax
8172         checks already defined in cfg.mk.
8173
8174 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8175
8176         longlong: tune, particularly for common case of c99
8177
8178         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8179         or running anything if c99, or if unsigned long long int does not
8180         work.  In either case, we know the answer without further tests.
8181         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8182         it at most once, and use its results for both long long int and
8183         unsigned long long int.  This is more likely to be efficient in
8184         the common case where the program wants to check for both long
8185         long int and unsigned long long int.
8186         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8187         since the answer is already known.
8188
8189 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8190
8191         getloadavg: set errno
8192         * lib/getloadavg.c: Set errno when returning -1.  If no other
8193         error number looks appropriate, set it to ENOSYS if the getloadavg
8194         looks like it can't possibly ever work, ENOTSUP otherwise.
8195         Suggested by Bruno Haible in
8196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8197
8198         getloadavg: trim unused parts and speed up 'configure'
8199         * NEWS: Document this.
8200         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8201         always compiled if getloadavg is absent.
8202         Move test code to ...
8203         * tests/test-getloadavg.c: New file, containing previous
8204         contents of test from lib/getloadavg.c.  It also contains
8205         suggestions by Bruno Haible in
8206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8207         * modules/getloadavg-tests: New file.
8208         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8209         Do tests in the same order as they're needed for getloadavg.c.
8210         Omit setgid-related tests that generate symbols KMEM_GROUP,
8211         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8212         Do only the tests that are needed to see whether the system has
8213         getloadavg, moving the other tests into ...
8214         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8215         NLIST_NAME_UNION; nobody should be using it.  Do not define
8216         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8217         relevant, as the user of this module shouldn't care how getloadavg
8218         is implemented.
8219
8220         getloadavg: omit unused var
8221         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8222
8223 2011-02-15  Jim Meyering  <meyering@redhat.com>
8224
8225         doc: update users.txt
8226         * users.txt: Update iwhd's URL.
8227
8228 2011-02-13  Bruno Haible  <bruno@clisp.org>
8229
8230         Consistent macro naming for macros that use GCC __attribute__.
8231         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8232         _ATTRIBUTE_NONNULL_.
8233         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8234         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8235         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8236         ATTRIBUTE_DEPRECATED.
8237         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8238         ATTRIBUTE_NORETURN.
8239         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8240         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8241         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8242         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8243         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8244         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8245         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8246         ATTRIBUTE_SENTINEL.
8247         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8248         ATTRIBUTE_RETURN_CHECK.
8249         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8250         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8251         ATTRIBUTE_NORETURN.
8252         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8253         Reported by Paul Eggert.
8254
8255 2011-02-13  Bruno Haible  <bruno@clisp.org>
8256
8257         Don't interfere with a program's definition of __attribute__.
8258         * lib/argp.h (__attribute__): Remove definition.
8259         (_GL_ATTRIBUTE_FORMAT): New macro.
8260         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8261         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8262         (_GL_ATTRIBUTE_FORMAT): New macro.
8263         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8264         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8265         GCC 3 or newer.
8266         * lib/error.h (__attribute__): Remove definition.
8267         (_GL_ATTRIBUTE_FORMAT): New macro.
8268         (error, error_at_line): Use it.
8269         * lib/hash.h (__attribute__): Remove definition.
8270         (ATTRIBUTE_WUR): Update definition. Define always.
8271         * lib/openat.h (__attribute__): Remove definition.
8272         (ATTRIBUTE_NORETURN): Update definition. Define always.
8273         * lib/sigpipe-die.h (__attribute__): Remove definition.
8274         (ATTRIBUTE_NORETURN): Update definition. Define always.
8275         * lib/vasnprintf.h (__attribute__): Remove definition.
8276         (_GL_ATTRIBUTE_FORMAT): New macro.
8277         (asnprintf, vasnprintf): Use it.
8278         * lib/xalloc.h (__attribute__): Remove definition.
8279         (ATTRIBUTE_NORETURN): Update definition. Define always.
8280         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8281         * lib/xmemdup0.h (__attribute__): Remove definition.
8282         (ATTRIBUTE_NORETURN): Update definition. Define always.
8283         * lib/xprintf.h (__attribute__): Remove definition.
8284         (_GL_ATTRIBUTE_FORMAT): New macro.
8285         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8286         * lib/xstrtol.h (__attribute__): Remove definition.
8287         (ATTRIBUTE_NORETURN): Update definition. Define always.
8288         * lib/xvasprintf.h (__attribute__): Remove definition.
8289         (_GL_ATTRIBUTE_FORMAT): New macro.
8290         (xasprintf, xvasprintf): Use it.
8291         * tests/test-argmatch.c (__attribute__): Remove definition.
8292         (ATTRIBUTE_NORETURN): Update definition. Define always.
8293         * tests/test-exclude.c (__attribute__): Remove definition.
8294         (ATTRIBUTE_NORETURN): Update definition. Define always.
8295         Reported by Paul Eggert.
8296
8297 2011-02-13  Bruno Haible  <bruno@clisp.org>
8298
8299         mbrtowc: Add more tests for native Windows platforms.
8300         * tests/test-mbrtowc-w32-1.sh: New file.
8301         * tests/test-mbrtowc-w32-2.sh: New file.
8302         * tests/test-mbrtowc-w32-3.sh: New file.
8303         * tests/test-mbrtowc-w32-4.sh: New file.
8304         * tests/test-mbrtowc-w32-5.sh: New file.
8305         * tests/test-mbrtowc-w32.c: New file.
8306         * modules/mbrtowc-tests (Files): Add them.
8307         (Makefile.am): Arrange to run these tests.
8308         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8309         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8310
8311 2011-02-13  Bruno Haible  <bruno@clisp.org>
8312
8313         mbrtowc: Work around native Windows bug.
8314         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8315         guess when no suitable locale for testing was found.
8316         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8317
8318 2011-02-13  Bruno Haible  <bruno@clisp.org>
8319
8320         mbsinit: Work around mingw bug.
8321         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8322         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8323         Windows.
8324         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8325
8326 2011-02-13  Bruno Haible  <bruno@clisp.org>
8327
8328         mbsinit: Don't crash for a NULL argument.
8329         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8330         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8331
8332 2011-02-13  Bruno Haible  <bruno@clisp.org>
8333
8334         Don't interfere with a program's definition of __attribute__.
8335         * lib/stdio.in.h (__attribute__): Remove definition.
8336         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8337         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8338         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8339         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8340         * lib/string.in.h (__attribute__): Remove definition.
8341         Reported by Paul Eggert.
8342
8343 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8344
8345         stdlib: don't get in the way of non-GCC __attribute__
8346         See thread starting at
8347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8348         Revert previous stdlib change, installing the following instead:
8349         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8350         to get in the way of a non-GCC compiler that supports __attribute__.
8351         (_GL_ATTRIBUTE_RETURN): New macro.
8352         (_Exit): Use it instead of __attribute__.
8353
8354 2011-02-12  Bruno Haible  <bruno@clisp.org>
8355
8356         quotearg test: Avoid test failure on mingw.
8357         * tests/test-quotearg.sh: Convert the locale identifier from native
8358         Windows syntax to Unix syntax.
8359
8360 2011-02-12  Bruno Haible  <bruno@clisp.org>
8361
8362         setlocale: Prefer gnulib's override over libintl's override.
8363         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8364         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8365         GNULIB_defined_setlocale is set.
8366
8367 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8368
8369         stdlib: support non-GCC __attribute__
8370
8371         Fix a serious and tricky problem encountered when attempting to
8372         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8373         5.5, but it crashed due to memory corruption on Solaris 10 with
8374         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8375         bits that are otherwise zero.  This tagging is optional inside
8376         Emacs but is preferred and is used when __attribute__ ((__aligned
8377         (8))) works, as it does with both recent-enough GCC and with Sun C
8378         5.11.  However, Sun C 5.11 is not GCC and does not #define
8379         __GNUC__ and __GNUC_MINOR__.
8380
8381         When I added the getloadavg module to Emacs, it brought in
8382         stdlib.in.h, which contained this fragment:
8383
8384            #ifndef __attribute__
8385            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8386            #  define __attribute__(Spec)   /* empty */
8387            # endif
8388            #endif
8389
8390         When files that include <stdlib.h> were compiled with Sun C 5.11,
8391         the above code disabled __attribute__ ((__aligned (8))), which
8392         caused variables to not be properly aligned, which eventually led
8393         to the pointer corruption mentioned above.  (This was a bit hard
8394         to diagnose, unfortunately.)
8395
8396         Several "#define __attribute__(X) /* empty */" code snippets need
8397         to be eradicated from Gnulib to work with non-GCC compilers that
8398         support __attribute__.  The Autoconf way to do this is to test for
8399         each kind of attribute that we want support for, and selectively
8400         enable that in source code.
8401
8402         Fix this problem just for stdlib.h, by adding a test for the
8403         __noreturn__ attribute, and change stdlib.in.h to use that test
8404         when needed.  This technique can be easily generalized to the
8405         other *.in.h files and attributes, and a similar technique can be
8406         used for *.h and *.c files.  This patch is enough to solve the
8407         problem for Emacs + getloadavg, and I thought I'd publish it for
8408         feedback before undertaking further, similar fixes in other
8409         modules.
8410
8411         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8412         because it's not needed for stdlib.h.  It merely substitutes the
8413         value directly into stdlib.h.  We may well need to #define it, or
8414         similar symbols, for other modules, but it's nice to also have an
8415         option to not #define it for applications like Emacs that do not
8416         need it.
8417
8418         * lib/stdlib.in.h (__attribute__): Do not #define.
8419         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8420         be defined only if the _Exit module is also used.
8421         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8423         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8424         platforms.
8425         * modules/_Exit (Files): Add m4/attribute.m4.
8426         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8427         * m4/attribute.m4: New file.
8428
8429 2011-02-12  Bruno Haible  <bruno@clisp.org>
8430
8431         wcsrtombs: Work around bug on native Windows.
8432         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8433         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8434         instead of len.
8435         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8436
8437 2011-02-12  Bruno Haible  <bruno@clisp.org>
8438
8439         mbsrtowcs: Work around bug on native Windows.
8440         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8441         against mingw bug.
8442         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8443
8444 2011-02-12  Bruno Haible  <bruno@clisp.org>
8445
8446         Avoid setlocale bugs in tests.
8447         * modules/btowc (Dependencies): Add setlocale.
8448         * modules/c-strcase (Dependencies): Likewise.
8449         * modules/mbmemcasecmp (Dependencies): Likewise.
8450         * modules/mbmemcasecoll (Dependencies): Likewise.
8451         * modules/mbrtowc (Dependencies): Likewise.
8452         * modules/mbscasecmp (Dependencies): Likewise.
8453         * modules/mbscasestr (Dependencies): Likewise.
8454         * modules/mbschr (Dependencies): Likewise.
8455         * modules/mbscspn (Dependencies): Likewise.
8456         * modules/mbsinit (Dependencies): Likewise.
8457         * modules/mbsncasecmp (Dependencies): Likewise.
8458         * modules/mbsnrtowcs (Dependencies): Likewise.
8459         * modules/mbspbrk (Dependencies): Likewise.
8460         * modules/mbspcasecmp (Dependencies): Likewise.
8461         * modules/mbsrchr (Dependencies): Likewise.
8462         * modules/mbsrtowcs (Dependencies): Likewise.
8463         * modules/mbsspn (Dependencies): Likewise.
8464         * modules/mbsstr (Dependencies): Likewise.
8465         * modules/nl_langinfo (Dependencies): Likewise.
8466         * modules/quotearg (Dependencies): Likewise.
8467         * modules/unicase/locale-language (Dependencies): Likewise.
8468         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8469         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8470         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8471         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8472         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8473         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8474         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8475         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8476         * modules/vasnprintf-posix (Dependencies): Likewise.
8477         * modules/wcrtomb (Dependencies): Likewise.
8478         * modules/wcsnrtombs (Dependencies): Likewise.
8479         * modules/wcsrtombs (Dependencies): Likewise.
8480
8481 2011-02-12  Bruno Haible  <bruno@clisp.org>
8482
8483         setlocale: Workaround native Windows bug.
8484         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8485         succeeds but sets LC_CTYPE to "C", report a failure.
8486         * tests/test-setlocale2.sh: New file.
8487         * tests/test-setlocale2.c: New file.
8488         * modules/setlocale-tests (Files): Add the new files.
8489         (Makefile.am): Enable test-setlocale2.sh test.
8490         * doc/posix-functions/setlocale.texi: Mention workaround.
8491
8492 2011-02-11  Bruno Haible  <bruno@clisp.org>
8493
8494         Tests for module 'setlocale'.
8495         * modules/setlocale-tests: New file.
8496         * tests/test-setlocale1.sh: New file.
8497         * tests/test-setlocale1.c: New file.
8498
8499         New module 'setlocale'.
8500         * lib/locale.in.h (setlocale): New declaration.
8501         * lib/setlocale.c: New file, based on
8502         gettext/gettext-runtime/intl/setlocale.c.
8503         * m4/setlocale.m4: New file.
8504         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8505         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8506         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8507         REPLACE_SETLOCALE.
8508         * modules/setlocale: New file.
8509         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8510         * doc/posix-functions/setlocale.texi: Mention the new module.
8511
8512 2011-02-11  Bruno Haible  <bruno@clisp.org>
8513
8514         Prepare for locale dependent tests on mingw.
8515         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8516         because it has the wrong locale encoding.
8517         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8518         French_France.1252 instead of "fr".
8519         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8520         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8521         because it has the wrong locale encoding.
8522         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8523         native Windows, try Turkish_Turkey.65001.
8524         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8525         Chinese_China.54936.
8526
8527         Prepare for locale dependent tests on mingw.
8528         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8529         differently.
8530         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8531         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8532         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8533         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8534
8535 2011-02-11  Eric Blake  <eblake@redhat.com>
8536
8537         strptime: avoid compiler warnings
8538         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8539         compiler warnings about dead code.
8540         Reported by Daniel P. Berrange.
8541
8542 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8543
8544         doc: update users.txt
8545         * users.txt: Add rcs.
8546
8547 2011-02-10  John W. Eaton  <jwe@gnu.org>
8548
8549         doc: update users.txt
8550         * users.txt: Add octave.
8551
8552 2011-02-10  Jim Meyering  <meyering@redhat.com>
8553
8554         doc: update users.txt
8555         * users.txt: Add iwhd.
8556
8557 2011-02-09  Bruno Haible  <bruno@clisp.org>
8558
8559         gnulib-tool: Make copyright notice adjustment more robust.
8560         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8561         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8562         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8563         License".
8564         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8565
8566 2011-02-06  Bruno Haible  <bruno@clisp.org>
8567
8568         New module 'towctrans'.
8569         * modules/towctrans: New file.
8570         * lib/wctype.in.h (towctrans): New declaration.
8571         * lib/towctrans.c: New file.
8572         * lib/towctrans-impl.h: New file.
8573         * m4/towctrans.m4: New file.
8574         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8575         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8576         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8577         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8578         * doc/posix-functions/towctrans.texi: Mention the new module.
8579
8580 2011-02-06  Bruno Haible  <bruno@clisp.org>
8581
8582         New module 'wctrans'.
8583         * modules/wctrans: New file.
8584         * lib/wctype.in.h (wctrans): New declaration.
8585         * lib/wctrans.c: New file.
8586         * lib/wctrans-impl.h: New file.
8587         * m4/wctrans.m4: New file.
8588         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8589         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8590         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8591         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8592         * doc/posix-functions/wctrans.texi: Mention the new module.
8593
8594 2011-02-06  Bruno Haible  <bruno@clisp.org>
8595
8596         New module 'iswctype'.
8597         * modules/iswctype: New file.
8598         * lib/wctype.in.h (iswctype): New declaration.
8599         * lib/iswctype.c: New file.
8600         * lib/iswctype-impl.h: New file.
8601         * m4/iswctype.m4: New file.
8602         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8603         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8604         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8605         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8606         * doc/posix-functions/iswctype.texi: Mention the new module and the
8607         HP-UX 11.00 problem.
8608
8609 2011-02-06  Bruno Haible  <bruno@clisp.org>
8610
8611         New module 'wctype'.
8612         * modules/wctype: Change to represent the wctype() substitute.
8613         * lib/wctype.in.h (wctype): New declaration.
8614         * lib/wctype.c: New file.
8615         * lib/wctype-impl.h: New file.
8616         * m4/wctype.m4: New file.
8617         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8618         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8619         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8620         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8621         * doc/posix-functions/wctype.texi: Mention the new module and the
8622         HP-UX 11.00 problem.
8623
8624 2011-02-06  Bruno Haible  <bruno@clisp.org>
8625
8626         wctype-h: Ensure wctype_t and wctrans_t are defined.
8627         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8628         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8629         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8630         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8631         HAVE_WCTRANS_T.
8632         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8633
8634 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8635
8636         flock: fix license typo
8637
8638         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8639         omitted.
8640
8641 2011-02-08  Bruno Haible  <bruno@clisp.org>
8642
8643         Split large sed scripts, for HP-UX sed.
8644         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8645         to avoid HP-UX limit of 99 commands, in the near future.
8646         * modules/stdlib (Makefile.am): Likewise.
8647         * modules/unistd (Makefile.am): Likewise.
8648         * modules/wchar (Makefile.am): Likewise.
8649         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8650         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8651         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8652
8653 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8654             Bruno Haible  <bruno@clisp.org>
8655
8656         stdlib: improve random_r modularization
8657         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8658         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8659         you also need the random_r module to get this material right.
8660         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8661         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8662         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8663
8664 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8665
8666         stdlib: don't depend on stdint
8667         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8668         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8669         be independent of whether stdint.h is needed.
8670         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8671         here, instead of ...
8672         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8673         struct random_data should be using the random_r module, not just
8674         the stdlib module (which wouldn't make sense: what package needs
8675         just struct random_data without also needing random_r?).
8676         * modules/stdlib (Depends-on): Remove stdint.
8677
8678         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8679         See the thread rooted at
8680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8681         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8682         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8683         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8684         __VMS)); previously it was always included (via fcntl--.h).
8685         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8686         hand; this is good enough for load averages.  Also, do not use
8687         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8688         flags directly if available and don't bother otherwise.  (Packages
8689         that need the extra reliability should use the modules that define
8690         these flags on older platforms that lack them.)
8691         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8692         fcntl-safer.
8693
8694 2011-02-08  Jim Meyering  <meyering@redhat.com>
8695
8696         di-set.h, ino-map.h: add multiple-inclusion guard
8697         Technically, the guard is required only for ino-map.h, due to its
8698         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8699         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8700         * lib/ino-map.h: Likewise.
8701
8702 2011-02-06  Bruno Haible  <bruno@clisp.org>
8703
8704         iswblank: Ensure declaration on glibc systems.
8705         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8706         * modules/iswblank (Dependencies): Add 'extensions'.
8707         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8708
8709 2011-02-06  Bruno Haible  <bruno@clisp.org>
8710
8711         New module 'iswblank'.
8712         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8713         * modules/iswblank: New file.
8714         * modules/wctype-h (Files): Remove lib/iswblank.c.
8715         (Makefile.am): Substitute GNULIB_ISWBLANK.
8716         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8717         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8718         (gl_WCTYPE_H_DEFAULTS): New macro.
8719         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8720         * modules/iswblank-tests: New file.
8721         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8722         * tests/test-wctype-h.c (main): Remove iswblank tests.
8723         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8724         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8725         of 'wctype-h'.
8726         * NEWS: Mention the change.
8727         * modules/mbchar (Depends-on): Add iswblank.
8728
8729 2011-02-08  Bruno Haible  <bruno@clisp.org>
8730
8731         di-set tests: Refactor.
8732         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8733         unnecessary includes.
8734         (ASSERT): Remove macro.
8735         (main): Make C90 compliant by avoiding variable declaration after
8736         statement.
8737         * modules/di-set-tests (Files): Add tests/macros.h.
8738
8739 2011-02-08  Bruno Haible  <bruno@clisp.org>
8740
8741         ino-map tests: Refactor.
8742         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8743         unnecessary includes.
8744         (ASSERT): Remove macro.
8745         (main): Make C90 compliant by avoiding variable declaration after
8746         statement.
8747         * modules/ino-map-tests (Files): Add tests/macros.h.
8748
8749 2011-02-08  Jim Meyering  <meyering@redhat.com>
8750
8751         di-set: add "const" to a cast
8752         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8753         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8754
8755 2011-02-06  Bruno Haible  <bruno@clisp.org>
8756
8757         Rename module 'wctype' to 'wctype-h'.
8758         * modules/wctype-h: Renamed from modules/wctype.
8759         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8760         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8761         (Files, Depends-on, Makefile.am): Update.
8762         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8763         (Files, Makefile.am): Update.
8764         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8765         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8766         * doc/posix-headers/wctype.texi: Update.
8767         * doc/posix-functions/iswalnum.texi: Update.
8768         * doc/posix-functions/iswalpha.texi: Update.
8769         * doc/posix-functions/iswblank.texi: Update.
8770         * doc/posix-functions/iswcntrl.texi: Update.
8771         * doc/posix-functions/iswdigit.texi: Update.
8772         * doc/posix-functions/iswgraph.texi: Update.
8773         * doc/posix-functions/iswlower.texi: Update.
8774         * doc/posix-functions/iswprint.texi: Update.
8775         * doc/posix-functions/iswpunct.texi: Update.
8776         * doc/posix-functions/iswspace.texi: Update.
8777         * doc/posix-functions/iswupper.texi: Update.
8778         * doc/posix-functions/iswxdigit.texi: Update.
8779         * doc/posix-functions/towlower.texi: Update.
8780         * doc/posix-functions/towupper.texi: Update.
8781         * NEWS: Mention the change.
8782         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8783         * modules/mbchar (Dependencies): Likewise.
8784         * modules/mbswidth (Dependencies): Likewise.
8785         * modules/quotearg (Dependencies): Likewise.
8786         * modules/regex (Dependencies): Likewise.
8787         * modules/wcscasecmp (Dependencies): Likewise.
8788         * modules/wcsncasecmp (Dependencies): Likewise.
8789         * modules/wcwidth (Dependencies): Likewise.
8790
8791 2011-02-06  Bruno Haible  <bruno@clisp.org>
8792
8793         New module 'wcswidth'.
8794         * modules/wcswidth: New file.
8795         * lib/wchar.in.h (wcswidth): New declaration.
8796         * lib/wcswidth.c: New file.
8797         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8798         * m4/wcswidth.m4: New file.
8799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8801         REPLACE_WCSWIDTH.
8802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8803         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8804         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8805         * doc/posix-functions/wcswidth.texi: Mention the new module.
8806
8807 2011-02-06  Bruno Haible  <bruno@clisp.org>
8808
8809         New module 'wcstok'.
8810         * modules/wcstok: New file.
8811         * lib/wchar.in.h (wcstok): New declaration.
8812         * lib/wcstok.c: New file.
8813         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8814         * m4/wcstok.m4: New file.
8815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8818         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8819         * doc/posix-functions/wcstok.texi: Mention the new module.
8820
8821 2011-02-06  Bruno Haible  <bruno@clisp.org>
8822
8823         New module 'wcsstr'.
8824         * modules/wcsstr: New file.
8825         * lib/wchar.in.h (wcsstr): New declaration.
8826         * lib/wcsstr.c: New file.
8827         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8828         * m4/wcsstr.m4: New file.
8829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8832         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8833         * doc/posix-functions/wcsstr.texi: Mention the new module.
8834
8835 2011-02-06  Bruno Haible  <bruno@clisp.org>
8836
8837         New module 'wcspbrk'.
8838         * modules/wcspbrk: New file.
8839         * lib/wchar.in.h (wcspbrk): New declaration.
8840         * lib/wcspbrk.c: New file.
8841         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8842         * m4/wcspbrk.m4: New file.
8843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8846         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8847         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8848
8849 2011-02-06  Bruno Haible  <bruno@clisp.org>
8850
8851         New module 'wcsspn'.
8852         * modules/wcsspn: New file.
8853         * lib/wchar.in.h (wcsspn): New declaration.
8854         * lib/wcsspn.c: New file.
8855         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8856         * m4/wcsspn.m4: New file.
8857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8860         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8861         * doc/posix-functions/wcsspn.texi: Mention the new module.
8862
8863 2011-02-06  Bruno Haible  <bruno@clisp.org>
8864
8865         New module 'wcscspn'.
8866         * modules/wcscspn: New file.
8867         * lib/wchar.in.h (wcscspn): New declaration.
8868         * lib/wcscspn.c: New file.
8869         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8870         * m4/wcscspn.m4: New file.
8871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8873         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8874         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8875         * doc/posix-functions/wcscspn.texi: Mention the new module.
8876
8877 2011-02-06  Bruno Haible  <bruno@clisp.org>
8878
8879         New module 'wcsrchr'.
8880         * modules/wcsrchr: New file.
8881         * lib/wchar.in.h (wcsrchr): New declaration.
8882         * lib/wcsrchr.c: New file.
8883         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8884         * m4/wcsrchr.m4: New file.
8885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8887         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8888         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8889         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8890
8891 2011-02-06  Bruno Haible  <bruno@clisp.org>
8892
8893         New module 'wcschr'.
8894         * modules/wcschr: New file.
8895         * lib/wchar.in.h (wcschr): New declaration.
8896         * lib/wcschr.c: New file.
8897         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8898         * m4/wcschr.m4: New file.
8899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8902         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8903         * doc/posix-functions/wcschr.texi: Mention the new module.
8904
8905 2011-02-06  Bruno Haible  <bruno@clisp.org>
8906
8907         New module 'wcsdup'.
8908         * modules/wcsdup: New file.
8909         * lib/wchar.in.h (wcsdup): New declaration.
8910         * lib/wcsdup.c: New file.
8911         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8912         * m4/wcsdup.m4: New file.
8913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8916         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8917         * doc/posix-functions/wcsdup.texi: Mention the new module.
8918
8919 2011-02-06  Bruno Haible  <bruno@clisp.org>
8920
8921         New module 'wcsxfrm'.
8922         * modules/wcsxfrm: New file.
8923         * lib/wchar.in.h (wcsxfrm): New declaration.
8924         * lib/wcsxfrm.c: New file.
8925         * lib/wcsxfrm-impl.h: New file.
8926         * m4/wcsxfrm.m4: New file.
8927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8930         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8931         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8932
8933 2011-02-06  Bruno Haible  <bruno@clisp.org>
8934
8935         New module 'wcscoll'.
8936         * modules/wcscoll: New file.
8937         * lib/wchar.in.h (wcscoll): New declaration.
8938         * lib/wcscoll.c: New file.
8939         * lib/wcscoll-impl.h: New file.
8940         * m4/wcscoll.m4: New file.
8941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8943         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8944         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8945         * doc/posix-functions/wcscoll.texi: Mention the new module.
8946
8947 2011-02-06  Bruno Haible  <bruno@clisp.org>
8948
8949         New module 'wcsncasecmp'.
8950         * modules/wcsncasecmp: New file.
8951         * lib/wchar.in.h (wcsncasecmp): New declaration.
8952         * lib/wcsncasecmp.c: New file.
8953         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8954         * m4/wcsncasecmp.m4: New file.
8955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8958         HAVE_WCSNCASECMP.
8959         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8960         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8961
8962 2011-02-06  Bruno Haible  <bruno@clisp.org>
8963
8964         New module 'wcscasecmp'.
8965         * modules/wcscasecmp: New file.
8966         * lib/wchar.in.h (wcscasecmp): New declaration.
8967         * lib/wcscasecmp.c: New file.
8968         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8969         * m4/wcscasecmp.m4: New file.
8970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8972         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8973         HAVE_WCSCASECMP.
8974         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8975         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8976
8977 2011-02-05  Bruno Haible  <bruno@clisp.org>
8978
8979         New module 'wcsncmp'.
8980         * modules/wcsncmp: New file.
8981         * lib/wchar.in.h (wcsncmp): New declaration.
8982         * lib/wcsncmp.c: New file.
8983         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8984         * m4/wcsncmp.m4: New file.
8985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8988         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8989         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8990
8991 2011-02-05  Bruno Haible  <bruno@clisp.org>
8992
8993         New module 'wcscmp'.
8994         * modules/wcscmp: New file.
8995         * lib/wchar.in.h (wcscmp): New declaration.
8996         * lib/wcscmp.c: New file.
8997         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8998         * m4/wcscmp.m4: New file.
8999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9002         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9003         * doc/posix-functions/wcscmp.texi: Mention the new module.
9004
9005 2011-02-05  Bruno Haible  <bruno@clisp.org>
9006
9007         New module 'wcsncat'.
9008         * modules/wcsncat: New file.
9009         * lib/wchar.in.h (wcsncat): New declaration.
9010         * lib/wcsncat.c: New file.
9011         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9012         * m4/wcsncat.m4: New file.
9013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9016         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9017         * doc/posix-functions/wcsncat.texi: Mention the new module.
9018
9019 2011-02-05  Bruno Haible  <bruno@clisp.org>
9020
9021         New module 'wcscat'.
9022         * modules/wcscat: New file.
9023         * lib/wchar.in.h (wcscat): New declaration.
9024         * lib/wcscat.c: New file.
9025         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9026         * m4/wcscat.m4: New file.
9027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9029         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9030         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9031         * doc/posix-functions/wcscat.texi: Mention the new module.
9032
9033 2011-02-05  Bruno Haible  <bruno@clisp.org>
9034
9035         New module 'wcpncpy'.
9036         * modules/wcpncpy: New file.
9037         * lib/wchar.in.h (wcpncpy): New declaration.
9038         * lib/wcpncpy.c: New file.
9039         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9040         * m4/wcpncpy.m4: New file.
9041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9043         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9044         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9045         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9046
9047 2011-02-05  Bruno Haible  <bruno@clisp.org>
9048
9049         New module 'wcsncpy'.
9050         * modules/wcsncpy: New file.
9051         * lib/wchar.in.h (wcsncpy): New declaration.
9052         * lib/wcsncpy.c: New file.
9053         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9054         * m4/wcsncpy.m4: New file.
9055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9057         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9058         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9059         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9060
9061 2011-02-05  Bruno Haible  <bruno@clisp.org>
9062
9063         New module 'wcpcpy'.
9064         * modules/wcpcpy: New file.
9065         * lib/wchar.in.h (wcpcpy): New declaration.
9066         * lib/wcpcpy.c: New file.
9067         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9068         * m4/wcpcpy.m4: New file.
9069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9071         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9072         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9073         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9074
9075 2011-02-05  Bruno Haible  <bruno@clisp.org>
9076
9077         New module 'wcscpy'.
9078         * modules/wcscpy: New file.
9079         * lib/wchar.in.h (wcscpy): New declaration.
9080         * lib/wcscpy.c: New file.
9081         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9082         * m4/wcscpy.m4: New file.
9083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9086         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9087         * doc/posix-functions/wcscpy.texi: Mention the new module.
9088
9089 2011-02-05  Bruno Haible  <bruno@clisp.org>
9090
9091         New module 'wcsnlen'.
9092         * modules/wcsnlen: New file.
9093         * lib/wchar.in.h (wcsnlen): New declaration.
9094         * lib/wcsnlen.c: New file.
9095         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9096         * m4/wcsnlen.m4: New file.
9097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9099         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9100         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9101         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9102
9103 2011-02-05  Bruno Haible  <bruno@clisp.org>
9104
9105         New module 'wcslen'.
9106         * modules/wcslen: New file.
9107         * lib/wchar.in.h (wcslen): New declaration.
9108         * lib/wcslen.c: New file.
9109         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9110         * m4/wcslen.m4: New file.
9111         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9112         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9113         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9114         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9115         * doc/posix-functions/wcslen.texi: Mention the new module.
9116
9117 2011-02-05  Bruno Haible  <bruno@clisp.org>
9118
9119         New module 'wmemset'.
9120         * modules/wmemset: New file.
9121         * lib/wchar.in.h (wmemset): New declaration.
9122         * lib/wmemset.c: New file.
9123         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9124         * m4/wmemset.m4: New file.
9125         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9126         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9127         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9128         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9129         * doc/posix-functions/wmemset.texi: Mention the new module.
9130
9131 2011-02-05  Bruno Haible  <bruno@clisp.org>
9132
9133         New module 'wmemmove'.
9134         * modules/wmemmove: New file.
9135         * lib/wchar.in.h (wmemmove): New declaration.
9136         * lib/wmemmove.c: New file.
9137         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9138         * m4/wmemmove.m4: New file.
9139         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9140         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9141         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9142         HAVE_WMEMMOVE.
9143         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9144         * doc/posix-functions/wmemmove.texi: Mention the new module.
9145
9146 2011-02-05  Bruno Haible  <bruno@clisp.org>
9147
9148         New module 'wmemcpy'.
9149         * modules/wmemcpy: New file.
9150         * lib/wchar.in.h (wmemcpy): New declaration.
9151         * lib/wmemcpy.c: New file.
9152         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9153         * m4/wmemcpy.m4: New file.
9154         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9155         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9156         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9157         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9158         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9159
9160 2011-02-05  Bruno Haible  <bruno@clisp.org>
9161
9162         New module 'wmemcmp'.
9163         * modules/wmemcmp: New file.
9164         * lib/wchar.in.h (wmemcmp): New declaration.
9165         * lib/wmemcmp.c: New file.
9166         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9167         * m4/wmemcmp.m4: New file.
9168         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9169         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9170         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9171         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9172         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9173
9174 2011-02-07  Jim Meyering  <meyering@redhat.com>
9175
9176         di-set, ino-map: new modules, from coreutils
9177         * lib/di-set.c: New file.
9178         * lib/di-set.h: Likewise.
9179         * lib/ino-map.c: Likewise.
9180         * lib/ino-map.h: Likewise.
9181         * modules/di-set: Likewise.
9182         * modules/di-set-tests: Likewise.
9183         * modules/ino-map: Likewise.
9184         * modules/ino-map-tests: Likewise.
9185         * tests/test-di-set.c: Likewise.
9186         * tests/test-ino-map.c: Likewise.
9187
9188 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9189
9190         getloadavg: merge minor changes from Emacs
9191
9192         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9193         (getloadavg): Use memset, not bzero.
9194
9195         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9196         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9197         clash (bug#86).
9198
9199 2010-11-14  Bruno Haible  <bruno@clisp.org>
9200
9201         Allow multiple gnulib generated replacements to coexist.
9202         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9203         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9204         * lib/langinfo.in.h (nl_item): Likewise.
9205         * lib/math.in.h (_NaN, NAN): Likewise.
9206         * lib/netdb.in.h (struct addrinfo): Likewise.
9207         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9208         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9209         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9210         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9211         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9212         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9213         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9214         pthread_mutexattr_init, pthread_mutexattr_settype,
9215         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9216         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9217         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9218         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9219         * lib/sched.in.h (struct sched_param): Likewise.
9220         * lib/se-selinux.in.h (security_class_t, security_context_t,
9221         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9222         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9223         lsetfilecon, fsetfilecon, security_check_context,
9224         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9225         Likewise.
9226         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9227         Likewise.
9228         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9229         _gl_function_taking_int_returning_void_t, union sigval,
9230         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9231         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9232         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9233         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9234         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9235         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9236         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9237         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9238         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9239         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9240         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9241         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9242         socklen_t, rpl_fd_isset): Likewise.
9243         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9244         * lib/sys_time.in.h (struct timeval): Likewise.
9245         * lib/sys_times.in.h (struct tms): Likewise.
9246         * lib/sys_utsname.in.h (struct utsname):
9247         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9248         * lib/unistd.in.h (getpagesize): Likewise.
9249         * lib/wchar.in.h (mbstate_t): Likewise.
9250         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9251         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9252         towlower, towupper): Likewise.
9253         Reported by Sam Steingold <sds@gnu.org>.
9254
9255 2011-02-05  Eric Blake  <eblake@redhat.com>
9256
9257         unsetenv: work around Haiku issues
9258         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9259         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9260
9261 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9262
9263         libposix: avoid calling error() within libposix
9264         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9265         is defined.
9266
9267 2011-02-05  Eric Blake  <eblake@redhat.com>
9268
9269         strerror_r-posix: port to cygwin
9270         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9271         implementation.
9272         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9273         * tests/test-strerror_r.c (main): Fix test.
9274         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9275         issue.
9276
9277 2011-02-05  Bruno Haible  <bruno@clisp.org>
9278
9279         New module 'wmemchr'.
9280         * modules/wmemchr: New file.
9281         * lib/wchar.in.h (wmemchr): New declaration.
9282         * lib/wmemchr.c: New file.
9283         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9284         * m4/wmemchr.m4: New file.
9285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9287         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9288         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9289         * doc/posix-functions/wmemchr.texi: Mention the new module.
9290
9291 2011-02-04  Eric Blake  <eblake@redhat.com>
9292
9293         fdopendir: detect FreeBSD bug
9294         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9295         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9296
9297 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9298
9299         stdbool: do not define HAVE_STDBOOL_H
9300         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9301         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9302         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9303         imported from the latest Autoconf git.  It was motivated by Emacs,
9304         which uses gnulib but does not need HAVE_STDBOOL_H.
9305
9306 2011-02-04  Bruno Haible  <bruno@clisp.org>
9307
9308         wcsnrtombs: Prepare for new module wwcsnrtombs.
9309         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9310         * lib/wcsnrtombs.c: Include it.
9311         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9312
9313         wcsrtombs: Prepare for new module wwcsrtombs.
9314         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9315         * lib/wcsrtombs.c: Include it.
9316         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9317
9318         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9319         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9320         * lib/mbsnrtowcs.c: Include it.
9321         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9322
9323         mbsrtowcs: Prepare for new module mbsrtowwcs.
9324         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9325         * lib/mbsrtowcs.c: Include it.
9326         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9327
9328 2011-02-04  Bruno Haible  <bruno@clisp.org>
9329
9330         vasnprintf: Reduce use of malloc for small format strings.
9331         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9332         (arguments): Add room for the first 7 arguments.
9333         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9334         (char_directives, u8_directives, u16_directives, u32_directives): Add
9335         room for the first 7 directives.
9336         * lib/printf-parse.c: Include <string.h>.
9337         (PRINTF_PARSE): Change memory handling code so that it uses the first
9338         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9339         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9340         Reported by Pádraig Brady <P@draigbrady.com>.
9341
9342 2011-01-31  Eric Blake  <eblake@redhat.com>
9343
9344         dup2: work around Haiku bug
9345         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9346         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9347         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9348         * tests/test-dup2.c (main): Enhance test.
9349
9350 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9351
9352         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9353         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9354         declared by eglibc 2.11.2.
9355         * lib/stdio.in.h: Likewise.
9356
9357 2011-01-31  Eric Blake  <eblake@redhat.com>
9358
9359         ignore-value: add missing test dependency
9360         * tests/test-ignore-value.c: Revert previous change; stdio.h
9361         provides off_t.
9362         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9363
9364 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9365
9366         mktime: clarify long_int width checking
9367         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9368         the top level, to make it clearer that the assumption about
9369         long_int width is being checked.  See
9370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9371
9372 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9373
9374         ignore-value: Fix self-test.
9375         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9376
9377 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9378
9379         TYPE_MAXIMUM: avoid theoretically undefined behavior
9380         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9381         negative number, which the C Standard says has undefined behavior.
9382         In practice this is not a problem, but might as well do it by the book.
9383         Reported by Rich Felker and Eric Blake; see
9384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9385         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9386         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9388         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9389         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9390         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9391
9392         mktime: #undef mktime before #defining it
9393         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9394
9395         mktime: systematically normalize tm_isdst comparisons
9396         * lib/mktime.c (isdst_differ): New function.
9397         (__mktime_internal): Use it systematically for all isdst comparisons.
9398         This completes the fix for libc BZ #6723, and removes the need for
9399         normalizing tm_isdst.  See
9400         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9401         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9402
9403         mktime: fix some integer overflow issues and sidestep the rest
9404
9405         This was prompted by a bug report by Benjamin Lindner for MinGW
9406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9407         His bug is due to signed integer overflow (0 - INT_MIN), and I
9408         I scanned through mktime.c looking for other integer overflow
9409         problems, fixing all the bugs I found.
9410
9411         Although the C Standard says the resulting code is still not safe
9412         in the presence of integer overflow, in practice it should be good
9413         enough for all real-world two's-complement implementations, except
9414         for debugging environments that deliberately trap on integer
9415         overflow (e.g., gcc -ftrapv).
9416
9417         * lib/mktime.c (WRAPV): New macro.
9418         (SHR): Also check that long_int and time_t shift right in the
9419         usual way, before using the fast-but-unportable method.
9420         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9421         used.  The code already assumed two's complement, so there's
9422         no need to test for alternatives.  All uses removed.
9423         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9424         the C standard.  Problem reported by Rich Felker in
9425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9426         (twos_complement_arithmetic): Also check long_int and time_t.
9427         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9428         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9429         (__mktime_internal): Avoid integer overflow with unary subtraction
9430         in two instances where -1 - X is an adequate replacement for -X,
9431         since the calculations are approximate.
9432
9433 2011-01-29  Eric Blake  <eblake@redhat.com>
9434
9435         mktime: avoid infinite loop
9436         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9437         type; behavior is still undefined but portable to all known targets.
9438         Reported by Rich Felker.
9439
9440 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9441
9442         rename, unlink, same-inode: Relicense.
9443         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9444         * modules/unlink (License): Likewise.
9445         * modules/same-inode (License): Likewise.
9446
9447 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9448
9449         mktime: avoid problems on NetBSD 5 / i386
9450         * lib/mktime.c (long_int): New type.  This works around a problem
9451         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9452         but time_t is 64 bits, and where I expect the existing code is
9453         wrong in some cases.
9454         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9455         (ydhms_diff): Bring back the compile-time check for wide-enough
9456         year and yday.
9457
9458         mktime: fix misspelling in comment
9459         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9460         This merges all recent glibc changes of importance.
9461
9462 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9463
9464         move-if-change: cope with concurrent mv of identical file.
9465         * build-aux/move-if-change (CMPPROG): Accept environment
9466         variable as an override for `cmp'.
9467         (usage): Document CMPPROG.
9468         Adjust comparison to drop stdout.  Cope with failure of mv if
9469         the target file exists and is identical to the source, for
9470         parallel builds.
9471         Report from H.J. Lu against binutils in PR binutils/12283.
9472
9473 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9474
9475         * users.txt: Mention sharutils.
9476
9477 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9478
9479         * users.txt: Mention OATH Toolkit.
9480
9481 2011-01-27  Bruno Haible  <bruno@clisp.org>
9482
9483         Prepare for supporting FreeBSD 10.
9484         * build-aux/config.libpath: Remove handling of freebsd1*.
9485
9486 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9487
9488         Prepare for supporting FreeBSD 10.
9489         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9490         match FreeBSD 10.0.
9491
9492 2011-01-27  Bruno Haible  <bruno@clisp.org>
9493
9494         vma-iter, get-rusage-as: Add OpenBSD support.
9495         * modules/vma-iter (configure.ac): Test for mquery.
9496         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9497         * lib/vma-iter.c: Include <sys/mman.h>.
9498         (vma_iterate): Add an implementation based on mquery().
9499         * lib/resource-ext.h (get_rusage_as): Update comments.
9500         * lib/get-rusage-as.c: Likewise.
9501         * lib/get-rusage-data.c: Likewise.
9502
9503 2011-01-26  Karl Berry  <karl@gnu.org>
9504
9505         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9506         variables to make it easier to override the makeinfo program used.
9507
9508 2011-01-26  Eric Blake  <eblake@redhat.com>
9509
9510         fcntl: work around Haiku F_DUPFD bugs
9511         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9512         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9513         cloexec bit on duplication.
9514         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9515
9516 2011-01-26  Bruno Haible  <bruno@clisp.org>
9517
9518         Enable memory leak tests on AIX.
9519         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9520         * tests/test-fprintf-posix3.c (main): Likewise.
9521
9522 2011-01-26  Bruno Haible  <bruno@clisp.org>
9523
9524         Tests for module 'get-rusage-data'.
9525         * modules/get-rusage-data-tests: New file.
9526         * tests/test-get-rusage-data.c: New file.
9527
9528         New module 'get-rusage-data'.
9529         * lib/resource-ext.h (get_rusage_data): New declaration.
9530         * lib/get-rusage-data.c: New file.
9531         * modules/get-rusage-data: New file.
9532
9533 2011-01-25  Bruno Haible  <bruno@clisp.org>
9534
9535         get-rusage-as: Allow for easier testing.
9536         * lib/resource-ext.h (get_rusage_as): Add comment.
9537         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9538         (main): New function for interactive testing.
9539
9540 2011-01-25  Bruno Haible  <bruno@clisp.org>
9541
9542         vma-iter: Treat Haiku like BeOS.
9543         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9544         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9545
9546 2011-01-25  Eric Blake  <eblake@redhat.com>
9547
9548         c-stack: fix regression on cygwin when libsigsegv is present
9549         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9550
9551 2011-01-24  Bruno Haible  <bruno@clisp.org>
9552
9553         vma-iter: Avoid empty intervals.
9554         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9555         on an empty interval.
9556
9557 2011-01-24  Jim Meyering  <meyering@redhat.com>
9558
9559         u64: remove unnecessary #include
9560         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9561
9562 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9563
9564         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9565         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9566
9567 2011-01-23  Bruno Haible  <bruno@clisp.org>
9568
9569         New module 'vma-iter'.
9570         * lib/vma-iter.h: New file.
9571         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9572         * modules/vma-iter: New file.
9573         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9574         for get_rusage_as_via_iterator.
9575         (vma_iterate_callback): New function.
9576         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9577         * modules/get-rusage-as (Depends-on): Add vma-iter.
9578
9579 2011-01-23  Bruno Haible  <bruno@clisp.org>
9580
9581         uninorm: Tweak includes.
9582         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9583         Reported by Jim Meyering.
9584
9585 2011-01-23  Bruno Haible  <bruno@clisp.org>
9586
9587         get-rusage-as: Improve on NetBSD.
9588         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9589         /proc, like on FreeBSD.
9590
9591 2011-01-23  Jim Meyering  <meyering@redhat.com>
9592
9593         xreadlink.h: remove unnecessary #include
9594         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9595
9596         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9597         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9598
9599 2011-01-23  Bruno Haible  <bruno@clisp.org>
9600
9601         get-rusage-as: Fix bug.
9602         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9603         original limit when aborting the first loop.
9604
9605 2011-01-23  Bruno Haible  <bruno@clisp.org>
9606
9607         wctype: Ensure valid C syntax.
9608         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9609         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9610
9611 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9612
9613         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9615         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9616         as they are needed only for configure's test case.
9617         This removes two unnecessary symbols from config.h.
9618
9619         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9620         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9622         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9623         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9624         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9625         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9626         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9627         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9628         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9629         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9630         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9631         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9632         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9633         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9634         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9635         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9636         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9637
9638 2011-01-21  Eric Blake  <eblake@redhat.com>
9639
9640         maintainer-makefile: work with older git for submodule check
9641         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9642         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9643         Reported by Matthias Bolte.
9644
9645         bootstrap: minor portability fixes
9646         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9647         (usage): Omit leading capital and trailing . on help phrases, per
9648         GNU Coding Standards.
9649         (check_versions, top level): Prefix messages with script name.
9650
9651 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9652
9653         bootstrap: support --no-git option
9654         * build-aux/bootstrap: Add --no-git option, to be used when
9655         --gnulib-srcdir points to the exact desired checkout.
9656
9657 2011-01-21  Eric Blake  <eblake@redhat.com>
9658
9659         strerror_r-posix: work with glibc 2.13
9660         * lib/strerror_r.c (strerror_r): Fix return type.
9661
9662 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9663             Bruno Haible  <bruno@clisp.org>
9664
9665         uN_strstr: New unit tests.
9666         * modules/unistr/u8-strstr-tests: New file.
9667         * modules/unistr/u16-strstr-tests: New file.
9668         * modules/unistr/u32-strstr-tests: New file.
9669         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9670         * tests/unistr/test-u8-strstr.c: New file.
9671         * tests/unistr/test-u16-strstr.c: New file.
9672         * tests/unistr/test-u32-strstr.c: New file.
9673
9674 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9675             Bruno Haible  <bruno@clisp.org>
9676
9677         Make uN_strstr functions O(n) worst-case.
9678         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9679         16-bit and 32-bit unit cases, use the unibyte algorithm from
9680         lib/mbsstr.c.
9681         * lib/unistr/u8-strstr.c: Include <string.h>.
9682         (UNIT_IS_UINT8_T): New macro.
9683         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9684         (U_STRLEN, U_STRNLEN): New macros.
9685         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9686         (U_STRLEN, U_STRNLEN): New macros.
9687         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9688         (configure.ac): Update required libunistring version.
9689         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9690         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9691         malloca.
9692         (configure.ac): Update required libunistring version.
9693         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9694         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9695         malloca.
9696         (configure.ac): Update required libunistring version.
9697
9698 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9699             Bruno Haible  <bruno@clisp.org>
9700
9701         Prepare for faster uN_strstr functions.
9702         * lib/str-kmp.h: Support definable UNITs.
9703         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9704         needle_len argument.
9705         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9706         * lib/mbscasestr.c (mbscasestr): Likewise.
9707
9708 2011-01-21  Pádraig Brady <P@draigBrady.com>
9709
9710         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9711         * tests/test-malloca.c (main): Unset the environment variable
9712         to greatly speed up the test.
9713         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9714         * modules/malloca-tests: Depend on unsetenv.
9715
9716 2011-01-21  Pádraig Brady <P@draigBrady.com>
9717
9718         ignore-value: remove stdint dependency
9719         * lib/ignore-value.h: Remove <stdint.h>
9720         * modules/ignore-value: Remove stdint dependency.
9721
9722 2011-01-21  Jim Meyering  <meyering@redhat.com>
9723
9724         maint.mk: adjust variable name to be consistent with other gl_ vars
9725         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9726         to be lower case.
9727
9728 2011-01-20  Jim Meyering  <meyering@redhat.com>
9729
9730         maint.mk: make "check" depend on public-submodule-commit by default
9731         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9732
9733 2011-01-20  Bruno Haible  <bruno@clisp.org>
9734
9735         mbfile, mbiter: Complete change from 2008-12-21.
9736         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9737         * m4/mbiter.m4 (gl_MBITER): Likewise.
9738
9739 2011-01-20  Jim Meyering  <meyering@redhat.com>
9740
9741         init.sh: insert space between each function name and "()"
9742         * tests/init.sh: Make it a little easier to see that a function's
9743         name is "warn_", and not "warn" when looking at the first part of
9744         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9745
9746 2011-01-20  Jim Meyering  <meyering@redhat.com>
9747
9748         mountlist: clean up code formatting
9749         * lib/mountlist.c (read_file_system_list): Split a long line,
9750         correct bracing style, use NULL in place of "(struct statfs *)0",
9751         don't parenthesize return value, add spaces around "=" and after
9752         ";-in-for-stmt".
9753
9754 2011-01-14  Markus Duft <mduft@gentoo.org>
9755
9756         mountlist: add support for Interix
9757         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9758         Apply statvfs to all entries of /dev/fs.
9759         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9760         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9761
9762 2011-01-20  Jim Meyering  <meyering@redhat.com>
9763
9764         maint.mk: improve the public-submodule-commit rule
9765         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9766         to suppress printing of its commands... unless V=1.
9767         Add git submodule's --quiet option to suppress printing of e.g.,
9768         "Entering gnulib" output.
9769         "cd" into $(srcdir) before running git submodule.
9770
9771 2011-01-20  Bruno Haible  <bruno@clisp.org>
9772
9773         include_next: Fix bug introduced on 2011-01-18.
9774         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9775         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9776         ac_cv_header_... variable if the second argument is not 'check'.
9777         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9778         gl_NEXT_HEADERS_INTERNAL.
9779
9780 2011-01-20  Bruno Haible  <bruno@clisp.org>
9781
9782         Allow the user to avoid the GNULIB_TEST_* macros.
9783         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9784         Suggested by Paul Eggert.
9785
9786 2011-01-14  Jim Meyering  <meyering@redhat.com>
9787
9788         bootstrap: avoid failure when there is no .gitmodules file
9789         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9790         has been assigned to, even when its value is the empty string.
9791         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9792         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9793         Reported by John W. Eaton <jwe@gnu.org>.
9794
9795 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9796
9797         assume <ctype.h>, ..., <time.h> exist
9798         For years gnulib has been assuming the existence of the headers
9799         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9800         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9801         them, since they don't appear to be needed.
9802         * README (Portability guidelines): Document this.
9803         * lib/flock.c: Assume <fcntl.h> exists.
9804         * lib/regex_internal.h: Assume <locale.h> exists.
9805         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9806         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9807         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9808         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9809         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9810         * m4/regex.m4 (gl_REGEX): Likewise.
9811         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9812         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9813         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9814         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9815         * tests/test-argp.c: Likewise.
9816         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9817
9818         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9819         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9820         AA_APPLE_UNIVERSAL_BUILD.  See
9821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9822         * NEWS: Document this.
9823
9824 2011-01-19  Eric Blake  <eblake@redhat.com>
9825
9826         c-stack: assume stack overflow if SA_SIGINFO unsupported
9827         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9828         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9829         sigaction will work.
9830         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9831         behavior match Linux.
9832         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9833
9834         stdbool-tests: accomodate Haiku
9835         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9836
9837         binary-io: fix O_TEXT on Haiku
9838         * modules/binary-io (Depends-on): Add fcntl-h.
9839         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9840         than blindly undefining O_TEXT.
9841         Reported by Scott McCreary.
9842
9843 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9844
9845         include_next: do not check for standard headers like stddef.h
9846
9847         I found this problem when modifying Emacs to use gnulib.
9848         I noticed that it added HAVE_STDDEF_H to config.h, even though
9849         gnulib always assumes <stddef.h> exists as per README and this
9850         symbol is unnecessary.
9851         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9852         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9853         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9854         faster for headers like stddef.h that are known to exist.
9855         (gl_CHECK_NEXT_HEADERS): Use it.
9856         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9857         rather than gl_CHECK_NEXT_HEADERS.
9858         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9859         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9860
9861 2011-01-18  Eric Blake  <eblake@redhat.com>
9862
9863         ansi-c++-opt: skip C++ dependency style if C++ is unused
9864         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9865         tests when we know C++ compilation is not desired.
9866         Reported by Scott McCreary.
9867
9868 2011-01-18  Bruno Haible  <bruno@clisp.org>
9869
9870         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9871         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9872         (main): Perform test also when getrlimit and setrlimit don't exist or
9873         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9874         limiting the address space size using setrlimit, compare the address
9875         space size before and after the the test.
9876         * tests/test-dprintf-posix2.c: Likewise.
9877         * tests/test-fprintf-posix3.sh: Update skip messages.
9878         * tests/test-dprintf-posix2.sh: Likewise.
9879         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9880         * modules/dprintf-posix-tests (Depends-on): Likewise.
9881         Reported by Bruce Korb <bkorb@gnu.org> and
9882         Gary V. Vaughan <gary@gnu.org>.
9883
9884 2011-01-18  Bruno Haible  <bruno@clisp.org>
9885
9886         get-rusage-as: Improvement for Cygwin.
9887         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9888         areas that are merely reserved.
9889
9890 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9891
9892         strftime: remove dependencies on multibyte modules
9893
9894         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9895         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9896         only if __osf__ is defined, and I suspect OSF doesn't need these
9897         other modules.  If my guess is wrong, we'll need to come up with a
9898         variant of strftime that doesn't need the multibyte modules.
9899
9900         I discovered this problem when attempting modify Emacs to use the
9901         strftime module.  With the previous gnulib, this caused Emacs to
9902         need 31 new files, ranging from lib/config.charset to
9903         m4/wint_t.m4.  This was overkill and I expect would be offputting
9904         to the Emacs maintainers.  After this change, only 6 new files are
9905         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9906         stdbool.m4, and tm_gmtoff.m4.
9907
9908         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9909         Suggested by Bruno Haible in
9910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9911         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9912         and do not check for wchar.h.
9913         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9914         (Depends-on): Remove mbrlen, mbsinit, wchar.
9915
9916 2011-01-18  Bruno Haible  <bruno@clisp.org>
9917
9918         Tests for module 'get-rusage-as'.
9919         * modules/get-rusage-as-tests: New file.
9920         * tests/test-get-rusage-as.c: New file.
9921
9922         New module 'get-rusage-as'.
9923         * modules/get-rusage-as: New file.
9924         * lib/resource-ext.h: New file.
9925         * lib/get-rusage-as.c: New file.
9926
9927 2011-01-17  Eric Blake  <eblake@redhat.com>
9928
9929         sigaction: relax license from LGPLv3+ to LGPLv2+
9930         * modules/sigaction (License): Relax to LGPLv2+.
9931
9932 2011-01-14  Bruno Haible  <bruno@clisp.org>
9933
9934         filemode: Make function declarations usable in C++ mode.
9935         * lib/filemode.h: Enclose function declarations in extern "C" block.
9936         Reported by John W. Eaton <jwe@gnu.org>.
9937
9938 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9939
9940         save-cwd: no longer include "xgetcwd.h"
9941         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9942         This avoids a compilation failure in projects that use save-cwd
9943         without also using the xgetcwd module.
9944
9945 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9946
9947         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9948         This is so that a program like Emacs, which needs only dtoastr,
9949         does not have to bother with distributing and compiling ftoastr
9950         and ldtoastr.
9951         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9952         * modules/dtoastr, modules/ldtoastr: New files.
9953         * modules/ftoastr: Now works just for 'float'.
9954         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9955         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9956         dtoastr.c, ldtoastr.c.
9957
9958 2011-01-11  Jim Meyering  <meyering@redhat.com>
9959
9960         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9961         There is no need to work around the lack of the fchdir function,
9962         since gnulib can now provide a replacement when required.
9963         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9964         * modules/save-cwd (Depends-on): Add fchdir.
9965
9966 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9967
9968         openat, save-cwd: avoid xmalloc
9969
9970         This removes a direct (but undocumented) dependency of openat on
9971         xalloc, along with an indirect dependency via save-cwd.  It also
9972         removes a dependency of save-cwd on xgetcwd, and thereby
9973         indirectly on xalloc.  This change causes the openat substitute
9974         to fall back on save_cwd when memory is tight, and for save_cwd to
9975         fail instead of dying when memory is tight, but that's good enough.
9976         Problem and initial idea for fix reported by Bastien Roucaries in
9977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9978
9979         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9980         xalloc.h (for xmalloc).
9981         (openat_proc_name): Use malloc, not xmalloc.
9982         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9983         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9984
9985         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9986         This avoids heap allocation for file names whose lengths are in
9987         the range 512..1023, with the upper bound increasing to at most
9988         4031 depending on the platform's PATH_MAX.  (We do not want
9989         pathmax.h here as it might supply a non-constant PATH_MAX.)
9990         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9991         Perhaps they should be moved to malloca.h?
9992         (OPENAT_BUFFER_SIZE): Use them.
9993
9994 2011-01-10  Bruno Haible  <bruno@clisp.org>
9995
9996         doc: Update users.txt.
9997         * users.txt: Add recutils.
9998
9999 2011-01-09  Karl Berry  <karl@gnu.org>
10000
10001         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10002
10003         * doc/configmake.texi: New file.
10004         * doc/gnulib.texi: Include it.
10005         * modules/configmake: Move documentation from here.
10006
10007 2011-01-09  Bruno Haible  <bruno@clisp.org>
10008
10009         Update to Unicode 6.0.0.
10010         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10011         (get_lbp): Update for Unicode 6.0.0.
10012         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10013         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10014         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10015         U+11001, U+11038..U+11046. Remove U+06DE.
10016         (uc_width): Fix bounds of planes.
10017         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10018         lib/uniwidth/width.c.
10019         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10020         trailing whitespace removed.
10021         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10022         without comments, but with the original copyright notice.
10023         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10024         * lib/unicase/ignorable.h: Likewise.
10025         * lib/unicase/tocasefold.h: Likewise.
10026         * lib/unicase/tolower.h: Likewise.
10027         * lib/unicase/totitle.h: Likewise.
10028         * lib/unicase/toupper.h: Likewise.
10029         * lib/unictype/bidi_of.h: Likewise.
10030         * lib/unictype/blocks.h: Likewise.
10031         * lib/unictype/categ_C.h: Likewise.
10032         * lib/unictype/categ_Cn.h: Likewise.
10033         * lib/unictype/categ_L.h: Likewise.
10034         * lib/unictype/categ_Ll.h: Likewise.
10035         * lib/unictype/categ_Lm.h: Likewise.
10036         * lib/unictype/categ_Lo.h: Likewise.
10037         * lib/unictype/categ_Lu.h: Likewise.
10038         * lib/unictype/categ_M.h: Likewise.
10039         * lib/unictype/categ_Mc.h: Likewise.
10040         * lib/unictype/categ_Me.h: Likewise.
10041         * lib/unictype/categ_Mn.h: Likewise.
10042         * lib/unictype/categ_N.h: Likewise.
10043         * lib/unictype/categ_Nd.h: Likewise.
10044         * lib/unictype/categ_No.h: Likewise.
10045         * lib/unictype/categ_P.h: Likewise.
10046         * lib/unictype/categ_Po.h: Likewise.
10047         * lib/unictype/categ_S.h: Likewise.
10048         * lib/unictype/categ_Sc.h: Likewise.
10049         * lib/unictype/categ_Sk.h: Likewise.
10050         * lib/unictype/categ_Sm.h: Likewise.
10051         * lib/unictype/categ_So.h: Likewise.
10052         * lib/unictype/categ_of.h: Likewise.
10053         * lib/unictype/combining.h: Likewise.
10054         * lib/unictype/ctype_alnum.h: Likewise.
10055         * lib/unictype/ctype_alpha.h: Likewise.
10056         * lib/unictype/ctype_graph.h: Likewise.
10057         * lib/unictype/ctype_lower.h: Likewise.
10058         * lib/unictype/ctype_print.h: Likewise.
10059         * lib/unictype/ctype_punct.h: Likewise.
10060         * lib/unictype/ctype_upper.h: Likewise.
10061         * lib/unictype/decdigit.h: Likewise.
10062         * lib/unictype/digit.h: Likewise.
10063         * lib/unictype/numeric.h: Likewise.
10064         * lib/unictype/pr_alphabetic.h: Likewise.
10065         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10066         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10067         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10068         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10069         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10070         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10071         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10072         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10073         * lib/unictype/pr_case_ignorable.h: Likewise.
10074         * lib/unictype/pr_cased.h: Likewise.
10075         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10076         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10077         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10078         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10079         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10080         * lib/unictype/pr_combining.h: Likewise.
10081         * lib/unictype/pr_composite.h: Likewise.
10082         * lib/unictype/pr_currency_symbol.h: Likewise.
10083         * lib/unictype/pr_decimal_digit.h: Likewise.
10084         * lib/unictype/pr_deprecated.h: Likewise.
10085         * lib/unictype/pr_format_control.h: Likewise.
10086         * lib/unictype/pr_grapheme_base.h: Likewise.
10087         * lib/unictype/pr_grapheme_extend.h: Likewise.
10088         * lib/unictype/pr_grapheme_link.h: Likewise.
10089         * lib/unictype/pr_id_continue.h: Likewise.
10090         * lib/unictype/pr_id_start.h: Likewise.
10091         * lib/unictype/pr_ideographic.h: Likewise.
10092         * lib/unictype/pr_lowercase.h: Likewise.
10093         * lib/unictype/pr_math.h: Likewise.
10094         * lib/unictype/pr_numeric.h: Likewise.
10095         * lib/unictype/pr_other_alphabetic.h: Likewise.
10096         * lib/unictype/pr_other_id_continue.h: Likewise.
10097         * lib/unictype/pr_other_math.h: Likewise.
10098         * lib/unictype/pr_punctuation.h: Likewise.
10099         * lib/unictype/pr_sentence_terminal.h: Likewise.
10100         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10101         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10102         * lib/unictype/pr_unified_ideograph.h: Likewise.
10103         * lib/unictype/pr_uppercase.h: Likewise.
10104         * lib/unictype/pr_xid_continue.h: Likewise.
10105         * lib/unictype/pr_xid_start.h: Likewise.
10106         * lib/unictype/scripts.h: Likewise.
10107         * lib/unictype/scripts_byname.gperf: Likewise.
10108         * lib/unictype/sy_java_ident.h: Likewise.
10109         * lib/unigbrk/gbrkprop.h: Likewise.
10110         * lib/unilbrk/lbrkprop1.h: Likewise.
10111         * lib/unilbrk/lbrkprop2.h: Likewise.
10112         * lib/uninorm/decomposition-table2.h: Likewise.
10113         * lib/uniwbrk/wbrkprop.h: Likewise.
10114         * tests/unicase/test-cased.c: Likewise.
10115         * tests/unicase/test-ignorable.c: Likewise.
10116         * tests/unicase/test-uc_tolower.c: Likewise.
10117         * tests/unicase/test-uc_totitle.c: Likewise.
10118         * tests/unicase/test-uc_toupper.c: Likewise.
10119         * tests/unictype/test-categ_C.c: Likewise.
10120         * tests/unictype/test-categ_Cn.c: Likewise.
10121         * tests/unictype/test-categ_L.c: Likewise.
10122         * tests/unictype/test-categ_Ll.c: Likewise.
10123         * tests/unictype/test-categ_Lm.c: Likewise.
10124         * tests/unictype/test-categ_Lo.c: Likewise.
10125         * tests/unictype/test-categ_Lu.c: Likewise.
10126         * tests/unictype/test-categ_M.c: Likewise.
10127         * tests/unictype/test-categ_Mc.c: Likewise.
10128         * tests/unictype/test-categ_Me.c: Likewise.
10129         * tests/unictype/test-categ_Mn.c: Likewise.
10130         * tests/unictype/test-categ_N.c: Likewise.
10131         * tests/unictype/test-categ_Nd.c: Likewise.
10132         * tests/unictype/test-categ_No.c: Likewise.
10133         * tests/unictype/test-categ_P.c: Likewise.
10134         * tests/unictype/test-categ_Po.c: Likewise.
10135         * tests/unictype/test-categ_S.c: Likewise.
10136         * tests/unictype/test-categ_Sc.c: Likewise.
10137         * tests/unictype/test-categ_Sk.c: Likewise.
10138         * tests/unictype/test-categ_Sm.c: Likewise.
10139         * tests/unictype/test-categ_So.c: Likewise.
10140         * tests/unictype/test-ctype_alnum.c: Likewise.
10141         * tests/unictype/test-ctype_alpha.c: Likewise.
10142         * tests/unictype/test-ctype_graph.c: Likewise.
10143         * tests/unictype/test-ctype_lower.c: Likewise.
10144         * tests/unictype/test-ctype_print.c: Likewise.
10145         * tests/unictype/test-ctype_punct.c: Likewise.
10146         * tests/unictype/test-ctype_upper.c: Likewise.
10147         * tests/unictype/test-decdigit.h: Likewise.
10148         * tests/unictype/test-digit.h: Likewise.
10149         * tests/unictype/test-numeric.h: Likewise.
10150         * tests/unictype/test-pr_alphabetic.c: Likewise.
10151         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10152         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10153         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10154         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10155         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10156         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10157         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10158         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10159         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10160         * tests/unictype/test-pr_cased.c: Likewise.
10161         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10162         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10163         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10164         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10165         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10166         * tests/unictype/test-pr_combining.c: Likewise.
10167         * tests/unictype/test-pr_composite.c: Likewise.
10168         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10169         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10170         * tests/unictype/test-pr_deprecated.c: Likewise.
10171         * tests/unictype/test-pr_format_control.c: Likewise.
10172         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10173         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10174         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10175         * tests/unictype/test-pr_id_continue.c: Likewise.
10176         * tests/unictype/test-pr_id_start.c: Likewise.
10177         * tests/unictype/test-pr_ideographic.c: Likewise.
10178         * tests/unictype/test-pr_lowercase.c: Likewise.
10179         * tests/unictype/test-pr_math.c: Likewise.
10180         * tests/unictype/test-pr_numeric.c: Likewise.
10181         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10182         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10183         * tests/unictype/test-pr_other_math.c: Likewise.
10184         * tests/unictype/test-pr_punctuation.c: Likewise.
10185         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10186         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10187         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10188         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10189         * tests/unictype/test-pr_uppercase.c: Likewise.
10190         * tests/unictype/test-pr_xid_continue.c: Likewise.
10191         * tests/unictype/test-pr_xid_start.c: Likewise.
10192         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10193         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10194         changes.
10195         * lib/unictype/categ_Cc.h: Likewise.
10196         * lib/unictype/categ_Cf.h: Likewise.
10197         * lib/unictype/categ_Co.h: Likewise.
10198         * lib/unictype/categ_Cs.h: Likewise.
10199         * lib/unictype/categ_Lt.h: Likewise.
10200         * lib/unictype/categ_Nl.h: Likewise.
10201         * lib/unictype/categ_Pc.h: Likewise.
10202         * lib/unictype/categ_Pd.h: Likewise.
10203         * lib/unictype/categ_Pe.h: Likewise.
10204         * lib/unictype/categ_Pf.h: Likewise.
10205         * lib/unictype/categ_Pi.h: Likewise.
10206         * lib/unictype/categ_Ps.h: Likewise.
10207         * lib/unictype/categ_Z.h: Likewise.
10208         * lib/unictype/categ_Zl.h: Likewise.
10209         * lib/unictype/categ_Zp.h: Likewise.
10210         * lib/unictype/categ_Zs.h: Likewise.
10211         * lib/unictype/ctype_blank.h: Likewise.
10212         * lib/unictype/ctype_cntrl.h: Likewise.
10213         * lib/unictype/ctype_digit.h: Likewise.
10214         * lib/unictype/ctype_space.h: Likewise.
10215         * lib/unictype/ctype_xdigit.h: Likewise.
10216         * lib/unictype/mirror.h: Likewise.
10217         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10218         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10219         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10220         * lib/unictype/pr_bidi_control.h: Likewise.
10221         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10222         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10223         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10224         * lib/unictype/pr_bidi_pdf.h: Likewise.
10225         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10226         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10227         * lib/unictype/pr_dash.h: Likewise.
10228         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10229         * lib/unictype/pr_diacritic.h: Likewise.
10230         * lib/unictype/pr_extender.h: Likewise.
10231         * lib/unictype/pr_hex_digit.h: Likewise.
10232         * lib/unictype/pr_hyphen.h: Likewise.
10233         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10234         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10235         * lib/unictype/pr_ignorable_control.h: Likewise.
10236         * lib/unictype/pr_iso_control.h: Likewise.
10237         * lib/unictype/pr_join_control.h: Likewise.
10238         * lib/unictype/pr_left_of_pair.h: Likewise.
10239         * lib/unictype/pr_line_separator.h: Likewise.
10240         * lib/unictype/pr_logical_order_exception.h: Likewise.
10241         * lib/unictype/pr_non_break.h: Likewise.
10242         * lib/unictype/pr_not_a_character.h: Likewise.
10243         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10244         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10245         * lib/unictype/pr_other_id_start.h: Likewise.
10246         * lib/unictype/pr_other_lowercase.h: Likewise.
10247         * lib/unictype/pr_other_uppercase.h: Likewise.
10248         * lib/unictype/pr_paired_punctuation.h: Likewise.
10249         * lib/unictype/pr_paragraph_separator.h: Likewise.
10250         * lib/unictype/pr_pattern_syntax.h: Likewise.
10251         * lib/unictype/pr_pattern_white_space.h: Likewise.
10252         * lib/unictype/pr_private_use.h: Likewise.
10253         * lib/unictype/pr_quotation_mark.h: Likewise.
10254         * lib/unictype/pr_radical.h: Likewise.
10255         * lib/unictype/pr_soft_dotted.h: Likewise.
10256         * lib/unictype/pr_space.h: Likewise.
10257         * lib/unictype/pr_titlecase.h: Likewise.
10258         * lib/unictype/pr_variation_selector.h: Likewise.
10259         * lib/unictype/pr_white_space.h: Likewise.
10260         * lib/unictype/pr_zero_width.h: Likewise.
10261         * lib/unictype/sy_c_ident.h: Likewise.
10262         * lib/unictype/sy_c_whitespace.h: Likewise.
10263         * lib/unictype/sy_java_whitespace.h: Likewise.
10264         * lib/uninorm/composition-table.gperf: Likewise.
10265         * lib/uninorm/decomposition-table1.h: Likewise.
10266         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10267         LB8.
10268         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10269         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10270         * modules/unictype/*: Bump version number of expected libunistring
10271         version.
10272
10273 2011-01-09  Bruno Haible  <bruno@clisp.org>
10274
10275         Update to Unicode 5.2.0.
10276         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10277         trailing whitespace removed.
10278
10279 2011-01-09  Bruno Haible  <bruno@clisp.org>
10280
10281         New Unicode character properties, from Unicode 5.2.0.
10282         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10283         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10284         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10285         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10286         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10287         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10288         uc_is_property_cased, uc_is_property_case_ignorable,
10289         uc_is_property_changes_when_lowercased,
10290         uc_is_property_changes_when_uppercased,
10291         uc_is_property_changes_when_titlecased,
10292         uc_is_property_changes_when_casefolded,
10293         uc_is_property_changes_when_casemapped): New declarations.
10294         * lib/unictype/pr_byname.gperf: Add the new properties.
10295         * modules/unictype/property-byname (Depends-on): Depend on the new
10296         properties modules.
10297         * modules/unictype/property-all (Depends-on): Likewise.
10298         * MODULES.html.sh (Unicode string functions): Add
10299         unictype/property-case-ignorable, unictype/property-cased,
10300         unictype/property-changes-when-casefolded,
10301         unictype/property-changes-when-casemapped,
10302         unictype/property-changes-when-lowercased,
10303         unictype/property-changes-when-titlecased,
10304         unictype/property-changes-when-uppercased.
10305
10306         New module 'unictype/property-changes-when-casemapped'.
10307         * modules/unictype/property-changes-when-casemapped: New file.
10308         * lib/unictype/pr_changes_when_casemapped.c: New file.
10309         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10310         generated by gen-uni-tables.
10311         * modules/unictype/property-changes-when-casemapped-tests: New file.
10312         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10313         automatically generated by gen-uni-tables.
10314
10315         New module 'unictype/property-changes-when-casefolded'.
10316         * modules/unictype/property-changes-when-casefolded: New file.
10317         * lib/unictype/pr_changes_when_casefolded.c: New file.
10318         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10319         generated by gen-uni-tables.
10320         * modules/unictype/property-changes-when-casefolded-tests: New file.
10321         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10322         automatically generated by gen-uni-tables.
10323
10324         New module 'unictype/property-changes-when-titlecased'.
10325         * modules/unictype/property-changes-when-titlecased: New file.
10326         * lib/unictype/pr_changes_when_titlecased.c: New file.
10327         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10328         generated by gen-uni-tables.
10329         * modules/unictype/property-changes-when-titlecased-tests: New file.
10330         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10331         automatically generated by gen-uni-tables.
10332
10333         New module 'unictype/property-changes-when-uppercased'.
10334         * modules/unictype/property-changes-when-uppercased: New file.
10335         * lib/unictype/pr_changes_when_uppercased.c: New file.
10336         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10337         generated by gen-uni-tables.
10338         * modules/unictype/property-changes-when-uppercased-tests: New file.
10339         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10340         automatically generated by gen-uni-tables.
10341
10342         New module 'unictype/property-changes-when-lowercased'.
10343         * modules/unictype/property-changes-when-lowercased: New file.
10344         * lib/unictype/pr_changes_when_lowercased.c: New file.
10345         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10346         generated by gen-uni-tables.
10347         * modules/unictype/property-changes-when-lowercased-tests: New file.
10348         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10349         automatically generated by gen-uni-tables.
10350
10351         New module 'unictype/property-case-ignorable'.
10352         * modules/unictype/property-case-ignorable: New file.
10353         * lib/unictype/pr_case_ignorable.c: New file.
10354         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10355         by gen-uni-tables.
10356         * modules/unictype/property-case-ignorable-tests: New file.
10357         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10358         generated by gen-uni-tables.
10359
10360         New module 'unictype/property-cased'.
10361         * modules/unictype/property-cased: New file.
10362         * lib/unictype/pr_cased.c: New file.
10363         * lib/unictype/pr_cased.h: New file, automatically generated by
10364         gen-uni-tables.
10365         * modules/unictype/property-cased-tests: New file.
10366         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10367         gen-uni-tables.
10368
10369 2011-01-09  Bruno Haible  <bruno@clisp.org>
10370
10371         Update to Unicode 5.2.0.
10372         * lib/gen-uni-tables.c (output_predicate, output_category,
10373         output_combclass, output_bidi_category, output_decimal_digit_test,
10374         output_decimal_digit, output_digit_test, output_digit,
10375         output_numeric_test, output_numeric, output_mirror, output_scripts,
10376         output_scripts_byname, output_blocks, output_ident_category): Fix
10377         comment header.
10378         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10379         get_wbp.
10380         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10381         items.
10382         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10383         Changes_When_Lowercased, Changes_When_Uppercased,
10384         Changes_When_Titlecased, Changes_When_Casefolded,
10385         Changes_When_Casemapped.
10386         (is_property_alphabetic, is_property_default_ignorable_code_point):
10387         Update for Unicode 5.2.0.
10388         (is_property_cased, is_property_case_ignorable,
10389         is_property_changes_when_lowercased,
10390         is_property_changes_when_uppercased,
10391         is_property_changes_when_titlecased,
10392         is_property_changes_when_casefolded,
10393         is_property_changes_when_casemapped): New functions.
10394         (output_properties): Output also the properties cased, case_ignorable,
10395         changes_when_lowercased, changes_when_uppercased,
10396         changes_when_titlecased, changes_when_casefolded,
10397         changes_when_casemapped.
10398         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10399         Unicode TR#11 revision 17 -> 19.
10400         (LBP_CP): New enumeration value.
10401         (LBP_*): Adjust values accordingly.
10402         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10403         TR#14 revision 22 -> 24.
10404         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10405         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10406         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10407         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10408         is_WBP_MIDLETTER.
10409         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10410         the code1 and code2 of each composition rule.
10411         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10412         * lib/unicase/ignorable.h: Likewise.
10413         * lib/unicase/tocasefold.h: Likewise.
10414         * lib/unicase/tolower.h: Likewise.
10415         * lib/unicase/totitle.h: Likewise.
10416         * lib/unicase/toupper.h: Likewise.
10417         * lib/unictype/bidi_of.h: Likewise.
10418         * lib/unictype/blocks.h: Likewise.
10419         * lib/unictype/categ_C.h: Likewise.
10420         * lib/unictype/categ_Cf.h: Likewise.
10421         * lib/unictype/categ_Cn.h: Likewise.
10422         * lib/unictype/categ_L.h: Likewise.
10423         * lib/unictype/categ_Ll.h: Likewise.
10424         * lib/unictype/categ_Lm.h: Likewise.
10425         * lib/unictype/categ_Lo.h: Likewise.
10426         * lib/unictype/categ_Lu.h: Likewise.
10427         * lib/unictype/categ_M.h: Likewise.
10428         * lib/unictype/categ_Mc.h: Likewise.
10429         * lib/unictype/categ_Mn.h: Likewise.
10430         * lib/unictype/categ_N.h: Likewise.
10431         * lib/unictype/categ_Nd.h: Likewise.
10432         * lib/unictype/categ_Nl.h: Likewise.
10433         * lib/unictype/categ_No.h: Likewise.
10434         * lib/unictype/categ_P.h: Likewise.
10435         * lib/unictype/categ_Pd.h: Likewise.
10436         * lib/unictype/categ_Po.h: Likewise.
10437         * lib/unictype/categ_S.h: Likewise.
10438         * lib/unictype/categ_Sc.h: Likewise.
10439         * lib/unictype/categ_So.h: Likewise.
10440         * lib/unictype/categ_of.h: Likewise.
10441         * lib/unictype/combining.h: Likewise.
10442         * lib/unictype/ctype_alnum.h: Likewise.
10443         * lib/unictype/ctype_alpha.h: Likewise.
10444         * lib/unictype/ctype_graph.h: Likewise.
10445         * lib/unictype/ctype_lower.h: Likewise.
10446         * lib/unictype/ctype_print.h: Likewise.
10447         * lib/unictype/ctype_punct.h: Likewise.
10448         * lib/unictype/ctype_upper.h: Likewise.
10449         * lib/unictype/decdigit.h: Likewise.
10450         * lib/unictype/digit.h: Likewise.
10451         * lib/unictype/numeric.h: Likewise.
10452         * lib/unictype/pr_alphabetic.h: Likewise.
10453         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10454         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10455         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10456         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10457         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10458         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10459         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10460         * lib/unictype/pr_combining.h: Likewise.
10461         * lib/unictype/pr_composite.h: Likewise.
10462         * lib/unictype/pr_currency_symbol.h: Likewise.
10463         * lib/unictype/pr_dash.h: Likewise.
10464         * lib/unictype/pr_decimal_digit.h: Likewise.
10465         * lib/unictype/pr_deprecated.h: Likewise.
10466         * lib/unictype/pr_diacritic.h: Likewise.
10467         * lib/unictype/pr_extender.h: Likewise.
10468         * lib/unictype/pr_grapheme_base.h: Likewise.
10469         * lib/unictype/pr_grapheme_extend.h: Likewise.
10470         * lib/unictype/pr_grapheme_link.h: Likewise.
10471         * lib/unictype/pr_id_continue.h: Likewise.
10472         * lib/unictype/pr_id_start.h: Likewise.
10473         * lib/unictype/pr_ideographic.h: Likewise.
10474         * lib/unictype/pr_ignorable_control.h: Likewise.
10475         * lib/unictype/pr_logical_order_exception.h: Likewise.
10476         * lib/unictype/pr_lowercase.h: Likewise.
10477         * lib/unictype/pr_numeric.h: Likewise.
10478         * lib/unictype/pr_other_alphabetic.h: Likewise.
10479         * lib/unictype/pr_punctuation.h: Likewise.
10480         * lib/unictype/pr_sentence_terminal.h: Likewise.
10481         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10482         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10483         * lib/unictype/pr_unified_ideograph.h: Likewise.
10484         * lib/unictype/pr_uppercase.h: Likewise.
10485         * lib/unictype/pr_xid_continue.h: Likewise.
10486         * lib/unictype/pr_xid_start.h: Likewise.
10487         * lib/unictype/pr_zero_width.h: Likewise.
10488         * lib/unictype/scripts.h: Likewise.
10489         * lib/unictype/scripts_byname.gperf: Likewise.
10490         * lib/unictype/sy_java_ident.h: Likewise.
10491         * lib/unigbrk/gbrkprop.h: Likewise.
10492         * lib/unilbrk/lbrkprop1.h: Likewise.
10493         * lib/unilbrk/lbrkprop2.h: Likewise.
10494         * lib/unilbrk/lbrktables.h: Likewise.
10495         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10496         LBP_CP. Implement rule LB30.
10497         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10498         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10499         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10500         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10501         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10502         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10503         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10504         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10505         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10506         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10507         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10508         bits instead of 16 bits in the code1 and code2 of each composition
10509         rule.
10510         (uc_composition): Update for Unicode 5.2.0.
10511         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10512         * lib/uninorm/decomposition-table2.h: Likewise.
10513         * lib/uniwbrk/wbrkprop.h: Likewise.
10514         * tests/unicase/test-cased.c: Likewise.
10515         * tests/unicase/test-ignorable.c: Likewise.
10516         * tests/unicase/test-uc_tolower.c: Likewise.
10517         * tests/unicase/test-uc_totitle.c: Likewise.
10518         * tests/unicase/test-uc_toupper.c: Likewise.
10519         * tests/unictype/test-categ_C.c: Likewise.
10520         * tests/unictype/test-categ_Cf.c: Likewise.
10521         * tests/unictype/test-categ_Cn.c: Likewise.
10522         * tests/unictype/test-categ_L.c: Likewise.
10523         * tests/unictype/test-categ_Ll.c: Likewise.
10524         * tests/unictype/test-categ_Lm.c: Likewise.
10525         * tests/unictype/test-categ_Lo.c: Likewise.
10526         * tests/unictype/test-categ_Lu.c: Likewise.
10527         * tests/unictype/test-categ_M.c: Likewise.
10528         * tests/unictype/test-categ_Mc.c: Likewise.
10529         * tests/unictype/test-categ_Mn.c: Likewise.
10530         * tests/unictype/test-categ_N.c: Likewise.
10531         * tests/unictype/test-categ_Nd.c: Likewise.
10532         * tests/unictype/test-categ_Nl.c: Likewise.
10533         * tests/unictype/test-categ_No.c: Likewise.
10534         * tests/unictype/test-categ_P.c: Likewise.
10535         * tests/unictype/test-categ_Pd.c: Likewise.
10536         * tests/unictype/test-categ_Po.c: Likewise.
10537         * tests/unictype/test-categ_S.c: Likewise.
10538         * tests/unictype/test-categ_Sc.c: Likewise.
10539         * tests/unictype/test-categ_So.c: Likewise.
10540         * tests/unictype/test-ctype_alnum.c: Likewise.
10541         * tests/unictype/test-ctype_alpha.c: Likewise.
10542         * tests/unictype/test-ctype_graph.c: Likewise.
10543         * tests/unictype/test-ctype_lower.c: Likewise.
10544         * tests/unictype/test-ctype_print.c: Likewise.
10545         * tests/unictype/test-ctype_punct.c: Likewise.
10546         * tests/unictype/test-ctype_upper.c: Likewise.
10547         * tests/unictype/test-decdigit.h: Likewise.
10548         * tests/unictype/test-digit.h: Likewise.
10549         * tests/unictype/test-numeric.h: Likewise.
10550         * tests/unictype/test-pr_alphabetic.c: Likewise.
10551         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10552         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10553         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10554         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10555         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10556         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10557         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10558         * tests/unictype/test-pr_combining.c: Likewise.
10559         * tests/unictype/test-pr_composite.c: Likewise.
10560         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10561         * tests/unictype/test-pr_dash.c: Likewise.
10562         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10563         * tests/unictype/test-pr_deprecated.c: Likewise.
10564         * tests/unictype/test-pr_diacritic.c: Likewise.
10565         * tests/unictype/test-pr_extender.c: Likewise.
10566         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10567         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10568         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10569         * tests/unictype/test-pr_id_continue.c: Likewise.
10570         * tests/unictype/test-pr_id_start.c: Likewise.
10571         * tests/unictype/test-pr_ideographic.c: Likewise.
10572         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10573         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10574         * tests/unictype/test-pr_lowercase.c: Likewise.
10575         * tests/unictype/test-pr_numeric.c: Likewise.
10576         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10577         * tests/unictype/test-pr_punctuation.c: Likewise.
10578         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10579         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10580         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10581         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10582         * tests/unictype/test-pr_uppercase.c: Likewise.
10583         * tests/unictype/test-pr_xid_continue.c: Likewise.
10584         * tests/unictype/test-pr_xid_start.c: Likewise.
10585         * tests/unictype/test-pr_zero_width.c: Likewise.
10586         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10587         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10588         changed behaviour: line breaking is now disallowed between a letter
10589         or '=' and '('.
10590         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10591         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10592         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10593         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10594         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10595         lib/uniwidth/width.c.
10596         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10597         without comments, but with the original copyright notice.
10598         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10599         changes.
10600         * lib/unictype/categ_Cc.h: Likewise.
10601         * lib/unictype/categ_Co.h: Likewise.
10602         * lib/unictype/categ_Cs.h: Likewise.
10603         * lib/unictype/categ_Lt.h: Likewise.
10604         * lib/unictype/categ_Me.h: Likewise.
10605         * lib/unictype/categ_Pc.h: Likewise.
10606         * lib/unictype/categ_Pe.h: Likewise.
10607         * lib/unictype/categ_Pf.h: Likewise.
10608         * lib/unictype/categ_Pi.h: Likewise.
10609         * lib/unictype/categ_Ps.h: Likewise.
10610         * lib/unictype/categ_Sk.h: Likewise.
10611         * lib/unictype/categ_Sm.h: Likewise.
10612         * lib/unictype/categ_Z.h: Likewise.
10613         * lib/unictype/categ_Zl.h: Likewise.
10614         * lib/unictype/categ_Zp.h: Likewise.
10615         * lib/unictype/categ_Zs.h: Likewise.
10616         * lib/unictype/ctype_blank.h: Likewise.
10617         * lib/unictype/ctype_cntrl.h: Likewise.
10618         * lib/unictype/ctype_digit.h: Likewise.
10619         * lib/unictype/ctype_space.h: Likewise.
10620         * lib/unictype/ctype_xdigit.h: Likewise.
10621         * lib/unictype/mirror.h: Likewise.
10622         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10623         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10624         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10625         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10626         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10627         * lib/unictype/pr_bidi_control.h: Likewise.
10628         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10629         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10630         * lib/unictype/pr_bidi_pdf.h: Likewise.
10631         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10632         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10633         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10634         * lib/unictype/pr_format_control.h: Likewise.
10635         * lib/unictype/pr_hex_digit.h: Likewise.
10636         * lib/unictype/pr_hyphen.h: Likewise.
10637         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10638         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10639         * lib/unictype/pr_iso_control.h: Likewise.
10640         * lib/unictype/pr_join_control.h: Likewise.
10641         * lib/unictype/pr_left_of_pair.h: Likewise.
10642         * lib/unictype/pr_line_separator.h: Likewise.
10643         * lib/unictype/pr_math.h: Likewise.
10644         * lib/unictype/pr_non_break.h: Likewise.
10645         * lib/unictype/pr_not_a_character.h: Likewise.
10646         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10647         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10648         * lib/unictype/pr_other_id_continue.h: Likewise.
10649         * lib/unictype/pr_other_id_start.h: Likewise.
10650         * lib/unictype/pr_other_lowercase.h: Likewise.
10651         * lib/unictype/pr_other_math.h: Likewise.
10652         * lib/unictype/pr_other_uppercase.h: Likewise.
10653         * lib/unictype/pr_paired_punctuation.h: Likewise.
10654         * lib/unictype/pr_paragraph_separator.h: Likewise.
10655         * lib/unictype/pr_pattern_syntax.h: Likewise.
10656         * lib/unictype/pr_pattern_white_space.h: Likewise.
10657         * lib/unictype/pr_private_use.h: Likewise.
10658         * lib/unictype/pr_quotation_mark.h: Likewise.
10659         * lib/unictype/pr_radical.h: Likewise.
10660         * lib/unictype/pr_soft_dotted.h: Likewise.
10661         * lib/unictype/pr_space.h: Likewise.
10662         * lib/unictype/pr_titlecase.h: Likewise.
10663         * lib/unictype/pr_variation_selector.h: Likewise.
10664         * lib/unictype/pr_white_space.h: Likewise.
10665         * lib/unictype/sy_c_ident.h: Likewise.
10666         * lib/unictype/sy_c_whitespace.h: Likewise.
10667         * lib/unictype/sy_java_whitespace.h: Likewise.
10668         * modules/uni*/*: Bump version number of expected libunistring version.
10669         Reported by Simon Josefsson.
10670
10671 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10672
10673         useless-if-before-free: fix typo in --help and make the internal,
10674         automatic version date update process work once again.
10675         --help output contained a NUL character instead of the
10676         backslash-zero that was intended.  Also, the "must lie within
10677         the first 8 lines" line is on line 9, and hence not getting
10678         automatically updated.
10679         * build-aux/useless-if-before-free: Fix the former by adding a
10680         backslash, and the latter by condensing the three lines of what-it-does
10681         to a single line, leaving one line of slack for the future.
10682
10683 2011-01-09  Bruno Haible  <bruno@clisp.org>
10684
10685         uniwidth/width: Fix width of U+1D173..U+1D17A.
10686         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10687         symbolic_width, output_width_property_test): New functions.
10688         (main): Invoke output_nonspacing_property, output_width_property_test.
10689         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10690         U+1D173..U+1D17A.
10691         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10692         1.
10693         * modules/uniwidth/*: Bump version number of expected libunistring
10694         version.
10695         * modules/unilbrk/*: Likewise.
10696
10697 2011-01-08  Bruno Haible  <bruno@clisp.org>
10698
10699         uninorm tests: Preserve copyright of Unicode data file.
10700         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10701         Mention modifications.
10702
10703 2011-01-08  Bruno Haible  <bruno@clisp.org>
10704
10705         gen-uni-tables: Prepare for Unicode 5.2.0.
10706         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10707         (debug_output_lbp, output_lbp): Update.
10708
10709 2011-01-08  Bruno Haible  <bruno@clisp.org>
10710
10711         unilbrk: Clarify gen-uni-tables.c code.
10712         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10713         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10714         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10715
10716 2011-01-07  Bruno Haible  <bruno@clisp.org>
10717
10718         strtod: Restore errno when successfully parsing Infinity or NaN.
10719         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10720         restore the original errno.
10721
10722 2011-01-07  Bruno Haible  <bruno@clisp.org>
10723
10724         remove test: Avoid failure on HP-UX 11.
10725         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10726
10727 2011-01-07  Bruno Haible  <bruno@clisp.org>
10728
10729         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10730         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10731         error code.
10732
10733 2011-01-07  Pádraig Brady <P@draigBrady.com>
10734
10735         ignore-value: fixup comments, and add Eric Blake
10736         as an author since he rewrote the macros.
10737         * lib/ignore-value.h (ignore_value):  State that
10738         we now support aggregates.  Also specify exactly
10739         when the GCC warn_unused_result feature was added.
10740
10741 2011-01-06  Eric Blake  <eblake@redhat.com>
10742
10743         ignore-value: support aggregate types
10744         * lib/ignore-value.h (ignore_value): Provide separate gcc
10745         definition.
10746         * modules/ignore-value-tests: New test module.
10747         * tests/test-ignore-value.c: New test.
10748
10749         maint.mk: improve sc_prohibit_strcmp regex
10750         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10751         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10752         definition of STRNEQ.
10753
10754         signal: work around Haiku issue with SIGBUS
10755         * lib/siglist.h: Add comment.
10756         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10757         strsignal's favoring of SIGSEGV.
10758         * tests/test-signal.c (main): Avoid test failure.
10759         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10760         Reported by Scott McCreary.
10761
10762         maint.mk: add pre-release check to ensure submodule commits are public
10763         * top/maint.mk (public-submodule-commit): New rule.
10764         (submodule-checks): New variable.
10765         (alpha beta stable): Depend on the variable.
10766
10767 2011-01-05  Pádraig Brady <P@draigBrady.com>
10768         and Jim Meyering  <meyering@redhat.com>
10769
10770         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10771         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10772         (ATTRIBUTE_DEPRECATED): Define.
10773         (_ignore_case): New function.
10774         (ignore_value): New macro, to replace the old function.
10775         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10776         * modules/ignore-value (Depends-on): Add stdint.
10777
10778 2011-01-04  Eric Blake  <eblake@redhat.com>
10779
10780         doc: regenerate INSTALL
10781         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10782         @firstparagraphindent support, now that autoconf dropped it.
10783         (INSTALL_PRELUDE): Reinstate old macro.
10784         * doc/install.texi: Resync from autoconf.
10785         * doc/INSTALL: Reflect recent autoconf update.
10786         * doc/INSTALL.ISO: Likewise.
10787         * doc/INSTALL.UTF-8: Likewise.
10788         Reported by Karl Berry.
10789
10790 2011-01-04  Bruce Korb  <address@hidden>
10791
10792         git-version-gen: avoid a sub-shell
10793         * build-aux/git-version-gen: Redirect stderr in `...` via
10794         "exec 2>...", rather than via an added sub-shell.
10795
10796 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10797
10798         git-version-gen: use (...) rather than sh -c '...'
10799         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10800         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10801
10802 2011-01-03  Jim Meyering  <meyering@redhat.com>
10803
10804         git-version-gen: convert leading TABs to spaces
10805         * build-aux/git-version-gen: Expand leading TABs.
10806
10807         git-version-gen: handle failed "git rev-list"
10808         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10809         from git and proceeding as if it had succeeded but printed no SHA1
10810         checksums, suppress the diagnostic and handle the failure.
10811         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10812
10813         git-version-gen: include command name in one more diagnostic
10814         * build-aux/git-version-gen: When the required .tarball-version file
10815         was missing or unreadable, you might see the diagnostic from "cat",
10816         but no trace of the name of the invoking script.  Now, you still see
10817         the diagnostic from cat, but also get one from "git-version-gen: ".
10818         Inspired by a patch from Bruce Korb.
10819
10820         update-copyright: adjust test to match changed code
10821         * tests/test-update-copyright.sh: Change test's expected output
10822         to match new actual output.
10823
10824 2011-01-02  Bruno Haible  <bruno@clisp.org>
10825
10826         getlogin_r: Avoid test failure on HP-UX 11.
10827         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10828         ERANGE when the second argument is zero.
10829         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10830         portability problem.
10831
10832 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10833
10834         * build-aux/update-copyright: doc Simon's changes
10835
10836 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10837
10838         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10839         environment variable.
10840
10841 2011-01-02  Bruno Haible  <bruno@clisp.org>
10842
10843         unigbrk: Avoid gcc warnings.
10844         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10845         unused variable.
10846         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10847         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10848         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10849         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10850         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10851         Change type of first argument to 'const char *'.
10852         (main): Remove unused variable.
10853         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10854         type of first argument to 'const char *'.
10855         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10856         Likewise.
10857         (main): Change type of variable 's'.
10858         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10859         to 'int'.
10860
10861 2011-01-02  Bruno Haible  <bruno@clisp.org>
10862
10863         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10864         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10865         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10866         bug.
10867         * lib/pwrite.c: Undo 2010-12-31 patch.
10868         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10869
10870 2011-01-02  Bruno Haible  <bruno@clisp.org>
10871
10872         pread: Fix test whether it works.
10873         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10874
10875 2011-01-02  Bruno Haible  <bruno@clisp.org>
10876
10877         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10878         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10879         ends in "6". Don't require a specific month name. Try also the locale
10880         names found on HP-UX 11 and Solaris 7.
10881
10882 2011-01-02  Bruno Haible  <bruno@clisp.org>
10883
10884         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10885         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10886         C linkage.
10887         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10888
10889 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10890
10891         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10892         for consistency, since the "cluster" term is not used elsewhere.
10893         * lib/unigbrk.in.h: Update name.
10894         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10895         * lib/unigbrk/u16-grapheme-next.c: Update name.
10896         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10897         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10898         * lib/unigbrk/u32-grapheme-next.c: Update name.
10899         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10900         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10901         * lib/unigbrk/u8-grapheme-next.c: Update name.
10902         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10903         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10904         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10905         Suggested by Bruno Haible.
10906
10907 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10908
10909         Remove module 'u8-grapheme-len' as too redundant with
10910         'u8-grapheme-next'.
10911         * modules/unigbrk/u8-grapheme-len: Delete file.
10912         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10913         * lib/unigbrk.in.h: Remove prototype for deleted function.
10914         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10915         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10916
10917         Remove module 'u16-grapheme-len' as too redundant with
10918         'u16-grapheme-next'.
10919         * modules/unigbrk/u16-grapheme-len: Delete file.
10920         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10921         * lib/unigbrk.in.h: Remove prototype for deleted function.
10922         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10923         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10924
10925         Remove module 'u32-grapheme-len' as too redundant with
10926         'u32-grapheme-next'.
10927         * modules/unigbrk/u32-grapheme-len: Delete file.
10928         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10929         * lib/unigbrk.in.h: Remove prototype for deleted function.
10930         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10931         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10932
10933         Suggested by Bruno Haible.
10934
10935 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10936
10937         * unigbrk.in.h: Fix typo: "ben" => "been".
10938         Reported by Bruno Haible.
10939
10940 2011-01-01  Jim Meyering  <meyering@redhat.com>
10941
10942         maint: update almost all copyright ranges to include 2011
10943         Run the new "make update-copyright" rule.
10944
10945 2011-01-01  Jim Meyering  <meyering@redhat.com>
10946
10947         maint: update-copyright: exempt doc/INSTALL*
10948         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10949         since they are generated.  Suggested by Bruno Haible.
10950
10951 2011-01-01  Jim Meyering  <meyering@redhat.com>
10952
10953         maint: refine the update-copyright rule
10954         * Makefile (update-copyright): Also exclude any file that includes
10955         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10956         code that merely generates the comment.
10957
10958 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10959
10960         New module 'u8-grapheme-len'.
10961         * modules/unigbrk/u8-grapheme-len: New file.
10962         * modules/unigbrk/u8-grapheme-len-tests: New file.
10963         * lib/unigbrk.in.h: Add prototype for new function.
10964         * lib/unigbrk/u8-grapheme-len.c: New file.
10965         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10966
10967         New module 'u16-grapheme-len'.
10968         * modules/unigbrk/u16-grapheme-len: New file.
10969         * modules/unigbrk/u16-grapheme-len-tests: New file.
10970         * lib/unigbrk.in.h: Add prototype for new function.
10971         * lib/unigbrk/u16-grapheme-len.c: New file.
10972         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10973
10974         New module 'u32-grapheme-len'.
10975         * modules/unigbrk/u32-grapheme-len: New file.
10976         * modules/unigbrk/u32-grapheme-len-tests: New file.
10977         * lib/unigbrk.in.h: Add prototype for new function.
10978         * lib/unigbrk/u32-grapheme-len.c: New file.
10979         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10980
10981         New module 'u8-grapheme-next'.
10982         * modules/unigbrk/u8-grapheme-next: New file.
10983         * modules/unigbrk/u8-grapheme-next-tests: New file.
10984         * lib/unigbrk.in.h: Add prototype for new function.
10985         * lib/unigbrk/u8-grapheme-next.c: New file.
10986         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10987
10988         New module 'u16-grapheme-next'.
10989         * modules/unigbrk/u16-grapheme-next: New file.
10990         * modules/unigbrk/u16-grapheme-next-tests: New file.
10991         * lib/unigbrk.in.h: Add prototype for new function.
10992         * lib/unigbrk/u16-grapheme-next.c: New file.
10993         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10994
10995         New module 'u32-grapheme-next'.
10996         * modules/unigbrk/u32-grapheme-next: New file.
10997         * modules/unigbrk/u32-grapheme-next-tests: New file.
10998         * lib/unigbrk.in.h: Add prototype for new function.
10999         * lib/unigbrk/u32-grapheme-next.c: New file.
11000         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11001
11002         New module 'u8-grapheme-prev'.
11003         * modules/unigbrk/u8-grapheme-prev: New file.
11004         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11005         * lib/unigbrk.in.h: Add prototype for new function.
11006         * lib/unigbrk/u8-grapheme-prev.c: New file.
11007         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11008
11009         New module 'u16-grapheme-prev'.
11010         * modules/unigbrk/u16-grapheme-prev: New file.
11011         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11012         * lib/unigbrk.in.h: Add prototype for new function.
11013         * lib/unigbrk/u16-grapheme-prev.c: New file.
11014         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11015
11016         New module 'u32-grapheme-prev'.
11017         * modules/unigbrk/u32-grapheme-prev: New file.
11018         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11019         * lib/unigbrk.in.h: Add prototype for new function.
11020         * lib/unigbrk/u32-grapheme-prev.c: New file.
11021         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11022
11023         New module 'u8-grapheme-breaks'.
11024         * modules/unigbrk/u8-grapheme-breaks: New file.
11025         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11026         * lib/unigbrk.in.h: Add prototype for new function.
11027         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11028         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11029
11030         New module 'u16-grapheme-breaks'.
11031         * modules/unigbrk/u16-grapheme-breaks: New file.
11032         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11033         * lib/unigbrk.in.h: Add prototype for new function.
11034         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11035         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11036
11037         New module 'u32-grapheme-breaks'.
11038         * modules/unigbrk/u32-grapheme-breaks: New file.
11039         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11040         * lib/unigbrk.in.h: Add prototype for new function.
11041         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11042         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11043
11044         New module 'ulc-grapheme-breaks'.
11045         * modules/unigbrk/ulc-grapheme-breaks: New file.
11046         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11047         * m4/locale-ar.m4: New file.
11048         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11049         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11050         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11051
11052 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11053
11054         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11055         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11056         modified how this file was generated before I initially submitted
11057         the module, but failed to regenerate it.  This meant that several
11058         of the level2 entries were wrong.
11059         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11060         Remove the division-by-2 that is folded into the table now that
11061         gbrkprop.h has been regenerated properly.  Now -1 entries are
11062         handled correctly.
11063
11064         New module 'unigbrk/uc-gbrk-prop-tests'.
11065         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11066         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11067         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11068         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11069
11070 2011-01-01  Bruno Haible  <bruno@clisp.org>
11071
11072         Avoid use of hexadecimal escapes.
11073         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11074         instead of hexadecimal escapes.
11075
11076 2011-01-01  Jim Meyering  <meyering@redhat.com>
11077
11078         maint: new rule to update copyright year ranges
11079         * Makefile (update-copyright): New rule.
11080
11081         maint: indent with TABs in Makefile
11082         * Makefile: Expand leading sequences of spaces to TABs
11083
11084         version-etc: update the copyright year it reports
11085         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11086
11087 2010-12-31  Bruno Haible  <bruno@clisp.org>
11088
11089         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11090         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11091         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11092         zero.
11093
11094 2010-12-31  Bruno Haible  <bruno@clisp.org>
11095
11096         pwrite: Work around HP-UX 11.11 bug.
11097         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11098         works and set REPLACE_PWRITE if not.
11099         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11100         function.
11101         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11102
11103 2010-12-31  Bruno Haible  <bruno@clisp.org>
11104
11105         pread: Work around HP-UX 11 bugs.
11106         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11107         and set REPLACE_PREAD if not.
11108         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11109
11110 2010-12-31  Eric Blake  <eblake@redhat.com>
11111
11112         nl_langinfo: fix YESEXPR on Irix 6.5
11113         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11114         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11115         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11116         it.
11117
11118 2010-12-31  Bruno Haible  <bruno@clisp.org>
11119
11120         iconv: Document HP-UX 11 bug.
11121         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11122
11123 2010-12-31  Bruno Haible  <bruno@clisp.org>
11124
11125         ldexpl: Fix link error on HP-UX 11.
11126         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11127         LDEXPL_LIBM, using $ISNANL_LIBM.
11128
11129 2010-12-31  Eric Blake  <eblake@redhat.com>
11130
11131         ftello: avoid compilation failure with SunStudio c89
11132         * lib/ftello.c (ftello): Use lseek, not llseek.
11133
11134         tests: avoid failing coreutils tests on cygwin
11135         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11136         (create_exe_shims_): Return 0 when skipping.
11137
11138 2010-12-31  Bruno Haible  <bruno@clisp.org>
11139
11140         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11141         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11142
11143 2010-12-31  Bruno Haible  <bruno@clisp.org>
11144
11145         waitpid: Fix link error in C++ mode.
11146         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11147
11148 2010-12-31  Bruno Haible  <bruno@clisp.org>
11149
11150         isnan: Use GCC built-ins when possible.
11151         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11152         __builtin_isnan.
11153         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11154         (isnan): Define using GCC built-ins for GCC >= 4.0.
11155
11156 2010-12-31  Bruno Haible  <bruno@clisp.org>
11157
11158         isnand: Fix mistake.
11159         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11160         __builtin_isnand.
11161
11162 2010-12-31  Bruno Haible  <bruno@clisp.org>
11163
11164         open: Avoid C++ error on HP-UX 11.
11165         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11166
11167 2010-12-31  Bruno Haible  <bruno@clisp.org>
11168
11169         time_r: Add missing declarations on HP-UX 11.
11170         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11171         instead of HAVE_LOCALTIME_R.
11172         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11173         HAVE_LOCALTIME_R always.
11174         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11175         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11176         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11177         HAVE_LOCALTIME_R.
11178         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11179         * doc/posix-functions/localtime_r.texi: Likewise.
11180
11181 2010-12-29  Eric Blake  <eblake@redhat.com>
11182
11183         mountlist: tweak previous commit
11184         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11185         Reported by Paul Eggert.
11186
11187         mountlist: fix local drive detection on cygwin
11188         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11189         that works for cygwin.
11190
11191 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11192
11193         ftoastr, snprintf: ftoastr + snprintf module
11194         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11195         since the snprintf module now should be good enough here.
11196         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11197         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11198         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11199         GNULIB_SNPRINTF only for the test directory, and the latter
11200         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11201         seems to suffice by itself.
11202
11203 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11204
11205         alloca: one step towards thread-safety
11206         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11207         need for a static variable.  All callers changed.  This does not
11208         make the alloca replacement thread-safe, but it's one step.
11209
11210         tests: minor indenting change
11211         * tests/init.sh: Sync from coreutils housekeeping patch
11212         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11213         to keep lines within 80 columns.
11214
11215 2010-12-28  Jim Meyering  <meyering@redhat.com>
11216
11217         regex: don't infloop on persistent failing calloc
11218         * lib/regexec.c (build_trtable): Return failure indication upon
11219         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11220         In glibc, this was fixed for version 2.13:
11221         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11222
11223 2010-12-28  Bruno Haible  <bruno@clisp.org>
11224             Paul Eggert <eggert@cs.ucla.edu>
11225
11226         linkat: Make implementation robust against system behaviour variations.
11227         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11228         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11229         way, and to -2 if it needs a generic runtime test.
11230         * lib/linkat.c (solaris_optimized_link_immediate,
11231         solaris_optimized_link_follow): New functions.
11232         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11233         (check_same_link): Use it.
11234
11235 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11236
11237         New module 'unigbrk/base'.
11238         * modules/unigbrk/base: New file.
11239         * lib/unigbrk.in.h: New file.
11240
11241         New module 'unigbrk/uc-gbrk-prop'.
11242         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11243         * modules/unigbrk/uc-gbrk-prop: New file.
11244         * lib/unigbrk/gbrkprop.h: New file.
11245         * lib/unigbrk/uc-gbrk-prop.c: New file.
11246
11247         New module 'unigbrk/uc-is-grapheme-break'.
11248         * modules/unigbrk/uc-is-grapheme-break: New file.
11249         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11250         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11251         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11252         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11253         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11254
11255         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11256
11257 2010-12-27  Bruno Haible  <bruno@clisp.org>
11258
11259         linkat test: Avoid failure on Solaris 11 2010-11.
11260         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11261
11262 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         utimens: work around glibc rounding bug on more platforms
11265         * lib/utimens.c (fdutimens): Work around rounding bug even if
11266         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11268
11269 2010-12-27  Bruno Haible  <bruno@clisp.org>
11270
11271         select tests: Improve comments.
11272         * tests/test-select.c (do_select): Add comments.
11273
11274 2010-12-27  Bruno Haible  <bruno@clisp.org>
11275
11276         select tests: Safer way of handling timeout.
11277         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11278         at every invocation.
11279
11280 2010-12-27  Bruno Haible  <bruno@clisp.org>
11281
11282         select tests: Use 'bool' where appropriate.
11283         * tests/test-select.c (connect_to_socket): Change argument type to
11284         'bool'.
11285
11286 2010-12-27  Bruno Haible  <bruno@clisp.org>
11287
11288         select tests: Use existing modules.
11289         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11290         (configure.ac): Don't test for unistd.h.
11291         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11292         declared in <unistd.h>.
11293
11294 2010-12-27  Bruno Haible  <bruno@clisp.org>
11295
11296         mbrtowc: Work around a Solaris 7 bug.
11297         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11298         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11299         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11300         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11301         MBRTOWC_NULL_ARG1_BUG.
11302         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11303         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11304         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11305         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11306
11307 2010-12-27  Jim Meyering  <meyering@redhat.com>
11308
11309         read-file.c: tweak syntax
11310         * lib/read-file.c (fread_file): Remove space after "*" in function
11311         definitions.
11312
11313 2010-12-27  Bruno Haible  <bruno@clisp.org>
11314
11315         times test: Avoid gcc warnings on OSF/1.
11316         * tests/test-times.c (main): Cast printf arguments from clock_t to
11317         'long int'.
11318
11319 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11320
11321         utimens: work around glibc rounding bug on older Linux kernels
11322         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11323         on Linux with a glibc whose utimes might not work, then work
11324         around a longstanding glibc bug involving rounding rather than
11325         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11327
11328 2010-12-26  Bruno Haible  <bruno@clisp.org>
11329
11330         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11331         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11332         _GL_CXXALIAS_SYS.
11333         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11334
11335 2010-12-26  Bruno Haible  <bruno@clisp.org>
11336
11337         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11338         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11339         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11340         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11341         looking for the declaration.
11342         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11343         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11344         problem.
11345         * doc/posix-functions/inet_pton.texi: Likewise.
11346
11347 2010-12-26  Bruno Haible  <bruno@clisp.org>
11348
11349         arpa_inet: Use the common idioms with C++ support.
11350         * lib/arpa_inet.in.h: Include c++defs.h.
11351         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11352         support.
11353         * modules/arpa_inet (Depends-on): Add c++defs.
11354         (Makefile.am): Substitute the contents of c++defs.h.
11355         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11356         * modules/arpa_inet-c++-tests: New file.
11357         * tests/test-arpa_inet-c++.cc: New file.
11358
11359 2010-12-25  Bruno Haible  <bruno@clisp.org>
11360
11361         Fix more C++ link errors on Solaris 8.
11362         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11363         $(LIB_EACCESS).
11364         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11365         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11366         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11367         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11368         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11369
11370 2010-12-25  Bruno Haible  <bruno@clisp.org>
11371
11372         printf-posix: Fix link error when a non-GCC compiler is used.
11373         * lib/stdio.in.h (printf): When not using GCC, override printf
11374         correctly.
11375         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11376
11377 2010-12-25  Bruno Haible  <bruno@clisp.org>
11378
11379         strerror_r-posix: Update doc.
11380         * doc/posix-functions/strerror_r.texi: Update doc about the return
11381         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11382
11383 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11384
11385         utimens: simplify the logic of the previous change
11386         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11387         This should not affect whether the test succeeds or fails.
11388
11389         utimens: configure better on hosts with NFS clock skew
11390         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11391         uses the clock of the local host.  It might use the clock of the
11392         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11394
11395 2010-12-25  Bruno Haible  <bruno@clisp.org>
11396
11397         ptsname test: Avoid failure on Solaris.
11398         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11399         open a pseudo-terminal; don't use BSD-style ptys.
11400         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11401
11402 2010-12-25  Bruno Haible  <bruno@clisp.org>
11403
11404         ptsname: Avoid ERANGE failure on some systems.
11405         * lib/ptsname.c (buffer): Increase size.
11406
11407 2010-12-25  Bruno Haible  <bruno@clisp.org>
11408
11409         rename, renameat: Avoid test failures at NFS mounted locations.
11410         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11411         so that subsequent mkdir calls succeed.
11412
11413 2010-12-25  Bruno Haible  <bruno@clisp.org>
11414
11415         iswblank: Fix C++ link error on Solaris 8.
11416         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11417         _GL_FUNCDECL_SYS.
11418
11419 2010-12-25  Bruno Haible  <bruno@clisp.org>
11420
11421         unistd: Fix C++ link error on Solaris 8.
11422         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11423
11424 2010-12-25  Bruno Haible  <bruno@clisp.org>
11425
11426         readlink doc: Mention an old glibc bug.
11427         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11428
11429 2010-12-25  Bruno Haible  <bruno@clisp.org>
11430
11431         fcntl-h: Fix for use of C++ on glibc systems.
11432         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11433         also on glibc systems in C++ mode.
11434         Reported by Gary V. Vaughan <gary@gnu.org>.
11435
11436 2010-12-25  Bruno Haible  <bruno@clisp.org>
11437
11438         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11439         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11440
11441 2010-12-25  Bruno Haible  <bruno@clisp.org>
11442
11443         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11444         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11445         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11446         test whether truncl works according to ISO C 99 with IEC 60559.
11447         * m4/truncl-ieee.m4: New file.
11448         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11449         m4/signbit.m4.
11450         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11451
11452 2010-12-25  Bruno Haible  <bruno@clisp.org>
11453
11454         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11455         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11456         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11457         test whether ceill works according to ISO C 99 with IEC 60559.
11458         * m4/ceill-ieee.m4: New file.
11459         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11460         m4/signbit.m4.
11461         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11462
11463 2010-12-25  Bruno Haible  <bruno@clisp.org>
11464
11465         Ensure all prerequisites of <wchar.h> are included.
11466         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11467         before <wchar.h>.
11468         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11469         gl_MBRLEN_NUL_RETVAL): Likewise.
11470         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11471         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11472         AC_FUNC_MBRTOWC): Likewise.
11473         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11474         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11475         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11476         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11477         Likewise.
11478         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11479         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11480         (gl_WCHAR_H): Improve comments.
11481         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11482
11483 2010-12-25  Bruno Haible  <bruno@clisp.org>
11484
11485         strtok_r: Fix C syntax error in autoconf macro.
11486         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11487         characters in test program.
11488
11489 2010-12-24  Bruno Haible  <bruno@clisp.org>
11490
11491         ceil, trunc, round: Fix gcc warnings.
11492         * lib/ceil.c (MIN): Undefine before redefining.
11493         * lib/trunc.c (MIN): Likewise.
11494         * lib/round.c (MIN): Likewise.
11495         Include <math.h> first.
11496
11497 2010-12-24  Bruno Haible  <bruno@clisp.org>
11498
11499         select tests: Avoid failures on OSF/1 5.1.
11500         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11501         failure of closing the last socket; it may fail with ECONNRESET.
11502
11503 2010-12-24  Eric Blake  <eblake@redhat.com>
11504
11505         stdint: avoid HP-UX 10.20 preprocessor bug
11506         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11507         than #if.
11508         * tests/test-floor2.c (main): Likewise.
11509         Reported by Peter O'Gorman.
11510
11511         pipe: make obsoletion transition easier
11512         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11513         * modules/pipe (Files): Include revived file.
11514         (Include): Drop reference, to mirror getdate's behavior.
11515
11516 2010-12-24  Bruno Haible  <bruno@clisp.org>
11517
11518         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11519         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11520         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11521         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11522
11523 2010-12-24  Bruno Haible  <bruno@clisp.org>
11524
11525         gethostname: Ensure declaration on NonStop Kernel.
11526         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11527         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11528
11529 2010-12-24  Bruno Haible  <bruno@clisp.org>
11530
11531         sys_select: Ensure all necessary types on NonStop Kernel.
11532         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11533         include <sys/time.h>.
11534         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11535         NonStop Kernel.
11536         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11537
11538 2010-12-24  Bruno Haible  <bruno@clisp.org>
11539
11540         sys_select: Remove unneeded include.
11541         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11542         have <sys/select.h>.
11543
11544 2010-12-24  Bruno Haible  <bruno@clisp.org>
11545
11546         gethostname: Provide a fallback for HOST_NAME_MAX.
11547         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11548         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11549         instead.
11550         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11551
11552 2010-12-24  Bruno Haible  <bruno@clisp.org>
11553
11554         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11555         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11556         (SA_RESTART): Likewise.
11557         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11558
11559 2010-12-24  Bruno Haible  <bruno@clisp.org>
11560
11561         signal: Define NSIG.
11562         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11563         * tests/test-signal.c (nsig): New variable.
11564         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11565
11566 2010-12-24  Bruno Haible  <bruno@clisp.org>
11567
11568         rename, renameat: Avoid test failures on OSF/1 5.1.
11569         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11570         alternative error codes.
11571         * tests/test-renameat.c (main): Likewise.
11572
11573 2010-12-24  Bruno Haible  <bruno@clisp.org>
11574
11575         *printf: Detect large precisions bug on Solaris 10/SPARC.
11576         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11577         by Paul Eggert.
11578         * tests/test-snprintf-posix.h (test_function): Add this test code here
11579         too.
11580         * tests/test-sprintf-posix.h (test_function): Likewise.
11581         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11582         * tests/test-vasprintf-posix.c (test_function): Likewise.
11583         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11584         around by gnulib.
11585         * doc/posix-functions/printf.texi: Likewise.
11586         * doc/posix-functions/snprintf.texi: Likewise.
11587         * doc/posix-functions/sprintf.texi: Likewise.
11588         * doc/posix-functions/vfprintf.texi: Likewise.
11589         * doc/posix-functions/vprintf.texi: Likewise.
11590         * doc/posix-functions/vsnprintf.texi: Likewise.
11591         * doc/posix-functions/vsprintf.texi: Likewise.
11592         * doc/posix-functions/dprintf.texi: Undo last commit.
11593         * doc/posix-functions/vdprintf.texi: Likewise.
11594
11595 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11596
11597         tests: port test-fdutimensat.c to Solaris 8
11598         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11599         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11600         On Solaris 8, it fails with errno == ENOSYS, because there is no
11601         futimens (so it can't use the fd), and there is no lutimens (so it
11602         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11603
11604         vsnprintf: make more consistent with snprintf; doc fixes
11605
11606         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11607         the byte count return problem was promoted from the snprintf-posix
11608         to the snprintf module.
11609         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11610         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11611         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11612         * tests/test-snprintf.c (main): Check the byte count returned.
11613         * tests/test-vsnprintf.c (main): Likewise.
11614
11615 2010-12-23  Eric Blake  <eblake@redhat.com>
11616
11617         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11618         * modules/sigpipe (License): Relax license.
11619
11620 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11621
11622         doc: document Solaris printf bug with large float precisions
11623         * doc/posix-functions/dprintf.texi (dprintf):
11624         * doc/posix-functions/fprintf.texi (fprintf):
11625         * doc/posix-functions/printf.texi (printf):
11626         * doc/posix-functions/snprintf.texi (snprintf):
11627         * doc/posix-functions/sprintf.texi (sprintf):
11628         * doc/posix-functions/vdprintf.texi (vdprintf):
11629         * doc/posix-functions/vfprintf.texi (vfprintf):
11630         * doc/posix-functions/vprintf.texi (vprintf):
11631         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11632         * doc/posix-functions/vsprintf.texi (vsprintf):
11633         Mention that these functions mishandle large floating point
11634         precisions on Solaris 10.  The same bug is also present in Solaris
11635         8, and I assume earlier.  This causes "cd gnulib-tests; make
11636         check" to fail on Solaris 8 (and I assume, later) when building
11637         the latest coreutils, in test-vasprintf-posix's call to
11638         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11639         the wide flavors (e.g., wprintf) so this patch just updates the
11640         documentation for the narrow ones.
11641
11642         test-posixtm.c: add two tests
11643         * tests/test-posixtm.c: Add two tests, to highlight the
11644         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11645         around this bug; this is merely to document it.
11646
11647 2010-12-22  Bruno Haible  <bruno@clisp.org>
11648
11649         getlogin_r: Work around portability problem on OSF/1.
11650         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11651         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11652         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11653         test for a truncated result.
11654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11655         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11656         * modules/getlogin_r (Depends-on): Add memchr.
11657         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11658
11659 2010-12-22  Bruno Haible  <bruno@clisp.org>
11660
11661         ptsname: Avoid test failure on OSF/1 5.1.
11662         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11663         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11664         (same_slave): New function.
11665         (main): Use it to compare ptsname's result with the expected file name.
11666
11667 2010-12-22  Bruno Haible  <bruno@clisp.org>
11668
11669         Port extended stdio modules to HP NonStop Kernel.
11670         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11671         macros.
11672         * lib/fbufmode.c: Update comments.
11673         * lib/fflush.c: Likewise.
11674         * lib/fpurge.c: Likewise.
11675         * lib/freadable.c: Likewise.
11676         * lib/freadahead.c: Likewise.
11677         * lib/freading.c: Likewise.
11678         * lib/freadptr.c: Likewise.
11679         * lib/freadseek.c: Likewise.
11680         * lib/fseeko.c: Likewise.
11681         * lib/fseterr.c: Likewise.
11682         * lib/fwritable.c: Likewise.
11683         * lib/fwriting.c: Likewise.
11684         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11685
11686 2010-12-22  Bruno Haible  <bruno@clisp.org>
11687
11688         ttyname_r: Work around bug on OSF/1 5.1.
11689         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11690         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11691         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11692         present.
11693         * lib/ttyname_r.c (ttyname_r): Update comments.
11694
11695 2010-12-22  Bruno Haible  <bruno@clisp.org>
11696
11697         round: Implement result sign according to IEEE 754.
11698         * lib/round.c (MIN, MINUS_ZERO): New macros.
11699         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11700         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11701         * tests/test-round-ieee.c (main): Likewise.
11702         * tests/test-roundl-ieee.c (main): Likewise.
11703
11704         trunc: Implement result sign according to IEEE 754.
11705         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11706         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11707         * tests/test-trunc2.c: Include minus-zero.h.
11708         (MINUS_ZERO): New macro.
11709         (trunc_reference): Keep in sync with lib/trunc.c.
11710         * tests/test-truncf2.c: Include minus-zero.h.
11711         (MINUS_ZERO): New macro.
11712         (truncf_reference): Keep in sync with lib/trunc.c.
11713         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11714         * tests/test-trunc-ieee.c (main): Likewise.
11715         * tests/test-truncl-ieee.c (main): Likewise.
11716
11717         ceil: Implement result sign according to IEEE 754.
11718         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11719         (FUNC): Return -0.0 for -1 < x < 0.
11720         * tests/test-ceil2.c: Include minus-zero.h.
11721         (MINUS_ZERO): New macro.
11722         (ceil_reference): Keep in sync with lib/ceil.c.
11723         * tests/test-ceilf2.c: Include minus-zero.h.
11724         (MINUS_ZERO): New macro.
11725         (ceilf_reference): Keep in sync with lib/ceil.c.
11726         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11727         * tests/test-ceil-ieee.c (main): Likewise.
11728         * tests/test-ceill-ieee.c (main): Likewise.
11729
11730         floor: Implement result sign according to IEEE 754.
11731         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11732         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11733         * tests/test-floorf2.c (floorf_reference): Likewise.
11734         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11735         * tests/test-floor-ieee.c (main): Likewise.
11736         * tests/test-floorl-ieee.c (main): Likewise.
11737
11738 2010-12-22  Bruno Haible  <bruno@clisp.org>
11739
11740         getaddrinfo: Update doc.
11741         * doc/posix-functions/gai_strerror.texi: Return type is also different
11742         on AIX and HP-UX.
11743
11744 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11745
11746         getaddrinfo, inet_ntop: Update doc for Solaris.
11747         * doc/posix-functions/gai_strerror.texi: Return type is also an
11748         issue on Solaris 9 and earlier.
11749         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11750         on Solaris 10 and earlier.
11751
11752 2010-12-21  Bruno Haible  <bruno@clisp.org>
11753
11754         New module 'roundl-ieee'.
11755         * modules/roundl-ieee: New file.
11756         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11757         test whether roundl works according to ISO C 99 with IEC 60559.
11758         * m4/roundl-ieee.m4: New file.
11759         * modules/roundl-ieee-tests: New file.
11760         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11761         * tests/test-roundl.c (main): Remove signbit tests.
11762         * modules/roundl-tests (Depends-on): Remove signbit.
11763         * doc/posix-functions/roundl.texi: Mention the new module.
11764
11765 2010-12-21  Bruno Haible  <bruno@clisp.org>
11766
11767         New module 'truncl-ieee'.
11768         * modules/truncl-ieee: New file.
11769         * modules/truncl-ieee-tests: New file.
11770         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11771         * tests/test-truncl.c (main): Remove signbit tests.
11772         * modules/truncl-tests (Depends-on): Remove signbit.
11773         * doc/posix-functions/truncl.texi: Mention the new module.
11774
11775 2010-12-21  Bruno Haible  <bruno@clisp.org>
11776
11777         New module 'ceill-ieee'.
11778         * modules/ceill-ieee: New file.
11779         * modules/ceill-ieee-tests: New file.
11780         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11781         * tests/test-ceill.c (main): Remove signbit tests.
11782         * modules/ceill-tests (Depends-on): Remove signbit.
11783         * doc/posix-functions/ceill.texi: Mention the new module.
11784
11785 2010-12-21  Bruno Haible  <bruno@clisp.org>
11786
11787         New module 'floorl-ieee'.
11788         * modules/floorl-ieee: New file.
11789         * modules/floorl-ieee-tests: New file.
11790         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11791         * tests/test-floorl.c (main): Remove signbit tests.
11792         * modules/floorl-tests (Depends-on): Remove signbit.
11793         * doc/posix-functions/floorl.texi: Mention the new module.
11794
11795 2010-12-21  Bruno Haible  <bruno@clisp.org>
11796
11797         New module 'round-ieee'.
11798         * modules/round-ieee: New file.
11799         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11800         whether round works according to ISO C 99 with IEC 60559.
11801         * m4/round-ieee.m4: New file.
11802         * modules/round-ieee-tests: New file.
11803         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11804         * tests/test-round1.c (main): Remove signbit tests.
11805         * modules/round-tests (Depends-on): Remove 'signbit'.
11806         * doc/posix-functions/round.texi: Mention the new module.
11807
11808 2010-12-21  Bruno Haible  <bruno@clisp.org>
11809
11810         New module 'trunc-ieee'.
11811         * modules/trunc-ieee: New file.
11812         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11813         whether trunc works according to ISO C 99 with IEC 60559.
11814         * m4/trunc-ieee.m4: New file.
11815         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11817         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11818         * modules/trunc-ieee-tests: New file.
11819         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11820         * tests/test-trunc1.c (main): Remove signbit tests.
11821         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11822         * doc/posix-functions/trunc.texi: Mention the new module.
11823
11824 2010-12-21  Bruno Haible  <bruno@clisp.org>
11825
11826         New module 'ceil-ieee'.
11827         * modules/ceil-ieee: New file.
11828         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11829         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11830         ISO C 99 with IEC 60559.
11831         * m4/ceil-ieee.m4: New file.
11832         * modules/ceil (Files): Add lib/ceil.c.
11833         (Depends-on): Add 'float'.
11834         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11835         * lib/math.in.h (ceil): New declaration.
11836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11837         REPLACE_CEIL.
11838         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11839         * modules/ceil-ieee-tests: New file.
11840         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11841         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11842         * doc/posix-functions/ceil.texi: Mention the new module.
11843
11844 2010-12-21  Bruno Haible  <bruno@clisp.org>
11845
11846         New module 'floor-ieee'.
11847         * modules/floor-ieee: New file.
11848         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11849         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11850         ISO C 99 with IEC 60559.
11851         * m4/floor-ieee.m4: New file.
11852         * modules/floor (Files): Add lib/floor.c.
11853         (Depends-on): Add 'float'.
11854         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11855         * lib/math.in.h (floor): New declaration.
11856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11857         REPLACE_FLOOR.
11858         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11859         * modules/floor-ieee-tests: New file.
11860         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11861         * tests/test-math-c++.cc: Check the signature of 'floor'.
11862         * doc/posix-functions/floor.texi: Mention the new module.
11863
11864 2010-12-21  Bruno Haible  <bruno@clisp.org>
11865
11866         New module 'roundf-ieee'.
11867         * modules/roundf-ieee: New file.
11868         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11869         test whether roundf works according to ISO C 99 with IEC 60559.
11870         * m4/roundf-ieee.m4: New file.
11871         * modules/roundf-ieee-tests: New file.
11872         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11873         * tests/test-roundf1.c (main): Remove signbit tests.
11874         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11875         * doc/posix-functions/roundf.texi: Mention the new module.
11876
11877 2010-12-21  Bruno Haible  <bruno@clisp.org>
11878
11879         New module 'truncf-ieee'.
11880         * modules/truncf-ieee: New file.
11881         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11882         test whether truncf works according to ISO C 99 with IEC 60559.
11883         * m4/truncf-ieee.m4: New file.
11884         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11886         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11887         * modules/truncf-ieee-tests: New file.
11888         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11889         * tests/test-truncf1.c (main): Remove signbit tests.
11890         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11891         * doc/posix-functions/truncf.texi: Mention the new module.
11892
11893 2010-12-21  Bruno Haible  <bruno@clisp.org>
11894
11895         New module 'ceilf-ieee'.
11896         * modules/ceilf-ieee: New file.
11897         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11898         test whether ceilf works according to ISO C 99 with IEC 60559.
11899         * m4/ceilf-ieee.m4: New file.
11900         * modules/ceilf-ieee-tests: New file.
11901         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11902         * tests/test-ceilf1.c (main): Remove signbit tests.
11903         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11904         * doc/posix-functions/ceilf.texi: Mention the new module.
11905
11906 2010-12-21  Bruno Haible  <bruno@clisp.org>
11907
11908         New module 'floorf-ieee'.
11909         * modules/floorf-ieee: New file.
11910         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11911         test whether floorf works according to ISO C 99 with IEC 60559.
11912         * m4/floorf-ieee.m4: New file.
11913         * modules/floorf-ieee-tests: New file.
11914         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11915         * tests/test-floorf1.c (main): Remove signbit tests.
11916         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11917         * doc/posix-functions/floorf.texi: Mention the new module.
11918
11919 2010-12-21  Bruno Haible  <bruno@clisp.org>
11920
11921         Support for minus zero in autoconf macros.
11922         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11923         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11924         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11925         * tests/minus-zero.h: Update comments.
11926
11927 2010-12-21  Bruno Haible  <bruno@clisp.org>
11928
11929         Tests for module 'ceil'.
11930         * modules/ceil-tests: New file.
11931         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11932         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11933
11934 2010-12-21  Bruno Haible  <bruno@clisp.org>
11935
11936         Tests for module 'floor'.
11937         * modules/floor-tests: New file.
11938         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11939         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11940
11941 2010-12-21  Bruno Haible  <bruno@clisp.org>
11942
11943         math: Fix indentation.
11944         * lib/math.in.h (floorf): Fix indentation.
11945
11946 2010-12-21  Bruno Haible  <bruno@clisp.org>
11947
11948         Fix cross-compilation guesses on Solaris.
11949         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11950         not match "solaris2.10".
11951         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11952         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11953         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11954
11955 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11956
11957         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11958         This fixes a problem observed with the latest coreutils snapshot
11959         that caused a test to fail on Solaris 8.  src/csplit.c's call
11960         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11961         earlier, instead of returning the number of bytes that would have
11962         been generated; this causes csplit to incorrectly report memory
11963         exhaustion.
11964         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11965         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11966         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11967         comments to match.
11968         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11969         Fix typo in matching older versions of Solaris: "solaris2.10"
11970         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11971         only for guessing while cross-compiling.
11972         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11973
11974 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11975
11976         ftoastr: fix comment again
11977         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11979         Also, simplify example a bit by using flags = 0.
11980
11981 2010-12-20  Bruno Haible  <bruno@clisp.org>
11982
11983         round*, trunc*: Update documentation regarding glibc.
11984         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11985         * doc/posix-functions/round.texi: Likewise.
11986         * doc/posix-functions/roundl.texi: Likewise.
11987         * doc/posix-functions/truncf.texi: Likewise.
11988         * doc/posix-functions/trunc.texi: Likewise.
11989         * doc/posix-functions/truncl.texi: Likewise.
11990
11991 2010-12-20  Bruno Haible  <bruno@clisp.org>
11992
11993         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11994         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11995         * doc/posix-functions/round.texi: Likewise.
11996         * doc/posix-functions/roundl.texi: Likewise.
11997
11998 2010-12-20  Bruno Haible  <bruno@clisp.org>
11999
12000         ttyname_r: Add missing declaration on HP-UX 11.
12001         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12002         HAVE_TTYNAME_R.
12003         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12004         declared. Set HAVE_TTYNAME_R always.
12005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12006         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12007         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12008         HAVE_TTYNAME_R.
12009         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12010
12011 2010-12-20  Bruno Haible  <bruno@clisp.org>
12012
12013         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12014         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12015         * doc/posix-functions/getlogin_r.texi: Likewise.
12016         * tests/test-getlogin.c: Include <errno.h>.
12017         (main): Avoid test failure on HP-UX 11.11.
12018         * tests/test-getlogin_r.c (main): Likewise.
12019
12020 2010-12-20  Bruno Haible  <bruno@clisp.org>
12021
12022         getlogin_r: Add missing declaration on HP-UX 11.
12023         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12024         declared also when it exists as a function.
12025         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12026
12027 2010-12-20  Bruno Haible  <bruno@clisp.org>
12028
12029         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12030         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12031         through wcrtomb.
12032
12033 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12034
12035         ftoastr: fix comment
12036         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12037         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12038
12039 2010-12-19  Bruno Haible  <bruno@clisp.org>
12040
12041         isnan: Ensure it is a macro.
12042         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12043         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12044         Solaris.
12045
12046 2010-12-19  Bruno Haible  <bruno@clisp.org>
12047
12048         ldexpl test: Fix link error on OSF/1 5.1.
12049         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12050
12051 2010-12-19  Bruno Haible  <bruno@clisp.org>
12052
12053         wctype: Make it work in C++ mode on OSF/1 5.1.
12054         * lib/wctype.in.h (iswblank): Declare but not define here.
12055         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12056         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12057         * modules/wctype (Files): Add lib/iswblank.c.
12058
12059 2010-12-19  Bruno Haible  <bruno@clisp.org>
12060
12061         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12062         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12063         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12064
12065 2010-12-19  Bruno Haible  <bruno@clisp.org>
12066
12067         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12069         _POSIX_PII_SOCKET.
12070         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12071         * doc/posix-functions/recvfrom.texi: Likewise.
12072         * doc/posix-functions/send.texi: Likewise.
12073         * doc/posix-functions/sendto.texi: Likewise.
12074
12075 2010-12-19  Bruno Haible  <bruno@clisp.org>
12076
12077         tcgetsid: Add missing declaration on OSF/1 5.1.
12078         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12079         HAVE_TCGETSID.
12080         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12081         Don't set HAVE_TCGETSID.
12082         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12083         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12084         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12085         HAVE_TCGETSID.
12086         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12087
12088 2010-12-19  Bruno Haible  <bruno@clisp.org>
12089
12090         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12091         * lib/stdio.in.h: During the include_next statement, let recursive
12092         includes of this file include only the system header file.
12093
12094 2010-12-19  Bruno Haible  <bruno@clisp.org>
12095
12096         iconv_open: Fix regression from 2010-12-04.
12097         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12098         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12099
12100 2010-12-19  Bruno Haible  <bruno@clisp.org>
12101
12102         stdbool test: Avoid a gcc warning.
12103         * tests/test-stdbool.c (main): Fail if e1 is false.
12104         Reported by Jim Meyering.
12105
12106 2010-12-19  Jim Meyering  <meyering@redhat.com>
12107
12108         setenv: restore to working order
12109         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12110         mistakenly removed.
12111         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12112         HAVE_SETENV.
12113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12114         HAVE_SETENV.
12115
12116 2010-12-19  Bruno Haible  <bruno@clisp.org>
12117
12118         Document some different function declarations on OSF/1 5.1.
12119         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12120         * doc/posix-functions/inet_ntop.texi: Likewise.
12121         * doc/posix-functions/gethostname.texi: Likewise.
12122         * lib/unistd.in.h (gethostname): Update comment.
12123
12124 2010-12-19  Bruno Haible  <bruno@clisp.org>
12125
12126         doc: Mention vasprintf-posix module.
12127         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12128         the 'vasprintf-posix' module.
12129         * doc/glibc-functions/vasprintf.texi: Likewise.
12130
12131 2010-12-19  Bruno Haible  <bruno@clisp.org>
12132
12133         unsetenv: Add missing declaration on OSF/1 5.1.
12134         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12135         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12136         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12138         not HAVE_UNSETENV.
12139         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12140         HAVE_UNSETENV.
12141         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12142
12143 2010-12-19  Bruno Haible  <bruno@clisp.org>
12144
12145         setenv: Add missing declaration on OSF/1 5.1.
12146         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12147         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12148         declared. Don't set HAVE_SETENV.
12149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12150         not HAVE_SETENV.
12151         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12152         HAVE_SETENV.
12153         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12154
12155 2010-12-19  Bruno Haible  <bruno@clisp.org>
12156
12157         nl_langinfo tests: Avoid gcc warning.
12158         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12159
12160 2010-12-19  Bruno Haible  <bruno@clisp.org>
12161
12162         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12163         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12164         _GL_CXXALIAS_SYS.
12165
12166 2010-12-19  Bruno Haible  <bruno@clisp.org>
12167
12168         stdbool: Relax test.
12169         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12170         address to 'bool' work in static initializer, for compilers other than
12171         GCC.
12172
12173 2010-12-19  Bruno Haible  <bruno@clisp.org>
12174
12175         ftello: Add missing declaration on OSF/1 5.1.
12176         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12177         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12179         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12180         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12181
12182 2010-12-19  Bruno Haible  <bruno@clisp.org>
12183
12184         fseeko: Add missing declaration on OSF/1 5.1.
12185         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12186         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12188         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12189         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12190
12191 2010-12-19  Bruno Haible  <bruno@clisp.org>
12192
12193         fchdir: Add missing declaration on OSF/1 5.1.
12194         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12197         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12198         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12199
12200 2010-12-19  Bruno Haible  <bruno@clisp.org>
12201
12202         relocatable-prog-wrapper: Separate from relocatable-prog.
12203         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12204         uninstall-relocwrapper rule here.
12205         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12206         Reported by Ian Beckwith <ianb@erislabs.net>.
12207
12208 2010-12-19  Bruno Haible  <bruno@clisp.org>
12209
12210         unistr/u8-mbsnlen: Add missing dependency.
12211         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12212         Reported by Ian Beckwith <ianb@erislabs.net>.
12213
12214 2010-12-19  Bruno Haible  <bruno@clisp.org>
12215
12216         iconv: Make it possible again to use this module without 'iconv-h'.
12217         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12218         if it is not defined.
12219         Reported by Ian Beckwith <ianb@erislabs.net>.
12220
12221 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12222
12223         acl: port to Solaris 8 when copying from tmpfs to ufs
12224         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12225         error number.  Problem observed on Solaris 8 with latest
12226         coreutils, with "mv A B", where A is on a tmpfs file system and B
12227         is on a ufs file system.  This caused coreutils' mv/part-symlink
12228         test to fail.
12229
12230         tests: set fail=0 at start
12231         * tests/init.sh (setup_): Move fail=0 initialization here ...
12232         (mktempd_): ... from here, so that tests can rely on fail being
12233         set to 0 initially.  This fixes a problem in coreutils; see:
12234         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12235
12236 2010-12-18  Bruno Haible  <bruno@clisp.org>
12237
12238         memmem-simple: Stylistic changes.
12239         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12240         Fix preprocessor directive indentation.
12241
12242 2010-12-15  Pádraig Brady <P@draigBrady.com>
12243
12244         memmem, memmem-simple: reorganize and expand empty needle check
12245         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12246         functional checks to memmem-simple so that one has a fully functional
12247         memmem by using just this module.
12248         Restrict the performance only check to the memmem module.
12249         Also expand the empty needle check to ensure the correct
12250         pointer is returned, not just a non NULL pointer.
12251         * doc/glibc-functions/memmem.texi: Rearrange the portability
12252         documentation to correlate with the rearranged checks.
12253         Clarify exactly how the memmem and memmem-simple modules
12254         relate to each other.
12255
12256 2010-12-15  Pádraig Brady <P@draigBrady.com>
12257             Bruno Haible  <bruno@clisp.org>
12258
12259         Improve cross-compilation guesses for uClibc.
12260         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12261         that uClibc does not have the glibc bug.
12262         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12263         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12264
12265 2010-12-14  Eric Blake  <eblake@redhat.com>
12266
12267         configmake: provide fallbacks for oldest supported autotools
12268         * m4/configmake.m4: New file.
12269         * modules/configmake (Files): Ship it.
12270         (configure.ac): Use it to guarantee fallbacks.
12271
12272 2010-12-13  Pádraig Brady <P@draigBrady.com>
12273
12274         read-file: Improve handling of large files
12275         * lib/read-file.c (fread_file): Minimize realloc()s
12276         for regular files, and better manage sizes around SIZE_MAX.
12277
12278 2010-12-13  Eric Blake  <eblake@redhat.com>
12279
12280         cloexec, fcntl: relax license
12281         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12282         consent from all contributors.
12283         * modules/fcntl (License): Likewise.
12284
12285 2010-12-10  Bruno Haible  <bruno@clisp.org>
12286
12287         Tests for module 'pipe-posix'.
12288         * modules/pipe-posix-tests: New file.
12289         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12290
12291 2010-12-10  Bruno Haible  <bruno@clisp.org>
12292
12293         pipe-posix: Make it work in C++ mode.
12294         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12295         (pipe): Use common idiom, not a macro definition.
12296         * lib/pipe.c: New file.
12297         * m4/pipe.m4: New file.
12298         * modules/pipe-posix (Description): Enhance.
12299         (Files): Add lib/pipe.c, m4/pipe.m4.
12300         (configure.ac): Invoke gl_FUNC_PIPE.
12301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12302         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12303         * tests/test-unistd-c++.cc: Check the signature of pipe.
12304
12305 2010-12-10  Bruno Haible  <bruno@clisp.org>
12306
12307         Rename module 'pipe' to 'spawn-pipe'.
12308         * modules/spawn-pipe: New file, renamed from modules/pipe.
12309         (Files, configure.ac, Makefile.am): Update.
12310         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12311         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12312         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12313         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12314         "spawn-pipe.h" instead of "pipe.h".
12315         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12316         to gl_SPAWN_PIPE.
12317         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12318         (Files, Makefile.am): Update.
12319         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12320         Update.
12321         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12322         Include "spawn-pipe.h" instead of "pipe.h".
12323         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12324         * lib/javacomp.c: Likewise.
12325         * lib/javaversion.c: Likewise.
12326         * lib/pipe-filter-gi.c: Likewise.
12327         * lib/pipe-filter-ii.c: Likewise.
12328         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12329         * modules/javacomp (Depends-on): Likewise.
12330         * modules/javaversion (Depends-on): Likewise.
12331         * modules/pipe-filter-gi (Depends-on): Likewise.
12332         * modules/pipe-filter-ii (Depends-on): Likewise.
12333         * MODULES.html.sh (Executing programs): Update.
12334         * NEWS: Mention the change.
12335
12336 2010-12-10  Eric Blake  <eblake@redhat.com>
12337
12338         pipe-posix: new module
12339         * modules/pipe-posix: New file.
12340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12341         (gl_UNISTD_H): Check for declaration.
12342         * modules/unistd (Makefile.am): Substitute it.
12343         * lib/unistd.in.h (pipe): Provide it for mingw.
12344         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12345         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12346
12347 2010-12-07  Bruno Haible  <bruno@clisp.org>
12348
12349         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12350         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12351         u8_strcmp_gnu.
12352         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12353
12354 2010-12-06  Bruno Haible  <bruno@clisp.org>
12355
12356         Update internal documentation.
12357         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12358
12359 2010-12-04  Bruno Haible  <bruno@clisp.org>
12360
12361         Put more information about failed tests into the test return codes.
12362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12363         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12364         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12366         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12367         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12368         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12369         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12370         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12372         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12373         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12374         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12375         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12376         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12377         returns a bit mask.
12378         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12379         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12380         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12381         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12382         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12383         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12386         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12387         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12388         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12389         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12390         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12391         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12392         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12393         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12394         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12395         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12396         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12397         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12399         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12400         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12401         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12402         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12403         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12404         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12405         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12406         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12407         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12408         gl_PRINTF_PRECISION): Likewise.
12409         * m4/regex.m4 (gl_REGEX): Likewise.
12410         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12411         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12412         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12413         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12416         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12417         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12418         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12419         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12420         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12421         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12422         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12423         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12424         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12425         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12426         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12427         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12429         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12430         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12431         enumerated value.
12432         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12433
12434 2010-12-04  Bruno Haible  <bruno@clisp.org>
12435
12436         Update for Solaris 11 2010-11.
12437         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12438         Express, released in November 2010.
12439
12440 2010-12-04  Bruno Haible  <bruno@clisp.org>
12441
12442         nproc: Relax license.
12443         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12444         and Paul Eggert.
12445         Requested by Ludovic Courtès <ludo@gnu.org>.
12446
12447 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12448
12449         utimecmp: fine-grained src to nearby coarse-grained dest
12450
12451         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12452         and the source is on a file system with higher-resolution time
12453         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12454         not work, and the time stamps are close together, the algorithm to
12455         determine the exact resolution from the read-back mtime was buggy:
12456         it had a "!=" where it should have had an "==".  This bug has been
12457         in the code ever since it was introduced to gnulib.
12458         Problem reported by Dan Jacobson in
12459         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12460
12461 2010-11-30  Bruno Haible  <bruno@clisp.org>
12462
12463         strerror_r-posix: Fix autoconf test.
12464         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12465
12466 2010-11-28  Bruno Haible  <bruno@clisp.org>
12467             Paul Eggert  <eggert@cs.ucla.edu>
12468
12469         Tests for module 'getdomainname'.
12470         * modules/getdomainname-tests: New file.
12471         * tests/test-getdomainname.c: New file, based on
12472         tests/test-gethostname.c.
12473
12474 2010-11-28  Bruno Haible  <bruno@clisp.org>
12475             Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         getdomainname: Use the system function when possible.
12478         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12479         (getdomainname): Replace if needed. Provide the declaration if it is
12480         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12481         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12482         (getdomainname): When the system has getdomainname, call the system
12483         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12484         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12485         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12486         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12487         the function if its second argument is of type 'int' or if it is found
12488         in libnsl.
12489         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12490         <sys/systeminfo.h> and sysinfo().
12491         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12493         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12494         HAVE_GETDOMAINNAME.
12495         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12496         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12497         * doc/glibc-functions/getdomainname.texi: Document the problems with
12498         the getdomainname declaration.
12499
12500 2010-11-28  Bruno Haible  <bruno@clisp.org>
12501
12502         sys_socket: Ensure ss_family field on AIX.
12503         * lib/sys_socket.in.h (ss_family): New macro definition.
12504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12505         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12506         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12507         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12508         * modules/sys_socket (Makefile.am): Substitute
12509         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12510         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12511
12512 2010-11-27  Bruno Haible  <bruno@clisp.org>
12513
12514         readline: Improve configure output.
12515         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12516         "checking for readline..." result understandable.
12517
12518 2010-11-27  Bruno Haible  <bruno@clisp.org>
12519
12520         *printf-posix: Detect a bug on Solaris 10/x86.
12521         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12522         for floating-point output.
12523         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12524         directive.
12525         * tests/test-snprintf-posix.h (test_function): Likewise.
12526         * tests/test-sprintf-posix.h (test_function): Likewise.
12527         * tests/test-vasprintf-posix.c (test_function): Likewise.
12528         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12529         * doc/posix-functions/printf.texi: Likewise.
12530         * doc/posix-functions/snprintf.texi: Likewise.
12531         * doc/posix-functions/sprintf.texi: Likewise.
12532         * doc/posix-functions/vfprintf.texi: Likewise.
12533         * doc/posix-functions/vprintf.texi: Likewise.
12534         * doc/posix-functions/vsnprintf.texi: Likewise.
12535         * doc/posix-functions/vsprintf.texi: Likewise.
12536         * doc/glibc-functions/obstack_printf.texi: Likewise.
12537         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12538
12539 2010-11-27  Bruno Haible  <bruno@clisp.org>
12540
12541         Fix link error when module libunistring-optional is in use.
12542         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12543         * modules/striconveha-tests (Makefile.am): Likewise.
12544
12545 2010-11-27  Bruno Haible  <bruno@clisp.org>
12546
12547         regex: Mention link dependencies.
12548         * modules/regex (Link): New section.
12549         * modules/rpmatch (Link): Likewise.
12550         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12551
12552 2010-11-27  Bruno Haible  <bruno@clisp.org>
12553
12554         ftoastr: Fix compilation error on Solaris.
12555         * lib/ftoastr.c: Include <config.h>.
12556
12557 2010-11-27  Bruno Haible  <bruno@clisp.org>
12558
12559         getloadavg: Update documentation.
12560         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12561
12562 2010-11-27  Bruno Haible  <bruno@clisp.org>
12563
12564         sys_socket: Fix test whether the functions are declared.
12565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12566         not <sys/select.h>.
12567
12568 2010-11-27  Bruno Haible  <bruno@clisp.org>
12569
12570         getpass: Make sure to get system declaration on some platforms.
12571         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12572         gl_USE_SYSTEM_EXTENSIONS.
12573         * modules/getpass (Depends-on): Add extensions.
12574
12575 2010-11-26  Bruno Haible  <bruno@clisp.org>
12576
12577         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12578         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12579         'iconv' module is present.
12580         (ICONV_CONST): New macro.
12581         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12582         ICONV_CONST.
12583         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12584         set ICONV_CONST.
12585         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12586         here.
12587         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12588         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12589         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12590         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12591         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12592         present.
12593
12594 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12595
12596         ftoastr: comment fix
12597         * lib/ftoastr.c: "little" -> "little or no" in comment
12598
12599 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12600
12601         stdint: port to GCC 4.3 + OSX + Octave
12602         On this platform, stdint.h is buggy and defines int64_t to long
12603         long int.  The replacement defined it to long int, causing
12604         problems with C++ style name mangling.  Instead, trust the system
12605         definition if INT64_MAX is defined, and likewise for the unsigned
12606         variant.   Problem reported by Jarno Rajahalme in
12607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12608         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12609         and don't mess with int64_t and INT64_MAX in this case.
12610         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12611
12612 2010-11-24  Bruno Haible  <bruno@clisp.org>
12613
12614         doc: Corrections regarding MacOS X 10.4 and 10.5.
12615         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12616         MacOS X.
12617         Reported by Simon Josefsson.
12618
12619 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12620
12621         Uninstall ".bin" files installed by relocwrapper.
12622         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12623         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12624         unless it is already there.
12625
12626 2010-11-21  Bruno Haible  <bruno@clisp.org>
12627
12628         Update for NetBSD 5.0.
12629         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12630         NetBSD; the test fails on NetBSD 5.0.
12631         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12632         about NetBSD.
12633
12634 2010-11-21  Bruno Haible  <bruno@clisp.org>
12635
12636         Update for HP-UX 11.23 and HP-UX 11.31.
12637         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12638         HP-UX.
12639
12640 2010-11-21  Bruno Haible  <bruno@clisp.org>
12641
12642         Update for MacOS X 10.5.
12643         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12644         MacOS X; the test fails on MacOS X 10.5.8.
12645         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12646         about MacOS X.
12647
12648 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12649
12650         bootstrap: add bootstrap_sync option.
12651         See discussion at
12652         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12654         * build-aux/bootstrap: Accept --bootstrap-sync to update
12655         bootstrap if it is not identical to the local gnulib's
12656         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12657         enable this by default.  Accept --no-bootstrap-sync to disable
12658         it.
12659
12660 2010-11-20  Bruno Haible  <bruno@clisp.org>
12661
12662         Ensure that <features.h> is included before __GLIBC__ is tested.
12663         * lib/printf-parse.h: Include <features.h>.
12664         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12665         Reported by Mike Frysinger <vapier@gentoo.org>.
12666
12667         Ensure that <features.h> is included before __GLIBC__ is tested.
12668         * lib/wchar.in.h: Include <features.h>.
12669         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12670         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12671         Reported by Mike Frysinger <vapier@gentoo.org>.
12672
12673         Ensure that <features.h> is included before __GLIBC__ is tested.
12674         * lib/arpa_inet.in.h: Include <features.h>.
12675         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12676         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12677         Reported by Mike Frysinger <vapier@gentoo.org>.
12678
12679         Ensure that <features.h> is included before __GLIBC__ is tested.
12680         * build-aux/link-warning.h: Include <features.h>.
12681         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12682         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12683         Reported by Mike Frysinger <vapier@gentoo.org>.
12684
12685         Ensure that <features.h> is included before __GLIBC__ is tested.
12686         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12687         Reported by Mike Frysinger <vapier@gentoo.org>.
12688
12689 2010-11-20  Bruno Haible  <bruno@clisp.org>
12690
12691         memmem: Fix autoconf test.
12692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12693
12694 2010-11-20  Bruno Haible  <bruno@clisp.org>
12695
12696         Port to uClibc.
12697         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12698         * lib/fcntl.in.h: Likewise.
12699         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12700         * lib/mbrtowc.c (mbrtowc): Likewise.
12701         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12702         * lib/strerror_r.c: Likewise.
12703         * lib/unistr/u8-strnlen.c: Likewise.
12704         * lib/vasnprintf.c (decimal_point_char): Likewise.
12705         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12706         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12708         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12709         * tests/test-sigaction.c (handler, main): Likewise.
12710         * lib/freading.h: Treat uClibc like a non-glibc platform.
12711         * lib/freading.c: Likewise.
12712         * lib/gettext.h: Likewise.
12713         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12714         Likewise.
12715         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12716         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12717         * lib/propername.c (proper_name_utf8): Likewise.
12718         * lib/spawn.in.h: Likewise.
12719         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12720         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12721         mem_cd_iconveh_internal): Likewise.
12722         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12723         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12724         strstr, strcasestr): Likewise.
12725         * lib/unicodeio.c (unicode_to_mb): Likewise.
12726         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12727         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12728         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12729         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12730         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12731         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12732         * lib/unistr/u8-stpncpy.c: Likewise.
12733         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12734         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12737         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12738         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12742         Likewise.
12743         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12744         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12745         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12748         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12749         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12750         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12751         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12752         * tests/test-striconveha.c (main): Likewise.
12753         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12754         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12755         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12756         * doc/posix-functions/getline.texi: Likewise.
12757         Reported by Mike Frysinger <vapier@gentoo.org>.
12758
12759 2010-11-20  Bruno Haible  <bruno@clisp.org>
12760
12761         nproc: Fix condition.
12762         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12763         HAVE_PTHREAD_AFFINITY_NP.
12764
12765 2010-11-20  Bruno Haible  <bruno@clisp.org>
12766
12767         Fix a comment.
12768         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12769
12770 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12771
12772         ftoastr: don't assume snprintf
12773         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12774         Implement a subset of snprintf here, by using sprintf safely.
12775         * modules/ftoastr (Depends-on): Remove snprintf.
12776
12777 2010-11-19  Jim Meyering  <meyering@redhat.com>
12778
12779         test-rename.h: fix compilation failure
12780         * tests/test-rename.h (test_rename): Add omitted "}".
12781
12782 2010-11-17  Jim Meyering  <meyering@redhat.com>
12783
12784         maint.mk: add a URL discussing the no-@acronym policy
12785         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12786
12787 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12788
12789         ftoastr: depend on snprintf, improve comments
12790         * lib/ftoastr.c: Also mention Loitsch's draft.
12791         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12792         needed in the current implementation, but it might simplify
12793         speeding up the code later.
12794         * modules/ftoastr: Depend on snprintf; this improves portability.
12795         Suggested by Bruno Haible in the same email.
12796
12797         ftoastr: port to hosts lacking strtof and strtold
12798         Problem reported by Bruno Haible in
12799         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12800         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12801         environment and strtold (and presumably strtof) are not available.
12802         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12803         (configure.ac): Require gl_C99_STRTOLD.
12804
12805 2010-11-18  Bruno Haible  <bruno@clisp.org>
12806
12807         c-strtold: Avoid link error on AIX 7.
12808         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12809         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12810         (gl_C_STRTOLD): Test whether strtold_l exists.
12811         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12812
12813 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12814
12815         intprops: new macro INT_BITS_STRLEN_BOUND
12816         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12817         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12818         not exposed.  Also, it uses a slightly tighter bound than before;
12819         though this makes no practical difference, we might as well be as
12820         tight as we easily can.
12821
12822         ftoastr: new module, for lossless conversion of floats to short strings
12823         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12824         * modules/ftoastr: New files.
12825
12826 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12827
12828         bootstrap: port to Solaris sed
12829         * build-aux/bootstrap (get_version): Port to Solaris sed.
12830         See Ralf Wildenhues's note in
12831         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12832
12833 2010-11-14  Jim Meyering  <meyering@redhat.com>
12834
12835         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12836         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12837         and move definition closer to sole use.
12838
12839 2010-11-13  Jim Meyering  <meyering@redhat.com>
12840
12841         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12842         Now we require at least autoconf-2.59, which means the work-around
12843         is no longer needed.
12844         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12845         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12846         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12847         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12848         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12849
12850 2010-11-13  Bruno Haible  <bruno@clisp.org>
12851
12852         rename, renameat: Avoid test failures at NFS mounted locations.
12853         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12854         functions.
12855         (test_rename): Use assert_nonexistent.
12856         * tests/test-rename.c: Include <dirent.h>.
12857         * tests/test-renameat.c: Likewise.
12858         Reported by Gary V. Vaughan <gary@gnu.org>.
12859
12860         rename, renameat: Document Linux bug with NFS
12861         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12862         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12863         * doc/posix-functions/renameat.texi: Likewise.
12864         Suggested by Eric Blake.
12865
12866 2010-11-13  Bruno Haible  <bruno@clisp.org>
12867
12868         rename test: Add comments.
12869         * tests/test-rename.h (test_rename): Add structure and comments.
12870
12871 2010-11-13  Eric Blake  <eblake@redhat.com>
12872
12873         maintainer-makefile: cover a few more files
12874         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12875         scripts generated within C files, for libvirt.
12876
12877 2010-11-13  Bruno Haible  <bruno@clisp.org>
12878
12879         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12880         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12881         character, return the number of bytes that belong together, not always
12882         1.
12883         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12884         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12885         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12886         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12887         number of bytes of an invalid character.
12888         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12889         (main): Invoke it.
12890         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12891         results.
12892         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12893         malformed byte sequences.
12894         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12895         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12896         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12897         Reported by Ben Pfaff and Paolo Bonzini.
12898
12899 2010-11-13  Bruno Haible  <bruno@clisp.org>
12900
12901         openat: Work around glibc bug with fchownat() and empty file names.
12902         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12903         (gl_FUNC_FCHOWNAT): Invoke it.
12904         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12905         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12906         Reported by Gary V. Vaughan <gary@gnu.org>.
12907
12908 2010-11-13  Bruno Haible  <bruno@clisp.org>
12909
12910         openat: Ensure autoconf macro ordering.
12911         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12912         gl_USE_SYSTEM_EXTENSIONS.
12913         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12914
12915 2010-11-13  Bruno Haible  <bruno@clisp.org>
12916
12917         Update comments.
12918         * lib/unistr/u8-check.c: Update file name in comments.
12919         * lib/unistr/u8-mblen.c: Likewise.
12920         * lib/unistr/u8-prev.c: Likewise.
12921         * lib/unistr/u8-strmblen.c: Likewise.
12922         * lib/unistr/u8-strmbtouc.c: Likewise.
12923
12924 2010-11-13  Jim Meyering  <meyering@redhat.com>
12925
12926         tests: avoid test failure on Solaris 10 due to lack of PATH export
12927         * tests/test-update-copyright.sh: Don't forget to export PATH.
12928
12929         init.sh: ensure that IFS is defined, just in case...
12930         * tests/init.sh (setup_): Ensure that IFS is defined,
12931         so that saving and restoring it works as expected.  This
12932         appears to be useful at least for an old version of dash
12933         from a long time ago (RH 6).  See here for details:
12934         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12935
12936         maint.mk: tighten "test a == b" check
12937         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12938         test to files that contain something like #!/bin/sh.
12939         Without this, coreutils would get two false positives in
12940         the comments of C source files.
12941
12942 2010-11-12  Eric Blake  <eblake@redhat.com>
12943
12944         bootstrap: fix typo in previous attempt
12945         * build-aux/bootstrap (buildreq): Correct the grouping.
12946         Reported by Paul Eggert.
12947
12948         maintainer-makefile: prohibit test x == x
12949         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12950         Based on a report by Matthias Bolte.
12951
12952         bootstrap: allow FreeBSD gzip
12953         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12954         which has no '.' and goes to stderr.
12955         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12956         Reported by Matthias Bolte.
12957
12958         maintainer-makefile: check for i18n setup
12959         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12960         will likely work.
12961
12962 2010-11-12  Bruno Haible  <bruno@clisp.org>
12963
12964         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12965         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12966         * lib/nanosleep.c (nanosleep): Likewise.
12967
12968 2010-11-11  Bruno Haible  <bruno@clisp.org>
12969
12970         fcntl-h: Fix for use of C++ on glibc systems.
12971         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12972         also on glibc systems in C++ mode.
12973         Reported by Gary V. Vaughan <gary@gnu.org>.
12974
12975 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12976
12977         mknod: avoid false failure with dash
12978         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12979
12980 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12981
12982         unlink: Fix "is it should" typo in diagnostic.
12983         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12984         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12985
12986 2010-11-11  Bruno Haible  <bruno@clisp.org>
12987
12988         Tests for module 'strerror_r-posix'.
12989         * modules/strerror_r-posix-tests: New file.
12990         * tests/test-strerror_r.c: New file.
12991         * tests/test-string-c++.cc: Check the signature of strerror_r.
12992
12993         New module 'strerror_r-posix'.
12994         * lib/string.in.h (strerror_r): New declaration.
12995         * lib/strerror_r.c: New file.
12996         * m4/strerror_r.m4: New file.
12997         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12998         of strerror_r.
12999         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13000         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13001         * modules/strerror_r-posix: New file.
13002         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13003         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13004         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13005         portability problems.
13006
13007 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13008
13009         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13010         line is also considered for output. Quoted function name in shell
13011         command, so temporary files for functions like MyClass::operator()
13012         are removed correctly without errors.
13013
13014 2010-11-09  Bruno Haible  <bruno@clisp.org>
13015
13016         * doc/posix-functions/strerror.texi: List more failing platforms.
13017
13018         * doc/posix-functions/strerror.texi: Add a comment.
13019
13020 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13021
13022         fdopendir: fix bug on MacOS X when low on file descriptors
13023
13024         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13025         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13026         All callers changed.
13027         (fdopendir): Invoke save_cwd at the top level, not after using
13028         multiple dup() calls to use up file descriptors.  Then retry
13029         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13030         less than the maximum number of open file descriptors, because
13031         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13032         on Mac OS X 10.6.4 for tar 1.24
13033         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13034         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13035         and for tar 1.25
13036         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13037
13038 2010-11-07  Bruno Haible  <bruno@clisp.org>
13039
13040         vasnprintf: Support I flag on glibc systems.
13041         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13042         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13043         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13044         snprintf function.
13045         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13046         glibc systems.
13047         * tests/test-vasnprintf-posix3.c: New file.
13048         * modules/vasnprintf-posix-tests (Files): Add it.
13049         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13050
13051 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13052
13053         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13054         * MODULES.html.sh: For compiler warnings, use name
13055         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13056
13057 2010-11-05  Eric Blake  <eblake@redhat.com>
13058
13059         ceil, floor: avoid spurious failure with icc
13060         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13061         [denormals-as-zero] when optimizing without -mieee-fp option.
13062         * tests/test-floorf2.c (floorf_reference): Likewise.
13063         * tests/test-ceilf1.c (dummy): New function.
13064         (main): Use it to outsmart icc's optimization.
13065         * tests/test-floorf1.c (dummy, main): Likewise.
13066
13067         tests: require working signbit
13068         * modules/ceilf-tests (Depends-on): Add signbit.
13069         * modules/ceill-tests (Depends-on): Likewise.
13070         * modules/floorf-tests (Depends-on): Likewise.
13071         * modules/floorl-tests (Depends-on): Likewise.
13072         * modules/round-tests (Depends-on): Likewise.
13073         * modules/roundf-tests (Depends-on): Likewise.
13074         * modules/roundl-tests (Depends-on): Likewise.
13075         * modules/trunc-tests (Depends-on): Likewise.
13076         * modules/truncf-tests (Depends-on): Likewise.
13077         * modules/truncl-tests (Depends-on): Likewise.
13078
13079         strtod: work around icc bug
13080         * lib/strtod.c (minus_zero): Define to working value.
13081         (strtod): Use it to avoid icc bug.
13082
13083         copysign: enhance tests
13084         * modules/copysign-tests (Files): Add minus-zero.h.
13085         * tests/test-copysign.c (main): Also test zeros.
13086
13087 2010-11-04  Eric Blake  <eblake@redhat.com>
13088
13089         ceil, floor, round, trunc: enhance tests of -0
13090         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13091         * tests/test-ceill.c (main): Likewise.
13092         * tests/test-floorf1.c (main): Likewise.
13093         * tests/test-floorl.c (main): Likewise.
13094         * tests/test-round1.c (main): Likewise.
13095         * tests/test-roundf1.c (main): Likewise.
13096         * tests/test-roundl.c (main): Likewise.
13097         * tests/test-trunc1.c (main): Likewise.
13098         * tests/test-truncf1.c (main): Likewise.
13099         * tests/test-truncl.c (main): Likewise.
13100
13101 2010-11-04  Eric Blake  <eblake@redhat.com>
13102
13103         frexp, tests: work around ICC bug with -zero
13104         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13105         works with more compilers.
13106         * tests/minus-zero.h: New file.
13107         * modules/ceilf-tests (Files): Include it.
13108         * modules/ceill-tests (Files): Likewise.
13109         * modules/floorf-tests (Files): Likewise.
13110         * modules/floorl-tests (Files): Likewise.
13111         * modules/frexp-nolibm-tests (Files): Likewise.
13112         * modules/frexp-tests (Files): Likewise.
13113         * modules/frexpl-nolibm-tests (Files): Likewise.
13114         * modules/frexpl-tests (Files): Likewise.
13115         * modules/isnan-tests (Files): Likewise.
13116         * modules/isnand-nolibm-tests (Files): Likewise.
13117         * modules/isnand-tests (Files): Likewise.
13118         * modules/isnanf-nolibm-tests (Files): Likewise.
13119         * modules/isnanf-tests (Files): Likewise.
13120         * modules/isnanl-nolibm-tests (Files): Likewise.
13121         * modules/isnanl-tests (Files): Likewise.
13122         * modules/round-tests (Files): Likewise.
13123         * modules/roundf-tests (Files): Likewise.
13124         * modules/roundl-tests (Files): Likewise.
13125         * modules/ldexpl-tests (Files): Likewise.
13126         * modules/signbit-tests (Files): Likewise.
13127         * modules/snprintf-posix-tests (Files): Likewise.
13128         * modules/sprintf-posix-tests (Files): Likewise.
13129         * modules/strtod-tests (Files): Likewise.
13130         * modules/trunc-tests (Files): Likewise.
13131         * modules/truncf-tests (Files): Likewise.
13132         * modules/truncl-tests (Files): Likewise.
13133         * modules/vsnprintf-posix-tests (Files): Likewise.
13134         * modules/vsprintf-posix-tests (Files): Likewise.
13135         * modules/vasnprintf-posix-tests (Files): Likewise.
13136         * modules/vasprintf-posix-tests (Files): Likewise.
13137         * tests/test-ceilf1.c (main): Use it.
13138         * tests/test-ceill.c (main): Likewise.
13139         * tests/test-floorf1.c (main): Likewise.
13140         * tests/test-floorl.c (main): Likewise.
13141         * tests/test-frexp.c (main): Likewise.
13142         * tests/test-frexpl.c (main): Likewise.
13143         * tests/test-isnan.c (main): Likewise.
13144         * tests/test-isnand.h (main): Likewise.
13145         * tests/test-isnanf.h (main): Likewise.
13146         * tests/test-isnanl.h (main): Likewise.
13147         * tests/test-ldexpl.c (main): Likewise.
13148         * tests/test-round.c (main): Likewise.
13149         * tests/test-roundf.c (main): Likewise.
13150         * tests/test-roundl.c (main): Likewise.
13151         * tests/test-signbit.c (test_signbitf, test_signbitd)
13152         (test_signbitl): Likewise.
13153         * tests/test-snprintf-posix.h (test_function): Likewise.
13154         * tests/test-sprintf-posix.h (test_function): Likewise.
13155         * tests/test-strtod.c (main): Likewise.
13156         * tests/test-trunc1.c (main): Likewise.
13157         * tests/test-truncf1.c (main): Likewise.
13158         * tests/test-truncl.c (main): Likewise.
13159
13160         isnanl: work around icc bug
13161         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13162
13163 2010-11-03  Eric Blake  <eblake@redhat.com>
13164
13165         tests: fix compiler warnings
13166         * tests/test-getopt.h (test_getopt): Fix condition.
13167         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13168         * tests/test-pipe2.c (main): Likewise.
13169         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13170
13171         utimens: fix broken m4 test
13172         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13173
13174 2010-10-28  Bruno Haible  <bruno@clisp.org>
13175
13176         posix_spawn*, getdtablesize: Relax license.
13177         * modules/posix_spawn (License): Change to LGPLv2+.
13178         * modules/posix_spawnp (License): Likewise.
13179         * modules/posix_spawn-internal (License): Likewise.
13180         * modules/posix_spawnattr_init (License): Likewise.
13181         * modules/posix_spawnattr_getflags (License): Likewise.
13182         * modules/posix_spawnattr_setflags (License): Likewise.
13183         * modules/posix_spawnattr_getpgroup (License): Likewise.
13184         * modules/posix_spawnattr_setpgroup (License): Likewise.
13185         * modules/posix_spawnattr_getschedparam (License): Likewise.
13186         * modules/posix_spawnattr_setschedparam (License): Likewise.
13187         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13188         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13189         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13190         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13191         * modules/posix_spawnattr_getsigmask (License): Likewise.
13192         * modules/posix_spawnattr_setsigmask (License): Likewise.
13193         * modules/posix_spawnattr_destroy (License): Likewise.
13194         * modules/posix_spawn_file_actions_init (License): Likewise.
13195         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13196         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13197         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13198         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13199         * modules/getdtablesize (License): Likewise.
13200         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13201
13202 2010-10-26  Bruno Haible  <bruno@clisp.org>
13203
13204         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13205         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13206         Cygwin and mingw.
13207         Suggested by Eric Blake.
13208
13209 2010-10-26  Bruno Haible  <bruno@clisp.org>
13210
13211         stdio: Work around compilation error due to renameat() on Solaris 10.
13212         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13213         * lib/renameat.c: Don't include <unistd.h> here.
13214         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13215         Reported by Paul Eggert and Eric Blake.
13216
13217 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13218
13219         renameat: port to Solaris 10, which declares renameat in unistd.h
13220
13221         * lib/renameat.c: Include unistd.h before stdio.h, because
13222         Solaris 10 declares renameat in unistd.h.  Problem encountered
13223         when building GNU tar 1.24 on Solaris 10.
13224
13225 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13226
13227         fdopendir: fix C89 compilation
13228         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13229         compilers.
13230
13231 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13232
13233         inttostr: simplify by removing unnecessary redundancy
13234         * lib/anytostr.c: Don't include verify.h.
13235         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13236         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13237         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13238         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13239         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13240         Likewise.
13241         * modules/inttostr (Depends-on): Remove 'verify'.
13242
13243 2010-10-23  Bruno Haible  <bruno@clisp.org>
13244
13245         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13246         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13247         Reported by Eric Blake.
13248
13249 2010-10-23  Bruno Haible  <bruno@clisp.org>
13250
13251         Tests: Fix LOCALE_JA on MirBSD 10.
13252         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13253         to an UTF-8 locale.
13254         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13255         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13256         Reported by Eric Blake.
13257
13258 2010-10-21  Bruno Haible  <bruno@clisp.org>
13259
13260         nl_langinfo test: Avoid test failure on NetBSD 5.
13261         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13262         Reported by Eric Blake.
13263
13264 2010-10-21  Eric Blake  <eblake@redhat.com>
13265
13266         c-stack: work around libsigsegv 2.8 bug
13267         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13268         overflow on at least PowerPC64.
13269
13270 2010-10-17  Bruno Haible  <bruno@clisp.org>
13271
13272         userspec: Drop redundant file.
13273         * modules/userspec (Files): Remove lib/inttostr.h.
13274
13275 2010-10-17  Bruno Haible  <bruno@clisp.org>
13276
13277         nl_langinfo tests: Silence some warnings.
13278         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13279         Reported by Jim Meyering.
13280
13281 2010-10-17  Bruno Haible  <bruno@clisp.org>
13282
13283         Make use of GCC's attribute __alloc_size__.
13284         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13285         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13286         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13287         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13288         __alloc_size__.
13289         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13290         Suggested by Jim Meyering.
13291
13292 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13293
13294         bootstrap: anchor .gitignore entries.
13295         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13296         with...
13297         (insert_vc_ignore): ... this new function, which prepends `/' to
13298         all .gitignore entries before passing them to
13299         insert_sorted_if_absent.
13300
13301 2010-10-16  Bruno Haible  <bruno@clisp.org>
13302
13303         nextafter: Fix configure check.
13304         * modules/nextafter (configure.ac): Correct expected prototype.
13305
13306 2010-10-16  Bruno Haible  <bruno@clisp.org>
13307
13308         termios: Update documentation.
13309         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13310
13311 2010-10-16  Bruno Haible  <bruno@clisp.org>
13312
13313         tests: Make them compile with TinyCC.
13314         * tests/test-strstr.c (main): Remove parentheses around array
13315         initializer.
13316
13317 2010-10-15  Eric Blake  <eblake@redhat.com>
13318
13319         ignore-value: make header idempotent
13320         * lib/ignore-value.h: Add double-inclusion guards.
13321         Reported by Stefan Berger.
13322
13323 2010-10-15  Jim Meyering  <meyering@redhat.com>
13324
13325         GNUmakefile: handle "stable" target, not "major"
13326         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13327         lists in maint.mk and announce-gen.  Without this, "make stable"
13328         would fail to ensure that $(VERSION) is up to date.
13329
13330 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13331
13332         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13333         & co.
13334
13335 2010-10-14  Bruno Haible  <bruno@clisp.org>
13336
13337         vasnprintf: Don't set errno to 0.
13338         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13339         block that sets it to 0.
13340         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13341
13342 2010-10-14  Bruno Haible  <bruno@clisp.org>
13343
13344         socketlib: Fix.
13345         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13346         gl_PREREQ_SYS_H_WINSOCK2.
13347         Reported by Ian Beckwith <ianb@erislabs.net>.
13348
13349 2010-10-13  Jim Meyering  <meyering@redhat.com>
13350
13351         test-select-stdin.c: avoid warn_unused_result warnings
13352         * tests/test-select-stdin.c: Include "macros.h".
13353         ASSERT that read and fflush succeed.
13354
13355 2010-10-13  Jim Meyering  <meyering@redhat.com>
13356
13357         git-version-gen: do require git-VC'd files in cwd
13358         * build-aux/git-version-gen: Reject a git version string
13359         if there are no commits associated with the current directory.
13360         This avoids an unlikely false-positive (unrelated dir whose parent
13361         repository also contains a tag matching v*), as pointed out
13362         by Giuseppe Scrivano in
13363         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13364
13365 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13366
13367         argv-iter: omit nonconforming declaration
13368         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13369         enum arg_iter_err declaration, which doesn't conform to C99.
13370         Solaris 10 cc warns about this.
13371
13372 2010-10-13  Eric Blake  <eblake@redhat.com>
13373
13374         termios: fix compilation on mingw
13375         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13376         (gl_TERMIOS_H): Adjust it on mingw.
13377         * modules/termios (Makefile.am): Substitute new key.
13378         * lib/termios.in.h (includes): Make include_next conditional.
13379         * doc/posix-headers/termios.texi (termios.h): Update
13380         documentation.
13381         Reported by Daniel P. Berrange.
13382
13383 2010-10-13  Jim Meyering  <meyering@redhat.com>
13384
13385         git-version-gen: don't require that .git/ be in the current dir
13386         * build-aux/git-version-gen: Adjust this script so that it works
13387         when run from any working directory beneath the top-level .git/-
13388         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13390
13391         test-select: avoid warn_unused_result warnings
13392         * tests/test-select.c: Include "macros.h".
13393         ASSERT that each call to read, write, and pipe succeeds.
13394         While not technically required, also check each "close".
13395         * modules/select-tests (Files): Add tests/macros.h.
13396
13397         test-symlinkat: remove declaration of unused local
13398         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13399
13400         test-inttostr: avoid shadowing warnings
13401         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13402         and use malloc rather than the stack for the same reason as
13403         mentioned in the comment justifying the other allocation.
13404
13405 2010-10-11  Bruno Haible  <bruno@clisp.org>
13406
13407         stdlib: Allow multiple gnulib generated replacements to coexist.
13408         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13409         Reported by Sam Steingold <sds@gnu.org>.
13410
13411 2010-10-11  Jim Meyering  <meyering@redhat.com>
13412
13413         fix a documentation typo
13414         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13415
13416 2010-10-11  Eric Blake  <eblake@redhat.com>
13417
13418         futimens: work around Solaris 11 bug
13419         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13420         * tests/test-futimens.h (test_futimens): Enhance, rather than
13421         weaken test.
13422         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13423
13424 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13425
13426         Indentation.
13427         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13428         higher-level operators more to the left.
13429
13430 2010-10-11  Jim Meyering  <meyering@redhat.com>
13431
13432         test-futimens: avoid unwarranted test failure on Solaris 5.11
13433         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13434         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13435         because it tries to dereference the NULL name argument.
13436
13437 2010-10-11  Bruno Haible  <bruno@clisp.org>
13438
13439         Indentation.
13440         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13441         indentation.
13442
13443 2010-10-11  Jim Meyering  <meyering@redhat.com>
13444
13445         spawn.in.h: make indentation consistent with parentheses
13446         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13447         Make indentation consistent with parentheses.
13448
13449 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13450
13451         Fix mismatched parens in previous commit
13452         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13453         parens.
13454
13455 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13456
13457         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13458
13459         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13460         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13461         * lib/malloca.c: Include "verify.h".
13462         (verify1): Remove, replacing with a verify call.
13463         * lib/relocwrapper.c (verify1): Likewise.
13464         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13465         Likewise.
13466         * modules/malloca (Depends-on): Add 'verify'.
13467         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13468         * modules/vasnprintf (Depends-on): Add 'verify'.
13469         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13470         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13471         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13472         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13473         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13474         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13475         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13476
13477         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13478
13479         Formerly the style was sometimes 2*X - 1, because the C standard
13480         was wrongly thought to disallow ?: in integral constant expressions.
13481         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13482         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13483         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13484         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13485         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13486         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13487         verify that time_t cannot be floating.
13488
13489 2010-10-08  Eric Blake  <eblake@redhat.com>
13490
13491         time: enforce recent POSIX ruling that time_t is integral
13492         * lib/time.in.h (__time_t_must_be_integral): Detect any
13493         problematic systems, allowing the rest of gnulib to assume POSIX.
13494
13495 2010-10-08  Jim Meyering  <meyering@redhat.com>
13496
13497         fdopendir: fix a bug on systems lacking openat and /proc support
13498         OpenBSD 4.7 is one such system.  The most noticeable effect was
13499         failure of any application making nontrivial use of fts: rm, du,
13500         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13501           ./rm: traversal failed: `a': Bad file descriptor
13502         Debugging that, you see that even though FD 6 was closed just
13503         prior to the opendir call in fd_clone_opendir, its resulting
13504         dir->dd_fd was 8, rather than the expected value of 6:
13505
13506         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13507         93                close (fd);
13508         (gdb) n
13509         94                dir = fd_clone_opendir (dupfd);
13510         (gdb) n
13511         95                saved_errno = errno;
13512         (gdb) p dir->dd_fd
13513         $11 = 8
13514
13515         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13516         The problem is that on OpenBSD, fd_clone_opendir has to resort
13517         to using the old-style save/restore CWD mechanism, due to its
13518         lack of openat/proc support, and *that* would steal the FD (6)
13519         that opendir was supposed to use.
13520
13521         The fix is to squirrel away the desired FD so that save_cwd uses a
13522         different one, and then free the dest FD right before calling opendir.
13523         That guarantees opendir will use the required file descriptor.
13524
13525         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13526
13527 2010-10-08  Bruno Haible  <bruno@clisp.org>
13528
13529         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13530         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13531
13532 2010-10-08  Bruno Haible  <bruno@clisp.org>
13533
13534         nanosleep: Make replacement POSIX compliant.
13535         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13536         is out of range.
13537         Reported by Jim Meyering.
13538
13539 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13540
13541         bootstrap: add hook for altering gnulib.mk, for Bison
13542         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13543         the Bison bootstrapping process can rewrite file names and variables
13544         in this file before later parts of 'bootstrap' use the file.
13545         Bison wants to include lib/gnulib.mk from the top-level makefile,
13546         so it needs the file names in this file to be relative to the top
13547         level, not relative to lib; plus it needs variable names to be
13548         rewritten.
13549         (slurp): Use the new function.
13550
13551         bootstrap: reformat for readability
13552         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13553
13554 2010-10-08  Eric Blake  <eblake@redhat.com>
13555
13556         docs: update cygwin progress
13557         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13558         1.7.7.
13559         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13560         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13561         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13562         * doc/posix-functions/carg.texi (carg): Likewise.
13563         * doc/posix-functions/cargf.texi (cargf): Likewise.
13564         * doc/posix-functions/casin.texi (casin): Likewise.
13565         * doc/posix-functions/casinf.texi (casinf): Likewise.
13566         * doc/posix-functions/casinh.texi (casinh): Likewise.
13567         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13568         * doc/posix-functions/catan.texi (catan): Likewise.
13569         * doc/posix-functions/catanf.texi (catanf): Likewise.
13570         * doc/posix-functions/catanh.texi (catanh): Likewise.
13571         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13572         * doc/posix-functions/ccos.texi (ccos): Likewise.
13573         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13574         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13575         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13576         * doc/posix-functions/cexp.texi (cexp): Likewise.
13577         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13578         * doc/posix-functions/cimag.texi (cimag): Likewise.
13579         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13580         * doc/posix-functions/clog.texi (clog): Likewise.
13581         * doc/posix-functions/clogf.texi (clogf): Likewise.
13582         * doc/posix-functions/conj.texi (conj): Likewise.
13583         * doc/posix-functions/conjf.texi (conjf): Likewise.
13584         * doc/posix-functions/cpow.texi (cpow): Likewise.
13585         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13586         * doc/posix-functions/cproj.texi (cproj): Likewise.
13587         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13588         * doc/posix-functions/creal.texi (creal): Likewise.
13589         * doc/posix-functions/crealf.texi (crealf): Likewise.
13590         * doc/posix-functions/csin.texi (csin): Likewise.
13591         * doc/posix-functions/csinf.texi (csinf): Likewise.
13592         * doc/posix-functions/csinh.texi (csinh): Likewise.
13593         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13594         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13595         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13596         * doc/posix-functions/ctan.texi (ctan): Likewise.
13597         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13598         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13599         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13600         * doc/posix-headers/complex.texi (complex.h): Likewise.
13601
13602 2010-10-07  Jim Meyering  <meyering@redhat.com>
13603
13604         parse-datetime: avoid compilation failure on OpenBSD 4.7
13605         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13606         This works around a compilation failure on OpenBSD 4.7:
13607         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13608
13609 2010-10-07  Eric Blake  <eblake@redhat.com>
13610
13611         docs: update cygwin progress
13612         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13613         1.7.6.
13614         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13615         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13616         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13617         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13618         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13619         Likewise.
13620         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13621         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13622         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13623         Likewise.
13624         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13625         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13626         Likewise.
13627         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13628         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13629         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13630         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13631         Likewise.
13632         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13633         Likewise.
13634         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13635
13636         docs: update parse-datetime history
13637         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13638         documentation of this function's history and alternatives.
13639
13640         cygwin: use more robust version check
13641         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13642         exclude an eventual cygwin 1.9.1.
13643         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13645         (gl_FUNC_STRCASESTR): Likewise.
13646         Reported by Bruno Haible.
13647
13648 2010-10-06  Bruno Haible  <bruno@clisp.org>
13649
13650         string, sys_select: Avoid #including large headers unless necessary.
13651         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13652         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13653         OSF/1, BeOS, Haiku.
13654         Reported by Jim Meyering.
13655
13656 2010-10-05  Eric Blake  <eblake@redhat.com>
13657
13658         memmem, strstr, strcasestr: fix bug with long periodic needle
13659         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13660         periodic needle having false positive.
13661         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13662         and cygwin 1.7.7.
13663         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13665         (gl_FUNC_STRCASESTR): Likewise.
13666         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13667         * tests/test-memmem.c (main): Expose the bug.
13668         * tests/test-strcasestr.c (main): Likewise.
13669         * tests/test-strstr.c (main): Likewise.
13670         * tests/test-c-strcasestr.c (main): Likewise.
13671         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13672         * doc/posix-functions/strstr.texi (strstr): Likewise.
13673         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13674         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13675
13676 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13677
13678         parse-datetime: do some more renaming
13679         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13680         parse_datetime, not get_date.  Mention the renaming.
13681         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13682         in comments.
13683         * m4/bison.m4: Likewise.
13684
13685 2010-10-05  Eric Blake  <eblake@redhat.com>
13686
13687         parse-datetime: better name than get_date
13688         * NEWS: Reword the deprecation notice.
13689         * modules/get_date: Rename to modules/parse-datetime.
13690         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13691         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13692         * lib/get_date.y: Rename to lib/parse-datetime.y.
13693         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13694         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13695         * doc/getdate.texi: Provide fallback wrapper.
13696         * lib/getdate.h: Move guts, and wrap...
13697         * lib/parse-datetime.h: ...new file.
13698         * lib/parse-datetime.y (get_date): Rename...
13699         (parse_datetime): ...to this.
13700         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13701         (gl_PARSE_DATETIME): ...to this.
13702         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13703         documentation.
13704         * modules/getdate (Files): Provide fallback docs and header.
13705         (Notice, Depends-on): Update references.
13706         * tests/test-parse-datetime.c: Likewise.
13707         * DEPENDENCIES: Likewise.
13708         * MODULES.html.sh (Date and time <time.h>): Likewise.
13709         * doc/parse-datetime.texi (Date input formats)
13710         (Authors of parse_datetime): Likewise.
13711         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13712         (Include): Likewise.
13713         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13714         * gnulib-tool: Likewise.
13715         * m4/bison.m4 (gl_BISON): Likewise.
13716         Suggested by Bruno Haible.
13717
13718 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13719
13720         more ports to Solaris tr, which needs [] around ranges
13721         * gnulib-tool: Solaris tr needs [] around ranges.
13722         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13723         * tests/test-pipe-filter-gi1.c (main): Likewise.
13724         * tests/test-pipe-filter-ii1.c (main): Likewise.
13725
13726 2010-10-05  Eric Blake  <eblake@redhat.com>
13727
13728         bootstrap: fix Solaris regression
13729         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13730         around ranges.
13731         Reported by Pádraig Brady.
13732
13733         bootstrap: work with pkg-config
13734         * build-aux/bootstrap (check_versions): Also transliterate - in
13735         prerequisite name.
13736         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13737         prerequisites that were already found, to avoid confusion.
13738         Reported by Justin Clift.
13739
13740         faccessat: remove unused wrappers
13741         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13742         presence of these wrappers dragged in -lgen on Solaris.
13743         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13744
13745 2010-10-05  Jim Meyering  <meyering@redhat.com>
13746
13747         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13748         * Makefile (sc_pragma_columns): New syntax-check rule.
13749
13750 2010-10-04  Bruno Haible  <bruno@clisp.org>
13751
13752         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13753         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13754         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13755         Reported by Bruce Korb and Eric Blake.
13756
13757 2010-10-04  Bruno Haible  <bruno@clisp.org>
13758
13759         threadlib: Make option --with-libpth-prefix work.
13760         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13761         use $LIBPTH, not just -lpth.
13762
13763 2010-10-04  Bruno Haible  <bruno@clisp.org>
13764
13765         Avoid line length limitation from HP NonStop system header files.
13766         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13767         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13768         * lib/ctype.in.h: Likewise.
13769         * lib/dirent.in.h: Likewise.
13770         * lib/errno.in.h: Likewise.
13771         * lib/fcntl.in.h: Likewise.
13772         * lib/float.in.h: Likewise.
13773         * lib/getopt.in.h: Likewise.
13774         * lib/iconv.in.h: Likewise.
13775         * lib/inttypes.in.h: Likewise.
13776         * lib/langinfo.in.h: Likewise.
13777         * lib/locale.in.h: Likewise.
13778         * lib/math.in.h: Likewise.
13779         * lib/netdb.in.h: Likewise.
13780         * lib/netinet_in.in.h: Likewise.
13781         * lib/poll.in.h: Likewise.
13782         * lib/pthread.in.h: Likewise.
13783         * lib/pty.in.h: Likewise.
13784         * lib/sched.in.h: Likewise.
13785         * lib/se-selinux.in.h: Likewise.
13786         * lib/search.in.h: Likewise.
13787         * lib/signal.in.h: Likewise.
13788         * lib/spawn.in.h: Likewise.
13789         * lib/stdarg.in.h: Likewise.
13790         * lib/stddef.in.h: Likewise.
13791         * lib/stdint.in.h: Likewise.
13792         * lib/stdio.in.h: Likewise.
13793         * lib/stdlib.in.h: Likewise.
13794         * lib/string.in.h: Likewise.
13795         * lib/strings.in.h: Likewise.
13796         * lib/sys_file.in.h: Likewise.
13797         * lib/sys_ioctl.in.h: Likewise.
13798         * lib/sys_select.in.h: Likewise.
13799         * lib/sys_socket.in.h: Likewise.
13800         * lib/sys_stat.in.h: Likewise.
13801         * lib/sys_time.in.h: Likewise.
13802         * lib/sys_times.in.h: Likewise.
13803         * lib/sys_utsname.in.h: Likewise.
13804         * lib/sys_wait.in.h: Likewise.
13805         * lib/sysexits.in.h: Likewise.
13806         * lib/termios.in.h: Likewise.
13807         * lib/time.in.h: Likewise.
13808         * lib/unistd.in.h: Likewise.
13809         * lib/wchar.in.h: Likewise.
13810         * lib/wctype.in.h: Likewise.
13811         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13812         * modules/ctype (Makefile.am): Likewise.
13813         * modules/dirent (Makefile.am): Likewise.
13814         * modules/errno (Makefile.am): Likewise.
13815         * modules/fcntl-h (Makefile.am): Likewise.
13816         * modules/float (Makefile.am): Likewise.
13817         * modules/getopt-posix (Makefile.am): Likewise.
13818         * modules/iconv-h (Makefile.am): Likewise.
13819         * modules/inttypes (Makefile.am): Likewise.
13820         * modules/langinfo (Makefile.am): Likewise.
13821         * modules/locale (Makefile.am): Likewise.
13822         * modules/math (Makefile.am): Likewise.
13823         * modules/netdb (Makefile.am): Likewise.
13824         * modules/netinet_in (Makefile.am): Likewise.
13825         * modules/poll-h (Makefile.am): Likewise.
13826         * modules/pthread (Makefile.am): Likewise.
13827         * modules/pty (Makefile.am): Likewise.
13828         * modules/sched (Makefile.am): Likewise.
13829         * modules/search (Makefile.am): Likewise.
13830         * modules/selinux-h (Makefile.am): Likewise.
13831         * modules/signal (Makefile.am): Likewise.
13832         * modules/spawn (Makefile.am): Likewise.
13833         * modules/stdarg (Makefile.am): Likewise.
13834         * modules/stddef (Makefile.am): Likewise.
13835         * modules/stdint (Makefile.am): Likewise.
13836         * modules/stdio (Makefile.am): Likewise.
13837         * modules/stdlib (Makefile.am): Likewise.
13838         * modules/string (Makefile.am): Likewise.
13839         * modules/strings (Makefile.am): Likewise.
13840         * modules/sys_file (Makefile.am): Likewise.
13841         * modules/sys_ioctl (Makefile.am): Likewise.
13842         * modules/sys_select (Makefile.am): Likewise.
13843         * modules/sys_socket (Makefile.am): Likewise.
13844         * modules/sys_stat (Makefile.am): Likewise.
13845         * modules/sys_time (Makefile.am): Likewise.
13846         * modules/sys_times (Makefile.am): Likewise.
13847         * modules/sys_utsname (Makefile.am): Likewise.
13848         * modules/sys_wait (Makefile.am): Likewise.
13849         * modules/sysexits (Makefile.am): Likewise.
13850         * modules/termios (Makefile.am): Likewise.
13851         * modules/time (Makefile.am): Likewise.
13852         * modules/unistd (Makefile.am): Likewise.
13853         * modules/wchar (Makefile.am): Likewise.
13854         * modules/wctype (Makefile.am): Likewise.
13855
13856 2010-10-04  Bruno Haible  <bruno@clisp.org>
13857
13858         read-file tests: Avoid a test failure on NonStop Kernel.
13859         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13860         a regular file.
13861         Reported by Joachim Schmitz <schmitz@hp.com>.
13862
13863 2010-10-03  Bruno Haible  <bruno@clisp.org>
13864
13865         gnulib-tool: Fixes for --create-testdir with --libtool.
13866         * gnulib-tool (func_get_automake_snippet): Don't augment
13867         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13868         an executable.
13869         (func_create_testdir): Handle module 'alloca' like func_import.
13870         Reported by Bruce Korb <bruce.korb@gmail.com>.
13871
13872 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13873
13874         Avoid some lines longer than 80 characters.
13875         * lib/stdint.in.h: Break long comment lines.
13876         * lib/math.in.h: Likewise.
13877         (_GL_NUM_UINT_WORDS): New macro, for readability.
13878         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13879         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13880         * lib/stdlib.in.h: Likewise.
13881         * lib/spawn.in.h: Likewise.
13882         * lib/sys_socket.in.h: Update an URL.
13883         * lib/sys_stat.in.h: Break long line.
13884
13885 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13886
13887         Improve pmccabe2html.
13888         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13889         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13890         when the sources change. Remove the line in the HTML about "Used
13891         ranges" (which implied that there might be other unused ranges),
13892         rename "Resume" to "Summary" (easier to understand for more users).
13893         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13894         styles, and some unnecessary blank lines.
13895
13896 2010-10-03  Bruno Haible  <bruno@clisp.org>
13897             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13898
13899         acl: Add support for ACLs on NonStop Kernel.
13900         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13901         Check whether the function aclsort() exists.
13902         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13903         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13904         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13905         (acl_nontrivial [HAVE_ACLSORT]: New function.
13906         (file_has_acl): Implement for NonStop Kernel.
13907         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13908         (qset_acl): Implement for NonStop Kernel.
13909         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13910         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13911         (main): Implement for NonStop Kernel.
13912         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13913         Kernel. Handle this flavor.
13914         * tests/test-set-mode-acl.sh: Likewise.
13915         * tests/test-copy-acl.sh: Likewise.
13916         * tests/test-copy-file.sh: Likewise.
13917
13918 2010-10-03  Bruno Haible  <bruno@clisp.org>
13919
13920         Info about ACLs on NonStop Kernel.
13921         * doc/acl-resources.txt: Add info about NonStop Kernel.
13922         References by Joachim Schmitz <schmitz@hp.com>.
13923
13924 2010-10-02  Bruno Haible  <bruno@clisp.org>
13925
13926         Define missing EDQUOT on NonStop Kernel.
13927         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13928         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13929         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13930         missing.
13931         * doc/posix-headers/errno.texi: Mention the NSK bug.
13932         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13933         Reported by Joachim Schmitz <schmitz@hp.com>.
13934
13935 2010-10-02  Bruno Haible  <bruno@clisp.org>
13936
13937         Update doc for POSIX:2008.
13938         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13939         Update URL of POSIX specification.
13940
13941 2010-10-02  Bruno Haible  <bruno@clisp.org>
13942
13943         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13944         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13945         from gnulib, not from Automake.
13946
13947 2010-10-02  Bruno Haible  <bruno@clisp.org>
13948
13949         New module 'system-posix'.
13950         * modules/system-posix: New file.
13951         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13952         module is present.
13953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13954         GNULIB_SYSTEM_POSIX.
13955         * modules/stdlib (Depends-on): Remove sys_wait.
13956         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13957         * doc/posix-functions/system.texi: Mention the new module.
13958         * doc/posix-headers/stdlib.texi: Likewise.
13959         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13960         define test_sys_wait_macros to a no-op.
13961         Reported by Sam Steingold <sds@gnu.org>.
13962
13963 2010-09-30  Bruno Haible  <bruno@clisp.org>
13964
13965         More renaming from 'getdate' to 'get_date'.
13966         * doc/get_date.texi: Renamed from doc/getdate.texi.
13967         * modules/get_date (Files): Update.
13968         * MODULES.html.sh (Date and time <time.h>): Update.
13969         * DEPENDENCIES: Update.
13970         * gnulib-tool: Update comment.
13971         * m4/bison.m4 (gl_BISON): Likewise.
13972         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13973
13974 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13975
13976         bootstrap: support ACLOCAL_FLAGS during aclocal
13977         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13978         can add additional -I dir for third-party .m4 files.
13979
13980 2010-09-30  Eric Blake  <eblake@redhat.com>
13981
13982         bootstrap: use glibtoolize on MacOS
13983         * build-aux/bootstrap (check_versions): Convert libtool into
13984         libtoolize.
13985         (tool search): Move libtool check earlier, and look for
13986         glibtoolize for MacOS.
13987         (gnulib_tool_options): Auto-add --libtool when appropriate.
13988         Reported by Justin Clift.
13989
13990         poll: fix typo that broke test on MacOS
13991         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13992         Reported by Justin Clift.
13993
13994         getdate: rename to get_date
13995         Note: getdate.h is not renamed, to minimize client impact.
13996         * modules/getdate: Mark obsolete.  Move old contents...
13997         * modules/get_date: ...to new module name.
13998         * modules/getdate-tests: Move...
13999         * modules/get_date-tests: ...here.
14000         * m4/getdate.m4: Move...
14001         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14002         * lib/getdate.y: Move...
14003         * lib/get_date.y: ...here.
14004         * tests/test-getdate.c: Move...
14005         * tests/test-get_date.c: ...here.
14006         * doc/posix-functions/getdate.texi (getdate): Update name.
14007         * NEWS: Mention the change.
14008
14009 2010-09-29  Bruno Haible  <bruno@clisp.org>
14010
14011         Separate the module 'waitpid' from the module 'sys_wait'.
14012         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14013         present.
14014         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14015         gl_MODULE_INDICATOR_FOR_TESTS.
14016         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14017         * modules/sys_wait (Depends-on): Remove waitpid.
14018         (Makefile.am): Substitute GNULIB_WAITPID.
14019         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14020         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14021         signature only if the 'waitpid' module is present.
14022         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14023         * NEWS: Mention the change.
14024         * modules/grantpt (Depends-on): Add waitpid.
14025         * modules/wait-process (Depends-on): Likewise.
14026
14027 2010-09-29  Bruno Haible  <bruno@clisp.org>
14028
14029         More tests for module 'sys_wait'.
14030         * modules/sys_wait-c++-tests: New file.
14031         * tests/test-sys_wait-c++.cc: New file.
14032         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14033         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14034
14035 2010-09-29  Bruno Haible  <bruno@clisp.org>
14036
14037         New module 'waitpid'.
14038         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14039         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14040         Don't include <process.h>.
14041         (waitpid): Declare only, using modern idiom.
14042         * m4/waitpid.m4: New file.
14043         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14044         * modules/waitpid: New file.
14045         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14046         (Makefile.am): Update.
14047         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14048
14049 2010-09-28  Bruno Haible  <bruno@clisp.org>
14050
14051         poll: Assume ANSI C.
14052         * lib/poll.c (poll): Use an ANSI C declaration.
14053
14054 2010-09-28  Bruno Haible  <bruno@clisp.org>
14055
14056         poll-h: Create poll.h on all platforms.
14057         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14058         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14059         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14060         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14061         (gl_REPLACE_POLL_H): Don't set POLL_H.
14062         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14063         * modules/poll-h (Depends-on): Add include_next.
14064         (Makefile.am): Create poll.h unconditionally. Substitute also
14065         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14066
14067 2010-09-28  Bruno Haible  <bruno@clisp.org>
14068
14069         Tests for module 'poll-h'.
14070         * modules/poll-h-c++-tests: New file.
14071         * tests/test-poll-h-c++.cc: New file.
14072
14073         Tests for module 'poll-h'.
14074         * modules/poll-h-tests: New file.
14075         * tests/test-poll-h.c: New file.
14076
14077 2010-09-28  Bruno Haible  <bruno@clisp.org>
14078
14079         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14080         * modules/poll-h (Depends-on): Add 'extensions'.
14081
14082 2010-09-28  Bruno Haible  <bruno@clisp.org>
14083
14084         New module 'poll-h'.
14085         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14086         (poll): Use modern idiom.
14087         * modules/poll-h: New file.
14088         * modules/poll (Files): Remove lib/poll.in.h.
14089         (Depends-on): Add poll-h.
14090         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14091         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14092         * m4/poll_h.m4: New file.
14093         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14094         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14095         and invoke gl_REPLACE_POLL_H.
14096         * lib/poll.c: Use common idiom.
14097         * tests/test-poll.c: Likewise.
14098         * doc/posix-headers/poll.texi: Mention the poll-h module.
14099         Suggested by Eric Blake.
14100
14101 2010-09-26  Bruno Haible  <bruno@clisp.org>
14102
14103         sys_wait: Implement WSTOPSIG.
14104         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14105         Reported by Simon Josefsson.
14106
14107 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14108
14109         stdlib, sys_wait: Avoid compilation error on mingw.
14110         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14111
14112 2010-09-26  Bruno Haible  <bruno@clisp.org>
14113
14114         stdlib tests: Avoid code duplication.
14115         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14116         * modules/sys_wait-tests (Files): Likewise.
14117         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14118         * tests/test-stdlib.c: Include test-sys_wait.h.
14119         (main): Invoke test_sys_wait_macros.
14120         * tests/test-sys_wait.c: Include test-sys_wait.h.
14121         (main): Invoke test_sys_wait_macros.
14122
14123 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14124
14125         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14126         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14127         sure Windows sockets are working before calling getaddrinfo.
14128         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14129         * doc/gnulib.texi (Windows sockets): Fix typo.
14130
14131 2010-09-25  Bruno Haible  <bruno@clisp.org>
14132
14133         Tests for module 'regex-quote'.
14134         * modules/regex-quote-tests: New file.
14135         * tests/test-regex-quote.c: New file.
14136
14137         New module 'regex-quote'.
14138         * lib/regex-quote.h: New file.
14139         * lib/regex-quote.c: New file.
14140         * modules/regex-quote: New file.
14141         Suggested by Reuben Thomas <rrt@sc3d.org>.
14142
14143 2010-09-24  Bruno Haible  <bruno@clisp.org>
14144
14145         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14146         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14147
14148 2010-09-23  Bruno Haible  <bruno@clisp.org>
14149
14150         setenv: Relax license.
14151         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14152         Blake.
14153         Requested by Eric Blake.
14154
14155 2010-09-22  Bruno Haible  <bruno@clisp.org>
14156
14157         termios: Relax license.
14158         * modules/termios (License): Change to LGPLv2+.
14159         Requested by Eric Blake.
14160
14161 2010-09-22  Bruno Haible  <bruno@clisp.org>
14162
14163         threadlib: Allow the package to change the default to 'no'.
14164         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14165         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14166         Reported by Paul Eggert.
14167
14168 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14169             Bruno Haible  <bruno@clisp.org>
14170
14171         Fix endless loop in mbmemcasecoll.
14172         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14173         byte.
14174         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14175
14176 2010-09-22  Bruno Haible  <bruno@clisp.org>
14177
14178         Tests for module 'memcoll'.
14179         * modules/memcoll-tests: New file.
14180         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14181
14182         memcoll, xmemcoll: Clarify size vs. length.
14183         * modules/memcoll.c (memcoll0): Clarify specification.
14184         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14185         passed to collate_error.
14186
14187 2010-09-22  Bruno Haible  <bruno@clisp.org>
14188
14189         Tests for module 'memcasecmp'.
14190         * modules/memcasecmp-tests: New file.
14191         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14192
14193 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14194
14195         * lib/pthread.in.h: Add split double-inclusion guard, and include
14196         system <pthread.h> if there is one.  Use @@-style as in other
14197         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14198         pthread.h doesn't.
14199         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14200         (pthread_mutexattr_settype, pthread_mutex_trylock):
14201         New static inline functions, if there's no system <pthread.h>.
14202         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14203         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14204         Approximate with mutexes if the system lacks spinlocks, as in
14205         MacOS.
14206         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14207         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14208         @@-style.  Check for spinlocks separately.
14209         (gl_PTHREAD_DEFAULTS): New macro.
14210         * modules/pthread: Redo to use a more typical style for in.h files.
14211
14212 2010-09-21  Eric Blake  <eblake@redhat.com>
14213
14214         net_if: enhance tests
14215         * tests/test-net_if.c (main): Move signature checks earlier.
14216         Print failures to stderr.
14217         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14218         Document the bug that we do not yet fix.
14219
14220 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14221
14222         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14223         about gnulib, not GSS.
14224
14225 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14226
14227         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14228         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14229         for Emacs.
14230         * build-aux/pmccabe2html: Make Makefile.am example code more
14231         cut-and-paste friendly.
14232
14233 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14234
14235         * tests/test-net_if.c: New file.
14236         * modules/net_if-tests: New file.
14237
14238 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14239
14240         pthread: add pthread_spin_destroy
14241         * lib/pthread.in.h (pthread_spin_destroy): New function.
14242
14243 2010-09-19  Bruno Haible  <bruno@clisp.org>
14244
14245         gnulib-tool: Fix --help output.
14246         * gnulib-tool (func_usage): Fix help message.
14247         Reported by Reuben Thomas <rrt@sc3d.org>.
14248
14249 2010-09-18  Jim Meyering  <meyering@redhat.com>
14250
14251         maint.mk: avoid unexpanded \n in two diagnostics
14252         * top/maint.mk (sc_prohibit_always_true_header_tests):
14253         Don't use a literal \n in a halt=... assignment.  It would not be
14254         expanded, and the two \n bytes would appear in the diagnostic output
14255         rather than the desired newline.  Use halt=$$(printf ... instead.
14256         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14257
14258 2010-09-18  Bruno Haible  <bruno@clisp.org>
14259
14260         netinet_in: Doc tweak.
14261         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14262         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14263
14264 2010-09-18  Jim Meyering  <meyering@redhat.com>
14265
14266         init.sh: correct an outdated comment
14267         * tests/init.sh (create_exe_shims_):  s/function/alias/
14268
14269         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14270         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14271         a file named "*.exe" is removed between the glob expansion and the
14272         processing of that oddly named file.
14273
14274 2010-09-17  Eric Blake  <eblake@redhat.com>
14275
14276         mirbsd: add some more support
14277         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14278         in BSD family.
14279         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14280         devices as OpenBSD.
14281         * m4/host-os.m4 (mirbsd): Add MirBSD.
14282
14283         tests: fix unportable assumption on sys/wait.h
14284         * tests/test-sys_wait.c (main): Relax test.
14285         * tests/test-stdlib.c (main): Likewise.
14286
14287         init.sh: accomodate directory with no .exes
14288         * tests/init.sh: Accomodate directory containing only scripts.
14289
14290         tests: avoid compiler warning
14291         * tests/test-stdlib.c (main): Use the variable.
14292
14293         fdutimens, fdutimensat: update signature, again
14294         * lib/utimens.h (gl_futimens): Delete, and move signature...
14295         (fdutimens): ...here.
14296         (fdutimensat): Rearrange signature.
14297         (lutimensat): Rename variable for clarity.
14298         * lib/fdutimensat.c (fdutimensat): Update signature.
14299         * lib/utimens.c (fdutimens): Likewise.
14300         (gl_futimens): Delete.
14301         (utimens, lutimens): Update callers.
14302         * lib/futimens.c (futimens): Likewise.
14303         * tests/test-fdutimensat.c: Likewise.
14304         * tests/test-utimens.c: Likewise.
14305         * tests/test-futimens.h: Update comment.
14306         * NEWS: Mention this.
14307         Suggested by Paul Eggert.
14308
14309 2010-09-17  Bruno Haible  <bruno@clisp.org>
14310
14311         Take over the maintenance of some older macros from Autoconf.
14312         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14313         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14314         GNU Autoconf.
14315         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14316         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14317
14318 2010-09-17  Eric Blake  <eblake@redhat.com>
14319
14320         fdutimensat: drop atflag validation
14321         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14322         with valid fd, to close a race scenario where futimens is
14323         unsupported and FILE was replaced by a symlink.
14324         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14325         accordingly.
14326         Suggested by Paul Eggert.
14327
14328 2010-09-16  Bruno Haible  <bruno@clisp.org>
14329
14330         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14331         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14332
14333 2010-09-16  Bruno Haible  <bruno@clisp.org>
14334
14335         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14336         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14337         login_tty exists.
14338         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14339
14340 2010-09-16  Bruno Haible  <bruno@clisp.org>
14341
14342         login_tty: Make the replacement code work on BSD systems.
14343         * lib/login_tty.c: Include <sys/ioctl.h>.
14344         (login_tty): Use ioctl TIOCSCTTY when available.
14345         * modules/login_tty (Depends-on): Add sys_ioctl.
14346         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14347
14348 2010-09-16  Bruno Haible  <bruno@clisp.org>
14349
14350         login_tty: Stricter unit test.
14351         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14352         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14353         and tcgetsid() after login_tty.
14354         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14355
14356 2010-09-16  Bruno Haible  <bruno@clisp.org>
14357
14358         New module 'tcgetsid'.
14359         * lib/tcgetsid.c: New file.
14360         * m4/tcgetsid.m4: New file.
14361         * modules/tcgetsid: New file.
14362         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14363         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14364         GNULIB_TCGETSID, HAVE_TCGETSID.
14365         * lib/termios.in.h: Include <sys/types.h>.
14366         (tcgetsid): New declaration.
14367         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14368         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14369         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14370         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14371
14372 2010-09-16  Bruno Haible  <bruno@clisp.org>
14373
14374         Tests for module 'termios'.
14375         * modules/termios-c++-tests: New file.
14376         * modules/termios-tests: New file.
14377         * tests/test-termios-c++.cc: New file.
14378         * tests/test-termios.c: New file.
14379
14380         New module 'termios'.
14381         * modules/termios: New file.
14382         * lib/termios.in.h: New file.
14383         * m4/termios_h.m4: New file.
14384         * doc/posix-headers/termios.texi: Mention the new module.
14385
14386 2010-09-16  Eric Blake  <eblake@redhat.com>
14387
14388         fdutimensat: add an atflag parameter
14389         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14390         * lib/utimens.h (fdutimensat): Update prototype.
14391         * tests/test-fdutimensat.c: Adjust test to match.
14392         * NEWS: Document the change.
14393         Suggested by Paul Eggert.
14394
14395 2010-09-16  Bruno Haible  <bruno@clisp.org>
14396
14397         Fix typos in comments.
14398         * lib/striconveh.h: Fix typo in comment.
14399         * lib/login_tty.c (login_tty): Likewise.
14400
14401 2010-09-15  Bruno Haible  <bruno@clisp.org>
14402
14403         stdlib: clarify MirBSD WEXITSTATUS bug
14404         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14405         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14406
14407 2010-09-15  Eric Blake  <eblake@redhat.com>
14408
14409         stdlib: work around MirBSD WEXITSTATUS bug
14410         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14411         * modules/stdlib (Depends-on): Add sys_wait.
14412         * tests/test-sys_wait.c (main): Enhance test.
14413         * tests/test-stdlib.c (main): Likewise.
14414         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14415
14416         docs: mention MacOS issue with WEXITSTATUS(constant)
14417         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14418         issue.
14419         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14420
14421         strnlen: add tests
14422         * modules/strnlen-tests: New file.
14423         * tests/test-strnlen.c: Likewise.
14424
14425 2010-09-14  Bruno Haible  <bruno@clisp.org>
14426
14427         unistr/base: Avoid link errors when module 'libunistring' is also used.
14428         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14429         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14430         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14431         Declare also when HAVE_LIBUNISTRING is set.
14432         Reported by Pádraig Brady <P@draigbrady.com>.
14433
14434 2010-09-14  Eric Blake  <eblake@redhat.com>
14435
14436         test-rawmemchr: make more robust
14437         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14438         (Depends-on, configure.ac): Add needed prerequisites to use it.
14439         * modules/memchr-tests (Files, Depends-on, configure.ac):
14440         Likewise, to avoid implicit reliance on memchr module prereqs.
14441         * tests/test-memchr.c (main): Ensure proper masking.
14442         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14443         reads.
14444
14445         memchr: detect glibc Alpha bug
14446         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14447         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14448         Alpha.
14449         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14450         * tests/test-memchr.c (main): Enhance test.
14451         Reported by Nelson H. F. Beebe.
14452
14453 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14454
14455         fts, getcwd, glob: audit for dirfd returning -1
14456         * lib/fts.c (opendir): Remove #define; no longer used.
14457         (opendirat): New arg PDIR_FD.  All callers changed.
14458         (fts_build, _opendir2): Use new opendirat to avoid the need for
14459         dirfd, or for checking whether dirfd returns a negative value.
14460         Don't use opendir; always use openat followed by fdopendir.
14461         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14462         it.
14463         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14464         returns -1 here.
14465         * modules/fts (Depends-on): Remove dirfd.
14466         * modules/getcwd (Depends-on): Likewise.
14467
14468 2010-09-13  Eric Blake  <eblake@redhat.com>
14469
14470         float: fix broken MirBSD header
14471         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14472         * doc/posix-headers/float.texi (float.h): Document it.
14473
14474 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14475
14476         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14477         * lib/fts.c (opendirat): New arg extra_flags.
14478         (__opendir2): Use it to avoid following symlinks when opening
14479         a directory, if symlinks are not supposed to be followed.  See
14480         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14481
14482         fdopendir: preserve argument fd before returning
14483         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14484         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14485         (fdopendir): Use them, arranging for FD to be open to the same
14486         directory that it was when it started.  (It might be temporarily
14487         closed while fdopendir is running, so this not thread- or
14488         signal-safe.)  Be careful to do the right thing even when file
14489         descriptors are scarce and dup fails with errno == EMFILE.  See
14490         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14491
14492 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14493
14494         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14495         * NEWS: Document change.
14496         * m4/regex.m4: Disable test for regoff_t size.
14497
14498 2010-09-13  Jim Meyering  <meyering@redhat.com>
14499
14500         fts: don't operate on an invalid file descriptor after failed dup
14501         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14502         negative file descriptor.
14503
14504 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14505
14506         savedir: add streamsavedir, deprecate fdsavedir
14507         * NEWS: Mention deprecation of fdsavedir.
14508         * lib/savedir.c (streamsavedir): New extern function, whose name
14509         ends in "savedir" to be consistent with the others.  This differs
14510         from savedirstream in that it doesn't close its argument.  The
14511         next version of GNU tar will use this instead of fdsavedir, to
14512         avoid some race conditions and conserve file descriptors.
14513         (savedirstream): Reimplement as a wrapper around streamsavedir.
14514         (fdsavedir): Add a comment deprecating this function.  As far as
14515         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14516         * lib/savedir.h (streamsavedir): New decl.
14517         (fdsavedir): Add a comment deprecating this.
14518
14519 2010-09-10  Bruno Haible  <bruno@clisp.org>
14520
14521         langinfo: Fix last commit.
14522         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14523         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14525
14526 2010-09-10  Bruno Haible  <bruno@clisp.org>
14527
14528         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14529         * lib/progreloc.c (O_EXEC): Define fallback.
14530
14531 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14532
14533         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14534         * NEWS: Document recent changes to fcntl-h.
14535         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14536         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14537         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14538         Similarly for O_SEARCH; this last was already true, but not documented.
14539         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14540         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14541         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14542         Likewise.
14543         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14544         is zero, not whether it is defined.
14545         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14546         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14547         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14548
14549 2010-09-10  Bruno Haible  <bruno@clisp.org>
14550
14551         langinfo, nl_langinfo: Fix for IRIX 5.3.
14552         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14553         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14554         HAVE_LANGINFO_YESEXPR.
14555         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14556         HAVE_LANGINFO_YESEXPR.
14557         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14558         HAVE_LANGINFO_T_FMT_AMPM is 0.
14559         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14560         HAVE_LANGINFO_YESEXPR is 0.
14561         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14562         NOEXPR.
14563         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14564         * doc/posix-functions/nl_langinfo.texi: Likewise.
14565         Reported by Eric Blake.
14566
14567 2010-09-10  Bruno Haible  <bruno@clisp.org>
14568
14569         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14570         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14571         on FreeBSD 8.0 and OpenBSD 4.6.
14572         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14573         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14574         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14575         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14576         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14577         ac_includes_default.
14578         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14579
14580 2010-09-09  Eric Blake  <eblake@redhat.com>
14581
14582         strsignal: work around NetBSD bug
14583         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14584         * lib/string.in.h (includes): Likewise.
14585         * doc/posix-functions/strsignal.texi (strsignal): Document the
14586         bug.
14587         Reported by Nelson H. F. Beebe.
14588
14589         gnulib-tool: work with NetBSD /bin/sh
14590         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14591         (func_get_description, func_get_comment, func_get_status)
14592         (func_get_notice, func_get_applicability, func_get_filelist)
14593         (func_get_dependencies, func_get_autoconf_early_snippet)
14594         (func_get_autoconf_snippet, func_get_automake_snippet)
14595         (func_get_include_directive, func_get_link_directive)
14596         (func_get_license, func_get_maintainer, func_import): Avoid
14597         shell syntax errors from parsing syntax extensions.
14598
14599 2010-09-09  Bruno Haible  <bruno@clisp.org>
14600
14601         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14602         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14603         a reliable way to determine whether the 'alias' command works.
14604
14605 2010-09-08  Jim Meyering  <meyering@redhat.com>
14606
14607         init.sh: penalize a set-x-impaired shell; don't disqualify it
14608         * tests/init.sh: Too many shells corrupt application stderr when
14609         you set -x, so we can't afford to disqualify them, since at least
14610         on Irix-6.5, that would disqualify all bourne shells.
14611         Instead, use a two-pass approach.
14612         On the first pass, try to find a shell that meets the stricter
14613         condition that set -x does not corrupt stderr.
14614         If no shell meets the stricter condition, retest each candidate
14615         shell, but without that extra condition.  Finally, when
14616         VERBOSE=yes is requested and set -x might cause trouble, simply
14617         issue a warning and refrain from enabling debug output.
14618
14619 2010-09-08  Eric Blake  <eblake@redhat.com>
14620
14621         unsetenv: fix OpenBSD bug
14622         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14623         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14624         documentation.
14625         Reported by Jim Meyering.
14626
14627         strtod: work around IRIX 6.5 bug
14628         * lib/strtod.c (strtod): Reparse number on shorter string if
14629         exponent parse was invalid.
14630         * tests/test-strtod.c (main): Add check for "0x1p 2".
14631         Reported by Tom G. Christensen.
14632
14633         getopt: optimize previous patch
14634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14635         empty variable.  Speed up awk script.
14636         Reported by Paolo Bonzini.
14637
14638 2010-09-08  Jim Meyering  <meyering@redhat.com>
14639
14640         test.sh: disqualify shells for which set -x corrupts stderr
14641         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14642         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14643         appear in stderr output.  For example, this command:
14644             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14645         prints "P=1" on those two systems:
14646
14647 2010-09-08  Bruno Haible  <bruno@clisp.org>
14648
14649         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14650         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14651         commands, because some shells ignore redirections when there is an
14652         error in the command lookup.
14653         Reported by Eric Blake.
14654
14655 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14656
14657         * lib/regex.h: Fix a mention of `regex_compile' (should be
14658         `re_compile_pattern').
14659         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14660         (re_set_registers): Correct name of parameter in comment.
14661
14662         * doc/regex.texi: Add documentation for missing syntax flags.
14663         Remove commented-out documentation of defunct syntax option
14664         RE_NO_EMPTY_ALTS.
14665         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14666         Add documentation of re_set_registers.
14667         Document trick to re-use a pattern buffer by setting fastmap manually.
14668         Update documentation of struct re_pattern_buffer per public members.
14669         Uncomment documentation of equivalence class operators and
14670         collating symbol operators, since they are now implemented,
14671         Explain leftmost-longest matching in relation to alternatives.
14672         Tidy documentation of substring matching.
14673         Remove POSIX documentation, which is done better in
14674         glibc, and refer the reader there. Keep BSD API documentation, as
14675         that is not readily available elsewhere.
14676
14677 2010-09-07  Eric Blake  <eblake@redhat.com>
14678
14679         getopt: handle POSIXLY_CORRECT set but not exported
14680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14681         export state of POSIXLY_CORRECT, due to bash set -o posix.
14682         Reported by Dustin J. Mitchell.
14683
14684 2010-09-05  Bruno Haible  <bruno@clisp.org>
14685
14686         gnulib-tool: Highlight the changed options.
14687         * gnulib-tool (func_usage): Display the --import, --add-import,
14688         --remove-import explanations in bold font.
14689
14690 2010-09-06  Karl Berry  <karl@gnu.org>
14691
14692         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14693
14694 2010-09-05  Bruno Haible  <bruno@clisp.org>
14695
14696         uniwidth/width: Update comment.
14697         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14698         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14699
14700 2010-09-05  Bruno Haible  <bruno@clisp.org>
14701
14702         isinf, isnan: Relax license.
14703         * modules/isinf (License): Change from GPL to LGPL, with consent from
14704         Ben Pfaff.
14705         * modules/isnan (License): Likewise.
14706         Requested by Ludovic Courtès.
14707
14708 2010-09-04  Bruno Haible  <bruno@clisp.org>
14709
14710         gnulib-tool: Help migration from --import to --add-import or --update.
14711         * gnulib-tool: Emit a verbose error message when --import is used
14712         without any module name.
14713
14714 2010-09-04  Bruno Haible  <bruno@clisp.org>
14715
14716         Update doc about gnulib-tool.
14717         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14718         'gnulib-tool --update' in more detail.
14719         Reported by Eric Blake.
14720
14721 2010-09-04  Bruno Haible  <bruno@clisp.org>
14722
14723         gnulib-tool: Change --import. New options --add/remove-import.
14724         * gnulib-tool: New options --add-import, --remove-import.
14725         (func_usage): Document them.
14726         (have_associative): Define always.
14727         (func_import): In import mode, don't merge the specified settings with
14728         the cached settings. Implement remove-import mode.
14729         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14730         Explain when to use them versus --import.
14731         (Simple update): Use --add-import instead of --import.
14732         * NEWS: Mention the change.
14733
14734 2010-09-04  Bruno Haible  <bruno@clisp.org>
14735
14736         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14737         separate gnulib.mk.
14738
14739 2010-09-04  Bruno Haible  <bruno@clisp.org>
14740
14741         gnulib-tool: Don't talk about CVS any more.
14742         * gnulib-tool (func_usage, func_import): Write "version control"
14743         instead of CVS.
14744
14745 2010-09-04  Jim Meyering  <meyering@redhat.com>
14746
14747         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14748         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14749         false positives (whose names may be ill-chosen) when searching
14750         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14751         would cause a false-positive.
14752
14753         avoid coreutils "make distcheck" failure
14754         Coreutils tests with an absolute build directory name that contains
14755         a space.  Not quoting this directory name caused a failure.
14756         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14757         * tests/test-vc-list-files-cvs.sh: Likewise.
14758
14759 2010-09-04  Bruno Haible  <bruno@clisp.org>
14760
14761         gnulib-tool: Avoid error when run in a package without Makefile.am.
14762         * gnulib-tool: When collecting the m4dirs in a package that does not
14763         have a Makefile.am, eliminate those directories that contain no
14764         gnulib-cache.m4. Fix expression that counts these directories.
14765
14766 2010-09-04  Bruno Haible  <bruno@clisp.org>
14767
14768         update-copyright test: Improve output when perl is missing or too old.
14769         * tests/test-update-copyright.sh: Move test of Perl version down after
14770         the test whether Perl exists. Provide an explanation relating Perl's
14771         error message to Automake's SKIP: message.
14772
14773 2010-09-04  Bruno Haible  <bruno@clisp.org>
14774
14775         Don't augment PATH in TESTS_ENVIRONMENT.
14776         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14777         set abs_aux_dir instead of augmenting PATH.
14778         * modules/vc-list-files-tests (Makefile.am): Likewise.
14779         * tests/test-update-copyright.sh: Augment PATH here.
14780         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14781         path_prepend_.
14782         * tests/test-vc-list-files-git.sh: Likewise.
14783
14784 2010-09-04  Jim Meyering  <meyering@redhat.com>
14785
14786         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14787         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14788
14789 2010-09-04  Bruno Haible  <bruno@clisp.org>
14790
14791         strdup: Fix compilation error in C++ mode.
14792         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14793         the macro.
14794
14795 2010-09-04  Bruno Haible  <bruno@clisp.org>
14796
14797         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14798         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14799         macro into a function.
14800         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14801
14802 2010-09-04  Bruno Haible  <bruno@clisp.org>
14803
14804         Set PATH_SEPARATOR the same way autoconf does.
14805         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14806         the value of PATH_SEPARATOR the same way autoconf-generated configure
14807         scripts do.
14808         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14809         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14810
14811 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14812
14813         Set PATH_SEPARATOR the same way autoconf does.
14814         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14815         the same way autoconf-generated configure scripts do.
14816         * posix-modules: Likewise.
14817
14818 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14819
14820         hash: fix safe_hasher const typo
14821         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14822         const; otherwise, there is a type error later.
14823
14824 2010-09-02  Jim Meyering  <meyering@redhat.com>
14825
14826         test-update-copyright.sh: require perl 5.8.0
14827         * tests/test-update-copyright.sh: Require 5.8.0,
14828         which Tom G. Christensen has confirmed is adequate,
14829         while 5.6.1 is not.
14830
14831 2010-09-02  Eric Blake  <eblake@redhat.com>
14832
14833         tests: init.sh improvements for re-exec'ing with zsh
14834         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14835         -vx through shell re-exec.
14836         Reported by Tom G. Christensen.
14837
14838         wctype: fix typo in previous commit
14839         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14840         Reported by Ludovic Courtès.
14841
14842 2010-09-02  Jim Meyering  <meyering@redhat.com>
14843
14844         test-update-copyright.sh: skip test if Perl is too old
14845         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14846         Reported by Tom G. Christensen.
14847
14848 2010-09-02  Bruno Haible  <bruno@clisp.org>
14849
14850         wctype: Avoid compilation error on IRIX 6.5.30.
14851         * lib/wctype.in.h (iswblank): Declare with a replacement if
14852         REPLACE_ISWBLANK is set.
14853         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14854         declared. Set REPLACE_ISWBLANK.
14855         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14856         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14857         * doc/posix-headers/wctype.texi: Likewise.
14858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14859
14860 2010-09-01  Bruno Haible  <bruno@clisp.org>
14861
14862         New module 'socketlib'.
14863         * modules/socketlib: New file.
14864         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14865         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14866         * modules/sockets (Depends-on): Add socketlib.
14867         Suggested by Sam Steingold <sds@gnu.org>.
14868
14869 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14870
14871         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14872
14873         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14874         when one needs search access to a directory but not read access.
14875         On systems where it is available, it works in some cases where
14876         O_RDONLY does not, namely on directories that are searchable but
14877         not readable, and which need only to be searchable.  If O_SEARCH
14878         is not available, fall back to the traditional method of using
14879         O_RDONLY.
14880
14881         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14882         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14883         when opening a directory that needs only to be searchable.
14884         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14885         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14886         * lib/openat-proc.c (openat_proc_name): Likewise.
14887         * lib/openat.c (openat_needs_fchdir): Likewise.
14888         * lib/save-cwd.c (save_cwd): Likewise.
14889         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14890
14891 2010-08-28  Bruno Haible  <bruno@clisp.org>
14892
14893         New module 'host-cpu-c-abi'.
14894         * modules/host-cpu-c-abi: New file.
14895         * m4/host-cpu-c-abi.m4: New file, based on part of
14896         clisp/src/m4/general.m4.
14897         Requested by Sam Steingold <sds@gnu.org>.
14898
14899 2010-08-31  Eric Blake  <eblake@redhat.com>
14900         and Jim Meyering  <meyering@redhat.com>
14901
14902         hash: factor, and guard against misbehaving hasher function
14903         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14904         of table->hasher's return value.  Also protect against a hash value
14905         so large that adding it to table->bucket results in a NULL pointer.
14906         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14907         Use it in place of open-coded check-and-abort.
14908
14909 2010-08-30  Bruno Haible  <bruno@clisp.org>
14910
14911         hash: silence spurious clang warning
14912         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14913         Reported by Eric Blake.
14914
14915 2010-08-30  Eric Blake  <eblake@redhat.com>
14916
14917         strstr, memmem, strcasestr: avoid leaked shell message
14918         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14919         FreeBSD.
14920         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14921         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14922
14923         tests: silence clang warning
14924         * tests/test-malloca.c (do_allocation): Avoid dead store.
14925
14926 2010-08-29  Bruno Haible  <bruno@clisp.org>
14927
14928         gettext: Fix recent mistake.
14929         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14930
14931 2010-08-29  Bruno Haible  <bruno@clisp.org>
14932
14933         selinux-h: Offer a --without-selinux option.
14934         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14935         --without-selinux was specified, skip all tests and define
14936         HAVE_SELINUX_SELINUX_H to 0.
14937         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14938         set LIB_SELINUX to empty.
14939         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14940         gl_LIBSELINUX. If --without-selinux was specified, replace
14941         selinux/context.h.
14942         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14943
14944 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14945             Bruno Haible  <bruno@clisp.org>
14946
14947         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14948         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14949         of HAVE_REALLOC.
14950         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14951         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14952         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14953         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14954
14955 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14956             Bruno Haible  <bruno@clisp.org>
14957
14958         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14959         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14960         HAVE_CALLOC.
14961         * lib/xmalloc.c: Update accordingly.
14962         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14963         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14964         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14965
14966 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14967             Bruno Haible  <bruno@clisp.org>
14968
14969         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14970         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14971         HAVE_MALLOC.
14972         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14973         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14974         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14975
14976 2010-08-29  Bruno Haible  <bruno@clisp.org>
14977
14978         Update modules list.
14979         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14980         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14981         (String handling <string.h>): Add astrxfrm.
14982         (File system functions): Add readlinkat.
14983
14984 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14985
14986         Tests for module 'realloc-gnu'.
14987         * modules/realloc-gnu-tests: New file.
14988         * tests/test-realloc-gnu.c: New file.
14989
14990         Tests for module 'calloc-gnu'.
14991         * modules/calloc-gnu-tests: New file.
14992         * tests/test-calloc-gnu.c: New file.
14993
14994         Tests for module 'malloc-gnu'.
14995         * modules/malloc-gnu-tests: New file.
14996         * tests/test-malloc-gnu.c: New file.
14997
14998 2010-08-28  Bruno Haible  <bruno@clisp.org>
14999
15000         Rename module 'realloc' -> 'realloc-gnu'.
15001         * modules/realloc-gnu: New file, copied from modules/realloc.
15002         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15003         obsolete.
15004         * modules/mgetgroups (Depends-on): Update.
15005         * doc/posix-functions/realloc.texi: Update.
15006         * NEWS: Mention the change.
15007
15008         Rename module 'calloc' -> 'calloc-gnu'.
15009         * modules/calloc-gnu: New file, copied from modules/calloc.
15010         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15011         obsolete.
15012         * doc/posix-functions/calloc.texi: Update.
15013         * NEWS: Mention the change.
15014
15015         Rename module 'malloc' -> 'malloc-gnu'.
15016         * modules/malloc-gnu: New file, copied from modules/malloc.
15017         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15018         obsolete.
15019         * modules/argp (Depends-on): Update.
15020         * modules/regex (Depends-on): Update.
15021         * doc/posix-functions/malloc.texi: Update.
15022         * NEWS: Mention the change.
15023
15024 2010-08-28  Eric Blake  <eblake@redhat.com>
15025
15026         pread, pwrite: add missing dependency
15027         * modules/pread (Depends-on): Add extensions.
15028         * modules/pwrite (Depends-on): Likewise.
15029
15030 2010-08-28  Bruno Haible  <bruno@clisp.org>
15031
15032         unistr/u*-strchr: Fix tests dependencies.
15033         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15034         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15035         Reported by Ian Beckwith <ianb@erislabs.net>.
15036
15037 2010-08-28  Bruno Haible  <bruno@clisp.org>
15038
15039         read-file: Don't occupy too much unused memory.
15040         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15041
15042 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15043             Eric Blake  <eblake@redhat.com>
15044             Bruno Haible  <bruno@clisp.org>
15045
15046         read-file: Avoid memory reallocations with regular files.
15047         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15048         (fread_file): With regular files, use the remaining length as the
15049         initial buffer size.  Check against overflow.
15050         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15051         sys_stat.
15052
15053 2010-08-28  Bruno Haible  <bruno@clisp.org>
15054
15055         ftello: Relax license.
15056         * modules/ftello (License): Relax to LGPLv2+.
15057         Reported by Eric Blake.
15058
15059 2010-08-28  Bruno Haible  <bruno@clisp.org>
15060
15061         Avoid relocwrapper link errors due to gnulib replacement functions.
15062         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15063         function.
15064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15065
15066 2010-08-28  Bruno Haible  <bruno@clisp.org>
15067
15068         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15069         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15070         defined.
15071         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15072         Suggested by Eric Blake.
15073
15074 2010-08-28  Bruno Haible  <bruno@clisp.org>
15075
15076         sys_socket, netdb: Ensure socklen_t gets defined.
15077         * modules/sys_socket (Depends-on): Add socklen.
15078         * modules/netdb (Depends-on): Likewise.
15079         * modules/getaddrinfo (Depends-on): Remove socklen.
15080         * modules/getsockopt (Depends-on): Likewise.
15081         * modules/setsockopt (Depends-on): Likewise.
15082         * tests/test-sys_socket.c: Check that socklen_t is defined.
15083         * tests/test-netdb.c: Likewise.
15084         * m4/socklen.m4: Update comments.
15085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15086
15087 2010-08-27  Eric Blake  <eblake@redhat.com>
15088
15089         login_tty: add missing dependency
15090         * modules/login_tty (Depends-on): Add pty.
15091
15092 2010-08-26  Eric Blake  <eblake@redhat.com>
15093
15094         lib-symbol-versions: fix m4 quoting
15095         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15096         format for AC_LINK_IFELSE.
15097
15098         glob: fix compile test
15099         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15100
15101         btowc: fix missing file
15102         * modules/btowc (Files): Also ship locale-fr.m4.
15103
15104         lseek: fix link test
15105         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15106         AC_LINK_IFELSE.
15107
15108         include_next: silence autoconf 2.68 warning
15109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15110         AC_COMPILE_IFELSE as special.
15111         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15112         autoconf < 2.68.
15113
15114         acl: fix compilation test
15115         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15116         AC_COMPILE_IFELSE.
15117
15118 2010-08-26  Bruno Haible  <bruno@clisp.org>
15119
15120         Modernize AC_TRY_RUN invocations.
15121         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15122         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15123         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15124         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15125         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15126         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15129         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15130         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15131         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15132         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15133         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15134         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15135         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15136         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15137         gl_MBRLEN_NUL_RETVAL): Likewise.
15138         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15139         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15140         Likewise.
15141         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15142         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15143         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15144         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15145         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15146         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15147         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15148         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15149         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15150         Likewise.
15151         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15152         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15153         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15154         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15155         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15156         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15157         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15158         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15159         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15161
15162 2010-08-26  Bruno Haible  <bruno@clisp.org>
15163
15164         Modernize AC_TRY_LINK invocations.
15165         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15166         AC_TRY_LINK.
15167         * m4/argp.m4 (gl_ARGP): Likewise.
15168         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15169         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15170         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15171         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15172         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15173         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15174         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15175         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15176         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15177         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15178         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15179         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15180         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15181         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15182         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15183         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15184         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15185         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15186         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15187         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15188         Likewise.
15189         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15190         Likewise.
15191         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15192         Likewise.
15193         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15194         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15195         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15196         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15197         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15198         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15199         * m4/servent.m4 (gl_SERVENT): Likewise.
15200         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15201         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15202         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15203         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15204         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15205         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15206         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15207         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15208         * modules/tsearch-tests (configure.ac): Likewise.
15209
15210 2010-08-26  Bruno Haible  <bruno@clisp.org>
15211
15212         Modernize AC_TRY_COMPILE invocations.
15213         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15214         AC_TRY_COMPILE.
15215         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15216         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15217         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15218         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15219         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15220         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15221         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15222         * m4/lock.m4 (gl_LOCK): Likewise.
15223         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15224         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15225         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15226         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15227         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15228         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15229         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15231         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15232         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15233         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15234         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15235         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15236         extraneous semicolon.
15237
15238 2010-08-26  Jim Meyering  <meyering@redhat.com>
15239
15240         stat-time: relax license LGPL
15241         * modules/stat-time (License): Change from GPL to LGPL,
15242         with consent from all contributors, for use in libguile.
15243         Requested by Ludovic Courtès.
15244
15245 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15246
15247         poll: return immediately on POLLHUP.
15248         * lib/poll.c (poll): Always set timeout before wait_timeout is
15249         computed.
15250
15251 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15252
15253         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15254         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15255         rmdir ("dir/.//"), unlinkat.
15256
15257 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15258
15259         stdbool: avoid spurious failure with modern xlc
15260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15261
15262 2010-08-24  Bruno Haible  <bruno@clisp.org>
15263
15264         getloadavg: simplify code
15265         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15266         gl_have_func. Update comments.
15267
15268 2010-08-24  Eric Blake  <eblake@redhat.com>
15269
15270         getloadavg: don't define SVR4 on cygwin
15271         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15272         only define SVR4 when -lkvm is required.
15273         Reported by Yaakov Selkowitz.
15274
15275 2010-08-24  Bruno Haible  <bruno@clisp.org>
15276
15277         priv-set: fix comment
15278         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15279
15280 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15281
15282         priv-set: fix comments
15283         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15284         to match code, as suggested by David Bartley in:
15285         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15286
15287 2010-08-23  Eric Blake  <eblake@redhat.com>
15288
15289         stdbool: avoid rejecting clang
15290         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15291         * tests/test-stdbool.c: Enable more tests if using the system
15292         <stdbool.h> instead of the gnulib replacement.
15293         (main): Move xlc bug test to a runtime test for all compilers.
15294         Reported by Anders Kaseorg.
15295
15296         argz: fix shell quoting issue
15297         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15298         Reported by Charles Wilson.
15299
15300 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15301             Erik Faye-Lund <kusmabite@gmail.com>
15302
15303         poll, select: handle ERROR_BROKEN_PIPE.
15304         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15305         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15306         * lib/select.c (win32_compute_revents): Do not mark a pipe
15307         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15308
15309 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15310
15311         fts: allow compilation with C++
15312         * lib/fts_.h: Specify extern "C" linkage with C++.
15313
15314 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15315
15316         Fix gnulib-tool sed script de-commentation for AIX sed.
15317         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15318         sed.
15319
15320 2010-08-17  Eric Blake  <eblake@redhat.com>
15321
15322         test-stddef: test for (some) offsetof bugs
15323         * tests/test-stddef.c: Enhance test to ensure correct type of
15324         offsetof.
15325         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15326         that we are not fixing at this time.
15327
15328 2010-08-15  Bruno Haible  <bruno@clisp.org>
15329
15330         stpncpy: Allow stpncpy to be defined as a macro.
15331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15332         if it's already correctly declared.
15333         * lib/string.in.h (stpncpy): Undefine before redefining.
15334         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15335
15336 2010-08-14  Bruno Haible  <bruno@clisp.org>
15337
15338         Rename module 'memxfrm' to 'amemxfrm'.
15339         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15340         (amemxfrm): Renamed from memxfrm.
15341         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15342         (amemxfrm): Renamed from memxfrm.
15343         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15344         * NEWS: Mention the change.
15345         * MODULES.html.sh (String handling <string.h>): Update.
15346         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15347         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15348         * lib/unicase/u16-casexfrm.c: Likewise.
15349         * lib/unicase/u32-casexfrm.c: Likewise.
15350         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15351         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15352         * lib/uninorm/u16-normxfrm.c: Likewise.
15353         * lib/uninorm/u32-normxfrm.c: Likewise.
15354         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15355         memxfrm.
15356         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15357         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15358         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15359         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15360         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15361         Suggested by Paul Eggert.
15362
15363 2010-08-14  Bruno Haible  <bruno@clisp.org>
15364
15365         Tests for module 'astrxfrm'.
15366         * modules/astrxfrm-tests: New file.
15367         * tests/test-astrxfrm.c: New file.
15368
15369         New module 'astrxfrm'.
15370         * lib/astrxfrm.h: New file.
15371         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15372         * modules/astrxfrm: New file.
15373
15374 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15375
15376         regex: Tweak doc.
15377         * doc/regex.texi (Overview): Don't mention regex.c.
15378         (GNU Regular Expression Compiling): Likewise.
15379         (Match-end-of-line Operator): Mention 'not_eol'.
15380
15381 2010-08-14  Brian Gough  <bjg@gnu.org>
15382             Bruno Haible  <bruno@clisp.org>
15383
15384         git-merge-changelog: add doc relating to use with bzr and hg.
15385         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15386
15387 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15388
15389         pthread: fix pthread.h creation for srcdir != builddir
15390         * modules/pthread (Makefile.am): Fix the rule to work also in a
15391         non-srcdir build.
15392
15393 2010-08-13  Karl Berry  <karl@gnu.org>
15394
15395         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15396         * doc/posix-*/*: force line break before @url of POSIX
15397         specifications.
15398         Suggested by Werner Lemberg.
15399
15400 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15401
15402         strtod: fix const diagnostic
15403         * lib/strtod.c (strtod): Don't assign const char * to char *,
15404         as this elicits a warning from GCC when warnings are enabled.
15405
15406 2010-08-10  Pádraig Brady <P@draigbrady.com>
15407         and Eric Blake  <eblake@redhat.com>
15408
15409         copy-acl: ignore ENOTSUP on HP-UX
15410         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15411         so that it is available for HP-UX.
15412         * lib/copy-acl.c (qcopy_acl): Use it.
15413         Reported by Patrick M. Callahan.
15414
15415 2010-08-10  Eric Blake  <eblake@redhat.com>
15416
15417         open, chown: relax license
15418         * modules/open (License): Change to LGPLv2+, with consent by all
15419         authors, for use in augeas.
15420         * modules/chown (License): Likewise.
15421         * modules/lchown (Likewise): Likewise.
15422         Requested by Adam Stokes.
15423
15424 2010-08-09  Karl Berry  <karl@gnu.org>
15425
15426         * build-aux/ar-lib: new file, import from Automake.
15427         * config/srclist.txt: autocheck for updates.
15428
15429 2010-08-09  Eric Blake  <eblake@redhat.com>
15430
15431         readlinkat: adjust client modules
15432         * modules/areadlinkat (Depends-on): Use readlinkat, not
15433         symlinkat.
15434         * modules/areadlinkat-with-size (Depends-on): Likewise.
15435
15436         mknod: be more vocal about danger of running tests as root
15437         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15438         root, since that is just asking for problems.
15439         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15440
15441         readlinkat: split into its own module
15442         * modules/symlinkat: Split readlinkat...
15443         * modules/readlinkat: ...into separate module.
15444         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15445         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15446         * lib/symlinkat.c (readlinkat): Move...
15447         * lib/readlinkat.c: ...into new file.
15448         * modules/symlinkat-tests: Split readlinkat test...
15449         * modules/readlinkat-tests: ...into separate module.
15450         * tests/test-symlinkat.c: Split...
15451         * tests/test-readlinkat.c: ...into new file.
15452         * NEWS: Document the split.
15453         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15454         * lib/unistd.in.h (readlinkat): Likewise.
15455         Suggested by Bruno Haible.
15456
15457 2010-08-08  Bruno Haible  <bruno@clisp.org>
15458
15459         memxfrm: Speed up.
15460         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15461         that usually only one call to strxfrm is necessary for each string
15462         part.
15463         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15464
15465 2010-08-07  Karl Berry  <karl@gnu.org>
15466
15467         * doc/posix-headers/limits.texi,
15468         * doc/posix-functions/malloc.texi,
15469         * doc/posix-functions/strsignal.texi: missing @item.
15470         * doc/ld-version-script.texi: spurious leading i.
15471         * doc/regex.texi (Interval Operators): no commas inside @var.
15472
15473 2010-08-01  Bruno Haible  <bruno@clisp.org>
15474
15475         Integrate the regex documentation.
15476         * doc/gnulib.texi: Define 'cn' index.
15477         (Regular expressions): New a chapter that includes regex.texi and
15478         regexprops-generic.texi.
15479         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15480         syntax.
15481
15482         Whitespace cleanup.
15483         * doc/regex.texi: Remove trailing spaces.
15484
15485         Add regex documentation.
15486         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15487         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15488         Written by Kathy A. Hargreaves and Karl Berry.
15489
15490 2010-08-01  Bruno Haible  <bruno@clisp.org>
15491
15492         link: Update documentation.
15493         * doc/posix-functions/link.texi: Update regarding Solaris.
15494
15495 2010-07-31  Bruno Haible  <bruno@clisp.org>
15496
15497         Update modules list.
15498         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15499         (String handling <string.h>): Add memcmp2, memxfrm.
15500         (Container data structures): Add xlist, xsublist, xoset.
15501         (Core language properties): Add alignof, unused-parameter.
15502         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15503         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15504         (Unibyte characters <ctype.h>): New section.
15505         (String handling <string.h>): New section.
15506         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15507         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15508         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15509         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15510         tan, tanh, tanl, y0, y1, yn.
15511         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15512         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15513         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15514         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15515         unlockpt, vdprintf, vdprintf-posix.
15516         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15517         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15518         xconcat-filename.
15519         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15520         getdtablesize, pipe2, pipe2-safer.
15521         (Security): New section.
15522         (Networking functions): Add accept4.
15523         (Signal handling): Add sigpipe.
15524         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15525         mbmemcasecoll.
15526         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15527         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15528         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15529         pipe-filter-ii.
15530         (Misc): Add argp-version-etc, login_tty, parse-duration.
15531
15532 2010-07-31  Bruno Haible  <bruno@clisp.org>
15533
15534         Improve doc in MODULES.html.
15535         * modules/linkat (Description): Add the word "function".
15536         * modules/mkfifo (Description): Likewise.
15537         * modules/mknod (Description): Likewise.
15538         * modules/remove (Description): Likewise.
15539         * modules/renameat (Description): Likewise.
15540         * modules/stat (Description): Likewise.
15541         * modules/symlink (Description): Likewise.
15542         * modules/unlink (Description): Likewise.
15543
15544 2010-07-31  Bruno Haible  <bruno@clisp.org>
15545
15546         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15547         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15548         option --enable/disable-c++ instead of --enable/disable-cxx.
15549         * NEWS: Mention the change.
15550
15551 2010-07-31  Bruno Haible  <bruno@clisp.org>
15552
15553         readlink, areadlink: Relax test a bit.
15554         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15555         alternative to ENOTDIR.
15556         * tests/test-areadlink.h (test_areadlink): Likewise.
15557         Reported by Rainer Tammer.
15558
15559 2010-07-31  Bruno Haible  <bruno@clisp.org>
15560
15561         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15562         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15563         character, perform the search using U_STRCHR.
15564         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15565         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15566         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15567         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15568         Suggested by Paolo Bonzini.
15569
15570 2010-07-31  Bruno Haible  <bruno@clisp.org>
15571
15572         unistr/u*-strstr: Fix dependencies.
15573         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15574         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15575         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15576
15577 2010-07-31  Bruno Haible  <bruno@clisp.org>
15578
15579         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15580         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15581         the beginning of the loop.
15582         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15583         cases in 'switch' statement.
15584
15585         unistr/u8-strchr: Fix several bugs.
15586         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15587         the string. When not found, return NULL, not a pointer near the end.
15588
15589         More tests for unistr/u8-strchr.
15590         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15591         that the function does not read past the first occurrence of the byte
15592         being searched.
15593         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15594         * tests/unistr/test-u16-strchr.c (main): New function.
15595         * tests/unistr/test-u32-strchr.c (main): New function.
15596
15597 2010-07-31  Bruno Haible  <bruno@clisp.org>
15598
15599         posix-modules: Ignore backup files of documentation files.
15600         * posix-modules: grep only through files named *.texi.
15601
15602 2010-07-31  Bruno Haible  <bruno@clisp.org>
15603
15604         symlinkat: Fix documentation.
15605         * doc/posix-functions/readlinkat.texi: Fix module name.
15606
15607 2010-07-31  Bruno Haible  <bruno@clisp.org>
15608
15609         fchownat: Replace also when chown has the trailing slash bug.
15610         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15611         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15612         introduced on 2010-04-10.
15613         Reported by Rainer Tammer.
15614
15615 2010-07-31  Bruno Haible  <bruno@clisp.org>
15616
15617         linkat: Work around AIX 7.1 bug.
15618         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15619         whether linkat handles trailing slash correctly. If not, replace linkat
15620         and define LINKAT_TRAILING_SLASH_BUG.
15621         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15622         check whether (fd1,file1) points to a directory if file1 or file2 ends
15623         in a slash. Code taken from lib/link.c.
15624         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15625         Reported by Rainer Tammer.
15626
15627 2010-07-31  Bruno Haible  <bruno@clisp.org>
15628
15629         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15630         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15631         This disables an xlc optimization that was causing wrong test results.
15632         Reported by Rainer Tammer.
15633
15634 2010-07-31  Bruno Haible  <bruno@clisp.org>
15635
15636         iconv: Work around AIX 6.1..7.1 bug.
15637         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15638         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15639         cross-compiling, guess no on all versions of AIX.
15640         Reported by Rainer Tammer.
15641
15642 2010-07-31  Bruno Haible  <bruno@clisp.org>
15643
15644         readlink: Relax test a bit.
15645         * tests/test-readlink.h (test_readlink): Allow different errno value
15646         when readlink is called with a file name that ends in / and refers to
15647         a file.
15648         Suggested by Eric Blake.
15649         Reported by Rainer Tammer.
15650
15651 2010-07-31  Bruno Haible  <bruno@clisp.org>
15652
15653         copysign: Does not require -lm on glibc systems.
15654         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15655         gl_COMMON_DOUBLE_MATHFUNC.
15656         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15657
15658 2010-07-31  Bruno Haible  <bruno@clisp.org>
15659
15660         duplocale: Work around AIX 7.1 bug.
15661         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15662         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15663         * lib/duplocale.c (rpl_duplocale): Update comment.
15664         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15665         Reported by Rainer Tammer.
15666
15667 2010-07-30  Bruno Haible  <bruno@clisp.org>
15668
15669         dirfd: Avoid link error on AIX 7.1.
15670         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15671         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15672         exist, set REPLACE_DIRFD.
15673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15674         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15675         * doc/posix-functions/dirfd.texi: Update.
15676         Reported by Rainer Tammer.
15677
15678 2010-07-30  Eric Blake  <eblake@redhat.com>
15679
15680         strtod: next round of AIX fixes
15681         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15682         exponent.
15683         * tests/test-strtod.c (main): Enhance tests.
15684         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15685         Reported by Rainer Tammer.
15686
15687         futimens: fix configure check
15688         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15689         Reported by Bruno Haible.
15690
15691 2010-07-30  Bruno Haible  <bruno@clisp.org>
15692
15693         getline: Update regarding AIX.
15694         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15695         Reported by Rainer Tammer.
15696
15697 2010-07-30  Bruno Haible  <bruno@clisp.org>
15698
15699         wcwidth: Drop replacement on AIX 7.
15700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15701         AIX 7.
15702         Reported by Rainer Tammer.
15703
15704 2010-07-30  Bruno Haible  <bruno@clisp.org>
15705
15706         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15707         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15708         a 'char *'.
15709         Reported by Rainer Tammer.
15710
15711 2010-07-30  Bruno Haible  <bruno@clisp.org>
15712
15713         unlink: Update regarding AIX.
15714         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15715         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15716         Reported by Rainer Tammer.
15717
15718 2010-07-30  Bruno Haible  <bruno@clisp.org>
15719
15720         symlink: Update regarding AIX.
15721         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15722         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15723         Reported by Rainer Tammer.
15724
15725 2010-07-30  Bruno Haible  <bruno@clisp.org>
15726
15727         strndup: Update regarding AIX.
15728         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15729         AIX 7.
15730         Reported by Rainer Tammer.
15731
15732 2010-07-30  Bruno Haible  <bruno@clisp.org>
15733
15734         stat: Update regarding AIX.
15735         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15736         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15737         Reported by Rainer Tammer.
15738
15739 2010-07-30  Bruno Haible  <bruno@clisp.org>
15740
15741         truncl: Fix autoconf test.
15742         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15743         whether truncl works.
15744         Reported by Rainer Tammer.
15745
15746 2010-07-30  Bruno Haible  <bruno@clisp.org>
15747
15748         round: Update regarding AIX.
15749         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15750         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15751         Reported by Rainer Tammer.
15752
15753 2010-07-30  Bruno Haible  <bruno@clisp.org>
15754
15755         rename: Update regarding AIX.
15756         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15757         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15758         Reported by Rainer Tammer.
15759
15760 2010-07-30  Bruno Haible  <bruno@clisp.org>
15761
15762         printf.m4: Update regarding AIX.
15763         * m4/printf.m4: Update comments regarding AIX.
15764         Reported by Rainer Tammer.
15765
15766 2010-07-30  Bruno Haible  <bruno@clisp.org>
15767
15768         iconv: Update regarding AIX.
15769         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15770         AIX 7.
15771         Reported by Rainer Tammer.
15772
15773 2010-07-30  Bruno Haible  <bruno@clisp.org>
15774
15775         getopt: Update regarding AIX.
15776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15777         no on AIX.
15778         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15779         Reported by Rainer Tammer.
15780
15781 2010-07-30  Bruno Haible  <bruno@clisp.org>
15782
15783         ldexpl; Update regarding AIX.
15784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15785         on AIX 7.
15786         Reported by Rainer Tammer.
15787
15788 2010-07-30  Bruno Haible  <bruno@clisp.org>
15789
15790         frexpl: Update regarding AIX.
15791         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15792         on AIX 7.
15793         Reported by Rainer Tammer.
15794
15795 2010-07-30  Bruno Haible  <bruno@clisp.org>
15796
15797         open, fopen: Update regarding AIX.
15798         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15799         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15800         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15801         * doc/posix-functions/fopen.texi: Likewise.
15802         Reported by Rainer Tammer.
15803
15804 2010-07-30  Bruno Haible  <bruno@clisp.org>
15805
15806         chown: Update doc regarding AIX.
15807         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15808         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15809         Reported by Rainer Tammer.
15810
15811 2010-07-30  Eric Blake  <eblake@redhat.com>
15812
15813         strtod: fix bug in replacement function on AIX
15814         * lib/strtod.c (strtod): Special case broken "0x" parse in
15815         underlying strtod.
15816         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15817         * doc/posix-functions/strtod.texi (strtod): Likewise.
15818         Reported by Rainer Tammer.
15819
15820 2010-07-30  Bruno Haible  <bruno@clisp.org>
15821
15822         mbrlen: Fix cross-compilation guess for AIX.
15823         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15824         guess. Leftover from 2008-12-22.
15825
15826 2010-07-30  Bruno Haible  <bruno@clisp.org>
15827
15828         mbrtowc: Fix cross-compilation guess for AIX.
15829         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15830         guess. Leftover from 2008-12-21.
15831
15832 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15833
15834         init.sh: work around trap limitation of some shells
15835         * tests/init.sh (setup_): Move exit trap outside of shell function.
15836
15837 2010-07-29  Eric Blake  <eblake@redhat.com>
15838
15839         strtod: aid debugging
15840         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15841         understanding why strtod is rejected.
15842
15843 2010-07-28  Bruno Haible  <bruno@clisp.org>
15844
15845         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15846         * lib/unistr/u8-chr.c: Include <string.h>.
15847         * tests/unistr/test-u8-chr.c: Likewise.
15848         * tests/unistr/test-u16-chr.c: Likewise.
15849         * tests/unistr/test-u32-chr.c: Likewise.
15850         * tests/unistr/test-u8-strchr.c: Likewise.
15851         * tests/unistr/test-u16-strchr.c: Likewise.
15852         * tests/unistr/test-u32-strchr.c: Likewise.
15853         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15854         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15855         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15856         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15857
15858 2010-07-28  Bruno Haible  <bruno@clisp.org>
15859
15860         Use spaces for indentation, not tabs.
15861         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15862
15863 2010-07-27  Bruno Haible  <bruno@clisp.org>
15864
15865         mbspcasecmp: Fix function specification.
15866         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15867         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15868         Reported by Eric Blake <eblake@redhat.com>.
15869
15870 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15871
15872         timespec: use cast and not conditional, as truncation isn't possible
15873         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15874         instead of a conditional.  Comment about the situation in more detail.
15875         This undoes most of the 2009-10-29 patch.
15876
15877 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15878
15879         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15880         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15881         * lib/unistr/u8-strchr.c: Likewise.
15882         * modules/unistr/u8-chr: Depend on memchr.
15883
15884         unistr/u*-strchr: add tests
15885         * modules/unistr/u8-strchr-tests: New file.
15886         * modules/unistr/u16-strchr-tests: New file.
15887         * modules/unistr/u32-strchr-tests: New file.
15888         * tests/unistr/test-strchr.h: New file.
15889         * tests/unistr/test-u8-strchr.c: New file.
15890         * tests/unistr/test-u16-strchr.c: New file.
15891         * tests/unistr/test-u32-strchr.c: New file.
15892
15893         unistr/u*-chr: test multibyte sequences more
15894         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15895         test vector.
15896         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15897         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15898         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15899
15900         unistr/u*-chr: test multibyte sequences
15901         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15902
15903         unistr/u*-chr: prepare for multibyte tests
15904         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15905         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15906         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15907         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15908         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15909         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15910
15911 2010-07-18  Bruno Haible  <bruno@clisp.org>
15912
15913         unistr/u8-strchr: Optimize non-ASCII argument case.
15914         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15915         because the first byte often matches anyway.
15916         Reported by Pádraig Brady <P@draigbrady.com>.
15917
15918 2010-07-15  Karl Berry  <karl@gnu.org>
15919
15920         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15921
15922 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15923
15924         getcwd: on Solaris, work better if ancestors are inaccessible
15925         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15926         buffer and size, try again with a large buffer.  This works better
15927         on Solaris, since its getcwd succeeds even if the path to the root
15928         is inaccessible, and this is helpful in common cases such as .zfs
15929         hidden directories.  Problem reported by J Chapman Flack in
15930         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15931         Use system getcwd if it's declared, not merely if it's partly
15932         working; use the partly-working test only to avoid needless effort
15933         if the system getcwd fails.
15934         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15935         comment that was already obsolete and is now even more obsolete.
15936         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15937         now might call strdup.
15938
15939 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15940
15941         pthread: Add enough so that coreutils/src/sort.c compiles.
15942         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15943         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15944         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15945         Include <sys/types.h>, in case it defines pthread_t.
15946         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15947         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15948         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15949         (pthread_rwlockattr_t, pthread_spinlock_t):
15950         New typedefs, if HAVE_PTHREAD_T is not defined.
15951         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15952         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15953         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15954         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15955         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15956         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15957         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15958         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15959         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15960         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15961         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15962         New macros.
15963         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15964         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15965         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15966         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15967         (pthread_spin_unlock): New dummy functions.
15968         (pthread_create): Return EAGAIN; don't set errno.
15969         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15970         require AC_C_INLINE.
15971         * modules/pthread (Depends-on): Add sched, time.
15972         (pthread.h): Use AM_V_GEN.
15973
15974 2010-07-13  Bruno Haible  <bruno@clisp.org>
15975
15976         striconveh: Don't malloc memory if the result buffer is sufficient.
15977         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15978         buffer if its size is sufficient.
15979         Reported by Ludovic Courtès <ludo@gnu.org>.
15980
15981 2010-07-13  Bruno Haible  <bruno@clisp.org>
15982
15983         strtod: Add safety check.
15984         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15985
15986 2010-07-12  Bruno Haible  <bruno@clisp.org>
15987
15988         Unify tests that set gl_cv_func_ldexpl_no_libm.
15989         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15990         gl_FUNC_LDEXPL.
15991         (gl_FUNC_LDEXPL): Invoke it.
15992         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15993
15994 2010-07-12  Bruno Haible  <bruno@clisp.org>
15995
15996         Unify tests that set gl_cv_func_ldexp_no_libm.
15997         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15998         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15999         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16000         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16001         * modules/strtod (Files): Add m4/ldexp.m4.
16002
16003 2010-07-12  Bruno Haible  <bruno@clisp.org>
16004
16005         Unify tests that set gl_cv_func_frexpl_no_libm.
16006         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16007         gl_FUNC_FREXPL_NO_LIBM.
16008         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16009         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16010
16011 2010-07-12  Bruno Haible  <bruno@clisp.org>
16012
16013         Unify tests that set gl_cv_func_frexp_no_libm.
16014         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16015         gl_FUNC_FREXP_NO_LIBM.
16016         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16017         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16018
16019 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16020
16021         memcoll: clarify sizes versus lengths, document better, and tweak perf
16022         * lib/memcoll.c (strcoll_loop, memcoll0):
16023         Improve quality of descriptive comments.  Name variables
16024         consistently as to whether they are lengths (which do not include
16025         terminating null) versus sizes (which do).
16026         * lib/xmemcoll.c (xmemcoll0): Likewise.
16027         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16028         returned when s1size == 0; this is easier to compile and saves
16029         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16030
16031 2010-07-12  Bruno Haible  <bruno@clisp.org>
16032
16033         Tests for module '_Exit'.
16034         * modules/_Exit-tests: New file.
16035         * tests/test-_Exit.sh: New file.
16036         * tests/test-_Exit.c: New file.
16037
16038         New module '_Exit'.
16039         * lib/stdlib.in.h (__attribute__): New macro.
16040         (_Exit): New declaration.
16041         * lib/_Exit.c: New file.
16042         * m4/_Exit.m4: New file.
16043         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16044         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16045         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16046         * modules/_Exit: New file.
16047         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16048         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16049
16050 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16051
16052         strtod: make it more-accurate typically, and don't require libm
16053         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16054         Include limits.h.  Don't include string.h.
16055         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16056         (locale_isspace): New function, so that no casts are needed to
16057         check whether *s is a space.
16058         (ldexp): Provide an unused dummy if not available.
16059         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16060         (strtod): Use them.  This implementation prefers to use the
16061         underlying strtod if available, falling back on our own code
16062         only to fix known bugs.  This is more likely to produce an
16063         accurate result.  Also, it avoids the use of libm functions.
16064         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16065         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16066         was absent, but it caused a test failure with coreutils.
16067         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16068         with libm.
16069         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16070         * modules/strtod-tests (Makefile.am): Likewise.
16071
16072 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16073             Bruno Haible  <bruno@clisp.org>
16074
16075         unistr/u8-strchr: Optimize ASCII argument case.
16076         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16077
16078 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16079
16080         (x)memcoll: minor tweaks
16081         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16082         is after the type that it qualifies.
16083         (memcoll0): Likewise.
16084         * lib/memcoll.h (memcoll0): Likewise.
16085         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16086         * lib/xmemcoll.h (xmemcoll0): Likewise.
16087         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16088         differs from memcoll in that the NUL byte is part of the argument.
16089         Omit the abort-checks, as performance is a real issue here.  Plus,
16090         the checks were wrong anyway (an off-by-one error).  Omit local
16091         variable 'diff', as it's a bit clearer that way.
16092         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16093         no longer needed.
16094
16095 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16096
16097         (x)memcoll: speedup when input is known to be NUL delimited
16098         * lib/memcoll.c: Include stdlib.
16099         (memcoll0): New function.
16100         (strcoll_loop): New function, refactored for use in both memcoll
16101         and memcoll0.
16102         * lib/memcoll.h (memcoll0): Add prototype.
16103         * lib/xmemcoll.c (xmemcoll0): New function.
16104         (collate_error): New function, refactored for use in both xmemcoll
16105         and xmemcoll0.
16106         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16107         * m4/memcoll.m4: add inline invocation.
16108
16109 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16110
16111         * build-aux/bootstrap: Remove any local translations
16112         from the translation project synchronization directory,
16113         so that local only translations are not distributed.
16114
16115 2010-07-04  Bruno Haible  <bruno@clisp.org>
16116
16117         fsusage: Clarify which code applies to which platforms.
16118         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16119         platform.
16120         * lib/fsusage.c (get_fs_usage): Likewise.
16121
16122 2010-07-04  Bruno Haible  <bruno@clisp.org>
16123
16124         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16125         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16126         Reported by Martin Lambers <marlam@marlam.de>.
16127
16128 2010-07-04  Jim Meyering  <meyering@redhat.com>
16129
16130         hash: once again explicitly disallow insertion of NULL
16131         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16132         inserting a NULL pointer cannot work with these functions.
16133         Add a comment with details.
16134         This reverts part of the 2010-07-01 commit, 5bef1a35
16135         "hash: extend module to deal with non-pointer keys".
16136
16137 2010-07-01  Bruno Haible  <bruno@clisp.org>
16138
16139         stdbool: Update doc.
16140         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16141         Info from Christian Weisgerber <naddy@mips.inka.de>.
16142
16143 2010-07-01  Jim Meyering  <meyering@redhat.com>
16144
16145         hash: extend module to deal with non-pointer keys
16146         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16147         but that allows insertion of non-pointer entries.
16148         Do not disallow an ENTRY value of NULL.
16149         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16150         * lib/hash.h (hash_insert0): Declare.
16151
16152 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16153
16154         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16155         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16156         not present (i.e. with autoconf 2.59 and when using gettextize, not
16157         gnulib), require AC_GNU_SOURCE instead.
16158
16159 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16160
16161         idpriv-drop: Fix tests.
16162         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16163         not to the test-idpriv-droptemp program.
16164
16165 2010-06-29  Bruno Haible  <bruno@clisp.org>
16166
16167         string: Fix syntax error with g++ 2.96.
16168         * lib/string.in.h (__pure__): Remove definition.
16169         (_GL_ATTRIBUTE_PURE): New macro.
16170         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16171         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16172         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16173
16174 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16175
16176         unitypes: Fix bug introduced on 2010-05-18.
16177         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16178
16179 2010-06-22  Eric Blake  <eblake@redhat.com>
16180
16181         memmem: slight optimization
16182         * lib/str-two-way.h (critical_factorization): Update comments.
16183         Reduce work during factorization phase.
16184         Reported by Carlos Bueno <carlos@bueno.org>.
16185
16186 2010-06-21  Bruno Haible  <bruno@clisp.org>
16187
16188         Fix HAVE_CALLOC_POSIX misnomer.
16189         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16190         !HAVE_CALLOC_POSIX.
16191         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16192         HAVE_CALLOC_POSIX.
16193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16194         instead of HAVE_CALLOC_POSIX.
16195         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16196         HAVE_CALLOC_POSIX.
16197
16198         Use modern idiom for calloc() replacement.
16199         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16200         AC_FUNC_CALLOC.
16201         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16202         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16203         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16204         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16205         (gl_REPLACE_CALLOC): New macro.
16206
16207 2010-06-21  Bruno Haible  <bruno@clisp.org>
16208
16209         Fix HAVE_REALLOC_POSIX misnomer.
16210         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16211         !HAVE_REALLOC_POSIX.
16212         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16213         HAVE_REALLOC_POSIX.
16214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16215         instead of HAVE_REALLOC_POSIX.
16216         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16217         HAVE_REALLOC_POSIX.
16218
16219         Use modern idiom for realloc() replacement.
16220         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16221         AC_FUNC_REALLOC.
16222         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16223         Autoconf's AC_FUNC_REALLOC.
16224         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16225         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16226         (gl_REPLACE_REALLOC): New macro.
16227         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16228
16229 2010-06-21  Bruno Haible  <bruno@clisp.org>
16230
16231         Fix HAVE_MALLOC_POSIX misnomer.
16232         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16233         !HAVE_MALLOC_POSIX.
16234         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16235         HAVE_MALLOC_POSIX.
16236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16237         instead of HAVE_MALLOC_POSIX.
16238         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16239         HAVE_MALLOC_POSIX.
16240
16241         Use modern idiom for malloc() replacement.
16242         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16243         AC_FUNC_MALLOC.
16244         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16245         Autoconf's AC_FUNC_MALLOC.
16246         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16247         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16248         (gl_REPLACE_MALLOC): New macro.
16249         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16250
16251 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16252
16253         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16254         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16255         This macro takes 3 arguments, not 4.
16256
16257 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16258
16259         ipv6: fix detection under mingw
16260         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16261         in6_addr.
16262
16263 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16264
16265         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16266         that strtod() works when cross-compiling to a glibc version known
16267         to work.
16268
16269 2010-06-15  Bruno Haible  <bruno@clisp.org>
16270
16271         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16272
16273 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16274
16275         select: Correct timeout.
16276         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16277
16278 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16279
16280         git-version-gen: init shell var to avoid env var influence
16281         * build-aux/git-version-gen (v): Init shell var to empty.
16282
16283 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16284
16285         priv-set: Don't assume that priv.h exists merely because getppriv does.
16286         See Jan Andersen's bug report about AIX 5L in
16287         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16288         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16289         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16290         * lib/priv-set.h: Likewise.
16291         * tests/test-priv-set.c: Likewise.
16292
16293 2010-06-13  Bruno Haible  <bruno@clisp.org>
16294
16295         relocatable: Make it easier to test whether to install wrappers.
16296         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16297         RELOCATABLE_VIA_WRAPPER.
16298
16299 2010-06-13  Bruno Haible  <bruno@clisp.org>
16300
16301         gnulib-tool: Display specified modules and dependencies differently.
16302         * gnulib-tool (func_show_module_list): New function.
16303         (func_import, func_create_testdir): Invoke it.
16304         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16305
16306 2010-06-13  Bruno Haible  <bruno@clisp.org>
16307
16308         gnulib-tool: Align code of func_import and func_create_testdir.
16309         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16310         specified_modules.
16311
16312 2010-06-12  Jim Meyering  <meyering@redhat.com>
16313
16314         test-inttostr: avoid spurious failure on Solaris 9
16315         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16316         to accept "%ju".  Reported by Bruno Haible.
16317
16318 2010-06-11  Jim Meyering  <meyering@redhat.com>
16319
16320         test-sys_socket: mark variables as used more readably
16321         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16322         as "used" explicitly via (void) statement casts.  This is more
16323         readable than using them in an artificial return expression.
16324         Suggestion from Bruno Haible.
16325
16326 2010-06-11  Bruno Haible  <bruno@clisp.org>
16327
16328         Avoid some more warnings from "gcc -Wwrite-strings".
16329         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16330         to 'const char *'.
16331         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16332         * tests/test-c-strcasestr.c (main): Likewise.
16333         * tests/test-mbscasestr1.c (main): Likewise.
16334         * tests/test-mbscasestr2.c (main): Likewise.
16335         * tests/test-memmem.c (main): Likewise.
16336         * tests/test-strstr.c (main): Likewise.
16337         * tests/test-strcasestr.c (main): Likewise.
16338
16339 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16340
16341         init.sh: change framework_failure_ to fail with status 99, not 1
16342         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16343         automake's parallel-tests rule that this is an unexpected failure,
16344         even if the test is listed in XFAIL_TESTS.
16345
16346 2010-06-11  Jim Meyering  <meyering@redhat.com>
16347
16348         test-inttostr: avoid warnings about 4-6KB literal strings
16349         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16350         Include "macros.h", for its definition of ASSERT.
16351         (CK): s/assert/ASSERT/
16352         * modules/inttostr-tests (Files): Add macros.h.
16353
16354         init.sh: don't use $ME_ or skip_ before they are defined
16355         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16356         their first uses.  Also hoist their companions: warn_, fail_,
16357         framework_failure_, $stderr_fileno.  Prompted by a patch from
16358         Stefano Lattarini.
16359
16360         test-sys_socket: avoid set-but-not-used warnings from gcc
16361         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16362         avoid warning about set-but-not-used variables.
16363
16364         test-xvasprintf: avoid 'const' discard warnings
16365         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16366         "const" when assigning from literal strings.
16367         (test_xasprintf): Add "void" in function argument list to placate
16368         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16369
16370         tests: avoid compilation warnings in argmatch and exclude tests...
16371         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16372         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16373         Since it always exits, declare with the "noreturn" attribute.
16374         * tests/test-argmatch.c: Likewise.
16375
16376         tests: avoid 'const' discard warnings in mbsstr tests
16377         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16378         * tests/test-mbsstr2.c (main): Likewise.
16379
16380         test-verify: avoid warning from gcc's -Wmissing-declarations
16381         * tests/test-verify.c (function): Declare to be static.
16382
16383         test-inttostr.c: include <string.h> for use of strcmp
16384         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16385
16386         test-linkat: avoid failed assertion on "other" architectures
16387         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16388         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16389         sparc: https://bugs.launchpad.net/bugs/591968
16390
16391 2010-06-11  Jim Meyering  <meyering@redhat.com>
16392
16393         printf.m4: avoid autoconf's "Expanded Before Required" warning
16394         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16395         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16396         autoconf warning.
16397
16398 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16399
16400         Replacement header templates are now named with ".in", not "_".
16401         * doc/gnulib-intro.texi: Correct.
16402
16403 2010-06-10  Jim Meyering  <meyering@redhat.com>
16404
16405         inttostr-tests: depend on snprintf, not snprintf-posix
16406         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16407         snprintf-posix, to avoid this aclocal failure:
16408           missing file gnulib-tests/vasnprintf.c
16409           configure.ac:45: error: expected source file, required through \
16410           AC_LIBSOURCES, not found
16411
16412 2010-06-10  Jim Meyering  <meyering@redhat.com>
16413
16414         inttostr: add a new function, inttostr, and tests
16415         The namesake function was not available.  The existence of the
16416         template file, inttostr.c makes its addition nontrivial.
16417         * lib/anytostr.c: Rename from inttostr.c.
16418         (anytostr): Rename from inttostr.
16419         * lib/inttostr.c: New file.
16420         * modules/inttostr (Files): Add anytostr.c.
16421         (Makefile.am): Set lib_SOURCES instead of ...
16422         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16423         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16424         * lib/offtostr.c: Likewise.
16425         * lib/uinttostr.c: Likewise.
16426         * lib/umaxtostr.c: Likewise.
16427         * modules/inttostr-tests: New file.
16428         * tests/test-inttostr.c: New file.  Test these functions.
16429
16430 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16431             Bruno Haible  <bruno@clisp.org>
16432
16433         Add "Extending Gnulib" chapter to manual.
16434         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16435         chapter.
16436         (Extending Gnulib): New chapter.
16437         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16438         chapter.
16439
16440 2010-06-09  Bruno Haible  <bruno@clisp.org>
16441
16442         Avoid relocwrapper link errors due to gnulib replacement functions.
16443         * lib/areadlink.c: Use the system's malloc, realloc functions.
16444         (areadlink): Set errno to ENOMEM explicitly.
16445         * modules/areadlink (Depends-on): Remove malloc-posix.
16446         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16447
16448 2010-06-09  Bruno Haible  <bruno@clisp.org>
16449
16450         Avoid relocwrapper link errors due to gnulib replacement functions.
16451         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16452         * lib/malloca.c: Likewise.
16453         * lib/relocatable.c: Likewise.
16454         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16455         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16456         * lib/setenv.c: Use the system's malloc, realloc functions.
16457         * lib/strerror.c: Use the system's sprintf function.
16458         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16459
16460 2010-06-04  Bruno Haible  <bruno@clisp.org>
16461
16462         Prefer documented low-level autoconf macro names.
16463         * m4/lib-link.m4: Use m4_translit instead of translit.
16464         * m4/environ.m4: Likewise.
16465         * m4/mathfunc.m4: Likewise.
16466         * m4/onceonly.m4: Likewise.
16467         * m4/stdint.m4: Likewise.
16468         Suggested by Eric Blake.
16469
16470 2010-06-04  Martin Lambers  <marlam@marlam.de>
16471             Bruno Haible  <bruno@clisp.org>
16472
16473         havelib: Allow library names with '+' characters.
16474         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16475         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16476
16477 2010-06-09  Bruno Haible  <bruno@clisp.org>
16478
16479         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16480         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16481         realloc failed.
16482
16483 2010-06-08  Peter Simons  <simons@cryp.to>
16484
16485         maint.mk: make the news-check rule more configurable
16486         * top/maint.mk (news-check-lines-spec): New variable.
16487         (news-check): Use "sed -n 1,10p" in place of "head".
16488
16489 2010-06-07  Jim Meyering  <meyering@redhat.com>
16490
16491         do-release-commit-and-tag: fix typo in --help
16492         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16493
16494         regex: avoid new dead-code warning with gcc-4.6.0
16495         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16496         if-block containing a while-loop.  It's been unused for at least
16497         5 years.
16498
16499 2010-06-05  Bruno Haible  <bruno@clisp.org>
16500
16501         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16502         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16503
16504 2010-06-04  Bruno Haible  <bruno@clisp.org>
16505
16506         Update to GNU gettext 0.18.1.
16507         * modules/gettext (configure.ac): Require gettext infrastructure from
16508         version 0.18.1.
16509
16510 2010-06-03  Bruno Haible  <bruno@clisp.org>
16511
16512         Don't use AC_LIBOBJ with file names in subdirectories.
16513         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16514         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16515         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16516         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16517         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16518         gl_LIBUNISTRING_LIBSOURCE.
16519         (Makefile.am): Augment lib_SOURCES here, conditionally.
16520         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16521
16522 2010-06-03  Bruno Haible  <bruno@clisp.org>
16523
16524         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16525         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16526         expansion does not end with a newline.
16527         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16528         unnecessary newline.
16529
16530 2010-06-03  Bruno Haible  <bruno@clisp.org>
16531
16532         Reduce dependencies.
16533         * tests/test-quotearg.h: New file, extracted from
16534         tests/test-quotearg.c.
16535         * tests/test-quotearg-simple.c: New file, extracted from
16536         tests/test-quotearg.c.
16537         * tests/test-quotearg.c: Don't include <ctype.h>.
16538         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16539         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16540         use_quote_double_quotes, use_quotearg_colon): Moved to
16541         tests/test-quotearg.h.
16542         (results_g, flag_results, custom_quotes, custom_results): Moved
16543         to tests/test-quotearg-simple.c.
16544         (main): Moved the part that does not depend on gettext to
16545         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16546         performed.
16547         * modules/quotearg-simple: New file.
16548         * modules/quotearg-simple-tests: New file.
16549         * modules/quotearg (Depends-on): Add quotearg-simple.
16550         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16551         (Files): Add tests/test-quotearg.h.
16552         Reported by Paolo Bonzini.
16553
16554 2010-06-03  Bruno Haible  <bruno@clisp.org>
16555
16556         Reduce dependencies.
16557         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16558
16559 2010-06-03  Bruno Haible  <bruno@clisp.org>
16560
16561         time: Undefine more broken macros.
16562         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16563         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16564         Reported by Eric Blake.
16565
16566 2010-06-03  Bruno Haible  <bruno@clisp.org>
16567
16568         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16569         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16570         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16571         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16572         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16573         Reported by Ludovic Courtès <ludo@gnu.org>.
16574
16575 2010-06-02  Eric Blake  <eblake@redhat.com>
16576
16577         time: work with mingw + pthreads-win32 library
16578         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16579         if timespec is defined only in pthread.h.
16580         * modules/time (Makefile.am): Substitute it.
16581         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16582         <pthread.h>, when needed.
16583         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16584         from the library.
16585
16586 2010-05-31  Bruno Haible  <bruno@clisp.org>
16587
16588         Avoid expanding two macros in the wrong order.
16589         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16590         gl_LIBUNISTRING if it is defined.
16591         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16592         autoconf >= 2.64.
16593         Reported by Ludovic Courtès <ludo@gnu.org>.
16594
16595 2010-05-27  Jim Meyering  <meyering@redhat.com>
16596
16597         maint.mk: also prohibit "#undef" of always-defined symbols
16598         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16599         Allow more than one space before the symbol name.
16600         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16601         the regexp uses alternation.
16602
16603 2010-05-26  Eric Blake  <eblake@redhat.com>
16604
16605         maint.mk: avoid echo -e
16606         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16607         Convert all uses of echo -* to printf.
16608         Reported by Matthias Bolte.
16609
16610 2010-05-25  Bruno Haible  <bruno@clisp.org>
16611
16612         Update to GNU gettext 0.18, part 2.
16613         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16614         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16615
16616 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16617
16618         Add missing include in test-pwrite.c.
16619         * tests/test-pwrite.c: Include string.h, for strcmp.
16620
16621 2010-05-24  Bruno Haible  <bruno@clisp.org>
16622
16623         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16624
16625 2010-05-24  Bruno Haible  <bruno@clisp.org>
16626
16627         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16628         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16629         iconveh_error argument.
16630         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16631         U_STRCONV_TO_LOCALE.
16632         * lib/unistr/u16-strcoll.c: Likewise.
16633         * lib/unistr/u32-strcoll.c: Likewise.
16634         * modules/unistr/u8-strcoll (Depends-on): Add
16635         uniconv/u8-strconv-to-enc, localcharset. Remove
16636         uniconv/u8-strconv-to-locale.
16637         (configure.ac): Bump version number.
16638         * modules/unistr/u16-strcoll (Depends-on): Add
16639         uniconv/u16-strconv-to-enc, localcharset. Remove
16640         uniconv/u16-strconv-to-locale.
16641         (configure.ac): Bump version number.
16642         * modules/unistr/u32-strcoll (Depends-on): Add
16643         uniconv/u32-strconv-to-enc, localcharset. Remove
16644         uniconv/u32-strconv-to-locale.
16645         (configure.ac): Bump version number.
16646
16647 2010-05-24  Bruno Haible  <bruno@clisp.org>
16648
16649         Avoid a test failure on NetBSD 5.0.
16650         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16651         an iconv() bug.
16652
16653 2010-05-24  Bruno Haible  <bruno@clisp.org>
16654
16655         Adjust #include directive style.
16656         * modules/regex (Includes): Recommend to write <regex.h>.
16657
16658 2010-05-24  Bruno Haible  <bruno@clisp.org>
16659
16660         regex: Don't require alloca.
16661         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16662         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16663         only inside if (0).
16664
16665 2010-05-23  Jim Meyering  <meyering@redhat.com>
16666
16667         test-renameat.c: include <sys/stat.h>
16668         * tests/test-renameat.c: Include <sys/stat.h>; required for
16669         definition of S_IS* macros.
16670
16671 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16672
16673         Update maintainer documentation for 'relocatable-prog' module.
16674         * doc/relocatable-maint.texi: Update.
16675         Comments by Bruno Haible.
16676
16677 2010-05-23  Bruno Haible  <bruno@clisp.org>
16678
16679         git-merge-changelog: Enable --split-merged-entry by default.
16680         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16681         (usage): Don't mention this option any more.
16682         Reported by Ralf Wildenhues.
16683
16684 2010-05-23  Jim Meyering  <meyering@redhat.com>
16685
16686         test-pwrite: do not leave behind a test file named "out"
16687         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16688         The trivial-looking use of init.sh is really necessary.
16689         It ensures that the temporary file, "out", is created in
16690         a temporary directory, and removed upon termination.
16691         * tests/test-pwrite.sh: Re-add file.
16692         * modules/pwrite-tests: Reference it.
16693
16694 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16695
16696         Fix output redirection buglet in init.sh.
16697         * tests/init.sh: Fix redirection of stderr.
16698
16699 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16700
16701         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16702
16703 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16704
16705         * modules/valgrind-tests: New file.
16706         * m4/valgrind-tests.m4: New file.
16707         * doc/valgrind-tests.texi: New file.
16708         * doc/gnulib.texi (Running self-tests under valgrind): New
16709         section.
16710
16711 2010-05-19  Bruno Haible  <bruno@clisp.org>
16712
16713         Clean up dead code in recent commit.
16714         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16715         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16716         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16717         Suggested by Paolo Bonzini.
16718
16719 2010-05-19  Bruno Haible  <bruno@clisp.org>
16720
16721         Avoid valgrind error reports from libunistring.
16722         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16723         * modules/libunistring (Files): Add it.
16724         * modules/libunistring-optional (Files): Likewise.
16725
16726 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16727             Bruno Haible  <bruno@clisp.org>
16728
16729         New module 'libunistring-optional'.
16730         * modules/libunistring-optional: New file.
16731         * m4/libunistring-base.m4: New file.
16732         * m4/libunistring-optional.m4: New file.
16733         * lib/unicase.in.h: Renamed from lib/unicase.h.
16734         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16735         * lib/unictype.in.h: Renamed from lib/unictype.h.
16736         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16737         * lib/uniname.in.h: Renamed from lib/uniname.h.
16738         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16739         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16740         * lib/unistr.in.h: Renamed from lib/unistr.h.
16741         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16742         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16743         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16744         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16745         gl_LIBUNISTRING. If the library was found, determine the installed
16746         version and set LIBUNISTRING_VERSION.
16747         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16748         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16749         handle a configuration option --with-included-libunistring.
16750         * modules/libunistring (Files): Add m4/absolute-header.m4.
16751         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16752         Add m4/libunistring-base.m4.
16753         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16754         (Makefile.am): Build unicase.h from unicase.in.h.
16755         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16756         Add m4/libunistring-base.m4.
16757         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16758         (Makefile.am): Build uniconv.h from uniconv.in.h.
16759         * modules/unictype/base (Files): Use unictype.in.h instead of
16760         unictype.h. Add m4/libunistring-base.m4.
16761         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16762         (Makefile.am): Build unictype.h from unictype.in.h.
16763         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16764         Add m4/libunistring-base.m4.
16765         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16766         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16767         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16768         Add m4/libunistring-base.m4.
16769         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16770         (Makefile.am): Build uniname.h from uniname.in.h.
16771         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16772         Add m4/libunistring-base.m4.
16773         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16774         (Makefile.am): Build uninorm.h from uninorm.in.h.
16775         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16776         unistdio.h. Add m4/libunistring-base.m4.
16777         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16778         (Makefile.am): Build unistdio.h from unistdio.in.h.
16779         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16780         Add m4/libunistring-base.m4.
16781         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16782         (Makefile.am): Build unistr.h from unistr.in.h.
16783         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16784         Add m4/libunistring-base.m4.
16785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16786         (Makefile.am): Build unitypes.h from unitypes.in.h.
16787         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16788         Add m4/libunistring-base.m4.
16789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16790         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16791         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16792         uniwidth.h. Add m4/libunistring-base.m4.
16793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16794         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16795         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16796         instead of augmenting lib_SOURCES.
16797         * modules/unicase/empty-suffix-context: Likewise.
16798         * modules/unicase/locale-language: Likewise.
16799         * modules/unicase/tolower: Likewise.
16800         * modules/unicase/totitle: Likewise.
16801         * modules/unicase/toupper: Likewise.
16802         * modules/unicase/u8-casecmp: Likewise.
16803         * modules/unicase/u8-casecoll: Likewise.
16804         * modules/unicase/u8-casefold: Likewise.
16805         * modules/unicase/u8-casexfrm: Likewise.
16806         * modules/unicase/u8-ct-casefold: Likewise.
16807         * modules/unicase/u8-ct-tolower: Likewise.
16808         * modules/unicase/u8-ct-totitle: Likewise.
16809         * modules/unicase/u8-ct-toupper: Likewise.
16810         * modules/unicase/u8-is-cased: Likewise.
16811         * modules/unicase/u8-is-casefolded: Likewise.
16812         * modules/unicase/u8-is-lowercase: Likewise.
16813         * modules/unicase/u8-is-titlecase: Likewise.
16814         * modules/unicase/u8-is-uppercase: Likewise.
16815         * modules/unicase/u8-prefix-context: Likewise.
16816         * modules/unicase/u8-suffix-context: Likewise.
16817         * modules/unicase/u8-tolower: Likewise.
16818         * modules/unicase/u8-totitle: Likewise.
16819         * modules/unicase/u8-toupper: Likewise.
16820         * modules/unicase/u16-casecmp: Likewise.
16821         * modules/unicase/u16-casecoll: Likewise.
16822         * modules/unicase/u16-casefold: Likewise.
16823         * modules/unicase/u16-casexfrm: Likewise.
16824         * modules/unicase/u16-ct-casefold: Likewise.
16825         * modules/unicase/u16-ct-tolower: Likewise.
16826         * modules/unicase/u16-ct-totitle: Likewise.
16827         * modules/unicase/u16-ct-toupper: Likewise.
16828         * modules/unicase/u16-is-cased: Likewise.
16829         * modules/unicase/u16-is-casefolded: Likewise.
16830         * modules/unicase/u16-is-lowercase: Likewise.
16831         * modules/unicase/u16-is-titlecase: Likewise.
16832         * modules/unicase/u16-is-uppercase: Likewise.
16833         * modules/unicase/u16-prefix-context: Likewise.
16834         * modules/unicase/u16-suffix-context: Likewise.
16835         * modules/unicase/u16-tolower: Likewise.
16836         * modules/unicase/u16-totitle: Likewise.
16837         * modules/unicase/u16-toupper: Likewise.
16838         * modules/unicase/u32-casecmp: Likewise.
16839         * modules/unicase/u32-casecoll: Likewise.
16840         * modules/unicase/u32-casefold: Likewise.
16841         * modules/unicase/u32-casexfrm: Likewise.
16842         * modules/unicase/u32-ct-casefold: Likewise.
16843         * modules/unicase/u32-ct-tolower: Likewise.
16844         * modules/unicase/u32-ct-totitle: Likewise.
16845         * modules/unicase/u32-ct-toupper: Likewise.
16846         * modules/unicase/u32-is-cased: Likewise.
16847         * modules/unicase/u32-is-casefolded: Likewise.
16848         * modules/unicase/u32-is-lowercase: Likewise.
16849         * modules/unicase/u32-is-titlecase: Likewise.
16850         * modules/unicase/u32-is-uppercase: Likewise.
16851         * modules/unicase/u32-prefix-context: Likewise.
16852         * modules/unicase/u32-suffix-context: Likewise.
16853         * modules/unicase/u32-tolower: Likewise.
16854         * modules/unicase/u32-totitle: Likewise.
16855         * modules/unicase/u32-toupper: Likewise.
16856         * modules/unicase/ulc-casecmp: Likewise.
16857         * modules/unicase/ulc-casecoll: Likewise.
16858         * modules/unicase/ulc-casexfrm: Likewise.
16859         * modules/uniconv/u8-conv-from-enc: Likewise.
16860         * modules/uniconv/u8-conv-to-enc: Likewise.
16861         * modules/uniconv/u8-strconv-from-enc: Likewise.
16862         * modules/uniconv/u8-strconv-from-locale: Likewise.
16863         * modules/uniconv/u8-strconv-to-enc: Likewise.
16864         * modules/uniconv/u8-strconv-to-locale: Likewise.
16865         * modules/uniconv/u16-conv-from-enc: Likewise.
16866         * modules/uniconv/u16-conv-to-enc: Likewise.
16867         * modules/uniconv/u16-strconv-from-enc: Likewise.
16868         * modules/uniconv/u16-strconv-from-locale: Likewise.
16869         * modules/uniconv/u16-strconv-to-enc: Likewise.
16870         * modules/uniconv/u16-strconv-to-locale: Likewise.
16871         * modules/uniconv/u32-conv-from-enc: Likewise.
16872         * modules/uniconv/u32-conv-to-enc: Likewise.
16873         * modules/uniconv/u32-strconv-from-enc: Likewise.
16874         * modules/uniconv/u32-strconv-from-locale: Likewise.
16875         * modules/uniconv/u32-strconv-to-enc: Likewise.
16876         * modules/uniconv/u32-strconv-to-locale: Likewise.
16877         * modules/unictype/bidicategory-byname: Likewise.
16878         * modules/unictype/bidicategory-name: Likewise.
16879         * modules/unictype/bidicategory-of: Likewise.
16880         * modules/unictype/bidicategory-test: Likewise.
16881         * modules/unictype/block-list: Likewise.
16882         * modules/unictype/block-test: Likewise.
16883         * modules/unictype/category-C: Likewise.
16884         * modules/unictype/category-Cc: Likewise.
16885         * modules/unictype/category-Cf: Likewise.
16886         * modules/unictype/category-Cn: Likewise.
16887         * modules/unictype/category-Co: Likewise.
16888         * modules/unictype/category-Cs: Likewise.
16889         * modules/unictype/category-L: Likewise.
16890         * modules/unictype/category-Ll: Likewise.
16891         * modules/unictype/category-Lm: Likewise.
16892         * modules/unictype/category-Lo: Likewise.
16893         * modules/unictype/category-Lt: Likewise.
16894         * modules/unictype/category-Lu: Likewise.
16895         * modules/unictype/category-M: Likewise.
16896         * modules/unictype/category-Mc: Likewise.
16897         * modules/unictype/category-Me: Likewise.
16898         * modules/unictype/category-Mn: Likewise.
16899         * modules/unictype/category-N: Likewise.
16900         * modules/unictype/category-Nd: Likewise.
16901         * modules/unictype/category-Nl: Likewise.
16902         * modules/unictype/category-No: Likewise.
16903         * modules/unictype/category-P: Likewise.
16904         * modules/unictype/category-Pc: Likewise.
16905         * modules/unictype/category-Pd: Likewise.
16906         * modules/unictype/category-Pe: Likewise.
16907         * modules/unictype/category-Pf: Likewise.
16908         * modules/unictype/category-Pi: Likewise.
16909         * modules/unictype/category-Po: Likewise.
16910         * modules/unictype/category-Ps: Likewise.
16911         * modules/unictype/category-S: Likewise.
16912         * modules/unictype/category-Sc: Likewise.
16913         * modules/unictype/category-Sk: Likewise.
16914         * modules/unictype/category-Sm: Likewise.
16915         * modules/unictype/category-So: Likewise.
16916         * modules/unictype/category-Z: Likewise.
16917         * modules/unictype/category-Zl: Likewise.
16918         * modules/unictype/category-Zp: Likewise.
16919         * modules/unictype/category-Zs: Likewise.
16920         * modules/unictype/category-and: Likewise.
16921         * modules/unictype/category-and-not: Likewise.
16922         * modules/unictype/category-byname: Likewise.
16923         * modules/unictype/category-name: Likewise.
16924         * modules/unictype/category-none: Likewise.
16925         * modules/unictype/category-of: Likewise.
16926         * modules/unictype/category-or: Likewise.
16927         * modules/unictype/category-test: Likewise.
16928         * modules/unictype/combining-class: Likewise.
16929         * modules/unictype/ctype-alnum: Likewise.
16930         * modules/unictype/ctype-alpha: Likewise.
16931         * modules/unictype/ctype-blank: Likewise.
16932         * modules/unictype/ctype-cntrl: Likewise.
16933         * modules/unictype/ctype-digit: Likewise.
16934         * modules/unictype/ctype-graph: Likewise.
16935         * modules/unictype/ctype-lower: Likewise.
16936         * modules/unictype/ctype-print: Likewise.
16937         * modules/unictype/ctype-punct: Likewise.
16938         * modules/unictype/ctype-space: Likewise.
16939         * modules/unictype/ctype-upper: Likewise.
16940         * modules/unictype/ctype-xdigit: Likewise.
16941         * modules/unictype/decimal-digit: Likewise.
16942         * modules/unictype/digit: Likewise.
16943         * modules/unictype/mirror: Likewise.
16944         * modules/unictype/numeric: Likewise.
16945         * modules/unictype/property-alphabetic: Likewise.
16946         * modules/unictype/property-ascii-hex-digit: Likewise.
16947         * modules/unictype/property-bidi-arabic-digit: Likewise.
16948         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16949         * modules/unictype/property-bidi-block-separator: Likewise.
16950         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16951         * modules/unictype/property-bidi-common-separator: Likewise.
16952         * modules/unictype/property-bidi-control: Likewise.
16953         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16954         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16955         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16956         * modules/unictype/property-bidi-european-digit: Likewise.
16957         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16958         * modules/unictype/property-bidi-left-to-right: Likewise.
16959         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16960         * modules/unictype/property-bidi-other-neutral: Likewise.
16961         * modules/unictype/property-bidi-pdf: Likewise.
16962         * modules/unictype/property-bidi-segment-separator: Likewise.
16963         * modules/unictype/property-bidi-whitespace: Likewise.
16964         * modules/unictype/property-byname: Likewise.
16965         * modules/unictype/property-combining: Likewise.
16966         * modules/unictype/property-composite: Likewise.
16967         * modules/unictype/property-currency-symbol: Likewise.
16968         * modules/unictype/property-dash: Likewise.
16969         * modules/unictype/property-decimal-digit: Likewise.
16970         * modules/unictype/property-default-ignorable-code-point: Likewise.
16971         * modules/unictype/property-deprecated: Likewise.
16972         * modules/unictype/property-diacritic: Likewise.
16973         * modules/unictype/property-extender: Likewise.
16974         * modules/unictype/property-format-control: Likewise.
16975         * modules/unictype/property-grapheme-base: Likewise.
16976         * modules/unictype/property-grapheme-extend: Likewise.
16977         * modules/unictype/property-grapheme-link: Likewise.
16978         * modules/unictype/property-hex-digit: Likewise.
16979         * modules/unictype/property-hyphen: Likewise.
16980         * modules/unictype/property-id-continue: Likewise.
16981         * modules/unictype/property-id-start: Likewise.
16982         * modules/unictype/property-ideographic: Likewise.
16983         * modules/unictype/property-ids-binary-operator: Likewise.
16984         * modules/unictype/property-ids-trinary-operator: Likewise.
16985         * modules/unictype/property-ignorable-control: Likewise.
16986         * modules/unictype/property-iso-control: Likewise.
16987         * modules/unictype/property-join-control: Likewise.
16988         * modules/unictype/property-left-of-pair: Likewise.
16989         * modules/unictype/property-line-separator: Likewise.
16990         * modules/unictype/property-logical-order-exception: Likewise.
16991         * modules/unictype/property-lowercase: Likewise.
16992         * modules/unictype/property-math: Likewise.
16993         * modules/unictype/property-non-break: Likewise.
16994         * modules/unictype/property-not-a-character: Likewise.
16995         * modules/unictype/property-numeric: Likewise.
16996         * modules/unictype/property-other-alphabetic: Likewise.
16997         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16998         * modules/unictype/property-other-grapheme-extend: Likewise.
16999         * modules/unictype/property-other-id-continue: Likewise.
17000         * modules/unictype/property-other-id-start: Likewise.
17001         * modules/unictype/property-other-lowercase: Likewise.
17002         * modules/unictype/property-other-math: Likewise.
17003         * modules/unictype/property-other-uppercase: Likewise.
17004         * modules/unictype/property-paired-punctuation: Likewise.
17005         * modules/unictype/property-paragraph-separator: Likewise.
17006         * modules/unictype/property-pattern-syntax: Likewise.
17007         * modules/unictype/property-pattern-white-space: Likewise.
17008         * modules/unictype/property-private-use: Likewise.
17009         * modules/unictype/property-punctuation: Likewise.
17010         * modules/unictype/property-quotation-mark: Likewise.
17011         * modules/unictype/property-radical: Likewise.
17012         * modules/unictype/property-sentence-terminal: Likewise.
17013         * modules/unictype/property-soft-dotted: Likewise.
17014         * modules/unictype/property-space: Likewise.
17015         * modules/unictype/property-terminal-punctuation: Likewise.
17016         * modules/unictype/property-test: Likewise.
17017         * modules/unictype/property-titlecase: Likewise.
17018         * modules/unictype/property-unassigned-code-value: Likewise.
17019         * modules/unictype/property-unified-ideograph: Likewise.
17020         * modules/unictype/property-uppercase: Likewise.
17021         * modules/unictype/property-variation-selector: Likewise.
17022         * modules/unictype/property-white-space: Likewise.
17023         * modules/unictype/property-xid-continue: Likewise.
17024         * modules/unictype/property-xid-start: Likewise.
17025         * modules/unictype/property-zero-width: Likewise.
17026         * modules/unictype/scripts: Likewise.
17027         * modules/unictype/syntax-c-ident: Likewise.
17028         * modules/unictype/syntax-c-whitespace: Likewise.
17029         * modules/unictype/syntax-java-ident: Likewise.
17030         * modules/unictype/syntax-java-whitespace: Likewise.
17031         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17032         * modules/unilbrk/u8-width-linebreaks: Likewise.
17033         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17034         * modules/unilbrk/u16-width-linebreaks: Likewise.
17035         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17036         * modules/unilbrk/u32-width-linebreaks: Likewise.
17037         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17038         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17039         * modules/uniname/uniname: Likewise.
17040         * modules/uninorm/canonical-decomposition: Likewise.
17041         * modules/uninorm/composition: Likewise.
17042         * modules/uninorm/decomposing-form: Likewise.
17043         * modules/uninorm/decomposition: Likewise.
17044         * modules/uninorm/filter: Likewise.
17045         * modules/uninorm/nfc: Likewise.
17046         * modules/uninorm/nfd: Likewise.
17047         * modules/uninorm/nfkc: Likewise.
17048         * modules/uninorm/nfkd: Likewise.
17049         * modules/uninorm/u8-normalize: Likewise.
17050         * modules/uninorm/u8-normcmp: Likewise.
17051         * modules/uninorm/u8-normcoll: Likewise.
17052         * modules/uninorm/u8-normxfrm: Likewise.
17053         * modules/uninorm/u16-normalize: Likewise.
17054         * modules/uninorm/u16-normcmp: Likewise.
17055         * modules/uninorm/u16-normcoll: Likewise.
17056         * modules/uninorm/u16-normxfrm: Likewise.
17057         * modules/uninorm/u32-normalize: Likewise.
17058         * modules/uninorm/u32-normcmp: Likewise.
17059         * modules/uninorm/u32-normcoll: Likewise.
17060         * modules/uninorm/u32-normxfrm: Likewise.
17061         * modules/unistdio/u8-asnprintf: Likewise.
17062         * modules/unistdio/u8-asprintf: Likewise.
17063         * modules/unistdio/u8-snprintf: Likewise.
17064         * modules/unistdio/u8-sprintf: Likewise.
17065         * modules/unistdio/u8-u8-asnprintf: Likewise.
17066         * modules/unistdio/u8-u8-asprintf: Likewise.
17067         * modules/unistdio/u8-u8-snprintf: Likewise.
17068         * modules/unistdio/u8-u8-sprintf: Likewise.
17069         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17070         * modules/unistdio/u8-u8-vasprintf: Likewise.
17071         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17072         * modules/unistdio/u8-u8-vsprintf: Likewise.
17073         * modules/unistdio/u8-vasnprintf: Likewise.
17074         * modules/unistdio/u8-vasprintf: Likewise.
17075         * modules/unistdio/u8-vsnprintf: Likewise.
17076         * modules/unistdio/u8-vsprintf: Likewise.
17077         * modules/unistdio/u16-asnprintf: Likewise.
17078         * modules/unistdio/u16-asprintf: Likewise.
17079         * modules/unistdio/u16-snprintf: Likewise.
17080         * modules/unistdio/u16-sprintf: Likewise.
17081         * modules/unistdio/u16-u16-asnprintf: Likewise.
17082         * modules/unistdio/u16-u16-asprintf: Likewise.
17083         * modules/unistdio/u16-u16-snprintf: Likewise.
17084         * modules/unistdio/u16-u16-sprintf: Likewise.
17085         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17086         * modules/unistdio/u16-u16-vasprintf: Likewise.
17087         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17088         * modules/unistdio/u16-u16-vsprintf: Likewise.
17089         * modules/unistdio/u16-vasnprintf: Likewise.
17090         * modules/unistdio/u16-vasprintf: Likewise.
17091         * modules/unistdio/u16-vsnprintf: Likewise.
17092         * modules/unistdio/u16-vsprintf: Likewise.
17093         * modules/unistdio/u32-asnprintf: Likewise.
17094         * modules/unistdio/u32-asprintf: Likewise.
17095         * modules/unistdio/u32-snprintf: Likewise.
17096         * modules/unistdio/u32-sprintf: Likewise.
17097         * modules/unistdio/u32-u32-asnprintf: Likewise.
17098         * modules/unistdio/u32-u32-asprintf: Likewise.
17099         * modules/unistdio/u32-u32-snprintf: Likewise.
17100         * modules/unistdio/u32-u32-sprintf: Likewise.
17101         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17102         * modules/unistdio/u32-u32-vasprintf: Likewise.
17103         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17104         * modules/unistdio/u32-u32-vsprintf: Likewise.
17105         * modules/unistdio/u32-vasnprintf: Likewise.
17106         * modules/unistdio/u32-vasprintf: Likewise.
17107         * modules/unistdio/u32-vsnprintf: Likewise.
17108         * modules/unistdio/u32-vsprintf: Likewise.
17109         * modules/unistdio/ulc-asnprintf: Likewise.
17110         * modules/unistdio/ulc-asprintf: Likewise.
17111         * modules/unistdio/ulc-fprintf: Likewise.
17112         * modules/unistdio/ulc-snprintf: Likewise.
17113         * modules/unistdio/ulc-sprintf: Likewise.
17114         * modules/unistdio/ulc-vasnprintf: Likewise.
17115         * modules/unistdio/ulc-vasprintf: Likewise.
17116         * modules/unistdio/ulc-vfprintf: Likewise.
17117         * modules/unistdio/ulc-vsnprintf: Likewise.
17118         * modules/unistdio/ulc-vsprintf: Likewise.
17119         * modules/unistr/u8-check: Likewise.
17120         * modules/unistr/u8-chr: Likewise.
17121         * modules/unistr/u8-cmp: Likewise.
17122         * modules/unistr/u8-cmp2: Likewise.
17123         * modules/unistr/u8-cpy: Likewise.
17124         * modules/unistr/u8-cpy-alloc: Likewise.
17125         * modules/unistr/u8-endswith: Likewise.
17126         * modules/unistr/u8-mblen: Likewise.
17127         * modules/unistr/u8-mbsnlen: Likewise.
17128         * modules/unistr/u8-mbtouc: Likewise.
17129         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17130         * modules/unistr/u8-mbtoucr: Likewise.
17131         * modules/unistr/u8-move: Likewise.
17132         * modules/unistr/u8-next: Likewise.
17133         * modules/unistr/u8-prev: Likewise.
17134         * modules/unistr/u8-set: Likewise.
17135         * modules/unistr/u8-startswith: Likewise.
17136         * modules/unistr/u8-stpcpy: Likewise.
17137         * modules/unistr/u8-stpncpy: Likewise.
17138         * modules/unistr/u8-strcat: Likewise.
17139         * modules/unistr/u8-strchr: Likewise.
17140         * modules/unistr/u8-strcmp: Likewise.
17141         * modules/unistr/u8-strcoll: Likewise.
17142         * modules/unistr/u8-strcpy: Likewise.
17143         * modules/unistr/u8-strcspn: Likewise.
17144         * modules/unistr/u8-strdup: Likewise.
17145         * modules/unistr/u8-strlen: Likewise.
17146         * modules/unistr/u8-strmblen: Likewise.
17147         * modules/unistr/u8-strmbtouc: Likewise.
17148         * modules/unistr/u8-strncat: Likewise.
17149         * modules/unistr/u8-strncmp: Likewise.
17150         * modules/unistr/u8-strncpy: Likewise.
17151         * modules/unistr/u8-strnlen: Likewise.
17152         * modules/unistr/u8-strpbrk: Likewise.
17153         * modules/unistr/u8-strrchr: Likewise.
17154         * modules/unistr/u8-strspn: Likewise.
17155         * modules/unistr/u8-strstr: Likewise.
17156         * modules/unistr/u8-strtok: Likewise.
17157         * modules/unistr/u8-to-u16: Likewise.
17158         * modules/unistr/u8-to-u32: Likewise.
17159         * modules/unistr/u8-uctomb: Likewise.
17160         * modules/unistr/u16-check: Likewise.
17161         * modules/unistr/u16-chr: Likewise.
17162         * modules/unistr/u16-cmp: Likewise.
17163         * modules/unistr/u16-cmp2: Likewise.
17164         * modules/unistr/u16-cpy: Likewise.
17165         * modules/unistr/u16-cpy-alloc: Likewise.
17166         * modules/unistr/u16-endswith: Likewise.
17167         * modules/unistr/u16-mblen: Likewise.
17168         * modules/unistr/u16-mbsnlen: Likewise.
17169         * modules/unistr/u16-mbtouc: Likewise.
17170         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17171         * modules/unistr/u16-mbtoucr: Likewise.
17172         * modules/unistr/u16-move: Likewise.
17173         * modules/unistr/u16-next: Likewise.
17174         * modules/unistr/u16-prev: Likewise.
17175         * modules/unistr/u16-set: Likewise.
17176         * modules/unistr/u16-startswith: Likewise.
17177         * modules/unistr/u16-stpcpy: Likewise.
17178         * modules/unistr/u16-stpncpy: Likewise.
17179         * modules/unistr/u16-strcat: Likewise.
17180         * modules/unistr/u16-strchr: Likewise.
17181         * modules/unistr/u16-strcmp: Likewise.
17182         * modules/unistr/u16-strcoll: Likewise.
17183         * modules/unistr/u16-strcpy: Likewise.
17184         * modules/unistr/u16-strcspn: Likewise.
17185         * modules/unistr/u16-strdup: Likewise.
17186         * modules/unistr/u16-strlen: Likewise.
17187         * modules/unistr/u16-strmblen: Likewise.
17188         * modules/unistr/u16-strmbtouc: Likewise.
17189         * modules/unistr/u16-strncat: Likewise.
17190         * modules/unistr/u16-strncmp: Likewise.
17191         * modules/unistr/u16-strncpy: Likewise.
17192         * modules/unistr/u16-strnlen: Likewise.
17193         * modules/unistr/u16-strpbrk: Likewise.
17194         * modules/unistr/u16-strrchr: Likewise.
17195         * modules/unistr/u16-strspn: Likewise.
17196         * modules/unistr/u16-strstr: Likewise.
17197         * modules/unistr/u16-strtok: Likewise.
17198         * modules/unistr/u16-to-u32: Likewise.
17199         * modules/unistr/u16-to-u8: Likewise.
17200         * modules/unistr/u16-uctomb: Likewise.
17201         * modules/unistr/u32-check: Likewise.
17202         * modules/unistr/u32-chr: Likewise.
17203         * modules/unistr/u32-cmp: Likewise.
17204         * modules/unistr/u32-cmp2: Likewise.
17205         * modules/unistr/u32-cpy: Likewise.
17206         * modules/unistr/u32-cpy-alloc: Likewise.
17207         * modules/unistr/u32-endswith: Likewise.
17208         * modules/unistr/u32-mblen: Likewise.
17209         * modules/unistr/u32-mbsnlen: Likewise.
17210         * modules/unistr/u32-mbtouc: Likewise.
17211         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17212         * modules/unistr/u32-mbtoucr: Likewise.
17213         * modules/unistr/u32-move: Likewise.
17214         * modules/unistr/u32-next: Likewise.
17215         * modules/unistr/u32-prev: Likewise.
17216         * modules/unistr/u32-set: Likewise.
17217         * modules/unistr/u32-startswith: Likewise.
17218         * modules/unistr/u32-stpcpy: Likewise.
17219         * modules/unistr/u32-stpncpy: Likewise.
17220         * modules/unistr/u32-strcat: Likewise.
17221         * modules/unistr/u32-strchr: Likewise.
17222         * modules/unistr/u32-strcmp: Likewise.
17223         * modules/unistr/u32-strcoll: Likewise.
17224         * modules/unistr/u32-strcpy: Likewise.
17225         * modules/unistr/u32-strcspn: Likewise.
17226         * modules/unistr/u32-strdup: Likewise.
17227         * modules/unistr/u32-strlen: Likewise.
17228         * modules/unistr/u32-strmblen: Likewise.
17229         * modules/unistr/u32-strmbtouc: Likewise.
17230         * modules/unistr/u32-strncat: Likewise.
17231         * modules/unistr/u32-strncmp: Likewise.
17232         * modules/unistr/u32-strncpy: Likewise.
17233         * modules/unistr/u32-strnlen: Likewise.
17234         * modules/unistr/u32-strpbrk: Likewise.
17235         * modules/unistr/u32-strrchr: Likewise.
17236         * modules/unistr/u32-strspn: Likewise.
17237         * modules/unistr/u32-strstr: Likewise.
17238         * modules/unistr/u32-strtok: Likewise.
17239         * modules/unistr/u32-to-u16: Likewise.
17240         * modules/unistr/u32-to-u8: Likewise.
17241         * modules/unistr/u32-uctomb: Likewise.
17242         * modules/uniwbrk/u8-wordbreaks: Likewise.
17243         * modules/uniwbrk/u16-wordbreaks: Likewise.
17244         * modules/uniwbrk/u32-wordbreaks: Likewise.
17245         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17246         * modules/uniwbrk/wordbreak-property: Likewise.
17247         * modules/uniwidth/u8-strwidth: Likewise.
17248         * modules/uniwidth/u8-width: Likewise.
17249         * modules/uniwidth/u16-strwidth: Likewise.
17250         * modules/uniwidth/u16-width: Likewise.
17251         * modules/uniwidth/u32-strwidth: Likewise.
17252         * modules/uniwidth/u32-width: Likewise.
17253         * modules/uniwidth/width: Likewise.
17254         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17255         with $(LIBUNISTRING).
17256         * modules/unicase/ignorable-tests: Likewise.
17257         * modules/unicase/locale-language-tests: Likewise.
17258         * modules/unicase/tolower-tests: Likewise.
17259         * modules/unicase/totitle-tests: Likewise.
17260         * modules/unicase/toupper-tests: Likewise.
17261         * modules/unicase/u8-casecmp-tests: Likewise.
17262         * modules/unicase/u8-casecoll-tests: Likewise.
17263         * modules/unicase/u8-casefold-tests: Likewise.
17264         * modules/unicase/u8-is-cased-tests: Likewise.
17265         * modules/unicase/u8-is-casefolded-tests: Likewise.
17266         * modules/unicase/u8-is-lowercase-tests: Likewise.
17267         * modules/unicase/u8-is-titlecase-tests: Likewise.
17268         * modules/unicase/u8-is-uppercase-tests: Likewise.
17269         * modules/unicase/u8-tolower-tests: Likewise.
17270         * modules/unicase/u8-totitle-tests: Likewise.
17271         * modules/unicase/u8-toupper-tests: Likewise.
17272         * modules/unicase/u16-casecmp-tests: Likewise.
17273         * modules/unicase/u16-casecoll-tests: Likewise.
17274         * modules/unicase/u16-casefold-tests: Likewise.
17275         * modules/unicase/u16-is-cased-tests: Likewise.
17276         * modules/unicase/u16-is-casefolded-tests: Likewise.
17277         * modules/unicase/u16-is-lowercase-tests: Likewise.
17278         * modules/unicase/u16-is-titlecase-tests: Likewise.
17279         * modules/unicase/u16-is-uppercase-tests: Likewise.
17280         * modules/unicase/u16-tolower-tests: Likewise.
17281         * modules/unicase/u16-totitle-tests: Likewise.
17282         * modules/unicase/u16-toupper-tests: Likewise.
17283         * modules/unicase/u32-casecmp-tests: Likewise.
17284         * modules/unicase/u32-casecoll-tests: Likewise.
17285         * modules/unicase/u32-casefold-tests: Likewise.
17286         * modules/unicase/u32-is-cased-tests: Likewise.
17287         * modules/unicase/u32-is-casefolded-tests: Likewise.
17288         * modules/unicase/u32-is-lowercase-tests: Likewise.
17289         * modules/unicase/u32-is-titlecase-tests: Likewise.
17290         * modules/unicase/u32-is-uppercase-tests: Likewise.
17291         * modules/unicase/u32-tolower-tests: Likewise.
17292         * modules/unicase/u32-totitle-tests: Likewise.
17293         * modules/unicase/u32-toupper-tests: Likewise.
17294         * modules/unicase/ulc-casecmp-tests: Likewise.
17295         * modules/unicase/ulc-casecoll-tests: Likewise.
17296         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17297         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17298         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17299         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17300         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17301         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17302         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17303         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17304         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17305         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17306         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17307         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17308         * modules/unictype/bidicategory-byname-tests: Likewise.
17309         * modules/unictype/bidicategory-name-tests: Likewise.
17310         * modules/unictype/bidicategory-of-tests: Likewise.
17311         * modules/unictype/bidicategory-test-tests: Likewise.
17312         * modules/unictype/block-list-tests: Likewise.
17313         * modules/unictype/block-of-tests: Likewise.
17314         * modules/unictype/block-test-tests: Likewise.
17315         * modules/unictype/category-C-tests: Likewise.
17316         * modules/unictype/category-Cc-tests: Likewise.
17317         * modules/unictype/category-Cf-tests: Likewise.
17318         * modules/unictype/category-Cn-tests: Likewise.
17319         * modules/unictype/category-Co-tests: Likewise.
17320         * modules/unictype/category-Cs-tests: Likewise.
17321         * modules/unictype/category-L-tests: Likewise.
17322         * modules/unictype/category-Ll-tests: Likewise.
17323         * modules/unictype/category-Lm-tests: Likewise.
17324         * modules/unictype/category-Lo-tests: Likewise.
17325         * modules/unictype/category-Lt-tests: Likewise.
17326         * modules/unictype/category-Lu-tests: Likewise.
17327         * modules/unictype/category-M-tests: Likewise.
17328         * modules/unictype/category-Mc-tests: Likewise.
17329         * modules/unictype/category-Me-tests: Likewise.
17330         * modules/unictype/category-Mn-tests: Likewise.
17331         * modules/unictype/category-N-tests: Likewise.
17332         * modules/unictype/category-Nd-tests: Likewise.
17333         * modules/unictype/category-Nl-tests: Likewise.
17334         * modules/unictype/category-No-tests: Likewise.
17335         * modules/unictype/category-P-tests: Likewise.
17336         * modules/unictype/category-Pc-tests: Likewise.
17337         * modules/unictype/category-Pd-tests: Likewise.
17338         * modules/unictype/category-Pe-tests: Likewise.
17339         * modules/unictype/category-Pf-tests: Likewise.
17340         * modules/unictype/category-Pi-tests: Likewise.
17341         * modules/unictype/category-Po-tests: Likewise.
17342         * modules/unictype/category-Ps-tests: Likewise.
17343         * modules/unictype/category-S-tests: Likewise.
17344         * modules/unictype/category-Sc-tests: Likewise.
17345         * modules/unictype/category-Sk-tests: Likewise.
17346         * modules/unictype/category-Sm-tests: Likewise.
17347         * modules/unictype/category-So-tests: Likewise.
17348         * modules/unictype/category-Z-tests: Likewise.
17349         * modules/unictype/category-Zl-tests: Likewise.
17350         * modules/unictype/category-Zp-tests: Likewise.
17351         * modules/unictype/category-Zs-tests: Likewise.
17352         * modules/unictype/category-and-not-tests: Likewise.
17353         * modules/unictype/category-and-tests: Likewise.
17354         * modules/unictype/category-byname-tests: Likewise.
17355         * modules/unictype/category-name-tests: Likewise.
17356         * modules/unictype/category-none-tests: Likewise.
17357         * modules/unictype/category-of-tests: Likewise.
17358         * modules/unictype/category-or-tests: Likewise.
17359         * modules/unictype/category-test-withtable-tests: Likewise.
17360         * modules/unictype/combining-class-tests: Likewise.
17361         * modules/unictype/ctype-alnum-tests: Likewise.
17362         * modules/unictype/ctype-alpha-tests: Likewise.
17363         * modules/unictype/ctype-blank-tests: Likewise.
17364         * modules/unictype/ctype-cntrl-tests: Likewise.
17365         * modules/unictype/ctype-digit-tests: Likewise.
17366         * modules/unictype/ctype-graph-tests: Likewise.
17367         * modules/unictype/ctype-lower-tests: Likewise.
17368         * modules/unictype/ctype-print-tests: Likewise.
17369         * modules/unictype/ctype-punct-tests: Likewise.
17370         * modules/unictype/ctype-space-tests: Likewise.
17371         * modules/unictype/ctype-upper-tests: Likewise.
17372         * modules/unictype/ctype-xdigit-tests: Likewise.
17373         * modules/unictype/decimal-digit-tests: Likewise.
17374         * modules/unictype/digit-tests: Likewise.
17375         * modules/unictype/mirror-tests: Likewise.
17376         * modules/unictype/numeric-tests: Likewise.
17377         * modules/unictype/property-alphabetic-tests: Likewise.
17378         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17379         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17380         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17381         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17382         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17383         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17384         * modules/unictype/property-bidi-control-tests: Likewise.
17385         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17386         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17387         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17388         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17389         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17390         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17391         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17392         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17393         * modules/unictype/property-bidi-pdf-tests: Likewise.
17394         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17395         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17396         * modules/unictype/property-byname-tests: Likewise.
17397         * modules/unictype/property-combining-tests: Likewise.
17398         * modules/unictype/property-composite-tests: Likewise.
17399         * modules/unictype/property-currency-symbol-tests: Likewise.
17400         * modules/unictype/property-dash-tests: Likewise.
17401         * modules/unictype/property-decimal-digit-tests: Likewise.
17402         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17403         * modules/unictype/property-deprecated-tests: Likewise.
17404         * modules/unictype/property-diacritic-tests: Likewise.
17405         * modules/unictype/property-extender-tests: Likewise.
17406         * modules/unictype/property-format-control-tests: Likewise.
17407         * modules/unictype/property-grapheme-base-tests: Likewise.
17408         * modules/unictype/property-grapheme-extend-tests: Likewise.
17409         * modules/unictype/property-grapheme-link-tests: Likewise.
17410         * modules/unictype/property-hex-digit-tests: Likewise.
17411         * modules/unictype/property-hyphen-tests: Likewise.
17412         * modules/unictype/property-id-continue-tests: Likewise.
17413         * modules/unictype/property-id-start-tests: Likewise.
17414         * modules/unictype/property-ideographic-tests: Likewise.
17415         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17416         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17417         * modules/unictype/property-ignorable-control-tests: Likewise.
17418         * modules/unictype/property-iso-control-tests: Likewise.
17419         * modules/unictype/property-join-control-tests: Likewise.
17420         * modules/unictype/property-left-of-pair-tests: Likewise.
17421         * modules/unictype/property-line-separator-tests: Likewise.
17422         * modules/unictype/property-logical-order-exception-tests: Likewise.
17423         * modules/unictype/property-lowercase-tests: Likewise.
17424         * modules/unictype/property-math-tests: Likewise.
17425         * modules/unictype/property-non-break-tests: Likewise.
17426         * modules/unictype/property-not-a-character-tests: Likewise.
17427         * modules/unictype/property-numeric-tests: Likewise.
17428         * modules/unictype/property-other-alphabetic-tests: Likewise.
17429         * modules/unictype/property-other-default-ignorable-code-point-tests:
17430         Likewise.
17431         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17432         * modules/unictype/property-other-id-continue-tests: Likewise.
17433         * modules/unictype/property-other-id-start-tests: Likewise.
17434         * modules/unictype/property-other-lowercase-tests: Likewise.
17435         * modules/unictype/property-other-math-tests: Likewise.
17436         * modules/unictype/property-other-uppercase-tests: Likewise.
17437         * modules/unictype/property-paired-punctuation-tests: Likewise.
17438         * modules/unictype/property-paragraph-separator-tests: Likewise.
17439         * modules/unictype/property-pattern-syntax-tests: Likewise.
17440         * modules/unictype/property-pattern-white-space-tests: Likewise.
17441         * modules/unictype/property-private-use-tests: Likewise.
17442         * modules/unictype/property-punctuation-tests: Likewise.
17443         * modules/unictype/property-quotation-mark-tests: Likewise.
17444         * modules/unictype/property-radical-tests: Likewise.
17445         * modules/unictype/property-sentence-terminal-tests: Likewise.
17446         * modules/unictype/property-soft-dotted-tests: Likewise.
17447         * modules/unictype/property-space-tests: Likewise.
17448         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17449         * modules/unictype/property-test-tests: Likewise.
17450         * modules/unictype/property-titlecase-tests: Likewise.
17451         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17452         * modules/unictype/property-unified-ideograph-tests: Likewise.
17453         * modules/unictype/property-uppercase-tests: Likewise.
17454         * modules/unictype/property-variation-selector-tests: Likewise.
17455         * modules/unictype/property-white-space-tests: Likewise.
17456         * modules/unictype/property-xid-continue-tests: Likewise.
17457         * modules/unictype/property-xid-start-tests: Likewise.
17458         * modules/unictype/property-zero-width-tests: Likewise.
17459         * modules/unictype/scripts-tests: Likewise.
17460         * modules/unictype/syntax-c-ident-tests: Likewise.
17461         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17462         * modules/unictype/syntax-java-ident-tests: Likewise.
17463         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17464         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17465         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17466         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17467         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17468         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17469         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17470         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17471         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17472         * modules/uniname/uniname-tests: Likewise.
17473         * modules/uninorm/canonical-decomposition-tests: Likewise.
17474         * modules/uninorm/compat-decomposition-tests: Likewise.
17475         * modules/uninorm/composition-tests: Likewise.
17476         * modules/uninorm/decomposing-form-tests: Likewise.
17477         * modules/uninorm/decomposition-tests: Likewise.
17478         * modules/uninorm/filter-tests: Likewise.
17479         * modules/uninorm/nfc-tests: Likewise.
17480         * modules/uninorm/nfd-tests: Likewise.
17481         * modules/uninorm/nfkc-tests: Likewise.
17482         * modules/uninorm/nfkd-tests: Likewise.
17483         * modules/uninorm/u8-normcmp-tests: Likewise.
17484         * modules/uninorm/u8-normcoll-tests: Likewise.
17485         * modules/uninorm/u16-normcmp-tests: Likewise.
17486         * modules/uninorm/u16-normcoll-tests: Likewise.
17487         * modules/uninorm/u32-normcmp-tests: Likewise.
17488         * modules/uninorm/u32-normcoll-tests: Likewise.
17489         * modules/unistdio/u8-asnprintf-tests: Likewise.
17490         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17491         * modules/unistdio/u8-vasprintf-tests: Likewise.
17492         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17493         * modules/unistdio/u8-vsprintf-tests: Likewise.
17494         * modules/unistdio/u16-asnprintf-tests: Likewise.
17495         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17496         * modules/unistdio/u16-vasprintf-tests: Likewise.
17497         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17498         * modules/unistdio/u16-vsprintf-tests: Likewise.
17499         * modules/unistdio/u32-asnprintf-tests: Likewise.
17500         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17501         * modules/unistdio/u32-vasprintf-tests: Likewise.
17502         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17503         * modules/unistdio/u32-vsprintf-tests: Likewise.
17504         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17505         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17506         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17507         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17508         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17509         * modules/unistr/u8-check-tests: Likewise.
17510         * modules/unistr/u8-chr-tests: Likewise.
17511         * modules/unistr/u8-cmp-tests: Likewise.
17512         * modules/unistr/u8-cmp2-tests: Likewise.
17513         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17514         * modules/unistr/u8-cpy-tests: Likewise.
17515         * modules/unistr/u8-mblen-tests: Likewise.
17516         * modules/unistr/u8-mbsnlen-tests: Likewise.
17517         * modules/unistr/u8-mbtouc-tests: Likewise.
17518         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17519         * modules/unistr/u8-mbtoucr-tests: Likewise.
17520         * modules/unistr/u8-move-tests: Likewise.
17521         * modules/unistr/u8-next-tests: Likewise.
17522         * modules/unistr/u8-prev-tests: Likewise.
17523         * modules/unistr/u8-set-tests: Likewise.
17524         * modules/unistr/u8-stpcpy-tests: Likewise.
17525         * modules/unistr/u8-stpncpy-tests: Likewise.
17526         * modules/unistr/u8-strcat-tests: Likewise.
17527         * modules/unistr/u8-strcmp-tests: Likewise.
17528         * modules/unistr/u8-strcoll-tests: Likewise.
17529         * modules/unistr/u8-strcpy-tests: Likewise.
17530         * modules/unistr/u8-strdup-tests: Likewise.
17531         * modules/unistr/u8-strlen-tests: Likewise.
17532         * modules/unistr/u8-strmblen-tests: Likewise.
17533         * modules/unistr/u8-strmbtouc-tests: Likewise.
17534         * modules/unistr/u8-strncat-tests: Likewise.
17535         * modules/unistr/u8-strncmp-tests: Likewise.
17536         * modules/unistr/u8-strncpy-tests: Likewise.
17537         * modules/unistr/u8-strnlen-tests: Likewise.
17538         * modules/unistr/u8-to-u16-tests: Likewise.
17539         * modules/unistr/u8-to-u32-tests: Likewise.
17540         * modules/unistr/u8-uctomb-tests: Likewise.
17541         * modules/unistr/u16-check-tests: Likewise.
17542         * modules/unistr/u16-chr-tests: Likewise.
17543         * modules/unistr/u16-cmp-tests: Likewise.
17544         * modules/unistr/u16-cmp2-tests: Likewise.
17545         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17546         * modules/unistr/u16-cpy-tests: Likewise.
17547         * modules/unistr/u16-mblen-tests: Likewise.
17548         * modules/unistr/u16-mbsnlen-tests: Likewise.
17549         * modules/unistr/u16-mbtouc-tests: Likewise.
17550         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17551         * modules/unistr/u16-mbtoucr-tests: Likewise.
17552         * modules/unistr/u16-move-tests: Likewise.
17553         * modules/unistr/u16-next-tests: Likewise.
17554         * modules/unistr/u16-prev-tests: Likewise.
17555         * modules/unistr/u16-set-tests: Likewise.
17556         * modules/unistr/u16-stpcpy-tests: Likewise.
17557         * modules/unistr/u16-stpncpy-tests: Likewise.
17558         * modules/unistr/u16-strcat-tests: Likewise.
17559         * modules/unistr/u16-strcmp-tests: Likewise.
17560         * modules/unistr/u16-strcoll-tests: Likewise.
17561         * modules/unistr/u16-strcpy-tests: Likewise.
17562         * modules/unistr/u16-strdup-tests: Likewise.
17563         * modules/unistr/u16-strlen-tests: Likewise.
17564         * modules/unistr/u16-strmblen-tests: Likewise.
17565         * modules/unistr/u16-strmbtouc-tests: Likewise.
17566         * modules/unistr/u16-strncat-tests: Likewise.
17567         * modules/unistr/u16-strncmp-tests: Likewise.
17568         * modules/unistr/u16-strncpy-tests: Likewise.
17569         * modules/unistr/u16-strnlen-tests: Likewise.
17570         * modules/unistr/u16-to-u32-tests: Likewise.
17571         * modules/unistr/u16-to-u8-tests: Likewise.
17572         * modules/unistr/u16-uctomb-tests: Likewise.
17573         * modules/unistr/u32-check-tests: Likewise.
17574         * modules/unistr/u32-chr-tests: Likewise.
17575         * modules/unistr/u32-cmp-tests: Likewise.
17576         * modules/unistr/u32-cmp2-tests: Likewise.
17577         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17578         * modules/unistr/u32-cpy-tests: Likewise.
17579         * modules/unistr/u32-mblen-tests: Likewise.
17580         * modules/unistr/u32-mbsnlen-tests: Likewise.
17581         * modules/unistr/u32-mbtouc-tests: Likewise.
17582         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17583         * modules/unistr/u32-mbtoucr-tests: Likewise.
17584         * modules/unistr/u32-move-tests: Likewise.
17585         * modules/unistr/u32-next-tests: Likewise.
17586         * modules/unistr/u32-prev-tests: Likewise.
17587         * modules/unistr/u32-set-tests: Likewise.
17588         * modules/unistr/u32-stpcpy-tests: Likewise.
17589         * modules/unistr/u32-stpncpy-tests: Likewise.
17590         * modules/unistr/u32-strcat-tests: Likewise.
17591         * modules/unistr/u32-strcmp-tests: Likewise.
17592         * modules/unistr/u32-strcoll-tests: Likewise.
17593         * modules/unistr/u32-strcpy-tests: Likewise.
17594         * modules/unistr/u32-strdup-tests: Likewise.
17595         * modules/unistr/u32-strlen-tests: Likewise.
17596         * modules/unistr/u32-strmblen-tests: Likewise.
17597         * modules/unistr/u32-strmbtouc-tests: Likewise.
17598         * modules/unistr/u32-strncat-tests: Likewise.
17599         * modules/unistr/u32-strncmp-tests: Likewise.
17600         * modules/unistr/u32-strncpy-tests: Likewise.
17601         * modules/unistr/u32-strnlen-tests: Likewise.
17602         * modules/unistr/u32-to-u16-tests: Likewise.
17603         * modules/unistr/u32-to-u8-tests: Likewise.
17604         * modules/unistr/u32-uctomb-tests: Likewise.
17605         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17606         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17607         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17608         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17609         * modules/uniwidth/u8-strwidth-tests: Likewise.
17610         * modules/uniwidth/u8-width-tests: Likewise.
17611         * modules/uniwidth/u16-strwidth-tests: Likewise.
17612         * modules/uniwidth/u16-width-tests: Likewise.
17613         * modules/uniwidth/u32-strwidth-tests: Likewise.
17614         * modules/uniwidth/u32-width-tests: Likewise.
17615         * modules/uniwidth/width-tests: Likewise.
17616
17617 2010-05-18  Richard Jones  <rjones@redhat.com>
17618
17619         doc: users.txt: list hivex
17620         * users.txt: Add hivex.
17621
17622 2010-05-18  Richard Jones  <rjones@redhat.com>
17623
17624         doc: users.txt: list febootstrap
17625         * users.txt: Add febootstrap.
17626
17627 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17628
17629         bootstrap: fix an error when gnulib is not used as a git submodule
17630         * build-aux/bootstrap (gnulib_path): If its length is zero then
17631         assign "gnulib" to it.
17632         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17633
17634 2010-05-16  Bruno Haible  <bruno@clisp.org>
17635
17636         Avoid autoconf warnings about AM_ICONV.
17637         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17638         2.64.
17639
17640 2010-05-16  Bruno Haible  <bruno@clisp.org>
17641
17642         absolute-header: Make the macro usable in more situations.
17643         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17644         from gl_ABSOLUTE_HEADER.
17645         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17646
17647 2010-05-16  James Youngman  <jay@gnu.org>
17648
17649         doc: update users.txt
17650         * users.txt: Add CSSC.
17651
17652 2010-05-16  Jim Meyering  <meyering@redhat.com>
17653
17654         init.sh: fix an error in the previous change; add more comments
17655         * tests/init.sh: Compare exit code in loop against 9, not 2.
17656         Patch by Bruno Haible.
17657         Make the two tests more similar by adding an empty "then" clause.
17658         Add comments.
17659
17660         init.sh: avoid unnecessary shell re-exec
17661         * tests/init.sh: Improve the re-exec-required check to first test the
17662         current shell.  If it passes the test, do not search for a shell that
17663         does pass, and do not re-exec.  This test is particularly contorted to
17664         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17665         of $(...) evokes a syntax error and causes immediate shell exit with
17666         status 2.  Bruno Haible reported that the re-exec made it impossible
17667         to single-step through any init.sh-using script.
17668
17669 2010-05-16  Bruno Haible  <bruno@clisp.org>
17670
17671         Fix collision between gnulib's and libintl's printf replacements.
17672         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17673         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17674         (printf): When using GNU C, map the __printf__ function to rpl_printf
17675         via __asm__. When not using GNU C, define rpl_printf instead of
17676         __printf__.
17677         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17678         commit.
17679         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17680         commit.
17681         * m4/asm-underscore.m4: New file.
17682         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17683         * modules/stdio (Files): Add m4/asm-underscore.m4.
17684         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17685         Reported by Ben Pfaff.
17686
17687 2010-05-16  Bruno Haible  <bruno@clisp.org>
17688
17689         verify: Avoid skipping the test on openSUSE 11.0.
17690         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17691
17692 2010-05-13  Bruno Haible  <bruno@clisp.org>
17693
17694         Avoid useless warnings from G++.
17695         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17696         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17697         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17698
17699 2010-05-11  Jim Meyering  <meyering@redhat.com>
17700
17701         maint.mk: tweak preceding change
17702         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17703         regexps tighter by anchoring at EOL, and make the new group "shy"
17704         for slightly decreased overhead.
17705
17706 2010-05-11  Eric Blake  <eblake@redhat.com>
17707
17708         maint.mk: gnulib doesn't guarantee NSIG
17709         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17710
17711 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17712
17713         test-pwrite.c: Remove unused variable declaration.
17714         * tests/test-pwrite.c (main): Remove read_buf declaration.
17715
17716         Remove useless test-pwrite.sh file.
17717         * tests/test-pwrite.sh: Delete file.
17718         * modules/pwrite-tests: Remove references.
17719         Reported by Bruno Haible.
17720
17721 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17722
17723         init.sh: fix a typo
17724         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17725
17726 2010-05-10  Jim Meyering  <meyering@redhat.com>
17727
17728         maint.mk: avoid using a temporary file in the always-defined-macros check
17729         * top/maint.mk (.re-defmac): Remove rule.
17730         (gl_trap_): Remove definition.
17731         (sc_prohibit_always-defined_macros): Rewrite not to create and
17732         depend on a temporary file.  Instead, depend on GNU grep's ability
17733         to read a list of regular expressions from stdin when given "-f -".
17734
17735 2010-05-09  Bruno Haible  <bruno@clisp.org>
17736
17737         Update to GNU gettext 0.18, part 1.
17738         * m4/gettext.m4: Update to GNU gettext 0.18.
17739         * m4/intl.m4: Likewise.
17740         * m4/po.m4: Likewise.
17741         * modules/gettext (Files): Add m4/fcntl-o.m4.
17742         (configure.ac): Require gettext infrastructure from version 0.18.
17743
17744 2010-05-09  Jim Meyering  <meyering@redhat.com>
17745
17746         init.sh: enable MALLOC_PERTURB_
17747         * tests/init.sh: Enable glibc's malloc-perturbing option.
17748
17749         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17750         With my recent change in init.sh from the two-line form:
17751             -#   : ${srcdir=.}
17752             -#   . "$srcdir/init.sh"; path_prepend_ .
17753             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17754         I noticed that using the one-line form would cause this test
17755         to fail with a false-positive, or to stop working altogether,
17756         depending on whether help-version changed or all the tests did.
17757         * top/maint.mk (_hv_regex): Remove this definition.
17758         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17759         (_hv_regex_strong): Use a stronger regex to check for conformance.
17760         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17761         Give a separate diagnostic for lack of conforming use.
17762
17763         maint.mk: prohibit definition of symbols defined by gnulib
17764         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17765         definition of symbols defined by gnulib.
17766
17767 2010-05-09  Bruno Haible  <bruno@clisp.org>
17768
17769         acl: Avoid test failure on Cygwin-hosted mingw.
17770         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17771
17772 2010-05-09  Bruno Haible  <bruno@clisp.org>
17773
17774         error: Use system's fcntl function.
17775         * lib/error.c (fcntl): Undefine.
17776
17777 2010-05-09  Jim Meyering  <meyering@redhat.com>
17778
17779         verify: adjust formatting to be more consistent
17780         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17781         argument-list '('s, and after one comma.
17782
17783 2010-05-09  Bruno Haible  <bruno@clisp.org>
17784
17785         error: More reliable output on mingw.
17786         * lib/error.c: Include <windows.h>.
17787         (is_open): New function.
17788         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17789         defined.
17790
17791 2010-05-09  Bruno Haible  <bruno@clisp.org>
17792
17793         vasnprintf: Fix syntax errors in libintl build on mingw.
17794         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17795         pad_ourselves and prec_ourselves after use.
17796
17797 2010-05-08  Bruno Haible  <bruno@clisp.org>
17798
17799         * lib/config.charset: Update comments for Cygwin 1.7.
17800         * lib/localcharset.c: Likewise.
17801
17802 2010-05-07  Jim Meyering  <meyering@redhat.com>
17803
17804         init.sh: improve comments
17805         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17806         . "${srcdir=.}/init.sh"; path_prepend_ .
17807         Add a note about path_prepend_ and the alternative of using
17808         TESTS_ENVIRONMENT.
17809
17810 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17811
17812         exclude: Unescape hashed patterns in wildcard mode.
17813         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17814         to the hash list.
17815         * tests/test-exclude8.sh: New test case.
17816         * modules/exclude-tests: Add new test.
17817
17818 2010-05-05  Eric Blake  <eblake@redhat.com>
17819
17820         verify: automate tests
17821         * modules/verify-tests: New module.
17822         * tests/test-verify.sh: New file.
17823         * tests/test-verify.c: Guard each negative test with a unique id.
17824         Also avoid warning about unused left hand of comma expressions.
17825
17826 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17827
17828         Further improvements to verify.h, suggested by Eric Blake.
17829         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17830         the GL_* versions, to avoid collision with OpenGL.
17831         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17832         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17833         than testing merely whether it's defined.
17834
17835         Modify verify.h to pacify gcc -Wredundant_decls.
17836         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17837         These use the prefix "GL_" since they're likely to be useful elsewhere.
17838         We may need to break them out into a different .h file.
17839         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17840         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17841         of verify_function__.
17842
17843 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17844
17845         Tests for module pwrite.
17846         * modules/pwrite-tests: New file.
17847         * tests/test-pwrite.sh: New file.
17848         * tests/test-pwrite.c: New file.
17849
17850         New module pwrite.
17851         * lib/unistd.in.h (pwrite): New declaration.
17852         * lib/pwrite.c: New file, from glibc with modifications.
17853         * m4/pwrite.m4: New file.
17854         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17855         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17856         REPLACE_PWRITE.
17857         * modules/pwrite: New file.
17858         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17859         REPLACE_PWRITE.
17860         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17861         * doc/posix-functions/pwrite.texi: Mention the new module.
17862
17863 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17864
17865         pread: Update documentation.
17866         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17867
17868 2010-05-04  Eric Blake  <eblake@redhat.com>
17869
17870         docs: update cygwin progress
17871         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17872         this bug.
17873         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17874         Added in cygwin 1.7.2.
17875         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17876         Likewise.
17877         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17878         Likewise.
17879         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17880         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17881         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17882         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17883         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17884         Mention nproc module.
17885         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17886         bug in cygwin 1.7.5 addition.
17887         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17888         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17889         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17890         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17891         1.7.5.
17892         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17893         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17894         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17895         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17896         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17897         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17898         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17899         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17900         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17901         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17902         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17903         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17904         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17905         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17906         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17907         Likewise.
17908         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17909         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17910         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17911         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17912         Likewise.
17913         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17914         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17915         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17916         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17917         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17918         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17919         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17920         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17921         Likewise.
17922         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17923         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17924         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17925         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17926         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17927         Likewise.
17928         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17929         Likewise.
17930         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17931         Likewise.
17932         * doc/glibc-functions/xdrrec_endofrecord.texi
17933         (xdrrec_endofrecord): Likewise.
17934         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17935         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17936         Likewise.
17937         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17938         Likewise.
17939
17940 2010-05-04  Jim Meyering  <meyering@redhat.com>
17941
17942         gendocs.sh: make its "-s FILE" option more useful
17943         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17944         $PACKAGE to reflect the probably-different basename of "FILE".
17945
17946 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17947
17948         bootstrap: don't ignore download_po_files failure
17949         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17950         failure.
17951
17952 2010-05-03  Jim Meyering  <meyering@redhat.com>
17953
17954         maint.mk: allow to pass options to gendocs.sh
17955         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17956         (gendocs_options_): New overridable variable.
17957
17958         gnu-web-doc-update: don't ignore configure or build failure
17959         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17960
17961         announce-gen: backslash-escape '@'s in --help output
17962         * build-aux/announce-gen: Fix syntax errors.
17963
17964         maint.mk, announce-gen: allow project-specific announcement mail headers
17965         * top/maint.mk (translation_project_): Define default.
17966         (announcement_Cc_, announcement_mail_headers_): Likewise.
17967         (announcement): Invoke announce-gen with new --mail-headers option.
17968         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17969
17970         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17971         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17972         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17973         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17974         line in the "err2" output file when running "make check" in verbose
17975         mode (i.e., with set -x enabled).
17976
17977 2010-05-03  Bruno Haible  <bruno@clisp.org>
17978
17979         wctob: Fix for weird platforms.
17980         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17981         argument value.
17982
17983 2010-05-03  Jim Meyering  <meyering@redhat.com>
17984
17985         maint.mk: prohibit unwarranted use of <strings.h>
17986         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17987         strings.h in a file that does not also use strcasecmp, strncasecmp,
17988         ffs or ffsll.
17989
17990         maint.mk: remove obsolete comments
17991         * top/maint.mk: Remove stale, commented-out rules.
17992
17993 2010-05-02  Bruno Haible  <bruno@clisp.org>
17994
17995         wcwidth: Declare also when it's aliased.
17996         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17997         macro.
17998
17999 2010-05-02  Bruno Haible  <bruno@clisp.org>
18000
18001         Fix regression from 2010-04-25.
18002         * gnulib-tool (func_modules_transitive_closure): Check the status of
18003         all modules, not only of the tests that are of the form foo-tests where
18004         foo is a module.
18005
18006 2010-05-02  Bruno Haible  <bruno@clisp.org>
18007
18008         wctob: Work around nasty Cygwin 1.7.2 bug.
18009         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18010         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18011
18012 2010-05-01  Bruno Haible  <bruno@clisp.org>
18013
18014         fpurge: Sharper test.
18015         * tests/test-fpurge.c (main): Add one more ftell check.
18016         * modules/fpurge-tests (Depends-on): Add ftell.
18017         Suggested by Eric Blake.
18018
18019 2010-05-01  Bruno Haible  <bruno@clisp.org>
18020
18021         ftello: Another test.
18022         * tests/test-ftello3.c: New file.
18023         * modules/ftello-tests (Files): Add it.
18024         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18025         MOSTLYCLEANFILES.
18026
18027         ftell: Another test.
18028         * tests/test-ftell3.c: New file.
18029         * modules/ftell-tests (Files): Add it.
18030         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18031         MOSTLYCLEANFILES.
18032
18033 2010-05-01  Bruno Haible  <bruno@clisp.org>
18034
18035         ftell, ftello: Work around Solaris bug.
18036         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18037         * lib/ftello.c: Include stdio-impl.h.
18038         (ftello): On Solaris, when _IOWRT is set, compute the result without
18039         looking at _IOREAD.
18040         * modules/ftello (Files): Add lib/stdio-impl.h.
18041         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18042         * doc/posix-functions/ftello.texi: Likewise.
18043         Reported by Eric Blake.
18044
18045 2010-05-01  Bruno Haible  <bruno@clisp.org>
18046
18047         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18048         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18049         the _IOWRT flag is also set.
18050
18051 2010-05-01  Bruno Haible  <bruno@clisp.org>
18052
18053         Fix doc about a HP-UX stdio bug.
18054         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18055         * doc/posix-functions/ftello.texi: Likewise.
18056
18057 2010-05-01  Bruno Haible  <bruno@clisp.org>
18058
18059         lseek test: Fix failure on Solaris.
18060         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18061         output.
18062
18063 2010-04-30  Jim Meyering  <meyering@redhat.com>
18064
18065         bootstrap: don't ignore failure to generate po*/Makevars
18066         * build-aux/bootstrap (with_gettext): Don't ignore failure
18067         to create po/Makevars or runtime-po/Makevars.
18068
18069 2010-04-29  Eric Blake  <eblake@redhat.com>
18070
18071         headers: relax license to LGPLv2+
18072         * modules/fcntl-h (License): Relax license.
18073         * modules/getopt-posix (License): Likewise.
18074         * modules/locale (License): Likewise.
18075         * modules/math (License): Likewise.
18076         * modules/pty (License): Likewise.
18077         * modules/sched (License): Likewise.
18078         * modules/search (License): Likewise.
18079         * modules/spawn (License): Likewise.
18080         * modules/stdarg (License): Likewise.
18081         * modules/sysexits (License): Likewise.
18082
18083 2010-04-29  Jim Meyering  <meyering@redhat.com>
18084
18085         inttypes: relax license to LGPLv2+
18086         * modules/inttypes (License): Relax license.
18087
18088 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18089
18090         * top/maint.mk (indent): Run twice to produce idempotent results.
18091
18092 2010-04-28  Bruno Haible  <bruno@clisp.org>
18093
18094         getdate: Generate getdate.c in the source directory.
18095         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18096         MOSTLYCLEANFILES.
18097         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18098
18099 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18100
18101         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18102         is not declared as a const *; avoid warnings in that case.
18103
18104 2010-04-28  Eric Blake  <eblake@redhat.com>
18105
18106         canonicalize-lgpl: avoid compiler warning
18107         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18108         declaration' / 'extraneous semicolon' warning with some compilers.
18109         Reported by Andreas Gruenbacher.
18110
18111 2010-04-28  Jim Meyering  <meyering@redhat.com>
18112
18113         init.sh: ensure a more reliable exit status when exiting via trap
18114         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18115         Inspired by patches from Dmitry V. Levin.
18116         Also trap on signal 3 (SIGQUIT).
18117
18118 2010-04-27  Bruno Haible  <bruno@clisp.org>
18119
18120         Update doc about utimes().
18121         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18122         'utimens' module.
18123         Reported by Andreas Gruenbacher <agruen@suse.de>.
18124
18125 2010-04-27  Eric Blake  <eblake@redhat.com>
18126
18127         full-read, full-write: relax license
18128         * modules/full-read (License): Drop to LGPLv2+.
18129         * modules/full-write (License): Likewise.
18130         * modules/safe-read (License): Likewise.
18131         * modules/safe-write (License): Likewise.
18132
18133         pthread: mention library for linking
18134         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18135
18136 2010-04-27  Jim Meyering  <meyering@redhat.com>
18137
18138         maint.mk: fix a bug introduced in last change
18139         * top/maint.mk (gl_assured_headers_): Now that all names are on
18140         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18141         is not anchored to end of word, it should be adequate.
18142
18143         maint.mk: avoid side-effect in latest syntax-check
18144         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18145         to run commands via $(shell...), and hence to incur cost only when
18146         the new rule is actually run.
18147
18148         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18149         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18150         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18151         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18152         (gl_assured_headers_, az_, AZ_): Define.
18153         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18154
18155 2010-04-26  Jim Meyering  <jim@meyering.net>
18156             Bruno Haible  <bruno@clisp.org>
18157
18158         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18159         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18160         Prompted by an exchange with Gilles Espinasse.
18161
18162 2010-04-26  Jim Meyering  <meyering@redhat.com>
18163
18164         git-version-gen: aesthetic tweak
18165         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18166         so that the command remains on a single line.
18167
18168 2010-04-26  Eric Blake  <eblake@redhat.com>
18169
18170         git-version-gen: allow use on EBCDIC hosts
18171         * build-aux/git-version-gen (dirty): Use literal rather than tying
18172         ourselves to ascii.
18173         Reported by Steve Goetze.
18174
18175 2010-04-25  Bruno Haible  <bruno@clisp.org>
18176
18177         netdb: Add support for GNULIB_POSIXCHECK.
18178         * lib/netdb.in.h: Include warn-on-use.h.
18179         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18180         functions are used when GNULIB_POSIXCHECK is defined and the
18181         getaddrinfo module is not in use.
18182         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18183         freeaddrinfo, gai_strerror, getnameinfo are declared.
18184         * modules/netdb (Depends-on): Add warn-on-use.
18185         (Makefile.am): Include warn-on-use.h in netdb.h.
18186
18187 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18188
18189         build: avoid "make check" failure without .git/ directory
18190         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18191         there is no .git/ directory.
18192
18193 2010-04-25  Bruno Haible  <bruno@clisp.org>
18194
18195         ptsname: Fix misuse of ttyname_r.
18196         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18197         of errno.
18198
18199 2010-04-25  Bruno Haible  <bruno@clisp.org>
18200
18201         ttyname_r: Make it work on Solaris 10.
18202         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18203         if the system function has the POSIX declaration. Test whether the
18204         function fails if the buffer is less than 128 bytes large.
18205         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18206         system's ttyname_r function. Provide a reasonably large buffer.
18207         * modules/ttyname_r (Depends-on): Add extensions.
18208         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18209
18210 2010-04-25  Bruno Haible  <bruno@clisp.org>
18211
18212         Use the 'extensions' module for some more functions on Solaris.
18213         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18214         module.
18215         * doc/posix-functions/ctime_r.texi: Likewise.
18216         * doc/posix-functions/getgrgid_r.texi: Likewise.
18217         * doc/posix-functions/getgrnam_r.texi: Likewise.
18218         * doc/posix-functions/getpwnam_r.texi: Likewise.
18219         * doc/posix-functions/getpwuid_r.texi: Likewise.
18220         * doc/posix-functions/readdir_r.texi: Likewise.
18221         * doc/posix-functions/sigwait.texi: Likewise.
18222         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18223         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18224
18225 2010-04-25  Bruno Haible  <bruno@clisp.org>
18226
18227         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18228         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18229         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18230         * lib/ttyname_r.c: Include <limits.h>.
18231         (ttyname_r): Define using the system's ttyname_r function, if it exists
18232         and not on Solaris.
18233         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18234         set.
18235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18236         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18237         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18238         Reported by Simon Josefsson.
18239
18240 2010-04-25  Bruno Haible  <bruno@clisp.org>
18241
18242         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18243         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18244         * doc/posix-functions/ctime_r.texi: Likewise.
18245         * doc/posix-functions/getgrgid_r.texi: Likewise.
18246         * doc/posix-functions/getgrnam_r.texi: Likewise.
18247         * doc/posix-functions/getlogin_r.texi: Likewise.
18248         * doc/posix-functions/getpwnam_r.texi: Likewise.
18249         * doc/posix-functions/getpwuid_r.texi: Likewise.
18250         * doc/posix-functions/readdir_r.texi: Likewise.
18251         * doc/posix-functions/sigwait.texi: Likewise.
18252         * doc/posix-functions/ttyname_r.texi: Likewise.
18253         Reported by Simon Josefsson.
18254
18255 2010-04-25  Bruno Haible  <bruno@clisp.org>
18256
18257         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18258         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18259         also to --create-testdir.
18260         (func_acceptable): Don't consider the status of *-tests modules here.
18261         (func_modules_transitive_closure): Consider it here, before including a
18262         test module.
18263         (func_import, func_create_testdir): Set inc_all_direct_tests,
18264         inc_all_indirect_tests.
18265         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18266         --create-testdir and --create-megatestdir.
18267
18268 2010-04-25  Bruno Haible  <bruno@clisp.org>
18269
18270         gnulib-tool: Add --without-*-tests options.
18271         * gnulib-tool (func_usage): Document the --without-*-tests options.
18272         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18273         excl_unportable_tests): New variables.
18274         Fail if they are specified with --import or --update.
18275         (func_acceptable): Respect the excl_*_tests variables.
18276         (func_import): Set the excl_*_tests variables to empty.
18277
18278 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18279             Bruno Haible  <bruno@clisp.org>
18280
18281         Work around a MacOS X 10.4 bug with openpty.
18282         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18283         * tests/test-openpty.c (main): Close the master side explicitly.
18284
18285 2010-04-25  Bruno Haible  <bruno@clisp.org>
18286
18287         strnlen: Fix a C++ test error on MacOS X and Solaris.
18288         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18289         the function is not declared.
18290         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18291         Simon Josefsson.
18292
18293 2010-04-24  Bruno Haible  <bruno@clisp.org>
18294
18295         Avoid a gcc warning.
18296         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18297         of correct type for %08lx directive.
18298         Reported by Eric Blake.
18299
18300 2010-04-24  Bruno Haible  <bruno@clisp.org>
18301
18302         vasnprintf: Correct errno value in case of out-of-memory.
18303         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18304         or sprintf. Use the errno value from SNPRINTF or sprintf.
18305         Reported by Ian Beckwith <ianb@erislabs.net>.
18306
18307 2010-04-24  Bruno Haible  <bruno@clisp.org>
18308
18309         ansi-c++-opt: Find correct compiler when cross-compiling.
18310         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18311         AC_CHECK_PROGS.
18312         Reported by Simon Josefsson.
18313
18314 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18315
18316         vc-list-files: Add support for subversion
18317         * build-aux/vc-list-files: Use "svn list" to generate the list of
18318         files controlled by subversion.
18319
18320 2010-04-23  Jim Meyering  <meyering@redhat.com>
18321
18322         vc-list-files tests: convert to use init.sh
18323         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18324         path_prepend_.
18325         Use Exit, not exit.
18326         Use skip_ rather than open coding it.
18327         Remove trap set-up and compare definitions.
18328         * tests/test-vc-list-files-git.sh: Likewise.
18329         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18330
18331 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18332
18333         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18334         backup files.
18335
18336 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18337
18338         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18339
18340 2010-04-20  Eric Blake  <eblake@redhat.com>
18341
18342         tests: be robust to ignored SIGPIPE
18343         * tests/test-select-in.sh: Consume all output.
18344         * tests/test-lseek.sh: Check correct exit status, while avoiding
18345         EPIPE.
18346
18347 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18348             Bruno Haible  <bruno@clisp.org>
18349
18350         visibility: Don't use -fvisibility if it leads to a warning.
18351         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18352         yes, don't pretend that visibility works if it leads to a warning.
18353         Reported by Mike Gran <spk121@yahoo.com>.
18354
18355 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18356
18357         * build-aux/bootstrap: Use "git -h" for testing for supported options
18358         instead of "git --help".  The short-form option only shows a summary,
18359         and doesn't layout the full man page.  Grep for the full option name
18360         in the summary, too.
18361
18362 2010-04-19  Bruno Haible  <bruno@clisp.org>
18363
18364         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18365         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18366         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18367         mention of RELOCATABLE_STRIP.
18368         Reported by Sylvain Beucler <beuc@beuc.net>.
18369
18370 2010-04-19  Bruno Haible  <bruno@clisp.org>
18371
18372         * lib/diffseq.h: Fix typo in comment.
18373         Reported by Eric Blake.
18374
18375 2010-04-19  Bruno Haible  <bruno@clisp.org>
18376
18377         ioctl: Move autoconf macro to a .m4 file.
18378         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18379         * modules/ioctl (Files): Add it.
18380         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18381         Reported by Ian Beckwith <ianb@erislabs.net>.
18382
18383 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18384             Bruno Haible  <bruno@clisp.org>
18385
18386         diffseq: Accommodate use-case with abstract arrays.
18387         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18388         is not defined.
18389         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18390         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18391
18392 2010-04-18  Bruno Haible  <bruno@clisp.org>
18393
18394         * doc/posix-headers/stdbool.texi: More precise wording.
18395
18396 2010-04-17  Jim Meyering  <meyering@redhat.com>
18397
18398         maint.mk: use gnu-style indentation in an embedded perl script
18399         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18400         Rename variable: s/two/last_two_bytes/
18401
18402 2010-04-16  Eric Blake  <eblake@redhat.com>
18403
18404         test-stdbool: skip test that fails with Solaris CC
18405         * tests/test-stdbool.c (f): Skip test that causes compilation
18406         error under buggy C++ compiler.
18407         * lib/stdbool.in.h: Document the limitation.
18408         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18409
18410         setenv: allow compilation with C++
18411         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18412         register keyword.
18413
18414         stdint: allow test to pass with C++
18415         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18416
18417         getopt: allow compilation with C++
18418         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18419         struct.
18420         * lib/getopt.c (_getopt_internal_r): Use correct type.
18421         Reported by Dagobert Michelson, via Joel E. Denny.
18422
18423 2010-04-16  Bruno Haible  <bruno@clisp.org>
18424
18425         Override netdb.h always.
18426         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18427         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18428         Reported by Ludovic Courtès <ludo@gnu.org>.
18429
18430 2010-04-15  Bruno Haible  <bruno@clisp.org>
18431
18432         openpty: Fix mistake from 2010-03-21.
18433         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18434         Reported by Simon Josefsson.
18435
18436 2010-04-15  Eric Blake  <eblake@redhat.com>
18437
18438         test-forkpty: fix expected signature
18439         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18440         Reported by Simon Josefsson.
18441
18442 2010-04-15  Jim Meyering  <meyering@redhat.com>
18443
18444         maint.mk: texinfo_suffix_re_: correct the default regexp
18445         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18446
18447         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18448         make it configurable via texinfo_suffix_re_.
18449
18450 2010-04-14  Eric Blake  <eblake@redhat.com>
18451
18452         strtok_r: relax license to LGPLv2+
18453         * modules/strtok_r (License): Relax license.
18454         Reported by Matthias Bolte.
18455
18456 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18457
18458         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18459         version 1.4.4 by default instead of requiring the libgcrypt
18460         version used during build.  This makes it possible to use the
18461         application with older but still binary compatible libgcrypt
18462         versions.
18463
18464 2010-04-13  Eric Blake  <eblake@redhat.com>
18465
18466         getopt-gnu: match recent glibc fixes and posix ruling
18467         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18468         '+' handling, when requesting extensions.
18469         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18470         'W;' handling.
18471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18472         * doc/posix-functions/getopt.texi (getopt): Document this.
18473         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18474         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18475         Likewise.
18476
18477         getopt: merge bug fixes from glibc
18478         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18479         diagnostics.  Honor '+:' correctly.  Reject ';'.
18480
18481         getopt-posix: detect MacOS bug
18482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18483         optind when missing a required argument.
18484         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18485         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18486         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18487         Likewise.
18488
18489         getopt-posix: avoid spurious failure on Solaris
18490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18491         an indicator that setting optind=1 is sufficient for reset.
18492
18493         getopt-posix: avoid spurious failure on FreeBSD
18494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18495         in POSIX mode, since the m4 test uses it.
18496
18497         gnulib-tool: silence warning on BSD sh
18498         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18499
18500 2010-04-13  Jim Meyering  <meyering@redhat.com>
18501
18502         doc: users.txt: GNU patch now uses gnulib
18503         * users.txt: Add patch.
18504
18505 2010-04-12  Jim Meyering  <meyering@redhat.com>
18506
18507         maint.mk: generate more concise timing data for syntax-check rules
18508         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18509         " done" from each line that reports a syntax-check test duration.
18510
18511 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18512
18513         git-version-gen: use "git update-index..." rather than "git status"
18514         * build-aux/git-version-gen: Use git update-index --refresh, not
18515         "git status".  With some versions of git, "git status" would fail
18516         to update the index and result in an unwarranted "-dirty" suffix.
18517
18518 2010-04-11  Jim Meyering  <meyering@redhat.com>
18519
18520         openat: correct formatting (no semantic change)
18521         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18522         Suggested by Bruno Haible.
18523
18524 2010-04-11  Bruno Haible  <bruno@clisp.org>
18525
18526         Stricter declaration checking in testdirs.
18527         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18528         If for_tests is true, augment AM_CPPFLAGS to define
18529         GNULIB_STRICT_CHECKING.
18530         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18531         GNULIB_STRICT_CHECKING is defined, verify that the function is
18532         declared.
18533
18534 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18535             Bruno Haible  <bruno@clisp.org>
18536
18537         libunistring: Improve configure output.
18538         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18539         Don't say "consider installing GNU libunistring" when checking again
18540         with libiconv.
18541
18542 2010-04-11  Bruno Haible  <bruno@clisp.org>
18543
18544         libunistring: Correct value of $LTLIBUNISTRING.
18545         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18546         correct the value of $LTLIBUNISTRING.
18547
18548 2010-04-11  Bruno Haible  <bruno@clisp.org>
18549
18550         havelib: Add static libraries to LIBS in the right order.
18551         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18552         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18553
18554 2010-04-11  Bruno Haible  <bruno@clisp.org>
18555
18556         libunistring: Detect libunistring also when it depends on libiconv.
18557         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18558         the second AC_LIB_HAVE_LINKFLAGS invocation.
18559
18560 2010-04-11  James Youngman  <jay@gnu.org>
18561
18562         close-stream: declare local scalars to be "const"
18563         * lib/close-stream.c (close_stream): Make boolean variables const
18564         to document the fact that we set but do not change them.
18565
18566 2010-04-11  Bruno Haible  <bruno@clisp.org>
18567
18568         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18569
18570 2010-04-11  Jim Meyering  <meyering@redhat.com>
18571
18572         maint.mk: don't include dist-check.mk
18573         * top/maint.mk: Remove bogus include directive.
18574
18575         maint.mk: improve empty-line-at-EOF check
18576         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18577         solution, rather than tail+Perl-based one.  The latter would read
18578         a few kilobytes from the end of each file, and did not handle empty
18579         files properly.
18580
18581         maint.mk: print the elapsed time for each syntax-check rule
18582         * top/maint.mk (sc_m_rules_): Save start time in a file.
18583         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18584         (local-check): Interpose the .z rules
18585
18586 2010-04-11  Jim Meyering  <meyering@redhat.com>
18587
18588         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18589         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18590         empty file with one that ends in an empty line.
18591
18592 2010-04-10  Bruno Haible  <bruno@clisp.org>
18593
18594         mkdir: Make it work on mingw64.
18595         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18596         * lib/mkdir.c: Update comment.
18597         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18598
18599 2010-04-10  Bruno Haible  <bruno@clisp.org>
18600
18601         Don't override improved macro from newer autoconf.
18602         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18603         autoconf >= 2.62.
18604         Reported by Joel E. Denny <jdenny@clemson.edu>.
18605
18606 2010-04-10  Jim Meyering  <meyering@redhat.com>
18607
18608         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18609         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18610
18611         maint.mk: correct a diagnostic
18612         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18613         in diagnostic; now use $prohibit.
18614
18615 2010-04-10  Bruno Haible  <address@hidden>
18616
18617         fchownat: Fix a C++ test error on Solaris 8.
18618         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18619         the function does not exist.
18620
18621 2010-04-10  Bruno Haible  <bruno@clisp.org>
18622
18623         vasnprintf: Add more tests.
18624         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18625         (test_function): Test converting an invalid wide string.
18626
18627         vasnprintf: Correct handling of unconvertible wide string arguments.
18628         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18629         VASNPRINTF.
18630         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18631         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18632         smaller than the expected maximum need for the directive. Set errno to
18633         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18634         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18636         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18637         * modules/vasnprintf (Files): Add m4/printf.m4.
18638         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18639
18640 2010-04-10  Bruno Haible  <bruno@clisp.org>
18641
18642         vasnprintf: Fix crash in %ls directive.
18643         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18644         string is passed as argument to %ls, with no precision and no width.
18645         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18646
18647 2010-04-10  Bruno Haible  <bruno@clisp.org>
18648
18649         vasnprintf: Fix multiple test failures on mingw.
18650         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18651         _snprintf, or snwprintf, not _snwprintf.
18652
18653 2010-04-10  Bruno Haible  <bruno@clisp.org>
18654
18655         write: Fix a C++ test error on mingw.
18656         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18657
18658 2010-04-10  Bruno Haible  <bruno@clisp.org>
18659
18660         vasnprintf test: Reduce code duplication.
18661         * tests/test-vasnprintf.c (test_function): New function, extracted from
18662         test_vasnprintf.
18663         (test_vasnprintf, test_asnprintf): Invoke it.
18664
18665 2010-04-10  Bruno Haible  <bruno@clisp.org>
18666
18667         strnlen: Fix warning in C++ mode on MacOS X.
18668         * lib/string.in.h (strnlen): Use the modern idiom.
18669         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18670         defining strnlen as a macro already in <config.h>.
18671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18672         REPLACE_STRNLEN.
18673         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18674         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18675
18676 2010-04-08  James Youngman  <jay@gnu.org>
18677
18678         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18679         the example.
18680
18681 2010-04-09  Jim Meyering  <meyering@redhat.com>
18682
18683         maint.mk: print better diagnostic when there is no $(_hv_file)
18684         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18685         announce that when $(_hv_file) (aka help-version) does not exist.
18686
18687         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18688         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18689         not try to interpret its random input bytes.  Jarno Rajahalme reported
18690         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18691         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18692         (mktempd_): Likewise, just in case.
18693
18694         ftruncate: add two years to projected module removal date: 2012
18695         * m4/ftruncate.m4: Adjust comments.
18696
18697         ftruncate: mark module as obsolete; even MinGW provides it, now
18698         * modules/ftruncate (Status): Obsolete.
18699         (Notice): Say that.
18700         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18702
18703 2010-04-08  Bruno Haible  <bruno@clisp.org>
18704
18705         Fix side effects from tests-related modules.
18706         * modules/dprintf-posix (Comment): New section.
18707         * modules/fprintf-posix (Comment): Likewise.
18708         * modules/obstack-printf-posix (Comment): Likewise.
18709         * modules/printf-posix (Comment): Likewise.
18710         * modules/snprintf-posix (Comment): Likewise.
18711         * modules/sprintf-posix (Comment): Likewise.
18712         * modules/vasnprintf-posix (Comment): Likewise.
18713         * modules/vasprintf-posix (Comment): Likewise.
18714         * modules/vdprintf-posix (Comment): Likewise.
18715         * modules/vfprintf-posix (Comment): Likewise.
18716         * modules/vprintf-posix (Comment): Likewise.
18717         * modules/vsnprintf-posix (Comment): Likewise.
18718         * modules/vsprintf-posix (Comment): Likewise.
18719         * modules/xprintf-posix (Comment): Likewise.
18720         * modules/xvasprintf-posix (Comment): Likewise.
18721         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18722         * modules/floorf-tests (Depends-on): Likewise.
18723         * modules/round-tests (Depends-on): Likewise.
18724         * modules/roundf-tests (Depends-on): Likewise.
18725         * modules/trunc-tests (Depends-on): Likewise.
18726         * modules/truncf-tests (Depends-on): Likewise.
18727         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18728         'fprintf-posix' module is not present.
18729         * tests/test-floorf2.c (check): Likewise.
18730         * tests/test-trunc2.c (check): Likewise.
18731         * tests/test-truncf2.c (check): Likewise.
18732         * tests/test-round2.c (equal): Likewise.
18733         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18734
18735 2010-04-07  Karl Berry  <karl@gnu.org>
18736
18737         * config/srclist.txt,
18738         * config/srclistvars.sh,
18739         * config/srclist-update: doc fixes.
18740
18741 2010-04-07  Jim Meyering  <meyering@redhat.com>
18742
18743         maint.mk: add a PATH crosschecking syntax-check rule
18744         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18745         Useful if you use a test like the one in help-version (coreutils,
18746         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18747         printed by prog --version.
18748
18749 2010-04-06  Bruno Haible  <bruno@clisp.org>
18750
18751         Fix link error on mingw.
18752         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18753         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18754
18755 2010-04-06  Bruno Haible  <bruno@clisp.org>
18756
18757         Assume rmdir exists.
18758         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18759
18760 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18761
18762         doc: update users.txt
18763         * users.txt: Add gcal.
18764
18765 2010-04-06  Jim Meyering  <meyering@redhat.com>
18766
18767         init.sh: simply unset TMPDIR rather than risking env -i
18768         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18769         although it probably works fine on all Unix-based systems, some
18770         systems (Cygwin?) cannot tolerate a totally cleared environment.
18771         Suggestion from Eric Blake.
18772
18773 2010-04-06  Jim Meyering  <meyering@redhat.com>
18774
18775         init.sh: portability fix: use env's POSIX-specified -i option not -u
18776         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18777         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18778
18779 2010-04-05  Bruno Haible  <bruno@clisp.org>
18780
18781         btowc: Work around Cygwin 1.7.2 bug.
18782         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18783         does not map NUL to 0.
18784         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18785
18786 2010-04-05  Bruno Haible  <bruno@clisp.org>
18787
18788         Make the multithread modules work on Cygwin 1.7.2.
18789         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18790         imported symbols can be declared weak, so that it returns "no" on
18791         Cygwin 1.7.2.
18792
18793 2010-04-05  Bruno Haible  <bruno@clisp.org>
18794
18795         Use the module 'strncat'.
18796         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18797
18798         Tests for module 'strncat'.
18799         * modules/strncat-tests: New file.
18800         * tests/test-strncat.c: New file.
18801
18802         New module 'strncat'.
18803         * lib/string.in.h (strncat): New declaration.
18804         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18805         * m4/strncat.m4: New file, based on m4/memchr.m4.
18806         * modules/strncat: New file.
18807         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18808         is declared.
18809         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18810         REPLACE_STRNCAT.
18811         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18812         REPLACE_STRNCAT.
18813         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18814         module.
18815         * tests/test-string-c++.cc: Check signature of strncat.
18816
18817 2010-04-05  Jim Meyering  <meyering@redhat.com>
18818
18819         xstrtoumax-tests: convert to use init.sh
18820         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18821         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18822         Use Exit, not exit.
18823         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18824
18825         xstrtoimax-tests: convert to use init.sh
18826         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18827         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18828         Use Exit, not exit.
18829         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18830
18831 2010-04-05  Bruno Haible  <bruno@clisp.org>
18832
18833         sys_socket: Avoid #define replacements in C++ mode.
18834         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18835         warning to the function if possible, rather than #defining the symbol
18836         to a dysfunctional alias.
18837
18838 2010-04-05  Bruno Haible  <bruno@clisp.org>
18839
18840         fseeko: Fix C++ test error on mingw.
18841         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18842         gl_FUNC_FSEEKO.
18843         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18844         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18845         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18846         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18847
18848 2010-04-05  Bruno Haible  <bruno@clisp.org>
18849
18850         duplocale: Improve test output.
18851         * tests/test-duplocale.c (main): Print reason for skipped test.
18852
18853 2010-04-05  Bruno Haible  <bruno@clisp.org>
18854
18855         Assume rmdir exists.
18856         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18857         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18858
18859 2010-04-05  Bruno Haible  <bruno@clisp.org>
18860
18861         Fix link error on Solaris 8 with cc.
18862         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18863
18864 2010-04-05  Bruno Haible  <bruno@clisp.org>
18865
18866         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18867         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18868
18869 2010-04-05  Bruno Haible  <bruno@clisp.org>
18870
18871         vasprintf: Update documentation.
18872         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18873
18874 2010-04-05  Bruno Haible  <bruno@clisp.org>
18875
18876         ptsname: Improve test.
18877         * tests/test-ptsname.c (main): Also try the various master names of BSD
18878         systems.
18879
18880 2010-04-05  Bruno Haible  <bruno@clisp.org>
18881
18882         memchr: Avoid a possible C++ test error.
18883         * lib/string.in.h (memchr): Provide declaration if function is missing.
18884         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18885         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18887         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18888
18889 2010-04-05  Bruno Haible  <bruno@clisp.org>
18890
18891         strtok_r: Improve idiom.
18892         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18893         AC_LIBOBJ is used.
18894
18895 2010-04-05  Bruno Haible  <bruno@clisp.org>
18896
18897         strdup: Improve idiom.
18898         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18899         AC_LIBOBJ is used.
18900         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18901         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18902         when AC_LIBOBJ is used.
18903
18904 2010-04-05  Bruno Haible  <bruno@clisp.org>
18905
18906         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18907         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18908         don't set REPLACE_MBSINIT to 1.
18909         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18910         don't set REPLACE_MBRTOWC to 1.
18911         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18912         exist, don't set REPLACE_MBSRTOWCS to 1.
18913         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18914         exist, don't set REPLACE_MBSNRTOWCS to 1.
18915         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18916         don't set REPLACE_WCRTOMB to 1.
18917         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18918         exist, don't set REPLACE_WCSRTOMBS to 1.
18919         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18920         exist, don't set REPLACE_WCSNRTOMBS to 1.
18921
18922 2010-04-05  Bruno Haible  <bruno@clisp.org>
18923
18924         ldexpl: Improve idiom.
18925         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18926         make sure to set HAVE_DECL_LDEXPL to 0.
18927
18928 2010-04-05  Jim Meyering  <meyering@redhat.com>
18929
18930         xstrtol-tests: convert to use init.sh
18931         * modules/xstrtol-tests (Files): Add tests/init.sh.
18932         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18933         Use Exit, not exit.
18934         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18935
18936         atexit-tests: convert to use init.sh
18937         * modules/atexit-tests (Files): Add tests/init.sh.
18938         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18939         Use Exit, not exit.
18940         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18941
18942         init.sh: fix typo
18943         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18944
18945         init.sh: make it easier for a test script to write to the tty, ...
18946         when using automake's parallel-tests mode.
18947         * tests/init.sh (stderr_fileno_): Define overridable variable.
18948         (warn_): New function, to use it.
18949         (fail_, skip_, framework_failure_): Use warn_.
18950
18951 2010-04-04  Bruno Haible  <bruno@clisp.org>
18952
18953         btowc: Avoid warning.
18954         * lib/btowc.c: Include <stdlib.h>.
18955         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18956
18957 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18958             Bruno Haible  <bruno@clisp.org>
18959
18960         wchar: Port to NetBSD 1.5.
18961         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18962         * lib/wctype.in.h (WEOF): Likewise.
18963
18964 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18965             Bruno Haible  <bruno@clisp.org>
18966
18967         Port extended stdio to NetBSD 1.5.
18968         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18969         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18970         older.
18971
18972 2010-04-04  Bruno Haible  <bruno@clisp.org>
18973
18974         string: Remove unused substitution.
18975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18976         HAVE_DECL_STRERROR.
18977         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18978
18979 2010-04-04  Bruno Haible  <bruno@clisp.org>
18980
18981         strtod: Avoid a possible C++ test error.
18982         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18983         set REPLACE_STRTOD.
18984
18985 2010-04-04  Bruno Haible  <bruno@clisp.org>
18986
18987         strerror: Update documentation.
18988         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18989
18990 2010-04-04  Bruno Haible  <bruno@clisp.org>
18991
18992         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18993         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18994         _GL_CXXALIAS_SYS_CAST.
18995
18996 2010-04-04  Bruno Haible  <bruno@clisp.org>
18997
18998         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18999         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19000         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19001         REPLACE_FREXPL to 1.
19002         * doc/posix-functions/frexpl.texi: Update documentation.
19003
19004 2010-04-04  Bruno Haible  <bruno@clisp.org>
19005
19006         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19007         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19008
19009 2010-04-04  Bruno Haible  <bruno@clisp.org>
19010
19011         Implement nanosleep for native Windows.
19012         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19013
19014 2010-04-04  Bruno Haible  <bruno@clisp.org>
19015
19016         math: Fix some C++ test errors on Solaris 8.
19017         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19018
19019 2010-04-04  Bruno Haible  <bruno@clisp.org>
19020
19021         math: Fix some C++ test errors on Cygwin.
19022         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19023         truncl): Provide declaration if the system does not have it.
19024         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19025         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19026         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19027         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19028         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19029         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19030         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19031         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19032         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19033         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19034         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19035         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19036         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19037         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19038         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19039         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19041         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19042         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19043         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19044         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19045         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19046
19047 2010-04-04  Bruno Haible  <bruno@clisp.org>
19048
19049         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19050         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19051         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19052         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19053         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19054         * m4/isinf.m4 (gl_ISINF): Likewise.
19055         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19056
19057 2010-04-04  Bruno Haible  <bruno@clisp.org>
19058
19059         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19060         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19061
19062 2010-04-04  Bruno Haible  <bruno@clisp.org>
19063
19064         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19065         * modules/tmpfile (configure.ac): Update.
19066
19067         tmpfile: Fix C++ test error on mingw.
19068         * lib/stdio.in.h (tmpfile): New declaration.
19069         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19070         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19071         * modules/tmpfile (Depends-on): Add stdio.
19072         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19073         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19074         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19075         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19076         REPLACE_TMPFILE.
19077         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19078
19079 2010-04-04  Bruno Haible  <bruno@clisp.org>
19080
19081         ioctl: Fix C++ test error on mingw.
19082         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19083         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19084         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19085
19086 2010-04-03  Bruno Haible  <bruno@clisp.org>
19087
19088         wcwidth: Fix C++ test error on mingw.
19089         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19091         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19092
19093 2010-04-03  Bruno Haible  <bruno@clisp.org>
19094
19095         nanosleep: Fix C++ test error on mingw.
19096         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19097         * lib/time.in.h (nanosleep): Use modern idiom.
19098         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19099         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19100         REPLACE_NANOSLEEP to 1.
19101         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19102         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19103
19104 2010-04-03  Bruno Haible  <bruno@clisp.org>
19105
19106         strptime: Fix C++ test error on mingw.
19107         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19108         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19109         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19110         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19111         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19112         not REPLACE_STRPTIME.
19113         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19114         REPLACE_STRPTIME.
19115
19116 2010-04-03  Bruno Haible  <bruno@clisp.org>
19117
19118         timegm: Fix C++ test error on mingw.
19119         * lib/time.in.h (timegm): Use modern idiom.
19120         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19121         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19122         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19123         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19124
19125 2010-04-03  Bruno Haible  <bruno@clisp.org>
19126
19127         timegm: Assume declaration if function exists.
19128         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19129         if it exists. Don't clobber ac_cv_func_timegm.
19130
19131 2010-04-03  Bruno Haible  <bruno@clisp.org>
19132
19133         time_r: Fix C++ test error on mingw.
19134         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19135         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19136         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19137         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19138         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19139
19140 2010-04-03  Bruno Haible  <bruno@clisp.org>
19141
19142         time_r: Minor updates.
19143         * modules/time_r (Description): Mention the provided functions.
19144         * lib/time_r.c: Don't include <string.h>.
19145         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19146         * doc/posix-functions/localtime_r.texi: Likewise.
19147
19148 2010-04-03  Bruno Haible  <bruno@clisp.org>
19149
19150         time: Fix regression introduced on 2010-03-08.
19151         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19152         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19153
19154 2010-04-03  Jim Meyering  <meyering@redhat.com>
19155
19156         maint.mk: don't silently disable project-specific syntax-check rules
19157         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19158         that they need to convert their project-specific syntax-check rules
19159         to use the new _sc_search_regexp.
19160
19161 2010-04-03  Bruno Haible  <bruno@clisp.org>
19162
19163         fchdir: Fix regression introduced on 2010-03-08.
19164         * lib/unistd.in.h (fchdir): Fix declaration.
19165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19167         REPLACE_FCHDIR.
19168         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19169         REPLACE_FCHDIR.
19170
19171 2010-04-03  Bruno Haible  <bruno@clisp.org>
19172
19173         getpagesize: Fix C++ test error on mingw.
19174         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19175         system does not declare the function.
19176         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19177         declared.
19178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19179         HAVE_DECL_GETPAGESIZE.
19180         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19181
19182 2010-04-03  Bruno Haible  <bruno@clisp.org>
19183
19184         stdio: Make C++ tests work on mingw.
19185         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19186         does not declare the function.
19187
19188 2010-04-03  Bruno Haible  <bruno@clisp.org>
19189
19190         ftello: Fix C++ test error on mingw.
19191         * lib/stdio.in.h (ftello): Use modern idiom.
19192         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19193         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19194         is missing and that it needs to be replaced.
19195         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19197         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19198
19199 2010-04-03  Bruno Haible  <bruno@clisp.org>
19200
19201         fseeko: Fix C++ test error on mingw.
19202         * lib/stdio.in.h (fseeko): Use modern idiom.
19203         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19205         is missing and that it needs to be replaced.
19206         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19208         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19209
19210 2010-04-03  Bruno Haible  <bruno@clisp.org>
19211
19212         mkstemp: Fix C++ test error on mingw.
19213         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19214         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19215         function is missing and that it needs to be replaced.
19216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19217         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19218
19219 2010-04-03  Bruno Haible  <bruno@clisp.org>
19220
19221         stpncpy: Fix C++ test error on mingw.
19222         * lib/string.in.h (stpncpy): Use modern idiom.
19223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19224         function is missing and that it needs to be replaced.
19225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19226         REPLACE_STPNCPY.
19227         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19228
19229 2010-04-03  Bruno Haible  <bruno@clisp.org>
19230
19231         sys_stat: Fix C++ test error on mingw.
19232         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19233         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19234
19235 2010-04-03  Bruno Haible  <bruno@clisp.org>
19236
19237         pty: Update doc.
19238         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19239
19240 2010-04-03  Bruno Haible  <bruno@clisp.org>
19241
19242         unistd: Fix C++ test error on mingw.
19243         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19244
19245 2010-04-03  Bruno Haible  <bruno@clisp.org>
19246
19247         Update doc regarding mingw.
19248         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19249         * doc/glibc-functions/login_tty.texi: Likewise.
19250         * doc/glibc-functions/forkpty.texi: Likewise.
19251
19252 2010-04-03  Bruno Haible  <bruno@clisp.org>
19253
19254         stdlib: Avoid compilation failure of c-strtold on mingw.
19255         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19256
19257 2010-04-03  Bruno Haible  <bruno@clisp.org>
19258
19259         locale: Make C++ tests work on Cygwin and mingw.
19260         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19261         cannot provide the function.
19262         Reported by Simon Josefsson.
19263
19264 2010-04-03  Bruno Haible  <bruno@clisp.org>
19265
19266         localename: Port to MacOS X 10.6.
19267         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19268         memory layout of the locales in MacOS X 10.6 as well.
19269         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19270
19271 2010-04-02  Bruno Haible  <bruno@clisp.org>
19272
19273         gnulib-tool: Ensure that long-running tests are executed last.
19274         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19275         running tests after the one for the other tests.
19276
19277 2010-04-02  Bruno Haible  <bruno@clisp.org>
19278
19279         gnulib-tool: Ensure the tests in the main directory are executed first.
19280         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19281         start with the current directory.
19282
19283 2010-04-02  Bruno Haible  <bruno@clisp.org>
19284
19285         Tests for module 'havelib', moved here from GNU gettext.
19286         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19287         modifications.
19288         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19289         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19290         with modifications.
19291         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19292         modifications.
19293         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19294         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19295         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19296         with modifications.
19297         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19298         with modifications.
19299         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19300         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19301         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19302         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19303         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19304         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19305         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19306         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19307         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19308         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19309         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19310         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19311         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19312         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19313         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19314         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19315         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19316         with modifications.
19317         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19318         with modifications.
19319         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19320         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19321         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19322         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19323         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19324         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19325         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19326         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19327         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19328         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19329         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19330         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19331         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19332         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19333         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19334         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19335         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19336         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19337         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19338         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19339         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19340         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19341         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19342         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19343         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19344         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19345         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19346         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19347         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19348         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19349         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19350         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19351         * tests/havelib/rpathx/rpathx.c: New file, from
19352         gettext/autoconf-lib-link.
19353         * tests/havelib/rpathx/Makefile.am: New file, from
19354         gettext/autoconf-lib-link.
19355         * tests/havelib/rpathx/configure.ac: New file, from
19356         gettext/autoconf-lib-link with modifications.
19357         * tests/havelib/rpathy/rpathy.c: New file, from
19358         gettext/autoconf-lib-link.
19359         * tests/havelib/rpathy/Makefile.am: New file, from
19360         gettext/autoconf-lib-link.
19361         * tests/havelib/rpathy/configure.ac: New file, from
19362         gettext/autoconf-lib-link with modifications.
19363         * tests/havelib/rpathz/rpathz.c: New file, from
19364         gettext/autoconf-lib-link.
19365         * tests/havelib/rpathz/Makefile.am: New file, from
19366         gettext/autoconf-lib-link.
19367         * tests/havelib/rpathz/configure.ac: New file, from
19368         gettext/autoconf-lib-link with modifications.
19369         * tests/havelib/rpathlx/usex.c: New file, from
19370         gettext/autoconf-lib-link.
19371         * tests/havelib/rpathlx/Makefile.am: New file, from
19372         gettext/autoconf-lib-link.
19373         * tests/havelib/rpathlx/configure.ac: New file, from
19374         gettext/autoconf-lib-link with modifications.
19375         * tests/havelib/rpathly/usey.c: New file, from
19376         gettext/autoconf-lib-link.
19377         * tests/havelib/rpathly/Makefile.am: New file, from
19378         gettext/autoconf-lib-link.
19379         * tests/havelib/rpathly/configure.ac: New file, from
19380         gettext/autoconf-lib-link with modifications.
19381         * tests/havelib/rpathlz/usez.c: New file, from
19382         gettext/autoconf-lib-link.
19383         * tests/havelib/rpathlz/Makefile.am: New file, from
19384         gettext/autoconf-lib-link.
19385         * tests/havelib/rpathlz/configure.ac: New file, from
19386         gettext/autoconf-lib-link with modifications.
19387         * tests/havelib/rpathlyx/usey.c: New file, from
19388         gettext/autoconf-lib-link.
19389         * tests/havelib/rpathlyx/Makefile.am: New file, from
19390         gettext/autoconf-lib-link.
19391         * tests/havelib/rpathlyx/configure.ac: New file, from
19392         gettext/autoconf-lib-link with modifications.
19393         * tests/havelib/rpathlzyx/usez.c: New file, from
19394         gettext/autoconf-lib-link.
19395         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19396         gettext/autoconf-lib-link.
19397         * tests/havelib/rpathlzyx/configure.ac: New file, from
19398         gettext/autoconf-lib-link with modifications.
19399         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19400         with modifications.
19401
19402 2010-04-02  Bruno Haible  <bruno@clisp.org>
19403
19404         gnulib-tool: Create distributed built sources also for the tests.
19405         * gnulib-tool (func_create_testdir): Also generate distributed built
19406         sources in the tests directory.
19407
19408 2010-04-02  Bruno Haible  <bruno@clisp.org>
19409
19410         gnulib-tool: Obey user's environment variables.
19411         * gnulib-tool (func_create_testdir): When creating built sources,
19412         respect the environment variables for autoconf, automake, etc. given by
19413         the user.
19414
19415 2010-04-02  Bruno Haible  <bruno@clisp.org>
19416
19417         gnulib-tool: Provide the value of --m4-base to modules.
19418         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19419         of gl_m4_base.
19420
19421 2010-04-02  Eric Blake  <eblake@redhat.com>
19422
19423         maint.mk: fix some fallout
19424         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19425         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19426
19427 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19428
19429         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19430         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19431         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19432         (sc_cast_of_x_alloc_return_value): Likewise.
19433         (sc_cast_of_alloca_return_value): Likewise.
19434         (sc_space_tab): Likewise.
19435         (sc_prohibit_atoi_atof): Likewise.
19436         (sc_prohibit_magic_number_exit): Likewise.
19437         (sc_error_exit_success): Likewise.
19438         (sc_file_system): Likewise.
19439         (sc_prohibit_have_config_h): Likewise.
19440         (sc_require_config_h): Likewise.
19441         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19442         (sc_obsolete_symbols): Likewise.
19443         (sc_changelog): Likewise.
19444         (sc_program_name): Likewise.
19445         (sc_the_the): Likewise.
19446         (sc_trailing_blank): Likewise.
19447         (sc_two_space_separator_in_usage): Likewise.
19448         (sc_useless_cpp_parens): Likewise.
19449         (sc_GPL_version): Likewise.
19450         (sc_GFDL_version): Likewise.
19451         (sc_texinfo_acronym): Likewise.
19452         (sc_prohibit_cvs_keyword): Likewise.
19453         (sc_prohibit_stat_st_blocks): Likewise.
19454         (sc_prohibit_S_IS_definition): Likewise.
19455         (sc_redundant_const): Likewise.
19456         (sc_makefile_TAB_only_indentation): Likewise.
19457         (sc_m4_quote_check): Likewise.
19458         (sc_makefile_path_separator_check): Likewise.
19459         (sc_copyright_check): Likewise.
19460         (sc_Wundef_boolean): Likewise.
19461         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19462
19463         maint.mk: match 0 or more whitespace-before-function-call '('
19464         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19465         that have zero or two-and-more spaces between the function name
19466         and the open parenthesis.
19467         (sc_error_message_warn_fatal): Likewise.
19468         (sc_error_message_uppercase): Likewise.
19469         (sc_error_message_period): Likewise.
19470
19471 2010-03-31  Eric Blake  <eblake@redhat.com>
19472
19473         maint.mk: check for [ as well as test
19474         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19475         Based on a libvirt report by Matthias Bolte.
19476
19477         gnumakefile: don't squelch _version output
19478         * top/GNUmakefile (_version): Create one-shot dependency rather
19479         than using $(shell) when version must be regenerated.
19480         (_autoreconf): Run verbosely, by default.
19481
19482         sys_time: avoid compiler warnings
19483         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19484         unconditional, fixing regression from 2010-03-29.
19485         Reported by Simon Josefsson.
19486
19487 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19488
19489         maint.mk: s/_header_without_use/_sc_header_without_use/
19490         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19491         (sc_prohibit_assert_without_use): Use the new name.
19492         (sc_prohibit_close_stream_without_use): Likewise.
19493         (sc_prohibit_getopt_without_use): Likewise.
19494         (sc_prohibit_quotearg_without_use): Likewise.
19495         (sc_prohibit_quote_without_use): Likewise.
19496         (sc_prohibit_long_options_without_use): Likewise.
19497         (sc_prohibit_inttostr_without_use): Likewise.
19498         (sc_prohibit_ignore_value_without_use): Likewise.
19499         (sc_prohibit_error_without_use): Likewise.
19500         (sc_prohibit_xalloc_without_use): Likewise.
19501         (sc_prohibit_hash_without_use): Likewise.
19502         (sc_prohibit_hash_pjw_without_use): Likewise.
19503         (sc_prohibit_safe_read_without_use): Likewise.
19504         (sc_prohibit_argmatch_without_use): Likewise.
19505         (sc_prohibit_canonicalize_without_use): Likewise.
19506         (sc_prohibit_root_dev_ino_without_use): Likewise.
19507         (sc_prohibit_openat_without_use): Likewise.
19508         (sc_prohibit_c_ctype_without_use): Likewise.
19509         (sc_prohibit_signal_without_use): Likewise.
19510         (sc_prohibit_intprops_without_use): Likewise.
19511
19512 2010-03-30  Eric Blake  <eblake@redhat.com>
19513
19514         maint: improve module indicators
19515         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19516         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19517         columns, and avoid extra macro expansion.
19518
19519         fdopendir: work around FreeBSD bug
19520         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19521         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19522         * modules/dirent (Makefile.am): Substitute it.
19523         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19524         declaration.
19525         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19526         fix.
19527         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19528
19529 2010-03-29  Bruno Haible  <bruno@clisp.org>
19530
19531         Emit #pragma system_header after the inclusion guard, not before.
19532         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19533         guard that spans the entire file, not before. This enables an
19534         optimization in GCC's preprocessor.
19535         * lib/ctype.in.h: Likewise.
19536         * lib/dirent.in.h: Likewise.
19537         * lib/errno.in.h: Likewise.
19538         * lib/float.in.h: Likewise.
19539         * lib/getopt.in.h: Likewise.
19540         * lib/iconv.in.h: Likewise.
19541         * lib/langinfo.in.h: Likewise.
19542         * lib/locale.in.h: Likewise.
19543         * lib/math.in.h: Likewise.
19544         * lib/netdb.in.h: Likewise.
19545         * lib/netinet_in.in.h: Likewise.
19546         * lib/pty.in.h: Likewise.
19547         * lib/sched.in.h: Likewise.
19548         * lib/se-selinux.in.h: Likewise.
19549         * lib/search.in.h: Likewise.
19550         * lib/spawn.in.h: Likewise.
19551         * lib/stdarg.in.h: Likewise.
19552         * lib/stdint.in.h: Likewise.
19553         * lib/string.in.h: Likewise.
19554         * lib/strings.in.h: Likewise.
19555         * lib/sys_file.in.h: Likewise.
19556         * lib/sys_ioctl.in.h: Likewise.
19557         * lib/sys_time.in.h: Likewise.
19558         * lib/sys_times.in.h: Likewise.
19559         * lib/sys_utsname.in.h: Likewise.
19560         * lib/sys_wait.in.h: Likewise.
19561         * lib/sysexits.in.h: Likewise.
19562         * lib/wctype.in.h: Likewise.
19563
19564 2010-03-28  James Youngman  <jay@gnu.org>
19565
19566         save-cwd: don't leak a file descriptor when the caller execs.
19567         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19568         saved file descriptor.
19569         * modules/save-cwd (Depends-on): Depend on cloexec.
19570
19571 2010-03-29  Bruno Haible  <bruno@clisp.org>
19572
19573         Remove vestiges of fts-lgpl module.
19574         * lib/fts_.h: Assume GNULIB_FTS is 1.
19575         * lib/fts.c: Likewise.
19576         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19577
19578 2010-03-28  Bruno Haible  <bruno@clisp.org>
19579
19580         Fix definition of tests witness macro.
19581         * gnulib-tool (func_import): Fix definition of witness macro.
19582
19583 2010-03-28  Bruno Haible  <bruno@clisp.org>
19584
19585         Fix ioctl's protoype on glibc systems.
19586         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19587         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19588         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19589         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19590         signature. If not, arrange to replace the ioctl function.
19591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19592         REPLACE_IOCTL.
19593         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19594         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19595         Reported by Ludovic Courtès <ludo@gnu.org>.
19596
19597 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19598
19599         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19600         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19601         made it so grep -r --include=GLOB* ... did not work.
19602
19603 2010-03-26  Jim Meyering  <meyering@redhat.com>
19604             Eric Blake  <eblake@redhat.com>
19605
19606         maint.mk: prohibit use of test's -o and -a operators
19607         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19608
19609 2010-03-28  Bruno Haible  <bruno@clisp.org>
19610
19611         Remove unused GNULIB_XYZ macro definitions.
19612         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19613         invocation.
19614
19615 2010-03-28  Bruno Haible  <bruno@clisp.org>
19616
19617         Mark privileged tests modules.
19618         * modules/idpriv-drop-tests (Status): New section.
19619         * modules/idpriv-droptemp-tests (Status): New section.
19620
19621 2010-03-28  Bruno Haible  <bruno@clisp.org>
19622
19623         Split C++ tests into separate tests modules.
19624         * modules/dirent-c++-tests: New file, extracted from
19625         modules/dirent-tests.
19626         * modules/dirent-tests: Depend on it.
19627         * modules/fcntl-h-c++-tests: New file, extracted from
19628         modules/fcntl-h-tests.
19629         * modules/fcntl-h-tests: Depend on it.
19630         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19631         * modules/glob-tests: Depend on it.
19632         * modules/iconv-h-c++-tests: New file, extracted from
19633         modules/iconv-h-tests.
19634         * modules/iconv-h-tests: Depend on it.
19635         * modules/langinfo-c++-tests: New file, extracted from
19636         modules/langinfo-tests.
19637         * modules/langinfo-tests: Depend on it.
19638         * modules/locale-c++-tests: New file, extracted from
19639         modules/locale-tests.
19640         * modules/locale-tests: Depend on it.
19641         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19642         * modules/math-tests: Depend on it.
19643         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19644         * modules/pty-tests: Depend on it.
19645         * modules/search-c++-tests: New file, extracted from
19646         modules/search-tests.
19647         * modules/search-tests: Depend on it.
19648         * modules/signal-c++-tests: New file, extracted from
19649         modules/signal-tests.
19650         * modules/signal-tests: Depend on it.
19651         * modules/spawn-c++-tests: New file, extracted from
19652         modules/spawn-tests.
19653         * modules/spawn-tests: Depend on it.
19654         * modules/stdio-c++-tests: New file, extracted from
19655         modules/stdio-tests.
19656         * modules/stdio-tests: Depend on it.
19657         * modules/stdlib-c++-tests: New file, extracted from
19658         modules/stdlib-tests.
19659         * modules/stdlib-tests: Depend on it.
19660         * modules/string-c++-tests: New file, extracted from
19661         modules/string-tests.
19662         * modules/string-tests: Depend on it.
19663         * modules/sys_ioctl-c++-tests: New file, extracted from
19664         modules/sys_ioctl-tests.
19665         * modules/sys_ioctl-tests: Depend on it.
19666         * modules/sys_select-c++-tests: New file, extracted from
19667         modules/sys_select-tests.
19668         * modules/sys_select-tests: Depend on it.
19669         * modules/sys_socket-c++-tests: New file, extracted from
19670         modules/sys_socket-tests.
19671         * modules/sys_socket-tests: Depend on it.
19672         * modules/sys_stat-c++-tests: New file, extracted from
19673         modules/sys_stat-tests.
19674         * modules/sys_stat-tests: Depend on it.
19675         * modules/sys_time-c++-tests: New file, extracted from
19676         modules/sys_time-tests.
19677         * modules/sys_time-tests: Depend on it.
19678         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19679         * modules/time-tests: Depend on it.
19680         * modules/unistd-c++-tests: New file, extracted from
19681         modules/unistd-tests.
19682         * modules/unistd-tests: Depend on it.
19683         * modules/wchar-c++-tests: New file, extracted from
19684         modules/wchar-tests.
19685         * modules/wchar-tests: Depend on it.
19686         * modules/wctype-c++-tests: New file, extracted from
19687         modules/wctype-tests.
19688         * modules/wctype-tests: Depend on it.
19689         Reported by Simon Josefsson.
19690
19691 2010-03-28  Bruno Haible  <bruno@clisp.org>
19692
19693         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19694         * gnulib-tool (func_exists_module): New function, extracted from
19695         func_verify_module.
19696         (func_verify_module): Use it.
19697         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19698         'foo' only if 'foo' exists.
19699         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19700         module.
19701
19702 2010-03-28  Bruno Haible  <bruno@clisp.org>
19703
19704         gnulib-tool: Add support for special categories of tests.
19705         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19706         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19707         (func_usage): Document them.
19708         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19709         inc_unportable_tests, inc_all_tests): New variables.
19710         (func_acceptable): Consider these variables.
19711         (func_modules_transitive_closure): Make it work when the 'Status' field
19712         consists of multiple words.
19713         (func_import): Store and restore the values of inc_cxx_tests,
19714         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19715         inc_all_tests in gnulib-comp.m4.
19716         (func_create_testdir): Set inc_all_tests to true.
19717         * doc/gnulib.texi (Extra tests modules): New section.
19718         Suggested by Jim Meyering.
19719
19720 2010-03-28  Bruno Haible  <bruno@clisp.org>
19721
19722         ansi-c++-opt: Allow turning off the C++ build by default.
19723         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19724         gl_CXX_CHOICE_DEFAULT_NO is defined.
19725         Requested by Eric Blake.
19726
19727 2010-03-28  Bruno Haible  <bruno@clisp.org>
19728
19729         unistd: Avoid #define replacements in C++ mode.
19730         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19731         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19732         setsockopt, shutdown, select): In C++, attach a warning to the function
19733         if possible, rather than #defining the symbol to a dysfunctional alias.
19734         Reported by John W. Eaton <jwe@gnu.org>.
19735
19736 2010-03-28  Bruno Haible  <bruno@clisp.org>
19737
19738         Fix link errors on mingw.
19739         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19740         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19741         $(LIBSOCKET).
19742         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19743         $(LIBSOCKET).
19744
19745 2010-03-28  Bruno Haible  <bruno@clisp.org>
19746             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19747
19748         lib-ignore: Determine different options for different compilers.
19749         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19750         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19751         Add comments.
19752         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19753         * NEWS: Mention the change.
19754
19755 2010-03-27  Bruno Haible  <bruno@clisp.org>
19756
19757         Remove unused GNULIB_XYZ macro definitions.
19758         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19759         * modules/fseek (configure.ac): Likewise.
19760         * modules/ioctl (configure.ac): Likewise.
19761         * modules/open (configure.ac): Likewise.
19762         * modules/stdlib-safer (configure.ac): Likewise.
19763
19764 2010-03-27  Bruno Haible  <bruno@clisp.org>
19765
19766         Add a remark about certain modules.
19767         * modules/malloc (Comment): New section.
19768         * modules/realloc (Comment): Likewise.
19769         * modules/sigpipe (Comment): Likewise.
19770
19771 2010-03-27  Bruno Haible  <bruno@clisp.org>
19772
19773         Resolve conflict between the two kinds of module indicators.
19774         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19775         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19776         * modules/canonicalize (configure.ac): Invoke
19777         gl_MODULE_INDICATOR_FOR_TESTS.
19778         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19779         GNULIB_XYZ.
19780         * tests/test-dirent-c++.cc: Likewise.
19781         * tests/test-dirent-safer.c: Likewise.
19782         * tests/test-dup2.c: Likewise.
19783         * tests/test-fchdir.c: Likewise.
19784         * tests/test-fcntl-h-c++.cc: Likewise.
19785         * tests/test-getopt.c: Likewise.
19786         * tests/test-getopt.h: Likewise.
19787         * tests/test-langinfo-c++.cc: Likewise.
19788         * tests/test-locale-c++.cc: Likewise.
19789         * tests/test-math-c++.cc: Likewise.
19790         * tests/test-pty-c++.cc: Likewise.
19791         * tests/test-search-c++.cc: Likewise.
19792         * tests/test-signal-c++.cc: Likewise.
19793         * tests/test-spawn-c++.cc: Likewise.
19794         * tests/test-stdio-c++.cc: Likewise.
19795         * tests/test-stdlib-c++.cc: Likewise.
19796         * tests/test-string-c++.cc: Likewise.
19797         * tests/test-sys_ioctl-c++.cc: Likewise.
19798         * tests/test-sys_select-c++.cc: Likewise.
19799         * tests/test-sys_socket-c++.cc: Likewise.
19800         * tests/test-sys_stat-c++.cc: Likewise.
19801         * tests/test-sys_time-c++.cc: Likewise.
19802         * tests/test-time-c++.cc: Likewise.
19803         * tests/test-unistd-c++.cc: Likewise.
19804         * tests/test-wchar-c++.cc: Likewise.
19805         * tests/uninorm/test-u8-nfc.c: Likewise.
19806         * tests/uninorm/test-u8-nfd.c: Likewise.
19807         * tests/uninorm/test-u8-nfkc.c: Likewise.
19808         * tests/uninorm/test-u8-nfkd.c: Likewise.
19809         * tests/uninorm/test-u16-nfc.c: Likewise.
19810         * tests/uninorm/test-u16-nfd.c: Likewise.
19811         * tests/uninorm/test-u16-nfkc.c: Likewise.
19812         * tests/uninorm/test-u16-nfkd.c: Likewise.
19813         * tests/uninorm/test-u32-nfc.c: Likewise.
19814         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19815         * tests/uninorm/test-u32-nfd.c: Likewise.
19816         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19817         * tests/uninorm/test-u32-nfkc.c: Likewise.
19818         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19819         * tests/uninorm/test-u32-nfkd.c: Likewise.
19820         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19821         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19822
19823 2010-03-27  Bruno Haible  <bruno@clisp.org>
19824
19825         Distinguish two kinds of module indicators.
19826         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19827         gl_MODULE_INDICATOR.
19828         (gl_MODULE_INDICATOR): New macro.
19829         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19830         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19831         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19832         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19833         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19834         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19835         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19836         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19837         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19838         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19839         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19840         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19842         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19843         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19845         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19846         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19847         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19848         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19849         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19850         * modules/cloexec (configure.ac): Likewise.
19851         * modules/getopt-gnu (configure.ac): Likewise.
19852         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19853         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19854         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19855         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19856
19857 2010-03-27  Bruno Haible  <bruno@clisp.org>
19858
19859         New module description field 'Comment'.
19860         * gnulib-tool: New option --extract-comment.
19861         (func_usage): Document it.
19862         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19863         (func_get_comment): New function.
19864         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19865
19866 2010-03-27  Bruno Haible  <bruno@clisp.org>
19867
19868         Addendum to 2010-02-07 commit.
19869         * gnulib-tool (func_usage): Document --extract-applicability option.
19870
19871 2010-03-27  Bruno Haible  <bruno@clisp.org>
19872
19873         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19874         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19875         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19876         rather than link errors.
19877
19878 2010-03-27  Bruno Haible  <bruno@clisp.org>
19879
19880         Avoid side effects from tests-related modules on the compilation of lib.
19881         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19882         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19883         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19884         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19885         macro.
19886         (func_import): Define a witness macro. Assign it a value that depends
19887         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19888         tests-related modules.
19889         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19890         Reported by Jim Meyering.
19891
19892 2010-03-27  Bruno Haible  <bruno@clisp.org>
19893
19894         Factorize common .m4 code.
19895         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19896         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19897         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19898         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19899         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19900         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19901         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19902         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19903         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19904         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19905         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19906         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19907         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19908         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19909         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19910         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19911         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19912         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19914         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19915         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19916         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19917         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19918         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19919         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19920         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19921         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19922         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19923         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19924         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19925         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19926         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19927
19928 2010-03-27  Bruno Haible  <bruno@clisp.org>
19929
19930         Fix a compilation error on Cygwin with g++ >= 4.3.
19931         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19932         if it is undefined or if we alias it to chmod.
19933         (lstat): Don't warn about the use of this function if it is undefined
19934         or if we alias it to stat.
19935         Reported by Simon Josefsson.
19936
19937 2010-03-27  Bruno Haible  <bruno@clisp.org>
19938
19939         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19940         * modules/getlogin (configure.ac): Update.
19941
19942         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19943         * modules/getlogin_r (configure.ac): Update.
19944
19945         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19947         * modules/inet_ntop (configure.ac): Update.
19948
19949         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19950         * modules/inet_pton (configure.ac): Update.
19951
19952         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19953         * modules/mbslen (configure.ac): Update.
19954
19955         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19956         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19957         * modules/forkpty (configure.ac): Update.
19958         * modules/openpty (configure.ac): Update.
19959
19960 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19961
19962         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19963         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19964
19965 2010-03-25  Eric Blake  <eblake@redhat.com>
19966
19967         maint: use pragma consistently across replacement headers
19968         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19969         * lib/dirent.in.h (system_header): Likewise.
19970         * lib/errno.in.h (system_header): Likewise.
19971         * lib/float.in.h (system_header): Likewise.
19972         * lib/getopt.in.h (system_header): Likewise.
19973         * lib/iconv.in.h (system_header): Likewise.
19974         * lib/inttypes.in.h (system_header): Likewise.
19975         * lib/langinfo.in.h (system_header): Likewise.
19976         * lib/locale.in.h (system_header): Likewise.
19977         * lib/math.in.h (system_header): Likewise.
19978         * lib/netdb.in.h (system_header): Likewise.
19979         * lib/netinet_in.in.h (system_header): Likewise.
19980         * lib/pty.in.h (system_header): Likewise.
19981         * lib/sched.in.h (system_header): Likewise.
19982         * lib/se-selinux.in.h (system_header): Likewise.
19983         * lib/search.in.h (system_header): Likewise.
19984         * lib/spawn.in.h (system_header): Likewise.
19985         * lib/stdarg.in.h (system_header): Likewise.
19986         * lib/stdint.in.h (system_header): Likewise.
19987         * lib/string.in.h (system_header): Likewise.
19988         * lib/strings.in.h (system_header): Likewise.
19989         * lib/sys_file.in.h (system_header): Likewise.
19990         * lib/sys_ioctl.in.h (system_header): Likewise.
19991         * lib/sys_socket.in.h (system_header): Likewise.
19992         * lib/sys_times.in.h (system_header): Likewise.
19993         * lib/sys_utsname.in.h (system_header): Likewise.
19994         * lib/sys_wait.in.h (system_header): Likewise.
19995         * lib/sysexits.in.h (system_header): Likewise.
19996         * lib/unistd.in.h (system_header): Likewise.
19997         * lib/wctype.in.h (system_header): Likewise.
19998
19999         arpa/inet: fix mingw compilation warning
20000         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20001         Reported by Matthew Bolte.
20002
20003 2010-03-25  Bruno Haible  <bruno@clisp.org>
20004
20005         Avoid collision between gnulib wrapper and libintl wrapper.
20006         * lib/printf.c (printf): Don't define if a printf wrapper is already
20007         defined in intl/printf.c.
20008         Reported by Michel Boaventura <michel@michelboaventura.com>.
20009
20010 2010-03-25  Bruno Haible  <bruno@clisp.org>
20011
20012         Use ANSI C.
20013         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20014
20015 2010-03-25  Bruno Haible  <bruno@clisp.org>
20016
20017         Minor formatting changes.
20018         * lib/acosl.c: Insert space before function argument list.
20019         * lib/argz.c: Likewise.
20020         * lib/asinl.c: Likewise.
20021         * lib/expl.c: Likewise.
20022         * lib/gen-uni-tables.c: Likewise.
20023         * lib/gettext.h: Likewise.
20024         * lib/glthread/lock.h: Likewise.
20025         * lib/tanl.c: Likewise.
20026         * lib/uniname/uniname.c: Likewise.
20027         * tests/test-idpriv-drop.c: Likewise.
20028         * tests/test-idpriv-droptemp.c: Likewise.
20029         * tests/test-lock.c: Likewise.
20030         * tests/test-tls.c: Likewise.
20031         * lib/argp-help.c: Insert space before function-like macro argument
20032         list.
20033         * lib/memcmp.c: Likewise.
20034         * tests/test-base64.c: Likewise.
20035         * lib/localename.c: Insert space before sizeof's argument list.
20036         * lib/safe-alloc.h: Likewise.
20037         * lib/file-set.h: Insert space before macro argument list.
20038         * tests/test-argp.c: Likewise.
20039         * lib/argp-namefrob.h: Insert space before function parameter list.
20040         * lib/getaddrinfo.c: Likewise.
20041         * lib/netdb.in.h: Likewise.
20042         * lib/parse-duration.h: Likewise.
20043         * lib/parse-duration.c: Likewise.
20044         * lib/poll.c: Likewise.
20045         * lib/select.c: Likewise.
20046         * lib/trim.h: Likewise.
20047         * tests/test-usleep.c: Likewise.
20048         * lib/ldexpl.c: Insert space before function parameter list and before
20049         function argument list.
20050         * lib/logl.c: Likewise.
20051         * lib/sqrtl.c: Likewise.
20052         * lib/trim.c: Likewise.
20053         * lib/cosl.c: Use GNU style indentation. Insert space before function
20054         argument list.
20055         * lib/sinl.c: Likewise.
20056         * lib/tsearch.c: Insert space after 'for'.
20057         Reported by Jim Meyering.
20058
20059 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20060
20061         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20062         config header before grepping, as it's not present before
20063         autoreconf/configure are run.  Reported by Simon Josefsson.
20064
20065 2010-03-23  Bruno Haible  <bruno@clisp.org>
20066
20067         pt_chown: Make it work with automake < 1.11.
20068         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20069         Reported by Simon Josefsson.
20070
20071 2010-03-23  Bruno Haible  <bruno@clisp.org>
20072
20073         pt_chown: Don't depend on GPLed modules.
20074         * lib/pt_chown.c: Don't include idpriv.h.
20075         (main): Don't drop privileges.
20076         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20077         Reported by Simon Josefsson.
20078
20079 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20080
20081         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20082         suggestions from karl@freefriends.org (Karl Berry).
20083
20084 2010-03-22  Eric Blake  <eblake@redhat.com>
20085
20086         gethostname: further tweaks
20087         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20088         are overriding gethostname.
20089         Suggested by Bruno Haible.
20090
20091 2010-03-21  Bruno Haible  <bruno@clisp.org>
20092
20093         Fix comments.
20094         * lib/forkpty.c (rpl_forkpty): Fix comment.
20095         * lib/openpty.c (rpl_openpty): Likewise.
20096         Reported by Eric Blake.
20097
20098 2010-03-22  Eric Blake  <eblake@redhat.com>
20099
20100         gethostname: fix build on mingw
20101         * lib/unistd.in.h (includes): Work around fact that mingw
20102         <winsock2.h> re-includes <unistd.h>, by avoiding any
20103         redeclarations if we are being included by <winsock2.h>.
20104         Reported by Matthias Bolte.
20105
20106 2010-03-21  Bruno Haible  <bruno@clisp.org>
20107
20108         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20109         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20110         modifications.
20111         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20112         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20113         provide the replacement.
20114         * modules/forkpty (Depends-on): Add openpty, login_tty.
20115         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20116         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20117         * doc/glibc-functions/forkpty.texi: More supported platforms.
20118         * config/srclist.txt: Add forkpty.c (commented).
20119
20120 2010-03-21  Bruno Haible  <bruno@clisp.org>
20121
20122         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20123         (Makefile.am): Verify that PTY_LIB is defined.
20124
20125         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20126
20127 2010-03-21  Bruno Haible  <bruno@clisp.org>
20128
20129         Tests for module 'login_tty'.
20130         * modules/login_tty-tests: New file.
20131         * tests/test-login_tty.c: New file.
20132
20133         New module 'login_tty'.
20134         * lib/login_tty.c: New file.
20135         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20136         * modules/login_tty: New file.
20137         * doc/glibc-functions/login_tty.texi: Mention the new module.
20138
20139 2010-03-21  Bruno Haible  <bruno@clisp.org>
20140
20141         login_tty: Documentation.
20142         * doc/glibc-functions/login_tty.texi: New file.
20143         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20144
20145 2010-03-21  Bruno Haible  <bruno@clisp.org>
20146
20147         pty: Consistent macro naming.
20148         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20149         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20150         * modules/pty (configure.ac): Update.
20151
20152 2010-03-21  Bruno Haible  <bruno@clisp.org>
20153
20154         Tests for openpty: Make stricter.
20155         * tests/test-openpty.c (main): Add test of canonical processing and
20156         erase.
20157         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20158
20159         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20160         * lib/openpty.c (openpty): New replacement function.
20161         * lib/pty.in.h: Include <termios.h>.
20162         (openpty): Update declaration. Add comments.
20163         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20164         is not declared, arrange to provide the replacement. Check for _getpty
20165         and posix_openpt.
20166         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20167         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20168         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20169         * modules/pty-tests (test_pty_c___LDADD): New variable.
20170         * doc/glibc-functions/openpty.texi: More supported platforms.
20171
20172 2010-03-21  Bruno Haible  <bruno@clisp.org>
20173
20174         setenv: Tweaks.
20175         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20176         the test program.
20177         * doc/posix-functions/setenv.texi: Update platforms list.
20178
20179 2010-03-21  Bruno Haible  <bruno@clisp.org>
20180
20181         New module 'unlockpt'.
20182         * lib/unlockpt.c: New file, from glibc with modifications.
20183         * m4/unlockpt.m4: New file.
20184         * modules/unlockpt: New file.
20185         * lib/stdlib.in.h (unlockpt): New declaration.
20186         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20187         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20188         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20189         HAVE_UNLOCKPT.
20190         * doc/posix-functions/unlockpt.texi: Mention the new module.
20191         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20192         * config/srclist.txt: Add unlockpt.c (commented).
20193
20194 2010-03-21  Jim Meyering  <meyering@redhat.com>
20195
20196         maint.mk: prohibit inclusion of "intprops.h" without use
20197         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20198
20199 2010-03-21  Bruno Haible  <bruno@clisp.org>
20200
20201         New module 'grantpt'.
20202         * lib/grantpt.c: New file, from glibc with modifications.
20203         * m4/grantpt.m4: New file.
20204         * modules/grantpt: New file.
20205         * lib/stdlib.in.h (grantpt): New declaration.
20206         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20207         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20208         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20209         HAVE_GRANTPT.
20210         * doc/posix-functions/grantpt.texi: Mention the new module.
20211         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20212         * config/srclist.txt: Add grantpt.c (commented).
20213
20214 2010-03-21  Bruno Haible  <bruno@clisp.org>
20215
20216         New module 'pt_chown'.
20217         * lib/pt_chown.c: New file, from glibc with modifications.
20218         * lib/pty-private.h: New file, from glibc with modifications.
20219         * modules/pt_chown: New file.
20220         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20221
20222 2010-03-21  Bruno Haible  <bruno@clisp.org>
20223
20224         Tests for module 'ptsname'.
20225         * modules/ptsname-tests: New file.
20226         * tests/test-ptsname.c: New file.
20227
20228         New module 'ptsname'.
20229         * lib/ptsname.c: New file, from glibc with modifications.
20230         * m4/ptsname.m4: New file.
20231         * modules/ptsname: New file.
20232         * lib/stdlib.in.h (ptsname): New declaration.
20233         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20234         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20235         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20236         HAVE_PTSNAME.
20237         * doc/posix-functions/ptsname.texi: Mention the new module.
20238         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20239         * config/srclist.txt: Add ptsname.c (commented).
20240
20241 2010-03-21  Bruno Haible  <bruno@clisp.org>
20242
20243         Tests for module 'ttyname_r'.
20244         * modules/ttyname_r-tests: New file.
20245         * tests/test-ttyname_r.c: New file.
20246
20247         New module 'ttyname_r'.
20248         * lib/ttyname_r.c: New file.
20249         * m4/ttyname_r.m4: New file.
20250         * modules/ttyname_r: New file.
20251         * lib/unistd.in.h (ttyname_r): New declaration.
20252         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20253         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20254         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20255         HAVE_TTYNAME_R.
20256         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20257         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20258
20259 2010-03-20  Bruno Haible  <bruno@clisp.org>
20260
20261         signal: Undefine macro definitions in C++ mode.
20262         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20263         sigfillset): Undefine macro definitions from the system header in C++
20264         mode.
20265         Reported by John W. Eaton <jwe@gnu.org>.
20266
20267 2010-03-20  Bruno Haible  <bruno@clisp.org>
20268
20269         Ensure no #include statements inside extern "C" { ... }.
20270         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20271         contain #include statements.
20272         * lib/time.in.h: Likewise.
20273
20274 2010-03-20  Bruno Haible  <bruno@clisp.org>
20275
20276         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20277         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20278         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20279         Reported by John W. Eaton <jwe@gnu.org>.
20280
20281 2010-03-20  Bruno Haible  <bruno@clisp.org>
20282
20283         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20284         Reported by Jim Meyering.
20285
20286 2010-03-20  Bruno Haible  <bruno@clisp.org>
20287
20288         pipe: Set errno upon failure.
20289         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20290         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20291         errno value in error message.
20292
20293 2010-03-20  Bruno Haible  <bruno@clisp.org>
20294             Jim Meyering  <meyering@redhat.com>
20295
20296         lchown: Avoid "unused variable" warning.
20297         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20298
20299 2010-03-20  Bruno Haible  <bruno@clisp.org>
20300
20301         Work around unlink() bug on MacOS X 10.5.6.
20302         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20303         attempting to unlink a parent directory.
20304         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20305         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20306         activate for the replacement function.
20307         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20308
20309 2010-03-20  Bruno Haible  <bruno@clisp.org>
20310
20311         Fix link errors on Solaris 8.
20312         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20313         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20314
20315 2010-03-19  Jim Meyering  <meyering@redhat.com>
20316
20317         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20318         The _LIBC implementation of build_range_exp correctly honors the
20319         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20320         However, the non-_LIBC implementation would ignore that syntax-bit
20321         flag and return REG_ERANGE unconditionally.
20322         This change makes it honor that flag.
20323         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20324         Make two pointer parameters "const".
20325         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20326         (parse_bracket_exp): Update caller.
20327
20328         regex.m4: correct the reversed range endpoint ([b-a]) test
20329         * m4/regex.m4: When requiring that [b-a] evoke failure,
20330         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20331         test pass once again for x86-based systems.
20332
20333 2010-03-19  Bruno Haible  <bruno@clisp.org>
20334
20335         scandir: Fix link error on Solaris 8.
20336         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20337         macros.
20338
20339 2010-03-19  Bruno Haible  <bruno@clisp.org>
20340
20341         getusershell: Fix documentation.
20342         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20343         module.
20344         * doc/glibc-functions/setusershell.texi: Likewise.
20345
20346         getusershell: Provide declaration, missing on Solaris 9.
20347         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20348         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20349         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20350         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20352         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20353         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20354         HAVE_GETUSERSHELL.
20355         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20356
20357 2010-03-19  Bruno Haible  <bruno@clisp.org>
20358
20359         wctype: Provide iswblank function.
20360         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20361         exists and is fine.
20362         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20363         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20364         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20365         * doc/posix-functions/iswblank.texi: Update.
20366
20367 2010-03-19  Bruno Haible  <bruno@clisp.org>
20368
20369         Tests of module 'pty' in C++ mode.
20370         * modules/pty-tests: New file.
20371         * tests/test-pty-c++.cc: New file.
20372         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20373
20374 2010-03-19  Eric Blake  <eblake@redhat.com>
20375
20376         logb: fix documentation
20377         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20378         1.5 declaration bug.
20379
20380         forkpty, openpty: prefer glibc's const-safe prototype
20381         * lib/forkpty.c (rpl_forkpty): New file.
20382         * lib/openpty.c (rpl_openpty): Likewise.
20383         * modules/forkpty (Files): Distribute it.
20384         * modules/openpty (Files): Likewise.
20385         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20386         check...
20387         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20388         replacement for for non-const BSD signature.
20389         * modules/pty (Makefile.am): Substitute witnesses.
20390         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20391         * tests/test-forkpty.c: Update signature check.
20392         * tests/test-openpty.c: Likewise.
20393         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20394         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20395
20396         forkpty, openpty: split functions into new modules
20397         * modules/pty (Makefile.am): Substitute new witnesses.
20398         (Libraries): Move library detection...
20399         * modules/forkpty: ...into new module.
20400         * modules/openpty: Another new module.
20401         * modules/pty-tests: Rename and split...
20402         * modules/forkpty-tests: ...to this...
20403         * modules/openpty-tests: ...and this.
20404         * tests/test-pty.c: Rename and split...
20405         * tests/test-forkpty.c: ...to this...
20406         * tests/test-openpty.c: ...and this.
20407         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20408         (gl_PTY): Split library searching...
20409         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20410         (gl_FORKPTY, gl_OPENPTY): New macros.
20411         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20412         * NEWS: Mention the split.
20413         * MODULES.html.sh (Misc): Document the modules.
20414         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20415         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20416
20417         pty: improve replacement header
20418         * lib/pty.in.h: New file.
20419         * modules/pty (Files): Ship it.
20420         (Makefile.am): Always build replacement.
20421         * m4/pty.m4: Rename...
20422         * m4/pty_h.m4: ...to this.
20423         (gl_PTY): Modernize setting of witness macros; update check of
20424         forkpty to take proper advantage of cache.
20425         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20426
20427         getopt: avoid compiler warning
20428         * lib/getopt.c (attribute_hidden): Remove unused macro.
20429
20430 2010-03-18  Bruno Haible  <bruno@clisp.org>
20431
20432         Fix link errors on Solaris 8.
20433         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20434         * modules/search-tests (test_search_c___LDADD): Likewise.
20435         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20436         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20437         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20438         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20439         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20440         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20441         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20442
20443 2010-03-18  Bruno Haible  <bruno@clisp.org>
20444
20445         Fix bug introduced on 2010-03-14.
20446         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20447         (gl_SPAWN_H): Require it.
20448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20449         Reported by Simon Josefsson.
20450
20451 2010-03-18  Bruno Haible  <bruno@clisp.org>
20452
20453         Fix typo introduced on 2009-12-31.
20454         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20455         posix_spawn_file_actions_adddup2.
20456
20457 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20458         and Eric Blake  <eblake@redhat.com>
20459
20460         test-vc-list-files-git: make more robust
20461         * tests/test-vc-list-files-git.sh: Unset problematic environment
20462         variables.  Chain commands together.
20463
20464 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20465
20466         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20467         `AC_CHECK_DECL' invocation.
20468
20469 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20470
20471         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20472         appears before executable statements. Suggested by Petr Sumbera
20473         <Petr.Sumbera@Sun.COM>.
20474
20475 2010-03-14  Bruno Haible  <bruno@clisp.org>
20476
20477         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20478         portability problems. Instead use a simpler test.
20479         (main): Check that invalid arguments are rejected only on Linux.
20480
20481 2010-03-14  Bruno Haible  <bruno@clisp.org>
20482
20483         Fix bug introduced on 2009-12-31.
20484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20485         gl_PREREQ_SYS_H_WINSOCK2 always.
20486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20487         SYS_SOCKET_H variable.
20488         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20489         Update comments.
20490         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20491         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20492         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20493         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20494         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20495
20496 2010-03-14  Bruno Haible  <bruno@clisp.org>
20497
20498         Fix values returned by sinl, cosl.
20499         * lib/trigl.h: Add specification comments.
20500         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20501         that combines the values from the precomputed table with the values of
20502         the Chebyshev polynomials.
20503
20504 2010-03-14  Bruno Haible  <bruno@clisp.org>
20505
20506         Fix compilation error when modules 'posix_spawn[p]' are not used.
20507         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20508         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20509
20510 2010-03-14  Bruno Haible  <bruno@clisp.org>
20511
20512         Fix compilation error on mingw when module 'time_r' is not used.
20513         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20514         is 1.
20515         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20516         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20517         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20518         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20519
20520 2010-03-14  Bruno Haible  <bruno@clisp.org>
20521
20522         Fix compilation error with Sun C.
20523         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20524         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20525         instead of GCC specific ULONG_LONG_MAX.
20526         * lib/xstrtoll.c: Likewise.
20527         * lib/xstrtoull.c: Likewise.
20528
20529 2010-03-13  Bruno Haible  <bruno@clisp.org>
20530
20531         Allow the user to disable C++ code and tests.
20532         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20533         (gl_PROG_ANSI_CXX): Require it.
20534
20535 2010-03-13  Bruno Haible  <bruno@clisp.org>
20536
20537         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20538         cases.
20539
20540 2010-03-13  Bruno Haible  <bruno@clisp.org>
20541
20542         Test that gnulib does not break the standard C++ headers.
20543         * tests/test-locale-c++2.cc: New file.
20544         * modules/locale-tests (Files): Add it.
20545         (Makefile.am): Compile it for test-locale-c++.
20546         * tests/test-math-c++2.cc: New file.
20547         * modules/math-tests (Files): Add it.
20548         (Makefile.am): Compile it for test-math-c++.
20549         * tests/test-signal-c++2.cc: New file.
20550         * modules/signal-tests (Files): Add it.
20551         (Makefile.am): Compile it for test-signal-c++.
20552         * tests/test-stdio-c++2.cc: New file.
20553         * modules/stdio-tests (Files): Add it.
20554         (Makefile.am): Compile it for test-stdio-c++.
20555         * tests/test-stdlib-c++2.cc: New file.
20556         * modules/stdlib-tests (Files): Add it.
20557         (Makefile.am): Compile it for test-stdlib-c++.
20558         * tests/test-string-c++2.cc: New file.
20559         * modules/string-tests (Files): Add it.
20560         (Makefile.am): Compile it for test-string-c++.
20561         * tests/test-time-c++2.cc: New file.
20562         * modules/time-tests (Files): Add it.
20563         (Makefile.am): Compile it for test-time-c++.
20564         Reported by John W. Eaton <jwe@gnu.org>.
20565
20566 2010-03-13  Bruno Haible  <bruno@clisp.org>
20567
20568         * gnulib-tool (func_usage): Clarify which options are available for
20569         --create-testdir and --create-megatestdir.
20570
20571 2010-03-13  Bruno Haible  <bruno@clisp.org>
20572
20573         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20574         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20575         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20576         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20577         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20578         when appropriate.
20579         Reported by Jim Meyering.
20580
20581 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20582
20583         * gnulib-tool (func_import): Explain origin of code.
20584
20585 2010-03-12  Bruno Haible  <bruno@clisp.org>
20586
20587         Fix problem with automake's definition of CXXLINK.
20588         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20589         Reported by Simon Josefsson and Ludovic Courtès.
20590
20591 2010-03-12  Bruno Haible  <bruno@clisp.org>
20592
20593         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20594         stable releases.
20595
20596 2010-03-11  Bruno Haible  <bruno@clisp.org>
20597
20598         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20599         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20600         whether the system provides one variant or multiple variants of the
20601         function.
20602         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20603         C++ compilers.
20604         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20605         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20606         Reported by Jim Meyering.
20607
20608 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20609
20610         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20611
20612 2010-03-08  Bruno Haible  <bruno@clisp.org>
20613
20614         gnulib-tool: Add support for --libtool in --create-testdir.
20615         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20616         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20617
20618 2010-03-08  Eric Blake  <eblake@redhat.com>
20619
20620         gnulib-tool.texi: mention possibility of git submodule
20621         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20622         submodules.
20623         * doc/.gitignore: Ignore another generated file.
20624
20625 2010-03-08  Karl Berry  <karl@gnu.org>
20626
20627         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20628         of committing gnulib files while skipping others.
20629
20630 2010-03-07  Bruno Haible  <bruno@clisp.org>
20631
20632         Tests of module 'wctype' in C++ mode.
20633         * tests/test-wctype-c++.cc: New file.
20634         * modules/wctype-tests (Files): Add it and tests/signature.h.
20635         (Depends-on): Add ansi-c++-opt.
20636         (Makefile.am): Arrange to compile and run test-wctype-c++.
20637
20638         Tests of module 'wchar' in C++ mode.
20639         * tests/test-wchar-c++.cc: New file.
20640         * modules/wchar-tests (Files): Add it and tests/signature.h.
20641         (Depends-on): Add ansi-c++-opt.
20642         (Makefile.am): Arrange to compile and run test-wchar-c++.
20643         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20644         gl_MODULE_INDICATOR.
20645
20646         Tests of module 'unistd' in C++ mode.
20647         * tests/test-unistd-c++.cc: New file.
20648         * modules/unistd-tests (Files): Add it and tests/signature.h.
20649         (Depends-on): Add ansi-c++-opt.
20650         (Makefile.am): Arrange to compile and run test-unistd-c++.
20651         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20652         gl_MODULE_INDICATOR.
20653
20654         Tests of module 'time' in C++ mode.
20655         * tests/test-time-c++.cc: New file.
20656         * modules/time-tests (Files): Add it and tests/signature.h.
20657         (Depends-on): Add ansi-c++-opt.
20658         (Makefile.am): Arrange to compile and run test-time-c++.
20659         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20660
20661         Tests of module 'sys_time' in C++ mode.
20662         * tests/test-sys_time-c++.cc: New file.
20663         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20664         (Depends-on): Add ansi-c++-opt.
20665         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20666         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20667         gl_MODULE_INDICATOR.
20668
20669         Tests of module 'sys_stat' in C++ mode.
20670         * tests/test-sys_stat-c++.cc: New file.
20671         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20672         (Depends-on): Add ansi-c++-opt.
20673         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20674         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20675         gl_MODULE_INDICATOR.
20676
20677         Tests of module 'sys_socket' in C++ mode.
20678         * tests/test-sys_socket-c++.cc: New file.
20679         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20680         (Depends-on): Add ansi-c++-opt.
20681         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20682         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20683         gl_MODULE_INDICATOR.
20684
20685         Tests of module 'sys_select' in C++ mode.
20686         * tests/test-sys_select-c++.cc: New file.
20687         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20688         (Depends-on): Add ansi-c++-opt.
20689         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20690         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20691         gl_MODULE_INDICATOR.
20692
20693         Tests of module 'sys_ioctl' in C++ mode.
20694         * tests/test-sys_ioctl-c++.cc: New file.
20695         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20696         (Depends-on): Add ansi-c++-opt.
20697         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20698         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20699         gl_MODULE_INDICATOR.
20700
20701         Tests of module 'string' in C++ mode.
20702         * tests/test-string-c++.cc: New file.
20703         * modules/string-tests (Files): Add it and tests/signature.h.
20704         (Depends-on): Add ansi-c++-opt.
20705         (Makefile.am): Arrange to compile and run test-string-c++.
20706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20707         gl_MODULE_INDICATOR.
20708
20709         Tests of module 'stdlib' in C++ mode.
20710         * tests/test-stdlib-c++.cc: New file.
20711         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20712         (Depends-on): Add ansi-c++-opt.
20713         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20714         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20715         gl_MODULE_INDICATOR.
20716
20717         Tests of module 'stdio' in C++ mode.
20718         * tests/test-stdio-c++.cc: New file.
20719         * modules/stdio-tests (Files): Add it and tests/signature.h.
20720         (Depends-on): Add ansi-c++-opt.
20721         (Makefile.am): Arrange to compile and run test-stdio-c++.
20722         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20723         gl_MODULE_INDICATOR.
20724
20725         Tests of module 'spawn' in C++ mode.
20726         * tests/test-spawn-c++.cc: New file.
20727         * modules/spawn-tests (Files): Add it and tests/signature.h.
20728         (Depends-on): Add ansi-c++-opt.
20729         (Makefile.am): Arrange to compile and run test-spawn-c++.
20730         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20731         gl_MODULE_INDICATOR.
20732
20733         Tests of module 'signal' in C++ mode.
20734         * tests/test-signal-c++.cc: New file.
20735         * modules/signal-tests (Files): Add it and tests/signature.h.
20736         (Depends-on): Add ansi-c++-opt.
20737         (Makefile.am): Arrange to compile and run test-signal-c++.
20738         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20739         gl_MODULE_INDICATOR.
20740
20741         Tests of module 'search' in C++ mode.
20742         * tests/test-search-c++.cc: New file.
20743         * modules/search-tests (Files): Add it and tests/signature.h.
20744         (Depends-on): Add ansi-c++-opt.
20745         (Makefile.am): Arrange to compile and run test-search-c++.
20746         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20747         gl_MODULE_INDICATOR.
20748
20749         Tests of module 'math' in C++ mode.
20750         * tests/test-math-c++.cc: New file.
20751         * modules/math-tests (Files): Add it and tests/signature.h.
20752         (Depends-on): Add ansi-c++-opt.
20753         (Makefile.am): Arrange to compile and run test-math-c++.
20754         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20755
20756         Tests of module 'locale' in C++ mode.
20757         * tests/test-locale-c++.cc: New file.
20758         * modules/locale-tests (Files): Add it and tests/signature.h.
20759         (Depends-on): Add ansi-c++-opt.
20760         (Makefile.am): Arrange to compile and run test-locale-c++.
20761         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20762         gl_MODULE_INDICATOR.
20763
20764         Tests of module 'langinfo' in C++ mode.
20765         * tests/test-langinfo-c++.cc: New file.
20766         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20767         (Depends-on): Add ansi-c++-opt.
20768         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20769         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20770         gl_MODULE_INDICATOR.
20771
20772         Tests of module 'iconv-h' in C++ mode.
20773         * tests/test-iconv-h-c++.cc: New file.
20774         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20775         (Depends-on): Add ansi-c++-opt.
20776         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20777
20778         Tests of module 'glob' in C++ mode.
20779         * tests/test-glob-c++.cc: New file.
20780         * modules/glob-tests (Files): Add it.
20781         (Depends-on): Add ansi-c++-opt.
20782         (Makefile.am): Arrange to compile and run test-glob-c++.
20783
20784         Tests of module 'fcntl-h' in C++ mode.
20785         * tests/test-fcntl-h-c++.cc: New file.
20786         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20787         (Depends-on): Add ansi-c++-opt.
20788         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20789         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20790         gl_MODULE_INDICATOR.
20791
20792         Tests of module 'dirent' in C++ mode.
20793         * tests/test-dirent-c++.cc: New file.
20794         * modules/dirent-tests (Files): Add it and tests/signature.h.
20795         (Depends-on): Add ansi-c++-opt.
20796         (Makefile.am): Arrange to compile and run test-dirent-c++.
20797         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20798         gl_MODULE_INDICATOR.
20799
20800         New module 'ansi-c++-opt'.
20801         * modules/ansi-c++-opt: New file.
20802         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20803
20804         Document C++ namespace mode.
20805         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20806
20807         wctype: Avoid #define replacements in C++ mode.
20808         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20809         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20810         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20811         In C++, define a namespaced alias symbol.
20812         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20813         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20814         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20815         rule.
20816
20817         wchar: Avoid #define replacements in C++ mode.
20818         * lib/wchar.in.h: Include c++defs.h.
20819         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20820         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20821         symbol.
20822         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20823         * modules/wchar (Depends-on): Add c++defs.
20824         (Makefile.am): Update wchar.h rule.
20825
20826         unistd: Avoid #define replacements in C++ mode.
20827         * lib/unistd.in.h: Include c++defs.h.
20828         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20829         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20830         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20831         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20832         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20833         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20834         symbol.
20835         (environ): Update.
20836         * modules/unistd (Depends-on): Add c++defs.
20837         (Makefile.am): Update unistd.h rule.
20838
20839         time: Avoid #define replacements in C++ mode.
20840         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20841         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20842         define a namespaced alias symbol.
20843         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20844         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20845         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20846         * modules/time (Depends-on): Add c++defs, warn-on-use.
20847         (Makefile.am): Update time.h rule.
20848         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20849         * modules/nanosleep (configure.ac): Likewise.
20850         * modules/strptime (configure.ac): Likewise.
20851         * modules/timegm (configure.ac): Likewise.
20852
20853         sys_time: Avoid #define replacements in C++ mode.
20854         * lib/sys_time.in.h: Include c++defs.h.
20855         (gettimeofday): In C++, define a namespaced alias symbol.
20856         * modules/sys_time (Depends-on): Add c++defs.
20857         (Makefile.am): Update sys/time.h rule.
20858
20859         sys_stat: Avoid #define replacements in C++ mode.
20860         * lib/sys_stat.in.h: Include c++defs.h.
20861         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20862         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20863         namespaced alias symbol.
20864         In C++, define a namespaced alias symbol.
20865         * modules/sys_stat (Depends-on): Add c++defs.
20866         (Makefile.am): Update sys/stat.h rule.
20867
20868         sys_socket: Avoid #define replacements in C++ mode.
20869         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20870         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20871         definitions also when the system has a <sys/socket.h>.
20872         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20873         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20874         In C++, define a namespaced alias symbol.
20875         * modules/sys_socket (Depends-on): Add c++defs.
20876         (Makefile.am): Update sys/socket.h rule.
20877
20878         sys_select: Avoid #define replacements in C++ mode.
20879         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20880         definitions also when the system has a <sys/select.h>.
20881         (select): In C++, define a namespaced alias symbol.
20882         * modules/sys_select (Depends-on): Add c++defs.
20883         (Makefile.am): Update sys/select.h rule.
20884
20885         sys_ioctl: Avoid #define replacements in C++ mode.
20886         * lib/sys_ioctl.in.h: Include c++defs.h.
20887         (ioctl): In C++, define a namespaced alias symbol.
20888         * modules/sys_ioctl (Depends-on): Add c++defs.
20889         (Makefile.am): Update sys/ioctl.h rule.
20890
20891         string: Avoid #define replacements in C++ mode.
20892         * lib/string.in.h: Include c++defs.h.
20893         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20894         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20895         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20896         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20897         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20898         * modules/string (Depends-on): Add c++defs.
20899         (Makefile.am): Update string.h rule.
20900
20901         stdlib: Avoid #define replacements in C++ mode.
20902         * lib/stdlib.in.h: Include c++defs.h.
20903         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20904         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20905         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20906         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20907         symbol.
20908         * modules/stdlib (Depends-on): Add c++defs.
20909         (Makefile.am): Update stdlib.h rule.
20910
20911         stdio: Avoid #define replacements in C++ mode.
20912         * lib/stdio.in.h: Include c++defs.h.
20913         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20914         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20915         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20916         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20917         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20918         namespaced alias symbol.
20919         * modules/stdio (Depends-on): Add c++defs.
20920         (Makefile.am): Update stdio.h rule.
20921
20922         spawn: Avoid #define replacements in C++ mode.
20923         * lib/spawn.in.h: Include c++defs.h.
20924         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20925         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20926         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20927         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20928         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20929         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20930         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20931         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20932         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20933         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20934         In C++, define a namespaced alias symbol.
20935         * modules/spawn (Depends-on): Add c++defs.
20936         (Makefile.am): Update spawn.h rule.
20937
20938         signal: Avoid #define replacements in C++ mode.
20939         * lib/signal.in.h: Include c++defs.h.
20940         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20941         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20942         namespaced alias symbol.
20943         * modules/signal (Depends-on): Add c++defs.
20944         (Makefile.am): Update signal.h rule.
20945
20946         search: Avoid #define replacements in C++ mode.
20947         * lib/search.in.h: Include c++defs.h.
20948         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20949         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20950         symbol.
20951         * modules/search (Depends-on): Add c++defs.
20952         (Makefile.am): Update search.h rule.
20953
20954         math: Avoid #define replacements in C++ mode.
20955         * lib/math.in.h: Include c++defs.h.
20956         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20957         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20958         trunc, truncl): In C++, define a namespaced alias symbol.
20959         * modules/math (Depends-on): Add c++defs.
20960         (Makefile.am): Update math.h rule.
20961
20962         locale: Avoid #define replacements in C++ mode.
20963         * lib/locale.in.h: Include c++defs.h.
20964         (duplocale): In C++, define a namespaced alias symbol.
20965         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20966         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20967         * modules/locale (Depends-on): Add c++defs.
20968         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20969
20970         langinfo: Avoid #define replacements in C++ mode.
20971         * lib/langinfo.in.h: Include c++defs.h.
20972         (nl_langinfo): In C++, define a namespaced alias symbol.
20973         * modules/langinfo (Depends-on): Add c++defs.
20974         (Makefile.am): Update langinfo.h rule.
20975
20976         iconv-h: Avoid #define replacements in C++ mode.
20977         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20978         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20979         symbol.
20980         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20981         whenever iconv is present.
20982         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20983         (Makefile.am): Update iconv.h rule.
20984
20985         glob: Avoid #define replacements in C++ mode.
20986         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20987         (_gl_glob_errfunc_fn): New type.
20988         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20989         symbol.
20990         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20991         (Makefile.am): Update glob.h rule.
20992
20993         fcntl-h: Avoid #define replacements in C++ mode.
20994         * lib/fcntl.in.h: Include c++defs.h.
20995         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20996         * modules/fcntl-h (Depends-on): Add c++defs.
20997         (Makefile.am): Update fcntl.h rule.
20998
20999         dirent: Avoid #define replacements in C++ mode.
21000         * lib/dirent.in.h: Include c++defs.h.
21001         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21002         namespaced alias symbol.
21003         (dirfd): Update declaration.
21004         * modules/dirent (Depends-on): Add c++defs.
21005         (Makefile.am): Update dirent.h rule.
21006
21007         ctype: Make it usable in C++ code.
21008         * lib/ctype.in.h: Include c++defs.h.
21009         (isblank): Declare as extern "C".
21010         * modules/ctype (Depends-on): Add c++defs.
21011         (Makefile.am): Update ctype.h rule.
21012
21013         New module 'c++defs'.
21014         * modules/c++defs: New file.
21015         * build-aux/c++defs.h: New file.
21016         Reported by John W. Eaton <jwe@gnu.org>.
21017
21018 2010-03-07  Bruno Haible  <bruno@clisp.org>
21019
21020         logb: Provide missing declaration for Cygwin.
21021         * lib/math.in.h (logb): New declaration.
21022         * m4/logb.m4: New file.
21023         * modules/logb (Files): Add m4/logb.m4.
21024         (Depends-on): Add math.
21025         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21026         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21028         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21029         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21030
21031 2010-03-07  Bruno Haible  <bruno@clisp.org>
21032
21033         Fix test-cond link error.
21034         * tests/test-cond.c: Include <stdio.h>.
21035
21036 2010-03-07  Bruno Haible  <bruno@clisp.org>
21037
21038         Fix test-dirent-safer link error.
21039         * modules/dirent-safer-tests (Makefile.am): Define
21040         test_dirent_safer_LDADD.
21041
21042 2010-03-07  Bruno Haible  <bruno@clisp.org>
21043
21044         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21045         among default module list.
21046
21047 2010-03-07  Bruno Haible  <bruno@clisp.org>
21048
21049         Fix link error on platforms with GNU libiconv.
21050         * modules/unistr/u8-strcoll-tests (Makefile): Define
21051         test_u8_strcoll_LDADD.
21052         * modules/unistr/u16-strcoll-tests (Makefile): Define
21053         test_u16_strcoll_LDADD.
21054         * modules/unistr/u32-strcoll-tests (Makefile): Define
21055         test_u32_strcoll_LDADD.
21056
21057 2010-03-07  Bruno Haible  <bruno@clisp.org>
21058
21059         Use POSIX declarations for socket functions.
21060         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21061         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21062         rpl_sendto): Change declaration to match POSIX.
21063         * lib/connect.c (rpl_connect): Likewise.
21064         * lib/accept.c (rpl_accept): Likewise.
21065         * lib/bind.c (rpl_bind): Likewise.
21066         * lib/getpeername.c (rpl_getpeername): Likewise.
21067         * lib/getsockname.c (rpl_getsockname): Likewise.
21068         * lib/recv.c (rpl_recv): Likewise.
21069         * lib/send.c (rpl_send): Likewise.
21070         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21071         * lib/sendto.c (rpl_sendto): Likewise.
21072
21073 2010-03-06  Bruno Haible  <bruno@clisp.org>
21074
21075         Clarify access, euidaccess, faccessat.
21076         * doc/posix-functions/faccessat.texi: Mention security problem under
21077         "Other problems", not "Portability problems".
21078         * doc/posix-functions/access.texi: Likewise. Mention a related security
21079         problem.
21080         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21081         * lib/euidaccess.c: Add comments about platforms.
21082         * lib/unistd.in.h (access, euidaccess): Add warnings.
21083
21084 2010-03-07  Bruno Haible  <bruno@clisp.org>
21085
21086         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21087         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21088         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21089         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21090         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21091         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21092         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21093         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21094         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21095         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21096         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21097         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21098         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21099         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21100         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21101         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21102         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21103         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21104         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21105         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21106         Likewise.
21107         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21108         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21109         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21110         Likewise.
21111         * tests/test-spawn.c (main): Make it work when
21112         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21113
21114 2010-03-07  Bruno Haible  <bruno@clisp.org>
21115
21116         Fix incorrect Makefile.am generation in German locale.
21117         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21118         Execute sed command with character range in C locale.
21119
21120 2010-03-06  Bruno Haible  <bruno@clisp.org>
21121
21122         Tests for module 'iconv-h'.
21123         * modules/iconv-h-tests: New file.
21124         * tests/test-iconv-h.c: New file.
21125
21126         New module 'iconv-h'.
21127         * modules/iconv-h: New file.
21128         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21129         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21130         (configure.ac): Remove gl_ICONV_H.
21131         (Makefile.am): Remove rule for iconv.h.
21132
21133 2010-03-06  Bruno Haible  <bruno@clisp.org>
21134
21135         More consistent naming of *.m4 files.
21136         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21137         * modules/wctype (Files): Update.
21138
21139         More consistent naming of *.m4 files.
21140         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21141         * modules/wchar (Files): Update.
21142
21143 2010-03-06  Jim Meyering  <meyering@redhat.com>
21144
21145         euidaccess: relax license to LGPLv2+
21146         * modules/euidaccess (License): Relax to LGPLv2+.
21147
21148 2010-03-06  Bruno Haible  <bruno@clisp.org>
21149
21150         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21151         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21152         (Makefile.am): Augment lib_SOURCES instead.
21153
21154 2010-03-04  Jim Meyering  <meyering@redhat.com>
21155
21156         utime: remove obsolete module
21157         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21158         unnecessary for years, and has been marked as obsolete for 10 months.
21159         * modules/utime: Remove file.
21160         * lib/utime.c: Remove file.
21161         * m4/utime.m4: Remove file.
21162         * m4/utimes-null.m4: Remove file.
21163         * doc/posix-functions/utime.texi (utime): Remove reference to
21164         the module.  Move the sole "fixed by gnulib" item into the
21165         "problems not fixed by Gnulib" list.
21166         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21167
21168 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21169
21170         * modules/exit (License): Relax license to LGPLv2+.
21171         (Status): Mark as obsolete.
21172         * NEWS: Mention deprecated 'exit' module.
21173         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21174         of now obsolete 'exit'.
21175
21176 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21177
21178         fts-lgpl: remove unused module
21179         * modules/fts-lgpl: Remove.
21180         * MODULES.html.sh (func_all_modules): Adjust.
21181         * check-module (find_included_lib_files): Adjust.
21182         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21183
21184 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21185
21186         copy-acl: enhance Solaris ACL error handling
21187         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21188         * lib/set-mode-acl.c (qset_acl): Likewise.
21189
21190 2010-03-02  Bruno Haible  <bruno@clisp.org>
21191
21192         spawn: Don't override the system defined values on FreeBSD 8.
21193         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21194         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21195         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21196         if HAVE_POSIX_SPAWN is 1.
21197         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21198
21199 2010-03-01  Bruno Haible  <bruno@clisp.org>
21200
21201         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21202         regarding Automake.
21203
21204 2010-02-25  Bruno Haible  <bruno@clisp.org>
21205
21206         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21207         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21208         setting, not afterwards.
21209         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21210
21211 2010-02-24  Eric Blake  <eblake@redhat.com>
21212
21213         bootstrap, git-version-gen: use timestamp
21214         * build-aux/git-version-gen (scriptversion): Force UTC.
21215         * build-aux/bootstrap (scriptversion): New variable.
21216
21217         bootstrap: allow older git
21218         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21219         older than 1.6.4.  Requested by the libvirt project.
21220
21221 2010-02-23  Eric Blake  <eblake@redhat.com>
21222
21223         warn-on-use: work with old autoconf
21224         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21225         AS_VAR semantics of autoconf 2.60.
21226         Reported by Bruno Haible.
21227
21228         bootstrap: improve some comments
21229         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21230         clarification comments.
21231
21232         gettimeofday: provide correct function
21233         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21234         when replacement is declared, otherwise provide gettimeofday.
21235         Reported by Michael Goffioul.
21236
21237 2010-02-23  Jim Meyering  <meyering@redhat.com>
21238
21239         lib-ignore: relax license to "unlimited", not LGPLv2+
21240         * modules/lib-ignore (License): Relax to "unlimited".
21241
21242 2010-02-23  Jim Meyering  <meyering@redhat.com>
21243
21244         lib-ignore: relax license to LGPLv2+
21245         * modules/lib-ignore (License): Relax to LGPLv2+.
21246
21247 2010-02-22  Eric Blake  <eblake@redhat.com>
21248
21249         lseek: avoid bash 3.2 broken pipe bug
21250         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21251         warning from bash 3.2.
21252         Reported by Ben Pfaff, with analysis from Bruno Haible.
21253
21254         bootstrap: support non-FSF copyright holder
21255         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21256         bootstrap.conf override of COPYRIGHT_HOLDER.
21257         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21258
21259         bootstrap: interoperate with gettext 0.14.1
21260         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21261
21262         bootstrap: allow for alternate submodule location
21263         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21264         hardcoding submodule location.
21265         (gnulib_mk): Allow direct use of Makefile.am.
21266
21267         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21268         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21269         rather than reconfiguring where the submodule points.
21270
21271         gettimeofday: restore support for platforms that lack function
21272         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21273         replacement if function is missing.
21274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21275         * modules/sys_time (Makefile.am): Substitute it.
21276         * lib/sys_time.in.h (gettimeofday): Check it.
21277         Reported by Michael Goffioul.
21278
21279 2010-02-21  Bruno Haible  <bruno@clisp.org>
21280
21281         * lib/stdio.in.h (obstack_printf): Fix typo.
21282
21283 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21284
21285         vc-list-files: use bzr ls's -R option
21286         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21287         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21288
21289 2010-02-21  Jim Meyering  <meyering@redhat.com>
21290
21291         init.sh: fix EXEEXT shims to work also for names like test-prog
21292         * tests/init.sh: Re-exec a better shell, when needed.
21293         If the current shell lacks support for posix $(...), an init.sh-using
21294         test will now try to find a shell that supports that.  If EXEEXT is
21295         nonempty, we also require support for hyphen-in-alias-name and shell
21296         substitutions like ${var#glob}.  Failure to find such a shell results
21297         in a skipped test.
21298
21299 2010-02-21  Bruno Haible  <bruno@clisp.org>
21300
21301         Really work around around "broken pipe" error message from bash 3.2.
21302         * gnulib-tool (func_reset_sigpipe): Remove function.
21303         (echo): In bash 3.2, define to a function that uses printf.
21304         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21305
21306 2010-02-20  Bruno Haible  <bruno@clisp.org>
21307
21308         Restore support for automake 1.9.6 with autoconf 2.61.
21309         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21310         Reported by James Youngman <jay@gnu.org>.
21311
21312 2010-02-20  Bruno Haible  <bruno@clisp.org>
21313
21314         Improve *printf warning condition.
21315         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21316         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21317         and the function is overridden due to SIGPIPE emulation.
21318
21319 2010-02-20  Bruno Haible  <bruno@clisp.org>
21320
21321         * lib/stdio.in.h: Tweak comments.
21322
21323 2010-02-19  Bruno Haible  <bruno@clisp.org>
21324
21325         Make it easier to find modules. New gnulib-tool option '--find'.
21326         * gnulib-tool: New option --find.
21327         (func_usage): Document it.
21328         (func_sanitize_modulelist): New function, extracted from
21329         func_all_modules.
21330         (func_all_modules): Invoke it.
21331         * doc/gnulib-tool.texi (Which modules?): New node.
21332
21333 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21334
21335         * lib/sys_select.in.h: Provide select replacement even if
21336         sys/select.h exists on a system, for Interix.
21337
21338 2010-02-18  Jim Meyering  <meyering@redhat.com>
21339
21340         init.sh: don't use $(...) just yet
21341         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21342         to accommodate e.g., Solaris' /bin/sh.
21343
21344 2010-02-17  Bruno Haible  <bruno@clisp.org>
21345
21346         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21347         Reported by Ludovic Courtès <ludo@gnu.org>.
21348
21349 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21350
21351         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21352         linking with -lintl.
21353
21354 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21355
21356         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21357         if not provided by the system's netdb.h.  Reported by
21358         ludo@gnu.org (Ludovic Courtès).
21359
21360 2010-02-15  Jim Meyering  <meyering@redhat.com>
21361
21362         init.sh: improve portability and efficiency
21363         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21364         "dummy" in a for loop.
21365         Use '!', not '^' to select the complement of a character set used
21366         in a "case" statement.
21367         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21368         Suggestions from Eric Blake.
21369
21370         init.sh: automatically accommodate programs with the .exe suffix
21371         Automatically arrange for an invocation of "prog" to execute the
21372         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21373         may use the simpler "prog", yet still work when built on a system
21374         that requires specifying the added suffix.
21375         Do this by constructing a function named "prog" that invokes
21376         "prog.exe" for each .exe file in selected directories.
21377         * tests/init.sh (find_exe_basenames_): New function.
21378         (create_exe_shim_functions_): New function.
21379         (path_prepend_): Use it.
21380
21381         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21382         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21383         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21384
21385 2010-02-14  Jim Meyering  <meyering@redhat.com>
21386
21387         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21388         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21389         (sc_prohibit_hash_pjw_without_use): New rule.
21390
21391         maint.mk: allow the default upload destination dir to be overridden
21392         * top/maint.mk (upload_dest_dir_): Define with a default that
21393         preserves the status quo.
21394         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21395         Reported by Peter Simons.
21396
21397         maint.mk: prohibit inclusion of "hash.h" without_use
21398         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21399
21400 2010-02-10  Jim Meyering  <meyering@redhat.com>
21401
21402         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21403         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21404
21405 2010-02-09  Eric Blake  <ebb9@byu.net>
21406         and Bruno Haible  <bruno@clisp.org>
21407
21408         obstack-printf-posix: ensure declaration
21409         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21410         extracted from gl_FUNC_OBSTACK_PRINTF.
21411         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21412         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21413         Likewise.
21414         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21415         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21416         0.
21417
21418 2010-02-08  Bruno Haible  <bruno@clisp.org>
21419
21420         gnulib-tool: Fix typo in 2010-02-07 commit.
21421         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21422         Reported by Eric Blake.
21423
21424 2010-02-07  Bruno Haible  <bruno@clisp.org>
21425
21426         gnulib-tool: Fix up caching patches.
21427         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21428         option --no-cache. Use associative arrays when supported by the shell.
21429         (sed_comments): New variable.
21430         (modcache): Renamed from do_cache.
21431         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21432         abbreviate unnecessarily.
21433         (have_associative): New variable.
21434         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21435         way also for ksh and zsh.
21436         (func_init_sed_convert_to_cache_statements): New function, extracted
21437         from func_cache_lookup_module. Add support for associative arrays.
21438         Don't set the c_MODULE_cached variable here. Ignore all lines before
21439         the first field header. Remove only the final newline, not all trailing
21440         newlines. Support empty fields correctly. Limit the use of 'eval' to
21441         assignments.
21442         (func_get_description, func_get_status, func_get_notice,
21443         func_get_applicability, func_get_filelist, func_get_dependencies,
21444         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21445         func_get_automake_snippet, func_get_include_directive,
21446         func_get_link_directive, func_get_license, func_get_maintainer):
21447         Update documentation. List the unoptimized code first. Add support for
21448         associative arrays. Limit the use of 'eval' to assignments.
21449         (func_get_applicability): Undo stylistic pessimisations.
21450         (func_get_automake_snippet, func_get_include_directive): Reduce code
21451         duplication.
21452         (func_modules_transitive_closure, func_modules_add_dummy,
21453         func_modules_notice, func_modules_to_filelist, func_add_file,
21454         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21455         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21456         func_create_testdir, func_create_megatestdir): Update documentation.
21457
21458 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21459
21460         * gnulib-tool (func_cache_lookup_module): Store the module name
21461         belonging to the cache variable; error out if two different
21462         module names map to the same cache variable name.
21463
21464 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21465
21466         gnulib-tool: Make caching optional.
21467         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21468         Update matching short versions of --no-changelog.
21469         (func_usage): Update.
21470         (sed_extract_cache_prog): Renamed from ...
21471         (sed_extract_prog): ... this; revert to old extraction script.
21472         (func_get_description, func_get_status)
21473         (func_get_notice, func_get_applicability, func_get_filelist)
21474         (func_get_dependencies, func_get_autoconf_early_snippet)
21475         (func_get_autoconf_snippet, func_get_automake_snippet)
21476         (func_get_include_directive, func_get_link_directive)
21477         (func_get_license, func_get_maintainer): If $do_cache is false,
21478         use old, non-caching extraction scripts.
21479         Suggestion by Bruno Haible.
21480
21481 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21482
21483         gnulib-tool: cache module metainformation.
21484         * gnulib-tool (sed_extract_prog): Match newline before each
21485         header, and rewrite header to a shell variable suffix.
21486         (func_cache_var, func_cache_lookup_module): New functions,
21487         to turn a module name into a cache variable prefix, and to
21488         look up and cache module metainformation.
21489         (func_get_description, func_get_status)
21490         (func_get_notice, func_get_applicability, func_get_filelist)
21491         (func_get_dependencies, func_get_autoconf_early_snippet)
21492         (func_get_autoconf_snippet, func_get_automake_snippet)
21493         (func_get_include_directive, func_get_link_directive)
21494         (func_get_license, func_get_maintainer): Use
21495         func_cache_lookup_module.
21496
21497 2010-02-07  Bruno Haible  <bruno@clisp.org>
21498
21499         fnctl: Fix missing dependency.
21500         * modules/fcntl (Depends-on): Add getdtablesize.
21501         Reported by John W. Eaton <jwe@gnu.org>.
21502
21503 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21504
21505         Argp: fix recognition of short alias options.
21506
21507         * lib/argp-parse.c (convert_options): Fix improper use of
21508         `|' between character values.
21509         * tests/test-argp.c (group1_option): New alias option
21510         --read (-r).
21511         (group1_parser): Special handling for 'r'.
21512         (test15): New test case.
21513         (test_fun): Add test15.
21514         * tests/test-argp-2.sh: Update expected --help and --usage
21515         outputs.
21516
21517 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21518
21519         * tests/test-argp.c: Fix indentation.
21520
21521 2010-02-04  Eric Blake  <ebb9@byu.net>
21522
21523         gettimeofday: expose type of second argument
21524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21525         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21526         * tests/test-gettimeofday.c: Use it to silence warning.
21527         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21528         the issue.
21529
21530 2010-02-03  Jim Meyering  <meyering@redhat.com>
21531
21532         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21533         * lib/regcomp.c (TYPE_SIGNED): Define.
21534         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21535
21536         regcomp.c: avoid a new -Wshadow warning
21537         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21538
21539 2010-02-01  Jim Meyering  <meyering@redhat.com>
21540
21541         removing useless parentheses in cpp #define directives
21542         For motivation, see commit c0221df4, "define STREQ(a,b)
21543         consistently, removing useless parentheses"
21544         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21545         * lib/mountlist.c (MNT_IGNORE): Likewise.
21546         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21547
21548 2010-02-01  Eric Blake  <ebb9@byu.net>
21549
21550         sys_time: use link-warning
21551         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21552         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21553         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21554         * modules/sys_time (Depends-on): Add warn-on-use.
21555         (Makefile.am): Always build replacement.
21556         (configure.ac): Update substitutions.
21557         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21558         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21559         bother with SYS_TIME_H.
21560         * modules/gettimeofday (configure.ac): Declare indicator.
21561         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21562         in use.
21563
21564         closein-tests: silence compiler warning
21565         * tests/test-closein.c (main): Ignore fread result.
21566         * modules/closein-tests (Depends-on): Add ignore-value.
21567
21568         tests: silence warning about system return
21569         * tests/test-areadlink-with-size.c (main): Ignore system result.
21570         * tests/test-areadlink.c (main): Likewise.
21571         * tests/test-areadlinkat-with-size.c (main): Likewise.
21572         * tests/test-areadlinkat.c (main): Likewise.
21573         * tests/test-canonicalize-lgpl.c (main): Likewise.
21574         * tests/test-canonicalize.c (main): Likewise.
21575         * tests/test-chown.c (main): Likewise.
21576         * tests/test-fchownat.c (main): Likewise.
21577         * tests/test-fdutimensat.c (main): Likewise.
21578         * tests/test-fstatat.c (main): Likewise.
21579         * tests/test-futimens.c (main): Likewise.
21580         * tests/test-lchown.c (main): Likewise.
21581         * tests/test-link.c (main): Likewise.
21582         * tests/test-linkat.c (main): Likewise.
21583         * tests/test-lstat.c (main): Likewise.
21584         * tests/test-mkdir.c (main): Likewise.
21585         * tests/test-mkdirat.c (main): Likewise.
21586         * tests/test-mkfifo.c (main): Likewise.
21587         * tests/test-mkfifoat.c (main): Likewise.
21588         * tests/test-mknod.c (main): Likewise.
21589         * tests/test-readlink.c (main): Likewise.
21590         * tests/test-remove.c (main): Likewise.
21591         * tests/test-rename.c (main): Likewise.
21592         * tests/test-renameat.c (main): Likewise.
21593         * tests/test-rmdir.c (main): Likewise.
21594         * tests/test-symlink.c (main): Likewise.
21595         * tests/test-symlinkat.c (main): Likewise.
21596         * tests/test-unlink.c (main): Likewise.
21597         * tests/test-unlinkat.c (main): Likewise.
21598         * tests/test-utimens.c (main): Likewise.
21599         * tests/test-utimensat.c (main): Likewise.
21600         * modules/areadlink-tests (Depends-on): Add ignore-value.
21601         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21602         * modules/areadlinkat-tests (Depends-on): Likewise.
21603         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21604         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21605         * modules/canonicalize-tests (Depends-on): Likewise.
21606         * modules/chown-tests (Depends-on): Likewise.
21607         * modules/fdutimensat-tests (Depends-on): Likewise.
21608         * modules/futimens-tests (Depends-on): Likewise.
21609         * modules/lchown-tests (Depends-on): Likewise.
21610         * modules/link-tests (Depends-on): Likewise.
21611         * modules/linkat-tests (Depends-on): Likewise.
21612         * modules/lstat-tests (Depends-on): Likewise.
21613         * modules/mkdir-tests (Depends-on): Likewise.
21614         * modules/mkfifo-tests (Depends-on): Likewise.
21615         * modules/mkfifoat-tests (Depends-on): Likewise.
21616         * modules/mknod-tests (Depends-on): Likewise.
21617         * modules/openat-tests (Depends-on): Likewise.
21618         * modules/readlink-tests (Depends-on): Likewise.
21619         * modules/remove-tests (Depends-on): Likewise.
21620         * modules/rename-tests (Depends-on): Likewise.
21621         * modules/renameat-tests (Depends-on): Likewise.
21622         * modules/rmdir-tests (Depends-on): Likewise.
21623         * modules/symlink-tests (Depends-on): Likewise.
21624         * modules/symlinkat-tests (Depends-on): Likewise.
21625         * modules/unlink-tests (Depends-on): Likewise.
21626         * modules/utimens-tests (Depends-on): Likewise.
21627         * modules/utimensat-tests (Depends-on): Likewise.
21628
21629 2010-01-31  Bruno Haible  <bruno@clisp.org>
21630
21631         Perform the same test for many <math.h> functions.
21632         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21633         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21634         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21635         of gl_MATHFUNC.
21636         * modules/acos (configure.ac): Likewise.
21637         * modules/asin (configure.ac): Likewise.
21638         * modules/atan (configure.ac): Likewise.
21639         * modules/atan2 (configure.ac): Likewise.
21640         * modules/cbrt (configure.ac): Likewise.
21641         * modules/copysign (configure.ac): Likewise.
21642         * modules/cos (configure.ac): Likewise.
21643         * modules/cosh (configure.ac): Likewise.
21644         * modules/erf (configure.ac): Likewise.
21645         * modules/erfc (configure.ac): Likewise.
21646         * modules/exp (configure.ac): Likewise.
21647         * modules/fmod (configure.ac): Likewise.
21648         * modules/hypot (configure.ac): Likewise.
21649         * modules/j0 (configure.ac): Likewise.
21650         * modules/j1 (configure.ac): Likewise.
21651         * modules/jn (configure.ac): Likewise.
21652         * modules/lgamma (configure.ac): Likewise.
21653         * modules/log (configure.ac): Likewise.
21654         * modules/log10 (configure.ac): Likewise.
21655         * modules/log1p (configure.ac): Likewise.
21656         * modules/pow (configure.ac): Likewise.
21657         * modules/remainder (configure.ac): Likewise.
21658         * modules/sin (configure.ac): Likewise.
21659         * modules/sinh (configure.ac): Likewise.
21660         * modules/tan (configure.ac): Likewise.
21661         * modules/tanh (configure.ac): Likewise.
21662         * modules/y0 (configure.ac): Likewise.
21663         * modules/y1 (configure.ac): Likewise.
21664         * modules/yn (configure.ac): Likewise.
21665         Suggested by Paolo Bonzini.
21666
21667 2010-01-31  Bruno Haible  <bruno@clisp.org>
21668
21669         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21670
21671 2010-01-31  Bruno Haible  <bruno@clisp.org>
21672
21673         Work around getdelim() bug on FreeBSD 8.0.
21674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21675         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21676         not work.
21677         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21678         is 1.
21679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21680         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21681         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21682         a non-zero size.
21683         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21684
21685 2010-01-31  Bruno Haible  <bruno@clisp.org>
21686
21687         Work around getline() bug on FreeBSD 8.0.
21688         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21689         and a non-zero size.
21690         * tests/test-getline.c (main): Likewise.
21691         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21692         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21693
21694 2010-01-28  Eric Blake  <ebb9@byu.net>
21695
21696         regex: fix build failure
21697         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21698         platforms.
21699
21700 2010-01-28  Jim Meyering  <meyering@redhat.com>
21701
21702         regex: do not ignore memory allocation failure
21703         * lib/regex_internal.c (create_cd_newstate): Detect
21704         re_node_set_init_copy failure.   Extracted from glibc commit
21705         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21706
21707         regex: sync more white-space changes from libc
21708         * lib/regex_internal.c: White-space only changes.
21709         * lib/regexec.c: Likewise.
21710
21711         regex: add many uses of __attribute_warn_unused_result__
21712         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21713         * lib/regexec.c: Likewise.
21714         Extracted from a messy glibc commit.
21715
21716         regcomp.c: spelling and merge-artifact from glibc
21717         * lib/regcomp.c: Merge remainder of glibc's
21718         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21719
21720         regcomp.c: sync white-space changes from glibc
21721         * lib/regcomp.c: Merge to accommodate white space
21722         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21723
21724         regcomp.c: do not ignore internal return values
21725         * lib/regcomp.c: Do not ignore internal return values.
21726         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21727         but without its white-space changes and spelling fixes.
21728
21729         regex_internal.h: define __attribute_warn_unused_result__
21730         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21731
21732         maint: add a syntax-check rule to check for vulnerable Makefile.in
21733         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21734
21735 2010-01-27  Jim Meyering  <meyering@redhat.com>
21736
21737         ncftpput-ftp: clean up spaces
21738         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21739         Remove trailing blanks.
21740
21741 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21742
21743         * build-aux/git-version-gen: Fix copyright statement.
21744         * build-aux/gnupload: Likewise.
21745         * tests/test-arcfour.c: Likewise.
21746         * tests/test-arctwo.c: Likewise.
21747         * tests/test-count-one-bits.c: Likewise.
21748         * tests/test-crc.c: Likewise.
21749         * tests/test-des.c: Likewise.
21750         * tests/test-gc-arcfour.c: Likewise.
21751         * tests/test-gc-arctwo.c: Likewise.
21752         * tests/test-gc-des.c: Likewise.
21753         * tests/test-gc-hmac-md5.c: Likewise.
21754         * tests/test-gc-hmac-sha1.c: Likewise.
21755         * tests/test-gc-md2.c: Likewise.
21756         * tests/test-gc-md4.c: Likewise.
21757         * tests/test-gc-md5.c: Likewise.
21758         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21759         * tests/test-gc-rijndael.c: Likewise.
21760         * tests/test-gc-sha1.c: Likewise.
21761         * tests/test-gc.c: Likewise.
21762         * tests/test-gethostname.c: Likewise.
21763         * tests/test-gettimeofday.c: Likewise.
21764         * tests/test-hash.c: Likewise.
21765         * tests/test-hmac-md5.c: Likewise.
21766         * tests/test-hmac-sha1.c: Likewise.
21767         * tests/test-md2.c: Likewise.
21768         * tests/test-md4.c: Likewise.
21769         * tests/test-md5.c: Likewise.
21770         * tests/test-memchr.c: Likewise.
21771         * tests/test-memchr2.c: Likewise.
21772         * tests/test-memcmp.c: Likewise.
21773         * tests/test-memmem.c: Likewise.
21774         * tests/test-memrchr.c: Likewise.
21775         * tests/test-rawmemchr.c: Likewise.
21776         * tests/test-read-file.c: Likewise.
21777         * tests/test-rijndael.c: Likewise.
21778         * tests/test-sockets.c: Likewise.
21779         * tests/test-strchrnul.c: Likewise.
21780         * tests/test-strstr.c: Likewise.
21781         * tests/test-strtod.c: Likewise.
21782         * build-aux/ncftpput-ftp: Likewise.
21783
21784 2010-01-26  Eric Blake  <ebb9@byu.net>
21785
21786         ignore-value: update recommended header name
21787         * modules/ignore-value (Include): Only use <> for headers that
21788         exist in glibc.
21789
21790 2010-01-26  Jim Meyering  <meyering@redhat.com>
21791
21792         test-userspec.c: avoid compiler warnings
21793         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21794         and "initialization discards qualifiers..." warnings.
21795         Put the first "uid" in its own scope, and make char* members "const".
21796
21797 2010-01-25  Bruno Haible  <bruno@clisp.org>
21798
21799         gnulib-tool: Make warning diagnostics consistent.
21800         * gnulib-tool (func_warning): New function.
21801         Use it everywhere where gnulib-tool produces output to stderr and it is
21802         not a fatal error.
21803
21804 2010-01-25  Bruno Haible  <bruno@clisp.org>
21805
21806         Fix test dependencies.
21807         * modules/xstrtol-tests (Depends-on): Add inttypes.
21808         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21809
21810 2010-01-25 Pádraig Brady <P@draigBrady.com>
21811
21812         syntax-check: detect incorrect boolean macro values in config.h
21813         * modules/maintainer-makefile (configure.ac): Parameterize the location
21814         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21815         The logic is from Eric Blake and the location indicated by Jim Meyering.
21816         Note the more natural CONFIG_HEADER name is prohibited by automake
21817         for backwards compatibility reasons.
21818         * top/maint.mk (sc_Wundef_boolean): New rule.
21819
21820 2010-01-25  Jim Meyering  <meyering@redhat.com>
21821
21822         bootstrap: detect MacOS 10.6's shasum, too
21823         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21824         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21825
21826 2010-01-23  Jim Meyering  <meyering@redhat.com>
21827
21828         xstrtoll: new module
21829         * modules/xstrtoll: New file.
21830         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21831         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21832         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21833         ./configure fails if you use this module and lack "long long".
21834         * modules/xstrtoll-tests: New module.
21835         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21836         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21837         new init.sh-based test framework.
21838
21839 2010-01-24  Bruno Haible  <bruno@clisp.org>
21840
21841         Tests for module 'yn'.
21842         * modules/yn-tests: New file.
21843         * tests/test-yn.c: New file.
21844
21845         Tests for module 'y1'.
21846         * modules/y1-tests: New file.
21847         * tests/test-y1.c: New file.
21848
21849         Tests for module 'y0'.
21850         * modules/y0-tests: New file.
21851         * tests/test-y0.c: New file.
21852
21853         Tests for module 'tanh'.
21854         * modules/tanh-tests: New file.
21855         * tests/test-tanh.c: New file.
21856
21857         Tests for module 'tan'.
21858         * modules/tan-tests: New file.
21859         * tests/test-tan.c: New file.
21860
21861         Tests for module 'sqrt'.
21862         * modules/sqrt-tests: New file.
21863         * tests/test-sqrt.c: New file.
21864
21865         Tests for module 'sinh'.
21866         * modules/sinh-tests: New file.
21867         * tests/test-sinh.c: New file.
21868
21869         Tests for module 'sin'.
21870         * modules/sin-tests: New file.
21871         * tests/test-sin.c: New file.
21872
21873         Tests for module 'rint'.
21874         * modules/rint-tests: New file.
21875         * tests/test-rint.c: New file.
21876
21877         Tests for module 'remainder'.
21878         * modules/remainder-tests: New file.
21879         * tests/test-remainder.c: New file.
21880
21881         Tests for module 'pow'.
21882         * modules/pow-tests: New file.
21883         * tests/test-pow.c: New file.
21884
21885         Tests for module 'nextafter'.
21886         * modules/nextafter-tests: New file.
21887         * tests/test-nextafter.c: New file.
21888
21889         Tests for module 'modf'.
21890         * modules/modf-tests: New file.
21891         * tests/test-modf.c: New file.
21892
21893         Tests for module 'logb'.
21894         * modules/logb-tests: New file.
21895         * tests/test-logb.c: New file.
21896
21897         Tests for module 'log1p'.
21898         * modules/log1p-tests: New file.
21899         * tests/test-log1p.c: New file.
21900
21901         Tests for module 'log10'.
21902         * modules/log10-tests: New file.
21903         * tests/test-log10.c: New file.
21904
21905         Tests for module 'log'.
21906         * modules/log-tests: New file.
21907         * tests/test-log.c: New file.
21908
21909         Tests for module 'lgamma'.
21910         * modules/lgamma-tests: New file.
21911         * tests/test-lgamma.c: New file.
21912
21913         Tests for module 'ldexp'.
21914         * modules/ldexp-tests: New file.
21915         * tests/test-ldexp.c: New file.
21916
21917         Tests for module 'jn'.
21918         * modules/jn-tests: New file.
21919         * tests/test-jn.c: New file.
21920
21921         Tests for module 'j1'.
21922         * modules/j1-tests: New file.
21923         * tests/test-j1.c: New file.
21924
21925         Tests for module 'j0'.
21926         * modules/j0-tests: New file.
21927         * tests/test-j0.c: New file.
21928
21929         Tests for module 'hypot'.
21930         * modules/hypot-tests: New file.
21931         * tests/test-hypot.c: New file.
21932
21933         Tests for module 'fmod'.
21934         * modules/fmod-tests: New file.
21935         * tests/test-fmod.c: New file.
21936
21937         Tests for module 'fabs'.
21938         * modules/fabs-tests: New file.
21939         * tests/test-fabs.c: New file.
21940
21941         Tests for module 'exp'.
21942         * modules/exp-tests: New file.
21943         * tests/test-exp.c: New file.
21944
21945         Tests for module 'erfc'.
21946         * modules/erfc-tests: New file.
21947         * tests/test-erfc.c: New file.
21948
21949         Tests for module 'erf'.
21950         * modules/erf-tests: New file.
21951         * tests/test-erf.c: New file.
21952
21953         Tests for module 'cosh'.
21954         * modules/cosh-tests: New file.
21955         * tests/test-cosh.c: New file.
21956
21957         Tests for module 'cos'.
21958         * modules/cos-tests: New file.
21959         * tests/test-cos.c: New file.
21960
21961         Tests for module 'copysign'.
21962         * modules/copysign-tests: New file.
21963         * tests/test-copysign.c: New file.
21964
21965         Tests for module 'cbrt'.
21966         * modules/cbrt-tests: New file.
21967         * tests/test-cbrt.c: New file.
21968
21969         Tests for module 'atan2'.
21970         * modules/atan2-tests: New file.
21971         * tests/test-atan2.c: New file.
21972
21973         Tests for module 'atan'.
21974         * modules/atan-tests: New file.
21975         * tests/test-atan.c: New file.
21976
21977         Tests for module 'asin'.
21978         * modules/asin-tests: New file.
21979         * tests/test-asin.c: New file.
21980
21981         Tests for module 'acos'.
21982         * modules/acos-tests: New file.
21983         * tests/test-acos.c: New file.
21984
21985 2010-01-24  Bruno Haible  <bruno@clisp.org>
21986
21987         Fix tests for common <math.h> functions.
21988         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21989         code snippet that references the function pointer, rather than merely
21990         calling the function. Substitute the FUNC_LIBM variable.
21991         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21992         * modules/acos (configure.ac): Likewise.
21993         * modules/asin (configure.ac): Likewise.
21994         * modules/atan (configure.ac): Likewise.
21995         * modules/atan2 (configure.ac): Likewise.
21996         * modules/cbrt (configure.ac): Likewise.
21997         * modules/copysign (configure.ac): Likewise.
21998         * modules/cos (configure.ac): Likewise.
21999         * modules/cosh (configure.ac): Likewise.
22000         * modules/erf (configure.ac): Likewise.
22001         * modules/erfc (configure.ac): Likewise.
22002         * modules/exp (configure.ac): Likewise.
22003         * modules/fabs (configure.ac): Likewise.
22004         * modules/fmod (configure.ac): Likewise.
22005         * modules/hypot (configure.ac): Likewise.
22006         * modules/j0 (configure.ac): Likewise.
22007         * modules/j1 (configure.ac): Likewise.
22008         * modules/jn (configure.ac): Likewise.
22009         * modules/ldexp (configure.ac): Likewise.
22010         * modules/lgamma (configure.ac): Likewise.
22011         * modules/log (configure.ac): Likewise.
22012         * modules/log10 (configure.ac): Likewise.
22013         * modules/log1p (configure.ac): Likewise.
22014         * modules/logb (configure.ac): Likewise.
22015         * modules/modf (configure.ac): Likewise.
22016         * modules/nextafter (configure.ac): Likewise.
22017         * modules/pow (configure.ac): Likewise.
22018         * modules/remainder (configure.ac): Likewise.
22019         * modules/rint (configure.ac): Likewise.
22020         * modules/sin (configure.ac): Likewise.
22021         * modules/sinh (configure.ac): Likewise.
22022         * modules/tan (configure.ac): Likewise.
22023         * modules/tanh (configure.ac): Likewise.
22024         * modules/y0 (configure.ac): Likewise.
22025         * modules/y1 (configure.ac): Likewise.
22026         * modules/yn (configure.ac): Likewise.
22027
22028 2010-01-24  Bruno Haible  <bruno@clisp.org>
22029
22030         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22031         * tests/test-acosl.c (x): New variable.
22032         (main): Store argument in x and fetch it from x.
22033         * tests/test-asinl.c (x): New variable.
22034         (main): Store argument in x and fetch it from x.
22035         * tests/test-atanl.c (x): New variable.
22036         (main): Store argument in x and fetch it from x.
22037         * tests/test-cosl.c (x): New variable.
22038         (main): Store argument in x and fetch it from x.
22039         * tests/test-expl.c (x): New variable.
22040         (main): Store argument in x and fetch it from x.
22041         * tests/test-logl.c (x): New variable.
22042         (main): Store argument in x and fetch it from x.
22043         * tests/test-sinl.c (x): New variable.
22044         (main): Store argument in x and fetch it from x.
22045         * tests/test-sqrtl.c (x): New variable.
22046         (main): Store argument in x and fetch it from x.
22047         * tests/test-tanl.c (x): New variable.
22048         (main): Store argument in x and fetch it from x.
22049
22050 2010-01-24  Bruno Haible  <bruno@clisp.org>
22051
22052         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22053         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22054         assignments to the initial TESTS_ENVIRONMENT.
22055         * doc/gnulib.texi (Unit test modules): Document it.
22056         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22057         TESTS_ENVIRONMENT.
22058         * modules/btowc-tests (Makefile.am): Likewise.
22059         * modules/c-stack-tests (Makefile.am): Likewise.
22060         * modules/c-strcase-tests (Makefile.am): Likewise.
22061         * modules/copy-file-tests (Makefile.am): Likewise.
22062         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22063         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22064         * modules/mbrtowc-tests (Makefile.am): Likewise.
22065         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22066         * modules/mbscasestr-tests (Makefile.am): Likewise.
22067         * modules/mbschr-tests (Makefile.am): Likewise.
22068         * modules/mbscspn-tests (Makefile.am): Likewise.
22069         * modules/mbsinit-tests (Makefile.am): Likewise.
22070         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22071         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22072         * modules/mbspbrk-tests (Makefile.am): Likewise.
22073         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22074         * modules/mbsrchr-tests (Makefile.am): Likewise.
22075         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22076         * modules/mbsspn-tests (Makefile.am): Likewise.
22077         * modules/mbsstr-tests (Makefile.am): Likewise.
22078         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22079         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22080         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22081         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22082         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22083         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22084         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22085         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22086         * modules/wcrtomb-tests (Makefile.am): Likewise.
22087         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22088         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22089         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22090         assignments from TESTS_ENVIRONMENT.
22091         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22092         augmentation.
22093         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22094         * modules/atexit-tests (Makefile.am): Likewise.
22095         * modules/binary-io-tests (Makefile.am): Likewise.
22096         * modules/closein-tests (Makefile.am): Likewise.
22097         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22098         * modules/exclude-tests (Makefile.am): Likewise.
22099         * modules/fflush-tests (Makefile.am): Likewise.
22100         * modules/fpending-tests (Makefile.am): Likewise.
22101         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22102         * modules/freadahead-tests (Makefile.am): Likewise.
22103         * modules/freadptr-tests (Makefile.am): Likewise.
22104         * modules/freadseek-tests (Makefile.am): Likewise.
22105         * modules/fseek-tests (Makefile.am): Likewise.
22106         * modules/fseeko-tests (Makefile.am): Likewise.
22107         * modules/ftell-tests (Makefile.am): Likewise.
22108         * modules/ftello-tests (Makefile.am): Likewise.
22109         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22110         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22111         * modules/lseek-tests (Makefile.am): Likewise.
22112         * modules/parse-duration-tests (Makefile.am): Likewise.
22113         * modules/perror-tests (Makefile.am): Likewise.
22114         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22115         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22116         * modules/pipe-tests (Makefile.am): Likewise.
22117         * modules/pread-tests (Makefile.am): Likewise.
22118         * modules/printf-posix-tests (Makefile.am): Likewise.
22119         * modules/select-tests (Makefile.am): Likewise.
22120         * modules/sigpipe-tests (Makefile.am): Likewise.
22121         * modules/tsearch-tests (Makefile.am): Likewise.
22122         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22123         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22124         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22125         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22126         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22127         * modules/version-etc-tests (Makefile.am): Likewise.
22128         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22129         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22130         * modules/xalloc-die-tests (Makefile.am): Likewise.
22131         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22132         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22133         * modules/xstrtol-tests (Makefile.am): Likewise.
22134         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22135         * modules/yesno-tests (Makefile.am): Likewise.
22136         Suggested by Jim Meyering.
22137
22138 2010-01-24  Bruno Haible  <bruno@clisp.org>
22139
22140         More documentation.
22141         * doc/gnulib.texi (Writing modules): New chapter.
22142         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22143         the new chapter.
22144
22145 2010-01-24  Jim Meyering  <meyering@redhat.com>
22146
22147         maint.mk: do not prepend "./" after filtering
22148         * top/maint.mk (_prepend_srcdir_prefix): New variable
22149         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22150         "./" when $(srcdir) is ".".
22151
22152         define STREQ(a,b) consistently, removing useless parentheses
22153         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22154         since the only risk is that "a" or "b" contains an unparenthesized
22155         comma, but if either did that, STREQ would have 3 or more arguments.
22156         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22157         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22158         * lib/hash-triple.c (STREQ): Likewise.
22159         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22160         * lib/getugroups.c (STREQ): Likewise.
22161
22162 2010-01-23  Jim Meyering  <meyering@redhat.com>
22163
22164         maint.mk: fix syntax-check in a non-srcdir build directory
22165         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22166         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22167
22168 2010-01-22  Jim Meyering  <meyering@redhat.com>
22169
22170         userspec: add unit tests
22171         * tests/test-userspec.c: New file.
22172         * modules/userspec-tests: Likewise.
22173
22174 2010-01-21  Jim Meyering  <meyering@redhat.com>
22175
22176         maint.mk: handle source file names containing "." robustly
22177         * top/maint.mk (_dot_escaped_srcdir): Define.
22178         (VC_LIST): Use it in LHS of sed substitution.
22179
22180 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22181
22182         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22183         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22184         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22185         from a non-srcdir build.
22186
22187 2010-01-20  Eric Blake  <ebb9@byu.net>
22188
22189         warn-on-use: use instead of link-warning
22190         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22191         * modules/unistd (Depends-on, Makefile.am): Likewise.
22192         * modules/arpa_inet (Depends-on): Replace link-warning with
22193         warn-on-use.
22194         (Makefile.am): Update rules accordingly.
22195         * modules/ctype (Depends-on, Makefile.am): Likewise.
22196         * modules/dirent (Depends-on, Makefile.am): Likewise.
22197         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22198         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22199         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22200         * modules/locale (Depends-on, Makefile.am): Likewise.
22201         * modules/math (Depends-on, Makefile.am): Likewise.
22202         * modules/search (Depends-on, Makefile.am): Likewise.
22203         * modules/signal (Depends-on, Makefile.am): Likewise.
22204         * modules/spawn (Depends-on, Makefile.am): Likewise.
22205         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22206         * modules/string (Depends-on, Makefile.am): Likewise.
22207         * modules/strings (Depends-on, Makefile.am): Likewise.
22208         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22209         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22210         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22211         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22212         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22213         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22214         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22215         * modules/wchar (Depends-on, Makefile.am): Likewise.
22216         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22217         should be poisoned.
22218         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22219         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22220         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22221         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22222         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22223         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22224         * m4/math_h.m4 (gl_MATH_H): Likewise.
22225         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22226         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22227         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22228         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22229         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22230         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22231         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22232         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22233         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22237         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22238         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22239         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22240         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22241         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22242         GL_LINK_WARNING.
22243         * lib/ctype.in.h: Likewise.
22244         * lib/dirent.in.h: Likewise.
22245         * lib/fcntl.in.h: Likewise.
22246         * lib/inttypes.in.h: Likewise.
22247         * lib/langinfo.in.h: Likewise.
22248         * lib/locale.in.h: Likewise.
22249         * lib/math.in.h: Likewise.
22250         * lib/search.in.h: Likewise.
22251         * lib/signal.in.h: Likewise.
22252         * lib/spawn.in.h: Likewise.
22253         * lib/stdio.in.h: Likewise.
22254         * lib/stdlib.in.h: Likewise.
22255         * lib/string.in.h: Likewise.
22256         * lib/strings.in.h: Likewise.
22257         * lib/sys_file.in.h: Likewise.
22258         * lib/sys_ioctl.in.h: Likewise.
22259         * lib/sys_select.in.h: Likewise.
22260         * lib/sys_socket.in.h: Likewise.
22261         * lib/sys_stat.in.h: Likewise.
22262         * lib/sys_times.in.h: Likewise.
22263         * lib/sys_utsname.in.h: Likewise.
22264         * lib/unistd.in.h: Likewise.
22265         * lib/wchar.in.h: Likewise.
22266
22267 2010-01-20  Bruno Haible  <bruno@clisp.org>
22268
22269         Avoid duplicate -lm.
22270         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22271         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22272         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22273         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22274         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22275         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22276         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22277         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22278         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22279         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22280         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22281         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22282         Reported by Paolo Bonzini.
22283
22284 2010-01-19  Bruno Haible  <bruno@clisp.org>
22285
22286         langinfo, nl_langinfo: Relicense under LGPLv2+.
22287         * modules/langinfo (License): Change to LGPLv2+.
22288         * modules/nl_langinfo (License): Likewise.
22289         Patch by David Lutterkort <lutter@redhat.com>.
22290
22291 2010-01-19  Bruno Haible  <bruno@clisp.org>
22292
22293         Avoid compilation error with cc on OSF/1 5.1.
22294         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22295         statement, not before.
22296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22297
22298 2010-01-18  Bruno Haible  <bruno@clisp.org>
22299
22300         Avoid a link error due to the __printf__ symbol.
22301         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22302         and 2.6.x.
22303         (__format__, __printf__): Remove definitions.
22304         * lib/argp-fmtstream.h: Likewise.
22305         * lib/argp.h: Likewise.
22306         * lib/error.h: Likewise.
22307         * lib/vasnprintf.h: Likewise.
22308         * lib/xprintf.h: Likewise.
22309         * lib/xvasprintf.h: Likewise.
22310         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22311
22312 2010-01-18  Bruno Haible  <bruno@clisp.org>
22313
22314         Tests for module 'tanl'.
22315         * modules/tanl-tests: New file.
22316         * tests/test-tanl.c: New file.
22317
22318         Tests for module 'sqrtl'.
22319         * modules/sqrtl-tests: New file.
22320         * tests/test-sqrtl.c: New file.
22321
22322         Tests for module 'sinl'.
22323         * modules/sinl-tests: New file.
22324         * tests/test-sinl.c: New file.
22325
22326         Tests for module 'logl'.
22327         * modules/logl-tests: New file.
22328         * tests/test-logl.c: New file.
22329
22330         Tests for module 'expl'.
22331         * modules/expl-tests: New file.
22332         * tests/test-expl.c: New file.
22333
22334         Tests for module 'cosl'.
22335         * modules/cosl-tests: New file.
22336         * tests/test-cosl.c: New file.
22337
22338         Tests for module 'atanl'.
22339         * modules/atanl-tests: New file.
22340         * tests/test-atanl.c: New file.
22341
22342         Tests for module 'asinl'.
22343         * modules/asinl-tests: New file.
22344         * tests/test-asinl.c: New file.
22345
22346         Tests for module 'acosl'.
22347         * modules/acosl-tests: New file.
22348         * tests/test-acosl.c: New file.
22349
22350         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22351         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22352         tanl): Use the standard gnulib idiom.
22353         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22354         * lib/sinl.c: Likewise.
22355         * lib/tanl.c: Don't include trigl.c.
22356         (kernel_tanl): Make static.
22357         * lib/sincosl.c: Include trigl.h first.
22358         * lib/trigl.c: Likewise.
22359         * m4/acosl.m4: New file.
22360         * m4/asinl.m4: New file.
22361         * m4/atanl.m4: New file.
22362         * m4/cosl.m4: New file.
22363         * m4/expl.m4: New file.
22364         * m4/logl.m4: New file.
22365         * m4/sinl.m4: New file.
22366         * m4/sqrtl.m4: New file.
22367         * m4/tanl.m4: New file.
22368         * m4/mathl.m4: Remove file.
22369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22370         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22371         Don't initialize GNULIB_MATHL.
22372         * modules/acosl: New file.
22373         * modules/asinl: New file.
22374         * modules/atanl: New file.
22375         * modules/cosl: New file.
22376         * modules/expl: New file.
22377         * modules/logl: New file.
22378         * modules/sinl: New file.
22379         * modules/sqrtl: New file.
22380         * modules/tanl: New file.
22381         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22382         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22383         substitute GNULIB_MATHL.
22384         * modules/mathl: Rewritten.
22385         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22386         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22387         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22388         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22389         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22390         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22391         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22392         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22393         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22394
22395 2010-01-18  Bruno Haible  <bruno@clisp.org>
22396
22397         sqrt: Make gl_FUNC_SQRT requirable.
22398         * m4/sqrt.m4: New file.
22399         * modules/sqrt (Files): Add it.
22400         (configure.ac): Invoke gl_FUNC_SQRT.
22401
22402 2010-01-18  Bruno Haible  <bruno@clisp.org>
22403
22404         New modules for common <math.h> functions.
22405         * m4/mathfunc.m4: New file.
22406         * modules/acos: New file.
22407         * modules/asin: New file.
22408         * modules/atan: New file.
22409         * modules/atan2: New file.
22410         * modules/cbrt: New file.
22411         * modules/copysign: New file.
22412         * modules/cos: New file.
22413         * modules/cosh: New file.
22414         * modules/erf: New file.
22415         * modules/erfc: New file.
22416         * modules/exp: New file.
22417         * modules/fabs: New file.
22418         * modules/fmod: New file.
22419         * modules/hypot: New file.
22420         * modules/j0: New file.
22421         * modules/j1: New file.
22422         * modules/jn: New file.
22423         * modules/ldexp: New file.
22424         * modules/lgamma: New file.
22425         * modules/log: New file.
22426         * modules/log10: New file.
22427         * modules/log1p: New file.
22428         * modules/logb: New file.
22429         * modules/modf: New file.
22430         * modules/nextafter: New file.
22431         * modules/pow: New file.
22432         * modules/remainder: New file.
22433         * modules/rint: New file.
22434         * modules/sin: New file.
22435         * modules/sinh: New file.
22436         * modules/sqrt: New file.
22437         * modules/tan: New file.
22438         * modules/tanh: New file.
22439         * modules/y0: New file.
22440         * modules/y1: New file.
22441         * modules/yn: New file.
22442         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22443         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22444         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22445         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22446         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22447         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22448         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22449         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22450         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22451         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22452         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22453         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22454         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22455         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22456         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22457         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22458         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22459         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22460         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22461         * doc/posix-functions/log.texi: Mention the 'log' module.
22462         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22463         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22464         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22465         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22466         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22467         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22468         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22469         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22470         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22471         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22472         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22473         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22474         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22475         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22476         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22477         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22478
22479 2010-01-18  Jim Meyering  <meyering@redhat.com>
22480
22481         ignore-value: relax license to LGPLv2+
22482         * modules/ignore-value (License): Relax to LGPLv2+.
22483
22484         getdate: don't leak when TZ contains two or more '"'s
22485         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22486         double quote in TZ after the first one.
22487
22488         readtokens: do not leak internal token_lengths buffer
22489         * lib/readtokens.c (readtokens): Free the local, lengths,
22490         when the supplied "token_lengths" parameter is NULL.
22491
22492 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22493
22494         Fix a couple of missing LIBTHREAD link failures on AIX.
22495         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22496         $(LIBTHREAD).
22497         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22498
22499         Link test-poll against INET_PTON_LIB.
22500         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22501         for inet_pton on Solaris 10.
22502
22503 2010-01-17  Bruno Haible  <bruno@clisp.org>
22504
22505         unistdio/*-sprintf: Fix typo in module description.
22506         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22507         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22508         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22509         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22510         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22511         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22512         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22514
22515 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22516
22517         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22518         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22519         variables in shell case patterns, for AIX and HP-UX ksh.
22520
22521         Split large sed scripts, for HP-UX sed.
22522         * modules/stdio: Split sed scripts around 50 sed commands,
22523         to avoid HP-UX limit of 99 commands, in the near future.
22524         * modules/string: Likewise.
22525         * modules/unistd: Likewise.
22526
22527         gnulib-tool: avoid writing in the current directory.
22528         * gnulib-tool (func_emit_lib_Makefile_am)
22529         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22530         not in the current directory, so concurrent gnulib-tool
22531         instances do not interfere.
22532
22533 2010-01-16  Jim Meyering  <meyering@redhat.com>
22534
22535         doc: update users.txt
22536         * users.txt: Add grep.
22537         (diffutils, gzip): Update URLs.
22538
22539 2010-01-12  Bruno Haible  <bruno@clisp.org>
22540
22541         posix_spawn: Avoid test failure on Cygwin.
22542         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22543         characters.
22544         Reported by Simon Josefsson.
22545
22546 2010-01-12  Bruno Haible  <bruno@clisp.org>
22547
22548         * tests/test-cond.c (main): When skipping the test, show the reason.
22549
22550 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22551
22552         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22553
22554 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22555
22556         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22557         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22558
22559 2010-01-12  Eric Blake  <ebb9@byu.net>
22560
22561         build: guarantee AS_VAR_IF
22562         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22563         (gl_AS_VAR_IF): Move...
22564         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22565         Reported by Simon Josefsson.
22566
22567 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22568
22569         * lib/stdio.in.h: Fix typo.
22570
22571 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22572
22573         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22574         libgpg-error.
22575
22576 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22577
22578         * tests/test-xalloc-die.sh: Use $EXEEXT.
22579
22580 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22581             Bruno Haible  <bruno@clisp.org>
22582
22583         getlogin, getlogin_r: Avoid test failure.
22584         * tests/test-getlogin.c: Include <stdio.h>.
22585         (main): Skip the test when the function fails because stdin is not a
22586         tty.
22587         * tests/test-getlogin_r.c: Include <stdio.h>.
22588         (main): Skip the test when the function fails because stdin is not a
22589         tty.
22590
22591 2010-01-11  Eric Blake  <ebb9@byu.net>
22592
22593         tests: avoid more large file warnings
22594         * tests/test-fflush.c: Avoid warning about ftell use.
22595         * tests/test-fseek.c: Avoid warning about fseek use.
22596
22597 2010-01-10  Bruno Haible  <bruno@clisp.org>
22598
22599         nproc: Work better on Linux when /proc and /sys are not mounted.
22600         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22601         as lower bound when, on glibc/Linux systems,
22602         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22603         Suggested by Pádraig Brady <P@draigbrady.com>.
22604         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22605
22606         nproc: Refactor.
22607         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22608         extracted from num_processors.
22609         (num_processors): Call it.
22610
22611 2010-01-11  Jim Meyering  <meyering@redhat.com>
22612
22613         utimecmp: avoid new warning from upcoming gcc-4.5.0
22614         * lib/utimecmp.c (BILLION): Define using #define rather than an
22615         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22616
22617 2010-01-11  Eric Blake  <ebb9@byu.net>
22618
22619         math: add portability warnings for classification macros
22620         * modules/math (Depends-on): Add warn-on-use.
22621         (Makefile.am): Provide new substitutions.
22622         * m4/math_h.m4 (gl_MATH_H): Require inline.
22623         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22624         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22625         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22626         implement warnings.
22627
22628         unistd: warn on use of environ without module
22629         * modules/unistd (Depends-on): Add warn-on-use.
22630         (Makefile.am): Provide new substitutions.
22631         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22632         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22633
22634         stdio: warn on suspicious uses
22635         * modules/stdio (Depends-on): Add warn-on-use.
22636         (Makefile.am): Provide new substitutions.
22637         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22638         fseeko.
22639         * lib/stdio.in.h (gets): Always warn on use.
22640         (fseek, ftell): Adjust when warnings are issued, and honor
22641         _GL_NO_LARGE_FILES as a way to silence the warning.
22642         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22643         any warning about large file offsets.
22644         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22645         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22646         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22647         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22648         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22649         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22650         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22651         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22652
22653         warn-on-use: new module
22654         * modules/warn-on-use: New file.
22655         * build-aux/warn-on-use.h: Likewise.
22656         * m4/warn-on-use.m4: Likewise.
22657         * MODULES.html.sh (Support for building): Mention it.
22658
22659 2010-01-10  Bruno Haible  <bruno@clisp.org>
22660
22661         Tests for module 'unistr/u32-strdup'.
22662         * modules/unistr/u32-strdup-tests: New file.
22663         * tests/unistr/test-u32-strdup.c: New file.
22664
22665         Tests for module 'unistr/u16-strdup'.
22666         * modules/unistr/u16-strdup-tests: New file.
22667         * tests/unistr/test-u16-strdup.c: New file.
22668
22669         Tests for module 'unistr/u8-strdup'.
22670         * modules/unistr/u8-strdup-tests: New file.
22671         * tests/unistr/test-u8-strdup.c: New file.
22672         * tests/unistr/test-strdup.h: New file.
22673
22674         Tests for module 'unistr/u32-strncmp'.
22675         * modules/unistr/u32-strncmp-tests: New file.
22676         * tests/unistr/test-u32-strncmp.c: New file.
22677
22678         Tests for module 'unistr/u16-strncmp'.
22679         * modules/unistr/u16-strncmp-tests: New file.
22680         * tests/unistr/test-u16-strncmp.c: New file.
22681
22682         Tests for module 'unistr/u8-strncmp'.
22683         * modules/unistr/u8-strncmp-tests: New file.
22684         * tests/unistr/test-u8-strncmp.c: New file.
22685         * tests/unistr/test-strncmp.h: New file.
22686
22687         Tests for module 'unistr/u32-strcoll'.
22688         * modules/unistr/u32-strcoll-tests: New file.
22689         * tests/unistr/test-u32-strcoll.c: New file.
22690
22691         Tests for module 'unistr/u16-strcoll'.
22692         * modules/unistr/u16-strcoll-tests: New file.
22693         * tests/unistr/test-u16-strcoll.c: New file.
22694
22695         Tests for module 'unistr/u8-strcoll'.
22696         * modules/unistr/u8-strcoll-tests: New file.
22697         * tests/unistr/test-u8-strcoll.c: New file.
22698
22699         Tests for module 'unistr/u32-strcmp'.
22700         * modules/unistr/u32-strcmp-tests: New file.
22701         * tests/unistr/test-u32-strcmp.c: New file.
22702         * tests/unistr/test-u32-strcmp.h: New file.
22703
22704         Tests for module 'unistr/u16-strcmp'.
22705         * modules/unistr/u16-strcmp-tests: New file.
22706         * tests/unistr/test-u16-strcmp.c: New file.
22707         * tests/unistr/test-u16-strcmp.h: New file.
22708
22709         Tests for module 'unistr/u8-strcmp'.
22710         * modules/unistr/u8-strcmp-tests: New file.
22711         * tests/unistr/test-u8-strcmp.c: New file.
22712         * tests/unistr/test-u8-strcmp.h: New file.
22713         * tests/unistr/test-strcmp.h: New file.
22714
22715         Tests for module 'unistr/u32-strncat'.
22716         * modules/unistr/u32-strncat-tests: New file.
22717         * tests/unistr/test-u32-strncat.c: New file.
22718
22719         Tests for module 'unistr/u16-strncat'.
22720         * modules/unistr/u16-strncat-tests: New file.
22721         * tests/unistr/test-u16-strncat.c: New file.
22722
22723         Tests for module 'unistr/u8-strncat'.
22724         * modules/unistr/u8-strncat-tests: New file.
22725         * tests/unistr/test-u8-strncat.c: New file.
22726         * tests/unistr/test-strncat.h: New file.
22727
22728         Tests for module 'unistr/u32-strcat'.
22729         * modules/unistr/u32-strcat-tests: New file.
22730         * tests/unistr/test-u32-strcat.c: New file.
22731
22732         Tests for module 'unistr/u16-strcat'.
22733         * modules/unistr/u16-strcat-tests: New file.
22734         * tests/unistr/test-u16-strcat.c: New file.
22735
22736         Tests for module 'unistr/u8-strcat'.
22737         * modules/unistr/u8-strcat-tests: New file.
22738         * tests/unistr/test-u8-strcat.c: New file.
22739         * tests/unistr/test-strcat.h: New file.
22740
22741         Tests for module 'unistr/u32-stpncpy'.
22742         * modules/unistr/u32-stpncpy-tests: New file.
22743         * tests/unistr/test-u32-stpncpy.c: New file.
22744
22745         Tests for module 'unistr/u16-stpncpy'.
22746         * modules/unistr/u16-stpncpy-tests: New file.
22747         * tests/unistr/test-u16-stpncpy.c: New file.
22748
22749         Tests for module 'unistr/u8-stpncpy'.
22750         * modules/unistr/u8-stpncpy-tests: New file.
22751         * tests/unistr/test-u8-stpncpy.c: New file.
22752         * tests/unistr/test-stpncpy.h: New file.
22753
22754         Tests for module 'unistr/u32-strncpy'.
22755         * modules/unistr/u32-strncpy-tests: New file.
22756         * tests/unistr/test-u32-strncpy.c: New file.
22757
22758         Tests for module 'unistr/u16-strncpy'.
22759         * modules/unistr/u16-strncpy-tests: New file.
22760         * tests/unistr/test-u16-strncpy.c: New file.
22761
22762         Tests for module 'unistr/u8-strncpy'.
22763         * modules/unistr/u8-strncpy-tests: New file.
22764         * tests/unistr/test-u8-strncpy.c: New file.
22765         * tests/unistr/test-strncpy.h: New file.
22766
22767         Tests for module 'unistr/u32-stpcpy'.
22768         * modules/unistr/u32-stpcpy-tests: New file.
22769         * tests/unistr/test-u32-stpcpy.c: New file.
22770
22771         Tests for module 'unistr/u16-stpcpy'.
22772         * modules/unistr/u16-stpcpy-tests: New file.
22773         * tests/unistr/test-u16-stpcpy.c: New file.
22774
22775         Tests for module 'unistr/u8-stpcpy'.
22776         * modules/unistr/u8-stpcpy-tests: New file.
22777         * tests/unistr/test-u8-stpcpy.c: New file.
22778         * tests/unistr/test-stpcpy.h: New file.
22779
22780         Tests for module 'unistr/u32-strcpy'.
22781         * modules/unistr/u32-strcpy-tests: New file.
22782         * tests/unistr/test-u32-strcpy.c: New file.
22783
22784         Tests for module 'unistr/u16-strcpy'.
22785         * modules/unistr/u16-strcpy-tests: New file.
22786         * tests/unistr/test-u16-strcpy.c: New file.
22787
22788         Tests for module 'unistr/u8-strcpy'.
22789         * modules/unistr/u8-strcpy-tests: New file.
22790         * tests/unistr/test-u8-strcpy.c: New file.
22791         * tests/unistr/test-strcpy.h: New file.
22792
22793         Tests for module 'unistr/u32-strnlen'.
22794         * modules/unistr/u32-strnlen-tests: New file.
22795         * tests/unistr/test-u32-strnlen.c: New file.
22796
22797         Tests for module 'unistr/u16-strnlen'.
22798         * modules/unistr/u16-strnlen-tests: New file.
22799         * tests/unistr/test-u16-strnlen.c: New file.
22800
22801         Tests for module 'unistr/u8-strnlen'.
22802         * modules/unistr/u8-strnlen-tests: New file.
22803         * tests/unistr/test-u8-strnlen.c: New file.
22804         * tests/unistr/test-strnlen.h: New file.
22805
22806         Tests for module 'unistr/u32-strlen'.
22807         * modules/unistr/u32-strlen-tests: New file.
22808         * tests/unistr/test-u32-strlen.c: New file.
22809
22810         Tests for module 'unistr/u16-strlen'.
22811         * modules/unistr/u16-strlen-tests: New file.
22812         * tests/unistr/test-u16-strlen.c: New file.
22813
22814         Tests for module 'unistr/u8-strlen'.
22815         * modules/unistr/u8-strlen-tests: New file.
22816         * tests/unistr/test-u8-strlen.c: New file.
22817
22818         Tests for module 'unistr/u32-prev'.
22819         * modules/unistr/u32-prev-tests: New file.
22820         * tests/unistr/test-u32-prev.c: New file.
22821
22822         Tests for module 'unistr/u16-prev'.
22823         * modules/unistr/u16-prev-tests: New file.
22824         * tests/unistr/test-u16-prev.c: New file.
22825
22826         Tests for module 'unistr/u8-prev'.
22827         * modules/unistr/u8-prev-tests: New file.
22828         * tests/unistr/test-u8-prev.c: New file.
22829
22830         Tests for module 'unistr/u32-next'.
22831         * modules/unistr/u32-next-tests: New file.
22832         * tests/unistr/test-u32-next.c: New file.
22833
22834         Tests for module 'unistr/u16-next'.
22835         * modules/unistr/u16-next-tests: New file.
22836         * tests/unistr/test-u16-next.c: New file.
22837
22838         Tests for module 'unistr/u8-next'.
22839         * modules/unistr/u8-next-tests: New file.
22840         * tests/unistr/test-u8-next.c: New file.
22841
22842         Tests for module 'unistr/u32-strmbtouc'.
22843         * modules/unistr/u32-strmbtouc-tests: New file.
22844         * tests/unistr/test-u32-strmbtouc.c: New file.
22845
22846         Tests for module 'unistr/u16-strmbtouc'.
22847         * modules/unistr/u16-strmbtouc-tests: New file.
22848         * tests/unistr/test-u16-strmbtouc.c: New file.
22849
22850         Tests for module 'unistr/u8-strmbtouc'.
22851         * modules/unistr/u8-strmbtouc-tests: New file.
22852         * tests/unistr/test-u8-strmbtouc.c: New file.
22853
22854         Tests for module 'unistr/u32-strmblen'.
22855         * modules/unistr/u32-strmblen-tests: New file.
22856         * tests/unistr/test-u32-strmblen.c: New file.
22857
22858         Tests for module 'unistr/u16-strmblen'.
22859         * modules/unistr/u16-strmblen-tests: New file.
22860         * tests/unistr/test-u16-strmblen.c: New file.
22861
22862         Tests for module 'unistr/u8-strmblen'.
22863         * modules/unistr/u8-strmblen-tests: New file.
22864         * tests/unistr/test-u8-strmblen.c: New file.
22865
22866         Tests for module 'unistr/u32-cpy-alloc'.
22867         * modules/unistr/u32-cpy-alloc-tests: New file.
22868         * tests/unistr/test-u32-cpy-alloc.c: New file.
22869
22870         Tests for module 'unistr/u16-cpy-alloc'.
22871         * modules/unistr/u16-cpy-alloc-tests: New file.
22872         * tests/unistr/test-u16-cpy-alloc.c: New file.
22873
22874         Tests for module 'unistr/u8-cpy-alloc'.
22875         * modules/unistr/u8-cpy-alloc-tests: New file.
22876         * tests/unistr/test-u8-cpy-alloc.c: New file.
22877         * tests/unistr/test-cpy-alloc.h: New file.
22878
22879         Tests for module 'unistr/u32-mbsnlen'.
22880         * modules/unistr/u32-mbsnlen-tests: New file.
22881         * tests/unistr/test-u32-mbsnlen.c: New file.
22882
22883         Tests for module 'unistr/u16-mbsnlen'.
22884         * modules/unistr/u16-mbsnlen-tests: New file.
22885         * tests/unistr/test-u16-mbsnlen.c: New file.
22886
22887         Tests for module 'unistr/u8-mbsnlen'.
22888         * modules/unistr/u8-mbsnlen-tests: New file.
22889         * tests/unistr/test-u8-mbsnlen.c: New file.
22890
22891         Tests for module 'unistr/u32-chr'.
22892         * modules/unistr/u32-chr-tests: New file.
22893         * tests/unistr/test-u32-chr.c: New file.
22894
22895         Tests for module 'unistr/u16-chr'.
22896         * modules/unistr/u16-chr-tests: New file.
22897         * tests/unistr/test-u16-chr.c: New file.
22898
22899         Tests for module 'unistr/u8-chr'.
22900         * modules/unistr/u8-chr-tests: New file.
22901         * tests/unistr/test-u8-chr.c: New file.
22902         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22903
22904         Tests for module 'unistr/u32-cmp2'.
22905         * modules/unistr/u32-cmp2-tests: New file.
22906         * tests/unistr/test-u32-cmp2.c: New file.
22907
22908         Tests for module 'unistr/u16-cmp2'.
22909         * modules/unistr/u16-cmp2-tests: New file.
22910         * tests/unistr/test-u16-cmp2.c: New file.
22911
22912         Tests for module 'unistr/u8-cmp2'.
22913         * modules/unistr/u8-cmp2-tests: New file.
22914         * tests/unistr/test-u8-cmp2.c: New file.
22915         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22916
22917         Tests for module 'unistr/u32-cmp'.
22918         * modules/unistr/u32-cmp-tests: New file.
22919         * tests/unistr/test-u32-cmp.c: New file.
22920
22921         Tests for module 'unistr/u16-cmp'.
22922         * modules/unistr/u16-cmp-tests: New file.
22923         * tests/unistr/test-u16-cmp.c: New file.
22924
22925         Tests for module 'unistr/u8-cmp'.
22926         * modules/unistr/u8-cmp-tests: New file.
22927         * tests/unistr/test-u8-cmp.c: New file.
22928         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22929
22930         Tests for module 'unistr/u32-set'.
22931         * modules/unistr/u32-set-tests: New file.
22932         * tests/unistr/test-u32-set.c: New file.
22933
22934         Tests for module 'unistr/u16-set'.
22935         * modules/unistr/u16-set-tests: New file.
22936         * tests/unistr/test-u16-set.c: New file.
22937
22938         Tests for module 'unistr/u8-set'.
22939         * modules/unistr/u8-set-tests: New file.
22940         * tests/unistr/test-u8-set.c: New file.
22941         * tests/unistr/test-set.h: New file.
22942
22943         Tests for module 'unistr/u32-move'.
22944         * modules/unistr/u32-move-tests: New file.
22945         * tests/unistr/test-u32-move.c: New file.
22946
22947         Tests for module 'unistr/u16-move'.
22948         * modules/unistr/u16-move-tests: New file.
22949         * tests/unistr/test-u16-move.c: New file.
22950
22951         Tests for module 'unistr/u8-move'.
22952         * modules/unistr/u8-move-tests: New file.
22953         * tests/unistr/test-u8-move.c: New file.
22954         * tests/unistr/test-move.h: New file.
22955
22956         Tests for module 'unistr/u32-cpy'.
22957         * modules/unistr/u32-cpy-tests: New file.
22958         * tests/unistr/test-u32-cpy.c: New file.
22959
22960         Tests for module 'unistr/u16-cpy'.
22961         * modules/unistr/u16-cpy-tests: New file.
22962         * tests/unistr/test-u16-cpy.c: New file.
22963
22964         Tests for module 'unistr/u8-cpy'.
22965         * modules/unistr/u8-cpy-tests: New file.
22966         * tests/unistr/test-u8-cpy.c: New file.
22967         * tests/unistr/test-cpy.h: New file.
22968
22969 2010-01-09  Bruno Haible  <bruno@clisp.org>
22970
22971         Tests for module 'unistr/u32-uctomb'.
22972         * modules/unistr/u32-uctomb-tests: New file.
22973         * tests/unistr/test-u32-uctomb.c: New file.
22974
22975         Tests for module 'unistr/u16-uctomb'.
22976         * modules/unistr/u16-uctomb-tests: New file.
22977         * tests/unistr/test-u16-uctomb.c: New file.
22978
22979         Tests for module 'unistr/u8-uctomb'.
22980         * modules/unistr/u8-uctomb-tests: New file.
22981         * tests/unistr/test-u8-uctomb.c: New file.
22982
22983         Tests for module 'unistr/u32-mbtoucr'.
22984         * modules/unistr/u32-mbtoucr-tests: New file.
22985         * tests/unistr/test-u32-mbtoucr.c: New file.
22986
22987         Tests for module 'unistr/u16-mbtoucr'.
22988         * modules/unistr/u16-mbtoucr-tests: New file.
22989         * tests/unistr/test-u16-mbtoucr.c: New file.
22990
22991         Tests for module 'unistr/u8-mbtoucr'.
22992         * modules/unistr/u8-mbtoucr-tests: New file.
22993         * tests/unistr/test-u8-mbtoucr.c: New file.
22994
22995         Tests for module 'unistr/u32-mbtouc'.
22996         * modules/unistr/u32-mbtouc-tests: New file.
22997         * tests/unistr/test-u32-mbtouc.c: New file.
22998
22999         Tests for module 'unistr/u16-mbtouc'.
23000         * modules/unistr/u16-mbtouc-tests: New file.
23001         * tests/unistr/test-u16-mbtouc.c: New file.
23002
23003         Tests for module 'unistr/u8-mbtouc'.
23004         * modules/unistr/u8-mbtouc-tests: New file.
23005         * tests/unistr/test-u8-mbtouc.c: New file.
23006
23007         Tests for module 'unistr/u32-mbtouc-unsafe'.
23008         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23009         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23010         * tests/unistr/test-u32-mbtouc.h: New file.
23011
23012         Tests for module 'unistr/u16-mbtouc-unsafe'.
23013         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23014         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23015         * tests/unistr/test-u16-mbtouc.h: New file.
23016
23017         Tests for module 'unistr/u8-mbtouc-unsafe'.
23018         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23019         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23020         * tests/unistr/test-u8-mbtouc.h: New file.
23021
23022         Tests for module 'unistr/u32-mblen'.
23023         * modules/unistr/u32-mblen-tests: New file.
23024         * tests/unistr/test-u32-mblen.c: New file.
23025
23026         Tests for module 'unistr/u16-mblen'.
23027         * modules/unistr/u16-mblen-tests: New file.
23028         * tests/unistr/test-u16-mblen.c: New file.
23029
23030         Tests for module 'unistr/u8-mblen'.
23031         * modules/unistr/u8-mblen-tests: New file.
23032         * tests/unistr/test-u8-mblen.c: New file.
23033
23034         Tests for module 'unistr/u32-to-u16'.
23035         * modules/unistr/u32-to-u16-tests: New file.
23036         * tests/unistr/test-u32-to-u16.c: New file.
23037
23038         Tests for module 'unistr/u32-to-u8'.
23039         * modules/unistr/u32-to-u8-tests: New file.
23040         * tests/unistr/test-u32-to-u8.c: New file.
23041
23042         Tests for module 'unistr/u16-to-u32'.
23043         * modules/unistr/u16-to-u32-tests: New file.
23044         * tests/unistr/test-u16-to-u32.c: New file.
23045
23046         Tests for module 'unistr/u16-to-u8'.
23047         * modules/unistr/u16-to-u8-tests: New file.
23048         * tests/unistr/test-u16-to-u8.c: New file.
23049
23050         Tests for module 'unistr/u8-to-u32'.
23051         * modules/unistr/u8-to-u32-tests: New file.
23052         * tests/unistr/test-u8-to-u32.c: New file.
23053
23054         Tests for module 'unistr/u8-to-u16'.
23055         * modules/unistr/u8-to-u16-tests: New file.
23056         * tests/unistr/test-u8-to-u16.c: New file.
23057
23058         Tests for module 'unistr/u32-check'.
23059         * modules/unistr/u32-check-tests: New file.
23060         * tests/unistr/test-u32-check.c: New file.
23061
23062         Tests for module 'unistr/u16-check'.
23063         * modules/unistr/u16-check-tests: New file.
23064         * tests/unistr/test-u16-check.c: New file.
23065
23066         Tests for module 'unistr/u8-check'.
23067         * modules/unistr/u8-check-tests: New file.
23068         * tests/unistr/test-u8-check.c: New file.
23069
23070         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23071         (category_equals): New function.
23072         (main): Add more tests.
23073         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23074
23075         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23076
23077 2010-01-10  Bruno Haible  <bruno@clisp.org>
23078
23079         unistr/u*-strcoll: Try harder to distinguish different strings.
23080         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23081         compare s1 and s2 to see if they are different.
23082
23083 2010-01-10  Bruno Haible  <bruno@clisp.org>
23084
23085         unistr/u*-stpncpy: Fix the return value.
23086         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23087         description of the return value consistent with stpncpy in glibc.
23088         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23089         written non-NUL unit.
23090
23091 2010-01-10  Bruno Haible  <bruno@clisp.org>
23092
23093         unistr/u*-next: Add missing dependencies.
23094         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23095         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23096         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23097
23098 2010-01-10  Bruno Haible  <bruno@clisp.org>
23099
23100         unistr/u8-mbsnlen: Fix return value for incomplete character.
23101         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23102         u8_mblen.
23103         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23104         Remove unistr/u8-mblen.
23105         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23106         u16_mblen.
23107         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23108         Remove unistr/u16-mblen.
23109
23110 2010-01-10  Bruno Haible  <bruno@clisp.org>
23111
23112         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23113         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23114         Reported by Brian Gough <bjg@gnu.org> and
23115         Chris Clayton <chris2553@googlemail.com> via
23116         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23117
23118 2010-01-09  Bruno Haible  <bruno@clisp.org>
23119
23120         unistr/u16-to-u32: Reject invalid input.
23121         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23122         u16_mbtouc.
23123         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23124         Remove unistr/u16-mbtouc.
23125
23126         unistr/u16-to-u8: Reject invalid input.
23127         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23128         u16_mbtouc.
23129         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23130         Remove unistr/u16-mbtouc.
23131
23132         unistr/u8-to-u32: Reject invalid input.
23133         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23134         u8_mbtouc.
23135         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23136         Remove unistr/u8-mbtouc.
23137
23138         unistr/u8-to-u16: Reject invalid input.
23139         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23140         u8_mbtouc.
23141         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23142         Remove unistr/u8-mbtouc.
23143
23144 2010-01-09  Bruno Haible  <bruno@clisp.org>
23145
23146         Tests for module 'getlogin'.
23147         * modules/getlogin-tests: New file.
23148         * tests/test-getlogin.c: New file.
23149
23150         New module 'getlogin'.
23151         * lib/unistd.in.h (getlogin): New declaration.
23152         * lib/getlogin.c: New file.
23153         * m4/getlogin.m4: New file.
23154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23155         HAVE_GETLOGIN.
23156         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23157         HAVE_GETLOGIN.
23158         * modules/getlogin: New file.
23159         * doc/posix-functions/getlogin.texi: Mention the new module.
23160         Reported by John W. Eaton <jwe@gnu.org>.
23161
23162 2010-01-09  Bruno Haible  <bruno@clisp.org>
23163
23164         getlogin_r: Support for native Windows.
23165         * lib/getlogin_r.c: Include <windows.h>
23166         (getlogin_r): Implement for native Windows.
23167         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23168         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23169         via John W. Eaton <jwe@gnu.org>.
23170
23171 2010-01-09  Bruno Haible  <bruno@clisp.org>
23172
23173         getlogin_r: Small fixes.
23174         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23175         succeeds.
23176         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23177         before testing whether getlogin_r is declared. No need to set
23178         HAVE_DECL_GETLOGIN_R to 1.
23179         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23180
23181 2010-01-09  Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/unistd.in.h (getlogin_r): Add comment.
23184
23185 2010-01-09  Bruno Haible  <bruno@clisp.org>
23186
23187         Tests for module 'getlogin_r'.
23188         * modules/getlogin_r-tests: New file.
23189         * tests/test-getlogin_r.c: New file.
23190
23191 2010-01-09  Jim Meyering  <meyering@redhat.com>
23192
23193         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23194         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23195         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23196
23197 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23198
23199         * lib/dup2.c (rpl_dup2): Improve comment.
23200
23201 2010-01-08  Eric Blake  <ebb9@byu.net>
23202
23203         maint.mk: allow packages to add makefile @@ exceptions
23204         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23205         (sc_makefile_check): Rename...
23206         (sc_makefile_at_at_check): ...to this, and use hook.
23207
23208         dup2: work around mingw bug
23209         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23210         Reported by Simon Josefsson.
23211
23212 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23213
23214         glob: Fix C++ compilation.
23215         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23216         C++.
23217
23218 2010-01-07  Bruno Haible  <bruno@clisp.org>
23219
23220         Fix indentation of wctype.in.h, broken since 2007-01-06.
23221         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23222
23223 2010-01-07  Bruno Haible  <bruno@clisp.org>
23224
23225         mbslen: Avoid collision with system function.
23226         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23227         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23228         * m4/mbslen.m4: New file.
23229         * modules/mbslen (Files): Add it.
23230         (configure.ac): Invoke gl_MBSLEN.
23231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23232         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23233         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23234         via Ian Beckwith <ianb@erislabs.net>.
23235
23236 2010-01-07  Bruno Haible  <bruno@clisp.org>
23237
23238         dirent: Document the last fix.
23239         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23240
23241 2010-01-07  Bruno Haible  <bruno@clisp.org>
23242
23243         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23244         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23245         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23246         va_list are defined.
23247         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23248         Reported by Eric Blake.
23249
23250 2010-01-07  Bruno Haible  <bruno@clisp.org>
23251
23252         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23253         * modules/xlist (Depends-on): Add 'list',
23254         * modules/xoset (Depends-on): Add 'oset'.
23255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23256
23257 2010-01-07  Bruno Haible  <bruno@clisp.org>
23258
23259         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23260         * doc/posix-functions/strncasecmp.texi: Likewise.
23261
23262 2010-01-07  Bruno Haible  <bruno@clisp.org>
23263
23264         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23265
23266 2010-01-07  John W. Eaton  <jwe@octave.org>
23267
23268         wctype: allow C++ use
23269         * lib/wctype.in.h: Add extern "C" block for C++.
23270
23271 2010-01-06  Eric Blake  <ebb9@byu.net>
23272
23273         maint.mk: detect incorrect GFDL usage
23274         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23275
23276 2010-01-06  Jim Meyering  <meyering@redhat.com>
23277         and Eric Blake  <ebb9@byu.net>
23278
23279         maint.mk: ignore multi-line copyright in NEWS
23280         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23281
23282 2010-01-06  Eric Blake  <ebb9@byu.net>
23283
23284         select: add missing dependency
23285         * modules/select-tests (Depends-on): Move sockets dependency...
23286         * modules/select (Depends-on): ...here.
23287         Reported by Ian Beckwith.
23288
23289         doc: regenerate INSTALL
23290         * doc/INSTALL: Reflect recent autoconf update.
23291         * doc/INSTALL.ISO: Likewise.
23292         * doc/INSTALL.UTF-8: Likewise.
23293
23294         pread: fix compilation on glibc
23295         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23296         Reported by Ralf Wildenhues.
23297
23298         dirent: fix test failure
23299         * lib/dirent.in.h (includes): Guarantee ino_t.
23300         Reported by Ralf Wildenhues.
23301
23302 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23303
23304         linkat, renameat: avoid bad free
23305         * lib/at-func2.c (at_func2): Fix typo.
23306         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23307
23308 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23309
23310         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23311         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23312         to avoid failure of symlink test later.
23313
23314 2010-01-06  Eric Blake  <ebb9@byu.net>
23315
23316         stdio, unistd: guarantee ssize_t
23317         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23318         2008 are exposed when needed.
23319         * lib/stdio.in.h (includes): Likewise.
23320         Reported by Ralf Wildenhues.
23321
23322 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23323
23324         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23325         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23326         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23327
23328 2010-01-06  Jim Meyering  <meyering@redhat.com>
23329
23330         readtokens: this module *does* require xalloc.h
23331         It uses only functions that were omitted by the old syntax-check rule.
23332         * lib/readtokens.c: Include "xalloc.h" once again.
23333         * modules/readtokens (Depends-on): Add xalloc.
23334         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23335
23336 2010-01-05  Eric Blake  <ebb9@byu.net>
23337
23338         maint: support 'make announcement' from a VPATH build
23339         * top/maint.mk (announcement): Look for correct NEWS file.
23340
23341 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23342
23343         utimens (fdutimens): ignore a negative FD, per contract
23344         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23345         when we have a valid file descriptor.  Otherwise, using a brand
23346         new glibc (with just-patched futimens that now fails with EBADF)
23347         would cause this function to fail with ENOSYS.
23348         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23349         See also http://bugzilla.redhat.com/552320.
23350
23351 2010-01-05  Eric Blake  <ebb9@byu.net>
23352
23353         strcase: document what it provides
23354         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23355         gnulib module.
23356         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23357         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23358
23359 2010-01-05  Jim Meyering  <meyering@redhat.com>
23360
23361         maint: remove useless inclusions of "xalloc.h"
23362         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23363         * lib/readtokens.c: Likewise.
23364         * lib/same.c: Likewise.
23365         * modules/getloadavg (Depends-on): Remove xalloc.
23366         * modules/readtokens: Likewise.
23367         * modules/same: Likewise.
23368
23369         maint.mk: include 4 more function names in alloca.h-checking regexp
23370         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23371         regexp.  Before, we would give a false-positive (saying alloca.h
23372         is included unnecessarily) when the only uses involved omitted symbols.
23373
23374         xalloc.h: use consistent formatting
23375         * lib/xalloc.h: Move declarations to start in the first column.
23376
23377 2010-01-05  Eric Blake  <ebb9@byu.net>
23378
23379         mkdir: avoid xalloc
23380         * lib/mkdir.c (includes): Drop unused header.
23381         Reported by John W. Eaton.
23382
23383 2010-01-04  Jim Meyering  <meyering@redhat.com>
23384
23385         nl_langinfo: avoid configure-time syntax error
23386         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23387         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23388         the empty string.  Don't let that provoke a shell syntax error.
23389
23390         regcomp, regexec, fnmatch: avoid array bounds read error
23391         * lib/regcomp.c (build_equiv_class): From glibc:
23392         Use only the low 24 bits of a findidx return value as an index
23393         into the weights array.  Patch by Ulrich Drepper:
23394         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23395         * lib/regexec.c (check_node_accept_bytes): Likewise.
23396         * lib/fnmatch_loop.c (FCT): Likewise.
23397
23398         regcomp: skip collseq lookup when there are no rules
23399         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23400         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23401
23402         regcomp: recognize ill-formed { } expressions
23403         * lib/regcomp.c (parse_dup_op): From glibc:
23404         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23405
23406         regcomp: fix typo in comment
23407         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23408         s/satisfy/satisfies/.
23409
23410         regcomp: sync from glibc: remove dead store
23411         * lib/regcomp.c (duplicate_node_closure): Remove useless
23412         search_duplicated_node call and dead store.
23413
23414         regcomp: sync from glibc; always use nl_langinfo
23415         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23416         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23417         * modules/regex (Depends-on): Add nl_langinfo.
23418
23419 2010-01-04  Eric Blake  <ebb9@byu.net>
23420
23421         fdopendir: fix configure test
23422         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23423
23424 2010-01-01  Bruno Haible  <bruno@clisp.org>
23425
23426         wchar: Remove unused configure check.
23427         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23428
23429 2010-01-01  Eric Blake  <ebb9@byu.net>
23430
23431         headers: make check of system header explicit
23432         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23433         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23434         ourselves.
23435         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23438         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23439         internals.
23440         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23441         missing.
23442         Suggested by Bruno Haible.
23443
23444 2010-01-01  Jim Meyering  <meyering@redhat.com>
23445
23446         ChangeLog: tweak to eliminate unnecessary copyright line
23447         * ChangeLog: Remove a copyright line that was mistakenly updated
23448         by today's update-copyright run.  Reported by Eric Blake.
23449
23450         test-update-copyright: don't let envvar setting cause test failure
23451         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23452
23453 2010-01-01  Bruno Haible  <bruno@clisp.org>
23454
23455         localename: Avoid gcc warning.
23456         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23457         function if it is not used.
23458
23459 2010-01-01  Jim Meyering  <meyering@redhat.com>
23460
23461         update nearly all FSF copyright year lists to include 2010
23462         Use the same procedure as for 2009, outlined in
23463         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23464
23465         version-etc: set COPYRIGHT_YEAR to 2010
23466         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23467
23468 2009-12-31  Eric Blake  <ebb9@byu.net>
23469
23470         doc: correct availability of cygwin 1.5.x getopt
23471         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23472         variables.
23473         * doc/posix-functions/opterr.texi (opterr): Likewise.
23474         * doc/posix-functions/optind.texi (optind): Likewise.
23475         * doc/posix-functions/optopt.texi (optopt): Likewise.
23476         * doc/posix-functions/tzname.texi (tzname): Likewise.
23477
23478         openat: update maintainer
23479         * modules/openat (Maintainer): Add myself.
23480
23481         utimens: avoid shadowing warning
23482         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23483         buffers into one, to avoid shadowing, as well as avoiding a
23484         redundant stat.
23485         Reported by Jim Meyering.
23486
23487         test-dup2: avoid compiler warning
23488         * tests/test-dup2.c (is_inheritable): Only define if used.
23489
23490 2010-01-01  Bruno Haible  <bruno@clisp.org>
23491
23492         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23493         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23494         defined, use wctomb instead of wcrtomb.
23495
23496 2010-01-01  Bruno Haible  <bruno@clisp.org>
23497
23498         iconv: Reject native Solaris iconv.
23499         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23500         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23501
23502 2009-12-31  Bruno Haible  <bruno@clisp.org>
23503
23504         * tests/test-signal.c (main): Remove test of 'SIG'.
23505
23506 2009-12-31  Bruno Haible  <bruno@clisp.org>
23507
23508         spawn: Fix incomplete fix.
23509         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23510         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23511         warnings for GNULIB_POSIXCHECK again.
23512         Reported by Eric Blake.
23513
23514 2009-12-31  Bruno Haible  <bruno@clisp.org>
23515
23516         Avoid namespace pollution on glibc systems.
23517         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23518         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23519         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23520         glibc systems.
23521
23522 2009-12-31  Bruno Haible  <bruno@clisp.org>
23523
23524         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23525         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23526         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23527         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23528         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23529         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23530         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23531
23532 2009-12-31  Bruno Haible  <bruno@clisp.org>
23533
23534         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23535         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23536         afterwards.
23537
23538 2009-12-31  Bruno Haible  <bruno@clisp.org>
23539
23540         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23541         SYS_UTSNAME_H.
23542
23543 2009-12-31  Bruno Haible  <bruno@clisp.org>
23544
23545         spawn: Fix misapplied patch.
23546         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23547         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23548         warnings for GNULIB_POSIXCHECK.
23549
23550 2009-12-31  Bruno Haible  <bruno@clisp.org>
23551
23552         times: Update after sys_times changed.
23553         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23554         * modules/times (Files): Add it.
23555         (configure.ac): Invoke gl_FUNC_TIMES.
23556
23557 2009-12-31  Bruno Haible  <bruno@clisp.org>
23558
23559         Use AC_C_INLINE where necessary.
23560         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23561         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23562         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23563         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23564         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23565         * m4/mbiter.m4 (gl_MBITER): Likewise.
23566         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23567         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23568         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23569         * modules/u64 (configure.ac): Likewise.
23570
23571 2009-12-31  Bruno Haible  <bruno@clisp.org>
23572
23573         Use AC_C_INLINE instead of module 'inline' where possible.
23574         * modules/inline (Description): Clarify purpose.
23575         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23576         * modules/count-one-bits (Depends-on): Remove inline.
23577         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23578         * modules/openat (Depends-on): Remove inline.
23579         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23580         instead of depending on module 'inline'.
23581         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23582         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23583         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23584         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23585         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23586         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23587         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23588         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23589         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23590         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23591         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23592         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23593         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23594         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23595         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23596         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23597         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23598         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23599         Likewise.
23600         * modules/unictype/property-ascii-hex-digit (Depends-on,
23601         configure.ac): Likewise.
23602         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23603         configure.ac): Likewise.
23604         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23605         configure.ac): Likewise.
23606         * modules/unictype/property-bidi-block-separator (Depends-on,
23607         configure.ac): Likewise.
23608         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23609         configure.ac): Likewise.
23610         * modules/unictype/property-bidi-common-separator (Depends-on,
23611         configure.ac): Likewise.
23612         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23613         Likewise.
23614         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23615         configure.ac): Likewise.
23616         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23617         configure.ac): Likewise.
23618         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23619         configure.ac): Likewise.
23620         * modules/unictype/property-bidi-european-digit (Depends-on,
23621         configure.ac): Likewise.
23622         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23623         configure.ac): Likewise.
23624         * modules/unictype/property-bidi-left-to-right (Depends-on,
23625         configure.ac): Likewise.
23626         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23627         configure.ac): Likewise.
23628         * modules/unictype/property-bidi-other-neutral (Depends-on,
23629         configure.ac): Likewise.
23630         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23631         Likewise.
23632         * modules/unictype/property-bidi-segment-separator (Depends-on,
23633         configure.ac): Likewise.
23634         * modules/unictype/property-bidi-whitespace (Depends-on,
23635         configure.ac): Likewise.
23636         * modules/unictype/property-combining (Depends-on, configure.ac):
23637         Likewise.
23638         * modules/unictype/property-composite (Depends-on, configure.ac):
23639         Likewise.
23640         * modules/unictype/property-currency-symbol (Depends-on,
23641         configure.ac): Likewise.
23642         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23643         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23644         Likewise.
23645         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23646         configure.ac): Likewise.
23647         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23648         Likewise.
23649         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23650         Likewise.
23651         * modules/unictype/property-extender (Depends-on, configure.ac):
23652         Likewise.
23653         * modules/unictype/property-format-control (Depends-on, configure.ac):
23654         Likewise.
23655         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23656         Likewise.
23657         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23658         Likewise.
23659         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23660         Likewise.
23661         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23662         Likewise.
23663         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23664         Likewise.
23665         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23666         Likewise.
23667         * modules/unictype/property-id-start (Depends-on, configure.ac):
23668         Likewise.
23669         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23670         Likewise.
23671         * modules/unictype/property-ids-binary-operator (Depends-on,
23672         configure.ac): Likewise.
23673         * modules/unictype/property-ids-trinary-operator (Depends-on,
23674         configure.ac): Likewise.
23675         * modules/unictype/property-ignorable-control (Depends-on,
23676         configure.ac): Likewise.
23677         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23678         Likewise.
23679         * modules/unictype/property-join-control (Depends-on, configure.ac):
23680         Likewise.
23681         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23682         Likewise.
23683         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23684         Likewise.
23685         * modules/unictype/property-logical-order-exception (Depends-on,
23686         configure.ac): Likewise.
23687         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23688         Likewise.
23689         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23690         * modules/unictype/property-non-break (Depends-on, configure.ac):
23691         Likewise.
23692         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23693         Likewise.
23694         * modules/unictype/property-numeric (Depends-on, configure.ac):
23695         Likewise.
23696         * modules/unictype/property-other-alphabetic (Depends-on,
23697         configure.ac): Likewise.
23698         * modules/unictype/property-other-default-ignorable-code-point
23699         (Depends-on, configure.ac): Likewise.
23700         * modules/unictype/property-other-grapheme-extend (Depends-on,
23701         configure.ac): Likewise.
23702         * modules/unictype/property-other-id-continue (Depends-on,
23703         configure.ac): Likewise.
23704         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23705         Likewise.
23706         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23707         Likewise.
23708         * modules/unictype/property-other-math (Depends-on, configure.ac):
23709         Likewise.
23710         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23711         Likewise.
23712         * modules/unictype/property-paired-punctuation (Depends-on,
23713         configure.ac): Likewise.
23714         * modules/unictype/property-paragraph-separator (Depends-on,
23715         configure.ac): Likewise.
23716         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23717         Likewise.
23718         * modules/unictype/property-pattern-white-space (Depends-on,
23719         configure.ac): Likewise.
23720         * modules/unictype/property-private-use (Depends-on, configure.ac):
23721         Likewise.
23722         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23723         Likewise.
23724         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23725         Likewise.
23726         * modules/unictype/property-radical (Depends-on, configure.ac):
23727         Likewise.
23728         * modules/unictype/property-sentence-terminal (Depends-on,
23729         configure.ac): Likewise.
23730         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23731         Likewise.
23732         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23733         * modules/unictype/property-terminal-punctuation (Depends-on,
23734         configure.ac): Likewise.
23735         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23736         Likewise.
23737         * modules/unictype/property-unassigned-code-value (Depends-on,
23738         configure.ac): Likewise.
23739         * modules/unictype/property-unified-ideograph (Depends-on,
23740         configure.ac): Likewise.
23741         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23742         Likewise.
23743         * modules/unictype/property-variation-selector (Depends-on,
23744         configure.ac): Likewise.
23745         * modules/unictype/property-white-space (Depends-on, configure.ac):
23746         Likewise.
23747         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23748         Likewise.
23749         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23750         Likewise.
23751         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23752         Likewise.
23753         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23754         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23755         Likewise.
23756
23757 2009-12-31  Bruno Haible  <bruno@clisp.org>
23758
23759         Remove unnecessary AC_C_INLINE invocation.
23760         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23761         since 2009-08-21.
23762
23763 2009-12-31  Jim Meyering  <meyering@redhat.com>
23764
23765         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23766         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23767         With this change, we can all remove the gpg_key_ID = ... definition
23768         from our respective cfg.mk files.
23769
23770         maint.mk: create announcement template in ~/, not in /tmp
23771         * top/maint.mk (emit_upload_commands): Adjust.
23772         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23773         Remove temporary file, .ci-msg.
23774
23775 2009-12-31  Eric Blake  <ebb9@byu.net>
23776
23777         link-warning: always build headers with link warnings
23778         * modules/arpa_inet (Makefile.am): Always build replacement
23779         header.
23780         * modules/ctype (Makefile.am): Likewise.
23781         * modules/dirent (Makefile.am): Likewise.
23782         * modules/inttypes (Makefile.am): Likewise.
23783         * modules/langinfo (Makefile.am): Likewise.
23784         * modules/locale (Makefile.am): Likewise.
23785         * modules/spawn (Makefile.am): Likewise.
23786         * modules/sys_file (Makefile.am): Likewise.
23787         * modules/sys_ioctl (Makefile.am): Likewise.
23788         * modules/sys_select (Makefile.am): Likewise.
23789         * modules/sys_socket (Makefile.am): Likewise.
23790         * modules/sys_times (Makefile.am): Likewise.
23791         * modules/sys_utsname (Makefile.am): Likewise.
23792         * modules/sys_wait (Makefile.am): Likewise.
23793         * modules/wchar (Makefile.am): Likewise.
23794         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23795         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23796         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23797         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23798         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23799         Likewise.
23800         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23801         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23802         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23803         Likewise.
23804         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23805         Likewise.
23806         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23807         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23808         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23810         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23811         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23812         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23813         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23814         (gl_WCHAR_H_DEFAULTS): Likewise.
23815
23816 2009-12-31  Eric Blake  <ebb9@byu.net>
23817
23818         signal, spawn: use link warnings
23819         * lib/signal.in.h (sigset_t): Make unconditional.
23820         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23821         (sigpending, sigprocmask, sigaction): Add link warnings.
23822         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23823         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23824         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23825         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23826         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23827         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23828         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23829         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23830         (posix_spawn_file_actions_destroy)
23831         (posix_spawn_file_actions_addopen)
23832         (posix_spawn_file_actions_addclose)
23833         (posix_spawn_file_actions_adddup2): Likewise.
23834         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23835         * tests/test-signal.c (main): Enhance test.
23836
23837         spawn: improve wrapper support
23838         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23839         (gl_SPAWN_H_DEFAULTS): New defaults.
23840         * modules/spawn (Makefile.am): Substitute them.
23841         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23842         Only declare if missing or broken.
23843
23844         sys_times, sys_utsname: use include_next
23845         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23846         header.
23847         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23848         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23849         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23850         * modules/sys_times (Depends-on): Add include_next.
23851         (Makefile.am): Substitute additional values.
23852         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23853         * lib/sys_times.in.h (includes): Include native header, if
23854         available.
23855         * lib/sys_utsname.in.h (includes): Likewise.
23856         * tests/test-sys_times.c (main): Enhance test.
23857
23858         fdutimensat: revert prior patch
23859         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23860         utimens.h.
23861         Reported by Bruno Haible.
23862
23863 2009-12-30  Eric Blake  <ebb9@byu.net>
23864
23865         sys_wait: drop link-warning dependency
23866         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23867         link-warning efforts.
23868         * lib/sys_wait.in.h: Likewise.
23869
23870         fdutimensat: remove bogus dependency
23871         * modules/fdutimensat (Depends-on): Drop inline.
23872
23873         unistd: fix typo
23874         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23875
23876 2009-12-30  Bruno Haible  <bruno@clisp.org>
23877
23878         Fix compilation error with Solaris cc.
23879         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23880         * lib/unicase/u16-is-invariant.c: Likewise.
23881         * lib/unicase/u32-is-invariant.c: Likewise.
23882         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23883
23884 2009-12-30  Bruno Haible  <bruno@clisp.org>
23885
23886         Fix test crash.
23887         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23888         locales.
23889         Reported by Simon Josefsson <simon@josefsson.org>.
23890
23891 2009-12-30  Bruno Haible  <bruno@clisp.org>
23892
23893         Fix compilation error on most platforms.
23894         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23895         Reported by Simon Josefsson <simon@josefsson.org>
23896         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23897
23898 2009-12-30  Eric Blake  <ebb9@byu.net>
23899
23900         futimens, utimensat: work around ntfs-3g bug
23901         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23902         a ctime bug is present, and expand workaround to cover ntfs-3g.
23903         * lib/utimens.c (fdutimens, lutimens): Likewise.
23904         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23905         (validate_timespec): Adjust return value.
23906         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23907         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23908         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23909
23910 2009-12-29  Eric Blake  <ebb9@byu.net>
23911
23912         link-warning: make usage consistent
23913         * modules/ctype (Depends-on): Add link-warning.
23914         (Makefile.am): Update rules accordingly.
23915         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23916         * modules/locale (Depends-on, Makefile.am): Likewise.
23917         * modules/sys_file (Makefile.am): Likewise.
23918         * modules/getopt-posix (Makefile.am): Delete unused link warning
23919         efforts.
23920         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23921         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23922         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23923         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23924
23925         stdio: remove unused variables
23926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23927         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23928         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23929
23930         tests: test more substitute headers
23931         * modules/ctype-tests: New file.
23932         * modules/dirent-tests: Likewise.
23933         * modules/spawn-tests: Likewise.
23934         * modules/sys_file-tests: Likewise.
23935         * modules/sys_ioctl-tests: Likewise.
23936         * modules/sys_wait-tests: Likewise.
23937         * tests/test-ctype.c: Likewise.
23938         * tests/test-dirent.c: Likewise.
23939         * tests/test-spawn.c: Likewise.
23940         * tests/test-sys_file.c: Likewise.
23941         * tests/test-sys_ioctl.c: Likewise.
23942         * tests/test-sys_wait.c: Likewise.
23943         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23944         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23945         whether or not flock is in use.
23946
23947         tests: remove License section from module
23948         * modules/arpa_inet-tests: Remove unneeded section.
23949         * modules/byteswap-tests: Likewise.
23950         * modules/ceilf-tests: Likewise.
23951         * modules/ceill-tests: Likewise.
23952         * modules/crypto/des-tests: Likewise.
23953         * modules/crypto/gc-arcfour-tests: Likewise.
23954         * modules/crypto/gc-arctwo-tests: Likewise.
23955         * modules/crypto/gc-des-tests: Likewise.
23956         * modules/crypto/gc-hmac-md5-tests: Likewise.
23957         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23958         * modules/crypto/gc-md2-tests: Likewise.
23959         * modules/crypto/gc-md4-tests: Likewise.
23960         * modules/crypto/gc-md5-tests: Likewise.
23961         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23962         * modules/crypto/gc-rijndael-tests: Likewise.
23963         * modules/crypto/gc-sha1-tests: Likewise.
23964         * modules/crypto/gc-tests: Likewise.
23965         * modules/crypto/md2-tests: Likewise.
23966         * modules/crypto/md4-tests: Likewise.
23967         * modules/fcntl-h-tests: Likewise.
23968         * modules/floorf-tests: Likewise.
23969         * modules/floorl-tests: Likewise.
23970         * modules/frexp-nolibm-tests: Likewise.
23971         * modules/frexp-tests: Likewise.
23972         * modules/frexpl-nolibm-tests: Likewise.
23973         * modules/frexpl-tests: Likewise.
23974         * modules/getaddrinfo-tests: Likewise.
23975         * modules/inttypes-tests: Likewise.
23976         * modules/isfinite-tests: Likewise.
23977         * modules/isinf-tests: Likewise.
23978         * modules/ldexpl-tests: Likewise.
23979         * modules/locale-tests: Likewise.
23980         * modules/math-tests: Likewise.
23981         * modules/netdb-tests: Likewise.
23982         * modules/netinet_in-tests: Likewise.
23983         * modules/printf-frexp-tests: Likewise.
23984         * modules/printf-frexpl-tests: Likewise.
23985         * modules/priv-set-tests: Likewise.
23986         * modules/random_r-tests: Likewise.
23987         * modules/round-tests: Likewise.
23988         * modules/roundf-tests: Likewise.
23989         * modules/roundl-tests: Likewise.
23990         * modules/search-tests: Likewise.
23991         * modules/select-tests: Likewise.
23992         * modules/signal-tests: Likewise.
23993         * modules/stdbool-tests: Likewise.
23994         * modules/stddef-tests: Likewise.
23995         * modules/stdint-tests: Likewise.
23996         * modules/stdio-tests: Likewise.
23997         * modules/stdlib-tests: Likewise.
23998         * modules/string-tests: Likewise.
23999         * modules/strings-tests: Likewise.
24000         * modules/sys_select-tests: Likewise.
24001         * modules/sys_socket-tests: Likewise.
24002         * modules/sys_stat-tests: Likewise.
24003         * modules/sys_time-tests: Likewise.
24004         * modules/sys_utsname-tests: Likewise.
24005         * modules/sysexits-tests: Likewise.
24006         * modules/time-tests: Likewise.
24007         * modules/trunc-tests: Likewise.
24008         * modules/truncf-tests: Likewise.
24009         * modules/truncl-tests: Likewise.
24010         * modules/tsearch-tests: Likewise.
24011         * modules/unistd-tests: Likewise.
24012         * modules/wchar-tests: Likewise.
24013         * modules/wctype-tests: Likewise.
24014
24015         tests: fix license on several tests
24016         * tests/test-des.c: Update to GPLv3+.
24017         * tests/test-flock.c: Likewise.
24018         * tests/test-fsync.c: Likewise.
24019         * tests/test-futimens.h: Likewise.
24020         * tests/test-gc-arcfour.c: Likewise.
24021         * tests/test-gc-arctwo.c: Likewise.
24022         * tests/test-gc-des.c: Likewise.
24023         * tests/test-gc-hmac-md5.c: Likewise.
24024         * tests/test-gc-hmac-sha1.c: Likewise.
24025         * tests/test-gc-md2.c: Likewise.
24026         * tests/test-gc-md4.c: Likewise.
24027         * tests/test-gc-md5.c: Likewise.
24028         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24029         * tests/test-gc-rijndael.c: Likewise.
24030         * tests/test-gc-sha1.c: Likewise.
24031         * tests/test-gc.c: Likewise.
24032         * tests/test-getcwd.c: Likewise.
24033         * tests/test-link.c: Likewise.
24034         * tests/test-link.h: Likewise.
24035         * tests/test-lutimens.h: Likewise.
24036         * tests/test-md2.c: Likewise.
24037         * tests/test-md4.c: Likewise.
24038         * tests/test-mkdir.h: Likewise.
24039         * tests/test-rename.c: Likewise.
24040         * tests/test-rename.h: Likewise.
24041         * tests/test-safe-alloc.c: Likewise.
24042         * tests/test-utimens-common.h: Likewise.
24043         * tests/test-utimens.h: Likewise.
24044
24045         maint: sync license texts
24046         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24047         * doc/gpl-3.0.texi: Revert copyright year update.
24048         * doc/lgpl-3.0.texi: Likewise.
24049
24050 2009-12-29  Jim Meyering  <meyering@redhat.com>
24051
24052         update nearly all FSF copyright year lists to include 2009
24053         The files named by the following are exempted:
24054             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24055               test -f "$dst" && { echo "$dst"; continue; }
24056               test -d "$dst" || continue
24057               echo "$dst"/$(basename "$src")
24058             done > exempt
24059             git ls-files tests/unictype >> exempt
24060         In the remaining files, convert to all-interval notation if
24061         - there is already at least one year interval like 2000-2003
24062         - the file is maintained by me
24063         - the file is in lib/uni*/, where that style already prevails
24064         Otherwise, use update-copyright's default.
24065
24066 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24067         and Eric Blake  <ebb9@byu.net>
24068
24069         tests: don't require debug system() to pass
24070         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24071         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24072         * tests/test-unlink.h (test_unlink_func): Likewise.
24073         * tests/test-fstatat.c (main): ...into callers.
24074         * tests/test-lstat.c (main): Likewise.
24075         * tests/test-rmdir.c (main): Likewise.
24076         * tests/test-unlink.c (main): Likewise.
24077         * tests/test-unlinkat.c (main): Likewise.
24078         * tests/test-areadlink-with-size.c (main): Don't require a
24079         debug-only system call to pass, aiding cross-testing to mingw.
24080         * tests/test-areadlink.c (main): Likewise.
24081         * tests/test-areadlinkat-with-size.c (main): Likewise.
24082         * tests/test-areadlinkat.c (main): Likewise.
24083         * tests/test-canonicalize-lgpl.c (main): Likewise.
24084         * tests/test-canonicalize.c (main): Likewise.
24085         * tests/test-chown.c (main): Likewise.
24086         * tests/test-fchownat.c (main): Likewise.
24087         * tests/test-lchown.c (main): Likewise.
24088         * tests/test-fdutimensat.c (main): Likewise.
24089         * tests/test-futimens.c (main): Likewise.
24090         * tests/test-link.c (main): Likewise.
24091         * tests/test-linkat.c (main): Likewise.
24092         * tests/test-mkdir.c (main): Likewise.
24093         * tests/test-mkdirat.c (main): Likewise.
24094         * tests/test-mkfifo.c (main): Likewise.
24095         * tests/test-mkfifoat.c (main): Likewise.
24096         * tests/test-mknod.c (main): Likewise.
24097         * tests/test-readlink.c (main): Likewise.
24098         * tests/test-remove.c (main): Likewise.
24099         * tests/test-rename.c (main): Likewise.
24100         * tests/test-renameat.c (main): Likewise.
24101         * tests/test-symlink.c (main): Likewise.
24102         * tests/test-symlinkat.c (main): Likewise.
24103         * tests/test-utimens.c (main): Likewise.
24104         * tests/test-utimensat.c (main): Likewise.
24105
24106 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24107
24108         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24109         on $(UNUSED_PARAMETER_H) to avoid build failure.
24110
24111 2009-12-28  Jim Meyering  <meyering@redhat.com>
24112
24113         update-copyright: you may specify a max. line length other than 72
24114         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24115
24116         maint: use consistent FSF copyright line syntax
24117         * lib/posixtm.c: Add missing comma in FSF copyright line.
24118         * lib/posixtm.h: Likewise.
24119         * lib/getugroups.c: Add missing ", Inc.".
24120
24121         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24122         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24123         FSF copyright line.  Remove trailing blanks.
24124
24125 2009-12-28  Eric Blake  <ebb9@byu.net>
24126
24127         test-dup2: reduce dependencies
24128         * modules/cloexec (Configure.ac): Set witness.
24129         * modules/dup2-tests (Depends-on): Drop cloexec.
24130         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24131         not present.
24132         Suggested by Bruno Haible.
24133
24134 2009-12-26  Bruno Haible  <bruno@clisp.org>
24135
24136         Remove an unneeded dependency.
24137         * modules/fseterr (Depends-on): Remove dup2.
24138
24139 2009-12-26  Eric Blake  <ebb9@byu.net>
24140
24141         tests: use macros.h in more places
24142         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24143         (ASSERT_STREAM): Provide default of stderr.
24144         * tests/test-dirent-safer.c: Include macros.h, using alternate
24145         stream for assertions.
24146         * tests/test-dup-safer.c: Likewise.
24147         * tests/test-freopen-safer.c: Likewise.
24148         * tests/test-getopt.c: Likewise.
24149         * tests/test-openat-safer.c: Likewise.
24150         * tests/test-pipe.c: Likewise.
24151         * tests/test-popen-safer.c: Likewise.
24152         * modules/dirent-safer-tests (Files): Include macros.h.
24153         * modules/unistd-safer-tests (Files): Likewise.
24154         * modules/freopen-safer-tests (Files): Likewise.
24155         * modules/getopt-posix-tests (Files): Likewise.
24156         * modules/openat-safer-tests (Files): Likewise.
24157         * modules/pipe-tests (Files): Likewise.
24158
24159 2009-12-26  Bruno Haible  <bruno@clisp.org>
24160
24161         javacomp: Portability fix.
24162         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24163         that it also works on Solaris.
24164
24165 2009-12-26  Bruno Haible  <bruno@clisp.org>
24166
24167         localename: Fix storage allocation of gl_locale_name_thread's result.
24168         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24169         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24170         all platforms that have 'uselocale'.
24171         (gl_locale_name_thread_unsafe): New function, extracted from
24172         gl_locale_name_thread.
24173         (gl_locale_name_thread): Call struniq on all platforms that have
24174         'uselocale'.
24175         * tests/test-localename.c (test_locale_name_thread): Check that the
24176         resulting strings are permanently allocated.
24177         * modules/localename-tests (Depends-on): Add strdup.
24178
24179 2009-12-26  Bruno Haible  <bruno@clisp.org>
24180
24181         * tests/test-localename.c (categories): Fill in the strings.
24182
24183 2009-12-26  Jim Meyering  <meyering@redhat.com>
24184
24185         isdir: complete the removal of m4/isdir.m4
24186         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24187
24188         isdir: clean up, since at least grep still uses it
24189         * lib/isdir.c: Include "isdir.h".
24190         (S_ISDIR): Remove now-unneeded definition.
24191         * modules/isdir (Files): Add lib/isdir.h.
24192         * lib/isdir.h: New file, with declaration.
24193         * m4/isdir.m4: Remove file -- unneeded.
24194
24195 2009-12-25  Bruno Haible  <bruno@clisp.org>
24196
24197         selinux-h: Make generated .h files standalone.
24198         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24199         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24200         * lib/se-selinux.in.h: Likewise.
24201         * modules/selinux-h (Depends-on): Add unused-parameter.
24202         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24203         selinux/selinux.h and selinux/context.h.
24204         Suggested by Eric Blake.
24205
24206 2009-12-25  Bruno Haible  <bruno@clisp.org>
24207
24208         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24209         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24210         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24211         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24212         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24213
24214 2009-12-24  Bruno Haible  <bruno@clisp.org>
24215
24216         openat: Fix warning.
24217         * lib/openat-proc.c: Include <unistd.h>.
24218
24219 2009-12-24  Bruno Haible  <bruno@clisp.org>
24220
24221         New module 'unused-parameter'.
24222         * build-aux/unused-parameter.h: New file, extracted from earlier
24223         gnulib-common.m4.
24224         * modules/unused-parameter: New file.
24225         * lib/unistr.h: Include unused-parameter.h.
24226         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24227         _GL_UNUSED.
24228         * modules/unistr/base (Depends-on): Add unused-parameter.
24229
24230 2009-12-24  Bruno Haible  <bruno@clisp.org>
24231
24232         Add missing dependencies to 'extensions' module.
24233         * m4/extensions.m4: Add comment.
24234         * modules/accept4 (Depends-on): Add extensions.
24235         * modules/dup3 (Depends-on): Likewise.
24236         * modules/fcntl (Depends-on): Likewise.
24237         * modules/futimens (Depends-on): Likewise.
24238         * modules/mknod (Depends-on): Likewise.
24239         * modules/pipe2 (Depends-on): Likewise.
24240         * modules/stat-time (Depends-on): Likewise.
24241         * modules/strcasestr-simple (Depends-on): Likewise.
24242         * modules/strsignal (Depends-on): Likewise.
24243         * modules/utimensat (Depends-on): Likewise.
24244         * modules/localcharset (Depends-on): Likewise. Needed because of
24245         gl_FCNTL_O_FLAGS.
24246         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24247         AC_TYPE_MBSTATE_T.
24248         * modules/wcsnrtombs (Depends-on): Likewise.
24249         * modules/wcsrtombs (Depends-on): Likewise.
24250
24251 2009-12-24  Bruno Haible  <bruno@clisp.org>
24252
24253         binary-io: Avoid gcc warning due to SET_BINARY.
24254         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24255         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24256
24257 2009-12-24  Bruno Haible  <bruno@clisp.org>
24258
24259         Avoid future namespace pollution on glibc systems.
24260         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24261         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24262         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24263         glibc systems.
24264
24265 2009-12-24  Bruno Haible  <bruno@clisp.org>
24266
24267         Refactor common macros used in tests.
24268         * tests/macros.h: New file.
24269         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24270         and/or <stdlib.h>, if appropriate.
24271         (ASSERT, SIZEOF): Remove macros.
24272         * tests/test-areadlink-with-size.c: Likewise.
24273         * tests/test-areadlinkat.c: Likewise.
24274         * tests/test-areadlinkat-with-size.c: Likewise.
24275         * tests/test-argmatch.c: Likewise.
24276         * tests/test-argv-iter.c: Likewise.
24277         * tests/test-array-mergesort.c: Likewise.
24278         * tests/test-array_list.c: Likewise.
24279         * tests/test-array_oset.c: Likewise.
24280         * tests/test-avltree_list.c: Likewise.
24281         * tests/test-avltree_oset.c: Likewise.
24282         * tests/test-avltreehash_list.c: Likewise.
24283         * tests/test-base64.c: Likewise.
24284         * tests/test-binary-io.c: Likewise.
24285         * tests/test-bitrotate.c: Likewise.
24286         * tests/test-btowc.c: Likewise.
24287         * tests/test-byteswap.c: Likewise.
24288         * tests/test-c-ctype.c: Likewise.
24289         * tests/test-c-stack.c: Likewise.
24290         * tests/test-c-strcasecmp.c: Likewise.
24291         * tests/test-c-strcasestr.c: Likewise.
24292         * tests/test-c-strncasecmp.c: Likewise.
24293         * tests/test-c-strstr.c: Likewise.
24294         * tests/test-canonicalize-lgpl.c: Likewise.
24295         * tests/test-canonicalize.c: Likewise.
24296         * tests/test-carray_list.c: Likewise.
24297         * tests/test-ceilf1.c: Likewise.
24298         * tests/test-ceilf2.c: Likewise.
24299         * tests/test-ceill.c: Likewise.
24300         * tests/test-chown.c: Likewise.
24301         * tests/test-cloexec.c: Likewise.
24302         * tests/test-copy-acl.c: Likewise.
24303         * tests/test-copy-file.c: Likewise.
24304         * tests/test-count-one-bits.c: Likewise.
24305         * tests/test-dprintf-posix.c: Likewise.
24306         * tests/test-dup2.c: Likewise.
24307         * tests/test-dup3.c: Likewise.
24308         * tests/test-duplocale.c: Likewise.
24309         * tests/test-fbufmode.c: Likewise.
24310         * tests/test-fchdir.c: Likewise.
24311         * tests/test-fchownat.c: Likewise.
24312         * tests/test-fcntl-safer.c: Likewise.
24313         * tests/test-fcntl.c: Likewise.
24314         * tests/test-fdopendir.c: Likewise.
24315         * tests/test-fdutimensat.c: Likewise.
24316         * tests/test-fflush2.c: Likewise.
24317         * tests/test-file-has-acl.c: Likewise.
24318         * tests/test-filevercmp.c: Likewise.
24319         * tests/test-flock.c: Likewise.
24320         * tests/test-floorf1.c: Likewise.
24321         * tests/test-floorf2.c: Likewise.
24322         * tests/test-floorl.c: Likewise.
24323         * tests/test-fnmatch.c: Likewise.
24324         * tests/test-fopen.h: Likewise.
24325         * tests/test-fpending.c: Likewise.
24326         * tests/test-fprintf-posix.c: Likewise.
24327         * tests/test-fpurge.c: Likewise.
24328         * tests/test-freadable.c: Likewise.
24329         * tests/test-freadahead.c: Likewise.
24330         * tests/test-freading.c: Likewise.
24331         * tests/test-freadptr.c: Likewise.
24332         * tests/test-freadptr2.c: Likewise.
24333         * tests/test-freadseek.c: Likewise.
24334         * tests/test-freopen.c: Likewise.
24335         * tests/test-frexp.c: Likewise.
24336         * tests/test-frexpl.c: Likewise.
24337         * tests/test-fseek.c: Likewise.
24338         * tests/test-fseeko.c: Likewise.
24339         * tests/test-fstatat.c: Likewise.
24340         * tests/test-fstrcmp.c: Likewise.
24341         * tests/test-fsync.c: Likewise.
24342         * tests/test-ftell.c: Likewise.
24343         * tests/test-ftello.c: Likewise.
24344         * tests/test-func.c: Likewise.
24345         * tests/test-futimens.c: Likewise.
24346         * tests/test-fwritable.c: Likewise.
24347         * tests/test-fwriting.c: Likewise.
24348         * tests/test-getcwd.c: Likewise.
24349         * tests/test-getdate.c: Likewise.
24350         * tests/test-getdelim.c: Likewise.
24351         * tests/test-getdtablesize.c: Likewise.
24352         * tests/test-getgroups.c: Likewise.
24353         * tests/test-getline.c: Likewise.
24354         * tests/test-getndelim2.c: Likewise.
24355         * tests/test-glob.c: Likewise.
24356         * tests/test-hash.c: Likewise.
24357         * tests/test-i-ring.c: Likewise.
24358         * tests/test-iconv-utf.c: Likewise.
24359         * tests/test-iconv.c: Likewise.
24360         * tests/test-idpriv-drop.c: Likewise.
24361         * tests/test-idpriv-droptemp.c: Likewise.
24362         * tests/test-inet_ntop.c: Likewise.
24363         * tests/test-inet_pton.c: Likewise.
24364         * tests/test-isblank.c: Likewise.
24365         * tests/test-isfinite.c: Likewise.
24366         * tests/test-isinf.c: Likewise.
24367         * tests/test-isnan.c: Likewise.
24368         * tests/test-isnand.h: Likewise.
24369         * tests/test-isnanf.h: Likewise.
24370         * tests/test-isnanl.h: Likewise.
24371         * tests/test-lchown.c: Likewise.
24372         * tests/test-ldexpl.c: Likewise.
24373         * tests/test-link.c: Likewise.
24374         * tests/test-linkat.c: Likewise.
24375         * tests/test-linked_list.c: Likewise.
24376         * tests/test-linkedhash_list.c: Likewise.
24377         * tests/test-localename.c: Likewise.
24378         * tests/test-lseek.c: Likewise.
24379         * tests/test-lstat.c: Likewise.
24380         * tests/test-mbmemcasecmp.c: Likewise.
24381         * tests/test-mbmemcasecoll.c: Likewise.
24382         * tests/test-mbrtowc.c: Likewise.
24383         * tests/test-mbscasecmp.c: Likewise.
24384         * tests/test-mbscasestr1.c: Likewise.
24385         * tests/test-mbscasestr2.c: Likewise.
24386         * tests/test-mbscasestr3.c: Likewise.
24387         * tests/test-mbscasestr4.c: Likewise.
24388         * tests/test-mbschr.c: Likewise.
24389         * tests/test-mbscspn.c: Likewise.
24390         * tests/test-mbsinit.c: Likewise.
24391         * tests/test-mbsncasecmp.c: Likewise.
24392         * tests/test-mbsnrtowcs.c: Likewise.
24393         * tests/test-mbspbrk.c: Likewise.
24394         * tests/test-mbspcasecmp.c: Likewise.
24395         * tests/test-mbsrchr.c: Likewise.
24396         * tests/test-mbsrtowcs.c: Likewise.
24397         * tests/test-mbsspn.c: Likewise.
24398         * tests/test-mbsstr1.c: Likewise.
24399         * tests/test-mbsstr2.c: Likewise.
24400         * tests/test-mbsstr3.c: Likewise.
24401         * tests/test-memchr.c: Likewise.
24402         * tests/test-memchr2.c: Likewise.
24403         * tests/test-memcmp.c: Likewise.
24404         * tests/test-memmem.c: Likewise.
24405         * tests/test-memrchr.c: Likewise.
24406         * tests/test-mkdir.c: Likewise.
24407         * tests/test-mkdirat.c: Likewise.
24408         * tests/test-mkfifo.c: Likewise.
24409         * tests/test-mkfifoat.c: Likewise.
24410         * tests/test-mknod.c: Likewise.
24411         * tests/test-nanosleep.c: Likewise.
24412         * tests/test-nl_langinfo.c: Likewise.
24413         * tests/test-obstack-printf.c: Likewise.
24414         * tests/test-open.c: Likewise.
24415         * tests/test-openat.c: Likewise.
24416         * tests/test-pipe-filter-gi1.c: Likewise.
24417         * tests/test-pipe-filter-gi2-main.c: Likewise.
24418         * tests/test-pipe-filter-ii1.c: Likewise.
24419         * tests/test-pipe-filter-ii2-main.c: Likewise.
24420         * tests/test-pipe2.c: Likewise.
24421         * tests/test-popen.h: Likewise.
24422         * tests/test-posixtm.c: Likewise.
24423         * tests/test-pread.c: Likewise.
24424         * tests/test-printf-frexp.c: Likewise.
24425         * tests/test-printf-frexpl.c: Likewise.
24426         * tests/test-printf-posix.c: Likewise.
24427         * tests/test-priv-set.c: Likewise.
24428         * tests/test-quotearg.c: Likewise.
24429         * tests/test-random_r.c: Likewise.
24430         * tests/test-rawmemchr.c: Likewise.
24431         * tests/test-rbtree_list.c: Likewise.
24432         * tests/test-rbtree_oset.c: Likewise.
24433         * tests/test-rbtreehash_list.c: Likewise.
24434         * tests/test-readlink.c: Likewise.
24435         * tests/test-remove.c: Likewise.
24436         * tests/test-rename.c: Likewise.
24437         * tests/test-renameat.c: Likewise.
24438         * tests/test-rmdir.c: Likewise.
24439         * tests/test-round1.c: Likewise.
24440         * tests/test-roundf1.c: Likewise.
24441         * tests/test-roundl.c: Likewise.
24442         * tests/test-safe-alloc.c: Likewise.
24443         * tests/test-sameacls.c: Likewise.
24444         * tests/test-set-mode-acl.c: Likewise.
24445         * tests/test-setenv.c: Likewise.
24446         * tests/test-sigaction.c: Likewise.
24447         * tests/test-signbit.c: Likewise.
24448         * tests/test-sleep.c: Likewise.
24449         * tests/test-snprintf-posix.c: Likewise.
24450         * tests/test-snprintf.c: Likewise.
24451         * tests/test-sprintf-posix.c: Likewise.
24452         * tests/test-stat-time.c: Likewise.
24453         * tests/test-stat.c: Likewise.
24454         * tests/test-strcasestr.c: Likewise.
24455         * tests/test-strchrnul.c: Likewise.
24456         * tests/test-strerror.c: Likewise.
24457         * tests/test-striconv.c: Likewise.
24458         * tests/test-striconveh.c: Likewise.
24459         * tests/test-striconveha.c: Likewise.
24460         * tests/test-strsignal.c: Likewise.
24461         * tests/test-strstr.c: Likewise.
24462         * tests/test-strtod.c: Likewise.
24463         * tests/test-strverscmp.c: Likewise.
24464         * tests/test-symlink.c: Likewise.
24465         * tests/test-symlinkat.c: Likewise.
24466         * tests/test-trunc1.c: Likewise.
24467         * tests/test-trunc2.c: Likewise.
24468         * tests/test-truncf1.c: Likewise.
24469         * tests/test-truncf2.c: Likewise.
24470         * tests/test-truncl.c: Likewise.
24471         * tests/test-uname.c: Likewise.
24472         * tests/test-unlink.c: Likewise.
24473         * tests/test-unlinkat.c: Likewise.
24474         * tests/test-unsetenv.c: Likewise.
24475         * tests/test-usleep.c: Likewise.
24476         * tests/test-utimens.c: Likewise.
24477         * tests/test-utimensat.c: Likewise.
24478         * tests/test-vasnprintf-posix.c: Likewise.
24479         * tests/test-vasnprintf-posix2.c: Likewise.
24480         * tests/test-vasnprintf.c: Likewise.
24481         * tests/test-vasprintf-posix.c: Likewise.
24482         * tests/test-vasprintf.c: Likewise.
24483         * tests/test-vdprintf-posix.c: Likewise.
24484         * tests/test-vfprintf-posix.c: Likewise.
24485         * tests/test-vprintf-posix.c: Likewise.
24486         * tests/test-vsnprintf-posix.c: Likewise.
24487         * tests/test-vsnprintf.c: Likewise.
24488         * tests/test-vsprintf-posix.c: Likewise.
24489         * tests/test-wcrtomb.c: Likewise.
24490         * tests/test-wcsnrtombs.c: Likewise.
24491         * tests/test-wcsrtombs.c: Likewise.
24492         * tests/test-wctype.c: Likewise.
24493         * tests/test-wcwidth.c: Likewise.
24494         * tests/test-xfprintf-posix.c: Likewise.
24495         * tests/test-xmemdup0.c: Likewise.
24496         * tests/test-xprintf-posix.c: Likewise.
24497         * tests/test-xvasprintf.c: Likewise.
24498         * tests/unicase/test-locale-language.c: Likewise.
24499         * tests/unicase/test-mapping-part1.h: Likewise.
24500         * tests/unicase/test-predicate-part1.h: Likewise.
24501         * tests/unicase/test-u8-casecmp.c: Likewise.
24502         * tests/unicase/test-u8-casecoll.c: Likewise.
24503         * tests/unicase/test-u8-casefold.c: Likewise.
24504         * tests/unicase/test-u8-is-cased.c: Likewise.
24505         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24506         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24507         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24508         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24509         * tests/unicase/test-u8-tolower.c: Likewise.
24510         * tests/unicase/test-u8-totitle.c: Likewise.
24511         * tests/unicase/test-u8-toupper.c: Likewise.
24512         * tests/unicase/test-u16-casecmp.c: Likewise.
24513         * tests/unicase/test-u16-casecoll.c: Likewise.
24514         * tests/unicase/test-u16-casefold.c: Likewise.
24515         * tests/unicase/test-u16-is-cased.c: Likewise.
24516         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24517         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24518         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24519         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24520         * tests/unicase/test-u16-tolower.c: Likewise.
24521         * tests/unicase/test-u16-totitle.c: Likewise.
24522         * tests/unicase/test-u16-toupper.c: Likewise.
24523         * tests/unicase/test-u32-casecmp.c: Likewise.
24524         * tests/unicase/test-u32-casecoll.c: Likewise.
24525         * tests/unicase/test-u32-casefold.c: Likewise.
24526         * tests/unicase/test-u32-is-cased.c: Likewise.
24527         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24528         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24529         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24530         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24531         * tests/unicase/test-u32-tolower.c: Likewise.
24532         * tests/unicase/test-u32-totitle.c: Likewise.
24533         * tests/unicase/test-u32-toupper.c: Likewise.
24534         * tests/unicase/test-ulc-casecmp.c: Likewise.
24535         * tests/unicase/test-ulc-casecoll.c: Likewise.
24536         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24537         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24538         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24539         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24540         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24541         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24542         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24543         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24544         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24545         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24546         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24547         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24548         * tests/unictype/test-bidi_byname.c: Likewise.
24549         * tests/unictype/test-bidi_name.c: Likewise.
24550         * tests/unictype/test-bidi_of.c: Likewise.
24551         * tests/unictype/test-bidi_test.c: Likewise.
24552         * tests/unictype/test-block_list.c: Likewise.
24553         * tests/unictype/test-block_of.c: Likewise.
24554         * tests/unictype/test-block_test.c: Likewise.
24555         * tests/unictype/test-categ_and.c: Likewise.
24556         * tests/unictype/test-categ_and_not.c: Likewise.
24557         * tests/unictype/test-categ_byname.c: Likewise.
24558         * tests/unictype/test-categ_name.c: Likewise.
24559         * tests/unictype/test-categ_none.c: Likewise.
24560         * tests/unictype/test-categ_of.c: Likewise.
24561         * tests/unictype/test-categ_or.c: Likewise.
24562         * tests/unictype/test-categ_test_withtable.c: Likewise.
24563         * tests/unictype/test-combining.c: Likewise.
24564         * tests/unictype/test-decdigit.c: Likewise.
24565         * tests/unictype/test-digit.c: Likewise.
24566         * tests/unictype/test-mirror.c: Likewise.
24567         * tests/unictype/test-numeric.c: Likewise.
24568         * tests/unictype/test-pr_byname.c: Likewise.
24569         * tests/unictype/test-pr_test.c: Likewise.
24570         * tests/unictype/test-predicate-part1.h: Likewise.
24571         * tests/unictype/test-scripts.c: Likewise.
24572         * tests/unictype/test-sy_c_ident.c: Likewise.
24573         * tests/unictype/test-sy_java_ident.c: Likewise.
24574         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24575         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24576         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24577         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24578         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24579         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24580         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24581         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24582         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24583         * tests/uninorm/test-compat-decomposition.c: Likewise.
24584         * tests/uninorm/test-composition.c: Likewise.
24585         * tests/uninorm/test-decomposing-form.c: Likewise.
24586         * tests/uninorm/test-decomposition.c: Likewise.
24587         * tests/uninorm/test-u8-nfc.c: Likewise.
24588         * tests/uninorm/test-u8-nfd.c: Likewise.
24589         * tests/uninorm/test-u8-nfkc.c: Likewise.
24590         * tests/uninorm/test-u8-nfkd.c: Likewise.
24591         * tests/uninorm/test-u8-normcmp.c: Likewise.
24592         * tests/uninorm/test-u8-normcoll.c: Likewise.
24593         * tests/uninorm/test-u16-nfc.c: Likewise.
24594         * tests/uninorm/test-u16-nfd.c: Likewise.
24595         * tests/uninorm/test-u16-nfkc.c: Likewise.
24596         * tests/uninorm/test-u16-nfkd.c: Likewise.
24597         * tests/uninorm/test-u16-normcmp.c: Likewise.
24598         * tests/uninorm/test-u16-normcoll.c: Likewise.
24599         * tests/uninorm/test-u32-nfc.c: Likewise.
24600         * tests/uninorm/test-u32-nfd.c: Likewise.
24601         * tests/uninorm/test-u32-nfkc.c: Likewise.
24602         * tests/uninorm/test-u32-nfkd.c: Likewise.
24603         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24604         * tests/uninorm/test-u32-normcmp.c: Likewise.
24605         * tests/uninorm/test-u32-normcoll.c: Likewise.
24606         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24607         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24608         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24609         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24610         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24611         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24612         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24613         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24614         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24615         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24616         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24617         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24618         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24619         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24620         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24621         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24622         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24623         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24624         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24625         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24626         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24627         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24628         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24629         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24630         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24631         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24632         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24633         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24634         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24635         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24636         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24637         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24638         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24639         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24640         * tests/uniwidth/test-u8-width.c: Likewise.
24641         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24642         * tests/uniwidth/test-u16-width.c: Likewise.
24643         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24644         * tests/uniwidth/test-u32-width.c: Likewise.
24645         * tests/uniwidth/test-uc_width.c: Likewise.
24646         * tests/uniwidth/test-uc_width2.c: Likewise.
24647         * modules/acl-tests (Files): Add tests/macros.h.
24648         * modules/areadlink-tests (Files): Likewise.
24649         * modules/areadlink-with-size-tests (Files): Likewise.
24650         * modules/areadlinkat-tests (Files): Likewise.
24651         * modules/areadlinkat-with-size-tests (Files): Likewise.
24652         * modules/argmatch-tests (Files): Likewise.
24653         * modules/argv-iter-tests (Files): Likewise.
24654         * modules/array-list-tests (Files): Likewise.
24655         * modules/array-mergesort-tests (Files): Likewise.
24656         * modules/array-oset-tests (Files): Likewise.
24657         * modules/avltree-list-tests (Files): Likewise.
24658         * modules/avltree-oset-tests (Files): Likewise.
24659         * modules/avltreehash-list-tests (Files): Likewise.
24660         * modules/base64-tests (Files): Likewise.
24661         * modules/binary-io-tests (Files): Likewise.
24662         * modules/bitrotate-tests (Files): Likewise.
24663         * modules/btowc-tests (Files): Likewise.
24664         * modules/byteswap-tests (Files): Likewise.
24665         * modules/c-ctype-tests (Files): Likewise.
24666         * modules/c-stack-tests (Files): Likewise.
24667         * modules/c-strcase-tests (Files): Likewise.
24668         * modules/c-strcasestr-tests (Files): Likewise.
24669         * modules/c-strstr-tests (Files): Likewise.
24670         * modules/canonicalize-lgpl-tests (Files): Likewise.
24671         * modules/canonicalize-tests (Files): Likewise.
24672         * modules/carray-list-tests (Files): Likewise.
24673         * modules/ceilf-tests (Files): Likewise.
24674         * modules/ceill-tests (Files): Likewise.
24675         * modules/chown-tests (Files): Likewise.
24676         * modules/cloexec-tests (Files): Likewise.
24677         * modules/copy-file-tests (Files): Likewise.
24678         * modules/count-one-bits-tests (Files): Likewise.
24679         * modules/dprintf-posix-tests (Files): Likewise.
24680         * modules/dup2-tests (Files): Likewise.
24681         * modules/dup3-tests (Files): Likewise.
24682         * modules/duplocale-tests (Files): Likewise.
24683         * modules/fbufmode-tests (Files): Likewise.
24684         * modules/fchdir-tests (Files): Likewise.
24685         * modules/fcntl-safer-tests (Files): Likewise.
24686         * modules/fcntl-tests (Files): Likewise.
24687         * modules/fdopendir-tests (Files): Likewise.
24688         * modules/fdutimensat-tests (Files): Likewise.
24689         * modules/fflush-tests (Files): Likewise.
24690         * modules/filevercmp-tests (Files): Likewise.
24691         * modules/flock-tests (Files): Likewise.
24692         * modules/floorf-tests (Files): Likewise.
24693         * modules/floorl-tests (Files): Likewise.
24694         * modules/fnmatch-tests (Files): Likewise.
24695         * modules/fopen-safer-tests (Files): Likewise.
24696         * modules/fopen-tests (Files): Likewise.
24697         * modules/fpending-tests (Files): Likewise.
24698         * modules/fprintf-posix-tests (Files): Likewise.
24699         * modules/fpurge-tests (Files): Likewise.
24700         * modules/freadable-tests (Files): Likewise.
24701         * modules/freadahead-tests (Files): Likewise.
24702         * modules/freading-tests (Files): Likewise.
24703         * modules/freadptr-tests (Files): Likewise.
24704         * modules/freadseek-tests (Files): Likewise.
24705         * modules/freopen-tests (Files): Likewise.
24706         * modules/frexp-nolibm-tests (Files): Likewise.
24707         * modules/frexp-tests (Files): Likewise.
24708         * modules/frexpl-nolibm-tests (Files): Likewise.
24709         * modules/frexpl-tests (Files): Likewise.
24710         * modules/fseek-tests (Files): Likewise.
24711         * modules/fseeko-tests (Files): Likewise.
24712         * modules/fstrcmp-tests (Files): Likewise.
24713         * modules/fsync-tests (Files): Likewise.
24714         * modules/ftell-tests (Files): Likewise.
24715         * modules/ftello-tests (Files): Likewise.
24716         * modules/func-tests (Files): Likewise.
24717         * modules/futimens-tests (Files): Likewise.
24718         * modules/fwritable-tests (Files): Likewise.
24719         * modules/fwriting-tests (Files): Likewise.
24720         * modules/getcwd-tests (Files): Likewise.
24721         * modules/getdate-tests (Files): Likewise.
24722         * modules/getdelim-tests (Files): Likewise.
24723         * modules/getdtablesize-tests (Files): Likewise.
24724         * modules/getgroups-tests (Files): Likewise.
24725         * modules/getline-tests (Files): Likewise.
24726         * modules/getndelim2-tests (Files): Likewise.
24727         * modules/glob-tests (Files): Likewise.
24728         * modules/hash-tests (Files): Likewise.
24729         * modules/i-ring-tests (Files): Likewise.
24730         * modules/iconv-tests (Files): Likewise.
24731         * modules/iconv_open-utf-tests (Files): Likewise.
24732         * modules/idpriv-drop-tests (Files): Likewise.
24733         * modules/idpriv-droptemp-tests (Files): Likewise.
24734         * modules/inet_ntop-tests (Files): Likewise.
24735         * modules/inet_pton-tests (Files): Likewise.
24736         * modules/isblank-tests (Files): Likewise.
24737         * modules/isfinite-tests (Files): Likewise.
24738         * modules/isinf-tests (Files): Likewise.
24739         * modules/isnan-tests (Files): Likewise.
24740         * modules/isnand-nolibm-tests (Files): Likewise.
24741         * modules/isnand-tests (Files): Likewise.
24742         * modules/isnanf-nolibm-tests (Files): Likewise.
24743         * modules/isnanf-tests (Files): Likewise.
24744         * modules/isnanl-nolibm-tests (Files): Likewise.
24745         * modules/isnanl-tests (Files): Likewise.
24746         * modules/lchown-tests (Files): Likewise.
24747         * modules/ldexpl-tests (Files): Likewise.
24748         * modules/link-tests (Files): Likewise.
24749         * modules/linkat-tests (Files): Likewise.
24750         * modules/linked-list-tests (Files): Likewise.
24751         * modules/linkedhash-list-tests (Files): Likewise.
24752         * modules/localename-tests (Files): Likewise.
24753         * modules/lseek-tests (Files): Likewise.
24754         * modules/lstat-tests (Files): Likewise.
24755         * modules/mbmemcasecmp-tests (Files): Likewise.
24756         * modules/mbmemcasecoll-tests (Files): Likewise.
24757         * modules/mbrtowc-tests (Files): Likewise.
24758         * modules/mbscasecmp-tests (Files): Likewise.
24759         * modules/mbscasestr-tests (Files): Likewise.
24760         * modules/mbschr-tests (Files): Likewise.
24761         * modules/mbscspn-tests (Files): Likewise.
24762         * modules/mbsinit-tests (Files): Likewise.
24763         * modules/mbsncasecmp-tests (Files): Likewise.
24764         * modules/mbsnrtowcs-tests (Files): Likewise.
24765         * modules/mbspbrk-tests (Files): Likewise.
24766         * modules/mbspcasecmp-tests (Files): Likewise.
24767         * modules/mbsrchr-tests (Files): Likewise.
24768         * modules/mbsrtowcs-tests (Files): Likewise.
24769         * modules/mbsspn-tests (Files): Likewise.
24770         * modules/mbsstr-tests (Files): Likewise.
24771         * modules/memchr-tests (Files): Likewise.
24772         * modules/memchr2-tests (Files): Likewise.
24773         * modules/memcmp-tests (Files): Likewise.
24774         * modules/memmem-tests (Files): Likewise.
24775         * modules/memrchr-tests (Files): Likewise.
24776         * modules/mkdir-tests (Files): Likewise.
24777         * modules/mkfifo-tests (Files): Likewise.
24778         * modules/mkfifoat-tests (Files): Likewise.
24779         * modules/mknod-tests (Files): Likewise.
24780         * modules/nanosleep-tests (Files): Likewise.
24781         * modules/nl_langinfo-tests (Files): Likewise.
24782         * modules/obstack-printf-tests (Files): Likewise.
24783         * modules/open-tests (Files): Likewise.
24784         * modules/openat-tests (Files): Likewise.
24785         * modules/pipe-filter-gi-tests (Files): Likewise.
24786         * modules/pipe-filter-ii-tests (Files): Likewise.
24787         * modules/pipe2-tests (Files): Likewise.
24788         * modules/popen-safer-tests (Files): Likewise.
24789         * modules/popen-tests (Files): Likewise.
24790         * modules/posixtm-tests (Files): Likewise.
24791         * modules/pread-tests (Files): Likewise.
24792         * modules/printf-frexp-tests (Files): Likewise.
24793         * modules/printf-frexpl-tests (Files): Likewise.
24794         * modules/printf-posix-tests (Files): Likewise.
24795         * modules/priv-set-tests (Files): Likewise.
24796         * modules/quotearg-tests (Files): Likewise.
24797         * modules/random_r-tests (Files): Likewise.
24798         * modules/rawmemchr-tests (Files): Likewise.
24799         * modules/rbtree-list-tests (Files): Likewise.
24800         * modules/rbtree-oset-tests (Files): Likewise.
24801         * modules/rbtreehash-list-tests (Files): Likewise.
24802         * modules/readlink-tests (Files): Likewise.
24803         * modules/remove-tests (Files): Likewise.
24804         * modules/rename-tests (Files): Likewise.
24805         * modules/renameat-tests (Files): Likewise.
24806         * modules/rmdir-tests (Files): Likewise.
24807         * modules/round-tests (Files): Likewise.
24808         * modules/roundf-tests (Files): Likewise.
24809         * modules/roundl-tests (Files): Likewise.
24810         * modules/safe-alloc-tests (Files): Likewise.
24811         * modules/setenv-tests (Files): Likewise.
24812         * modules/sigaction-tests (Files): Likewise.
24813         * modules/signbit-tests (Files): Likewise.
24814         * modules/sleep-tests (Files): Likewise.
24815         * modules/snprintf-posix-tests (Files): Likewise.
24816         * modules/snprintf-tests (Files): Likewise.
24817         * modules/sprintf-posix-tests (Files): Likewise.
24818         * modules/stat-tests (Files): Likewise.
24819         * modules/stat-time-tests (Files): Likewise.
24820         * modules/strcasestr-tests (Files): Likewise.
24821         * modules/strchrnul-tests (Files): Likewise.
24822         * modules/strerror-tests (Files): Likewise.
24823         * modules/striconv-tests (Files): Likewise.
24824         * modules/striconveh-tests (Files): Likewise.
24825         * modules/striconveha-tests (Files): Likewise.
24826         * modules/strsignal-tests (Files): Likewise.
24827         * modules/strstr-tests (Files): Likewise.
24828         * modules/strtod-tests (Files): Likewise.
24829         * modules/strverscmp-tests (Files): Likewise.
24830         * modules/symlink-tests (Files): Likewise.
24831         * modules/symlinkat-tests (Files): Likewise.
24832         * modules/trunc-tests (Files): Likewise.
24833         * modules/truncf-tests (Files): Likewise.
24834         * modules/truncl-tests (Files): Likewise.
24835         * modules/uname-tests (Files): Likewise.
24836         * modules/unicase/cased-tests (Files): Likewise.
24837         * modules/unicase/ignorable-tests (Files): Likewise.
24838         * modules/unicase/locale-language-tests (Files): Likewise.
24839         * modules/unicase/tolower-tests (Files): Likewise.
24840         * modules/unicase/totitle-tests (Files): Likewise.
24841         * modules/unicase/toupper-tests (Files): Likewise.
24842         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24843         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24844         * modules/unicase/u8-casefold-tests (Files): Likewise.
24845         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24846         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24847         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24848         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24849         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24850         * modules/unicase/u8-tolower-tests (Files): Likewise.
24851         * modules/unicase/u8-totitle-tests (Files): Likewise.
24852         * modules/unicase/u8-toupper-tests (Files): Likewise.
24853         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24854         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24855         * modules/unicase/u16-casefold-tests (Files): Likewise.
24856         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24857         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24858         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24859         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24860         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24861         * modules/unicase/u16-tolower-tests (Files): Likewise.
24862         * modules/unicase/u16-totitle-tests (Files): Likewise.
24863         * modules/unicase/u16-toupper-tests (Files): Likewise.
24864         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24865         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24866         * modules/unicase/u32-casefold-tests (Files): Likewise.
24867         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24868         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24869         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24870         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24871         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24872         * modules/unicase/u32-tolower-tests (Files): Likewise.
24873         * modules/unicase/u32-totitle-tests (Files): Likewise.
24874         * modules/unicase/u32-toupper-tests (Files): Likewise.
24875         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24876         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24877         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24878         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24879         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24880         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24881         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24882         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24883         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24884         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24885         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24886         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24887         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24888         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24889         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24890         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24891         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24892         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24893         * modules/unictype/block-list-tests (Files): Likewise.
24894         * modules/unictype/block-of-tests (Files): Likewise.
24895         * modules/unictype/block-test-tests (Files): Likewise.
24896         * modules/unictype/category-C-tests (Files): Likewise.
24897         * modules/unictype/category-Cc-tests (Files): Likewise.
24898         * modules/unictype/category-Cf-tests (Files): Likewise.
24899         * modules/unictype/category-Cn-tests (Files): Likewise.
24900         * modules/unictype/category-Co-tests (Files): Likewise.
24901         * modules/unictype/category-Cs-tests (Files): Likewise.
24902         * modules/unictype/category-L-tests (Files): Likewise.
24903         * modules/unictype/category-Ll-tests (Files): Likewise.
24904         * modules/unictype/category-Lm-tests (Files): Likewise.
24905         * modules/unictype/category-Lo-tests (Files): Likewise.
24906         * modules/unictype/category-Lt-tests (Files): Likewise.
24907         * modules/unictype/category-Lu-tests (Files): Likewise.
24908         * modules/unictype/category-M-tests (Files): Likewise.
24909         * modules/unictype/category-Mc-tests (Files): Likewise.
24910         * modules/unictype/category-Me-tests (Files): Likewise.
24911         * modules/unictype/category-Mn-tests (Files): Likewise.
24912         * modules/unictype/category-N-tests (Files): Likewise.
24913         * modules/unictype/category-Nd-tests (Files): Likewise.
24914         * modules/unictype/category-Nl-tests (Files): Likewise.
24915         * modules/unictype/category-No-tests (Files): Likewise.
24916         * modules/unictype/category-P-tests (Files): Likewise.
24917         * modules/unictype/category-Pc-tests (Files): Likewise.
24918         * modules/unictype/category-Pd-tests (Files): Likewise.
24919         * modules/unictype/category-Pe-tests (Files): Likewise.
24920         * modules/unictype/category-Pf-tests (Files): Likewise.
24921         * modules/unictype/category-Pi-tests (Files): Likewise.
24922         * modules/unictype/category-Po-tests (Files): Likewise.
24923         * modules/unictype/category-Ps-tests (Files): Likewise.
24924         * modules/unictype/category-S-tests (Files): Likewise.
24925         * modules/unictype/category-Sc-tests (Files): Likewise.
24926         * modules/unictype/category-Sk-tests (Files): Likewise.
24927         * modules/unictype/category-Sm-tests (Files): Likewise.
24928         * modules/unictype/category-So-tests (Files): Likewise.
24929         * modules/unictype/category-Z-tests (Files): Likewise.
24930         * modules/unictype/category-Zl-tests (Files): Likewise.
24931         * modules/unictype/category-Zp-tests (Files): Likewise.
24932         * modules/unictype/category-Zs-tests (Files): Likewise.
24933         * modules/unictype/category-and-not-tests (Files): Likewise.
24934         * modules/unictype/category-and-tests (Files): Likewise.
24935         * modules/unictype/category-byname-tests (Files): Likewise.
24936         * modules/unictype/category-name-tests (Files): Likewise.
24937         * modules/unictype/category-none-tests (Files): Likewise.
24938         * modules/unictype/category-of-tests (Files): Likewise.
24939         * modules/unictype/category-or-tests (Files): Likewise.
24940         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24941         * modules/unictype/combining-class-tests (Files): Likewise.
24942         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24943         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24944         * modules/unictype/ctype-blank-tests (Files): Likewise.
24945         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24946         * modules/unictype/ctype-digit-tests (Files): Likewise.
24947         * modules/unictype/ctype-graph-tests (Files): Likewise.
24948         * modules/unictype/ctype-lower-tests (Files): Likewise.
24949         * modules/unictype/ctype-print-tests (Files): Likewise.
24950         * modules/unictype/ctype-punct-tests (Files): Likewise.
24951         * modules/unictype/ctype-space-tests (Files): Likewise.
24952         * modules/unictype/ctype-upper-tests (Files): Likewise.
24953         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24954         * modules/unictype/decimal-digit-tests (Files): Likewise.
24955         * modules/unictype/digit-tests (Files): Likewise.
24956         * modules/unictype/mirror-tests (Files): Likewise.
24957         * modules/unictype/numeric-tests (Files): Likewise.
24958         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24959         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24960         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24961         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24962         Likewise.
24963         * modules/unictype/property-bidi-block-separator-tests (Files):
24964         Likewise.
24965         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24966         Likewise.
24967         * modules/unictype/property-bidi-common-separator-tests (Files):
24968         Likewise.
24969         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24970         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24971         Likewise.
24972         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24973         Likewise.
24974         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24975         Likewise.
24976         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24977         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24978         Likewise.
24979         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24980         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24981         Likewise.
24982         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24983         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24984         * modules/unictype/property-bidi-segment-separator-tests (Files):
24985         Likewise.
24986         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24987         * modules/unictype/property-byname-tests (Files): Likewise.
24988         * modules/unictype/property-combining-tests (Files): Likewise.
24989         * modules/unictype/property-composite-tests (Files): Likewise.
24990         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24991         * modules/unictype/property-dash-tests (Files): Likewise.
24992         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24993         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24994         Likewise.
24995         * modules/unictype/property-deprecated-tests (Files): Likewise.
24996         * modules/unictype/property-diacritic-tests (Files): Likewise.
24997         * modules/unictype/property-extender-tests (Files): Likewise.
24998         * modules/unictype/property-format-control-tests (Files): Likewise.
24999         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25000         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25001         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25002         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25003         * modules/unictype/property-hyphen-tests (Files): Likewise.
25004         * modules/unictype/property-id-continue-tests (Files): Likewise.
25005         * modules/unictype/property-id-start-tests (Files): Likewise.
25006         * modules/unictype/property-ideographic-tests (Files): Likewise.
25007         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25008         * modules/unictype/property-ids-trinary-operator-tests (Files):
25009         Likewise.
25010         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25011         * modules/unictype/property-iso-control-tests (Files): Likewise.
25012         * modules/unictype/property-join-control-tests (Files): Likewise.
25013         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25014         * modules/unictype/property-line-separator-tests (Files): Likewise.
25015         * modules/unictype/property-logical-order-exception-tests (Files):
25016         Likewise.
25017         * modules/unictype/property-lowercase-tests (Files): Likewise.
25018         * modules/unictype/property-math-tests (Files): Likewise.
25019         * modules/unictype/property-non-break-tests (Files): Likewise.
25020         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25021         * modules/unictype/property-numeric-tests (Files): Likewise.
25022         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25023         * modules/unictype/property-other-default-ignorable-code-point-tests
25024         (Files): Likewise.
25025         * modules/unictype/property-other-grapheme-extend-tests (Files):
25026         Likewise.
25027         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25028         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25029         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25030         * modules/unictype/property-other-math-tests (Files): Likewise.
25031         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25032         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25033         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25034         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25035         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25036         * modules/unictype/property-private-use-tests (Files): Likewise.
25037         * modules/unictype/property-punctuation-tests (Files): Likewise.
25038         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25039         * modules/unictype/property-radical-tests (Files): Likewise.
25040         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25041         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25042         * modules/unictype/property-space-tests (Files): Likewise.
25043         * modules/unictype/property-terminal-punctuation-tests (Files):
25044         Likewise.
25045         * modules/unictype/property-test-tests (Files): Likewise.
25046         * modules/unictype/property-titlecase-tests (Files): Likewise.
25047         * modules/unictype/property-unassigned-code-value-tests (Files):
25048         Likewise.
25049         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25050         * modules/unictype/property-uppercase-tests (Files): Likewise.
25051         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25052         * modules/unictype/property-white-space-tests (Files): Likewise.
25053         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25054         * modules/unictype/property-xid-start-tests (Files): Likewise.
25055         * modules/unictype/property-zero-width-tests (Files): Likewise.
25056         * modules/unictype/scripts-tests (Files): Likewise.
25057         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25058         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25059         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25060         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25061         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25062         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25063         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25064         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25065         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25066         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25067         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25068         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25069         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25070         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25071         * modules/uninorm/composition-tests (Files): Likewise.
25072         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25073         * modules/uninorm/decomposition-tests (Files): Likewise.
25074         * modules/uninorm/filter-tests (Files): Likewise.
25075         * modules/uninorm/nfc-tests (Files): Likewise.
25076         * modules/uninorm/nfd-tests (Files): Likewise.
25077         * modules/uninorm/nfkc-tests (Files): Likewise.
25078         * modules/uninorm/nfkd-tests (Files): Likewise.
25079         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25080         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25081         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25082         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25083         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25084         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25085         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25086         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25087         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25088         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25089         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25090         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25091         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25092         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25093         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25094         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25095         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25096         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25097         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25098         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25099         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25100         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25101         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25102         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25103         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25104         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25105         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25106         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25107         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25108         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25109         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25110         * modules/uniwidth/u8-width-tests (Files): Likewise.
25111         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25112         * modules/uniwidth/u16-width-tests (Files): Likewise.
25113         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25114         * modules/uniwidth/u32-width-tests (Files): Likewise.
25115         * modules/uniwidth/width-tests (Files): Likewise.
25116         * modules/unlink-tests (Files): Likewise.
25117         * modules/unsetenv-tests (Files): Likewise.
25118         * modules/usleep-tests (Files): Likewise.
25119         * modules/utimens-tests (Files): Likewise.
25120         * modules/utimensat-tests (Files): Likewise.
25121         * modules/vasnprintf-posix-tests (Files): Likewise.
25122         * modules/vasnprintf-tests (Files): Likewise.
25123         * modules/vasprintf-posix-tests (Files): Likewise.
25124         * modules/vasprintf-tests (Files): Likewise.
25125         * modules/vdprintf-posix-tests (Files): Likewise.
25126         * modules/vfprintf-posix-tests (Files): Likewise.
25127         * modules/vprintf-posix-tests (Files): Likewise.
25128         * modules/vsnprintf-posix-tests (Files): Likewise.
25129         * modules/vsnprintf-tests (Files): Likewise.
25130         * modules/vsprintf-posix-tests (Files): Likewise.
25131         * modules/wcrtomb-tests (Files): Likewise.
25132         * modules/wcsnrtombs-tests (Files): Likewise.
25133         * modules/wcsrtombs-tests (Files): Likewise.
25134         * modules/wctype-tests (Files): Likewise.
25135         * modules/wcwidth-tests (Files): Likewise.
25136         * modules/xmemdup0-tests (Files): Likewise.
25137         * modules/xprintf-posix-tests (Files): Likewise.
25138         * modules/xvasprintf-tests (Files): Likewise.
25139
25140 2009-12-24  Eric Blake  <ebb9@byu.net>
25141
25142         test-nanosleep: fix typo
25143         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25144         patch.
25145         Reported by Bruno Haible.
25146
25147 2009-12-24  Bruno Haible  <bruno@clisp.org>
25148
25149         Reduce namespace pollution on glibc systems.
25150         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25151         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25152         systems.
25153         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25154         <getopt.h> on glibc systems.
25155         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25156         systems.
25157         * lib/fcntl.c: Include <unistd.h> here instead.
25158
25159 2009-12-24  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25162
25163 2009-12-24  Eric Blake  <ebb9@byu.net>
25164
25165         tests: add signature checks
25166         * tests/signature.h (SIGNATURE_CHECK): New file.
25167         * modules/atexit-tests (Files): Use it.
25168         * modules/btowc-tests (Files): Likewise.
25169         * modules/canonicalize-lgpl-tests (Files): Likewise.
25170         * modules/ceilf-tests (Files): Likewise.
25171         * modules/ceill-tests (Files): Likewise.
25172         * modules/chown-tests (Files): Likewise.
25173         * modules/dprintf-posix-tests (Files): Likewise.
25174         * modules/dup2-tests (Files): Likewise.
25175         * modules/dup3-tests (Files): Likewise.
25176         * modules/duplocale-tests (Files): Likewise.
25177         * modules/fchdir-tests (Files): Likewise.
25178         * modules/fcntl-tests (Files): Likewise.
25179         * modules/fdopendir-tests (Files): Likewise.
25180         * modules/fflush-tests (Files): Likewise.
25181         * modules/flock-tests (Files): Likewise.
25182         * modules/floorf-tests (Files): Likewise.
25183         * modules/floorl-tests (Files): Likewise.
25184         * modules/fnmatch-tests (Files): Likewise.
25185         * modules/fopen-tests (Files): Likewise.
25186         * modules/fprintf-posix-tests (Files): Likewise.
25187         * modules/freopen-tests (Files): Likewise.
25188         * modules/frexp-nolibm-tests (Files): Likewise.
25189         * modules/frexp-tests (Files): Likewise.
25190         * modules/frexpl-nolibm-tests (Files): Likewise.
25191         * modules/frexpl-tests (Files): Likewise.
25192         * modules/fseek-tests (Files): Likewise.
25193         * modules/fseeko-tests (Files): Likewise.
25194         * modules/fsync-tests (Files): Likewise.
25195         * modules/ftell-tests (Files): Likewise.
25196         * modules/ftello-tests (Files): Likewise.
25197         * modules/futimens-tests (Files): Likewise.
25198         * modules/getaddrinfo-tests (Files): Likewise.
25199         * modules/getcwd-tests (Files): Likewise.
25200         * modules/getdelim-tests (Files): Likewise.
25201         * modules/getdtablesize-tests (Files): Likewise.
25202         * modules/getgroups-tests (Files): Likewise.
25203         * modules/gethostname-tests (Files): Likewise.
25204         * modules/getline-tests (Files): Likewise.
25205         * modules/getopt-posix-tests (Files): Likewise.
25206         * modules/gettimeofday-tests (Files): Likewise.
25207         * modules/glob-tests (Files): Likewise.
25208         * modules/iconv-tests (Files): Likewise.
25209         * modules/inet_ntop-tests (Files): Likewise.
25210         * modules/inet_pton-tests (Files): Likewise.
25211         * modules/isblank-tests (Files): Likewise.
25212         * modules/lchown-tests (Files): Likewise.
25213         * modules/ldexpl-tests (Files): Likewise.
25214         * modules/link-tests (Files): Likewise.
25215         * modules/linkat-tests (Files): Likewise.
25216         * modules/lseek-tests (Files): Likewise.
25217         * modules/lstat-tests (Files): Likewise.
25218         * modules/mbrtowc-tests (Files): Likewise.
25219         * modules/mbsinit-tests (Files): Likewise.
25220         * modules/mbsnrtowcs-tests (Files): Likewise.
25221         * modules/mbsrtowcs-tests (Files): Likewise.
25222         * modules/memchr-tests (Files): Likewise.
25223         * modules/memcmp-tests (Files): Likewise.
25224         * modules/memmem-tests (Files): Likewise.
25225         * modules/memrchr-tests (Files): Likewise.
25226         * modules/mkdir-tests (Files): Likewise.
25227         * modules/mkfifo-tests (Files): Likewise.
25228         * modules/mkfifoat-tests (Files): Likewise.
25229         * modules/mknod-tests (Files): Likewise.
25230         * modules/nanosleep-tests (Files): Likewise.
25231         * modules/nl_langinfo-tests (Files): Likewise.
25232         * modules/obstack-printf-tests (Files): Likewise.
25233         * modules/open-tests (Files): Likewise.
25234         * modules/openat-tests (Files): Likewise.
25235         * modules/perror-tests (Files): Likewise.
25236         * modules/pipe2-tests (Files): Likewise.
25237         * modules/poll-tests (Files): Likewise.
25238         * modules/popen-tests (Files): Likewise.
25239         * modules/posix_spawn-tests (Files): Likewise.
25240         * modules/posix_spawnp-tests (Files): Likewise.
25241         * modules/pread-tests (Files): Likewise.
25242         * modules/printf-posix-tests (Files): Likewise.
25243         * modules/pty-tests (Files): Likewise.
25244         * modules/random_r-tests (Files): Likewise.
25245         * modules/rawmemchr-tests (Files): Likewise.
25246         * modules/readlink-tests (Files): Likewise.
25247         * modules/remove-tests (Files): Likewise.
25248         * modules/rename-tests (Files): Likewise.
25249         * modules/renameat-tests (Files): Likewise.
25250         * modules/rmdir-tests (Files): Likewise.
25251         * modules/round-tests (Files): Likewise.
25252         * modules/roundf-tests (Files): Likewise.
25253         * modules/roundl-tests (Files): Likewise.
25254         * modules/select-tests (Files): Likewise.
25255         * modules/setenv-tests (Files): Likewise.
25256         * modules/sigaction-tests (Files): Likewise.
25257         * modules/sleep-tests (Files): Likewise.
25258         * modules/snprintf-posix-tests (Files): Likewise.
25259         * modules/snprintf-tests (Files): Likewise.
25260         * modules/sprintf-posix-tests (Files): Likewise.
25261         * modules/stat-tests (Files): Likewise.
25262         * modules/strcasestr-tests (Files): Likewise.
25263         * modules/strchrnul-tests (Files): Likewise.
25264         * modules/strerror-tests (Files): Likewise.
25265         * modules/strsignal-tests (Files): Likewise.
25266         * modules/strstr-tests (Files): Likewise.
25267         * modules/strtod-tests (Files): Likewise.
25268         * modules/strverscmp-tests (Files): Likewise.
25269         * modules/symlink-tests (Files): Likewise.
25270         * modules/symlinkat-tests (Files): Likewise.
25271         * modules/times-tests (Files): Likewise.
25272         * modules/trunc-tests (Files): Likewise.
25273         * modules/truncf-tests (Files): Likewise.
25274         * modules/truncl-tests (Files): Likewise.
25275         * modules/tsearch-tests (Files): Likewise.
25276         * modules/uname-tests (Files): Likewise.
25277         * modules/unlink-tests (Files): Likewise.
25278         * modules/unsetenv-tests (Files): Likewise.
25279         * modules/usleep-tests (Files): Likewise.
25280         * modules/utimensat-tests (Files): Likewise.
25281         * modules/vasprintf-tests (Files): Likewise.
25282         * modules/vdprintf-posix-tests (Files): Likewise.
25283         * modules/vfprintf-posix-tests (Files): Likewise.
25284         * modules/vprintf-posix-tests (Files): Likewise.
25285         * modules/vsnprintf-posix-tests (Files): Likewise.
25286         * modules/vsnprintf-tests (Files): Likewise.
25287         * modules/vsprintf-posix-tests (Files): Likewise.
25288         * modules/wcrtomb-tests (Files): Likewise.
25289         * modules/wcsnrtombs-tests (Files): Likewise.
25290         * modules/wcsrtombs-tests (Files): Likewise.
25291         * modules/wcwidth-tests (Files): Likewise.
25292         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25293         * tests/test-isinf.c (isinf): Likewise.
25294         * tests/test-isnan.c (isnan): Likewise.
25295         * tests/test-signbit.c (signbit): Likewise.
25296         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25297         declaration, either as macro or with correct signature.
25298         (select): Ensure function under test is declared with correct
25299         signature in correct header.
25300         * tests/test-atexit.c (atexit): Likewise.
25301         * tests/test-btowc.c (btowc): Likewise.
25302         * tests/test-canonicalize-lgpl.c (realpath)
25303         (canonicalize_file_name): Likewise.
25304         * tests/test-ceilf1.c (ceilf): Likewise.
25305         * tests/test-ceill.c (ceill): Likewise.
25306         * tests/test-chown.c (chown): Likewise.
25307         * tests/test-dprintf-posix.c (dprintf): Likewise.
25308         * tests/test-dup2.c (dup2): Likewise.
25309         * tests/test-dup3.c (dup3): Likewise.
25310         * tests/test-duplocale.c (duplocale): Likewise.
25311         * tests/test-fchdir.c (fchdir): Likewise.
25312         * tests/test-fchownat.c (fchownat): Likewise.
25313         * tests/test-fcntl.c (fcntl): Likewise.
25314         * tests/test-fdopendir.c (fdopendir): Likewise.
25315         * tests/test-fflush.c (fflush): Likewise.
25316         * tests/test-flock.c (flock): Likewise.
25317         * tests/test-floorf1.c (floorf): Likewise.
25318         * tests/test-floorl.c (floorl): Likewise.
25319         * tests/test-fnmatch.c (fnmatch): Likewise.
25320         * tests/test-fopen.c (fopen): Likewise.
25321         * tests/test-fprintf-posix.c (fprintf): Likewise.
25322         * tests/test-freopen.c (freopen): Likewise.
25323         * tests/test-frexp.c (frexp): Likewise.
25324         * tests/test-frexpl.c (frexpl): Likewise.
25325         * tests/test-fseek.c (fseek): Likewise.
25326         * tests/test-fseeko.c (fseeko): Likewise.
25327         * tests/test-fstatat.c (fstatat): Likewise.
25328         * tests/test-fsync.c (fsync): Likewise.
25329         * tests/test-ftell.c (ftell): Likewise.
25330         * tests/test-ftello.c (ftello): Likewise.
25331         * tests/test-futimens.c (futimens): Likewise.
25332         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25333         (gai_strerror): Likewise.
25334         * tests/test-getcwd.c (getcwd): Likewise.
25335         * tests/test-getdelim.c (getdelim): Likewise.
25336         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25337         * tests/test-getgroups.c (getgroups): Likewise.
25338         * tests/test-gethostname.c (gethostname): Likewise.
25339         * tests/test-getline.c (getline): Likewise.
25340         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25341         Likewise.
25342         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25343         * tests/test-glob.c (glob, globfree): Likewise.
25344         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25345         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25346         * tests/test-inet_pton.c (inet_pton): Likewise.
25347         * tests/test-isblank.c (isblank): Likewise.
25348         * tests/test-lchown.c (lchown): Likewise.
25349         * tests/test-ldexpl.c (ldexpl): Likewise.
25350         * tests/test-link.c (link): Likewise.
25351         * tests/test-linkat.c (linkat): Likewise.
25352         * tests/test-lseek.c (lseek): Likewise.
25353         * tests/test-lstat.c (lstat): Likewise.
25354         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25355         * tests/test-mbsinit.c (mbsinit): Likewise.
25356         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25357         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25358         * tests/test-memchr.c (memchr): Likewise.
25359         * tests/test-memcmp.c (memcmp): Likewise.
25360         * tests/test-memmem.c (memmem): Likewise.
25361         * tests/test-memrchr.c (memrchr): Likewise.
25362         * tests/test-mkdir.c (mkdir): Likewise.
25363         * tests/test-mkdirat.c (mkdirat): Likewise.
25364         * tests/test-mkfifo.c (mkfifo): Likewise.
25365         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25366         * tests/test-mknod.c (mknod): Likewise.
25367         * tests/test-nanosleep.c (nanosleep): Likewise.
25368         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25369         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25370         Likewise.
25371         * tests/test-open.c (open): Likewise.
25372         * tests/test-openat.c (openat): Likewise.
25373         * tests/test-perror.c (perror): Likewise.
25374         * tests/test-pipe2.c (pipe2): Likewise.
25375         * tests/test-poll.c (poll): Likewise.
25376         * tests/test-popen.c (popen, pclose): Likewise.
25377         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25378         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25379         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25380         (posix_spawn_file_actions_destroy)
25381         (posix_spawn_file_actions_addclose)
25382         (posix_spawn_file_actions_addopen)
25383         (posix_spawn_file_actions_adddup2): Likewise.
25384         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25385         * tests/test-pread.c (pread): Likewise.
25386         * tests/test-printf-posix.c (printf): Likewise.
25387         * tests/test-pty.c (openpty, forkpty): Likewise.
25388         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25389         (random_r): Likewise.
25390         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25391         * tests/test-readlink.c (readlink): Likewise.
25392         * tests/test-remove.c (remove): Likewise.
25393         * tests/test-rename.c (rename): Likewise.
25394         * tests/test-renameat.c (renameat): Likewise.
25395         * tests/test-rmdir.c (rmdir): Likewise.
25396         * tests/test-round1.c (round): Likewise.
25397         * tests/test-roundf1.c (roundf): Likewise.
25398         * tests/test-roundl.c (roundl): Likewise.
25399         * tests/test-setenv.c (setenv): Likewise.
25400         * tests/test-sigaction.c (sigaction): Likewise.
25401         * tests/test-sleep.c (sleep): Likewise.
25402         * tests/test-snprintf.c (snprintf): Likewise.
25403         * tests/test-sprintf-posix.c (sprintf): Likewise.
25404         * tests/test-stat.c (stat): Likewise.
25405         * tests/test-stpncpy.c (stpncpy): Likewise.
25406         * tests/test-strcasestr.c (strcasestr): Likewise.
25407         * tests/test-strchrnul.c (strchrnul): Likewise.
25408         * tests/test-strerror.c (strerror): Likewise.
25409         * tests/test-strsignal.c (strsignal): Likewise.
25410         * tests/test-strstr.c (strstr): Likewise.
25411         * tests/test-strtod.c (strtod): Likewise.
25412         * tests/test-strverscmp.c (strverscmp): Likewise.
25413         * tests/test-symlink.c (symlink): Likewise.
25414         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25415         * tests/test-times.c (times): Likewise.
25416         * tests/test-trunc1.c (trunc): Likewise.
25417         * tests/test-truncf1.c (truncf): Likewise.
25418         * tests/test-truncl.c (truncl): Likewise.
25419         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25420         Likewise.
25421         * tests/test-uname.c (uname): Likewise.
25422         * tests/test-unlink.c (unlink): Likewise.
25423         * tests/test-unlinkat.c (unlinkat): Likewise.
25424         * tests/test-unsetenv.c (unsetenv): Likewise.
25425         * tests/test-usleep.c (usleep): Likewise.
25426         * tests/test-utimensat.c (utimensat): Likewise.
25427         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25428         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25429         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25430         * tests/test-vprintf-posix.c (vprintf): Likewise.
25431         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25432         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25433         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25434         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25435         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25436         * tests/test-wcwidth.c (wcwidth): Likewise.
25437
25438         build: pull in conditional headers during GNULIB_POSIXCHECK
25439         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25440         definitions from any conditionally-included headers.
25441         * lib/stdlib.in.h (includes): Likewise.
25442         * lib/unistd.in.h (includes): Likewise.
25443
25444 2009-12-24  Bruno Haible  <bruno@clisp.org>
25445
25446         * tests/test-argv-iter.c: Include header file being tested immediately
25447         after config.h.
25448         * tests/test-base64.c: Likewise.
25449         * tests/test-flock.c: Likewise.
25450         * tests/test-fsync.c: Likewise.
25451         * tests/test-getdate.c: Likewise.
25452         * tests/test-getndelim2.c: Likewise.
25453         * tests/test-isfinite.c: Likewise.
25454         * tests/test-isinf.c: Likewise.
25455         * tests/test-strerror.c: Likewise.
25456         * tests/test-strsignal.c: Likewise.
25457
25458 2009-12-23  Eric Blake  <ebb9@byu.net>
25459
25460         unistd: work around cygwin bug
25461         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25462         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25463         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25464
25465 2009-12-23  Bruno Haible  <bruno@clisp.org>
25466
25467         localename: More tests.
25468         * tests/test-localename.c (SIZEOF): New macro.
25469         (categories): New variable.
25470         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25471         test_locale_name_default): Add test w.r.t. thread locale.
25472         (test_locale_name_thread): New function.
25473         (main): Invoke it.
25474
25475         localename: Make aware of thread locale.
25476         * lib/localename.h (gl_locale_name_thread): New declaration.
25477         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25478         behaviour with respect to thread locale.
25479         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25480         <langinfo.h>, glthread/lock.h.
25481         (SIZE_BITS): New macro.
25482         (string_hash): New function.
25483         (struct hash_node): New type.
25484         (HASH_TABLE_SIZE): New macro.
25485         (struniq_hash_table, struniq_lock): New variables.
25486         (struniq): New function.
25487         (gl_locale_name_thread): New function.
25488         (gl_locale_name): Invoke it.
25489         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25490         * modules/localename (Depends-on): Add lock.
25491         Reported by Mike Gran <spk121@yahoo.com>.
25492
25493 2009-12-23  Eric Blake  <ebb9@byu.net>
25494
25495         va-args: new module
25496         * modules/va-args: New file.
25497         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25498         * MODULES.html.sh (Core language properties): Mention it.
25499
25500         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25501         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25502         named alias for __attribute__((__unused__)).
25503         * lib/chown.c: Update client.
25504         * lib/fchmodat.c: Likewise.
25505         * lib/fts.c: Likewise.
25506         * lib/getdate.y: Likewise.
25507         * lib/getgroups.c: Likewise.
25508         * lib/getopt.c: Likewise.
25509         * lib/getugroups.c: Likewise.
25510         * lib/mkdir.c: Likewise.
25511         * lib/mkfifo.c: Likewise.
25512         * lib/mkfifoat.c: Likewise.
25513         * lib/mknod.c: Likewise.
25514         * lib/mknodat.c: Likewise.
25515         * lib/readlink.c: Likewise.
25516         * lib/se-context.in.h: Likewise.
25517         * lib/se-selinux.in.h: Likewise.
25518         * lib/sockets.c: Likewise.
25519         * lib/symlink.c: Likewise.
25520         * lib/symlinkat.c: Likewise.
25521         * lib/unicodeio.c: Likewise.
25522         * lib/unistr.h: Likewise.
25523         * tests/test-areadlink.c: Likewise.
25524         * tests/test-areadlinkat.c: Likewise.
25525         * tests/test-filenamecat.c: Likewise.
25526         * tests/test-fseeko.c: Likewise.
25527         * tests/test-ftello.c: Likewise.
25528         * tests/test-getdate.c: Likewise.
25529         * tests/test-getgroups.c: Likewise.
25530         * tests/test-gethostname.c: Likewise.
25531         * tests/test-quotearg.c: Likewise.
25532         * tests/test-version-etc.c: Likewise.
25533         * tests/test-xalloc-die.c: Likewise.
25534         * tests/test-xfprintf-posix.c: Likewise.
25535         * tests/test-xprintf-posix.c: Likewise.
25536         * tests/test-xvasprintf.c: Likewise.
25537
25538         tests: avoid compiler warnings
25539         * tests/test-fcntl.c (main): Delete unused parameters.
25540         * tests/test-freopen-safer.c (main): Likewise.
25541         * tests/test-xalloc-die.c (main): Mark unused parameters.
25542         * tests/test-fseeko.c (main): Likewise.
25543         * tests/test-ftello.c (main): Likewise.
25544         * tests/test-nanosleep.c (main): Avoid declaration warning.
25545         * tests/test-sleep.c (main): Likewise.
25546         * tests/test-unsetenv.c (main): Silence warning about string
25547         literal.
25548         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25549
25550 2009-12-23  Bruno Haible  <bruno@clisp.org>
25551
25552         * tests/test-localename.c (test_locale_name): New function, extracted
25553         from main. Also test mixed situations.
25554         (test_locale_name_posix, test_locale_name_environ,
25555         test_locale_name_default): New functions.
25556         (main): Invoke them all.
25557         * modules/localename-tests (configure.ac): Test for newlocale.
25558
25559 2009-12-23  Bruno Haible  <bruno@clisp.org>
25560
25561         unistd: Ensure getcwd gets declared before being overridden.
25562         * lib/unistd.in.h: Conditionally include <io.h>.
25563
25564 2009-12-22  Bruno Haible  <bruno@clisp.org>
25565
25566         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25567         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25568         (gl_WCHAR_H): Invoke it.
25569         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25570         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25571         Reported by Karl Berry <karl@freefriends.org>.
25572
25573 2009-12-22  Eric Blake  <ebb9@byu.net>
25574
25575         math, unistd: avoid redundant includes
25576         * lib/math.in.h (isnan): No need to re-include <math.h>.
25577         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25578
25579         getsubopt: work around cygwin bug
25580         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25581         avoid conflicting with system getsubopt.
25582         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25583         bug.
25584
25585         getopt: synchronize from glibc
25586         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25587         parameter order.  Adjust all callers.
25588         (_getopt_internal_r, main): Adjust quoting in error messages.
25589         Drop considerations for outdated POSIX 1003.2 error message.
25590         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25591         callers.
25592         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25593
25594         test-getopt: test stderr behavior
25595         * modules/getopt-posix-tests (Depends-on): Add dup2.
25596         * tests/test-getopt.c (ASSERT): Avoid stderr.
25597         (main): Move stderr to a temporary file.
25598         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25599         Instead, add parameter to inform caller if output occurred.
25600         (test_getopt): Adjust all existing tests to expect silence, and
25601         add new tests of leading ":".
25602         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25603         glibc shortcomings with leading "-:" or "+:" in optstring.
25604         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25605         Likewise.
25606         * doc/posix-functions/getopt.texi (getopt): Likewise.
25607
25608         test-getopt: enhance test
25609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25610         supports optind=0.
25611         * tests/test-getopt.c (OPTIND_MIN): Move...
25612         * tests/test-getopt.h (OPTIND_MIN): ...here.
25613         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25614         Require that optind=0 works, since modern BSD supports it in
25615         addition to optreset, and since coreutils expects it.
25616         (test_getopt_long_only): New test.
25617         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25618         glibc shortcomings with 'W;', and enforcement of optind=0.
25619         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25620         Likewise.
25621
25622 2009-12-21  Bruno Haible  <bruno@clisp.org>
25623
25624         localename: Improvements for MacOS X and Cygwin.
25625         * lib/localename.h (gl_locale_name_environ): New declaration.
25626         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25627         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25628         (gl_locale_name_posix): Invoke it.
25629         (gl_locale_name_default): Add comments. Use Windows native API also on
25630         Cygwin.
25631
25632 2009-12-21  Bruno Haible  <bruno@clisp.org>
25633
25634         Update list of Win32 locale ids.
25635         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25636         (LANG_SAMI): Renamed from LANG_SAAMI.
25637         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25638         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25639         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25640         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25641         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25642         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25643         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25644         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25645         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25646         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25647         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25648         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25649         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25650         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25651         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25652         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25653         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25654         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25655         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25656         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25657         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25658         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25659         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25660         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25661         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25662         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25663         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25664         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25665         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25666         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25667         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25668         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25669         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25670         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25671         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25672         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25673         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25674         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25675         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25676         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25677         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25678         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25679         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25680         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25681         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25682         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25683         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25684         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25685         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25686         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25687         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25688         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25689         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25690         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25691         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25692         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25693         Add more languages and countries for Sami, Sorbian. Add more countries
25694         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25695         for Pashto. Change country for Syriac, Tswana.
25696
25697 2009-12-21  Eric Blake  <ebb9@byu.net>
25698
25699         test-utimens: avoid spurious failure
25700         * tests/test-chown.h (nap): Factor...
25701         * tests/nap.h: ...into new file.
25702         * tests/test-lchown.h (nap): Avoid duplication.
25703         * tests/test-utimens-common.h (nap): Use shared implementation,
25704         necessary on file systems with 1-second resolution.
25705         * modules/chown-tests (Files): Include new file.
25706         * modules/fdutimensat-tests (Files): Likewise.
25707         * modules/futimens-tests (Files): Likewise.
25708         * modules/lchown-tests (Files): Likewise.
25709         * modules/openat-tests (Files): Likewise.
25710         * modules/utimens-tests (Files): Likewise.
25711         * modules/utimensat-tests (Files): Likewise.
25712
25713 2009-12-19  Eric Blake  <ebb9@byu.net>
25714
25715         futimens, utimensat: work around Linux bug
25716         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25717         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25718         * lib/utimensat.c (rpl_utimensat): Work around it.
25719         * lib/futimens.c (rpl_futimens): Adjust comment.
25720
25721         utimens: work around Linux ctime bug
25722         * lib/utimens.c (detect_ctime_bug): New helper function.
25723         (update_timespec): Differentiate between workaround needed for
25724         this bug vs. what is needed for systems that lack utimensat.
25725         (fdutimens, lutimens): Work around bug.
25726
25727         utimens: check for ctime update
25728         * tests/test-utimens-common.h (check_ctime): Define.
25729         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25730         * tests/test-futimens.h (test_futimens): Likewise.
25731         * tests/test-lutimens.h (test_lutimens): Likewise.
25732         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25733         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25734
25735 2009-12-19  Bruno Haible  <bruno@clisp.org>
25736
25737         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25738         * tests/test-dprintf-posix2.sh: New file.
25739         * tests/test-dprintf-posix2.c: New file.
25740         * modules/dprintf-posix-tests (Files): Add them.
25741         (configure.ac): Check for getrlimit and setrlimit.
25742         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25743
25744 2009-12-19  Bruno Haible  <bruno@clisp.org>
25745
25746         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25747         * tests/test-fprintf-posix3.sh: New file.
25748         * tests/test-fprintf-posix3.c: New file.
25749         * modules/fprintf-posix-tests (Files): Add them.
25750         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25751
25752 2009-12-19  Eric Blake  <ebb9@byu.net>
25753
25754         dirfd: fix prototype
25755         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25756         * lib/dirfd.c (dirfd): Likewise.
25757
25758         canonicalize: reduce memory usage
25759         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25760         allocation to size.
25761         Reported by Solar Designer <solar@openwall.com>.
25762
25763 2009-12-19  Bruno Haible  <bruno@clisp.org>
25764
25765         New module attribute 'Applicability'.
25766         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25767         * gnulib-tool: New option --extract-applicability.
25768         (func_usage): Document it.
25769         (sed_extract_prog): Recognize it.
25770         (func_get_applicability): New function.
25771         (func_import): Generalize handling of 'link-warning' module.
25772         * modules/link-warning (Applicability): New section.
25773         * modules/arg-nonnull (Applicability): New section.
25774         Repoted by Simon Josefsson <simon@josefsson.org>.
25775
25776 2009-12-19  Bruno Haible  <bruno@clisp.org>
25777
25778         fflush: tweak
25779         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25780         * lib/fseeko.c (rpl_fseeko): Likewise.
25781
25782 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25783
25784         * lib/gl_list.h: Fix typo in comment.
25785
25786 2009-12-16  Eric Blake  <ebb9@byu.net>
25787
25788         fcntl: use to simplify other modules
25789         * modules/cloexec (Depends-on): Add fcntl.
25790         * modules/fchdir (Depends-on): Likewise.
25791         * modules/fd-safer-flag (Depends-on): Likewise.
25792         * modules/unistd-safer (Depends-on): Likewise.
25793         * modules/dup3 (configure.ac): Set module indicator.
25794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25795         missing.
25796         * lib/fchdir.c (_gl_register_dup): Fix comment.
25797         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25798         * lib/dup-safer.c (dup_safer): Likewise.
25799         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25800         * lib/dup3.c (dup3): Likewise.
25801         * tests/test-fchdir.c (main): Enhance test.
25802         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25803
25804         fcntl: port portions of fcntl to mingw
25805         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25806         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25807         replacement for mingw.
25808         * modules/fcntl (Description): Update.
25809         (Depends-on): Add dup2.
25810         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25811         * modules/fcntl-h (Makefile.am): Substitute it.
25812         * lib/fcntl.in.h (fcntl): Update declaration.
25813         (F_DUPFD, F_GETFD): New macros, when needed.
25814         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25815         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25816         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25817         we now guarantee.
25818
25819         fcntl: work around cygwin bug in F_DUPFD
25820         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25821         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25822         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25823         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25824         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25825
25826         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25827         * modules/fcntl (Files): List new files.
25828         (configure.ac): Run a test.
25829         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25830         * lib/fcntl.c (rpl_fcntl): Likewise.
25831         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25832         (gl_FCNTL_H): Always replace fcntl.h.
25833         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25834         * lib/fcntl.in.h (fcntl): Declare replacement.
25835         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25836         needed, plus a witness.
25837         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25838         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25839         * tests/test-fcntl.c: New file.
25840         * modules/fcntl-tests: Likewise.
25841
25842         binary-io: avoid potential compilation warning
25843         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25844         directives.
25845
25846         fflush: avoid compilation error on NetBSD
25847         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25848         between off_t and fpos_t, since the latter is sometimes a struct.
25849         * lib/fseeko.c (rpl_fseeko): Likewise.
25850         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25851
25852 2009-12-15  Eric Blake  <ebb9@byu.net>
25853
25854         fcntl-h, stdio, sys_ioctl: fix declarations
25855         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25856         function must not take arguments.
25857         * lib/sys_ioctl.in.h (ioctl): Likewise.
25858         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25859         (open): Add a link warning.
25860
25861 2009-12-15  Jim Meyering  <meyering@redhat.com>
25862
25863         areadlink, areadlink-with-size: relax license to LGPLv2+
25864         * modules/areadlink (License): Relax to LGPLv2+.
25865         * modules/areadlink-with-size (License): Likewise.
25866
25867 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25868             Bruno Haible  <bruno@clisp.org>
25869
25870         *printf: Fix memory leak.
25871         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25872         * lib/vfprintf.c (vfprintf): Likewise.
25873         * lib/dprintf.c (dprintf): Likewise.
25874         * lib/vdprintf.c (vdprintf): Likewise.
25875
25876 2009-12-14  Eric Blake  <ebb9@byu.net>
25877
25878         accept4: adjust module dependencies
25879         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25880
25881         utimens: one more try at avoiding compiler warning
25882         * lib/utimens.c (lutimens): Lower scope of result.
25883
25884 2009-12-13  Bruno Haible  <bruno@clisp.org>
25885
25886         Move the malloc checking from module 'list' to new module 'xlist'.
25887         * modules/xlist: New file.
25888         * lib/gl_xlist.h: New file.
25889         * lib/gl_xlist.c: New file.
25890         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25891         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25892         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25893         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25894         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25895         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25896         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25897         gl_sortedlist_nx_add): New declarations.
25898         (struct gl_list_implementation): Rename and change methods accordingly.
25899         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25900         (gl_list_nx_create): Renamed from gl_list_create.
25901         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25902         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25903         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25904         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25905         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25906         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25907         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25908         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25909         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25910         gl_list_create_empty.
25911         (gl_list_nx_create): Renamed from gl_list_create.
25912         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25913         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25914         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25915         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25916         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25917         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25918         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25919         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25920         * lib/gl_array_list.c: Don't include xalloc.h.
25921         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25922         NULL upon out-of-memory.
25923         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25924         out-of-memory.
25925         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25926         Change return type to 'int'.
25927         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25928         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25929         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25930         upon out-of-memory.
25931         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25932         upon out-of-memory.
25933         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25934         upon out-of-memory.
25935         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25936         upon out-of-memory.
25937         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25938         out-of-memory.
25939         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25940         Update.
25941         (gl_array_list_implementation): Update.
25942         * lib/gl_carray_list.c: Don't include xalloc.h.
25943         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25944         Return NULL upon out-of-memory.
25945         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25946         out-of-memory.
25947         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25948         Change return type to 'int'.
25949         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25950         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25951         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25952         upon out-of-memory.
25953         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25954         upon out-of-memory.
25955         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25956         out-of-memory.
25957         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25958         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25959         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25960         Update.
25961         (gl_carray_list_implementation): Update.
25962         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25963         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25964         gl_linked_create_empty. Return NULL upon out-of-memory.
25965         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25966         out-of-memory.
25967         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25968         Change return type to 'int'. Return -1 upon out-of-memory.
25969         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25970         out-of-memory.
25971         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25972         upon out-of-memory.
25973         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25974         upon out-of-memory.
25975         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25976         NULL upon out-of-memory.
25977         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25978         upon out-of-memory.
25979         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25980         out-of-memory.
25981         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25982         Update.
25983         * lib/gl_linked_list.c: Don't include xalloc.h.
25984         (gl_linked_list_implementation): Update.
25985         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25986         (add_to_bucket): Change return type to 'int'.
25987         (gl_linkedhash_list_implementation): Update.
25988         * lib/gl_anytree_list1.h (free_subtree): New function.
25989         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25990         gl_tree_create_empty. Return NULL upon out-of-memory.
25991         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25992         Change return type to 'int'. Return -1 upon out-of-memory.
25993         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25994         out-of-memory.
25995         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25996         (gl_tree_remove_node): New function, moved here from
25997         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25998         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25999         Update.
26000         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26001         malloc, not xmalloc. Return NULL upon out-of-memory.
26002         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26003         out-of-memory.
26004         (gl_tree_remove_node_from_tree): New function, extracted from
26005         gl_tree_remove_node.
26006         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26007         upon out-of-memory.
26008         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26009         out-of-memory.
26010         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26011         upon out-of-memory.
26012         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26013         upon out-of-memory.
26014         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26015         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26016         not xmalloc. Return NULL upon out-of-memory.
26017         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26018         out-of-memory.
26019         (gl_tree_remove_node_from_tree): New function, extracted from
26020         gl_tree_remove_node.
26021         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26022         upon out-of-memory.
26023         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26024         out-of-memory.
26025         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26026         upon out-of-memory.
26027         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26028         upon out-of-memory.
26029         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26030         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26031         gl_anytree_list1.h before gl_anyavltree_list2.h.
26032         (gl_avltree_list_implementation): Update.
26033         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26034         gl_anytree_list1.h before gl_anyavltree_list2.h.
26035         (gl_rbtree_list_implementation): Update.
26036         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26037         Change return type to 'int'. Return -1 upon out-of-memory. Use
26038         __builtin_expect.
26039         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26040         (gl_avltreehash_list_implementation): Update.
26041         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26042         (gl_rbtreehash_list_implementation): Update.
26043         * modules/array-list (Depends-on): Remove xalloc.
26044         * modules/carray-list (Depends-on): Likewise.
26045         * modules/linked-list (Depends-on): Likewise.
26046         * modules/linkedhash-list (Depends-on): Likewise.
26047         * modules/avltree-list (Depends-on): Likewise.
26048         * modules/rbtree-list (Depends-on): Likewise.
26049         * modules/avltreehash-list (Depends-on): Likewise.
26050         * modules/rbtreehash-list (Depends-on): Likewise.
26051
26052         * modules/xsublist: New file.
26053         * lib/gl_xsublist.h: New file.
26054         * lib/gl_xsublist.c: New file.
26055         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26056         (gl_sublist_nx_create): New declaration.
26057         * lib/gl_sublist.c: Don't include xalloc.h.
26058         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26059         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26060         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26061         Change return type to 'int'. Return -1 upon out-of-memory.
26062         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26063         upon out-of-memory.
26064         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26065         NULL upon out-of-memory.
26066         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26067         upon out-of-memory.
26068         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26069         NULL upon out-of-memory.
26070         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26071         NULL upon out-of-memory.
26072         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26073         upon out-of-memory.
26074         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26075         (gl_sublist_list_implementation): Update.
26076         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26077         upon out-of-memory.
26078         * modules/sublist (Depends-on): Remove xalloc.
26079
26080         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26081         * tests/test-carray_list.c: Likewise.
26082         * tests/test-linked_list.c: Likewise.
26083         * tests/test-linkedhash_list.c: Likewise.
26084         * tests/test-avltree_list.c: Likewise.
26085         * tests/test-rbtree_list.c: Likewise.
26086         * tests/test-avltreehash_list.c: Likewise.
26087         * tests/test-rbtreehash_list.c: Likewise.
26088         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26089         * modules/carray-list-tests (Makefile.am): Likewise.
26090         * modules/linked-list-tests (Makefile.am): Likewise.
26091         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26092         * modules/avltree-list-tests (Makefile.am): Likewise.
26093         * modules/rbtree-list-tests (Makefile.am): Likewise.
26094         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26095         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26096
26097         * NEWS: Mention the changes.
26098
26099         * lib/clean-temp.c: Include gl_xlist.h.
26100         * modules/clean-temp (Depends-on): Add xlist.
26101
26102         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26103         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26104
26105         * tests/test-array_oset.c: Include gl_xlist.h.
26106         * modules/array-oset-tests (Depends-on): Add xlist.
26107
26108         Reported by José E. Marchesi <jemarch@gnu.org>.
26109
26110 2009-12-13  Bruno Haible  <bruno@clisp.org>
26111
26112         Move the malloc checking from module 'oset' to new module 'xoset'.
26113         * modules/xoset: New file.
26114         * lib/gl_xoset.h: New file.
26115         * lib/gl_xoset.c: New file.
26116         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26117         declarations.
26118         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26119         (struct gl_oset_implementation): Rename and change methods accordingly.
26120         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26121         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26122         'int'. Mark as __warn_unused_result__.
26123         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26124         gl_oset_create_empty.
26125         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26126         'int'.
26127         * lib/gl_array_oset.c: Don't include xalloc.h.
26128         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26129         malloc, not xmalloc.
26130         (grow): Change return type to 'int'. Don't call xalloc_die.
26131         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26132         to 'int'.
26133         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26134         'int'.
26135         (gl_array_oset_implementation): Update.
26136         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26137         gl_tree_create_empty.
26138         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26139         'int'.
26140         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26141         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26142         xmalloc.
26143         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26144         not xmalloc.
26145         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26146         xmalloc.
26147         (gl_avltree_oset_implementation): Update.
26148         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26149         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26150         xmalloc.
26151         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26152         not xmalloc.
26153         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26154         xmalloc.
26155         (gl_rbtree_oset_implementation): Update.
26156         * modules/array-oset (Depends-on): Remove xalloc.
26157         * modules/avltree-oset (Depends-on): Likewise.
26158         * modules/rbtree-oset (Depends-on): Likewise.
26159         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26160         * tests/test-avltree_oset.c: Likewise.
26161         * tests/test-rbtree_oset.c: Likewise.
26162         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26163         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26164         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26165         * NEWS: Mention the change.
26166
26167 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26168
26169         maint.mk: allow a project to override release-prep commands
26170         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26171         commands into a new rule.
26172         (release-prep): New rule.
26173         (release-prep-hook): New overridable variable.
26174
26175 2009-12-13  Bruno Haible  <bruno@clisp.org>
26176
26177         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26178
26179 2009-12-13  Jim Meyering  <meyering@redhat.com>
26180
26181         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26182         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26183
26184 2009-12-12  Bruno Haible  <bruno@clisp.org>
26185
26186         duplocale: Tweak.
26187         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26188
26189 2009-12-12  Karl Berry  <karl@gnu.org>
26190
26191         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26192
26193 2009-12-12  Bruno Haible  <bruno@clisp.org>
26194
26195         * m4/po.m4: Undo incorrect untabification.
26196
26197 2009-12-12  Bruno Haible  <bruno@clisp.org>
26198
26199         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26200         * modules/c-strtod (Depends-on): Add locale.
26201         * modules/c-strtold (Depends-on): Likewise.
26202
26203 2009-12-12  Bruno Haible  <bruno@clisp.org>
26204
26205         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26206
26207 2009-12-11  Eric Blake  <ebb9@byu.net>
26208
26209         setenv: relax requirement in light of POSIX ruling
26210         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26211         not NULL.
26212         * tests/test-setenv.c (main): Relax test.
26213         * tests/test-unsetenv.c (main): Likewise.
26214         * doc/posix-functions/setenv.texi (setenv): Document this.
26215         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26216
26217 2009-12-11  Bruno Haible  <bruno@clisp.org>
26218
26219         New module 'fd-safer-flag'.
26220         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26221         * lib/dup-safer.c (dup_safer_flag): Remove function.
26222         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26223         * lib/fd-safer.c (fd_safer_flag): Remove function.
26224         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26225         * modules/cloexec (configure.ac): Drop indicator macro.
26226         * modules/fd-safer-flag: New file.
26227         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26228         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26229         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26230
26231 2009-12-11  Bruno Haible  <bruno@clisp.org>
26232
26233         Tests for module 'nl_langinfo'.
26234         * modules/nl_langinfo-tests: New file.
26235         * tests/test-nl_langinfo.sh: New file.
26236         * tests/test-nl_langinfo.c: New file.
26237
26238         New module 'nl_langinfo'.
26239         * lib/nl_langinfo.c: New file.
26240         * m4/nl_langinfo.m4: New file.
26241         * modules/nl_langinfo: New file.
26242         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26243
26244 2009-12-11  Bruno Haible  <bruno@clisp.org>
26245
26246         Tests for module 'langinfo'.
26247         * modules/langinfo-tests: New file.
26248         * tests/test-langinfo.c: New file.
26249
26250         New module 'langinfo'.
26251         * lib/langinfo.in.h: New file.
26252         * m4/langinfo_h.m4: New file.
26253         * modules/langinfo: New file.
26254         * doc/posix-headers/langinfo.texi: Mention the new module.
26255
26256 2009-12-11  Bruno Haible  <bruno@clisp.org>
26257
26258         * lib/config.charset: Untabify.
26259
26260 2009-12-11  Bruno Haible  <bruno@clisp.org>
26261
26262         * modules/unistd-safer (configure.ac): Drop indicator macro.
26263
26264 2009-12-11  Bruno Haible  <bruno@clisp.org>
26265
26266         Move pipe2-safer code to its own file.
26267         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26268         * lib/pipe-safer.c (pipe2_safer): Remove function.
26269         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26270         (Makefile.am): Add it to lib_SOURCES.
26271
26272 2009-12-10  Bruno Haible  <bruno@clisp.org>
26273
26274         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26275
26276 2009-12-10  Bruno Haible  <bruno@clisp.org>
26277
26278         Declare which arguments expect non-NULL values, for GCC and clang.
26279         * build-aux/arg-nonnull.h: New file.
26280         * modules/arg-nonnull: New file.
26281         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26282         (inet_ntop, inet_pton): Use it.
26283         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26284         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26285         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26286         (open, openat): Use it.
26287         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26288         (fnmatch): Use it.
26289         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26290         (getopt, getopt_long, getopt_long_only): Use it.
26291         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26292         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26293         Use it.
26294         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26295         (iconv_open): Use it.
26296         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26297         (strtoimax, strtoumax): Use it.
26298         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26299         (duplocale): Use it.
26300         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26301         (frexp, frexpl): Use it.
26302         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26303         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26304         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26305         (tsearch, tfind, tdelete, twalk): Use it.
26306         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26307         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26308         sigpending): Use it.
26309         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26310         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26311         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26312         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26313         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26314         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26315         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26316         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26317         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26318         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26319         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26320         Use it.
26321         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26322         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26323         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26324         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26325         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26326         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26327         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26328         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26329         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26330         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26331         strtoull, unsetenv): Use it.
26332         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26333         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26334         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26335         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26336         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26337         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26338         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26339         (strcasecmp, strncasecmp): Use it.
26340         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26341         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26342         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26343         rpl_setsockopt): Use it.
26344         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26345         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26346         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26347         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26348         (gettimeofday): Use it.
26349         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26350         (times): Use it.
26351         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26352         (uname): Use it.
26353         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26354         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26355         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26356         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26357         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26358         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26359         unlinkat, write): Use it.
26360         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26361         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26362         * lib/argv-iter.h: Include arg-nonnull.h.
26363         (_ATTRIBUTE_NONNULL_): Remove macro.
26364         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26365         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26366         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26367         optimization.
26368         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26369         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26370         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26371         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26372         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26373         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26374         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26375         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26376         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26377         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26378         * modules/dirent (Depends-on): Add arg-nonnull.
26379         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26380         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26381         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26382         * modules/fnmatch (Depends-on): Add arg-nonnull.
26383         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26384         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26385         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26386         * modules/glob (Depends-on): Add arg-nonnull.
26387         (Makefile.am): Insert arg-nonnull.h into glob.h.
26388         * modules/iconv_open (Depends-on): Add arg-nonnull.
26389         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26390         * modules/inttypes (Depends-on): Add arg-nonnull.
26391         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26392         * modules/locale (Depends-on): Add arg-nonnull.
26393         (Makefile.am): Insert arg-nonnull.h into locale.h.
26394         * modules/math (Depends-on): Add arg-nonnull.
26395         (Makefile.am): Insert arg-nonnull.h into math.h.
26396         * modules/netdb (Depends-on): Add arg-nonnull.
26397         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26398         * modules/search (Depends-on): Add arg-nonnull.
26399         (Makefile.am): Insert arg-nonnull.h into search.h.
26400         * modules/signal (Depends-on): Add arg-nonnull.
26401         (Makefile.am): Insert arg-nonnull.h into signal.h.
26402         * modules/spawn (Depends-on): Add arg-nonnull.
26403         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26404         * modules/stdio (Depends-on): Add arg-nonnull.
26405         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26406         * modules/stdlib (Depends-on): Add arg-nonnull.
26407         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26408         * modules/string (Depends-on): Add arg-nonnull.
26409         (Makefile.am): Insert arg-nonnull.h into string.h.
26410         * modules/strings (Depends-on): Add arg-nonnull.
26411         (Makefile.am): Insert arg-nonnull.h into strings.h.
26412         * modules/sys_socket (Depends-on): Add arg-nonnull.
26413         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26414         * modules/sys_stat (Depends-on): Add arg-nonnull.
26415         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26416         * modules/sys_time (Depends-on): Add arg-nonnull.
26417         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26418         * modules/sys_times (Depends-on): Add arg-nonnull.
26419         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26420         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26421         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26422         * modules/time (Depends-on): Add arg-nonnull.
26423         (Makefile.am): Insert arg-nonnull.h into time.h.
26424         * modules/unistd (Depends-on): Add arg-nonnull.
26425         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26426         * modules/wchar (Depends-on): Add arg-nonnull.
26427         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26428         * modules/argv-iter (Depends-on): Add arg-nonnull.
26429         * tests/test-canonicalize.c (null_ptr): New function.
26430         (main): Use it.
26431         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26432         (main): Use it.
26433         * tests/test-memmem.c (null_ptr): New function.
26434         (main): Use it.
26435         Reported by Jim Meyering.
26436
26437 2009-12-10  Bruno Haible  <bruno@clisp.org>
26438
26439         Use spaces for indentation, not tabs.
26440         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26441         * m4/*.m4: Untabify.
26442         * build-aux/*.h: Untabify.
26443         * tests/**/*.[hc]: Untabify.
26444         * README: New section "Indent with spaces, not TABs", based on
26445         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26446         * NEWS: Mention the change.
26447
26448 2009-12-10  Bruno Haible  <bruno@clisp.org>
26449
26450         pty test: Fix link error.
26451         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26452         test_pty_LDADD.
26453
26454 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26455
26456         * modules/pty: New file.
26457         * modules/pty-tests: New file.
26458         * m4/pty.m4: New file.
26459         * tests/test-pty.c: New file.
26460         * doc/glibc-headers/pty.texi: Modified.
26461         * doc/glibc-functions/forkpty.texi: Modified.
26462         * doc/glibc-functions/openpty.texi: Modified.
26463
26464 2009-12-10  Bruno Haible  <bruno@clisp.org>
26465
26466         Avoid syntax error in C++ mode.
26467         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26468
26469 2009-12-10  Bruno Haible  <bruno@clisp.org>
26470
26471         Use sed with option -e.
26472         * gnulib-tool (func_version, func_emit_copyright_notice,
26473         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26474         option -e to sed.
26475         * modules/link-warning (Makefile.am): Likewise.
26476
26477 2009-12-10  Jim Meyering  <meyering@redhat.com>
26478
26479         mgetgroups: do not write bytes beyond end of malloc'd buffer
26480         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26481         username, we call getgroups with a one-element-shorter buffer,
26482         but still told it the length was original, max_n_groups.
26483
26484 2009-12-09  Eric Blake  <ebb9@byu.net>
26485
26486         cloexec: relax license
26487         * modules/cloexec (Maintainer): Add myself.
26488         (License): Use LGPL, not GPL.
26489
26490         link-warning: optimize generation
26491         * modules/link-warning (Makefile.am): Reduce process usage.
26492
26493 2009-12-09  Bruno Haible  <bruno@clisp.org>
26494
26495         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26496         workaround was added on 2009-11-17.
26497
26498 2009-12-09  Jim Meyering  <meyering@redhat.com>
26499             Bruno Haible  <bruno@clisp.org>
26500
26501         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26502         * modules/link-warning (Makefile.am): Make the comment-removing sed
26503         command more robust in the face of bootstrap-prepended comment lines.
26504
26505 2009-12-09  Bruno Haible  <bruno@clisp.org>
26506
26507         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26508         most one group.
26509
26510 2009-12-09  Simon Josefsson <simon@josefsson.org>
26511             Bruno Haible  <bruno@clisp.org>
26512
26513         * build-aux/link-warning.h: Add copyright notice.
26514         * modules/link-warning (Makefile.am): Generate link-warning.h from
26515         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26516         * NEWS: Mention change in link-warning module.
26517         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26518         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26519         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26520         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26521         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26522         * modules/math (Makefile.am): Add dependency to math.h.
26523         * modules/search (Makefile.am): Add dependency to search.h.
26524         * modules/signal (Makefile.am): Add dependency to signal.h.
26525         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26526         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26527         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26528         * modules/string (Makefile.am): Add dependency to string.h.
26529         * modules/strings (Makefile.am): Add dependency to strings.h.
26530         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26531         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26532         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26533         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26534         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26535         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26536         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26537         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26538         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26539
26540 2009-12-09  Bruno Haible  <bruno@clisp.org>
26541
26542         fchdir: Optimize away rpl_fstat when possible.
26543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26544         REPLACE_OPEN_DIRECTORY.
26545         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26546
26547 2009-12-09  Bruno Haible  <bruno@clisp.org>
26548
26549         * lib/fchdir.c: Update comment.
26550
26551 2009-12-09  Bruno Haible  <bruno@clisp.org>
26552
26553         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26554
26555 2009-12-08  Eric Blake  <ebb9@byu.net>
26556
26557         fchdir: avoid memory leak on re-registration.
26558         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26559
26560 2009-12-08  Jim Meyering  <meyering@redhat.com>
26561
26562         init.sh: avoid Solaris 10 /bin/sh portability problem
26563         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26564         sourced script:
26565           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26566           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26567           bar
26568         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26569         and two tests used that idiom.
26570         * tests/init.sh: Update suggested usage comments.
26571         (path_prepend_): New function, to be used in place
26572         of the --src-path=DIR option.
26573         (setup_): Move PATH-prepending code into path_prepend_.
26574         * tests/test-pread.sh: Adapt to new usage.
26575         * tests/test-xalloc-die.sh: Likewise.
26576
26577 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26578
26579         * doc/gnulib.texi (Glibc pty.h): Add.
26580         * doc/glibc-functions/forkpty.texi: Add.
26581         * doc/glibc-functions/openpty.texi: Add.
26582         Suggested by Bruno Haible.
26583
26584 2009-12-08  Eric Blake  <ebb9@byu.net>
26585
26586         fchdir: fix logic bugs
26587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26588         * tests/test-fchdir.c (main): Enhance test.
26589         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26590         is in use.
26591
26592         dup2: fix logic bugs
26593         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26594         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26595         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26596         exists.
26597         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26598
26599 2009-12-07  Eric Blake  <ebb9@byu.net>
26600
26601         unlink: fix m4 detection
26602         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26603
26604         unistd-safer: add unit test
26605         * modules/unistd-safer-tests: New file.
26606         * tests/test-dup-safer.c: Likewise.
26607         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26608         * tests/test-dup2.c (setmode): Likewise.
26609         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26610
26611         cloexec: preserve text vs. binary across dup_cloexec
26612         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26613         mode.
26614         * modules/dup2-tests (Depends-on): Add binary-io.
26615         * modules/cloexec-tests (Depends-on): Likewise.
26616         * tests/test-dup2.c (setmode, is_mode): New helpers.
26617         (main): Add tests that translation mode is preserved.
26618         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26619         Reported by Bruno Haible.
26620
26621         mgetgroups: reduce duplicate listings
26622         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26623         resulting array.
26624         * tests/test-chown.h (test_chown): Simplify client.
26625         * tests/test-lchown.h (test_lchown): Likewise.
26626
26627 2009-12-06  Bruno Haible  <bruno@clisp.org>
26628
26629         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26630         value.
26631
26632 2009-12-06  Bruno Haible  <bruno@clisp.org>
26633
26634         * lib/progname.c: Include stdio.h, stdlib.h.
26635         (set_program_name): Reject a NULL argument.
26636
26637 2009-12-05  Eric Blake  <ebb9@byu.net>
26638
26639         pipe2-safer: new module
26640         * modules/pipe2-safer: New file.
26641         * lib/unistd-safer.h (pipe2_safer): New prototype.
26642         * lib/unistd--.h (pipe2): New wrapper.
26643         * lib/pipe-safer.c (pipe2_safer): New function.
26644         * modules/pipe (Depends-on): Add pipe2-safer.
26645         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26646
26647         stdlib-safer: preserve cloexec flag for mkostemp[s]
26648         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26649         fd_safer_flag.
26650
26651         unistd-safer: allow preservation of cloexec status via flag
26652         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26653         prototypes.
26654         * lib/dup-safer.c (dup_safer_flag): New function.
26655         * lib/fd-safer.c (fd_safer_flag): Likewise.
26656         * modules/cloexec (configure.ac): Set witness.
26657
26658         test-dup2: enhance test
26659         * modules/dup2-tests (Depends-on): Add cloexec.
26660         * tests/test-dup2.c (main): Enhance test.
26661
26662         cloexec: add dup_cloexec
26663         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26664         header and comments.
26665         * lib/cloexec.c (set_cloexec_flag): Add comments.
26666         (dup_cloexec): New function, with mingw implementation borrowed
26667         from...
26668         * lib/w32spawn.h (dup_noinherit): ...here.
26669         * modules/execute (Depends-on): Add cloexec.
26670         * modules/pipe (Depends-on): Likewise.
26671         * modules/cloexec (Depends-on): Add dup2.
26672         * modules/cloexec-tests (Files): New file.
26673         * tests/test-cloexec.c: Likewise.
26674
26675         test-xalloc-die: fix test for mingw
26676         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26677         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26678         directory and .exe suffix off argv[0] output.
26679
26680         test-fseeko: fix test for mingw
26681         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26682         than undefining fseek, so test will pass on mingw.
26683
26684 2009-12-05  Bruno Haible  <bruno@clisp.org>
26685
26686         * lib/progname.h (set_program_name): Clarify specification.
26687         * lib/progname.c (set_program_name): Likewise.
26688         Reported by Jim Meyering.
26689
26690 2009-12-05  Jim Meyering  <meyering@redhat.com>
26691
26692         maint.mk: backslash-escape parens in default regexp
26693         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26694         backslash-escape the literal parentheses.
26695
26696         maint.mk: news-date-check: use grep -E
26697         * top/maint.mk (today): Define a Make variable, not a...
26698         (news-date-check): ...shell variable.
26699         (news-date-regexp): Use the Make variable.
26700         Use grep's -E option.  Change the failing diagnostic to mention
26701         the variable, $(news-date-regexp).
26702
26703 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26704
26705         maintainer-makefile: allow customization of NEWS entry format
26706         * top/maint.mk (news-date-regexp): New overridable variable.
26707         (news-date-check): Use it.
26708
26709 2009-12-04  Eric Blake  <ebb9@byu.net>
26710
26711         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26712         * lib/mgetgroups.h (xgetgroups): New prototype.
26713         * lib/mgetgroups.c (xgetgroups): New wrapper.
26714         (mgetgroups): Handle ENOSYS.
26715         * modules/mgetgroups (Depends-on): Add realloc.
26716         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26717
26718         mgetgroups: avoid argument promotion issues with -1
26719         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26720         for invalid gid_t.
26721         * tests/test-chown.h (getegid, test_chown): Likewise.
26722         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26723
26724 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26725
26726         exclude: Fix header file problems.
26727         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26728
26729 2009-12-01  Jim Meyering  <meyering@redhat.com>
26730
26731         fts: fts_open: do not let an empty string cause immediate failure
26732         This is required in support of GNU rm, for which the command
26733         "rm A '' B" must process and remove both A and B, in spite of
26734         the empty string argument.
26735         * lib/fts.c (fts_open): Do not let the presence of an empty string
26736         cause fts_open to fail immediately.  Most fts-using tools must be
26737         able to process all arguments, in order, and can be expected to
26738         diagnose such arguments themselves.
26739
26740 2009-11-30  Eric Blake  <ebb9@byu.net>
26741
26742         utimens: fix compilation error
26743         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26744         Declare variable at right scope.
26745
26746 2009-11-29  Jim Meyering  <meyering@redhat.com>
26747
26748         bootstrap: handle perl-5.11's changed --version output
26749         * build-aux/bootstrap (get_version): Handle perl separately,
26750         since perl-5.11's --version output is different.
26751
26752 2009-11-28  Jim Meyering  <meyering@redhat.com>
26753
26754         userspec: depend on the inttostr module, too
26755         * modules/userspec (Depends-on): Add inttostr.
26756
26757         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26758         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26759         number of MAXUID when it evaluates to (uid_t) -1.
26760         Likewise for group ID.  Reported by Matt McCutchen in
26761         <http://savannah.gnu.org/bugs/?28113>
26762
26763         userspec: reformat to use spaces, not TABs
26764         * lib/userspec.c: Expand TABs to spaces.
26765         Add Emacs' "indent-tabs-mode: nil" hint.
26766
26767 2009-11-27  Eric Blake  <ebb9@byu.net>
26768
26769         getopt-gnu: flush out another BSD bug
26770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26771         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26772         flush out BSD bug.
26773         * tests/test-getopt.h (test_getopt): End lists with NULL.
26774         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26775         (test_getopt_long_posix): Enhance test.
26776         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26777         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26778         getopt-gnu.
26779         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26780         Likewise.
26781
26782 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26783
26784         * modules/idpriv-droptemp-tests (Notice): Fix text.
26785
26786 2009-11-27  Jim Meyering  <meyering@redhat.com>
26787
26788         test-xalloc-die: avoid spurious failure due to libtool argv difference
26789         In a libtool-enabled project, this test would fail due to a difference
26790         in the emitted program name, e.g.,
26791         -test-xalloc-die: memory exhausted
26792         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26793         Use program to avoid that.
26794         * modules/xalloc-die-tests (Depends-on): Add progname.
26795         * tests/test-xalloc-die.c: Include progname.h".
26796         (program_name): Remove decl.
26797         (main): Call set_program_name.
26798         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26799
26800 2009-11-26  Richard Jones  <rjones@redhat.com>
26801
26802         w32sock: leave win32 error in place.
26803         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26804
26805 2009-11-26  Eric Blake  <ebb9@byu.net>
26806
26807         init.sh: suggest to use skip_ and fail_ functions in comments
26808         * tests/init.sh: Add a sentence.
26809
26810 2009-11-25  Bruno Haible  <bruno@clisp.org>
26811
26812         init.sh: add documentation in comments
26813         * tests/init.sh: Add some developer and user documentation.
26814
26815 2009-11-26  Jim Meyering  <meyering@redhat.com>
26816
26817         init.sh: accommodate even those who specify bogus srcdir manually
26818         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26819         configure-time tests to be sanitized, so that there is no need to
26820         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26821         (with no double quotes) suffices.  However, since tests may be
26822         invoked manually, and since you may explicitly set srcdir to the
26823         name of a directory containing spaces, do quote its uses here.
26824         * tests/test-pread.sh: Likewise.
26825         Suggested by Bruno Haible.
26826
26827         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26828         * tests/test-pread.sh: Write no data into the pipe, because
26829         test-pread actually reads none.  This avoids a diagnostic,
26830         "bash: echo: write error: Broken pipe", that arises in the unusual
26831         event something is ignoring SIGPIPE, and might be interpreted
26832         as some sort of failure.  Reported by Bruno Haible.
26833
26834 2009-11-25  Jim Meyering  <meyering@redhat.com>
26835
26836         test-pread: cover failure with ESPIPE and EINVAL
26837         * tests/test-pread.c (main): Test for failure, too.
26838         * tests/test-pread.sh: Invoke with stdin on a pipe.
26839         Suggested by Eric Blake.
26840
26841         pread: improvement and fix
26842         * modules/pread (Depends-on): Depend on lseek, for portability to
26843         e.g., mingw.  Suggested by Eric Blake.
26844         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26845
26846         unistd.in.h: correct declaration of pread
26847         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26848         Reported by Richard W.M. Jones.
26849
26850         test-pread.sh: distribute the test script
26851         * modules/pread-tests (Files): Include test-pread.sh.
26852
26853         test-pread.sh: clean up
26854         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26855         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26856         That is unnecessary, since it's always ".".
26857         Suggestion from Eric Blake.
26858
26859         test-pread.sh: make executable
26860         * tests/test-pread.sh: Set executable bit.
26861         Reported by Eric Blake.
26862
26863         correct typo in test-pread.sh
26864         * tests/test-pread.sh: Add #! line.
26865
26866         test pread
26867         * tests/test-pread.c: New file.
26868         * tests/test-pread.sh: Likewise.
26869         * modules/pread-tests: Likewise.
26870
26871         pread: new module
26872         * modules/pread: New file.
26873         * lib/unistd.in.h (pread): Define/declare.
26874         * lib/pread.c (pread): New file.
26875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26876         * modules/unistd (Makefile.am): Substitute witnesses.
26877         * doc/posix-functions/pread.texi (pread): Update.
26878         * MODULES.html.sh: Add pread.
26879
26880 2009-11-25  Jim Meyering  <meyering@redhat.com>
26881
26882         tests/init.sh: new file to be used via most *.sh tests
26883         * tests/init.sh: New file.
26884
26885 2009-11-25  Eric Blake  <ebb9@byu.net>
26886
26887         utimens: work around older Linux failure with symlinks
26888         * lib/utimens.c (lutimensat_works_really): New variable.
26889         (fdutimens, lutimens): Use it to manage kernels that support
26890         nanosecond times on files, but not on symlinks.
26891         Reported by OndÅ™ej Vašík.
26892
26893         utimes: fix configure grammar
26894         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26895
26896 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26897
26898         regex: Fix fastmap for multibyte character ranges.
26899         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26900         characters when a multibyte character range is included.
26901
26902 2009-11-22  Andy Wingo  <wingo@pobox.com>
26903
26904         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26905         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26906
26907 2009-11-24  Bruno Haible  <bruno@clisp.org>
26908
26909         doc: Most *_l functions exist in MacOS X 10.5.
26910         * doc/posix-functions/duplocale.texi: Update platforms list.
26911         * doc/posix-functions/freelocale.texi: Likewise.
26912         * doc/posix-functions/newlocale.texi: Likewise.
26913         * doc/posix-functions/uselocale.texi: Likewise.
26914         * doc/posix-functions/isalnum_l.texi: Likewise.
26915         * doc/posix-functions/isalpha_l.texi: Likewise.
26916         * doc/posix-functions/isblank_l.texi: Likewise.
26917         * doc/posix-functions/iscntrl_l.texi: Likewise.
26918         * doc/posix-functions/isdigit_l.texi: Likewise.
26919         * doc/posix-functions/isgraph_l.texi: Likewise.
26920         * doc/posix-functions/islower_l.texi: Likewise.
26921         * doc/posix-functions/isprint_l.texi: Likewise.
26922         * doc/posix-functions/ispunct_l.texi: Likewise.
26923         * doc/posix-functions/isspace_l.texi: Likewise.
26924         * doc/posix-functions/isupper_l.texi: Likewise.
26925         * doc/posix-functions/iswalnum_l.texi: Likewise.
26926         * doc/posix-functions/iswalpha_l.texi: Likewise.
26927         * doc/posix-functions/iswblank_l.texi: Likewise.
26928         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26929         * doc/posix-functions/iswctype_l.texi: Likewise.
26930         * doc/posix-functions/iswdigit_l.texi: Likewise.
26931         * doc/posix-functions/iswgraph_l.texi: Likewise.
26932         * doc/posix-functions/iswlower_l.texi: Likewise.
26933         * doc/posix-functions/iswprint_l.texi: Likewise.
26934         * doc/posix-functions/iswpunct_l.texi: Likewise.
26935         * doc/posix-functions/iswspace_l.texi: Likewise.
26936         * doc/posix-functions/iswupper_l.texi: Likewise.
26937         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26938         * doc/posix-functions/isxdigit_l.texi: Likewise.
26939         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26940         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26941         * doc/posix-functions/strcoll_l.texi: Likewise.
26942         * doc/posix-functions/strfmon_l.texi: Likewise.
26943         * doc/posix-functions/strftime_l.texi: Likewise.
26944         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26945         * doc/posix-functions/strxfrm_l.texi: Likewise.
26946         * doc/posix-functions/tolower_l.texi: Likewise.
26947         * doc/posix-functions/toupper_l.texi: Likewise.
26948         * doc/posix-functions/towctrans_l.texi: Likewise.
26949         * doc/posix-functions/towlower_l.texi: Likewise.
26950         * doc/posix-functions/towupper_l.texi: Likewise.
26951         * doc/posix-functions/wcscoll_l.texi: Likewise.
26952         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26953         * doc/posix-functions/wctrans_l.texi: Likewise.
26954         * doc/posix-functions/wctype_l.texi: Likewise.
26955         * doc/glibc-functions/strptime_l.texi: Likewise.
26956         * doc/glibc-functions/strtod_l.texi: Likewise.
26957         * doc/glibc-functions/strtof_l.texi: Likewise.
26958         * doc/glibc-functions/strtol_l.texi: Likewise.
26959         * doc/glibc-functions/strtold_l.texi: Likewise.
26960         * doc/glibc-functions/strtoll_l.texi: Likewise.
26961         * doc/glibc-functions/strtoul_l.texi: Likewise.
26962         * doc/glibc-functions/strtoull_l.texi: Likewise.
26963         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26964         * doc/glibc-functions/wcstod_l.texi: Likewise.
26965         * doc/glibc-functions/wcstof_l.texi: Likewise.
26966         * doc/glibc-functions/wcstol_l.texi: Likewise.
26967         * doc/glibc-functions/wcstold_l.texi: Likewise.
26968         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26969         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26970         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26971
26972 2009-11-24  Bruno Haible  <bruno@clisp.org>
26973
26974         duplocale: Fix logic bug.
26975         * lib/duplocale.c: Don't include <langinfo.h>.
26976         (_NL_LOCALE_NAME): Remove macro.
26977         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26978         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26979
26980 2009-11-23  Jim Meyering  <meyering@redhat.com>
26981
26982         test-update-copyright: don't hard-code /usr/bin/perl
26983         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26984         perl to print the current year.  Gilles Espinasse reported that
26985         the replaced use of perl was hard-coded as /usr/bin/perl.
26986
26987 2009-11-23  Bruno Haible  <bruno@clisp.org>
26988
26989         duplocale: Add support for glibc 2.3.x.
26990         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26991
26992 2009-11-22  Bruno Haible  <bruno@clisp.org>
26993
26994         vasnprintf: Tiny optimization.
26995         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26996         MacOS X.
26997
26998 2009-11-22  Bruno Haible  <bruno@clisp.org>
26999
27000         Tests for module 'duplocale'.
27001         * modules/duplocale-tests: New file.
27002         * tests/test-duplocale.c: New file.
27003
27004         New module 'duplocale'.
27005         * m4/duplocale.m4: New file.
27006         * lib/locale.in.h (duplocale): New declaration.
27007         * lib/duplocale.c: New file.
27008         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27009         gl_LOCALE_H_DEFAULTS): New macros.
27010         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27011         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27012         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27013         REPLACE_DUPLOCALE.
27014         * modules/duplocale: New file.
27015         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27016
27017 2009-11-22  Bruno Haible  <bruno@clisp.org>
27018
27019         * modules/locale-tests (configure.ac): Test for newlocale function.
27020         * tests/test-locale.c: When the system has extended locale functions,
27021         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27022
27023         locale: Make locale_t available when possible.
27024         * lib/locale.in.h: Include <xlocale.h> when it exists.
27025         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27026         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27027         * modules/locale (Depends-on): Add extensions.
27028         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27029         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27030
27031 2009-11-22  Bruno Haible  <bruno@clisp.org>
27032
27033         Add comments.
27034         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27035         invocation.
27036         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27037         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27038         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27039
27040 2009-11-22  Bruno Haible  <bruno@clisp.org>
27041
27042         error: account for the possibility of freopen (stdout).
27043         * lib/error.c: Include <unistd.h>.
27044         (flush_stdout): New function, extracted from error and error_at_line.
27045         Determine stdout's fd dynamically.
27046         (error, error_at_line): Invoke flush_stdout.
27047         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27048         * modules/error (Depends-on): Add unistd.
27049
27050 2009-11-22  Bruno Haible  <bruno@clisp.org>
27051
27052         diffseq: Add comment.
27053         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27054
27055 2009-11-22  Jim Meyering  <meyering@redhat.com>
27056
27057         c-stack: avoid defining an unused static function
27058         * lib/c-stack.c (find_stack_direction): Do not define this function
27059         when it will not be used.
27060
27061         diffseq: avoid spurious gcc warnings
27062         * lib/diffseq.h (IF_LINT2): Define.
27063         (compareseq): Use it to initialize two members of "part".
27064         This avoids two used-uninitialized warnings.
27065
27066 2009-11-21  Jim Meyering  <meyering@redhat.com>
27067
27068         c-stack: avoid "ignoring return value of `write'" warning
27069         * lib/c-stack.c: Include "ignore-value.h".
27070         (die): Explicitly ignore each write return value.
27071         * modules/c-stack (Depends-on): Add ignore-value.
27072
27073 2009-11-21  Bruno Haible  <bruno@clisp.org>
27074
27075         diffseq: reduce scope of variable 'best'.
27076         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27077         variable, earlier used for two different purposes.
27078
27079 2009-11-21  Jim Meyering  <meyering@redhat.com>
27080
27081         diffseq: remove useless assignment to "best"
27082         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27083         assignment.  At that point "best" is already guaranteed to be zero.
27084
27085 2009-11-20  Eric Blake  <ebb9@byu.net>
27086
27087         build: mention ftp redirector in release announcements
27088         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27089         values that used to come from cfg.mk; mention FTP redirect URL.
27090         * build-aux/announce-gen: Mention the mirror list.
27091         Suggested by Karl Berry.
27092
27093         nanosleep: improve port to mingw
27094         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27096         LIB_NANOSLEEP, but only when needed.
27097         * modules/select (Link): Document LIBSOCKET.
27098         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27099         enough.
27100
27101         nanosleep: work around cygwin bug
27102         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27103         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27104         bug.
27105         (getnow): Delete, not needed.
27106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27107         LIB_CLOCK_GETTIME.
27108         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27109         clock-time, gettime.
27110         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27111         bug.
27112         * modules/nanosleep-tests: New test.
27113         * tests/test-nanosleep.c: New file.
27114
27115         sleep: work around cygwin bug
27116         * lib/sleep.c (rpl_sleep): Work around the bug.
27117         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27118         (gl_PREREQ_SLEEP): Delete unused macro.
27119         * modules/sleep (Depends-on): Add verify.
27120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27121         * modules/unistd (Makefile.am): Substitute witness.
27122         * lib/unistd.in.h (sleep): Update prototype.
27123         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27124         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27125         * modules/sleep-tests (Depends-on): Check for alarm.
27126
27127 2009-11-20  Jim Meyering  <meyering@redhat.com>
27128
27129         maint.mk: improve sc_prohibit_magic_number_exit
27130         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27131         so it does not match uses like System.exit(1).
27132         Add comments showing how to correct all offenders.
27133
27134 2009-11-19  Eric Blake  <ebb9@byu.net>
27135
27136         xalloc-die-tests: add missing library
27137         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27138
27139         test-xvasprintf: silence compiler warnings
27140         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27141         empty string from gcc.
27142
27143 2009-11-19  Jim Meyering  <meyering@redhat.com>
27144
27145         xfreopen: new module, from coreutils
27146         * modules/xfreopen: New module.
27147         * lib/xfreopen.c: New file.
27148         * lib/xfreopen.h: New file.
27149         * MODULES.html.sh (File stream based Input/Output"): Add it.
27150
27151 2009-11-19  Eric Blake  <ebb9@byu.net>
27152
27153         manywarnings: depend on warnings
27154         * modules/manywarnings (Depends-on): Add warnings.
27155
27156         build: avoid compiler warnings
27157         * lib/select.c (rpl_select): Delete unused variable.
27158         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27159
27160 2009-11-18  Eric Blake  <ebb9@byu.net>
27161
27162         tests: avoid false negative with --with-packager
27163         * tests/test-version-etc.sh: Discard packager information.
27164         * tests/test-argp-version-etc-1.sh: Likewise.
27165         Reported by Mike Frysinger.
27166
27167         utimens: fix regression on Solaris
27168         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27169         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27170         can only change fd timestamps via futimesat.  Instead, use an
27171         additional witness macro to avoid BSD bug.
27172         Reported by Jim Meyering.
27173
27174 2009-11-17  Eric Blake  <ebb9@byu.net>
27175
27176         usleep: use it to simplify tests
27177         * modules/stat-time-tests (Depends-on): Add usleep.
27178         (configure.ac): Drop usleep check.
27179         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27180         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27181         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27182         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27183         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27184         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27185         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27186         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27187         Likewise.
27188         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27189         * tests/test-lchown.h (nap): Likewise.
27190         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27191         * tests/test-stat-time.c (nap): Likewise.
27192         * tests/test-utimens-common.h (nap): Update comments.
27193
27194         usleep: new module
27195         * modules/usleep: New file.
27196         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27197         * lib/usleep.c (usleep): Likewise.
27198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27199         * modules/unistd (Makefile.am): Substitute witnesses.
27200         * lib/unistd.in.h (usleep): Add declaration.
27201         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27202         * MODULES.html.sh (Date and time): Likewise.
27203         * modules/usleep-tests (Depends-on): New test.
27204         * tests/test-usleep.c: New file.
27205
27206         chown: work around OpenBSD bug
27207         * lib/chown.c (rpl_chown): Work around the bug.
27208         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27209         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27210         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27211         * modules/chown (Depends-on): Add stdbool.
27212         * modules/lchown (Depends-on): Likewise.
27213         * doc/posix-functions/chown.texi (chown): Document the bug.
27214         * doc/posix-functions/lchown.texi (lchown): Likewise.
27215         * tests/test-lchown.h (test_chown): Relax test.
27216
27217         mkstemp: avoid conflict with C++ keyword template
27218         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27219         * lib/mkostemp.c (mkostemp): Likewise.
27220         * lib/mkostemps.c (mkostemps): Likewise.
27221         * lib/mkstemp.c (mkstemp): Likewise.
27222         * lib/mkstemps.c (mkstemps): Likewise.
27223
27224         xalloc-die-tests: optimize
27225         * tests/test-xalloc-die.sh: Reduce number of processes.
27226
27227 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27228
27229         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27230         patch from ludo@gnu.org (Ludovic Courtès).
27231
27232 2009-11-17  Jim Meyering  <meyering@redhat.com>
27233
27234         version-etc: use proper license string
27235         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27236         * modules/version-etc-fsf: Likewise.
27237
27238 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27239
27240         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27241         printed to stdout.  Deal with EOL differences.
27242
27243 2009-11-17  Eric Blake  <ebb9@byu.net>
27244
27245         unsetenv: work around Solaris bug
27246         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27247         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27248         Reported by Jim Meyering.
27249
27250         vasnprintf: avoid compiler warnings
27251         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27252         variables.
27253         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27254
27255 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27256
27257         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27258         settings since xalloc-die is no longer the self test,
27259         xalloc-die.sh is.
27260
27261 2009-11-17  Jim Meyering  <meyering@redhat.com>
27262
27263         test-xalloc-die.sh: make the code agree with the commit log
27264         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27265         at the end, just in case you happen to have a test-xalloc-die
27266         program in some other PATH directory.
27267
27268         test-xalloc-die.sh: fix a portability bug
27269         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27270         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27271         Otherwise, argv[0] (as often seen in diagnostics) would be too
27272         system-dependent, sometimes with, and sometimes without the leading "./".
27273
27274         version-etc-fsf: relax license to LGPLv3+
27275         * modules/version-etc-fsf (License): Relax license.
27276
27277 2009-11-16  Eric Blake  <ebb9@byu.net>
27278
27279         xalloc-die-tests: avoid printing null pointer
27280         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27281         shell script.
27282         * tests/test-xalloc-die.c (program_name): Declare.
27283         * tests/test-xalloc-die.sh (tmpfiles): New file.
27284
27285         setenv, unsetenv: work around various bugs
27286         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27287         (setenv) [HAVE_SETENV]: Work around bugs.
27288         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27289         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27290         for bugs.
27291         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27292         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27294         * modules/stdlib (Makefile.am): Update substitutions.
27295         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27296         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27297         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27298         * modules/setenv-tests: New test.
27299         * modules/unsetenv-tests: Likewise.
27300         * tests/test-setenv.c: New file.
27301         * tests/test-unsetenv.c: Likewise.
27302
27303 2009-11-16  Jim Meyering  <meyering@redhat.com>
27304
27305         version-etc: relax license to LGPLv3+
27306         * modules/version-etc (License): Relax license.
27307
27308         better AC_REQUIRE expanded-before-required-warning avoidance
27309         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27310         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27311         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27312         which is no longer needed.
27313
27314 2009-11-16  Eric Blake  <ebb9@byu.net>
27315
27316         test-freading: clean up temporary file
27317         * tests/test-freading.c (main): Remove file on success, and use
27318         ASSERT more liberally.
27319         Reported by Jim Meyering.
27320
27321 2009-11-16  Jim Meyering  <meyering@redhat.com>
27322
27323         avoid new AC_REQUIRE expanded-before-required warnings
27324         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27325         merely using it.
27326         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27327         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27328
27329 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27330
27331         * tests/test-xalloc-die.c: New file.
27332         * modules/xalloc-die-tests: New file.
27333         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27334         XFAIL_TESTS so it can be appended by modules.
27335
27336 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27337
27338         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27339         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27340
27341 2009-11-14  Eric Blake  <ebb9@byu.net>
27342
27343         fnmatch: avoid compiler warning
27344         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27345         to silence compiler warning about mismatch signedness in ?:.
27346         Reported by Robert Millan.
27347
27348         intprops: add double-inclusion guard
27349         * lib/intprops.h: Allow idempotent includes.
27350         Suggested by Bruce Korb.
27351
27352         openat: detect Solaris fchownat bug
27353         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27354         penalizing glibc chownat when only lchownat is broken.
27355         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27356         trailing slash bugs.
27357         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27358         * modules/openat-tests (Files): Include more files.
27359         (Depends-on): Add mgetgroups, sleep, stat-time.
27360         (configure.ac): Add additional checks.
27361         (Makefile.am): Build new test.
27362         * tests/test-fchownat.c: New file.
27363
27364         lchown: detect Solaris and FreeBSD bug
27365         * lib/lchown.c (rpl_lchown): Work around bug.
27366         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27368         * modules/unistd (Makefile.am): Populate it.
27369         * lib/unistd.in.h (lchown): Update declaration.
27370         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27371         * modules/lchown-tests: New file.
27372         * tests/test-lchown.h (test_lchown): Likewise.
27373         * tests/test-lchown.c (main): Likewise.
27374
27375         chown: detect Solaris and FreeBSD bug
27376         * lib/chown.c (rpl_chown): Work around bug.
27377         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27378         (gl_PREREQ_CHOWN): Delete.
27379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27380         * modules/unistd (Makefile.am): Populate it.
27381         * lib/unistd.in.h (chown): Update declaration.
27382         * lib/lchown.c (chown): Update client.
27383         * modules/lchown (Depends-on): Add lstat.
27384         * doc/posix-functions/chown.texi (chown): Document the bug.
27385         * doc/posix-functions/getgroups.texi (getgroups): Document
27386         getgroups pitfall.
27387         * modules/chown-tests: New file.
27388         * tests/test-chown.h (test_chown): Likewise.
27389         * tests/test-chown.c (main): Likewise.
27390
27391 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27392
27393         gnulib-tool: correctly detect absence of m4 directories
27394         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27395
27396 2009-11-14  Jim Meyering  <meyering@redhat.com>
27397
27398         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27399         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27400
27401 2009-11-14  John W. Eaton  <jwe@gnu.org>
27402
27403         strftime.h: wrap funtion declaration in extern "C" block
27404         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27405
27406 2009-11-13  Eric Blake  <ebb9@byu.net>
27407
27408         getgroups: avoid compiler warning
27409         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27410
27411         getgroups: work around FreeBSD bug
27412         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27413         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27414         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27415         * tests/test-getgroups.c (main): Fix buffer overrun.
27416
27417         getgroups: avoid compilation failure
27418         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27419         * modules/getgroups (Depends-on): Add stdint.
27420
27421 2009-11-13  Jim Meyering  <meyering@redhat.com>
27422
27423         test-getgroups: avoid compilation failure
27424         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27425
27426 2009-11-13  Eric Blake  <ebb9@byu.net>
27427
27428         mgetgroups: new module, taken from coreutils
27429         * modules/mgetgroups: New file.
27430         * lib/mgetgroups.h: Likewise.
27431         * lib/mgetgroups.c (mgetgroups): Likewise.
27432         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27433         * MODULES.html.sh (Users and groups): Mention it.
27434
27435         getgroups: don't expose GETGROUPS_T to user
27436         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27437         an element at a time if GETGROUPS_T is wrong size.
27438         * lib/getugroups.h (getugroups): Change signature.
27439         * lib/unistd.in.h (getgroups): Likewise.
27440         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27441         signature needs fixing.
27442         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27443         AC_TYPE_GETGROUPS.
27444         * modules/group-member (Depends-on): Add getgroups.
27445         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27446         (group_member): Rely on getgroups replacement.
27447         * lib/getugroups.c (getugroups): Use gid_t.
27448         * tests/test-getgroups.c (main): Likewise.
27449         * NEWS: Mention the signature change.
27450         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27451         problem with signature.
27452         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27453         GETGROUPS_T is still useful for setgroups.
27454
27455         getgroups, getugroups: provide stubs for mingw
27456         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27457         * lib/getugroups.c (getugroups): Likewise.
27458         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27459         function.  Modernize replacement scheme.
27460         (gl_PREREQ_GETGROUPS): Delete.
27461         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27462         * modules/getgroups (configure.ac): Declare witness.
27463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27464         * modules/unistd (Depends-on): Substitute witness.
27465         * lib/unistd.in.h (getgroups): Declare replacement.
27466
27467         getgroups: avoid calling exit
27468         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27469         drop xalloc.
27470         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27471         dependencies.
27472         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27473         exiting, in the rare case of malloc failure.
27474
27475         getgroups: fix logic error
27476         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27477         has more than 20 groups.
27478         * modules/getgroups-tests: New test.
27479         * tests/test-getgroups.c: New file.
27480
27481 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27482
27483         * tests/test-base64.c: Improve.
27484
27485 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27486
27487         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27488         Blake <ebb9@byu.net>.
27489
27490 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27491
27492         * tests/test-xvasprintf.c: Add %s%s related checks.
27493
27494 2009-11-12  Eric Blake  <ebb9@byu.net>
27495
27496         version-etc: match standards.texi style
27497         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27498         and use <> only for URLs.
27499
27500 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27501
27502         fts: do not fail on a submount during traversal
27503         * lib/fts.c (fts_build): Read the stat info again after opening
27504         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27505         Original report at http://bugzilla.redhat.com/501848.
27506
27507 2009-11-12  Jim Meyering  <meyering@redhat.com>
27508
27509         bootstrap: sync from coreutils
27510         * build-aux/bootstrap (bootstrap_epilogue): New function.
27511         Use git_modules_config in one more place.  This make bootstrap's
27512         --gnulib-srcdir option more useful for testing.
27513
27514         bootstrap: generalize autoheader check
27515         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27516         AC_CONFIG_HEADERS.
27517
27518 2009-11-11  Eric Blake  <ebb9@byu.net>
27519
27520         mkfifoat: use new modules for Solaris and BSD bugs
27521         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27522         * lib/mkfifoat.c (mknodat): Split...
27523         * lib/mknodat.c (mknodat): ...into new file.
27524         * modules/mkfifoat (Files): Ship new file.
27525         (Depends-on): Add mkfifo, mknod.
27526         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27527         (Depends-on): Add symlink.
27528         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27529         redundant with test_mkfifo.h.
27530         (do_mkfifoat, do_mknodat): New helpers.
27531
27532         mknod: new module
27533         * modules/mknod: New file.
27534         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27535         * lib/mknod.c (mknod): Likewise.
27536         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27537         defaults.
27538         * modules/sys_stat (Makefile.am): Substitute them.
27539         * lib/sys_stat.in.h (mknod): Declare replacement.
27540         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27541         Document it.
27542         * doc/posix-functions/mknod.texi (mknod): Likewise.
27543         * modules/mknod-tests: New test.
27544         * tests/test-mknod.c: Likewise.
27545
27546         mkfifo: new module
27547         * modules/mkfifo: New file.
27548         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27549         * lib/mkfifo.c (mkfifo): Likewise.
27550         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27551         defaults.
27552         * modules/sys_stat (Makefile.am): Substitute them.
27553         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27554         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27555         Document it.
27556         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27557         * modules/mkfifo-tests: New test.
27558         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27559         from test-mkfifoat.c.
27560         * tests/test-mkfifo.c: New file.
27561
27562         readlink: detect FreeBSD bug
27563         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27564         slash on symlink.
27565         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27566         * tests/test-readlink.h (test_readlink): Enhance test.
27567
27568         symlink: detect FreeBSD bug
27569         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27570         slash on symlink.
27571         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27572         * tests/test-symlink.h (test_symlink): Enhance test.
27573
27574 2009-11-10  Eric Blake  <ebb9@byu.net>
27575
27576         link: detect FreeBSD bug
27577         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27578         symlink.
27579         * doc/posix-functions/link.texi (link): Document the bug.
27580         * tests/test-link.h (test_link): Enhance test.
27581         * tests/test-linkat.c (main): Update caller.
27582
27583         unlink, remove: detect FreeBSD bug
27584         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27585         slash on symlink.
27586         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27587         * doc/posix-functions/remove.texi (remove): Likewise.
27588         * tests/test-unlink.h (test_unlink): Enhance test.
27589         * tests/test-remove.c (main): Likewise.
27590
27591 2009-11-09  Eric Blake  <ebb9@byu.net>
27592
27593         rename: detect FreeBSD bug
27594         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27595         slash on symlink.
27596         * modules/renameat-tests (Depends-on): Add filenamecat.
27597         * tests/test-rename.h (test_rename): Allow one more errno.
27598         * tests/test-renameat.c (main): Likewise.
27599         * doc/posix-functions/rename.texi (rename): Document the bug.
27600
27601         open: detect FreeBSD bug
27602         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27603         symlink.
27604         * doc/posix-functions/open.texi (open): Document the bug.
27605         * doc/posix-functions/utimes.texi (utimes): Likewise.
27606         * tests/test-open.h (test_open): Add parameters, and test symlink
27607         handling.
27608         * tests/test-open.c (main): Adjust caller.
27609         * tests/test-fcntl-safer.c (main): Likewise.
27610         * modules/open-tests (Depends-on): Add stdbool, symlink.
27611         * modules/fcntl-safer-tests (Depends-on): Likewise.
27612         * tests/test-openat.c (main): Add test-open tests.
27613
27614         stat: detect FreeBSD bug
27615         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27616         symlink.
27617         * doc/posix-functions/stat.texi (stat): Document the bug.
27618         * tests/test-stat.h (test_stat_func): Add argument.
27619         * tests/test-stat.c (main): Adjust caller.
27620         * tests/test-fstatat.c (main): Likewise.
27621         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27622         Reported by Jim Meyering.
27623
27624 2009-11-09  James Youngman  <jay@gnu.org>
27625
27626         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27627         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27628
27629 2009-11-08  Jim Meyering  <meyering@redhat.com>
27630
27631         utimens: remove invalid futimesat call
27632         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27633         It used the file descriptor of the target file as the DIR_FD
27634         parameter and NULL as the file name.  That caused failure with
27635         errno == EFAULT on FreeBSD-8.0-rc2
27636
27637 2009-11-07  Eric Blake  <ebb9@byu.net>
27638
27639         fflush, freadseek: use fseeko, not fseek
27640         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27641         (clear_ungetc_buffer): Avoid potential problems on large files.
27642         * lib/freadseek.c (freadseek): Likewise.
27643         * modules/freadseek (Depends-on): Add fseeko.
27644         * modules/fseek (configure.ac): Set a witness.
27645         * tests/test-fflush.c (main): Use fseeko.
27646         * tests/test-fpurge.c (fseek): Disable link warning.
27647         * tests/test-freadable.c (fseek): Likewise.
27648         * tests/test-freading.c (fseek): Likewise.
27649         * tests/test-fseeko.c (fseek): Likewise.
27650         * tests/test-ftell.c (fseek): Likewise.
27651         * tests/test-ftello.c (fseek): Likewise.
27652         * tests/test-fwritable.c (fseek): Likewise.
27653         * tests/test-fwriting.c (fseek): Likewise.
27654
27655 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27656
27657         * modules/memchr (Depends-on): Drop getpagesize dependency.
27658
27659 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27660
27661         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27662         Reported by Ludovic Courtès.
27663         * build-aux/pmccabe2html: Improve example usage.
27664         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27665
27666 2009-11-06  Jim Meyering  <meyering@redhat.com>
27667
27668         do-release-commit-and-tag: New module.
27669         Automate the release-commit and tag process.
27670         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27671         * modules/do-release-commit-and-tag: New file.
27672         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27673
27674 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27675
27676         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27677         because test-select.c uses inet_pton.
27678
27679 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27680
27681         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27682         GETADDRINFO_LIB.  Bump serial number.
27683         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27684         Suggested by Eric Blake <ebb9@byu.net>.
27685
27686 2009-11-05  Eric Blake  <ebb9@byu.net>
27687
27688         strtod: detect darwin bug
27689         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27690         Reported by Leo Davis.
27691
27692         freopen-safer: new module
27693         * modules/freopen-safer: New module.
27694         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27695         * lib/freopen-safer.c (freopen_safer): New file.
27696         * lib/stdio-safer.h (freopen_safer): New declaration.
27697         * lib/stdio--.h (freopen): New override.
27698         * MODULES.html.sh (File stream based Input/Output): Mention it.
27699         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27700         freopen-safer module.
27701         * doc/posix-functions/stderr.texi (stderr): Likewise.
27702         * doc/posix-functions/stdin.texi (stdin): Likewise.
27703         * doc/posix-functions/stdout.texi (stdout): Likewise.
27704         * modules/freopen-safer-tests: New test.
27705         * tests/test-reopen-safer.c: New file.
27706
27707 2009-11-05  Jim Meyering  <meyering@redhat.com>
27708
27709         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27710         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27711
27712 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27713
27714         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27715
27716 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27717
27718         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27719
27720 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27721
27722         Fix link error.
27723         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27724         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27725
27726 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27727
27728         * tests/test-func.c: Also test value of __func__.
27729
27730 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27731
27732         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27733         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27734
27735 2009-11-05  Bruno Haible  <bruno@clisp.org>
27736
27737         Fix link error.
27738         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27739         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27740         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27741
27742 2009-11-05  Bruno Haible  <bruno@clisp.org>
27743
27744         Tests for module 'inet_pton'.
27745         * modules/inet_pton-tests: New file.
27746         * tests/test-inet_pton.c: New file.
27747
27748 2009-11-05  Bruno Haible  <bruno@clisp.org>
27749
27750         Tests for module 'inet_ntop'.
27751         * modules/inet_ntop-tests: New file.
27752         * tests/test-inet_ntop.c: New file.
27753
27754 2009-11-04  Eric Blake  <ebb9@byu.net>
27755
27756         stdlib-safer: wrap all mkstemp variants
27757         * modules/mkostemp (configure.ac): Set witness.
27758         * modules/mkostemps (configure.ac): Likewise.
27759         * modules/mkstemps (configure.ac): Likewise.
27760         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27761         (mkstemps_safer): Wrap more functions.
27762         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27763         wrapping.
27764         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27765         (mkstemps_safer): Implement the wrappers.
27766
27767         mkstemps, mkostemps: new modules
27768         * modules/mkostemps: New module.
27769         * modules/mkstemps: Likewise.
27770         * lib/mkostemps.c (mkostemps): New file.
27771         * lib/mkstemps.c (mkstemps): Likewise.
27772         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27773         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27775         * modules/stdlib (Makefile.am): Substitute them.
27776         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27777         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27778         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27779         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27780         * MODULES.html.sh (File system functions): Mention them.
27781
27782         tempname: resync from glibc
27783         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27784         same values for __GT_FILE as glibc.  Abort even when assertions
27785         are disabled.
27786         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27787         match its value otherwise.  Allow idempotent inclusion.
27788         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27789         * lib/mkostemp.c (mkostemp): Likewise.
27790         * lib/mkstemp.c (mkstemp): Likewise.
27791         * lib/tmpfile.c (tmpfile): Likewise.
27792         * NEWS: Document this.
27793
27794         utimens: fix use of futimens on older Linux
27795         * lib/utimens.c (fdutimens): Use updated, rather than original,
27796         timespec to avoid bug in older Linux kernel.
27797         Reported by Simon Josefsson.
27798
27799 2009-11-04  Bruno Haible  <bruno@clisp.org>
27800
27801         Make num_processors more flexible and consistent.
27802         * lib/nproc.h (enum nproc_query): New type.
27803         (num_processors): Add a 'query' argument.
27804         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27805         (num_processors): Add a 'query' argument. Test the value of the
27806         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27807         mingw, count the number of CPUs available for the current process.
27808         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27809         Check for sched_getaffinity and sched_getaffinity_np.
27810         * modules/nproc (Depends-on): Add c-ctype, extensions.
27811         * NEWS: Mention the change.
27812
27813 2009-11-03  Bruno Haible  <bruno@clisp.org>
27814
27815         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27816
27817 2009-11-03  Jim Meyering  <meyering@redhat.com>
27818
27819         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27820         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27821         if it is defined.
27822
27823 2009-11-02  Eric Blake  <ebb9@byu.net>
27824
27825         mktime, timegm: share common declaration
27826         * lib/mktime-internal.h: New file.
27827         * lib/mktime.c: Use it rather than open-coding a declaration.
27828         * lib/timegm.c: Likewise.
27829         * modules/mktime (Files): Ship it.
27830         * modules/timegm (Files): Likewise.
27831         Suggested by Bruno Haible.
27832
27833         test-update-copyright: update test to match script changes
27834         * tests/test-update-copyright.sh: Avoid hard-coding perl
27835         location.  Don't update *.bak created by earlier runs.
27836
27837 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27838             Simon Josefsson  <simon@josefsson.org>
27839             Bruno Haible  <bruno@clisp.org>
27840
27841         Fix link error on Solaris 8.
27842         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27843         also in libnsl. Define also INET_PTON_LIB.
27844         * modules/inet_pton (Link): New section.
27845
27846 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27847             Bruno Haible  <bruno@clisp.org>
27848
27849         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27850         * modules/inet_ntop (Link): New section.
27851         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27852
27853 2009-11-02  Eric Blake  <ebb9@byu.net>
27854
27855         maint: avoid compiler warnings in m4 macros
27856         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27857         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27858
27859 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27860
27861         * m4/pmccabe2html.m4: Remove file.
27862         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27863         function.  Change maintainer.
27864         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27865         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27866         Courtès).
27867
27868 2009-10-31  Eric Blake  <ebb9@byu.net>
27869
27870         fseeko: fix m4 regression
27871         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27872         regression from 2009-10-27.
27873         Reported by Ralf Wildenhues.
27874
27875 2009-10-31  Jim Meyering  <meyering@redhat.com>
27876
27877         inttostr: aesthetics and improved (compile-time) safety
27878         Define inttype_is_signed rather than inttype_is_unsigned,
27879         since the sole use is via "#if inttype_is_signed".
27880         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27881         inttype_is_unsigned.
27882         * lib/offtostr.c (inttype_is_signed): Likewise.
27883         * lib/uinttostr.c (inttype_is_signed): Likewise.
27884         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27885         * lib/inttostr.c (inttostr): Use verify to cross-check the
27886         inttype_is_signed value and the signedness of the actual type.
27887         * modules/inttostr (Depends-on): Add verify.
27888
27889 2009-10-30  Eric Blake  <ebb9@byu.net>
27890
27891         build: avoid compiler warnings
27892         * lib/fchmodat.c (lchmod): Mark unused variables.
27893         * lib/getopt.c (_getopt_initialize): Likewise.
27894         * lib/mktime.c (__mktime_internal): Provide prototype.
27895         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27896         older gcc that do not understand #pragma GCC diagnostic.
27897         * lib/uinttostr.c (inttype_is_unsigned): Define.
27898         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27899
27900 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27901
27902         stat: fix compilation on AIX
27903         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27904         only see struct stat64.
27905
27906 2009-10-30  Eric Blake  <ebb9@byu.net>
27907
27908         exclude: make more robust
27909         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27910         rather than masking a coding bug.
27911         Suggested by Bruno Haible.
27912
27913 2009-10-30  Jim Meyering  <meyering@redhat.com>
27914
27915         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27916         Rather than putting #!/usr/bin/perl on the first line,
27917         start with a variant of what's recommended by "man perlrun" that
27918         invokes the first "perl" program from your shell's search path.
27919         * build-aux/gitlog-to-changelog: Replace #!... as above.
27920         Add a "Local Variables" perl mode setting.
27921         Prompted by a patch from Ludovic Courtès.
27922         Improved by Eric Blake.
27923         * build-aux/useless-if-before-free: Likewise.
27924         * build-aux/announce-gen: Likewise.
27925         * build-aux/update-copyright: Likewise.
27926
27927 2009-10-29  Eric Blake  <ebb9@byu.net>
27928
27929         filenamecat-lgpl: adjust clients
27930         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27931         filenamecat.
27932         * modules/renameat (Depends-on): Likewise.
27933
27934         filenamecat: split into filenamecat-lgpl
27935         * modules/filenamecat-lgpl: New module.
27936         * modules/filenamecat (Files): Move library-safe files into
27937         filenamecat-lgpl.
27938         (Depends-on): Add filenamecat-lgpl.
27939         (configure.ac): Declare witness.
27940         * lib/filenamecat.h (file_name_concat): Only declare when using
27941         GPL module.
27942         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27943         Move...
27944         * lib/filenamecat-lgpl.c: ...into new file.
27945         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27946         (gl_FILE_NAME_CONCAT): Use it.
27947         * MODULES.html.sh (File system functions): Mention new module.
27948
27949         argp: avoid memory leak
27950         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27951         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27952         base_name, since the latter malloc()s and can call exit().
27953         Leak introduced 2006-07-03.
27954
27955         dirname-lgpl: adjust clients that don't need full dirname
27956         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27957         * modules/filenamecat (Depends-on): Likewise.
27958         * modules/linkat (Depends-on): Likewise.
27959         * modules/mkancesdirs (Depends-on): Likewise.
27960         * modules/mkdir (Depends-on): Likewise.
27961         * modules/openat (Depends-on): Likewise.
27962         * modules/savewd (Depends-on): Likewise.
27963         * modules/rename (Depends-on): Likewise.
27964         (License): Relax license.
27965         * modules/mkdir-tests (Depends-on): Drop progname.
27966         (Makefile.am): Delete unneeded LDADD.
27967         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27968
27969         dirname: split into dirname-lgpl
27970         * modules/dirname-lgpl: New module.
27971         * modules/dirname (Files): Move library-safe files into
27972         dirname-lgpl.
27973         (Depends-on): Add dirname-lgpl.
27974         (configure.ac): Declare witness.
27975         * modules/double-slash-root (License): Relax license.
27976         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27977         module.
27978         * lib/dirname.c (dir_len, mdir_name): Move...
27979         * lib/dirname-lgpl.c: ...into new file.
27980         * lib/basename.c (last_component, base_len): Move...
27981         * lib/basename-lgpl.c: ...into new file.
27982         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27983         (gl_DIRNAME): Use it.
27984         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27985         Mention new module.
27986         * modules/dirname-tests (Depends-on): Add progname.
27987         * tests/test-dirname.c (program_name): Delete.
27988
27989         mkdir: make safe for libraries
27990         * modules/mkdir (Depends-on): Drop xalloc.
27991         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27992         exit.
27993
27994         tests: avoid some compiler warnings
27995         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27996         literals.
27997         * tests/test-memchr.c (main): Avoid type mismatch.
27998         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27999         * tests/test-base64.c (main): Likewise.
28000         * tests/test-getdelim.c (main): Likewise.
28001         * tests/test-gethostname.c (main): Likewise.
28002         * tests/test-getline.c (main): Likewise.
28003         * tests/test-netinet_in.c (main): Likewise.
28004         * tests/test-select.c (open_server_socket, main): Likewise.
28005         * tests/test-select-stdin.c (main): Likewise.
28006         * tests/test-sockets.c (main): Likewise.
28007         * tests/test-strsignal.c (main): Likewise.
28008         * tests/test-sys_select.c (main): Likewise.
28009         * tests/test-sys_socket.c (main): Likewise.
28010         * tests/test-u64.c (main): Likewise.
28011         * tests/test-xfprintf-posix.c (main): Likewise.
28012         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28013
28014         sockets: avoid compiler warning
28015         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28016
28017         maint: detect usage(1) and other suspicious exits
28018         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28019
28020 2009-10-29  Jim Meyering  <meyering@redhat.com>
28021
28022         timespec: long-to-int truncation could make timespec_cmp malfunction
28023         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28024         a multiple of 2^32 nanoseconds as no difference.
28025
28026 2009-10-28  Jim Meyering  <meyering@redhat.com>
28027
28028         fprintftime: wrap macro code argument in "do {...} while(0)"
28029         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28030         cpy macro must be a statement that can be followed by a semicolon.
28031         Now that the else clause contains a comment and is hence longer
28032         than one line, I require curly braces.  That in turn requires
28033         that we wrap this code block in the standard do...while(0).
28034
28035         fprintftime: remove stray semicolon from previous change
28036         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28037
28038         fprintftime: avoid a warning about ignored fwrite return value
28039         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28040         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28041         that is unsafe.
28042         * modules/fprintftime (Depends-on): Add ignore-value.
28043
28044         exclude: avoid an unwarranted warning
28045         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28046
28047 2009-10-27  Eric Blake  <ebb9@byu.net>
28048
28049         fseek: avoid compilation failure when fflush is replaced
28050         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28051         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28052         module is in use.
28053         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28054         module is not in use; since REPLACE_FSEEK worked otherwise.
28055         (GNULIB_FTELLO): Likewise for ftell.
28056         Reported by Ian Beckwith and others.
28057
28058 2009-10-27  Bruno Haible  <bruno@clisp.org>
28059
28060         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28061         Reported by Jim Meyering.
28062
28063 2009-10-27  Jim Meyering  <jim@meyering.net>
28064             Bruno Haible  <bruno@clisp.org>
28065
28066         Avoid warning despite dropping the return value of fwrite.
28067         * lib/unicodeio.c: Include ignore-value.h.
28068         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28069         * modules/unicodeio (Depends-on): Add ignore-value.
28070
28071 2009-10-26  Eric Blake  <ebb9@byu.net>
28072
28073         areadlinkat: fix fallback path
28074         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28075         pointer and zero.
28076
28077 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28078
28079         Use a better IO block size for modern systems
28080         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28081         * lib/md2.c: Likewise.
28082         * lib/md4.c: Likewise.
28083         * lib/md5.c: Likewise.
28084         * lib/sha1.c: Likewise.
28085         * lib/sha256.c: Likewise.
28086         * lib/sha512.c: Likewise.
28087
28088 2009-10-22  Eric Blake  <ebb9@byu.net>
28089
28090         tests: avoid several compiler warnings
28091         * tests/test-getcwd.c (main): Avoid buffer underflow.
28092         * tests/test-getdate.c (main): String literals are not safe with
28093         putenv, so use setenv.  Declare unused argument.
28094         * modules/getdate-tests (Depends-on): Add setenv.
28095         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28096         problems with string literals in char *.
28097         * tests/test-hash.c (main): Avoid shadowing declaration.
28098         (insert_new): Treat string literals as char const *.
28099         * tests/test-getopt.h (test_getopt): Likewise.
28100         (getopt_loop): Alter types to minimize casting elsewhere.
28101         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28102         (test_getopt_long_posix): Likewise.
28103         (do_getopt_long): Add wrapper to minimize casting.
28104         * tests/test-atexit.c (clear_temp_file): Use void.
28105         * tests/test-areadlink-with-size.c (main): Declare unused
28106         arguments.
28107         * tests/test-areadlink.c (main): Likewise.
28108         * tests/test-areadlinkat-with-size.c (main): Likewise.
28109         * tests/test-areadlinkat.c (main): Likewise.
28110         * tests/test-canonicalize-lgpl.c (main): Likewise.
28111         * tests/test-canonicalize.c (main): Likewise.
28112         * tests/test-dirent-safer.c (main): Likewise.
28113         * tests/test-dirname.c (main): Likewise.
28114         * tests/test-dup2.c (main): Likewise.
28115         * tests/test-fchdir.c (main): Likewise.
28116         * tests/test-fcntl-h.c (main): Likewise.
28117         * tests/test-fcntl-safer.c (main): Likewise.
28118         * tests/test-fdopendir.c (main): Likewise.
28119         * tests/test-fdutimensat.c (main): Likewise.
28120         * tests/test-fflush.c (main): Likewise.
28121         * tests/test-filenamecat.c (main): Likewise.
28122         * tests/test-filevercmp.c (main): Likewise.
28123         * tests/test-fopen-safer.c (main): Likewise.
28124         * tests/test-fopen.c (main): Likewise.
28125         * tests/test-fpending.c (main): Likewise.
28126         * tests/test-fpurge.c (main): Likewise.
28127         * tests/test-freading.c (main): Likewise.
28128         * tests/test-fstatat.c (main): Likewise.
28129         * tests/test-fsync.c (main): Likewise.
28130         * tests/test-futimens.c (main): Likewise.
28131         * tests/test-getndelim2.c (main): Likewise.
28132         * tests/test-gettimeofday.c (main): Likewise.
28133         * tests/test-getopt.c (main): Likewise.
28134         * tests/test-i-ring.c (main): Likewise.
28135         * tests/test-inttypes.c (main): Likewise.
28136         * tests/test-link.c (main): Likewise.
28137         * tests/test-lstat.c (main): Likewise.
28138         * tests/test-math.c (main): Likewise.
28139         * tests/test-md5.c (main): Likewise.
28140         * tests/test-memchr2.c (main): Likewise.
28141         * tests/test-memrchr.c (main): Likewise.
28142         * tests/test-mkdir.c (main): Likewise.
28143         * tests/test-mkdirat.c (main): Likewise.
28144         * tests/test-mkfifoat.c (main): Likewise.
28145         * tests/test-open.c (main): Likewise.
28146         * tests/test-openat-safer.c (main): Likewise.
28147         * tests/test-openat.c (main): Likewise.
28148         * tests/test-quotearg.c (main): Likewise.
28149         * tests/test-rawmemchr.c (main): Likewise.
28150         * tests/test-readlink.c (main): Likewise.
28151         * tests/test-remove.c (main): Likewise.
28152         * tests/test-rename.c (main): Likewise.
28153         * tests/test-renameat.c (main): Likewise.
28154         * tests/test-rmdir.c (main): Likewise.
28155         * tests/test-sha1.c (main): Likewise.
28156         * tests/test-signal.c (main): Likewise.
28157         * tests/test-sigaction.c (main): Likewise.
28158         * tests/test-stat.c (main): Likewise.
28159         * tests/test-stat-time.c (main): Likewise.
28160         * tests/test-stddef.c (main): Likewise.
28161         * tests/test-stdint.c (main): Likewise.
28162         * tests/test-stdio.c (main): Likewise.
28163         * tests/test-stdlib.c (main): Likewise.
28164         * tests/test-strchrnul.c (main): Likewise.
28165         * tests/test-strerror.c (main): Likewise.
28166         * tests/test-string.c (main): Likewise.
28167         * tests/test-strtod.c (main): Likewise.
28168         * tests/test-strverscmp.c (main): Likewise.
28169         * tests/test-symlink.c (main): Likewise.
28170         * tests/test-symlinkat.c (main): Likewise.
28171         * tests/test-sys_stat.c (main): Likewise.
28172         * tests/test-sys_time.c (main): Likewise.
28173         * tests/test-time.c (main): Likewise.
28174         * tests/test-unistd.c (main): Likewise.
28175         * tests/test-unlink.c (main): Likewise.
28176         * tests/test-unlinkat.c (main): Likewise.
28177         * tests/test-utimens.c (main): Likewise.
28178         * tests/test-utimensat.c (main): Likewise.
28179         * tests/test-version-etc.c (main): Likewise.
28180         * tests/test-wchar.c (main): Likewise.
28181         * tests/test-wctype.c (main): Likewise.
28182         * tests/test-xprintf-posix.c (main): Likewise.
28183         * tests/test-posixtm.c (main): Likewise.
28184         (STREQ): Delete unused macro.
28185         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28186         shadowed variables.
28187         * tests/test-memchr.c (main): Likewise.
28188
28189 2009-10-21  Eric Blake  <ebb9@byu.net>
28190
28191         areadlinkat: avoid failure on older glibc
28192         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28193         rather than mis-comparing 0 against FUNC_RESULT of char*.
28194
28195 2009-10-21  Bruno Haible  <bruno@clisp.org>
28196
28197         * modules/stpncpy (License): Relicense under LGPLv2+.
28198         Reported by David Lutterkort <lutter@redhat.com>.
28199
28200 2009-10-20  Eric Blake  <ebb9@byu.net>
28201
28202         utimensat: work around Solaris 9 bug
28203         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28204         has trailing slash bugs.
28205         * tests/test-lutimens.h (test_lutimens): Enhance test.
28206         * tests/test-utimens.h (test_utimens): Likewise.
28207         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28208         * doc/posix-functions/utimes.texi (utimes): Likewise.
28209         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28210         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28211         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28212         * doc/posix-functions/futimens.texi (futimens): Likewise.
28213
28214         fdutimensat: new module
28215         * modules/fdutimensat: New file.
28216         * lib/fdutimensat.c (fdutimensat): Likewise.
28217         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28218         * MODULES.html.sh (File system functions): Mention module.
28219         * modules/fdutimensat-tests: New test.
28220         * tests/test-fdutimensat.c: Likewise.
28221
28222         doc: regenerate INSTALL
28223         * doc/INSTALL: Reflect recent autoconf update.
28224         * doc/INSTALL.ISO: Likewise.
28225         * doc/INSTALL.UTF-8: Likewise.
28226
28227 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28228
28229         acl: warn if ACL support is not detected
28230         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28231
28232 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28233
28234         * lib/nproc.h: Add extern "C" block for C++.
28235
28236 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28237             Bruno Haible  <bruno@clisp.org>
28238
28239         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28240         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28241         * doc/posix-functions/isalpha.texi: Likewise.
28242         * doc/posix-functions/isblank.texi: Likewise.
28243         * doc/posix-functions/iscntrl.texi: Likewise.
28244         * doc/posix-functions/isdigit.texi: Likewise.
28245         * doc/posix-functions/isgraph.texi: Likewise.
28246         * doc/posix-functions/islower.texi: Likewise.
28247         * doc/posix-functions/isprint.texi: Likewise.
28248         * doc/posix-functions/ispunct.texi: Likewise.
28249         * doc/posix-functions/isspace.texi: Likewise.
28250         * doc/posix-functions/isupper.texi: Likewise.
28251         * doc/posix-functions/isxdigit.texi: Likewise.
28252
28253 2009-10-18  Bruno Haible  <bruno@clisp.org>
28254
28255         Tests for module 'isblank'.
28256         * modules/isblank-tests: New file.
28257         * tests/test-isblank.c: New file.
28258
28259         New module 'isblank'.
28260         * lib/isblank.c: New file.
28261         * m4/isblank.m4: New file.
28262         * modules/isblank: New file.
28263         * doc/posix-functions/isblank.texi: Mention the new module.
28264
28265 2009-10-18  Bruno Haible  <bruno@clisp.org>
28266
28267         New module 'ctype'.
28268         * lib/ctype.in.h: New file.
28269         * m4/ctype.m4: New file.
28270         * modules/ctype: New file.
28271         * doc/posix-headers/ctype.texi: Mention the new module.
28272
28273 2009-10-18  Jim Meyering  <meyering@redhat.com>
28274
28275         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28276         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28277         right after its initialization, rather than farther down.
28278         Keeping these in close proximity makes it easier to ensure
28279         that each such variable is initialized.  E.g.,
28280
28281             LIB_CLOCK_GETTIME=
28282             AC_SUBST([LIB_CLOCK_GETTIME])
28283
28284         This change also increments these serial numbers.
28285         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28286         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28288
28289 2009-10-18  Bruno Haible  <bruno@clisp.org>
28290
28291         Don't let environment variables perturb build.
28292         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28293         (gl_PREREQ_GETHRXTIME): ... not here.
28294
28295 2009-10-18  Bruno Haible  <bruno@clisp.org>
28296
28297         Avoid symlink attack in localcharset module.
28298         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28299         (O_NOFOLLOW): Define fallback.
28300         (get_charset_aliases): Don't open the file if it is a symbolic link.
28301         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28302         gl_FCNTL_H.
28303         (gl_FCNTL_H): Require it.
28304         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28305         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28306         Reported by Fergal Glynn <fglynn@veracode.com>.
28307
28308 2009-10-18  Bruno Haible  <bruno@clisp.org>
28309
28310         Implement nproc for mingw.
28311         * lib/nproc.c: Include <windows.h>
28312         (num_processors): On native Windows platforms, try GetSystemInfo.
28313
28314 2009-10-18  Bruno Haible  <bruno@clisp.org>
28315
28316         Implement nproc for IRIX.
28317         * lib/nproc.c: Include <sys/sysmp.h>.
28318         (num_processors): On IRIX systems, try sysmp.
28319         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28320
28321 2009-10-18  Bruno Haible  <bruno@clisp.org>
28322
28323         Implement nproc for HP-UX.
28324         * lib/nproc.c: Include <sys/pstat.h>
28325         (num_processors): On HP-UX systems, try pstat_getdynamic.
28326         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28327         pstat_getdynamic.
28328
28329 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28330             Bruno Haible  <bruno@clisp.org>
28331
28332         Implement nproc for NetBSD, OpenBSD.
28333         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28334         (ARRAY_SIZE): New macro.
28335         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28336         * m4/nproc.m4: New file.
28337         * modules/nproc (Files): Add m4/nproc.m4.
28338         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28339         (Makefile.am): Instead, augment lib_SOURCES.
28340
28341 2009-10-18  Bruno Haible  <bruno@clisp.org>
28342
28343         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28344         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28345         sys/param.h.
28346
28347 2009-10-16  Eric Blake  <ebb9@byu.net>
28348
28349         utimensat: new module
28350         * modules/utimensat: New file.
28351         * lib/utimensat.c (utimensat): Likewise.
28352         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28353         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28354         so we can work around Linux bugs.
28355         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28356         * modules/sys_stat (Makefile.am): Substitute them.
28357         * lib/sys_stat.in.h (utimensat): Declare it.
28358         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28359         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28360         * modules/utimensat-tests: New test.
28361         * tests/test-utimensat.c: Likewise.
28362
28363         utimens: let lutimens work on non-symlinks
28364         * lib/utimens.c (lutimens): Fall back to utimens rather than
28365         failing with ENOSYS, when file is not a symlink.
28366         (utimens): Reduce redirection.
28367         * tests/test-lutimens.h (test_lutimens): Update test to cover
28368         non-symlinks.
28369         * tests/test-utimens.h (test_utimens): Update test to cover
28370         symlinks.
28371         * tests/test-utimens.c (main): Update caller.
28372
28373         utimens: cache whether utimensat syscall works
28374         * lib/utimens.c (utimensat_works_really): New cache variable.
28375         (fdutimens, lutimens): Use it to avoid failing syscall.
28376
28377         test-stat-time, test-utimens: improve portability
28378         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28379         ext4 on alpha, and for cygwin.
28380         * tests/test-utimens-common.h: New file.
28381         (nap): Factor delays into single function.
28382         * tests/test-lutimens.h (test_lutimens): Use new header.
28383         * tests/test-futimens.h (test_futimens): Likewise.
28384         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28385         timestamps to occur from same machine, as was done previously for
28386         test_utimens.
28387         * modules/utimens-tests (Files): Ship new file.
28388         * modules/futimens-tests (Files): Likewise.
28389         Reported in part by Jim Meyering.
28390
28391         sys_stat: sort replacement declarations
28392         * lib/sys_stat.in.h: Sort declarations.
28393         * lib/futimens.c (futimens): Fix typo.
28394
28395 2009-10-15  Jim Meyering  <meyering@redhat.com>
28396
28397         don't let environment settings perturb build
28398         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28399         could cause a configure-time and/or build-time malfunction.
28400         Typically, a configure-time function-in-library test is performed
28401         via code like this:
28402
28403           LIB_VAR=
28404           AC_SUBST([LIB_VAR])
28405           prefix_saved_LIBS=$LIBS
28406             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28407                        [test "$ac_cv_search_FUNC" = "none required" ||
28408                         LIB_VAR=$ac_cv_search_FUNC])
28409           LIBS=$prefix_saved_LIBS
28410
28411         However, in each of the files affected by this change, the LIB_VAR=
28412         initialization was omitted.  Thus, when set in the environment, its
28413         value would propagate into generated Makefiles when FUNC is not found
28414         in LIB_NAME.
28415         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28416         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28418
28419 2009-10-14  Eric Blake  <ebb9@byu.net>
28420
28421         fchdir: avoid infinite recursion in mingw
28422         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28423         recursing.
28424
28425         test-stat-time: port to mingw
28426         * tests/test-stat-time.c (force_unlink): Return a value.
28427         (test_ctime) [W32]: Fix compilation error.
28428         (nap): Don't call usleep with too large an argument.  Use
28429         force_unlink.
28430         * doc/pastposix-functions/usleep.texi (usleep): Document the
28431         portability issue.
28432
28433 2009-10-13  Jim Meyering  <meyering@redhat.com>
28434
28435         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28436         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28437         * modules/pipe-filter-ii: Likewise.
28438         * modules/sys_socket-tests: Likewise.
28439         * modules/tsearch-tests: Likewise.
28440         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28441         (check): Depend on it.
28442
28443 2009-10-12  Eric Blake  <ebb9@byu.net>
28444
28445         utimens-tests: port to NFS file systems
28446         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28447         comparisons to avoid spurious failures from timestamp drift
28448         between NFS machines.
28449
28450 2009-10-12  Eric Blake  <ebb9@byu.net>
28451
28452         stat-time-tests: minor cleanups
28453         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28454         * tests/test-stat-time.c (nap): Separate assignment from call.
28455         Suggested by Paolo Bonzini and Bruno Haible.
28456
28457         sys_stat: guarantee struct timespec
28458         * lib/sys_stat.in.h (includes): Always include <time.h>
28459         * modules/sys_stat (Depends-on): Add time.
28460         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28461         mode_t permission values.
28462         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28463         get at subsecond timestamps.
28464
28465 2009-10-10  Eric Blake  <ebb9@byu.net>
28466
28467         futimens: new module
28468         * modules/futimens: New file.
28469         * lib/futimens.c (futimens): Likewise.
28470         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28471         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28472         we can work around Linux bugs.
28473         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28474         * modules/sys_stat (Makefile.am): Substitute them.
28475         * lib/sys_stat.in.h (futimens): Declare it.
28476         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28477         * doc/posix-functions/futimens.texi (futimens): Likewise.
28478         * modules/futimens-tests: New test.
28479         * tests/test-futimens.c: Likewise.
28480
28481         utimens: introduce fdutimens
28482         * lib/utimens.h (fdutimens): New prototype.
28483         * lib/utimens.c (gl_futimens): Move guts...
28484         (fdutimens): ...to new interface.
28485         * tests/test-utimens.c (do_fdutimens): Use it.
28486
28487         utimens: add UTIME_NOW and UTIME_OMIT support
28488         * lib/utimens.c (validate_timespec, update_timespec): New helper
28489         functions.
28490         (gl_futimens, lutimens): Use them.
28491         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28492         stdbool, sys_stat.
28493         (Link): Mention resulting library dependency.
28494         * modules/utimecmp (Link): Likewise.
28495         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28496         (Makefile.am): Pick up library dependency.
28497         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28498         definition.
28499         * tests/test-sys_stat.c: Test the definitions.
28500         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28501         * NEWS: Document library dependency.
28502
28503         utimecmp: support symlink timestamps
28504         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28505         hashing when possible.  Use pathconf when available.
28506         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28507         * modules/utimecmp (Depends-on): Add lstat.
28508
28509         utimens: add lutimens interface
28510         * lib/utimens.c (lutimens): New function.
28511         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28512         * lib/utimens.h (lutimens): Declare new interface.
28513         * tests/test-utimens.c (main): Enhance test.
28514         * tests/test-lutimens.h (test_lutimens): New file.
28515         * modules/utimens-tests (Files): Distribute it.
28516         (Depends-on): Add symlink.
28517         (configure.ac): Check for usleep.
28518
28519         utimens: validate futimens usage
28520         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28521         fewer syscalls on failure later on.  Avoid compiler warning on
28522         mingw.
28523         * modules/utimens (Depends-on): Add dup2.
28524
28525         utimens: add test
28526         * modules/utimens-tests: New test.
28527         * tests/test-utimens.h: New file.
28528         * tests/test-futimens.h: Likewise.
28529         * tests/test-utimens.c: Likewise.
28530
28531         doc: mention timestamp portability issues
28532         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28533         instead.
28534         * doc/posix-functions/utime.texi (utime): Likewise.
28535         * doc/posix-functions/utimes.texi (utimes): Likewise.
28536         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28537         instead.
28538         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28539         module.
28540         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28541         Mention weakness with symlink timestamps.
28542         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28543         to utimensat/futimens instead.
28544         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28545
28546         test-dup2: enhance test
28547         * tests/test-dup2.c (main): Also check AT_FDCWD.
28548
28549         test-stat-time: avoid more spurious failures
28550         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28551         xfs; and avoid race if the two timestamps cross quantization edge.
28552
28553         relocatable: prefer 'file system' over 'filesystem'
28554         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28555         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28556         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28557         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28558         * lib/relocatable.c (compute_curr_prefix): Likewise.
28559
28560 2009-10-10  Jim Meyering  <meyering@redhat.com>
28561
28562         stat-time-tests: check for the usleep function
28563         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28564
28565 2009-10-10  Bruno Haible  <bruno@clisp.org>
28566
28567         * modules/xnanosleep: Put the Link section after the Include section.
28568
28569 2009-10-09  Eric Blake  <ebb9@byu.net>
28570
28571         dup2: work around FreeBSD 6.1 bug
28572         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28573         * doc/posix-functions/dup2.texi (dup2): Document it.
28574         Reported by Nelson H. F. Beebe and Jim Meyering.
28575
28576         test-stat-time: port to buggy NFS clients
28577         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28578         (test_ctime): Also skip test if mtime and ctime are skewed.
28579
28580         maint: prefer 'file system' over 'filesystem'
28581         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28582         * doc/posix-functions/lstat.texi (lstat): Likewise.
28583         * lib/file-has-acl.c (file_has_acl): Likewise.
28584         * lib/fwriteerror.c [TEST]: Likewise.
28585         * tests/test-areadlink.h (test_areadlink): Likewise.
28586         * tests/test-areadlinkat-with-size.c (main): Likewise.
28587         * tests/test-areadlinkat.c (main): Likewise.
28588         * tests/test-canonicalize-lgpl.c (main): Likewise.
28589         * tests/test-canonicalize.c (main): Likewise.
28590         * tests/test-fstatat.c (main): Likewise.
28591         * tests/test-linkat.c (main): Likewise.
28592         * tests/test-lstat.h (test_lstat_func): Likewise.
28593         * tests/test-mkdir.h (test_mkdir): Likewise.
28594         * tests/test-readlink.h (test_readlink): Likewise.
28595         * tests/test-remove.c (main): Likewise.
28596         * tests/test-rename.h (test_rename): Likewise.
28597         * tests/test-renameat.c (main): Likewise.
28598         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28599         * tests/test-symlink.h (test_symlink): Likewise.
28600         * tests/test-symlinkat.c (main): Likewise.
28601         * tests/test-unlink.h (test_unlink_func): Likewise.
28602         * tests/test-unlinkat.c (main): Likewise.
28603
28604         maint: make realtime library usage explicit
28605         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28606         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28607         * modules/settime (Link): Likewise.
28608         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28609
28610         test-stat-time: speed up execution
28611         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28612         warning on mingw.
28613         (nap): New helper function.
28614         (prepare_test): Use it to reduce sleep time.
28615         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28616         execution.
28617         * modules/stat-time-tests (configure.ac): Check for usleep.
28618
28619 2009-10-09  Jim Meyering  <meyering@redhat.com>
28620
28621         selinux-h: always use getfilecon wrappers
28622         * lib/getfilecon.c: New file.
28623         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28624         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28625         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28626         (fgetfilecon): Provide a stub.
28627         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28628         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28629         file unconditionally.
28630         When <selinux/selinux.h> is found, arrange to use wrappers.
28631         * modules/selinux-h (Files): Add getfilecon.c.
28632         (Makefile.am): Substitute include-next-related bits
28633         into the now-always-generated selinux/selinux.h file.
28634         * doc/glibc-functions/lgetfilecon.texi: New file.
28635         * doc/glibc-functions/fgetfilecon.texi: New file.
28636         * doc/glibc-functions/getfilecon.texi: New file.
28637         * doc/glibc-functions/getfilecon-desc.texi: New file.
28638         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28639         which to pull in the new files.
28640         * MODULES.html.sh (Misc): Add selinux-h.
28641
28642 2009-10-08  Jim Meyering  <meyering@redhat.com>
28643
28644         unistd: fix comment typo
28645         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28646
28647 2009-10-08  Eric Blake  <ebb9@byu.net>
28648
28649         areadlink: use SIZE_MAX consistently
28650         * modules/areadlink (Depends-on): Add stdint.
28651         * modules/areadlink-with-size (Depends-on): Likewise.
28652         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28653         gives NULL; drop sys/types, since unistd gives size_t; and add
28654         stdint for SIZE_MAX.
28655         (SIZE_MAX): Rely on headers.
28656         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28657         and add stdint.
28658         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28659         (SIZE_MAX): Likewise.
28660         (INITIAL_BUF_SIZE): Turn into enum.
28661         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28662
28663 2009-10-08  Jim Meyering  <meyering@redhat.com>
28664
28665         areadlinkat: avoid compilation failure
28666         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28667         Fix typo in comment.
28668
28669 2009-10-07  Eric Blake  <ebb9@byu.net>
28670
28671         areadlinkat-with-size: new module
28672         * modules/areadlinkat-with-size: New module.
28673         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28674         * lib/areadlink.h (areadlinkat): Declare it.
28675         * MODULES.html.sh (File system functions): Mention it.
28676         * modules/areadlinkat-with-size-tests: New test.
28677         * tests/test-areadlinkat-with-size.c: New file.
28678
28679         xreadlinkat: new module
28680         * modules/xreadlinkat: New module.
28681         * lib/xreadlinkat.c (xreadlinkat): New file.
28682         * lib/xreadlink.h (xreadlinkat): Declare it.
28683         * MODULES.html.sh (File system functions): Mention it.
28684
28685         areadlinkat: new module
28686         * lib/at-func.c (FUNC_FAIL): New define.
28687         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28688         * modules/areadlinkat: New module.
28689         * lib/linkat.c (areadlinkat): Move...
28690         * lib/areadlinkat.c (areadlinkat): ...to new file.
28691         * lib/areadlink.h (areadlinkat): Declare it.
28692         * modules/linkat (Depends-on): Add areadlinkat.
28693         * MODULES.html.sh (File system functions): Mention it.
28694         * modules/areadlinkat-tests: New test.
28695         * tests/test-areadlinkat.c: New file.
28696
28697         areadlink, areadlink-with-size: add tests
28698         * modules/areadlink-tests: New test.
28699         * modules/areadlink-with-size-tests: Likewise.
28700         * tests/test-areadlink.h: New file.
28701         * tests/test-areadlink.c: Likewise.
28702         * tests/test-areadlink-with-size.c: Likewise.
28703
28704         maint: minor cleanups
28705         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28706         _UNUSED_PARAMETER_ instead.
28707         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28708         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28709         * modules/linkat-tests (Files): Distribute test-link.h.
28710
28711         openat, utimens: whitespace cleanup
28712         * lib/openat.c: Prefer space throughout, rather than mix of 8
28713         spaces vs. tabs.
28714         * lib/at-func.c: Likewise.
28715         * lib/utimens.c: Likewise.
28716
28717         openat: avoid using wrong fd
28718         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28719         working directory chooses same fd.
28720         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28721
28722         mkdir, mkdirat: fix cygwin 1.5.x bug
28723         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28724         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28725         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28726         bug.
28727         (gl_PREREQ_MKDIR): Delete unused macro.
28728         * modules/mkdir (Files): Track file rename.
28729         (configure.ac): Update macro name.
28730         * modules/openat (Depends-on): Add mkdir.
28731         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28732
28733         mkdir, mkdirat: add tests
28734         * modules/mkdir-tests: New test.
28735         * tests/test-mkdir.h: New file.
28736         * tests/test-mkdir.c: Likewise.
28737         * tests/test-mkdirat.c: Likewise.
28738         * modules/openat-tests (Files): Add new files.
28739         (Makefile.am): Run new test.
28740
28741 2009-10-06  Eric Blake  <ebb9@byu.net>
28742
28743         doc: tweak *at function documentation
28744         * doc/posix-functions/faccessat.texi (faccessat): Mention
28745         known issue with replacement.
28746         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28747         * doc/posix-functions/linkat.texi (linkat): Likewise.
28748         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28749         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28750         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28751         * doc/posix-functions/renameat.texi (renameat): Likewise.
28752         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28753
28754         openat: fix GNU/Hurd bug in unlinkat
28755         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28756         broken.
28757         * doc/posix-functions/unlink.texi (unlink): Document this.
28758         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28759
28760         fdopendir: fix GNU/Hurd bug
28761         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28762         allowing non-directory fds.
28763         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28764         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28765         * modules/dirent (Makefile.am): Substitute it.
28766         * lib/dirent.in.h (fdopendir): Declare replacement.
28767         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28768         * tests/test-fdopendir.c (main): Test something other than
28769         /dev/null, since on Hurd that behaves like a directory.
28770
28771         test-symlink: port to GNU/Hurd
28772         * tests/test-symlink.h (test_symlink): Relax expected errno.
28773
28774         doc: tweak more cygwin information
28775         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28776         now compatible with glibc.
28777         * doc/posix-functions/getopt.texi (getopt): Likewise.
28778
28779         getopt-gnu: add another test
28780         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28781         guarantee behavior relied on by m4.
28782         * tests/test-getopt.c (main): Use it.
28783         * modules/getopt-posix-tests (Depends-on): Add setenv.
28784         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28785
28786         getopt: fix compilation on darwin
28787         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28788         include.
28789         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28790         Reported by Ludovic Courtès.
28791
28792 2009-10-06  Bruno Haible  <bruno@clisp.org>
28793
28794         * modules/size_max (Description): Discourage its use.
28795         Reported by Simon Josefsson.
28796
28797 2009-10-06  Jim Meyering  <meyering@redhat.com>
28798
28799         linkat: avoid compilation failure
28800         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28801
28802 2009-10-05  Eric Blake  <ebb9@byu.net>
28803
28804         linkat: support Linux 2.6.17
28805         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28806         linkat on Linux, but allow cache variable override.
28807         * lib/linkat.c (rpl_linkat): Define override.
28808         * modules/linkat (Depends-on): Add symlinkat.
28809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28810         * modules/unistd (Makefile.am): Substitute it.
28811         * lib/unistd.in.h (linkat): Declare replacement.
28812         Reported by Pádraig Brady.
28813
28814         quotearg: port test to systems with C.UTF-8 locale
28815         * tests/test-quotearg.c (struct result_strings): Add another
28816         member, differentiating between C.ASCII and C.UTF-8 handling.
28817         (compare_strings): Add parameter.
28818         (main): Adjust all callers.
28819
28820         getopt: avoid clash with FreeBSD _getopt_internal
28821         * lib/getopt.in.h (_getopt_internal): Override the name.
28822         * lib/getopt_int.h (includes): Pick up any overrides.
28823         Reported by Reuben Thomas.
28824
28825         hash: allow C89 compilation
28826         * lib/hash.c (check_tuning): Move declaration before statement.
28827         Reported by Reuben Thomas.
28828
28829 2009-10-05  Karl Berry  <karl@gnu.org>
28830
28831         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28832
28833 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28834             Bruno Haible  <bruno@clisp.org>
28835
28836         * lib/uname.c (uname): Use a table-driven algorithm to compute
28837         Windows NT versions.
28838
28839 2009-10-04  Bruno Haible  <bruno@clisp.org>
28840
28841         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28842         program_invocation_short_name.
28843         * modules/progname (configure.ac): Test for presence of
28844         program_invocation_short_name.
28845         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28846
28847 2009-10-04  Bruno Haible  <bruno@clisp.org>
28848
28849         * lib/progname.c (set_program_name): Fix comment.
28850         Reported by Jim Meyering.
28851
28852 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28853             Bruno Haible  <bruno@clisp.org>
28854
28855         * lib/uname.c: Include <string.h>.
28856         (uname): Do only one call to GetVersionEx in the common case.
28857
28858 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28859             Bruno Haible  <bruno@clisp.org>
28860
28861         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28862         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28863         (uname): Add support for Windows CE and various non-x86 CPU types.
28864
28865 2009-10-03  Bruno Haible  <bruno@clisp.org>
28866
28867         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28868         invocation to tests/configure.ac.
28869         Reported by Ian Beckwith <ianb@erislabs.net>.
28870
28871 2009-10-02  Eric Blake  <ebb9@byu.net>
28872
28873         fchdir: avoid compiler warning
28874         * lib/fchdir.c (canonicalize_file_name)
28875         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28876
28877         test-open: support mingw errno values
28878         * tests/test-open.h (test_open): Relax test.
28879         * tests/test-fopen.h (test_fopen): Likewise.
28880         * tests/test-openat-safer.c (main): Likewise.
28881
28882         open: fix opening directory on mingw
28883         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28884
28885         test-open: on GNU/Hurd, /dev/null is a directory
28886         * tests/test-fopen.h (main): Rename...
28887         (test_fopen): ...to this.  Use a guaranteed non-directory when
28888         confirming open behavior on trailing slash.
28889         * tests/test-openat-safer.c (main): Likewise.
28890         * tests/test-open.h (main): Likewise....
28891         (test_open): ...to this.
28892         * tests/test-fopen.c (main): Adjust caller.
28893         * tests/test-fopen-safer.c (main): Likewise.
28894         * tests/test-open.c (main): Likewise.
28895         * tests/test-fcntl-safer.c (main): Likewise.
28896         Reported by Samuel Thibault.
28897
28898         rename, fchdir: don't ignore chdir failure
28899         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28900         * lib/rename.c (rpl_rename) [W32]: Likewise.
28901         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28902         an empty destination directory if source cannot be renamed,
28903         although there is still possibility for failure.
28904         * doc/posix-functions/rename.texi (rename): Document the race.
28905         Reported by Jim Meyering.
28906
28907         maint: cleanup whitespace in recent commits
28908         * lib/rename.c (rpl_rename): Remove tabs.
28909         * tests/test-link.h (test_link): Likewise.
28910         * lib/fchdir.c (get_name): Likewise.
28911         Reported by Jim Meyering.
28912
28913 2009-10-02  Ben Pfaff  <blp@gnu.org>
28914
28915         relocatable-prog-wrapper: Add missing dependency on
28916         double-slash-root.
28917         * modules/relocatable-prog-wrapper: Add dependency.
28918         Reported by Ian Beckwith <ianb@erislabs.net>.
28919
28920 2009-10-02  Eric Blake  <ebb9@byu.net>
28921
28922         renameat: fix Solaris bugs
28923         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28924         needed fixing.
28925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28926         * modules/stdio (Makefile.am): Substitute it.
28927         * lib/stdio.in.h (renameat): Declare replacement.
28928         * lib/renameat.c (rpl_renameat): Implement fix.
28929
28930         renameat: new module
28931         * modules/renameat: New file.
28932         * lib/renameat.c (renameat): Likewise.
28933         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28935         * modules/stdio (Makefile.am): Substitute them.
28936         * lib/stdio.in.h (renameat): Declare it.
28937         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28938         * doc/posix-functions/renameat.texi (renameat): Likewise.
28939         * modules/renameat-tests: New test.
28940         * tests/test-renameat.c: Likewise.
28941
28942         rename: fix mingw bugs
28943         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28944         directory overwrite bugs.
28945
28946         rename: fix another cygwin 1.5 bug
28947         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28948         checks.
28949         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28950         unnecessary cygwin workarounds.  Also work around bug with moving
28951         full directory onto an empty one.
28952         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28953
28954         rename-dest-slash: merge into rename module
28955         * modules/rename-dest-slash (Status): Mark obsolete.
28956         (Depends-on): Add rename.
28957         (Files): Let rename do it all.
28958         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28959         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28960         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28961         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28962         * lib/rename.c (rpl_rename): Update comments.
28963
28964         rename: fix cygwin 1.5.x bugs
28965         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28966         * lib/rename.c (rpl_rename): Work around them.
28967         * modules/rename (Depends-on): Add same-inode.
28968
28969         rename: fix Solaris 10 bug
28970         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28971         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28972         was the only bug.
28973
28974         rename: fix Solaris 9 bug
28975         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28976         on non-directory.  Avoid calling exit.
28977         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28978         strdup.
28979         * modules/rename-tests (Depends-on): Drop lstat.
28980         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28981         (gl_PREREQ_RENAME): Delete unused macro.
28982
28983         rename-dest-slash: fix NetBSD bug
28984         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28985         links.
28986         * modules/rename-dest-slash (Depends-on): Add same-inode.
28987
28988         rename-tests: new test, exposes several platform bugs
28989         * modules/rename-tests: New file.
28990         * tests/test-rename.h: Likewise.
28991         * tests/test-rename.c: Likewise.
28992         * doc/posix-functions/rename.texi (rename): Improve documentation,
28993         including bugs that will eventually be fixed in gnulib.
28994
28995 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28996
28997         * lib/uname.c: Include <stdlib.h>
28998         (uname): Assume version info is available.
28999
29000 2009-10-02  Jim Meyering  <meyering@redhat.com>
29001
29002         gnu-web-doc-update: correct --help output
29003         * build-aux/gnu-web-doc-update: Make --help output relevant.
29004
29005         gnu-web-doc-update: add standard options
29006         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29007
29008         gnu-web-doc-update: New module.
29009         Use this script to automatically update the on-line web documentation
29010         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29011         * modules/gnu-web-doc-update: New file, from coreutils.
29012         * build-aux/gnu-web-doc-update: New script.
29013
29014 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29015
29016         link: LoadLibrary is not needed.
29017         * lib/link.c: Use GetModuleHandle.
29018
29019 2009-10-01  Eric Blake  <ebb9@byu.net>
29020
29021         getopt: bump serial number
29022         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29023         change.
29024
29025         tests: tighten link, rmdir, and remove tests
29026         * tests/test-link.h (includes): No need to use <config.h> here.
29027         Clean up if directory hard link was created, otherwise test for
29028         trailing '.'.
29029         * tests/test-linkat.c (main): Simplify.
29030         * tests/test-remove.c (main): Enhance test for trailing '.'.
29031         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29032
29033 2009-10-01  Jim Meyering  <meyering@redhat.com>
29034
29035         maint.mk: requiring "make major" was annoying, for a "minor" release.
29036         What is intended is "stable", to contrast with alpha and beta,
29037         so require "make stable", not "make major".
29038         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29039         (get_tool_versions): Likewise.
29040         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29041
29042 2009-09-30  Ben Pfaff  <blp@gnu.org>
29043
29044         Fix broken build of replacement for Windows tmpfile().
29045         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29046         flags argument added along with the 'mkostemp' module.
29047
29048 2009-09-28  Bruno Haible  <bruno@clisp.org>
29049
29050         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29051         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29052         to 'remove_elt'.
29053         (gl_list_remove): Update.
29054         * lib/gl_list.c (gl_list_remove): Update.
29055         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29056         to 'remove_elt'.
29057         (gl_oset_remove): Update.
29058         * lib/gl_list.c (gl_oset_remove): Update.
29059         Reported by Eric Blake.
29060
29061 2009-09-28  Eric Blake  <ebb9@byu.net>
29062
29063         doc: mention yet more cygwin 1.7 status
29064         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29065         cygwin.
29066         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29067         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29068
29069         argp: fix test failure
29070         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29071         that are not upper-case.  Pass correct range to tolower.
29072
29073 2009-09-27  Jim Meyering  <meyering@redhat.com>
29074
29075         test-yesno: work around sparc-dash here-document infelicity
29076         Without this change, the literal \177 byte in a here document
29077         would make dash 0.5.5.1-3 access uninitialized memory.
29078         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29079         Instead, use a marker, "@", and filter through tr to create the desired
29080         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29081
29082 2009-09-27  Bruno Haible  <bruno@clisp.org>
29083
29084         Disable untested support for new flavours of ACLs on AIX.
29085         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29086         progress.
29087         * lib/set-mode-acl.c (qset_acl): Likewise.
29088
29089 2008-12-07  Bruno Haible  <bruno@clisp.org>
29090
29091         Add support for new flavours of ACLs on AIX. (Untested.)
29092         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29093         (file_has_acl): Add support for newer AIX.
29094         * lib/set-mode-acl.c (qset_acl): Likewise.
29095         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29096         Rainer Tammer <tammer@tammer.net>.
29097
29098 2009-09-26  Eric Blake  <ebb9@byu.net>
29099
29100         argp: fix compilation of getopt
29101         * lib/getopt.in.h (includes): Use different guard than glibc.
29102         Reported by Sergey Poznyakoff.
29103
29104         doc: mention more cygwin 1.7 status
29105         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29106         bug.
29107         * doc/posix-functions/execl.texi (execl): Likewise.
29108         * doc/posix-functions/execle.texi (execle): Likewise.
29109         * doc/posix-functions/execlp.texi (execlp): Likewise.
29110         * doc/posix-functions/execv.texi (execv): Likewise.
29111         * doc/posix-functions/execve.texi (execve): Likewise.
29112         * doc/posix-functions/execvp.texi (execvp): Likewise.
29113         * doc/glibc-functions/canonicalize_file_name.texi
29114         (canonicalize_file_name): Cygwin 1.7 now provides this.
29115         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29116         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29117         on AT_SYMLINK_NOFOLLOW.
29118
29119 2009-09-24  Eric Blake  <ebb9@byu.net>
29120
29121         test-linkat: make test more robust
29122         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29123
29124         getopt: fix inclusion guards for cygwin
29125         * modules/getopt-posix (Depends-on): Add include-next.
29126         (Makefile.am): Substitute more items in replacement header.
29127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29128         <getopt.h>.
29129         * lib/getopt.in.h (includes): Use split inclusion guard, and
29130         prefer <getopt.h> over include <unistd.h> when one is present.
29131         (option): Also override name of 'struct option'.
29132
29133         same-inode: revert prior change; it is not yet ready
29134         * NEWS: Undo mention of this change.
29135         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29136         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29137         * lib/cycle-check.c (cycle_check): Likewise.
29138         * lib/same.c (same_name): Likewise.
29139         * lib/at-func2.c (at_func2): Likewise.
29140
29141 2009-09-23  Eric Blake  <ebb9@byu.net>
29142
29143         linkat: new module
29144         * modules/linkat: New file.
29145         * lib/at-func2.c (at_func2): Likewise.
29146         * lib/linkat.c (linkat): Likewise.
29147         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29148         * lib/openat-priv.h (at_func2): Add declaration.
29149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29150         * modules/unistd (Makefile.am): Substitute them.
29151         * lib/unistd.in.h (linkat): Declare it.
29152         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29153         * doc/posix-functions/linkat.texi (linkat): Likewise.
29154         * doc/posix-functions/link.texi (link): Tweak wording.
29155         * tests/test-link.c (main): Move guts...
29156         * tests/test-link.h (test_link): ...into new file.
29157         * modules/linkat-tests: New test.
29158         * tests/test-linkat.c: Likewise.
29159         * modules/link-tests (Files): Ship new file.
29160         (Depends-on): Add stdbool.
29161
29162         dirname: add library-safe mdir_name
29163         * lib/dirname.h (mdir_name): New prototype.
29164         * lib/dirname.c (dir_name): Move guts...
29165         (mdir_name): ...to new function that avoids xalloc_die.
29166
29167         fchdir: another mingw fix
29168         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29169         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29170         on mingw (where it has not yet been ported), and make it optional
29171         elsewhere.
29172         (_gl_register_fd): Use it.
29173
29174         same-inode: make SAME_INODE tri-state, to port to mingw
29175         * NEWS: Mention this change.
29176         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29177         st_ino always being 0.
29178         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29179         * lib/cycle-check.c (cycle_check): Likewise.
29180         * lib/same.c (same_name): Likewise.
29181
29182         lstat: avoid mingw compilation error
29183         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29184         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29185         lstat ourselves.
29186         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29187         was adequate.
29188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29189         the checks for lstat.
29190         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29191
29192         link: fix test failure on Solaris 9
29193         * lib/link.c (rpl_link): Don't assume link will catch bogus
29194         trailing slash on source.
29195
29196         test-symlinkat: enhance test
29197         * tests/test-readlink.c (main): Move guts...
29198         * tests/test-readlink.h (test_readlink): ...into new file.
29199         * tests/test-symlink.c (main): Move guts...
29200         * tests/test-symlink.h (test_symlink): ...into new file.
29201         * tests/test-symlinkat.c (main): Use new files for further
29202         coverage.
29203         (do_symlink, do_readlink): New helper functions.
29204         * modules/symlink-tests (Files): Ship new file.
29205         (Depends-on): Add stdbool.
29206         * modules/readlink-tests (Files): Ship new file.
29207         (Depends-on): Add stdbool.
29208         * modules/symlinkat-tests (Files): Use new files.
29209
29210 2009-09-23  Eric Blake  <ebb9@byu.net>
29211
29212         readlink: document portability issue with symlink length
29213         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29214         systems have bogus st_size on symlinks, and mention the
29215         areadlink-with-size module.
29216         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29217         * doc/posix-functions/readlink.texi (readlink): Mention the
29218         areadlink module, and ERANGE failure.
29219         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29220         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29221
29222         readlink: fix Solaris 9 bug with trailing slash
29223         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29224         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29225         * doc/posix-functions/readlink.texi (readlink): Document this.
29226         * modules/readlink-tests: New test.
29227         * tests/test-readlink.c: Likewise.
29228
29229         readlink: fix cygwin 1.5.x bug with return type
29230         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29231         * lib/unistd.in.h (readlink): Use ssize_t.
29232         * lib/readlink.c (readlink): Likewise.
29233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29234         * modules/unistd (Makefile.am): Substitute it.
29235         * lib/unistd.in.h (readlink): Declare replacement.
29236         * doc/posix-functions/readlink.texi (readlink): Document this.
29237
29238         symlink: use throughout gnulib
29239         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29240         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29241         symlink is not used.
29242         * modules/symlinkat (Depends-on): Add symlink.
29243         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29244         * modules/canonicalize-tests (Depends-on): Likewise.
29245         * modules/lstat-tests (Depends-on): Likewise.
29246         * modules/openat-tests (Depends-on): Likewise.
29247         * modules/remove-tests (Depends-on): Likewise.
29248         * modules/rmdir-tests (Depends-on): Likewise.
29249         * modules/unlink-tests (Depends-on): Likewise.
29250         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29251         * tests/test-canonicalize.c (symlink): Likewise.
29252         * tests/test-fstatat.c (symlink): Likewise.
29253         * tests/test-lstat.c (symlink): Likewise.
29254         * tests/test-remove.c (symlink): Likewise.
29255         * tests/test-rmdir.c (symlink): Likewise.
29256         * tests/test-unlink.c (symlink): Likewise.
29257         * tests/test-unlinkat.c (symlink): Likewise.
29258
29259         symlink: new module, for Solaris 9 bug
29260         * modules/symlink: New file.
29261         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29262         * lib/symlink.c: Likewise.
29263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29264         * modules/unistd (Makefile.am): Substitute them.
29265         * lib/unistd.in.h (symlink): Declare replacement.
29266         * MODULES.html.sh (File system functions): Mention it.
29267         * doc/posix-functions/symlink.texi (symlink): Likewise.
29268         * modules/symlink-tests: New test.
29269         * tests/test-symlink.c: Likewise.
29270
29271 2009-09-23  Bruno Haible  <bruno@clisp.org>
29272
29273         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29274         when needed.
29275         Test case: gnulib-tool --import --with-tests atexit inttypes.
29276         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29277
29278 2009-09-23  Bruno Haible  <bruno@clisp.org>
29279
29280         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29281         subcommand, not in a subshell.
29282
29283 2009-09-22  Eric Blake  <ebb9@byu.net>
29284
29285         unistd: sort replacement declarations
29286         * lib/unistd.in.h: Sort declarations.
29287
29288         open, openat: minor optimization
29289         * lib/open.c (open): If open succeeded, len is non-zero.
29290         * lib/openat.c (rpl_openat): Likewise.
29291
29292         link-follow: ensure correct result
29293         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29294         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29295         distinguish between possible failures.
29296
29297 2009-09-21  Eric Blake  <ebb9@byu.net>
29298
29299         fts: avoid compiler warning
29300         * lib/fts.c (dirent_inode_sort_may_be_useful)
29301         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29302
29303 2009-09-19  Bruno Haible  <bruno@clisp.org>
29304
29305         * lib/progreloc.c (canonicalize_file_name): New declaration.
29306
29307 2009-09-19  Eric Blake  <ebb9@byu.net>
29308
29309         link: fix quoting
29310         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29311
29312         openat: fix openat bugs on Solaris 9
29313         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29314         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29315         * modules/openat (Depends-on): Add open.
29316         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29317         * modules/fcntl-h (Makefile.am): Substitute it.
29318         * lib/fcntl.in.h (openat): Declare replacement.
29319         * doc/posix-functions/openat.texi (openat): Document this.
29320
29321         openat: move fstatat and unlinkat into correct files
29322         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29323         compiled.
29324         * lib/openat.c (fstatat, unlinkat): Move...
29325         * lib/fstatat.c (fstatat): ...into correct files.
29326         * lib/unlinkat.c (unlinkat): Likewise.
29327
29328         openat: fix unlinkat bugs on Solaris 9
29329         * lib/unlinkat.c (unlinkat): New file.
29330         * modules/openat (Depends-on): Add unlink.
29331         (Files): Distribute it.
29332         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29333         trailing slash behavior is broken.
29334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29335         * modules/unistd (Makefile.am): Substitute it.
29336         * lib/unistd.in.h (unlinkat): Declare replacement.
29337         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29338
29339         openat: fix fstatat bugs on Solaris 9
29340         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29341         stat.
29342         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29343
29344         test-unlinkat: enhance test, to expose Solaris 9 bug
29345         * tests/test-unlink.c (main): Factor guts...
29346         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29347         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29348         * tests/test-rmdir.c (main): Adjust caller.
29349         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29350         (unlinker): New helper function.
29351         (rmdirat): Enhance check.
29352         * modules/rmdir-tests (Depends-on): Add stdbool.
29353         * modules/unlink-tests (Depends-on): Likewise.
29354         (Files): Add test-unlink.h.
29355         * modules/openat-tests (Files): Likewise.
29356         (Depends-on): Add unlinkdir.
29357
29358         test-fstatat: new test, to expose Solaris 9 bugs
29359         * tests/test-stat.c (main): Factor guts...
29360         * tests/test-stat.h (test_stat_func): ...into new file.
29361         * tests/test-lstat.c (main): Factor guts...
29362         * tests/test-lstat.h (test_lstat_func): ...into new file.
29363         * tests/test-fstatat.c: New file.
29364         * modules/stat-tests (Files): Add test-stat.h.
29365         * modules/lstat-tests (Files): Add test-lstat.h.
29366         (Depends-on): Add stdbool.
29367         * modules/openat-tests (Depends-on): Add pathmax.
29368         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29369         (Makefile.am): Run new test.
29370
29371         remove: new module, for mingw and Solaris 9 bugs
29372         * modules/remove: New file.
29373         * lib/remove.c: Likewise.
29374         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29376         * modules/stdio (Makefile.am): Use them.
29377         * lib/stdio.in.h (remove): Declare replacement.
29378         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29379         * doc/posix-functions/remove.texi (remove): Likewise.
29380         * modules/remove-tests: New test.
29381         * tests/test-remove.c: Likewise.
29382
29383         unlink: new module, for Solaris 9 bug
29384         * modules/unlink: New file.
29385         * lib/unlink.c: Likewise.
29386         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29388         * modules/unistd (Makefile.am): Use them.
29389         * lib/unistd.in.h (stat): Declare replacement.
29390         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29391         * doc/posix-functions/unlink.texi (unlink): Likewise.
29392         * modules/unlink-tests: New test.
29393         * tests/test-unlink.c: Likewise.
29394
29395         lstat: fix Solaris 9 bug
29396         * lib/lstat.c (lstat): Also check for trailing slash on
29397         non-symlink, non-directories.  Use stat module to simplify logic.
29398         * doc/posix-functions/lstat.texi (lstat): Document it.
29399         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29400         (configure.ac): Check for symlink.
29401         * tests/test-lstat.c (main): Add more tests.
29402
29403         stat: add as dependency to other modules
29404         * modules/chown (Depends-on): Add stat.
29405         * modules/euidaccess (Depends-on): Likewise.
29406         * modules/fchdir (Depends-on): Likewise.
29407         * modules/isdir (Depends-on): Likewise.
29408         * modules/link (Depends-on): Likewise.
29409         * modules/lstat (Depends-on): Likewise.
29410         * modules/mkdir-p (Depends-on): Likewise.
29411         * modules/modechange (Depends-on): Likewise.
29412         * modules/open (Depends-on): Likewise.
29413         * modules/readlink (Depends-on): Likewise.
29414         * modules/same (Depends-on): Likewise.
29415
29416         stat: fix Solaris 9 bug
29417         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29418         slash.
29419         * lib/stat.c (rpl_stat): Work around it.
29420         * doc/posix-functions/stat.texi (stat): Update documentation.
29421
29422         stat: new module, for mingw bug
29423         * modules/stat: New file.
29424         * lib/stat.c: Likewise.
29425         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29427         * modules/sys_stat (Makefile.am): Use them.
29428         * lib/sys_stat.in.h (stat): Declare replacement.
29429         * lib/openat.c (fstatat): Deal with lstat and stat being function
29430         macros.
29431         * modules/openat (Depends-on): Add inline.
29432         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29433         * doc/posix-functions/stat.texi (stat): Likewise.
29434         * modules/stat-tests: New test.
29435         * tests/test-stat.c: Likewise.
29436
29437 2009-09-19  Jim Meyering  <meyering@redhat.com>
29438
29439         syntax-check: detect unnecessary inclusion of canonicalize.h
29440         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29441
29442 2009-09-19  Eric Blake  <ebb9@byu.net>
29443
29444         canonicalize-lgpl: adjust clients to use correct header
29445         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29446         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29447         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29448         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29449         * lib/progreloc.c (includes): Likewise.
29450
29451 2009-09-19  Jim Meyering  <meyering@redhat.com>
29452
29453         test-posixtm.c: correct a comment
29454         * tests/test-posixtm.c: Correct first-line comment.
29455         Spotted by Eric Blake.
29456
29457 2009-09-16  Jim Meyering  <meyering@redhat.com>
29458
29459         posixtm-tests: make T const-correct; add a test case
29460         * tests/test-posixtm.c (T): Declare const.
29461         Add a test for -(2^31+1).
29462         Remove useless can-succeed-only-in-2002 test.
29463
29464         posixtm-tests: adjust the sole failing test
29465         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29466         expected output matches what mktime now produces.  Cross-checked via
29467         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29468
29469         posixtm: move #ifdef'd tests into a new module
29470         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29471         * tests/test-posixtm.c: ... this new file.
29472         * modules/posixtm-tests: New module.
29473
29474 2009-09-19  Eric Blake  <ebb9@byu.net>
29475
29476         openat: simplify use of at-func.c
29477         * lib/at-func.c (includes): Include prerequisites here, to
29478         simplify requirements on client files.
29479         * lib/openat-priv.h: Add double-inclusion guard.
29480         * lib/faccessat.c (includes): Simplify.
29481         * lib/fchmodat.c (includes): Likewise.
29482         * lib/fchownat.c (includes): Likewise.
29483         * lib/mkdirat.c (includes): Likewise.
29484         * lib/mkfifoat.c (includes): Likewise.
29485         * lib/symlinkat.c (includes): Likewise.
29486
29487         openat: allow return of fd 0
29488         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29489         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29490         unistd-safer.
29491         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29492         <fcntl.h>; this module does not leak fds.
29493         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29494         must be allowed to return 0, leaving openat_safer to add the
29495         safety.
29496         (openat_permissive): Avoid writing to just-opened fd 2 if
29497         restoring the current directory fails.
29498         * lib/openat-die.c (openat_restore_fail): Add comment.
29499         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29500         (save_cwd): Guarantee safe fd, but without use of open_safer.
29501         * tests/test-openat.c: New test.
29502         * modules/openat-tests (Files, Makefile.am): Distribute and build
29503         new file.
29504
29505         relocatable-prog-wrapper: fix build
29506         * modules/relocatable-prog-wrapper (Files): Update name of
29507         canonicalize m4 file, broken on 2009-09-17.
29508         Reported by emad hajjar <aleppos@hotmail.com>.
29509
29510 2009-09-19  Bruno Haible  <bruno@clisp.org>
29511
29512         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29513         * lib/safe-alloc.c: Likewise.
29514         Reported by Ian Beckwith <ianb@erislabs.net>.
29515
29516 2009-09-18  Bruno Haible  <bruno@clisp.org>
29517
29518         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29519         Reported by <erobles@sensacd.com.mx>.
29520
29521 2009-09-17  Eric Blake  <ebb9@byu.net>
29522
29523         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29524         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29525         slashes when checking if last component is missing.
29526         * tests/test-canonicalize.c (main): Test this.
29527
29528         canonicalize, canonicalize-lgpl: honor // if distinct from /
29529         * modules/canonicalize (Files): Add double-slash-root.m4.
29530         * modules/canonicalize-lgpl (Files): Likewise.
29531         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29532         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29533         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29534         fallback definition.
29535         (canonicalize_filename_mode): Use it to protect //.
29536         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29537         (__realpath): Likewise.
29538         * tests/test-canonicalize.c (main): Test this.
29539         * tests/test-canonicalize-lgpl.c (main): Likewise.
29540         * modules/canonicalize-tests (Depends-on): Add same-inode.
29541         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29542
29543         canonicalize-lgpl: fix glibc bug with trailing slash
29544         * m4/canonicalize-lgpl.m4: Move contents...
29545         * m4/canonicalize.m4: ...here.
29546         (gl_CANONICALIZE_LGPL): Factor realpath check...
29547         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29548         glibc 2.3.5 bug, fixed 2005-04-27.
29549         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29550         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29551         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29552         * modules/canonicalize-lgpl (Files): Manage file rename.
29553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29554         * modules/stdlib (Makefile.am): Substitute witness.
29555         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29556         is needed.
29557         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29558         replacement is required.
29559         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29560         * doc/glibc-functions/canonicalize_file_name.texi
29561         (canonicalize_file_name): Document this.
29562         * doc/posix-functions/realpath.texi (realpath): Likewise.
29563
29564         canonicalize-lgpl: reject non-directory with trailing slash
29565         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29566         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29567         catches failures in glibc 2.3.5.
29568         * tests/test-canonicalize.c (main): Likewise.
29569
29570         canonicalize-lgpl: use native realpath if it works
29571         * lib/canonicalize-lgpl.c (realpath): Guard with
29572         FUNC_REALPATH_WORKS.
29573         * lib/stdlib.in.h (realpath): Make declaration optional based on
29574         HAVE_REALPATH.
29575         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29576         native realpath works.
29577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29578         * modules/stdlib (Makefile.am): Substitute witness.
29579
29580         canonicalize, canonicalize-lgpl: use <stdlib.h>
29581         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29582         (Include): Mention <stdlib.h>.
29583         (configure.ac): Mention functions we provide.
29584         * modules/canonicalize (configure.ac): Likewise.
29585         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29586         realpath if canonicalize_file_name is missing.
29587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29588         * modules/stdlib (Makefile.am): Substitute witnesses.
29589         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29590         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29591         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29592         * NEWS: Document this.
29593         * doc/glibc-functions/canonicalize_file_name.texi
29594         (canonicalize_file_name): Likewise.
29595         * doc/posix-functions/realpath.texi (realpath): Likewise.
29596         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29597
29598         test-canonicalize: consolidate into single C program
29599         * tests/test-canonicalize.sh: Delete; move setup into...
29600         * tests/test-canonicalize.c (main): ...the program, making it
29601         easier to run in debugger.  Add some tests.
29602         * modules/canonicalize-tests (Files): Remove unused file.
29603         (Depends-on): Add progname.
29604         (configure.ac, Makefile.am): Simplify.
29605
29606         test-canonicalize-lgpl: consolidate into single C program
29607         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29608         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29609         easier to run in debugger.  Add some tests.
29610         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29611         (configure.ac, Makefile.am): Simplify.
29612
29613         canonicalize: avoid resolvepath
29614         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29615         unnecessary checks.
29616         * lib/canonicalize.c (includes): Simplify.
29617         (canonicalize_file_name): Drop resolvepath implementation.
29618         * modules/canonicalize (Depends-on): Drop filenamecat.
29619
29620         canonicalize: don't lose errno
29621         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29622         over calls to free.
29623
29624         canonicalize: simplify errno handling
29625         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29626         assignment.
29627
29628         canonicalize, canonicalize-lgpl: update module dependencies
29629         * modules/canonicalize (Depends-on): Add extensions, lstat,
29630         pathmax, stdlib.
29631         (Files): Drop pathmax.h.
29632         (configure.ac): Adjust macro name.
29633         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29634         lstat, stdlib, sys_stat.
29635         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29636         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29637         extensions.
29638         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29639         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29640         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29641         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29642         declaration, if available.
29643         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29644         we can rely on the readlink module.
29645         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29646         (includes): Use <unistd.h> unconditionally.
29647
29648 2009-09-17  Eric Blake  <ebb9@byu.net>
29649
29650         maint: make Include sections of modules consistent
29651         * modules/alloca: Use only header name; no need to list #include.
29652         * modules/alloca-opt: Likewise.
29653         * modules/arpa_inet: Likewise.
29654         * modules/canon-host: Likewise.
29655         * modules/configmake: Likewise.
29656         * modules/dirent: Likewise.
29657         * modules/eealloc: Likewise.
29658         * modules/environ: Likewise.
29659         * modules/fchdir: Likewise.
29660         * modules/fcntl: Likewise.
29661         * modules/fcntl-h: Likewise.
29662         * modules/gethrxtime: Likewise.
29663         * modules/gettime: Likewise.
29664         * modules/ignore-value: Likewise.
29665         * modules/inet_ntop: Likewise.
29666         * modules/inet_pton: Likewise.
29667         * modules/inttypes: Likewise.
29668         * modules/isnand-nolibm: Likewise.
29669         * modules/isnanf-nolibm: Likewise.
29670         * modules/mbchar: Likewise.
29671         * modules/mbfile: Likewise.
29672         * modules/mbiter: Likewise.
29673         * modules/mbuiter: Likewise.
29674         * modules/netdb: Likewise.
29675         * modules/netinet_in: Likewise.
29676         * modules/nproc: Likewise.
29677         * modules/pagealign_alloc: Likewise.
29678         * modules/poll: Likewise.
29679         * modules/printf-frexp: Likewise.
29680         * modules/pthread: Likewise.
29681         * modules/putenv: Likewise.
29682         * modules/random_r: Likewise.
29683         * modules/relocatable-prog: Likewise.
29684         * modules/search: Likewise.
29685         * modules/select: Likewise.
29686         * modules/selinux-h: Likewise.
29687         * modules/settime: Likewise.
29688         * modules/signal: Likewise.
29689         * modules/size_max: Likewise.
29690         * modules/socklen: Likewise.
29691         * modules/ssize_t: Likewise.
29692         * modules/stdarg: Likewise.
29693         * modules/stdbool: Likewise.
29694         * modules/stddef: Likewise.
29695         * modules/stdint: Likewise.
29696         * modules/stdio: Likewise.
29697         * modules/stdlib: Likewise.
29698         * modules/string: Likewise.
29699         * modules/strings: Likewise.
29700         * modules/sys_file: Likewise.
29701         * modules/sys_ioctl: Likewise.
29702         * modules/sys_select: Likewise.
29703         * modules/sys_socket: Likewise.
29704         * modules/sys_stat: Likewise.
29705         * modules/sys_time: Likewise.
29706         * modules/sys_times: Likewise.
29707         * modules/sys_utsname: Likewise.
29708         * modules/sys_wait: Likewise.
29709         * modules/sysexits: Likewise.
29710         * modules/time: Likewise.
29711         * modules/times: Likewise.
29712         * modules/tmpfile: Likewise.
29713         * modules/trim: Likewise.
29714         * modules/unistd: Likewise.
29715         * modules/wchar: Likewise.
29716         * modules/wctype: Likewise.
29717
29718 2009-09-17  Bruno Haible  <bruno@clisp.org>
29719
29720         Make getdate.y compile on QNX and NetBSD 5 / i386.
29721         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29722         TIME_T_FITS_IN_LONG_INT.
29723         * lib/getdate.y (long_time_t): New type.
29724         (relative_time): Change type of 'seconds' field to long_time_t.
29725         (get_date): Update types of local variables. Check against overflow
29726         during conversion from long_time_t to time_t.
29727         Reported by Matt Kraai <kraai@ftbfs.org>
29728         and Hasso Tepper <hasso@netbsd.org>.
29729
29730 2009-09-17  Bruno Haible  <bruno@clisp.org>
29731
29732         * modules/COPYING: Update copyright years.
29733         * modules/README: Likeiwse.
29734         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29735         Reported by Ian Beckwith <ianb@erislabs.net>.
29736
29737 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29738
29739         * users.txt: Update references for gnuit package.
29740
29741 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29742
29743         * m4/getdelim.m4: Fix typo in copyright line.
29744
29745 2009-09-17  Bruno Haible  <bruno@clisp.org>
29746
29747         * lib/atoll.c: Use the standard header with GPL copyright.
29748         * lib/argz.in.h: Likewise.
29749         * lib/glob.c: Likewise.
29750         * lib/glob-libc.h: Likewise.
29751         * lib/random_r.c: Likewise.
29752         * lib/siglist.h: Likewise.
29753         * lib/strsignal.c: Likewise.
29754         Reported by Ian Beckwith <ianb@erislabs.net>.
29755
29756 2009-09-17  Eric Blake  <ebb9@byu.net>
29757
29758         rmdir: ensure correct dependency order
29759         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29760
29761 2009-09-17  Bruno Haible  <bruno@clisp.org>
29762
29763         Disable assertion that fails on NetBSD 5 / i386.
29764         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29765         Reported by Sam Steingold <sds@gnu.org>
29766         and Hasso Tepper <hasso@netbsd.org>.
29767
29768 2009-09-16  Eric Blake  <ebb9@byu.net>
29769
29770         unlinkdir: port to mingw
29771         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29772         on which no one can unlink a directory.
29773
29774         stdlib: sort witness names
29775         * modules/stdlib (Makefile.am): Sort replacements.
29776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29777         * lib/stdlib.in.h: Likewise.
29778
29779         parse-duration-tests: avoid link failure
29780         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29781         LIBINTL.
29782         Reported by Tom G. Christensen.
29783
29784         openat-tests: ensure unlinkat behaves like rmdir
29785         * tests/test-rmdir.c (main): Factor guts...
29786         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29787         * modules/rmdir-tests (Files): Ship new file.
29788         * modules/openat-tests: New test.
29789         * tests/test-unlinkat.c: Likewise.
29790
29791         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29792         * modules/rmdir-errno (Status, Notice): Now obsolete.
29793
29794         rmdir: work around cygwin 1.5.x and mingw bugs
29795         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29796         * lib/rmdir.c (rmdir): Work around it.
29797         * modules/rmdir (Status, Notice): No longer obsolete.
29798         (Files): Add dos.m4.
29799         (Depends-on): Add unistd.
29800         (configure.ac): Set witnesses.
29801         (License): Relax to LGPLv2+.
29802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29803         * modules/unistd (Makefile.am): Substitute witnesses.
29804         * lib/unistd.in.h (rmdir): Declare replacement.
29805         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29806         * modules/rmdir-tests: New tests.
29807         * tests/test-rmdir.c: Likewise.
29808
29809 2009-09-15  Eric Blake  <ebb9@byu.net>
29810
29811         fchdir: improve use of replacement functions
29812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29813         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29814         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29815         REPLACE_CLOSEDIR.
29816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29817         * modules/sys_stat (Makefile.am): Substitute correct witness.
29818         * modules/dirent (Makefile.am): Likewise.
29819         * modules/unistd (Makefile.am): Likewise.
29820         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29821         * lib/unistd.in.h (dup): Likewise.
29822         * lib/sys_stat.in.h (fstat): Likewise.
29823
29824         maint: ignore gnulib-tool temp files
29825         * .gitignore: Ignore files created during gnulib-tool --test.
29826
29827 2009-09-13  Jim Meyering  <meyering@redhat.com>
29828
29829         posixtm: don't reject a time that specify "60" as the number of seconds
29830         * lib/posixtm.c (posixtime): The code to reject invalid dates
29831         would also reject a time specified with the .60 suffix.
29832         But POSIX allows that, in order to accommodate leap seconds.
29833         So don't reject it.
29834         (main): Adjust tests accordingly.
29835         * modules/posixtm (Depends-on): Add stpcpy.
29836
29837 2009-09-11  Jim Meyering  <meyering@redhat.com>
29838
29839         announce-gen: include [$release_type] in emitted Subject:
29840         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29841         e.g., [stable] in the emitted Subject: line.
29842
29843 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29844
29845         Remove obsolete macros from several modules.
29846         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29847         obsolete Autoconf macros with their modern counterparts.
29848         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29849         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29850         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29851         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29852         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29853         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29855         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29856         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29857         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29858         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29859         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29860         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29861         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29862         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29863         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29864         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29865         * m4/time_r.m4 (gl_TIME_R): Likewise.
29866         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29867         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29868         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29869
29870         Fix copyright header in build-aux scripts.
29871         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29872         recommendation.
29873         * build-aux/ncftpput-ftp: Likewise.
29874         * build-aux/update-copyright: Likewise.
29875
29876 2009-09-09  Eric Blake  <ebb9@byu.net>
29877
29878         test-link: allow Linux choice of errno
29879         * tests/test-link.c (main): Relax test for alternate error.
29880
29881         strndup: fix improper m4 caching
29882         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29883         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29884         (gl_PREREQ_STRNDUP): Delete.
29885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29886         * modules/string (Makefile.am): Substitute it.
29887         * lib/string.in.h (strndup): Modernize prototype.
29888
29889         getcwd: port to mingw
29890         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29891         different from the POSIX assumptions made throughout the getcwd
29892         module; fortunately, the mingw getcwd does not need replacement.
29893         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29894         * modules/getcwd-tests: New test.
29895         * tests/test-getcwd.c: Likewise.
29896
29897         link: fix platform bugs
29898         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29899         * lib/link.c (link): Work around them.  Fix related mingw bug.
29900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29901         * modules/unistd (Makefile.am): Substitute it.
29902         * lib/unistd.in.h (link): Declare replacement.
29903         * doc/posix-functions/link.texi (link): Document this.
29904         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29905
29906         test-link: consolidate into single C program, test more cases
29907         * tests/test-link.sh: Delete.
29908         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29909         at least Cygwin and Solaris.
29910         * modules/link-tests (Files): Remove unused file.
29911         (Depends-on): Add errno, sys_stat.
29912         (Makefile.am): Simplify.
29913
29914 2009-09-08  Bruno Haible  <bruno@clisp.org>
29915
29916         Work around towlower, towupper bug on mingw.
29917         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29918         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29919         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29920         * doc/posix-functions/towupper.texi: Likewise.
29921         Reported by Eric Blake.
29922
29923 2009-09-08  Jim Meyering  <meyering@redhat.com>
29924
29925         build: don't try to run autoheader if we don't use it
29926         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29927         is not used in configure.ac.
29928
29929 2009-09-08  Eric Blake  <ebb9@byu.net>
29930
29931         euidaccess: fix compilation error
29932         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29933
29934         rawmemchr: relax license
29935         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29936         okay.
29937         Reported by Jim Meyering.
29938
29939         mkfifoat: new module
29940         * modules/mkfifoat: New file.
29941         * lib/mkfifoat.c: Likewise.
29942         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29943         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29944         * modules/sys_stat (Makefile.am): Use them.
29945         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29946         * MODULES.html.sh (File system functions): Mention module.
29947         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29948         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29949         * modules/mkfifoat-tests: New test.
29950         * tests/test-mkfifoat.c: Likewise.
29951
29952         strchrnul: relax license
29953         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29954         okay.
29955         Reported by Jim Meyering.
29956
29957 2009-09-08  Eric Blake  <ebb9@byu.net>
29958
29959         fstatat: fix compilation on Solaris
29960         * lib/fstatat.c (includes): Add fcntl.h.
29961         Reported by Pádraig Brady.
29962
29963 2009-09-07  Eric Blake  <ebb9@byu.net>
29964
29965         rename: modernize replacement
29966         * modules/rename (Depends-on): Add stdio.
29967         (configure.ac): Declare witness.
29968         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29969         stdio take care of replacement.
29970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29971         * modules/stdio (Makefile.am): Substitute them.
29972         * lib/stdio.in.h (rename): Declare replacement.
29973         * lib/rename.c (includes): Allow cross-compilation to non-windows
29974         machines.
29975         * doc/posix-functions/rename.texi (rename): Improve
29976         documentation.
29977
29978         stdio: sort witness names
29979         * modules/stdio (Makefile.am): Sort replacements.
29980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29981         * lib/stdio.in.h: Likewise.
29982
29983         getcwd: minor cleanups
29984         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29985         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29986
29987         openat: provide more convenience names
29988         * modules/faccessat (configure.ac): Add C witness.
29989         * lib/unistd.in.h (readlinkat): Fix typo.
29990         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29991         convenience wrappers.
29992         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29993         wrappers in syntax checks.
29994
29995 2009-09-06  Eric Blake  <ebb9@byu.net>
29996
29997         doc: fix comments in recent patches
29998         * lib/faccessat.c: Mention correct function.
29999         * lib/fchmodat.c: Likewise.
30000         * lib/fchownat.c: Likewise.
30001         * lib/symlinkat.c: Likewise.
30002         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30003         constants.
30004
30005         faccessat, symlinkat: continue cleanup of previous patch
30006         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30007         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30008         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30010         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30011         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30012         set.
30013
30014 2009-09-06  Bruno Haible  <bruno@clisp.org>
30015
30016         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30017         (fstatat): Declare if GNULIB_FSTATAT is set.
30018         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30019         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30020         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30021         * modules/fcntl-h (Files): Remove m4/openat.m4.
30022         * modules/sys_stat (Files): Remove m4/openat.m4.
30023         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30024         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30025         * modules/unistd (Files): Remove m4/openat.m4.
30026         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30027         GNULIB_OPENAT.
30028         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30029         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30031         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30032         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30033         gl_OPENAT_DEFAULTS.
30034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30035         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30036         Don't require gl_OPENAT_DEFAULTS.
30037         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30038         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30039         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30040         (gl_OPENAT_DEFAULTS): Remove macro.
30041
30042 2009-09-06  Bruno Haible  <bruno@clisp.org>
30043
30044         * modules/openat (configure.ac): Remove unneeded witness.
30045
30046 2009-09-06  Bruno Haible  <bruno@clisp.org>
30047
30048         Set errno to ENOSYS when a function is entirely unsupported.
30049         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30050         EOPNOTSUPP.
30051         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30052         * modules/chown (Depends-on): Remove errno.
30053
30054 2009-09-06  Bruno Haible  <bruno@clisp.org>
30055
30056         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30057
30058 2009-09-06  Bruno Haible  <bruno@clisp.org>
30059
30060         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30061
30062 2009-09-06  Ben Pfaff  <blp@gnu.org>
30063             Bruno Haible  <bruno@clisp.org>
30064
30065         Work around a glibc bug in strtok_r.
30066         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30067         Undefine if UNDEFINE_STRTOK_R is set.
30068         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30070         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30072         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30073         UNDEFINE_STRTOK_R.
30074         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30075
30076 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30077
30078         exclude: minor fix
30079         * lib/exclude.c: Include wctype.h
30080
30081 2009-09-06  Akim Demaille  <demaille@gostai.com>
30082
30083         bootstrap: improve error message
30084         * build-aux/bootstrap (find_tool): Upon failure, report the list
30085         of candidates.
30086         Honor the initial value of the envvar.
30087
30088 2009-09-05  Eric Blake  <ebb9@byu.net>
30089
30090         symlinkat: new module
30091         * modules/symlinkat: New file.
30092         * lib/symlinkat.c: Likewise.
30093         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30095         * modules/unistd (Makefile.am): Use them.
30096         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30097         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30098         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30099         * MODULES.html.sh (File system functions): Mention module.
30100         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30101         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30102         * modules/symlinkat-tests: New test.
30103         * tests/test-symlinkat.c: Likewise.
30104
30105         test-openat-safer: add more checks
30106         * tests/test-openat-safer.c (main): Check more code paths.
30107
30108 2009-09-05  Jim Meyering  <meyering@redhat.com>
30109
30110         syntax-check: detect unnecessary inclusion of openat.h
30111         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30112
30113 2009-09-05  Bruno Haible  <bruno@clisp.org>
30114
30115         Support towlower, towupper.
30116         * doc/posix-functions/towlower.texi: Mention module wctype.
30117         * doc/posix-functions/towupper.texi: Likewise.
30118         * lib/wctype.in.h (towlower, towupper): New functions.
30119         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30120         (ASSERT): New macro.
30121         (e): New variable.
30122         (main): Test also towlower, towupper. Test WEOF argument.
30123         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30124
30125 2009-09-05  Bruno Haible  <bruno@clisp.org>
30126
30127         Fix conversion behaviour when the input is invalid.
30128         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30129         mark occurring in first pass of indirect conversion.
30130         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30131         input.
30132         Found by clang's static analyzer.
30133
30134 2009-09-05  Bruno Haible  <bruno@clisp.org>
30135
30136         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30137         where direct conversion is possible.
30138
30139 2009-09-04  Eric Blake  <ebb9@byu.net>
30140
30141         openat: fail with ENOENT on empty name
30142         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30143         buffer.
30144
30145         link-follow: fix logic bug in prior patch
30146         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30147         reversed sense of yes and no in prior patch.  Avoid confusing
30148         compilation failure with desired semantics.
30149
30150         link-follow: accomodate mingw and cross-compilation
30151         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30152         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30153         cross-compilation results to -1, to make linkat easier to
30154         implement when cross-compiling.  Trivially support mingw.
30155         * modules/link-follow (configure.ac): Call new name.
30156         * NEWS: Mention this.
30157
30158 2009-09-03  Eric Blake  <ebb9@byu.net>
30159
30160         faccessat: compile replacement
30161         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30162         needed.
30163
30164         fts: fix compilation error
30165         * lib/fts.c (includes): Re-add "openat.h", for
30166         openat_needs_fchdir.
30167
30168         faccessat: new module
30169         * modules/faccessat: New file.
30170         * lib/faccessat.c: Likewise.
30171         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30173         * modules/unistd (Makefile.am): Use it.
30174         * lib/unistd.in.h (faccessat): Declare it.
30175         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30176         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30177         * MODULES.html.sh (File system functions): Mention it.
30178         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30179         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30180
30181         euidaccess: prefer POSIX over non-standard implementation
30182         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30183         * lib/euidaccess.c (euidaccess): Use it if available.
30184
30185         openat: make template easier to use
30186         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30187         AT_FUNC_F2 to be undefined.
30188         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30189         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30190         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30191         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30192         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30193         Likewise.
30194         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30195         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30196         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30197         Likewise.
30198
30199         openat: declare in POSIX headers
30200         * NEWS: Mention this.
30201         * modules/openat (configure.ac): Declare witnesses.
30202         (Depends-on): Add fcntl-h, sys_stat, unistd.
30203         (Include): Mention correct headers.
30204         * modules/fcntl-h (Depends-on): Add link-warning.
30205         (Files): Add openat.m4.
30206         (Makefile.am): Substitute witnesses.
30207         * modules/sys_stat (Files, Makefile.am): Likewise.
30208         * modules/unistd (Files, Makefile.am): Likewise.
30209         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30210         (gl_OPENAT_DEFAULTS): New macro.
30211         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30213         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30214         (SYS_STAT_H): Remove unused variable.
30215         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30216         * lib/fcntl--.h (includes): Remove unneeded header.
30217         * lib/openat-safer.c (includes): Likewise.
30218         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30219         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30220         appropriate headers.
30221         (__OPENAT_PREFIX): Delete.
30222         * lib/fcntl.in.h (openat): Provide declaration.
30223         (AT_FDCWD): Fix Solaris bug.
30224         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30225         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30226         * lib/fchmodat.c (includes):  Adjust to find declaration.
30227         * lib/fchownat.c (includes): Likewise.
30228         * lib/mkdirat.c (includes): Likewise.
30229         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30230         still visible.
30231
30232 2009-09-02  Eric Blake  <ebb9@byu.net>
30233
30234         errno: use consistently
30235         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30236         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30237         * lib/canonicalize.c (ELOOP): Likewise.
30238         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30239         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30240         * lib/lchown.c (EOPNOTSUPP): Likewise.
30241         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30242         * lib/savewd.c (ESTALE): Likewise.
30243         * lib/settime.c (ENOSYS): Likewise.
30244         * lib/utimens.c (ENOSYS): Likewise.
30245         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30246         * lib/chdir-safer.c (ELOOP): Likewise.
30247         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30248         * modules/c-stack (Depends-on): Add errno.
30249         * modules/canonicalize (Depends-on): Likewise.
30250         * modules/chdir-safer (Depends-on): Likewise.
30251         * modules/fdopendir (Depends-on): Likewise.
30252         * modules/inet_ntop (Depends-on): Likewise.
30253         * modules/inet_pton (Depends-on): Likewise.
30254         * modules/lchown (Depends-on): Likewise.
30255         * modules/openat (Depends-on): Likewise.
30256         * modules/savewd (Depends-on): Likewise.
30257         * modules/settime (Depends-on): Likewise.
30258         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30259
30260         fts: avoid leaking fds
30261         * modules/fts (Depends-on): Add cloexec.
30262         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30263         flag.
30264
30265         fts: make directory fds more robust
30266         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30267         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30268
30269         backupfile, chdir-long, fts, savedir: make safer
30270         * lib/backupfile.c (includes): Use "dirent--.h", since
30271         numbered_backup can write to stderr during readdir.
30272         * lib/savedir.c (includes): Likewise.
30273         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30274         emulation can write to stderr on failure.
30275         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30276         * lib/getcwd.c: Document why opendir_safer is unused.
30277         * lib/glob.c: Likewise.
30278         * lib/scandir.c: Likewise.
30279         * lib/openat-proc.c: Likewise, for open_safer.
30280         * modules/backupfile (Depends-on): Add dirent-safer.
30281         * modules/savedir (Depends-on): Likewise.
30282         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30283         * modules/chdir-long (Depends-on): Add openat-safer.
30284
30285         openat-safer: new module
30286         * modules/openat-safer: New file.
30287         * lib/openat-safer.c: Likewise.
30288         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30289         * lib/fcntl-safer.h (openat_safer): Declare.
30290         * lib/fcntl--.h (openat): Override.
30291         * MODULES.html.sh (File descriptor based I/O): Mention it.
30292         * lib/openat.h: Add double-inclusion guards.
30293         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30294         "fcntl--.h", so we can implement openat.
30295         * modules/openat-safer-tests: New test.
30296         * tests/test-openat-safer.c: New file.
30297
30298         dirent-safer: new module
30299         * modules/dirent-safer: New file.
30300         * lib/dirent--.h: Likewise.
30301         * lib/dirent-safer.h: Likewise.
30302         * lib/opendir-safer.c: Likewise.
30303         * m4/dirent-safer.m4: Likewise.
30304         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30305         * modules/dirent-safer-tests: New test.
30306         * tests/test-dirent-safer.c: New file.
30307         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30308
30309         fdopendir: optimize on mingw
30310         * lib/unistd.in.h (_gl_directory_name): New prototype.
30311         * lib/fchdir.c (_gl_directory_name): Implement it.
30312         (fchdir): Use it to simplify implementation.
30313         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30314         fchdir, when available, to avoid calling [f]chdir().
30315
30316         fdopendir: split into its own module
30317         * lib/openat.c (fdopendir): Move...
30318         * lib/fdopendir.c: ...into new file.
30319         * modules/fdopendir: New module.
30320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30321         * modules/openat (Depends-on): Add fdopendir.
30322         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30323         fdopendir here.
30324         * modules/savedir (Depends-on): Only need fdopendir, not full
30325         openat.
30326         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30327         * lib/openat.h (fdopendir): Drop prototype.
30328         * lib/dirent.in.h (fdopendir): Provide prototype.
30329         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30330         * modules/dirent (Makefile.am): Substitute them.
30331         * MODULES.html.sh (File system functions): Mention it.
30332         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30333         * modules/fdopendir-tests: New file.
30334         * tests/test-fdopendir.c: Likewise.
30335
30336         fchdir: use more consistent macro convention
30337         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30338         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30339         REPLACE_FCHDIR, rather than relying on config.h macros.
30340         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30341         inside a single make-time REPLACE_FCHDIR block, rather than using
30342         the config.h FCHDIR_REPLACEMENT.
30343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30344         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30345         Manage fstat replacement.
30346         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30347         REPLACE_FCHDIR.
30348         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30349         (Makefile.am): Substitute REPLACE_FCHDIR.
30350         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30351         FCHDIR_REPLACEMENT.
30352         * lib/dup-safer.c (dup_safer): Likewise.
30353         * lib/dup2.c (rpl_dup2): Likewise.
30354         * lib/dup3.c (rpl_dup3): Likewise.
30355         * lib/open.c (rpl_open): Likewise.
30356
30357         fchdir: simplify error handling, and support dup3
30358         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30359         stdbool, malloc-posix, realloc-posix.
30360         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30361         (ensure_dirs_slot): Return false on allocation failure.
30362         (rpl_dup2): Delete.
30363         (_gl_register_dup): New function.
30364         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30365         (_gl_register_fd): Close fd on allocation failure.
30366         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30367         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30368         prototype.
30369         (rpl_dup2_fchdir): Delete prototype.
30370         * lib/open.c (open): Update caller.
30371         * lib/dup2.c (dup2): Track fchdir metadata.
30372         * lib/dup3.c (dup3): Likewise.
30373         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30375
30376 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30377
30378         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30379         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30380         don't pass arguments to AC_OUTPUT.
30381
30382 2009-09-02  Bruno Haible  <bruno@clisp.org>
30383
30384         * modules/mkdtemp (License): Relicense under LGPLv2+.
30385         Reported by Paolo Bonzini.
30386
30387 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30388
30389         Replace uses of obsolete autoconf macros in Jim's modules.
30390         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30391         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30392         can evoke a warning from autoconf when run with -Wobsolete
30393         enabled.  They were declared obsolete for good reasons (see
30394         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30395         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30396         should not continue using the deprecated macros.
30397         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30398         obsolete Autoconf macros with modern counterparts.
30399         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30400         * m4/dos.m4 (gl_AC_DOS): Likewise.
30401         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30402         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30403         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30404         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30405         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30407         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30408         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30409         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30410         Likewise.
30411         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30412         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30413         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30414         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30415         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30416         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30417
30418 2009-09-01  Eric Blake  <ebb9@byu.net>
30419
30420         fchdir: fix off-by-one bug in previous patch
30421         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30422         (_gl_unregister_fd): Delete useless if.
30423
30424 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30425
30426         maint.mk: sort the list of syntax-check rules
30427         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30428         easier to get a sense of progress when the rules are run sequentially
30429         and take a long time.
30430
30431 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30432
30433         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30434         * modules/netinet_in: Likewise.
30435         * modules/sys_file: Likewise.
30436         * modules/sys_ioctl: Likewise.
30437         * modules/sys_select: Likewise.
30438         * modules/sys_socket: Likewise.
30439         * modules/sys_stat: Likewise.
30440         * modules/sys_time: Likewise.
30441         * modules/sys_times: Likewise.
30442         * modules/sys_utsname: Likewise.
30443         * modules/sys_wait: Likewise.
30444
30445 2009-09-01  Jim Meyering  <meyering@redhat.com>
30446
30447         fts: help ensure that return values are not ignored
30448         * lib/fts_.h (__GNUC_PREREQ): Define.
30449         (__attribute_warn_unused_result__): Define.
30450         (fts_children, fts_close, fts_open, fts_read): Declare with
30451         __attribute_warn_unused_result__.
30452
30453         fts: fts_close now fails also when closing a dir file descriptor fails
30454         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30455         and propagate to caller, along with errno.
30456
30457         announce-gen: correct formatting in --help output
30458         * build-aux/announce-gen (usage): Move the one-line description in
30459         --help output "up", to where it belongs, just after Usage:.
30460
30461 2009-08-31  Eric Blake  <ebb9@byu.net>
30462
30463         fchdir: port to mingw
30464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30465         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30466         opened, then use a substitute.
30467         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30468         replacement.
30469         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30470         (_gl_register_fd): No need to check stat if open already filters
30471         all directories.
30472         (fchdir): Fix error condition to match POSIX.
30473         * modules/fchdir (Depends-on): Add sys_stat.
30474         * doc/posix-functions/open.texi (open): Document the limitation.
30475         * modules/fchdir-tests: New file.
30476         * tests/test-fchdir.c: Likewise.
30477
30478         canonicalize: allow cross-testing from cygwin to mingw
30479         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30480         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30481         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30482         Likewise.
30483         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30484         target does not support symlinks.
30485         * tests/test-canonicalize-lgpl.sh: Likewise.
30486
30487         chown: avoid compilation warning on mingw
30488         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30489         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30490         mingw.
30491         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30492         * modules/chown (Depends-on): Add errno.
30493
30494 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30495
30496         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30497         command.
30498
30499 2009-08-31  Jim Meyering  <meyering@redhat.com>
30500
30501         canonicalize: remove useless initialization
30502         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30503         initialization of local, "end".
30504
30505 2009-08-30  Bruno Haible  <bruno@clisp.org>
30506
30507         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30508         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30509         ENOSYS.
30510
30511 2009-08-30  Bruno Haible  <bruno@clisp.org>
30512
30513         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30514         /usr/xpg4/bin/tr when it exists.
30515         * tests/test-pipe-filter-gi1.sh: Likewise.
30516
30517 2009-08-30  Bruno Haible  <bruno@clisp.org>
30518
30519         Work around deficient /usr/bin/id program on Solaris.
30520         * tests/test-file-has-acl.sh (ID): New variable.
30521         * tests/test-set-mode-acl.sh (ID): Likewise.
30522         * tests/test-copy-acl.sh (ID): Likewise.
30523         * tests/test-copy-file.sh (ID): Likewise.
30524
30525 2009-08-30  Bruno Haible  <bruno@clisp.org>
30526
30527         New module 'xstriconveh'.
30528         * lib/xstriconveh.h: New file.
30529         * lib/xstriconveh.c: New file.
30530         * modules/xstriconveh: New file.
30531
30532 2009-08-30  Bruno Haible  <bruno@clisp.org>
30533
30534         Make it easier to use mem_cd_iconveh.
30535         * lib/striconveh.h (iconveh_t): New type.
30536         (iconveh_open, iconveh_close): New declarations.
30537         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30538         with a single 'const iconveh_t *' argument.
30539         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30540         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30541         with a single 'const iconveh_t *' argument.
30542         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30543         * tests/test-striconveh.c (main): Update.
30544         * NEWS: Mention the change.
30545
30546 2009-08-30  Bruno Haible  <bruno@clisp.org>
30547
30548         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30549         problem.
30550
30551 2009-08-30  Bruno Haible  <bruno@clisp.org>
30552
30553         Work around iconv_open problem on Solaris.
30554         * lib/iconv_open-solaris.gperf: New file.
30555         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30556         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30557         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30558         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30559         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30560         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30561
30562 2009-08-29  Jim Meyering  <meyering@redhat.com>
30563
30564         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30565         * top/maint.mk (cvs-check): Remove target; it was just an alias
30566         to the better-named vc-diff-check.
30567         (maintainer-distcheck): Remove rule.  It was used only from
30568         the (alpha/beta/major) target, and all of its commands but one
30569         were coreutils-specific.
30570         (vc-dist): Remove rule.
30571         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30572         Run vc-diff-check, not vc-dist.
30573         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30574
30575 2009-08-27  Bruno Haible  <bruno@clisp.org>
30576
30577         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30578         of 0.
30579
30580 2009-08-27  Bruno Haible  <bruno@clisp.org>
30581
30582         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30583         compilers.
30584         * doc/func.texi: Document the SunPRO C bug.
30585
30586 2009-08-27  Bruno Haible  <bruno@clisp.org>
30587
30588         Fix link error on Solaris.
30589         * tests/test-parse-duration.c (xstrdup): Remove function.
30590
30591 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30592
30593         ignore-value: handle pointer types, too
30594         * lib/ignore-value.h (__attribute__): Remove definition.
30595         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30596         of a more concise and more-often effective "(void) i" statement.
30597         (ignore_ptr): New function to suppress warnings from functions that
30598         return pointers, and to make it explicit that one function doesn't
30599         handle all cases.
30600
30601 2009-08-25  Bruno Haible  <bruno@clisp.org>
30602
30603         dup2: work around a Linux bug.
30604         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30605         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30606         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30607         Reported by Simon Josefsson.
30608
30609 2009-08-25  Jim Meyering  <meyering@redhat.com>
30610
30611         libguestfs uses gnulib
30612         * users.txt: Add libguestfs.
30613
30614 2009-08-24  Eric Blake  <ebb9@byu.net>
30615
30616         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30617         * lib/pipe2.c (includes): Add binary-io.h.
30618         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30619
30620 2009-08-24  Bruno Haible  <bruno@clisp.org>
30621
30622         Tolerate declared but missing accept4 syscall.
30623         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30624         available.
30625         * lib/sys_socket.in.h (accept4): If the function is already present,
30626         override it.
30627         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30628         * modules/accept4 (Makefile.am): Compile accept4.c always.
30629         Reported by Paolo Bonzini and Eric Blake.
30630
30631 2009-08-23  Bruno Haible  <bruno@clisp.org>
30632
30633         New module 'accept4'.
30634         * lib/sys_socket.in.h (accept4): New declaration.
30635         * lib/accept4.c: New file.
30636         * m4/accept4.m4: New file.
30637         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30638         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30639         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30640         HAVE_ACCEPT4.
30641         * modules/accept4: New file.
30642         * doc/glibc-functions/accept4.texi: Mention the new module.
30643
30644 2009-08-24  Jim Meyering  <meyering@redhat.com>
30645
30646         progname: also set global program_invocation_name, when possible
30647         Before this change, a libtool-enabled program that calls glibc's
30648         error function would report the program name as
30649         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30650         * modules/progname (configure.ac): Check for a declaration of
30651         program_invocation_name.
30652         * lib/progname.c:  Include <errno.h>.
30653         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30654         Set program_invocation_name.
30655
30656 2009-08-23  Bruno Haible  <bruno@clisp.org>
30657
30658         * lib/dup3.c: Include <string.h>.
30659
30660 2009-08-23  Bruno Haible  <bruno@clisp.org>
30661
30662         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30663         * lib/pipe2.c (pipe2): Likewise.
30664         Suggested by Eric Blake.
30665
30666 2009-08-23  Bruno Haible  <bruno@clisp.org>
30667
30668         Tolerate declared but missing dup3 syscall.
30669         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30670         * lib/unistd.in.h (dup3): If the function is already present,
30671         override it.
30672         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30673         * modules/dup3 (Makefile.am): Compile dup3.c always.
30674         Reported by Paolo Bonzini.
30675
30676 2009-08-23  Bruno Haible  <bruno@clisp.org>
30677
30678         Tolerate declared but missing pipe2 syscall.
30679         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30680         available.
30681         * lib/unistd.in.h (pipe2): If the function is already present,
30682         override it.
30683         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30684         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30685         Reported by Paolo Bonzini.
30686
30687 2009-08-23  Bruno Haible  <bruno@clisp.org>
30688
30689         * lib/pipe2.c (pipe2): Move #ifs inside function.
30690
30691 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30692
30693         quotearg: document limitations of quote_these_too
30694         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30695         those limitations are created.
30696         * lib/quotearg.h (set_char_quoting): Document that digits and
30697         letters that are special after backslash are not permitted.
30698         (quotearg_char): Cross-reference set_char_quoting documentation.
30699
30700 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30701
30702         quotearg: implement custom_quoting_style
30703         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30704         right_quote fields.
30705         (set_custom_quoting): New public function.
30706         (quotearg_buffer_restyled): Add left_quote and right_quote
30707         arguments, handle them very much like locale quoting, and update
30708         all uses.
30709         (quotearg_n_custom): New public function.
30710         (quotearg_n_custom_mem): New public function.
30711         (quotearg_custom): New public function.
30712         (quotearg_custom_mem): New public function.
30713         * lib/quotearg.h: Prototype and document new public functions.
30714         (enum quoting_style): For escape_quoting_style and
30715         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30716         ignored even though they're otherwise like c_quoting_style.
30717         Add custom_quoting_style member and document with comparison to
30718         clocale_quoting_style.
30719         * tests/test-quotearg.c (custom_quotes): New array.
30720         (custom_results): New array.
30721         (main): Extend to test custom quoting.
30722
30723 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30724
30725         quotearg: fix right quote escaping when it's in quote_these_too
30726         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30727         quote, be sure to prepend only one backslash.
30728         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30729         (main): Test it.
30730
30731 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30732
30733         quotearg-tests: test escaping of embedded locale quotes
30734         * tests/test-quotearg.c (struct result_strings): Add member for
30735         new input.
30736         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30737         (inputs): Add new input.
30738         (results_g): Add expected results.
30739         (flag_results): Likewise.
30740         (locale_results): Likewise.
30741         (compare_strings): Check those.
30742
30743 2009-08-23  Bruno Haible  <bruno@clisp.org>
30744
30745         Tests for module 'dup3'.
30746         * modules/dup3-tests: New file.
30747         * tests/test-dup3.c: New file.
30748
30749         New module 'dup3'.
30750         * lib/unistd.in.h (dup3): New declaration.
30751         * lib/dup3.c: New file.
30752         * m4/dup3.m4: New file.
30753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30754         HAVE_DUP3.
30755         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30756         * modules/dup3: New file.
30757         * doc/glibc-functions/dup3.texi: Mention the new module.
30758
30759 2009-08-23  Bruno Haible  <bruno@clisp.org>
30760
30761         Tweak the dup2 test.
30762         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30763         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30764         the test file is still empty. Fix argument order of lseek.
30765
30766 2009-08-23  Bruno Haible  <bruno@clisp.org>
30767
30768         Avoid test link errors when the modules getopt-gnu, gettext are used.
30769         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30771
30772 2009-08-23  Bruno Haible  <bruno@clisp.org>
30773
30774         Fix getdtablesize() on mingw.
30775         * lib/getdtablesize.c (getdtablesize): Implement differently.
30776         * lib/unistd.in.h (getdtablesize): Improve comment.
30777
30778 2009-08-23  Bruno Haible  <bruno@clisp.org>
30779
30780         New module 'mkostemp'.
30781         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30782         * lib/stdlib.in.h (mksotemp): New declaration.
30783         * lib/mkostemp.c: New file, from glibc with modifications.
30784         * lib/tempname.h (GT_FILE): Remove outdated comment.
30785         (gen_tempname): Add flags argument.
30786         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30787         (__GT_FILE): Map to 1.
30788         (small_open, large_open): Remove macros.
30789         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30790         * lib/mkstemp.c (mkstemp): Update.
30791         * lib/mkdtemp.c (mkdtemp): Likewise.
30792         * m4/mkostemp.m4: New file.
30793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30794         HAVE_MKOSTEMP.
30795         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30796         HAVE_MKOSTEMP.
30797         * modules/mkostemp: New file, based on modules/mkstemp.
30798         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30799         * NEWS: Mention the change.
30800
30801 2009-08-23  Bruno Haible  <bruno@clisp.org>
30802
30803         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30804         Reported by Eric Blake.
30805
30806 2009-08-23  Bruno Haible  <bruno@clisp.org>
30807
30808         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30809         Reported by Eric Blake.
30810
30811 2009-08-23  Bruno Haible  <bruno@clisp.org>
30812
30813         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30814         * modules/pipe2 (Depends-on): Likewise.
30815
30816 2009-08-23  Eric Blake  <ebb9@byu.net>
30817
30818         fcntl-h: add O_TTY_INIT support
30819         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30820         * tests/test-fcntl-h.c (o): Test it.
30821         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30822
30823         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30824         * modules/fcntl: Move <fcntl.h> header replacement...
30825         * modules/fcntl-h: ...to new name, so as not to collide with
30826         like-named function.
30827         * tests/test-fcntl.c: Rename...
30828         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30829         * modules/fcntl-tests: Rename...
30830         * modules/fcntl-h-tests: ...to this.  Update test file name.
30831         * modules/chdir-long (Depends-on): Update clients.
30832         * modules/chdir-safer (Depends-on): Likewise.
30833         * modules/fcntl-safer (Depends-on): Likewise.
30834         * modules/fts (Depends-on): Likewise.
30835         * modules/mkancesdirs (Depends-on): Likewise.
30836         * modules/mkdir-p (Depends-on): Likewise.
30837         * modules/open (Depends-on): Likewise.
30838         * modules/savewd (Depends-on): Likewise.
30839         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30840         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30841
30842 2009-08-22  Bruno Haible  <bruno@clisp.org>
30843
30844         * modules/binary-io (License): Relicense under LGPL.
30845         * modules/pipe2 (License): Likewise.
30846
30847 2009-08-22  Bruno Haible  <bruno@clisp.org>
30848
30849         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30850         return value.
30851         * lib/pipe-filter-gi.c (filter_init): Likewise.
30852         Reported by Eric Blake.
30853
30854 2009-08-22  Bruno Haible  <bruno@clisp.org>
30855
30856         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30857         * modules/pipe (Depends-on): Add pipe2.
30858
30859 2009-08-22  Bruno Haible  <bruno@clisp.org>
30860
30861         Tests for module 'pipe2'.
30862         * modules/pipe2-tests: New file.
30863         * tests/test-pipe2.c: New file.
30864
30865         New module 'pipe2'.
30866         * lib/unistd.in.h (pipe2): New declaration.
30867         * lib/pipe2.c: New file.
30868         * m4/pipe2.m4: New file.
30869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30870         HAVE_PIPE2.
30871         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30872         * modules/pipe2: New file.
30873         * doc/glibc-functions/pipe2.texi: Mention the new module.
30874
30875 2009-08-22  Bruno Haible  <bruno@clisp.org>
30876
30877         Reference some new glibc functions.
30878         * doc/glibc-functions/accept4.texi: New file.
30879         * doc/glibc-functions/dup3.texi: New file.
30880         * doc/glibc-functions/mkostemp.texi: New file.
30881         * doc/glibc-functions/pipe2.texi: New file.
30882         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30883         (Glibc sys/socket.h): Refer to accept4.
30884         (Glibc unistd.h): Refer to dup3, pipe2.
30885         Reported by Eric Blake.
30886
30887 2009-08-22  Jim Meyering  <meyering@redhat.com>
30888             Bruno Haible  <bruno@clisp.org>
30889
30890         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30891         This makes it so packages using automake-1.11's silent-rules option
30892         can print e.g., a single "GEN    configmake.h" line, rather than
30893         the 30+ statements that perform the job.  If you want to see the
30894         actual commands, you can still run "make V=1".
30895         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30896         so that make output is abbreviated when those variables are defined
30897         appropriately.
30898         * modules/argz: Likewise.
30899         * modules/arpa_inet: Likewise.
30900         * modules/byteswap: Likewise.
30901         * modules/configmake: Likewise.
30902         * modules/dirent: Likewise.
30903         * modules/errno: Likewise.
30904         * modules/fcntl: Likewise.
30905         * modules/float: Likewise.
30906         * modules/fnmatch: Likewise.
30907         * modules/getopt-posix: Likewise.
30908         * modules/glob: Likewise.
30909         * modules/iconv_open: Likewise.
30910         * modules/inttypes: Likewise.
30911         * modules/localcharset: Likewise.
30912         * modules/locale: Likewise.
30913         * modules/math: Likewise.
30914         * modules/netdb: Likewise.
30915         * modules/netinet_in: Likewise.
30916         * modules/poll: Likewise.
30917         * modules/posix_spawnp-tests: Likewise.
30918         * modules/sched: Likewise.
30919         * modules/search: Likewise.
30920         * modules/selinux-h: Likewise.
30921         * modules/signal: Likewise.
30922         * modules/spawn: Likewise.
30923         * modules/stdarg: Likewise.
30924         * modules/stdbool: Likewise.
30925         * modules/stddef: Likewise.
30926         * modules/stdint: Likewise.
30927         * modules/stdio: Likewise.
30928         * modules/stdlib: Likewise.
30929         * modules/string: Likewise.
30930         * modules/strings: Likewise.
30931         * modules/sys_file: Likewise.
30932         * modules/sys_ioctl: Likewise.
30933         * modules/sys_select: Likewise.
30934         * modules/sys_socket: Likewise.
30935         * modules/sys_stat: Likewise.
30936         * modules/sys_time: Likewise.
30937         * modules/sys_times: Likewise.
30938         * modules/sys_utsname: Likewise.
30939         * modules/sys_wait: Likewise.
30940         * modules/sysexits: Likewise.
30941         * modules/time: Likewise.
30942         * modules/unistd: Likewise.
30943         * modules/wchar: Likewise.
30944         * modules/wctype: Likewise.
30945
30946 2009-08-22  Jim Meyering  <meyering@redhat.com>
30947
30948         announce-gen: detect write failure
30949         * build-aux/announce-gen: Add Coda at end.
30950         Remove equivalent-but-more-verbose block at top.
30951
30952 2009-08-19  Akim Demaille  <demaille@gostai.com>
30953
30954         bootstrap: --help to stdout.
30955         * bootstrap (usage): Don't send --help to stderr.
30956         Use a here doc instead of a long string.
30957
30958 2009-08-21  Eric Blake  <ebb9@byu.net>
30959
30960         test-popen-safer: split from test-popen
30961         * tests/test-popen.c (main): Move...
30962         * tests/test-popen.h: ...into new file.
30963         * tests/test-popen-safer2.c: New file.
30964         * modules/popen-tests (Files): Add test-popen.h.
30965         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30966         Suggested by Bruno Haible.
30967
30968         test-fcntl-safer: split from test-open
30969         * tests/test-open.c (main): Move...
30970         * tests/test-open.h: ...into new file.
30971         * tests/test-fcntl-safer.c: New file.
30972         * modules/open-tests (Files): Add test-open.h.
30973         * modules/fcntl-safer-tests: New file.
30974         Suggested by Bruno Haible.
30975
30976         test-fopen-safer: split from test-fopen
30977         * tests/test-fopen.c (main): Move...
30978         * tests/test-fopen.h: ...into new file.
30979         * tests/test-fopen-safer.c: New file.
30980         * modules/fopen-tests (Files): Add test-fopen.h.
30981         * modules/fopen-safer-tests: New file.
30982         Suggested by Bruno Haible.
30983
30984 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30985
30986         popen-safer: test O_CLOEXEC at run-time.
30987         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30988
30989 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30990
30991         fcntl: move more flags to the header
30992         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30993         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30994         * lib/fcntl.in.h: Do both things here.
30995
30996 2009-08-21  Jim Meyering  <meyering@redhat.com>
30997
30998         consistently remove $@-t before redirecting to it
30999         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31000         * modules/alloca-opt: Likewise.
31001         * modules/byteswap: Likewise.
31002         * modules/fnmatch: Likewise.
31003         * modules/getopt-posix: Likewise.
31004         * modules/glob: Likewise.
31005         * modules/poll: Likewise.
31006         * modules/posix_spawnp-tests: Likewise.
31007         * modules/sys_socket: Likewise.
31008         * modules/sysexits: Likewise.
31009
31010 2009-08-21  Eric Blake  <ebb9@byu.net>
31011
31012         popen: simplify access to original popen
31013         * lib/popen.c (rpl_popen): No need to worry about popen being a
31014         macro.
31015         Reported by Bruno Haible.
31016
31017 2009-08-20  Eric Blake  <ebb9@byu.net>
31018
31019         build: avoid some compiler warnings
31020         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31021         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31022         type.
31023         (new_exclude_segment, excluded_file_pattern_p)
31024         (excluded_file_name_p): Reduce scope.
31025         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31026         old-style declaration.
31027
31028 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31029
31030         * tests/test-exclude1.sh: Handle Windows EOL.
31031         * tests/test-exclude2.sh: Likewise.
31032         * tests/test-exclude3.sh: Likewise.
31033         * tests/test-exclude4.sh: Likewise.
31034         * tests/test-exclude5.sh: Likewise.
31035         * tests/test-exclude6.sh: Likewise.
31036         * tests/test-exclude7.sh: Likewise.
31037
31038 2009-08-19  Akim Demaille  <demaille@gostai.com>
31039
31040         bootstrap: find sha1sum when named gsha1sum.
31041         * bootstrap (find_tool): New.
31042         ($SHA1SUM): New.
31043         Use it.
31044
31045 2009-08-20  Jim Meyering  <meyering@redhat.com>
31046
31047         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31048         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31049         expression that converts "." in a file name to "\." in the resulting
31050         regexp.  Start with a dummy statement, so that prior shell variable
31051         definitions are expanded portably.  Reported by Simon Josefsson.
31052
31053 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31054
31055         Fix polling for writeability of a screen buffer.
31056         * lib/poll.c: Distinguish input and screen buffers for the
31057         Win32 implementation.
31058         * lib/select.c: Likewise.
31059
31060 2009-08-19  Eric Blake  <ebb9@byu.net>
31061
31062         popen-safer: prevent popen from clobbering std descriptors
31063         * modules/popen-safer: New file.
31064         * lib/popen-safer.c: Likewise.
31065         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31066         * lib/stdio--.h (popen): Provide override.
31067         * lib/stdio-safer.h (popen_safer): Provide declaration.
31068         * tests/test-popen.c (includes): Partially test this.
31069         * modules/popen-safer-tests: New file, for more tests.
31070         * tests/test-popen-safer.c: Likewise.
31071         * MODULES.html.sh (file stream based Input/Output): Mention it.
31072
31073         tests: test some of the *-safer modules
31074         * modules/fopen-safer (Depends-on): Add fopen.
31075         * modules/fcntl-safer (Depends-on): Add fcntl.
31076         * modules/stdlib-safer (Depends-on): Add stdlib.
31077         (configure.ac): Set indicator.
31078         * modules/unistd-safer (configure.ac): Likewise.
31079         * modules/tmpfile-safer (configure.ac): Likewise.
31080         (Depends-on): Add tmpfile.
31081         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31082         active.
31083         * tests/test-fopen.c (includes): Test safer versions when they are
31084         in use.
31085         * tests/test-open.c (includes): Likewise.
31086
31087         popen: fix cygwin 1.5 bug when stdin closed
31088         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31089         * modules/popen: New file.
31090         * modules/popen-tests: Likewise.
31091         * tests/test-popen.c: Likewise.
31092         * m4/popen.m4: Likewise.
31093         * lib/popen.c: Likewise.
31094         * lib/stdio.in.h (popen): New declaration.
31095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31096         * modules/stdio (Makefile.am): Likewise.
31097         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31098
31099 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31100
31101         maint.mk: give full control over update-copyright exclusions
31102         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31103         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31104         (update-copyright): Don't force inclusion of top-level
31105         ChangeLog.  Don't force exclusion of all COPYING files, but make
31106         them the default exclusion instead.
31107
31108 2009-08-16  Bruno Haible  <bruno@clisp.org>
31109
31110         Fix test failures on Solaris 10.
31111         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31112         tests when Solaris iconv() is used.
31113         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31114         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31115         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31116         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31117         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31118
31119 2009-08-16  Bruno Haible  <bruno@clisp.org>
31120
31121         Fix test failures on Solaris 10.
31122         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31123         'tr' program and pass it as first argument.
31124         * tests/test-pipe-filter-gi1.sh: Likewise.
31125         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31126         program as first argument.
31127         * tests/test-pipe-filter-gi1.c (main): Likewise.
31128
31129 2009-08-16  Eric Blake  <ebb9@byu.net>
31130
31131         fpurge: fix previous commits
31132         * modules/fpurge (Makefile.am): Make replacement conditional,
31133         partially reverting 2007-04-29 change; missed in previous
31134         attempt.
31135         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31136         is missing.
31137
31138 2009-08-16  Bruno Haible  <bruno@clisp.org>
31139
31140         Clarify fpurge's effect on the file position.
31141         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31142         * tests/test-fpurge.c (main): Make a second pass for checking the file
31143         position.
31144
31145 2009-08-16  Bruno Haible  <bruno@clisp.org>
31146
31147         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31148         declaration of fpurge is missing.
31149         * tests/test-fpurge.c (main): Check that the file has not more contents
31150         than expected. Close the file before removing it.
31151
31152 2009-08-15  Eric Blake  <ebb9@byu.net>
31153
31154         fpurge: don't wrap working cygwin implementation
31155         * lib/fpurge.c (fpurge): Fix comment typo.
31156         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31157         1.7 to avoid replacement.
31158         * tests/test-fpurge.c (main): Enhance test.
31159
31160 2009-08-15  Eric Blake  <ebb9@byu.net>
31161         and Jim Meyering  <meyering@redhat.com>
31162
31163         test-update-copyright: skip if perl is insufficient
31164         * tests/test-update-copyright.sh: Failure to run maintainer tool
31165         should not cause testsuite failure on cygwin 1.5.
31166
31167 2009-08-14  Eric Blake  <ebb9@byu.net>
31168
31169         doc: mention more functions added in cygwin 1.7.0
31170         * doc/posix-headers/limits.texi (limits.h): Update for recent
31171         cygwin additions.
31172         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31173         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31174         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31175         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31176         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31177
31178 2009-08-14  Eric Blake  <ebb9@byu.net>
31179
31180         maint.mk: simplify update-copyright rule
31181         * top/maint.mk (update-copyright-local): Delete, and document how
31182         to do it in cfg.mk instead.
31183         (update-copyright-exclude-regexp): Delete, and document how to do
31184         it in .x-update-copyright instead.
31185         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31186         exclude ChangeLog.
31187
31188 2009-08-14  Bruno Haible  <bruno@clisp.org>
31189
31190         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31191
31192 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31193
31194         maint.mk: support update-copyright-env
31195         * top/maint.mk (update-copyright-env): Define place-holder.
31196         (update-copyright): Expand $(update-copyright-env) before
31197         invoking update-copyright.
31198
31199 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31200
31201         update-copyright: implement forced reformatting
31202         * build-aux/update-copyright: Implement and document
31203         UPDATE_COPYRIGHT_FORCE.
31204         * tests/test-update-copyright.sh: Test it.
31205
31206 2009-08-14  Eric Blake  <ebb9@byu.net>
31207         and Bruno Haible  <bruno@clisp.org>
31208
31209         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31210         * tests/test-locale.c: Revert previous patch related to NULL.
31211         * tests/test-stdio.c: Likewise.
31212         * tests/test-stdlib.c: Likewise.
31213         * tests/test-string.c: Likewise.
31214         * tests/test-unistd.c: Likewise.
31215         * modules/time-tests (Depends-on): Add verify.
31216         * modules/wchar-tests (Depends-on): Likewise.
31217         * tests/test-time.c: Test for NULL compliance.
31218         * tests/test-wchar.c: Likewise.
31219         * modules/locale (Depends-on): Add stddef.
31220         * modules/stdio (Depends-on): Likewise.
31221         * modules/stdlib (Depends-on): Likewise.
31222         * modules/string (Depends-on): Likewise.
31223         * modules/time (Depends-on): Likewise.
31224         * modules/unistd (Depends-on): Likewise.
31225         * modules/wchar (Depends-on): Likewise.
31226         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31227         * lib/stdlib.in.h (includes): Likewise.
31228         * lib/string.in.h (includes): Likewise.
31229         * lib/time.in.h (includes): Likewise.
31230         * lib/unistd.in.h (includes): Likewise.
31231         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31232         replaced.
31233         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31234         * m4/stddef_h.m4: New file.
31235         * modules/stddef: Likewise.
31236         * lib/stddef.in.h: Likewise.
31237         * modules/stddef-tests: Likewise.
31238         * tests/test-stddef.c: Likewise.
31239         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31240         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31241         * doc/posix-headers/locale.texi (locale.h): Likewise.
31242         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31243         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31244         * doc/posix-headers/string.texi (string.h): Likewise.
31245         * doc/posix-headers/time.texi (time.h): Likewise.
31246         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31247         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31248
31249 2009-08-14  Eric Blake  <ebb9@byu.net>
31250
31251         doc: improve git diff of texinfo files
31252         * .gitattributes: Add rule for *.texi files, with hint on how to
31253         use it.
31254         Copied from m4, and based on a report by Bruno Haible.
31255
31256 2009-08-14  Bruno Haible  <bruno@clisp.org>
31257
31258         Disable multithread support by default on Cygwin 1.5.x for real.
31259         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31260
31261 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31262
31263         update-copyright: much ado about intervals
31264         * build-aux/update-copyright: Implement and document
31265         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31266         of copyright year intervals.
31267         Also, document UPDATE_COPYRIGHT_YEAR.
31268         * tests/test-update-copyright.sh: Test it.
31269
31270         update-copyright: convert 2-digit to 4-digit years
31271         * build-aux/update-copyright: Implement and document.
31272         * tests/test-update-copyright.sh: Update.
31273
31274 2009-08-14  Jim Meyering  <meyering@redhat.com>
31275
31276         test-exclude: avoid coreutils "make check" failure
31277         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31278         just as in test-argmatch.c.
31279
31280 2009-08-13  Eric Blake  <ebb9@byu.net>
31281
31282         test-dup2: fix bad assumption
31283         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31284         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31285
31286         test-version-etc: fix CRLF portability issue
31287         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31288         recognize \r.
31289         * tests/test-argp-version-etc-1.sh: Likewise.
31290
31291         getopt: update client modules
31292         * modules/argp (Depends-on): Use getopt-gnu.
31293         * modules/git-merge-changelog (Depends-on): Likewise.
31294         * modules/long-options (Depends-on): Likewise.
31295         * modules/xstrtol (Depends-on): Likewise.
31296
31297 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31298
31299         * tests/test-version-etc.sh: Don't fail on different
31300         project/version.  Don't fail on CRLF differences.  Rewrite to use
31301         multiple -e instead of multiple sed forks, suggested by Eric Blake
31302         <ebb9@byu.net>.
31303         * tests/test-argp-version-etc-1.sh: Likewise.
31304
31305 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31306
31307         * tests/test-version-etc.sh: Don't fail on different
31308         project/version.
31309
31310 2009-08-12  Bruno Haible  <bruno@clisp.org>
31311
31312         Tests for modules 'getopt-posix', 'getopt-gnu'.
31313         * modules/getopt-posix-tests: New file.
31314         * tests/test-getopt.c: New file.
31315         * tests/test-getopt.h: New file.
31316         * tests/test-getopt_long.h: New file.
31317
31318         New modules 'getopt-posix', 'getopt-gnu'.
31319         * modules/getopt-gnu: New file, renamed from modules/getopt.
31320         * modules/getopt-posix: New file.
31321         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31322         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31323         (gl_GETOPT): Remove macro.
31324         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31325         Disable the test against BSD systems that declare optreset. Test
31326         against mingw bug. Test against lack of support of optional arguments
31327         on many platforms.
31328         * doc/glibc-headers/getopt.texi: Update module name and list of
31329         relevant platforms.
31330         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31331         'getopt-gnu' and more portability problems.
31332         * NEWS: Mention the changes.
31333
31334 2009-08-12  Bruno Haible  <bruno@clisp.org>
31335
31336         Ensure that optarg etc. get declared by <unistd.h>.
31337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31338         AC_USE_SYSTEM_EXTENSIONS.
31339         * modules/getopt (Depends-on): Add 'extensions'.
31340
31341 2009-08-12  Bruno Haible  <bruno@clisp.org>
31342
31343         Avoid test link errors.
31344         * modules/pipe-filter-ii-tests (Makefile.am): Define
31345         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31346         * modules/pipe-filter-gi-tests (Makefile.am): Define
31347         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31349
31350 2009-08-12  Bruno Haible  <bruno@clisp.org>
31351
31352         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31353         gl_GETOPT_SUBSTITUTE before.
31354         (gl_GETOPT): Use it.
31355         * m4/argp.m4 (gl_ARGP): Update.
31356         Reported by Sergey Poznyakoff.
31357
31358         * m4/getopt.m4: Reorder macros.
31359         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31360         (gl_GETOPT_SUBSTITUTE): Remove macro.
31361
31362 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31363
31364         Minor improvement in gitlog-to-changelog
31365
31366         * build-aux/gitlog-to-changelog: New option `--format' makes
31367         output format string configurable.
31368
31369 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31370
31371         Optimize exclude: use hash tables for non-wildcard patterns.
31372
31373         * lib/exclude.c: Include hash.h and mbuiter.h
31374         (struct exclude_pattern, exclude_segment): New data types.
31375         (struct exclude): Rewrite.
31376         (fnmatch_pattern_has_wildcards): New function.
31377         (new_exclude_segment, free_exclude_segment): New functions.
31378         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31379         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31380         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31381         * modules/exclude: Depend on hash and mbuiter.
31382
31383         * modules/exclude-tests: New file.
31384         * tests/test-exclude.c: New file.
31385         * tests/test-exclude1.sh: New file.
31386         * tests/test-exclude2.sh: New file.
31387         * tests/test-exclude3.sh: New file.
31388         * tests/test-exclude4.sh: New file.
31389         * tests/test-exclude5.sh: New file.
31390         * tests/test-exclude6.sh: New file.
31391         * tests/test-exclude7.sh: New file.
31392
31393 2009-08-12  Bruno Haible  <bruno@clisp.org>
31394
31395         Ensure that getopt() gets declared by <unistd.h>.
31396         * lib/unistd.in.h: Conditionally include getopt.h.
31397         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31398         Set GNULIB_UNISTD_H_GETOPT.
31399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31400         GNULIB_UNISTD_H_GETOPT.
31401         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31402
31403 2009-08-12  Bruno Haible  <bruno@clisp.org>
31404
31405         Clarify logic.
31406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31407         gl_replace_getopt instead of GETOPT_H.
31408
31409 2009-08-12  Bruno Haible  <bruno@clisp.org>
31410
31411         * m4/getopt.m4: Add comments.
31412
31413 2009-08-12  Bruno Haible  <bruno@clisp.org>
31414
31415         Disable multithread support by default on Cygwin 1.5.x.
31416         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31417         set gl_use_threads=no if not specified otherwise.
31418
31419 2009-08-11  Bruno Haible  <bruno@clisp.org>
31420
31421         Avoid compilation error on NetBSD 5.0.
31422         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31423         * tests/test-stdio.c: Likewise.
31424         * tests/test-stdlib.c: Likewise.
31425         * tests/test-string.c: Likewise.
31426         * tests/test-unistd.c: Likewise.
31427         Reported by Greg Troxel <gdt@ir.bbn.com>
31428         at <https://savannah.gnu.org/support/?106973>.
31429
31430 2009-08-11  Bruno Haible  <bruno@clisp.org>
31431
31432         * modules/dup2-tests (Depends-on): Remove close.
31433
31434         Undo 2009-07-19 commit.
31435         * modules/acl-tests (Depends-on): Remove close.
31436         * modules/binary-io-tests (Depends-on): Likewise.
31437         * modules/closein-tests (Depends-on): Likewise.
31438         * modules/flock-tests (Depends-on): Likewise.
31439         * modules/fsync-tests (Depends-on): Likewise.
31440         * modules/lseek-tests (Depends-on): Likewise.
31441         * modules/pipe-tests (Depends-on): Likewise.
31442         * modules/posix_spawn-tests (Depends-on): Likewise.
31443         * modules/posix_spawnp-tests (Depends-on): Likewise.
31444         * modules/stat-time-tests (Depends-on): Likewise.
31445         * modules/yesno-tests (Depends-on): Likewise.
31446
31447 2009-08-10  Bruno Haible  <bruno@clisp.org>
31448
31449         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31450
31451 2009-08-10  Bruno Haible  <bruno@clisp.org>
31452
31453         Fix a gcc warning.
31454         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31455
31456 2009-08-10  Bruno Haible  <bruno@clisp.org>
31457
31458         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31459         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31460         not only the first time.
31461         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31462         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31463         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31464         is 1, not only the the first time.
31465
31466 2009-08-10  Bruno Haible  <bruno@clisp.org>
31467
31468         Make it possible to use module 'gethostname' without module 'close'.
31469         * lib/unistd.in.h (close): Evoke a link error only if
31470         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31472         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31473         * modules/unistd (Makefile.am): Substitute
31474         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31475         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31476         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31478         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31479         * modules/sys_ioctl (Makefile.am): Substitute
31480         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31481         * modules/socket (configure.ac): On native Windows, set
31482         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31483         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31484         Reported by Sam Steingold <sds@gnu.org>.
31485
31486 2009-08-10  Bruno Haible  <bruno@clisp.org>
31487
31488         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31489         * modules/ioctl (configure.ac): Likewise.
31490
31491 2009-08-10  Bruno Haible  <bruno@clisp.org>
31492
31493         Avoid collision between gnulib wrapper and libintl wrapper.
31494         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31495         already defined in intl/printf.c.
31496         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31497         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31498
31499 2009-08-09  Bruno Haible  <bruno@clisp.org>
31500
31501         Make <sys/select.h> really self-contained, also on Solaris 10.
31502         * lib/sys_select.in.h: Include <string.h>.
31503         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31504         Solaris 10 problem.
31505         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31506         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31507         Reported by Jim Meyering.
31508
31509 2009-08-09  Bruno Haible  <bruno@clisp.org>
31510
31511         Avoid warnings from 'aclocal' that are due to a use of macro name
31512         AM_XGETTEXT_OPTION that is not defined in automake.
31513         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31514         automake.
31515         * modules/error (configure.ac): Likewise.
31516         * modules/propername (configure.ac): Likewise.
31517         * modules/vasprintf (configure.ac): Likewise.
31518         * modules/verror (configure.ac): Likewise.
31519         * modules/xprintf (configure.ac): Likewise.
31520         * modules/xvasprintf (configure.ac): Likewise.
31521
31522 2009-08-08  Bruno Haible  <bruno@clisp.org>
31523
31524         Avoid compilation error in C++ mode.
31525         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31526         Reported by Sam Steingold <sds@gnu.org>.
31527
31528 2009-08-08  Bruno Haible  <bruno@clisp.org>
31529
31530         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31531         for the various Unix platforms.
31532         * doc/posix-headers/limits.texi: Update platforms list regarding
31533         HOST_NAME_MAX.
31534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31535
31536 2009-08-07  Jim Meyering  <meyering@redhat.com>
31537
31538         selinux-at: fix typo in a comment
31539         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31540         Spotted by Paolo Bonzini.
31541
31542         selinux-at: remove redundant m4 code, add documentation
31543         * modules/selinux-at (configure.ac): Remove redundant code.
31544         LIB_SELINUX is already set via the dependent module, selinux-h.
31545         (Include): Add quotes around selinux-at.h.
31546         * lib/selinux-at.h: Add documentation.
31547         Reported by Bruno Haible in
31548         http://marc.info/?l=gnulib-bug&m=124958988300749
31549
31550 2009-08-07  Bruno Haible  <bruno@clisp.org>
31551
31552         Avoid link error on MacOS X 10.3 and 10.4.
31553         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31554         on non-ELF systems.
31555         * lib/argp-pv.c (argp_program_version): Likewise.
31556         Reported by Simon Josefsson.
31557
31558 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31559
31560         * tests/test-version-etc.sh: Use $EXEEXT.
31561
31562 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31563
31564         update-copyright: update documentation to point to maint.mk
31565         * build-aux/update-copyright: Here.
31566
31567 2009-08-06  Jim Meyering  <meyering@redhat.com>
31568
31569         maint.mk: support update-copyright-local
31570         * top/maint.mk (update-copyright-local): Define place-holder.
31571         (update-copyright): Depend on $(update-copyright-local).
31572
31573 2009-08-06  Jim Meyering  <meyering@redhat.com>
31574
31575         selinux-at: new module
31576         Initially written for coreutils, this module will soon be
31577         used by findutils, too.
31578         * MODULES.html.sh [Misc]: Add selinux-at.
31579         * lib/selinux-at.h: New file, from coreutils.
31580         * lib/selinux-at.c: Likewise.
31581         * modules/selinux-at: Likewise.
31582         (License): Change from LGPL to GPL, since it depends
31583         on the GPL'd openat module.
31584
31585         doc: update README
31586         * README: Remove references to cogito.
31587         Remove cvs-repo-updating instructions from 2007.
31588         Don't imply that CVS is better if you have limited disk space.
31589
31590 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31591
31592         update-copyright: support C-style comments
31593         * build-aux/update-copyright: Implement and document.
31594         * tests/test-update-copyright.sh: Test.
31595
31596 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31597
31598         update-copyright: support omitted "(C)"
31599         * build-aux/update-copyright: Implement and document.  Also,
31600         allow variable whitespace before "(C)".
31601         * tests/test-update-copyright.sh: Test.
31602
31603 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31604
31605         update-copyright: don't trip on non-FSF copyright statements
31606         * build-aux/update-copyright: Fix so that the first correctly
31607         formatted FSF copyright statement is recognized no matter what
31608         appears before it.  Update documentation.
31609         * tests/test-update-copyright.sh: Test that.
31610
31611 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31612
31613         update-copyright: clean up code a little
31614         * build-aux/update-copyright: Append "_re" to the name of any
31615         variable holding a regular expression.
31616         Replace "old" and "new" with "stmt" in variable names.
31617         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31618         handled correctly.
31619         Format code more consistently.
31620
31621 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31622
31623         update-copyright-tests: improve portability
31624         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31625         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31626
31627 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31628
31629         update-copyright: support @copyright{} and &copy;
31630         * build-aux/update-copyright: Implement and document.
31631         * tests/test-update-copyright.sh: Test.
31632
31633 2009-08-04  Jim Meyering  <meyering@redhat.com>
31634
31635         update-copyright-tests: correctly test EOL=\r\n handling
31636         * tests/test-update-copyright.sh: Put \r at the end of some lines
31637         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31638
31639         maint.mk: make update-copyright exclusion list more configurable
31640         * top/maint.mk (update-copyright): Default to excluding COPYING,
31641         but allow an override, in case someone does want to update that file.
31642
31643         maint.mk: don't update copyright date in COPYING
31644         * top/maint.mk (update-copyright): Exclude COPYING.
31645
31646         maint.mk: add a copyright-updating rule
31647         * top/maint.mk (update-copyright): New rule.
31648         Derived from coreutils/Makefile.am.
31649
31650         update-copyright: rename some variables
31651         * build-aux/update-copyright: Rename a few variables for clarity.
31652         Tweak syntax.  List Joel E. Denny as coauthor.
31653
31654 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31655
31656         update-copyright: fix bug for 2-digit last year and add tests
31657         * build-aux/update-copyright: Fix bug.
31658         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31659         specified.
31660         * modules/update-copyright-tests: New
31661         * tests/test-update-copyright.sh: New.
31662
31663 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31664
31665         update-copyright: handle leading tabs in line prefix
31666         * build-aux/update-copyright: Count leading tabs as 8 spaces
31667         when computing margin.  This helps with the formatting of
31668         ChangeLogs, for example.
31669         Fix documentation a little.
31670
31671 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31672
31673         update-copyright: support EOL=\r\n
31674         * build-aux/update-copyright: Implement that.
31675
31676 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31677
31678         update-copyright: automatically format copyright statements
31679         * build-aux/update-copyright: Implement that.
31680         Also, be a little more predictable and safer by always failing
31681         when the full copyright format is not perfectly recognized as an
31682         unbroken whole.  Discussed at
31683         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31684         Rewrite documentation.
31685
31686 2009-08-03  Bruno Haible  <bruno@clisp.org>
31687
31688         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31689
31690 2009-08-02  Bruno Haible  <bruno@clisp.org>
31691
31692         Tests for module 'uname'.
31693         * modules/uname-tests: New file.
31694         * tests/test-uname.c: New file.
31695
31696         New module 'uname'.
31697         * lib/uname.c: New file.
31698         * m4/uname.m4: New file.
31699         * modules/uname: New file.
31700         * doc/posix-functions/uname.texi: Mention the new module.
31701
31702 2009-08-02  Bruno Haible  <bruno@clisp.org>
31703
31704         Tests for module 'sys_utsname'.
31705         * modules/sys_utsname-tests: New file.
31706         * tests/test-sys_utsname.c: New file.
31707
31708         New module 'sys_utsname'.
31709         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31710         * m4/sys_utsname_h.m4: New file.
31711         * modules/sys_utsname: New file.
31712         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31713
31714 2009-08-02  Bruno Haible  <bruno@clisp.org>
31715
31716         Implicitly initialize the sockets library.
31717         * lib/gethostname.c: Include sockets.h.
31718         (rpl_gethostname): Invoke gl_sockets_startup.
31719         * lib/socket.c: Include sockets.h.
31720         (rpl_socket): Invoke gl_sockets_startup.
31721         * modules/gethostname (Depends-on): Add sockets.
31722         * modules/socket (Depends-on): Likewise.
31723         * tests/test-poll.c: Don't include sockets.h.
31724         (main): Don't invoke gl_sockets_startup.
31725         * tests/test-select.c: Don't include sockets.h.
31726         (main): Don't invoke gl_sockets_startup.
31727
31728 2009-08-02  Bruno Haible  <bruno@clisp.org>
31729
31730         Allow multiple calls to gl_sockets_startup.
31731         * lib/sockets.c (initialized_sockets_version): New variable.
31732         (gl_sockets_startup): Do nothing if already called for this or a higher
31733         version.
31734         (gl_sockets_cleanup): Reset initialized_sockets_version.
31735
31736 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31737
31738         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31739         different project/version.
31740
31741 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31742             Bruno Haible  <bruno@clisp.org>
31743
31744         Tests for module 'pipe-filter-gi'.
31745         * modules/pipe-filter-gi-tests: New file.
31746         * tests/test-pipe-filter-gi1.sh: New file.
31747         * tests/test-pipe-filter-gi1.c: New file.
31748         * tests/test-pipe-filter-gi2.sh: New file.
31749         * tests/test-pipe-filter-gi2-main.c: New file.
31750         * tests/test-pipe-filter-gi2-child.c: New file.
31751
31752         New module 'pipe-filter-gi'.
31753         * lib/pipe-filter-gi.c: New file.
31754         * modules/pipe-filter-gi: New file.
31755
31756 2009-08-02  Bruno Haible  <bruno@clisp.org>
31757             Paolo Bonzini  <bonzini@gnu.org>
31758
31759         Tests for module 'pipe-filter-ii'.
31760         * modules/pipe-filter-ii-tests: New file.
31761         * tests/test-pipe-filter-ii1.sh: New file.
31762         * tests/test-pipe-filter-ii1.c: New file.
31763         * tests/test-pipe-filter-ii2.sh: New file.
31764         * tests/test-pipe-filter-ii2-main.c: New file.
31765         * tests/test-pipe-filter-ii2-child.c: New file.
31766
31767         New module 'pipe-filter-ii'.
31768         * lib/pipe-filter.h: New file.
31769         * lib/pipe-filter-ii.c: New file.
31770         * lib/pipe-filter-aux.h: New file.
31771         * modules/pipe-filter-ii: New file.
31772
31773 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31774
31775         * lib/gc-libgcrypt.c: Change copyright to FSF.
31776         * lib/gc-gnulib.c: Likewise.
31777
31778 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31779
31780         * lib/gethostname.c: Include limits.h.
31781
31782 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31783             Bruno Haible  <bruno@clisp.org>
31784
31785         Ensure HOST_NAME_MAX as part of the gethostname module.
31786         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31787         define also HOST_NAME_MAX.
31788         * tests/test-gethostname.c: Include <limits.h>.
31789         (main): Check also HOST_NAME_MAX.
31790         * doc/posix-headers/limits.texi: Document the mingw problem.
31791
31792 2009-08-02  Bruno Haible  <bruno@clisp.org>
31793
31794         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31795         Add comments.
31796
31797 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31798
31799         * lib/gethostname.c: Add Windows wrapper.
31800         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31801         * modules/gethostname: Depend on sys_socket & errno, for also
31802         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31803         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31804
31805 2009-07-31  Jim Meyering  <meyering@redhat.com>
31806
31807         getloadavg: fix symbol name in comment
31808         * lib/getloadavg.c: Correct a typo I introduced when adding
31809         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31810         Matt Kraai spotted the problem.
31811
31812 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31813
31814         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31815         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31816         code also if ! defined N_NAME_POINTER.
31817         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31818         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31819         but the n_name member is a 12-byte array.
31820
31821 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31822
31823         update-copyright: generalize comment handling
31824         * build-aux/update-copyright: Handle copyright statements
31825         within more comment styles.
31826         Document usage.
31827         Report any file with an external copyright holder or parse failure.
31828
31829 2009-07-29  Jim Meyering  <meyering@redhat.com>
31830
31831         mktime: correct setting of REPLACE_MKTIME
31832         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31833
31834         update-copyright: new module
31835         * modules/update-copyright: New file.
31836         * build-aux/update-copyright: New file.
31837         * MODULES.html.sh (maint+release support): Add update-copyright.
31838
31839 2009-07-27  Bruno Haible  <bruno@clisp.org>
31840
31841         Fix compilation error when <ctime> is used and mktime is replaced.
31842         * lib/time.in.h (mktime): New declaration.
31843         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31844         REPLACE_MKTIME instead of defining mktime in config.h.
31845         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31846         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31847         Reported by Ross McFarland <rwmcfa1@neces.com>.
31848
31849 2009-07-27  Bruno Haible  <bruno@clisp.org>
31850
31851         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31852         Reported by Matt Kraai <mkraai@beckman.com>.
31853
31854 2009-07-25  Jim Meyering  <meyering@redhat.com>
31855
31856         maint.mk: avoid warnings about missing files
31857         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31858         diagnostic when .prev-version does not exist.
31859         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31860         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31861         nonexistent cfg.mk.
31862         Suggestions from Simon Josefsson.
31863
31864 2009-07-25  Bruno Haible  <bruno@clisp.org>
31865
31866         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31867         defined as macros. Needed on QNX 6.4.1.
31868         Reported by Matt Kraai <mkraai@beckman.com>.
31869
31870 2009-07-23  Jim Meyering  <meyering@redhat.com>
31871
31872         maint.mk: invoke "make dist" with a working value of XZ_OPT
31873         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31874
31875 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31876
31877         Make fseeko.c compile on QNX.
31878         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31879
31880 2009-07-22  Peter Simons  <simons@cryp.to>
31881
31882         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31883         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31884         * lib/md4.h: Likewise.
31885         * lib/md5.h: Likewise.
31886         * lib/sha1.h: Likewise.
31887         * lib/sha256.h: Likewise.
31888         * lib/sha512.h: Likewise.
31889
31890         tests-sha1: don't assign literal string to 'char *' variable
31891         * tests/test-sha1.c (main): Declare locals with "const" to match
31892         attributes of the right hand side.
31893
31894 2009-07-21  Eric Blake  <ebb9@byu.net>
31895
31896         dup2: fix more mingw problems
31897         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31898         fd to itself.
31899         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31900         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31901         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31902         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31903         care of mingw bugs.
31904
31905 2009-07-21  Jim Meyering  <meyering@redhat.com>
31906
31907         vc-list-files: avoid failure when /bin/sh is dash
31908         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31909         On some Debian based systems, /bin/sh is a symlink to dash, and running
31910         this command would omit the "/" following each 'tests' prefix:
31911           dash -x build-aux/vc-list-files -C . tests
31912         That is because bash and dash work differently:
31913           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31914           bash ok
31915           dash odd
31916
31917 2009-07-21  Eric Blake  <ebb9@byu.net>
31918
31919         dup2-tests: test previous patch
31920         * modules/dup2-tests: New file.
31921         * tests/test-dup2.c: Likewise.
31922         * tests/test-open.c (main): Avoid unspecified behavior.
31923         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31924         test.
31925
31926         dup2: work around mingw and cygwin 1.5 bug
31927         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31929         * modules/unistd (Makefile.am): Substitute it.
31930         * lib/unistd.in.h (dup2): Declare the replacement.
31931         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31932         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31933         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31934         * modules/execute (Depends-on): Add dup2.
31935         * modules/fseterr (Depends-on): Likewise.
31936         * modules/pipe (Depends-on): Likewise.
31937         * modules/posix_spawn-internal (Depends-on): Likewise.
31938
31939 2009-07-21  Bruno Haible  <bruno@clisp.org>
31940
31941         * modules/.gitattributes: New file.
31942
31943 2009-07-20  Bruno Haible  <bruno@clisp.org>
31944
31945         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31946         (main): Use it.
31947
31948 2009-07-20  Eric Blake  <ebb9@byu.net>
31949
31950         test-pipe: make a bit more robust.
31951         * tests/test-pipe.c (myerr): Allow error messages regardless of
31952         what we do to stderr.
31953         (test_pipe): Rearrange to avoid deadlock.
31954         (child_main): Try a larger read, to ensure we avoided deadlock.
31955         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31956         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31957         if misused.
31958
31959 2009-07-19  Jim Meyering  <meyering@redhat.com>
31960
31961         fts: avoid false-positive cycle-detection
31962         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31963         for each new command line argument.
31964
31965 2009-07-19  Bruno Haible  <bruno@clisp.org>
31966
31967         Fix build error on mingw with the modules sys_select and unistd.
31968         * modules/acl-tests (Depends-on): Add close.
31969         * modules/binary-io-tests (Depends-on): Likewise.
31970         * modules/closein-tests (Depends-on): Likewise.
31971         * modules/flock-tests (Depends-on): Likewise.
31972         * modules/fsync-tests (Depends-on): Likewise.
31973         * modules/lseek-tests (Depends-on): Likewise.
31974         * modules/pipe-tests (Depends-on): Likewise.
31975         * modules/posix_spawn-tests (Depends-on): Likewise.
31976         * modules/posix_spawnp-tests (Depends-on): Likewise.
31977         * modules/stat-time-tests (Depends-on): Likewise.
31978         * modules/yesno-tests (Depends-on): Likewise.
31979
31980 2009-07-19  Bruno Haible  <bruno@clisp.org>
31981
31982         Unify conditionals.
31983         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31984         macros, not at the compiler macros.
31985         * lib/pipe.c: Likewise.
31986         * lib/execute.c: Likewise.
31987         * lib/spawni.c: Likewise.
31988
31989 2009-07-19  Bruno Haible  <bruno@clisp.org>
31990
31991         Fix handling of closed stdin/stdout/stderr on mingw.
31992         * lib/w32spawn.h: Include unistd.h.
31993         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31994         file descriptor with O_NOINHERIT flag.
31995         (fd_safer_noinherit): New function, based on fd-safer.c.
31996         (dup_safer_noinherit): New function, based on dup-safer.c.
31997         (undup_safer_noinherit): New function.
31998         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31999         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32000         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32001         instead of fd_safer.
32002         * tests/test-pipe.c: Include <windows.h>.
32003         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32004         result.
32005
32006         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32007         from main.
32008         (test_pipe): Pass an extra argument for disambiguation.
32009         (main): Invoke parent_main or child_main.
32010
32011         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32012         consistently.
32013
32014 2009-07-18  Eric Blake  <ebb9@byu.net>
32015
32016         test-pipe: fix mingw build
32017         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32018
32019 2009-07-18  Bruno Haible  <bruno@clisp.org>
32020
32021         * modules/pipe-tests (Makefile.am): Fix typo.
32022
32023 2009-07-18  Eric Blake  <ebb9@byu.net>
32024
32025         error: fix mingw build
32026         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32027         Reported by Bruno Haible.
32028
32029         error: avoid undefined use of stdout
32030         * lib/error.c (error, error_at_line): Check that fd 1 is open
32031         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32032         is handling faults and the close_stdout module wants to report the
32033         detection of closed stdout as an error.
32034
32035 2009-07-17  Eric Blake  <ebb9@byu.net>
32036
32037         pipe: be robust in face of closed fds
32038         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32039         should cause child to misbehave.
32040         * modules/pipe-tests: New module.
32041         * tests/test-pipe.c: New file.
32042         * tests/test-pipe.sh: New file.
32043         Reported by Akim Demaille.
32044
32045 2009-07-14  Bruno Haible  <bruno@clisp.org>
32046
32047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32048         Reported by anonymous kc.
32049
32050 2009-07-07  Jim Meyering  <meyering@redhat.com>
32051
32052         maint.mk: don't look for translatable strings in *.m4 or *.mk
32053         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32054         when searching for translatable strings.
32055
32056 2009-07-05  Jim Meyering  <meyering@redhat.com>
32057
32058         remove superfluous parentheses in STREQ definition
32059         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32060         * lib/getugroups.c (STREQ): Likewise.
32061         * lib/fnmatch.c (STREQ): Likewise.
32062         Spotted by Bruno Haible.
32063
32064 2009-07-04  Jim Meyering  <meyering@redhat.com>
32065
32066         argv-iter: new module
32067         * MODULES.html.sh: Add argv-iter.
32068         * lib/argv-iter.c, lib/argv-iter.h: New files.
32069         * modules/argv-iter: New file.
32070         * modules/argv-iter-tests: New file.
32071         * tests/test-argv-iter.c: Test it.
32072
32073 2009-07-04  Bruno Haible  <bruno@clisp.org>
32074
32075         Fix assertion.
32076         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32077         contains more exact copies of a given entry than file2, leave the extra
32078         copies unpaired rather than aborting.
32079         Reported by Eric Blake.
32080
32081 2009-07-02  Bruno Haible  <bruno@clisp.org>
32082
32083         Speedup git-merge-changelog for git cherry-pick.
32084         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32085         (entries_mapping_get): New function, extracted from compute_mapping.
32086         (entries_mapping_reverse_get): New function.
32087         (compute_mapping): Add a 'full' argument. Return the result in a
32088         'struct entries_mapping'.
32089         (main): Update. Access the mappings through entries_mapping_get.
32090         Reported by Eric Blake.
32091
32092 2009-07-02  Bruno Haible  <bruno@clisp.org>
32093
32094         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32095         best_i.
32096
32097 2009-07-02  Bruno Haible  <bruno@clisp.org>
32098
32099         Speed up approximate search for matching ChangeLog entries.
32100         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32101         argument. Call fstrcmp_bounded instead of fstrcmp.
32102         (compute_mapping, try_split_merged_entry, main): Update callers.
32103
32104 2009-07-02  Bruno Haible  <bruno@clisp.org>
32105
32106         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32107
32108 2009-06-30  Bruno Haible  <bruno@clisp.org>
32109
32110         Reduce the number of uc_is_cased calls.
32111         * lib/unicase.h (casing_suffix_context_t): Add
32112         'first_char_except_ignorable' field.
32113         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32114         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32115         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32116         Update initializer.
32117         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32118         case-ignorable characters.
32119         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32120         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32121         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32122         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32123         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32124
32125 2009-06-30  Bruno Haible  <bruno@clisp.org>
32126
32127         Tests for module 'unicase/ignorable'.
32128         * modules/unicase/ignorable-tests: New file.
32129         * tests/unicase/test-ignorable.c: New file, generated by
32130         gen-uni-tables.
32131
32132         Tests for module 'unicase/cased'.
32133         * modules/unicase/cased-tests: New file.
32134         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32135         * tests/unicase/test-predicate-part1.h: New file, derived from
32136         tests/unictype/test-predicate-part1.h.
32137         * tests/unicase/test-predicate-part2.h: New file, same as
32138         tests/unictype/test-predicate-part2.h.
32139
32140         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32141         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32142         (output_casing_properties): New function.
32143         (main): Call it.
32144         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32145         * lib/unicase/cased.c: Include unictype/bitmap.h.
32146         (uc_is_cased): Define through a bitmap lookup.
32147         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32148         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32149         (uc_is_case_ignorable): Define through a bitmap lookup.
32150         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32151         lib/unictype/bitmap.h.
32152         (Depends-on): Add inline. Clean up.
32153         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32154         lib/unictype/bitmap.h.
32155         (Depends-on): Add inline. Clean up.
32156         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32157         recognition.
32158         * tests/unicase/test-u16-tolower.c (main): Likewise.
32159         * tests/unicase/test-u32-tolower.c (main): Likewise.
32160
32161 2009-06-30  Bruno Haible  <bruno@clisp.org>
32162
32163         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32164         * lib/unicase/u16-casemap.c: Likewise.
32165         * lib/unicase/u32-casemap.c: Likewise.
32166
32167 2009-06-29  Bruno Haible  <bruno@clisp.org>
32168
32169         Define u32_casefold as a wrapper around u32_ct_casefold.
32170         * lib/unicase/u32-casefold.c: Update.
32171         * modules/unicase/u32-casefold (Depends-on): Add
32172         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32173         unicase/empty-suffix-context. Clean up.
32174
32175         Define u16_casefold as a wrapper around u16_ct_casefold.
32176         * lib/unicase/u16-casefold.c: Update.
32177         * modules/unicase/u16-casefold (Depends-on): Add
32178         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32179         unicase/empty-suffix-context. Clean up.
32180
32181         Define u8_casefold as a wrapper around u8_ct_casefold.
32182         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32183         * lib/unicase/u8-casefold.c: Update.
32184         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32185         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32186
32187         Define u32_totitle as a wrapper around u32_ct_totitle.
32188         * lib/unicase/u32-totitle.c: Update.
32189         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32190         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32191
32192         Define u16_totitle as a wrapper around u16_ct_totitle.
32193         * lib/unicase/u16-totitle.c: Update.
32194         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32195         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32196
32197         Define u8_totitle as a wrapper around u8_ct_totitle.
32198         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32199         functions.
32200         (FUNC): Delegate to U_CT_TOTITLE.
32201         * lib/unicase/u8-totitle.c: Update.
32202         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32203         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32204
32205         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32206         invocation.
32207         * modules/unicase/u32-tolower (Depends-on): Add
32208         unicase/empty-prefix-context, unicase/empty-suffix-context.
32209
32210         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32211         invocation.
32212         * modules/unicase/u16-tolower (Depends-on): Add
32213         unicase/empty-prefix-context, unicase/empty-suffix-context.
32214
32215         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32216         * modules/unicase/u8-tolower (Depends-on): Add
32217         unicase/empty-prefix-context, unicase/empty-suffix-context.
32218
32219         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32220         invocation.
32221         * modules/unicase/u32-toupper (Depends-on): Add
32222         unicase/empty-prefix-context, unicase/empty-suffix-context.
32223
32224         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32225         invocation.
32226         * modules/unicase/u16-toupper (Depends-on): Add
32227         unicase/empty-prefix-context, unicase/empty-suffix-context.
32228
32229         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32230         * modules/unicase/u8-toupper (Depends-on): Add
32231         unicase/empty-prefix-context, unicase/empty-suffix-context.
32232
32233         New module 'unicase/u32-ct-casefold'.
32234         * lib/unicase/u32-ct-casefold.c: New file.
32235         * modules/unicase/u32-ct-casefold: New file.
32236
32237         New module 'unicase/u16-ct-casefold'.
32238         * lib/unicase/u16-ct-casefold.c: New file.
32239         * modules/unicase/u16-ct-casefold: New file.
32240
32241         New module 'unicase/u8-ct-casefold'.
32242         * lib/unicase/u8-ct-casefold.c: New file.
32243         * lib/unicase/u-ct-casefold.h: New file, derived from
32244         lib/unicase/u-casefold.h.
32245         * modules/unicase/u8-ct-casefold: New file.
32246
32247         New module 'unicase/u32-ct-totitle'.
32248         * lib/unicase/u32-ct-totitle.c: New file.
32249         * modules/unicase/u32-ct-totitle: New file.
32250
32251         New module 'unicase/u16-ct-totitle'.
32252         * lib/unicase/u16-ct-totitle.c: New file.
32253         * modules/unicase/u16-ct-totitle: New file.
32254
32255         New module 'unicase/u8-ct-totitle'.
32256         * lib/unicase/u8-ct-totitle.c: New file.
32257         * lib/unicase/u-ct-totitle.h: New file, derived from
32258         lib/unicase/u-totitle.h.
32259         * modules/unicase/u8-ct-totitle: New file.
32260
32261         New module 'unicase/u32-ct-tolower'.
32262         * lib/unicase/u32-ct-tolower.c: New file.
32263         * modules/unicase/u32-ct-tolower: New file.
32264
32265         New module 'unicase/u16-ct-tolower'.
32266         * lib/unicase/u16-ct-tolower.c: New file.
32267         * modules/unicase/u16-ct-tolower: New file.
32268
32269         New module 'unicase/u8-ct-tolower'.
32270         * lib/unicase/u8-ct-tolower.c: New file.
32271         * modules/unicase/u8-ct-tolower: New file.
32272
32273         New module 'unicase/u32-ct-toupper'.
32274         * lib/unicase/u32-ct-toupper.c: New file.
32275         * modules/unicase/u32-ct-toupper: New file.
32276
32277         New module 'unicase/u16-ct-toupper'.
32278         * lib/unicase/u16-ct-toupper.c: New file.
32279         * modules/unicase/u16-ct-toupper: New file.
32280
32281         New module 'unicase/u8-ct-toupper'.
32282         * lib/unicase/u8-ct-toupper.c: New file.
32283         * modules/unicase/u8-ct-toupper: New file.
32284
32285         Add context arguments to u*_casemap functions.
32286         * lib/unicase/unicasemap.h: Include unicase.h.
32287         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32288         suffix_context arguments.
32289         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32290         functions.
32291         (FUNC): Add prefix_context and suffix_context arguments. Use
32292         uc_is_cased and uc_is_case_ignorable.
32293         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32294         * lib/unicase/u16-casemap.c: Likewise.
32295         * lib/unicase/u32-casemap.c: Likewise.
32296         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32297         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32298         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32299         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32300         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32301         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32302
32303         New module 'unicase/u32-suffix-context'.
32304         * lib/unicase/u32-suffix-context.c: New file.
32305         * modules/unicase/u32-suffix-context: New file.
32306
32307         New module 'unicase/u16-suffix-context'.
32308         * lib/unicase/u16-suffix-context.c: New file.
32309         * modules/unicase/u16-suffix-context: New file.
32310
32311         New module 'unicase/u8-suffix-context'.
32312         * lib/unicase/u8-suffix-context.c: New file.
32313         * lib/unicase/u-suffix-context.h: New file.
32314         * modules/unicase/u8-suffix-context: New file.
32315
32316         New module 'unicase/empty-suffix-context'.
32317         * lib/unicase/empty-suffix-context.c: New file.
32318         * modules/unicase/empty-suffix-context: New file.
32319
32320         New module 'unicase/u32-prefix-context'.
32321         * lib/unicase/u32-prefix-context.c: New file.
32322         * modules/unicase/u32-prefix-context: New file.
32323
32324         New module 'unicase/u16-prefix-context'.
32325         * lib/unicase/u16-prefix-context.c: New file.
32326         * modules/unicase/u16-prefix-context: New file.
32327
32328         New module 'unicase/u8-prefix-context'.
32329         * lib/unicase/u8-prefix-context.c: New file.
32330         * lib/unicase/u-prefix-context.h: New file.
32331         * lib/unicase/context.h: New file.
32332         * modules/unicase/u8-prefix-context: New file.
32333
32334         New module 'unicase/empty-prefix-context'.
32335         * lib/unicase/empty-prefix-context.c: New file.
32336         * modules/unicase/empty-prefix-context: New file.
32337
32338         New module 'unicase/ignorable'.
32339         * lib/unicase/ignorable.c: New file.
32340         * modules/unicase/ignorable: New file.
32341
32342         New module 'unicase/cased'.
32343         * lib/unicase/caseprop.h: New file.
32344         * lib/unicase/cased.c: New file.
32345         * modules/unicase/cased: New file.
32346
32347         New functions for case mapping of substrings.
32348         * lib/unicase.h (casing_prefix_context_t): New type.
32349         (unicase_empty_prefix_context): New variable.
32350         (u8_casing_prefix_context, u16_casing_prefix_context,
32351         u32_casing_prefix_context, u8_casing_prefixes_context,
32352         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32353         declarations.
32354         (casing_suffix_context_t): New type.
32355         (unicase_empty_suffix_context): New variable.
32356         (u8_casing_suffix_context, u16_casing_suffix_context,
32357         u32_casing_suffix_context, u8_casing_suffixes_context,
32358         u16_casing_suffixes_context, u32_casing_suffixes_context,
32359         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32360         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32361         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32362         declarations.
32363
32364 2009-06-28  Jim Meyering  <meyering@redhat.com>
32365
32366         boostrap: indent only with spaces
32367         * build-aux/bootstrap: Indent only with spaces, never TABs.
32368
32369         bootstrap: split long lines
32370         * build-aux/bootstrap: Keep line length < 80.
32371
32372         bootstrap: sync from coreutils
32373         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32374         just as autoreconf does.  Verify a list of prerequisite
32375         package-name,version-number pairs if defined in bootstrap.conf.
32376         Refer to README-prereq, if prerequisites are not satisfied.
32377
32378 2009-06-27  Eric Blake  <ebb9@byu.net>
32379
32380         tests: add test for bogus NULL definition
32381         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32382         * tests/test-stdlib.c: Likewise.
32383         * tests/test-string.c: Likewise.
32384         * tests/test-locale.c: Likewise.
32385         * tests/test-unistd.c: Likewise.
32386         * modules/stdio-tests (Depends-on): Add verify.
32387         * modules/stdlib-tests (Depends-on): Likewise.
32388         * modules/string-tests (Depends-on): Likewise.
32389         * modules/locale-tests (Depends-on): Likewise.
32390         * modules/unistd-tests (Depends-on): Likewise.
32391
32392 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32393
32394         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32395         self-explaining comment.
32396         * m4/selinux-selinux-h: Update serial.
32397         (gl_LIBSELINUX): New macro, adding a warning for missing development
32398         packages to code extracted from...
32399         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32400         Add warning for missing development packages here, too.
32401
32402 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32403
32404         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32405
32406 2009-06-25  Eric Blake  <ebb9@byu.net>
32407
32408         version-etc: fix regression
32409         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32410         gcc.
32411         (version_etc): Use it, to catch bugs with trailing NULL.
32412         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32413         (version_etc_va): Fix logic bug.
32414         * modules/version-etc-tests: Add test.
32415         * tests/test-version-etc.c: New file.
32416         * tests/test-version-etc.sh: Likewise.
32417
32418 2009-06-25  Sam Steingold  <sds@gnu.org>
32419
32420         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32421         mbtowc declaration.
32422
32423 2009-06-25  Eric Blake  <ebb9@byu.net>
32424
32425         fpurge: migrate into <stdio.h>
32426         * lib/fpurge.h: Delete...
32427         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32428         * lib/fpurge.c (fpurge): Change declaring header.
32429         * modules/fpurge (Files): Drop deleted file.
32430         (Depends-on): Add stdio.
32431         (configure.ac): Set witness.
32432         * modules/stdio (Makefile.am): Support fpurge macros.
32433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32434         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32435         * lib/fflush.c: Update client.
32436         * tests/test-fpurge.c: Likewise.
32437         * NEWS: Mention the change.
32438
32439 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32440
32441         * lib/argp-version-etc.c (program_authors): Add const
32442         qualifier.
32443         * lib/version-etc.c: Fix typos in the comments.
32444         * modules/argp-version-etc: Depends on version-etc.
32445
32446 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32447
32448         argp-version-etc: new module.
32449
32450         * lib/argp-version-etc.c: New file.
32451         * lib/argp-version-etc.h: New file.
32452         * modules/argp-version-etc: New file.
32453         * modules/argp-version-etc-tests: New file.
32454         * tests/test-argp-version-etc.c: New test.
32455         * tests/test-argp-version-etc-1.sh: New test.
32456
32457 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32458
32459         Provide additional interfaces and documentation for version-etc
32460         module.
32461
32462         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32463         interfaces.
32464         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32465         prototypes.
32466
32467 2009-06-24  Bruno Haible  <bruno@clisp.org>
32468
32469         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32470         HAVE_LIB${NAME} macro.
32471         Reported by Sam Steingold <sds@gnu.org>.
32472
32473 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32474
32475         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32476         needed.
32477
32478 2009-06-21  Bruno Haible  <bruno@clisp.org>
32479
32480         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32481         work.
32482         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32483         together with LIB${NAME}, LTLIB${NAME}.
32484         Reported by Sam Steingold <sds@gnu.org>.
32485
32486 2009-06-20  Jim Meyering  <meyering@redhat.com>
32487
32488         tests: make sc_require_test_exit_idiom more generic
32489         * top/maint.mk (Exit_witness_file): New overridable variable.
32490         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32491         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32492
32493 2009-06-19  Jim Meyering  <meyering@redhat.com>
32494
32495         hash: reverse order of src/dst parameters in an internal interface
32496         * lib/hash.c (transfer_entries): Reverse order of parameters to
32497         put DST before SRC.  Adjust callers.
32498
32499         tests: test-hash: avoid wholesale duplication
32500         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32501         Instead, use a loop and add a single conditional.
32502
32503         tests: test-hash: allow seed selection via a command line argument
32504         * tests/test-hash.c (get_seed): New function.
32505         (main): Use it.
32506
32507 2009-06-19  Eric Blake  <ebb9@byu.net>
32508
32509         hash: avoid memory leak on allocation failure
32510         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32511         failure.  Factor repeated algorithm...
32512         (transfer_entries): ...into new helper routine.
32513         (hash_delete): React to hash_rehash return value.
32514
32515         hash: reduce memory pressure in hash_rehash no-op case
32516         * lib/hash.c (next_prime): Avoid overflow.
32517         (hash_initialize): Factor bucket size computation...
32518         (compute_bucket_size): ...into new helper function.
32519         (hash_rehash): Use new function and open coding to reduce memory
32520         pressure, and avoid a memory leak in USE_OBSTACK code.
32521         Reported by Jim Meyering.
32522
32523 2009-06-18  Eric Blake  <ebb9@byu.net>
32524
32525         hash: make rotation more obvious
32526         * modules/hash (Depends-on): Add bitrotate and stdint.
32527         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32528         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32529         (SIZE_MAX): Rely on headers for definition.
32530         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32531         (raw_hasher): Use rotr_sz.
32532         Suggested by Jim Meyering.
32533
32534         hash: fix memory leak in last patch
32535         * lib/hash.c (hash_rehash): Avoid memory leak.
32536
32537         hash: avoid no-op rehashing
32538         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32539
32540         hash: provide default callback functions
32541         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32542         (hash_initialize): Use them as defaults.
32543         * tests/test-hash.c (main): Test this.
32544
32545         hash: minor optimization
32546         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32547         when possible.
32548         (hash_initialize): Document this promise.
32549         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32550         * tests/test-hash.c (hash_compare_strings): Test this.
32551
32552 2009-06-18  Bruno Haible  <bruno@clisp.org>
32553
32554         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32555         going to be replaced anyway.
32556
32557 2009-06-18  Bruno Haible  <bruno@clisp.org>
32558
32559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32560         in one place.
32561         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32562         be replaced anyway.
32563
32564 2009-06-18  Eric Blake  <ebb9@byu.net>
32565
32566         hash: check for resize before insertion
32567         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32568         threshold before insertion, so that a pathological hash_rehash
32569         that fills every bucket can still trigger another rehash.
32570
32571 2009-06-18  Jim Meyering  <meyering@redhat.com>
32572
32573         hash-tests: add a loop around the small tests
32574         * tests/test-hash.c (main): Repeat small tests with selected
32575         small initial table sizes.
32576
32577 2009-06-17  Eric Blake  <ebb9@byu.net>
32578
32579         hash: minor cleanups
32580         * lib/hash.h (hash_entry): Make opaque, by moving...
32581         * lib/hash.c (hash_entry): ...here.
32582         (hash_insert): Clarify restrictions on what can be inserted.
32583         (hash_get_next): Clarify when it is safe to remove an element
32584         during traversal.
32585         (check_tuning): Skip verification when tuning is known safe.
32586         (hash_initialize): Clarify restrictions on tuning.
32587
32588 2009-06-17  Jim Meyering  <jim@meyering.net>
32589         and Eric Blake  <ebb9@byu.net>
32590
32591         hash-tests: new module
32592         * modules/hash-tests: New file.
32593         * tests/test-hash.c: New file.
32594
32595 2009-06-17  Eric Blake  <ebb9@byu.net>
32596
32597         strstr-simple: document new module
32598         * MODULES.html.sh: Document new module.
32599
32600         strstr, strcasestr: replace on platforms with broken memchr
32601         * modules/strstr: Split into...
32602         * modules/strstr-simple: ...new module that does not care about
32603         performance, but does care about glibc bug.
32604         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32605         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32606         if platform memchr is broken, per Debian bug 521737.
32607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32608         memchr.
32609         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32610         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32611         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32612         * modules/mountlist (Depends-on): Add strstr-simple.
32613         * modules/gen-uni-tables (Depends-on): Likewise.
32614         * modules/argz (Depends-on): Add strstr.
32615
32616 2009-06-17  Bruno Haible  <bruno@clisp.org>
32617
32618         * modules/posix_spawn-internal (Depends-on): Add errno.
32619
32620 2009-06-17  Bruno Haible  <bruno@clisp.org>
32621
32622         Define missing ESTALE on Interix 3.5.
32623         * lib/errno.in.h (ESTALE): Assign a value if missing.
32624         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32625         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32626         missing.
32627         * doc/posix-headers/errno.texi: Mention the Interix bug.
32628         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32629
32630 2009-06-15  Eric Blake  <ebb9@byu.net>
32631
32632         memchr, memchr2: add valgrind exception
32633         * lib/memchr.valgrind: New file.
32634         * lib/memchr2.valgrind: New file.
32635         * modules/memchr (Files): Distribute valgrind file.
32636         * modules/memchr2 (Files): Likewise.
32637
32638         docs: memchr is no longer obsolete
32639         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32640         * lib/string.in.h (memchr): Simplify logic.
32641
32642 2009-06-14  Jim Meyering  <meyering@redhat.com>
32643
32644         link-follow: fix the "checking..." message to not mention trailing slash
32645         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32646         never considered trailing slashes.
32647
32648 2009-06-14  Bruno Haible  <bruno@clisp.org>
32649
32650         * m4/memchr.m4: Mention also the bug on IA-64.
32651         * doc/posix-functions/memchr.texi: Likewise.
32652
32653 2009-06-12  Eric Blake  <ebb9@byu.net>
32654
32655         memchr: detect broken x86_64 and alpha implementations
32656         * modules/memchr-tests (Depends-on): Move mmap detection...
32657         * modules/memchr (Depends-on): ...here.
32658         (configure.ac): Set indicator.
32659         * lib/string.in.h (memchr): Declare replacement.
32660         * modules/string (Makefile.am): Trigger replacement.
32661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32662         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32663         bugs.
32664         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32665         * modules/getpagesize (License): Relax license.
32666
32667 2009-06-11  Bruno Haible  <bruno@clisp.org>
32668
32669         * lib/idpriv.h: Add more references.
32670
32671 2009-06-08  Bruno Haible  <bruno@clisp.org>
32672
32673         Tests for module 'idpriv-droptemp'.
32674         * modules/idpriv-droptemp-tests: New file.
32675         * tests/test-idpriv-droptemp.sh: New file.
32676         * tests/test-idpriv-droptemp.su.sh: New file.
32677         * tests/test-idpriv-droptemp.c: New file.
32678
32679         New module 'idpriv-droptemp'.
32680         * lib/idpriv-droptemp.c: New file.
32681         * modules/idpriv-droptemp: New file.
32682
32683 2009-06-08  Bruno Haible  <bruno@clisp.org>
32684
32685         Tests for module 'idpriv-drop'.
32686         * modules/idpriv-drop-tests: New file.
32687         * tests/test-idpriv-drop.sh: New file.
32688         * tests/test-idpriv-drop.su.sh: New file.
32689         * tests/test-idpriv-drop.c: New file.
32690
32691         New module 'idpriv-drop'.
32692         * lib/idpriv.h: New file.
32693         * lib-idpriv-drop.c: New file.
32694         * m4/idpriv.m4: New file.
32695         * modules/idpriv-drop: New file.
32696
32697 2009-06-08  Bruno Haible  <bruno@clisp.org>
32698
32699         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32700         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32701         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32704         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32705         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32706
32707 2009-06-08  Eric Blake  <ebb9@byu.net>
32708
32709         test-strstr: use memory fence, when possible
32710         * tests/test-strstr.c (main): Use memory fence, in order to be
32711         more likely to trigger Debian bug 521737.
32712         * modules/strstr-tests (Files): Pull in additional files.
32713
32714         memchr: no longer obsolete, for wider field testing
32715         * modules/memchr (Status, Notice): Delete, this module is no
32716         longer obsolete.
32717         * modules/vasnprintf (Depends-on): Add memchr.
32718
32719 2009-06-07  Jim Meyering  <meyering@redhat.com>
32720
32721         hash: declare some functions with the warn_unused_result attribute
32722         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32723
32724 2009-06-07  Bruno Haible  <bruno@clisp.org>
32725
32726         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32727         Reported by Eric Blake.
32728
32729 2009-06-06  Eric Blake  <ebb9@byu.net>
32730
32731         test-alignof: fix typo with long double
32732         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32733         compiler error.
32734
32735 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32736
32737         Escape non-texinfo { and }s.
32738         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32739         markup error.
32740
32741 2009-06-04  Jim Meyering  <meyering@redhat.com>
32742
32743         gitlog-to-changelog: don't infloop on an empty commit log
32744         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32745         Reported by Boris Petersen <transacid@centerim.org>.
32746
32747 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32748
32749         version-etc: extend for packagers
32750         Add three new configure options, intended for packagers:
32751           --with-packager="packager name"
32752           --with-packager-version="packager-specific version"
32753           --with-packager-bug-reports="packager bug reporting"
32754         An example with coreutils:
32755           $ ./configure \
32756             --with-packager=Gentoo \
32757             --with-packager-bug-report=http://bugs.gentoo.org/ \
32758             --with-packager-version="patchset 1.6"
32759           $ ./src/ls --version | head -n2
32760           ls (GNU coreutils) 7.1-dirty
32761           Packaged by Gentoo (patchset 1.6)
32762         Note that the bug reporting info via --help doesn't show up because
32763         coreutils uses its own custom emit_bug_reporting_address() implementation
32764         in src/system.h.  If it didn't, it'd look like:
32765           $ ./src/ls --help | tail -n4
32766           Report bugs to <bug-coreutils@gnu.org>.
32767           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32768           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32769           General help using GNU software: <http://www.gnu.org/gethelp/>.
32770         * lib/version-etc.c: Print new information, if provided.
32771         * m4/version-etc.m4: New file.
32772         * modules/version-etc (Files): Add m4/version-etc.m4.
32773         (configure.ac): Add gl_VERSION_ETC.
32774
32775 2009-05-31  Bruno Haible  <bruno@clisp.org>
32776
32777         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32778         and 'int64_t'.
32779         * modules/alignof-tests (Dependencies): Add stdint.
32780         Reported by Eric Blake.
32781
32782 2009-05-31  Bruno Haible  <bruno@clisp.org>
32783
32784         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32785         restriction due to compiler bugs.
32786         Reported by Eric Blake.
32787
32788 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32789             Bruno Haible  <bruno@clisp.org>
32790
32791         Fix test-alignof failure.
32792         * lib/alignof.h (alignof_slot): New macro.
32793         (alignof_type): New macro, with the same semantics as the previous
32794         'alignof'.
32795         (alignof): Alias to alignof_slot.
32796         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32797         check that the results are usable as constant expressions.
32798
32799 2009-05-31  Bruno Haible  <bruno@clisp.org>
32800
32801         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32802         * tests/test-memchr.c (main): Check that memchr does not read past the
32803         first occurrence of the byte.
32804         * tests/test-strstr.c (main): Update comment.
32805         Suggested by Eric Blake.
32806
32807 2009-05-30  Bruno Haible  <bruno@clisp.org>
32808
32809         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32810         detail how to use dumpbin.
32811         Reported by David Byron <dbyron@dbyron.com>.
32812
32813 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32814
32815         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32816
32817 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32818
32819         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32820
32821 2009-05-28  Bruno Haible  <bruno@clisp.org>
32822
32823         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32824         build-aux/ files.
32825
32826 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32827
32828         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32829
32830 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32831
32832         * gnulib-tool (sed_transform_main_lib_file)
32833         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32834         regexps.
32835
32836 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32837
32838         * tests/test-strstr.c: Add another self-test.
32839         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32840         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32841
32842 2009-05-23  Bruno Haible  <bruno@clisp.org>
32843
32844         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32845         change.
32846
32847 2009-05-21  Bruno Haible  <bruno@clisp.org>
32848
32849         Simplify use of mode_t varargs.
32850         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32851         uses 'mode_t' or 'int'.
32852         * lib/openat.c (openat): Likewise.
32853         * lib/open-safer.c (open_safer): Likewise.
32854         * m4/mode_t.m4: New file.
32855         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32856         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32857         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32858         * modules/open (Files): Add m4/mode_t.m4.
32859         * modules/openat (Files): Likewise.
32860         * modules/fcntl-safer (Files): Likewise.
32861         Suggested by Eric Blake.
32862
32863 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32864
32865         * doc/glibc-functions/fallocate.texi: New file.
32866         * doc/gnulib.texi: Include it.
32867
32868 2009-05-21  Eric Blake  <ebb9@byu.net>
32869             Bruno Haible  <bruno@clisp.org>
32870
32871         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32872         invocations.
32873         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32874
32875 2009-05-21  Eric Blake  <ebb9@byu.net>
32876             Bruno Haible  <bruno@clisp.org>
32877
32878         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32879         include_next. Fix of 2008-11-20 commit.
32880         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32881         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32882         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32883         NEXT_MATH_H.
32884         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32885         instead of NEXT_MATH_H.
32886
32887 2009-05-21  Bruno Haible  <bruno@clisp.org>
32888
32889         Avoid redefinition warnings for SIZE_MAX.
32890         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32891         Reported by Simon Josefsson.
32892
32893 2009-05-21  Bruno Haible  <bruno@clisp.org>
32894
32895         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32896         AC_CACHE_VAL.
32897
32898 2009-05-20  Bruno Haible  <bruno@clisp.org>
32899
32900         Make zeroptr.h work on mingw.
32901         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32902         mprotect.
32903         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32904         * modules/memchr2-tests (configure.ac): Likewise.
32905         * modules/memcmp-tests (configure.ac): Likewise.
32906         * modules/memmem-tests (configure.ac): Likewise.
32907         * modules/memrchr-tests (configure.ac): Likewise.
32908         Reported by Simon Josefsson.
32909
32910 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32911
32912         * tests/test-glob.c: Include string.h for strcmp prototype.
32913
32914 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32915
32916         * modules/getdelim (Depends-on): Add explicit stdint, although it
32917         was implicitly already pulled in via realloc-posix.
32918         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32919
32920 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32921
32922         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32923         G. Christensen" <tgc@jupiterrise.com>.
32924         * m4/sys_socket_h.m4: Check for sa_family_t.
32925         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32926         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32927         * tests/test-sys_socket.c: Check that sa_family_t works.
32928
32929 2009-05-18  Eric Blake  <ebb9@byu.net>
32930
32931         maint.mk: allow gnulib_dir in VPATH build
32932         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32933
32934 2009-05-15  Jim Meyering  <meyering@redhat.com>
32935
32936         maint.mk: Give gnulib_dir a default definition.
32937         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32938         Thus, most packages no longer need to specify this variable in cfg.mk
32939
32940 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32941
32942         rename.m4: fix typos that would make non-mingw cross-configure fail
32943         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32944
32945 2009-05-13  Eric Blake  <ebb9@byu.net>
32946
32947         mmap-anon: avoid out-of-order autoconf expansion
32948         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32949         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32950         * modules/memchr-tests (Depends-on): Add extensions.
32951         * modules/memchr2-tests (Depends-on): Add extensions.
32952         * modules/memcmp-tests (Depends-on): Add extensions.
32953         * modules/memmem-tests (Depends-on): Add extensions.
32954         * modules/memrchr-tests (Depends-on): Add extensions.
32955
32956 2009-05-13  Bruno Haible  <bruno@clisp.org>
32957
32958         Make some tests ISO C 99 compliant.
32959         * tests/zerosize-ptr.h: New file.
32960         * tests/test-memchr.c: Include zerosize-ptr.h.
32961         (main): Use a zero-size object pointer instead of NULL.
32962         * tests/test-memchr2.c: Include zerosize-ptr.h.
32963         (main): Use a zero-size object pointer instead of NULL.
32964         * tests/test-memcmp.c: Include zerosize-ptr.h.
32965         (main): Use a zero-size object pointer instead of NULL.
32966         * tests/test-memmem.c: Include zerosize-ptr.h.
32967         (main): Use a zero-size object pointer instead of NULL.
32968         * tests/test-memrchr.c: Include zerosize-ptr.h.
32969         (main): Use a zero-size object pointer instead of NULL.
32970         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32971         m4/mmap-anon.m4.
32972         (Depends-on): Add getpagesize.
32973         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32974         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32975         m4/mmap-anon.m4.
32976         (Depends-on): Add getpagesize.
32977         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32978         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32979         m4/mmap-anon.m4.
32980         (Depends-on): Add getpagesize.
32981         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32982         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32983         m4/mmap-anon.m4.
32984         (Depends-on): Add getpagesize.
32985         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32986         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32987         m4/mmap-anon.m4.
32988         (Depends-on): Add getpagesize.
32989         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32990
32991 2009-05-12  Bruno Haible  <bruno@clisp.org>
32992
32993         Tests for module 'alignof'.
32994         * modules/alignof-tests: New file.
32995         * tests/test-alignof.c: New file.
32996
32997 2009-05-12  Bruno Haible  <bruno@clisp.org>
32998
32999         Fix alignof macro.
33000         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33001         vendor compilers that are always correct.
33002
33003 2009-05-12  Bruno Haible  <bruno@clisp.org>
33004
33005         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33006         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33007         not whether its fully works.
33008
33009 2009-05-12  Bruno Haible  <bruno@clisp.org>
33010
33011         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33012
33013 2009-05-12  Jim Meyering  <meyering@redhat.com>
33014
33015         * top/maint.mk: Adjust backslash alignment.
33016
33017 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33018
33019         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33020
33021 2009-05-11  Eric Blake  <ebb9@byu.net>
33022
33023         argp: avoid undefined behavior
33024         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33025         macros.
33026
33027 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33028
33029         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33030         user.name to prevent git commit from complaining.
33031
33032 2009-05-10  Bruno Haible  <bruno@clisp.org>
33033
33034         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33035         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33036         it rewrites every file name only once.
33037         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33038
33039 2009-05-08  Bruno Haible  <bruno@clisp.org>
33040
33041         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33042         instead of 'max'.
33043
33044 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33045
33046         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33047         sockaddr_storage test.
33048
33049 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33050
33051         * modules/sys_socket (Makefile.am): Substitute
33052         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33053         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33054         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33055         * tests/test-sys_socket.c: Check sockaddr_storage.
33056
33057 2009-05-08  Bruno Haible  <bruno@clisp.org>
33058
33059         New module 'alignof'.
33060         * lib/alignof.h: New file.
33061         * modules/alignof: New file.
33062
33063 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33064             Bruno Haible  <bruno@clisp.org>
33065
33066         Fix test-file-has-acl on FreeBSD.
33067         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33068         mask is implicitly added.
33069         * tests/test-file-has-acl.c: Include <signal.h>.
33070         (main): Terminate the test after 5 seconds.
33071         * modules/acl-tests (configure.ac): Check for alarm function.
33072
33073 2009-05-04  Bruno Haible  <bruno@clisp.org>
33074
33075         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33076         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33077         * modules/errno (configure.ac): Drop AC_REQUIRE.
33078         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33079         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33080
33081 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33082
33083         * modules/glob-tests: New module.
33084         * tests/test-glob.c: Add.
33085
33086 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33087
33088         * modules/fnmatch-tests: New module.
33089         * tests/test-fnmatch.c: Add.
33090
33091 2009-05-04  Eric Blake  <ebb9@byu.net>
33092
33093         maint: make the new no-submodule-changes rule VPATH-safe
33094         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33095
33096 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33097             Bruno Haible  <bruno@clisp.org>
33098
33099         acl: Fix infinite loop on FreeBSD.
33100         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33101         of return value from acl_get_entry.
33102         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33103         Likewise.
33104
33105 2009-05-03  Bruno Haible  <bruno@clisp.org>
33106
33107         * lib/acl-internal.h (acl_entries): Clarify return value.
33108         * lib/acl_entries.c (acl_entries): Likewise.
33109
33110 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33111
33112         Bug fix in acl module.
33113         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33114
33115 2009-05-03  Bruno Haible  <bruno@clisp.org>
33116
33117         Create gperf-generated file in the source dir, not in the build dir.
33118         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33119         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33120         * modules/unicase/locale-language (unicase/locale-languages.h):
33121         Likewise.
33122         * modules/unicase/special-casing (unicase/special-casing-table.h):
33123         Likewise.
33124         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33125         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33126         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33127         Reported by Ralf Wildenhues.
33128
33129 2009-05-03  Bruno Haible  <bruno@clisp.org>
33130
33131         * modules/fnmatch (Description, configure.ac): Taken from
33132         fnmatch-posix.
33133         * modules/fnmatch-posix: Turn into a symbolic reference to the
33134         'fnmatch' module, and deprecate.
33135         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33136
33137 2009-05-03  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33140         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33141         Reported by Ralf Wildenhues.
33142
33143 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33144
33145         * m4/fnmatch.m4: Fix fnmatch re-define.
33146
33147 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33148
33149         priv-set: new module and tests; adapt write-any-file
33150         * lib/priv-set.c: New file.
33151         * lib/priv-set.h: New file.
33152         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33153         * lib/write-any-file.c: Simplify by using priv-set module.
33154         * m4/priv-set.m4: New file.
33155         * modules/priv-set: New file.
33156         * modules/unlinkdir: Add dependency on priv-set module.
33157         * modules/write-any-file: Likewise.
33158
33159         Tests for module 'priv-set'.
33160         * modules/priv-set-tests: New file.
33161         * tests/test-priv-set.c: New file.
33162
33163 2009-05-03  Jim Meyering  <meyering@redhat.com>
33164             Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33167         use the converted UTF-8 variant of the name instead.
33168
33169 2009-05-03  Jim Meyering  <meyering@redhat.com>
33170
33171         tests: tighten some getdate tests
33172         * tests/test-getdate.c (main): Tighten tests: require equality,
33173         not just greater than.  Set TZ envvar to UTC0.
33174
33175 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33176
33177         getdate: correctly interpret "next monday" when run on a Monday
33178         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33179         that e.g., "next tues" (when run on a tuesday) results in a date
33180         that is one week in the future, and not today's date.
33181         I.e., add a week when the wday is the same as the current one.
33182         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33183         and earlier by Martin Bernreuther and Jan Minář.
33184         * tests/test-getdate.c (main): Check that "next DAY" is always in
33185         the future and that "last DAY" is always in the past.
33186
33187 2009-05-02  Jim Meyering  <meyering@redhat.com>
33188
33189         build: ensure that a release build fails when a submodule is unclean
33190         * top/maint.mk (no-submodule-changes): New rule.
33191         (alpha beta major): Depend on it.
33192
33193 2009-05-02  Bruno Haible  <bruno@clisp.org>
33194
33195         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33196         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33197         shell variable gl_fnmatch_required to detect which variant is
33198         requested.
33199         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33200         gl_FUNC_FNMATCH_POSIX.
33201         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33202         exclude fnmatch-posix.
33203
33204 2009-05-02  Bruno Haible  <bruno@clisp.org>
33205
33206         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33207         * modules/mbsrtowcs (License): Change to LGPLv2+.
33208         * modules/strnlen1 (License): Likewise.
33209         Reported by Simon Josefsson.
33210
33211 2009-05-02  Bruno Haible  <bruno@clisp.org>
33212
33213         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33214         "cross".
33215         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33216         gnulib-tool was called with option --source-base=lib.
33217
33218 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33219
33220         Use automake *-local hooks without commands, for extensibility.
33221         * modules/localcharset (Makefile.am): Rename install-exec-local
33222         rule to install-exec-localcharset, and make it a prerequisite of
33223         install-exec-local.  Likewise, rename the uninstall-local rule to
33224         uninstall-localcharset, and make it a prerequisite of the former.
33225
33226 2009-05-01  Bruno Haible  <bruno@clisp.org>
33227
33228         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33229         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33230         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33232         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33233         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33234         m4/locale-zh.m4, m4/codeset.m4.
33235
33236         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33237         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33238         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33239         m4/locale-zh.m4.
33240
33241         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33242         REPLACE_WCRTOMB if mbstate_t must be replaced.
33243         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33244         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33245
33246 2009-05-01  Bruno Haible  <bruno@clisp.org>
33247
33248         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33249         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33250         dngettext, dcngettext, textdomain, bindtextdomain,
33251         bind_textdomain_codeset): Undefine before redefining.
33252
33253 2009-04-30  Bruno Haible  <bruno@clisp.org>
33254
33255         Fix bug introduced on 2009-04-25.
33256         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33257         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33258         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33259         is defined.
33260         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33261         is defined.
33262         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33263         is defined.
33264         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33265
33266 2009-04-28  Bruno Haible  <bruno@clisp.org>
33267
33268         Comment tweaks.
33269         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33270         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33271         * lib/unicase.h (u*_casexfrm): Likewise.
33272         Reported by Paolo Bonzini.
33273
33274 2009-04-28  Bruno Haible  <bruno@clisp.org>
33275
33276         Fix a compilation error.
33277         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33278         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33279         Reported by Jim Meyering.
33280
33281 2009-04-27  Bruno Haible  <bruno@clisp.org>
33282
33283         New module 'libunistring'.
33284         * modules/libunistring: New file.
33285         * m4/libunistring.m4: New file.
33286         * MODULES.html.sh (Unicode string functions): Add it.
33287
33288 2009-04-27  Eric Blake  <ebb9@byu.net>
33289
33290         maint.mk: allow package-specific header to provide <config.h>
33291         * top/maint.mk (sc_require_config_h): New variable.
33292         (sc_require_config_h, sc_require_config_h_first): Use it.
33293
33294 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33295
33296         * top/maint.mk (sc_avoid_if_before_free): Except
33297         useless-if-before-free script.
33298
33299 2009-04-27  Eric Blake  <ebb9@byu.net>
33300
33301         maintainer-makefile: depend on all required helper scripts
33302         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33303         useless-if-before-free.
33304         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33305         version, rather than assuming gnulib checkout is available.
33306         Reported by Simen Josefsson.
33307
33308 2009-04-26  Bruno Haible  <bruno@clisp.org>
33309
33310         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33311         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33312         "../" or "..".
33313
33314 2009-04-26  Bruno Haible  <bruno@clisp.org>
33315
33316         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33317         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33318         AC_LIB_HAVE_LINKFLAGS.
33319
33320 2009-04-26  Bruno Haible  <bruno@clisp.org>
33321
33322         Simplify calling convention of u*_conv_from_encoding.
33323         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33324         u32_conv_from_encoding): Expect a resultbuf argument and return the
33325         result directly as a pointer.
33326         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33327         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33328         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33329         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33330         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33331         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33332         Update.
33333         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33334         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33335         * lib/vasnprintf.c (VASNPRINTF): Update.
33336         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33337         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33338         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33339         * NEWS: Mention the change.
33340
33341 2009-04-26  Bruno Haible  <bruno@clisp.org>
33342
33343         Simplify calling convention of u*_conv_to_encoding.
33344         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33345         u32_conv_to_encoding): Expect a resultbuf argument and return the
33346         result directly as a pointer.
33347         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33348         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33349         freeing scaled_offsets if mem_iconveha failed.
33350         * lib/unicase/u-casexfrm.h (FUNC): Update.
33351         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33352         * lib/vasnprintf.c (VASNPRINTF): Update.
33353         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33354         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33355         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33356         * NEWS: Mention the change.
33357
33358 2009-04-26  Bruno Haible  <bruno@clisp.org>
33359
33360         Avoid test failures on AIX and OSF/1.
33361         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33362         malloc(0).
33363         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33364         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33365         Likewise.
33366         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33367         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33368         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33369         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33370         * doc/posix-functions/malloc.texi: Document the portability problem
33371         related to malloc(0).
33372
33373 2009-04-26  Bruno Haible  <bruno@clisp.org>
33374
33375         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33376         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33377         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33378
33379 2009-04-25  Bruno Haible  <bruno@clisp.org>
33380
33381         Avoid link error when creating a namespace clean library.
33382         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33383         as macro with arguments if already defined as an alias.
33384         * lib/signbitf.c (gl_signbitf): Don't undefine.
33385         * lib/signbitd.c (gl_signbitd): Don't undefine.
33386         * lib/signbitl.c (gl_signbitl): Don't undefine.
33387
33388 2009-04-25  Jim Meyering  <meyering@redhat.com>
33389
33390         vc-list-files: fix another quoting bug
33391         * build-aux/vc-list-files: Avoid sed backslash expansion
33392         of pathological directory names.
33393
33394 2009-04-25  Eric Blake  <ebb9@byu.net>
33395
33396         vc-list-files: fix shell quoting error
33397         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33398         timestamp.
33399
33400 2009-04-25  Jim Meyering  <meyering@redhat.com>
33401
33402         vc-list-files: restore lost functionality with subdir argument
33403         * build-aux/vc-list-files: When given a non-"." sub-directory
33404         argument, substitute the $dir/ prefix back onto each resulting name.
33405         Otherwise, coreutils' root_tests check would fail.
33406
33407 2009-04-24  Eric Blake  <ebb9@byu.net>
33408
33409         vc-list-files: ignore git symlinks
33410         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33411         than ls-files, to ignore git symlinks.
33412
33413         maint.mk: import improvements from m4
33414         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33415         (move_if_change): Delete unused macro.
33416         (news-date-check, vc-diff-check): Support VPATH builds.
33417         (announcement): Likewise.  Split --bootstrap-tools list...
33418         (boostrap-tools): ...into separate list, which can be overridden
33419         in cfg.mk.
33420         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33421         requiring dependency on useless-if-before-free module.
33422         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33423         Support VPATH builds.
33424
33425 2009-04-24  Jim Meyering  <meyering@redhat.com>
33426
33427         maint.mk: remove coreutils-specific rules and variables
33428         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33429         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33430         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33431
33432         maint.mk: remove obsolete rule
33433         * top/maint.mk (rel-check): Remove rule.
33434         (WGET, WGETFLAGS): Remove now-unused variables.
33435
33436 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33437
33438         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33439         consistency.
33440
33441         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33442         '$(PATH_SEPARATOR)' instead of ':'.
33443
33444 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33445
33446         * lib/getopt1.c (main): Use 'const' for static array.
33447
33448 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33449
33450         * top/maint.mk: Sync with coreutils.
33451         * NEWS: Explain incompatibilities.
33452
33453 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33454             Bruno Haible  <bruno@clisp.org>
33455
33456         Fix cross-compilation results.
33457         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33458         statement, as third argument of AC_TRY_RUN.
33459         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33460         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33461         Likewise.
33462         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33463         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33464         Likewise.
33465         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33466         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33467         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33468
33469 2009-04-20  Bruno Haible  <bruno@clisp.org>
33470
33471         Avoid test failure on mingw.
33472         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33473
33474 2009-04-20  Bruno Haible  <bruno@clisp.org>
33475
33476         Avoid compilation error on mingw.
33477         * modules/localename-tests (Depends-on): Add locale.
33478
33479 2009-04-19  Bruno Haible  <bruno@clisp.org>
33480
33481         Support for building a shared library on Windows platforms.
33482         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33483         (main): Test the presence of UNINORM_NFC here.
33484         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33485         (main): Test the presence of UNINORM_NFD here.
33486         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33487         (main): Test the presence of UNINORM_NFKC here.
33488         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33489         (main): Test the presence of UNINORM_NFKD here.
33490
33491 2009-04-19  Bruno Haible  <bruno@clisp.org>
33492
33493         Avoid a compiler warning.
33494         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33495         Change type of variable 'sequence'.
33496
33497 2009-04-19  Bruno Haible  <bruno@clisp.org>
33498
33499         * modules/configmake (Makefile.am): When the contents of configmake.h
33500         does not change, arrange to preserve its modification time.
33501
33502 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33503
33504         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33505         gettext domain.
33506
33507 2009-04-16  Jim Meyering  <meyering@redhat.com>
33508
33509         useless-if-before-free: improve conversion code
33510         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33511         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33512
33513 2009-04-14  Bruno Haible  <bruno@clisp.org>
33514
33515         * modules/fcntl (Depends-on): Add extensions.
33516         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33517
33518 2009-04-12  Ben Pfaff  <blp@gnu.org>
33519
33520         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33521         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33522
33523 2009-03-20  Ben Pfaff  <blp@gnu.org>
33524
33525         Make rename replace existing destinations on Windows.
33526         * m4/rename.m4: Add test for Mingw.
33527         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33528         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33529         * doc/posix-functions/rename.texi: Document.
33530
33531 2009-04-10  Bruno Haible  <bruno@clisp.org>
33532
33533         New include file "iconveh.h".
33534         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33535         * lib/striconveh.h: Include it.
33536         (enum iconv_ilseq_handler): Remove definition.
33537         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33538         striconveh.h.
33539         * lib/striconveha.c: Include striconveh.h.
33540         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33541         * modules/striconveh (Files): Add lib/iconveh.h.
33542         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33543         lib/striconveh.h.
33544
33545 2009-04-10  Bruno Haible  <bruno@clisp.org>
33546
33547         * lib/uniconv.h: Update comment.
33548
33549 2009-04-10  Bruno Haible  <bruno@clisp.org>
33550
33551         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33552         always.
33553         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33554         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33555         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33556         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33557         "unistring-notinline.h", so that the function gets defined always.
33558         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33559         * lib/unistr/u8-uctomb.c: Likewise.
33560         * lib/unistr/u16-mbtouc.c: Likewise.
33561         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33562         * lib/unistr/u16-uctomb.c: Likewise.
33563         * lib/unistr/u32-mbtouc.c: Likewise.
33564         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33565         * lib/unistr/u32-uctomb.c: Likewise.
33566
33567 2009-04-10  Bruno Haible  <bruno@clisp.org>
33568
33569         Mark 'utime' obsolete.
33570         * modules/utime (Status, Notice): New sections.
33571         Suggested by Jim Meyering.
33572
33573         Fix cross-compile guess for utime test.
33574         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33575         autoconf.
33576         * doc/posix-functions/utime.texi: Give more precisions.
33577         Reported by Jan <ipif@ymail.com>.
33578
33579 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33580
33581         filevercmp: correct today's change
33582         * lib/filevercmp.c: Also handle coreutils' test inputs.
33583         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33584
33585         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33586         for reporting it.
33587         * lib/filevercmp.c: Special handle for "", "." and "..".
33588         * tests/test-filevercmp.c: Enlarge the set suite.
33589
33590 2009-04-07  Jim Meyering  <meyering@redhat.com>
33591
33592         useless-if-before-free: show how to remove braced useless free, too
33593         * build-aux/useless-if-before-free: still only in a comment, though.
33594
33595 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33596
33597         maint.mk: import changes to syntax-check macros from coreutils
33598         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33599         Use them in the relevant macros.
33600
33601 2009-04-06  Bruno Haible  <bruno@clisp.org>
33602
33603         Fix unportable use of bit-fields.
33604         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33605         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33606         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33607
33608 2009-04-06  Bruno Haible  <bruno@clisp.org>
33609
33610         Avoid test failures on AIX and OSF/1.
33611         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33612         that malloc(0) = NULL.
33613         * tests/unicase/test-u8-tolower.c (check): Likewise.
33614         * tests/unicase/test-u8-totitle.c (check): Likewise.
33615         * tests/unicase/test-u8-toupper.c (check): Likewise.
33616         * tests/unicase/test-u16-casefold.c (check): Likewise.
33617         * tests/unicase/test-u16-tolower.c (check): Likewise.
33618         * tests/unicase/test-u16-totitle.c (check): Likewise.
33619         * tests/unicase/test-u16-toupper.c (check): Likewise.
33620         * tests/unicase/test-u32-casefold.c (check): Likewise.
33621         * tests/unicase/test-u32-tolower.c (check): Likewise.
33622         * tests/unicase/test-u32-totitle.c (check): Likewise.
33623         * tests/unicase/test-u32-toupper.c (check): Likewise.
33624         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33625         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33626         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33627         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33628         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33629         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33630         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33631         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33632         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33633         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33634         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33635         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33636
33637 2009-04-05  Bruno Haible  <bruno@clisp.org>
33638
33639         Work around an autoconf limitation.
33640         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33641         comment line if it would be longer than 3 KB.
33642
33643 2009-04-05  Bruno Haible  <bruno@clisp.org>
33644
33645         Avoid test failure with libiconv-1.13.
33646         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33647         of the expected test results.
33648
33649 2009-04-05  Bruno Haible  <bruno@clisp.org>
33650
33651         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33652         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33653         that it should be installed.
33654
33655 2009-04-05  Bruno Haible  <bruno@clisp.org>
33656
33657         * gnulib-tool: New option --copy-file.
33658         (func_usage): Document it.
33659         (func_dest_tmpfilename): Moved out of func_import.
33660         (func_add_file, func_update_file): New functions, extracted from
33661         func_import.
33662         (func_import): Update.
33663
33664 2009-04-05  Karl Berry  <karl@gnu.org>
33665
33666         * README: prominently mention gnulib-tool.
33667         Rearrange sections so getting the code is near the top.
33668
33669 2009-04-05  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/unicase.h: Mention u*_cmp2.
33672         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33673         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33674         * lib/unicase/ulc-casecmp.c: Likewise.
33675         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33676         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33677         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33678         unistr/u8-cmp.
33679         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33680         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33681         unistr/u16-cmp.
33682         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33683         unistr/u32-cmp.
33684
33685         * lib/uninorm.h: Mention u*_cmp2.
33686         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33687         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33688         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33689         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33690         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33691         unistr/u8-cmp.
33692         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33693         unistr/u16-cmp.
33694         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33695         unistr/u32-cmp.
33696
33697         New module 'unistr/u32-cmp2'.
33698         * lib/unistr/u32-cmp2.c: New file.
33699         * modules/unistr/u32-cmp2: New file.
33700
33701         New module 'unistr/u16-cmp2'.
33702         * lib/unistr/u16-cmp2.c: New file.
33703         * modules/unistr/u16-cmp2: New file.
33704
33705         New module 'unistr/u8-cmp2'.
33706         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33707         * lib/unistr/u8-cmp2.c: New file.
33708         * lib/unistr/u-cmp2.h: New file.
33709         * modules/unistr/u8-cmp2: New file.
33710
33711 2009-04-05  Bruno Haible  <bruno@clisp.org>
33712
33713         * lib/unictype.h (uc_property_is_valid): New macro.
33714         * tests/unictype/test-pr_byname.c (main): Use it.
33715
33716         * lib/unistr.h: Doc fixes.
33717         * lib/uniconv.h: Doc fixes.
33718         * lib/unictype.h: Doc fixes.
33719
33720 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33721
33722         Port coreutils 7.2 to Solaris 8.
33723
33724         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33725         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33726         for Solaris 8.  This is a bit of a hack, as it means it's the
33727         caller's responsibility to add -lnsl if needed, but most likely it
33728         won't be needed since only getaddrinfo uses this and getaddrinfo
33729         isn't needed on Solaris 8.
33730
33731         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33732         problem to Solaris 8 encountered with coreutils 7.2, which
33733         resulted in a message "fnmatch.c:292: warning: passing argument 4
33734         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33735         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33736
33737 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33738
33739         * m4/ld-version-script.m4: Add FIXME comment.
33740
33741 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33742
33743         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33744         SOVERSION variable.
33745
33746 2009-04-02  Bruno Haible  <bruno@clisp.org>
33747
33748         * Makefile (info, html, dvi, pdf): Combine the rules.
33749         Suggested by Jim Meyering.
33750
33751 2009-04-01  Bruno Haible  <bruno@clisp.org>
33752
33753         * Makefile (info, html, dvi, pdf): New targets.
33754         Reported by Reuben Thomas <rrt@sc3d.org>.
33755
33756 2009-04-01  Bruno Haible  <bruno@clisp.org>
33757
33758         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33759         can be put into PATH.
33760         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33761
33762 2009-04-01  Bruno Haible  <bruno@clisp.org>
33763
33764         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33765
33766 2009-04-01  Bruno Haible  <bruno@clisp.org>
33767
33768         Rename module 'visibility'.
33769         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33770         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33771         * doc/gnulib.texi: Update.
33772         * MODULES.html.sh (Misc): Update.
33773         * NEWS: Mention the change.
33774
33775 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33776
33777         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33778         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33779         Eric Blake <ebb9@byu.net> for review.
33780         * MODULES.html.sh: Add lib-msvc-compat.
33781         * doc/gnulib.texi: Link to new section.
33782         * m4/ld-output-def.m4: New file.
33783         * doc/ld-output-def.texi: New file.
33784
33785 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33786
33787         Rename ld-version-script to lib-symbol-versions.  Suggested by
33788         Bruno Haible <bruno@clisp.org>.
33789         * modules/ld-version-script: Renamed to lib-symbol-versions.
33790         * doc/ld-version-script.texi: Fix module name.
33791         * MODULES.html.sh: Add lib-symbol-versions.
33792
33793 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33794
33795         * modules/u64-tests: New file.
33796         * tests/test-u64.c: New file.
33797
33798 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33799
33800         * MODULES.html.sh: Mention u64.
33801         * modules/u64: New module.
33802         * modules/crypto/sha512: Depend on u64 module instead of providing
33803         u64.h.
33804
33805 2009-03-27  Eric Blake  <ebb9@byu.net>
33806
33807         test-strerror: make debugging EAI_SYSTEM easier
33808         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33809         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33810         failure was EAI_SYSTEM.
33811
33812 2009-03-25  Bruno Haible  <bruno@clisp.org>
33813
33814         Fix a problem with --enable-relocatable on Solaris 7.
33815         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33816         since 2008-02-24.
33817
33818 2009-03-25  Eric Blake  <ebb9@byu.net>
33819
33820         test-sockets: avoid gcc warning
33821         * tests/test-sockets.c (main): Silence compiler warning.
33822
33823 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33824
33825         New modules nproc, pthread, contributed by Glen Lenker.
33826
33827         * MODULES.html.sh: Add pthread, nproc.
33828         * lib/nproc.c: New file.
33829         * lib/nproc.h: New file.
33830         * lib/pthread.in.h: New file.
33831         * m4/pthread.m4: New file.
33832         * modules/nproc: New file.
33833         * modules/pthread: New file.
33834
33835 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33836
33837         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33838         New variable.
33839
33840 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33841
33842         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33843         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33844         * tests/test-filevercmp.c: Add tests for backup suffixes.
33845
33846 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33847
33848         * modules/stdlib (Depends-on): Add stdint, needed when defining
33849         struct random_data on, for example, HP-UX 10.20.  Reported by
33850         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33851
33852 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33853
33854         * lib/readline.c (readline): Call fflush on stdout after printing
33855         prompt.
33856
33857 2009-03-20  Bruno Haible  <bruno@clisp.org>
33858
33859         Remove dependency from 'close' module to -lws2_32 on native Windows.
33860         * lib/close-hook.h: New file.
33861         * lib/close-hook.c: New file.
33862         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33863         w32sock.h.
33864         (_gl_close_fd_maybe_socket): Remove function.
33865         (rpl_close): Invoke execute_all_close_hooks instead of
33866         _gl_close_fd_maybe_socket.
33867         * lib/sockets.c: Include close-hook.h, w32sock.h.
33868         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33869         (close_sockets_hook): New variable.
33870         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33871         (gl_sockets_cleanup): Unregister it.
33872         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33873         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33874         * modules/close-hook: New file.
33875         * modules/close (Files): Remove lib/w32sock.h.
33876         (Depends-on): Add close-hook.
33877         (Link): Remove section.
33878         * modules/sockets (Files): Add lib/w32sock.h.
33879         (Depends-on): Add close-hook.
33880         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33881         invocation.
33882         * NEWS: Mention that LIB_CLOSE is gone.
33883
33884 2009-03-23  Eric Blake  <ebb9@byu.net>
33885
33886         signal-tests: test previous patch
33887         * tests/test-signal.c: New file.
33888         * modules/signal-tests: Likewise.
33889
33890         signal.h: always support 'volatile sig_atomic_t'
33891         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33892         (gl_SIGNAL_H_DEFAULTS): Add a default.
33893         * modules/signal (Makefile.am): Substitute if needed.
33894         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33895         users can blindly add volatile.
33896         * doc/posix-headers/signal.texi (signal.h): Document it.
33897         Reported by Matthew Woehlke.
33898
33899 2009-03-23  Jim Meyering  <meyering@redhat.com>
33900
33901         pathmax: PATH_MAX: use pathconf only when available
33902         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33903         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33904         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33905         This avoids a link failure in a PSP cross-compilation environment
33906         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33907
33908         * lib/vasnprintf.c (divide): Fix typo in comment.
33909
33910 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33911
33912         * gnulib-tool (func_filter_filelist): Fix comment.
33913
33914 2009-03-20  Bruno Haible  <bruno@clisp.org>
33915
33916         Make sockets.h self-contained.
33917         * lib/sockets.c: Include sockets.h first.
33918         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33919
33920 2009-03-19  Eric Blake  <ebb9@byu.net>
33921
33922         doc: mention more functions added in cygwin 1.7.0
33923         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33924         addition.
33925         * doc/posix-functions/log2f.texi: Likewise.
33926
33927 2009-03-19  Jim Meyering  <meyering@redhat.com>
33928
33929         fsusage: avoid syntax error due to statement-before-declaration
33930         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33931         after all declarations.  Reported by Matthew Woehlke in
33932         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33933
33934 2009-03-18  Eric Blake  <ebb9@byu.net>
33935
33936         build-aux/compile: sync from automake
33937         * build-aux/compile: New file, from automake.
33938         * config/srclist.txt: Mention build-aux/compile.
33939
33940 2009-03-17  Bruno Haible  <bruno@clisp.org>
33941
33942         * lib/git-merge-changelog.c: Fix typo in comment.
33943         Reported by Reuben Thomas <rrt@sc3d.org>.
33944
33945 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33946
33947         * m4/regex.m4: update and improve help for
33948         --without-included-regex.
33949
33950 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33951
33952         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33953         failure on missing include files.
33954
33955 2009-03-17  Eric Blake  <ebb9@byu.net>
33956
33957         doc: mention more functions added in cygwin 1.7.0
33958         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33959         addition.
33960         * doc/posix-functions/fwscanf.texi: Likewise.
33961         * doc/posix-functions/swprintf.texi: Likewise.
33962         * doc/posix-functions/swscanf.texi: Likewise.
33963         * doc/posix-functions/vfwprintf.texi: Likewise.
33964         * doc/posix-functions/vfwscanf.texi: Likewise.
33965         * doc/posix-functions/vswprintf.texi: Likewise.
33966         * doc/posix-functions/vswscanf.texi: Likewise.
33967         * doc/posix-functions/vwprintf.texi: Likewise.
33968         * doc/posix-functions/vwscanf.texi: Likewise.
33969         * doc/posix-functions/wcscasecmp.texi: Likewise.
33970         * doc/posix-functions/wcsdup.texi: Likewise.
33971         * doc/posix-functions/wcsftime.texi: Likewise.
33972         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33973         * doc/posix-functions/wprintf.texi: Likewise.
33974         * doc/posix-functions/wscanf.texi: Likewise.
33975         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33976
33977 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33978
33979         maint.mk: really add $(AM_MAKEFLAGS)
33980         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33981         was inadvertently omitted in the last commit.
33982         Spotted by Bruno Haible.
33983
33984         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33985         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33986         $(AM_MAKEFLAGS)' rather than plain `make'.
33987
33988         gnulib-tool: execute $MAKE not make
33989         * gnulib-tool: Default $MAKE to 'make'.
33990         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33991         than make.  Initialize $MAKE in the do-autobuild script.
33992
33993         gnulib-tool: use $MAKE not make in generated files
33994         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33995         make, in generated files.  Initialize $MAKE in the do-autobuild
33996         script.
33997
33998         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33999
34000         GNUmakefile: disable parallelism only for multiple, recursive targets
34001         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34002         additions in the Makefile.
34003         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34004         by Automake.
34005         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34006         are listed on the command line and at least one of them is
34007         listed in $(ALL_RECURSIVE_TARGETS).
34008
34009 2009-03-14  Bruno Haible  <bruno@clisp.org>
34010
34011         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34012         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34013         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34014         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34015         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34016         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34017         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34018         unistr/u8-uctomb.
34019         * modules/unistr/u8-strchr (Depends-on): Likewise.
34020         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34021         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34022         unistr/u16-uctomb.
34023         * modules/unistr/u16-strchr (Depends-on): Likewise.
34024         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34025
34026 2009-03-12  Bruno Haible  <bruno@clisp.org>
34027
34028         Work around select() bug on Interix 3.5.
34029         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34030         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34031         * m4/select.m4: New file.
34032         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34033         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34034         * modules/select (Files): Add m4/select.m4.
34035         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34036         * modules/nanosleep (Depends-on): Add select.
34037         * modules/poll (Depends-on): Likewise.
34038         * doc/posix-functions/select.texi: Mention the Interix bug.
34039         Reported by Markus Duft <mduft@gentoo.org>.
34040
34041         * lib/select.c: Renamed from lib/winsock-select.c.
34042         * modules/select (Files): Add lib/select.c, remove
34043         lib/winsock-select.c.
34044         (configure.ac): Update.
34045
34046 2009-03-12  Jim Meyering  <meyering@redhat.com>
34047
34048         avoid gcc warnings about unused macro definitions
34049         * lib/readtokens.c (STREQ): Remove unused definition.
34050         * lib/xmalloc.c (SIZE_MAX): Likewise.
34051         * lib/openat-die.c (N_): Likewise.
34052         * lib/mountlist.c (SIZE_MAX): Remove definition.
34053         Instead, include <stdint.h>.
34054         * lib/readutmp.c: Likewise.
34055         * modules/readutmp (Depends-on): Add stdint.
34056         * modules/mountlist (Depends-on): Add stdint.
34057         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34058
34059 2009-03-10  Bruno Haible  <bruno@clisp.org>
34060
34061         Tests for module 'mbmemcasecoll'.
34062         * modules/mbmemcasecoll-tests: New file.
34063         * tests/test-mbmemcasecoll1.sh: New file.
34064         * tests/test-mbmemcasecoll2.sh: New file.
34065         * tests/test-mbmemcasecoll3.sh: New file.
34066         * tests/test-mbmemcasecoll.c: New file.
34067
34068         New module 'mbmemcasecoll'.
34069         * lib/mbmemcasecoll.h: New file.
34070         * lib/mbmemcasecoll.c: New file.
34071         * modules/mbmemcasecoll: New file.
34072
34073         * tests/test-mbmemcasecmp.h: New file, extracted from
34074         tests/test-mbmemcasecmp.c.
34075         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34076         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34077         (main): Update.
34078         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34079
34080 2009-03-09  Bruno Haible  <bruno@clisp.org>
34081
34082         Tests for module 'mbmemcasecmp'.
34083         * modules/mbmemcasecmp-tests: New file.
34084         * tests/test-mbmemcasecmp1.sh: New file.
34085         * tests/test-mbmemcasecmp2.sh: New file.
34086         * tests/test-mbmemcasecmp3.sh: New file.
34087         * tests/test-mbmemcasecmp.c: New file.
34088
34089         New module 'mbmemcasecmp'.
34090         * lib/mbmemcasecmp.h: New file.
34091         * lib/mbmemcasecmp.c: New file.
34092         * modules/mbmemcasecmp: New file.
34093
34094 2009-03-09  Bruno Haible  <bruno@clisp.org>
34095
34096         Tests for module 'unicase/ulc-casecoll'.
34097         * modules/unicase/ulc-casecoll-tests: New file.
34098         * tests/unicase/test-ulc-casecoll1.sh: New file.
34099         * tests/unicase/test-ulc-casecoll2.sh: New file.
34100         * tests/unicase/test-ulc-casecoll.c: New file.
34101
34102         New module 'unicase/ulc-casecoll'.
34103         * lib/unicase.h (ulc_casecoll): New declaration.
34104         * lib/unicase/ulc-casecoll.c: New file.
34105         * modules/unicase/ulc-casecoll: New file.
34106
34107         New module 'unicase/ulc-casexfrm'.
34108         * lib/unicase.h (ulc_casexfrm): New declaration.
34109         * lib/unicase/ulc-casexfrm.c: New file.
34110         * modules/unicase/ulc-casexfrm: New file.
34111
34112 2009-03-09  Bruno Haible  <bruno@clisp.org>
34113
34114         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34115         invocations.
34116
34117         * m4/mbscasecmp.m4: Remove file.
34118         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34119         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34120
34121         * m4/mbscasestr.m4: Remove file.
34122         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34123         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34124
34125         * m4/mbschr.m4: Remove file.
34126         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34127         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34128
34129         * m4/mbscspn.m4: Remove file.
34130         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34131         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34132
34133         * m4/mbslen.m4: Remove file.
34134         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34135         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34136
34137         * m4/mbsncasecmp.m4: Remove file.
34138         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34139         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34140
34141         * m4/mbsnlen.m4: Remove file.
34142         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34143         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34144
34145         * m4/mbspbrk.m4: Remove file.
34146         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34147         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34148
34149         * m4/mbspcasecmp.m4: Remove file.
34150         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34151         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34152
34153         * m4/mbsrchr.m4: Remove file.
34154         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34155         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34156
34157         * m4/mbssep.m4: Remove file.
34158         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34159         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34160
34161         * m4/mbsspn.m4: Remove file.
34162         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34163         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34164
34165         * m4/mbsstr.m4: Remove file.
34166         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34167         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34168
34169         * m4/mbstok_r.m4: Remove file.
34170         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34171         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34172
34173         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34174
34175         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34176         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34177
34178         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34179
34180 2009-03-08  Bruno Haible  <bruno@clisp.org>
34181
34182         Tests for module 'unicase/ulc-casecmp'.
34183         * modules/unicase/ulc-casecmp-tests: New file.
34184         * tests/unicase/test-ulc-casecmp1.sh: New file.
34185         * tests/unicase/test-ulc-casecmp2.sh: New file.
34186         * tests/unicase/test-ulc-casecmp.c: New file.
34187
34188         New module 'unicase/ulc-casecmp'.
34189         * lib/unicase.h (ulc_casecmp): New declaration.
34190         * lib/unicase/ulc-casecmp.c: New file.
34191         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34192         'const SRC_UNIT *'.
34193         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34194         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34195         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34196         * modules/unicase/ulc-casecmp: New file.
34197
34198         Tests for module 'unicase/u32-is-cased'.
34199         * modules/unicase/u32-is-cased-tests: New file.
34200         * tests/unicase/test-u32-is-cased.c: New file.
34201
34202         Tests for module 'unicase/u16-is-cased'.
34203         * modules/unicase/u16-is-cased-tests: New file.
34204         * tests/unicase/test-u16-is-cased.c: New file.
34205
34206         Tests for module 'unicase/u8-is-cased'.
34207         * modules/unicase/u8-is-cased-tests: New file.
34208         * tests/unicase/test-u8-is-cased.c: New file.
34209         * tests/unicase/test-is-cased.h: New file.
34210
34211         New module 'unicase/u32-is-cased'.
34212         * lib/unicase/u32-is-cased.c: New file.
34213         * modules/unicase/u32-is-cased: New file.
34214
34215         New module 'unicase/u16-is-cased'.
34216         * lib/unicase/u16-is-cased.c: New file.
34217         * modules/unicase/u16-is-cased: New file.
34218
34219         New module 'unicase/u8-is-cased'.
34220         * lib/unicase/u8-is-cased.c: New file.
34221         * lib/unicase/u-is-cased.h: New file.
34222         * modules/unicase/u8-is-cased: New file.
34223
34224         Tests for module 'unicase/u32-is-casefolded'.
34225         * modules/unicase/u32-is-casefolded-tests: New file.
34226         * tests/unicase/test-u32-is-casefolded.c: New file.
34227
34228         Tests for module 'unicase/u16-is-casefolded'.
34229         * modules/unicase/u16-is-casefolded-tests: New file.
34230         * tests/unicase/test-u16-is-casefolded.c: New file.
34231
34232         Tests for module 'unicase/u8-is-casefolded'.
34233         * modules/unicase/u8-is-casefolded-tests: New file.
34234         * tests/unicase/test-u8-is-casefolded.c: New file.
34235         * tests/unicase/test-is-casefolded.h: New file.
34236
34237         New module 'unicase/u32-is-casefolded'.
34238         * lib/unicase/u32-is-casefolded.c: New file.
34239         * modules/unicase/u32-is-casefolded: New file.
34240
34241         New module 'unicase/u16-is-casefolded'.
34242         * lib/unicase/u16-is-casefolded.c: New file.
34243         * modules/unicase/u16-is-casefolded: New file.
34244
34245         New module 'unicase/u8-is-casefolded'.
34246         * lib/unicase/u8-is-casefolded.c: New file.
34247         * modules/unicase/u8-is-casefolded: New file.
34248
34249         Tests for module 'unicase/u32-is-titlecase'.
34250         * modules/unicase/u32-is-titlecase-tests: New file.
34251         * tests/unicase/test-u32-is-titlecase.c: New file.
34252
34253         Tests for module 'unicase/u16-is-titlecase'.
34254         * modules/unicase/u16-is-titlecase-tests: New file.
34255         * tests/unicase/test-u16-is-titlecase.c: New file.
34256
34257         Tests for module 'unicase/u8-is-titlecase'.
34258         * modules/unicase/u8-is-titlecase-tests: New file.
34259         * tests/unicase/test-u8-is-titlecase.c: New file.
34260         * tests/unicase/test-is-titlecase.h: New file.
34261
34262         New module 'unicase/u32-is-titlecase'.
34263         * lib/unicase/u32-is-titlecase.c: New file.
34264         * modules/unicase/u32-is-titlecase: New file.
34265
34266         New module 'unicase/u16-is-titlecase'.
34267         * lib/unicase/u16-is-titlecase.c: New file.
34268         * modules/unicase/u16-is-titlecase: New file.
34269
34270         New module 'unicase/u8-is-titlecase'.
34271         * lib/unicase/u8-is-titlecase.c: New file.
34272         * modules/unicase/u8-is-titlecase: New file.
34273
34274         Tests for module 'unicase/u32-is-lowercase'.
34275         * modules/unicase/u32-is-lowercase-tests: New file.
34276         * tests/unicase/test-u32-is-lowercase.c: New file.
34277
34278         Tests for module 'unicase/u16-is-lowercase'.
34279         * modules/unicase/u16-is-lowercase-tests: New file.
34280         * tests/unicase/test-u16-is-lowercase.c: New file.
34281
34282         Tests for module 'unicase/u8-is-lowercase'.
34283         * modules/unicase/u8-is-lowercase-tests: New file.
34284         * tests/unicase/test-u8-is-lowercase.c: New file.
34285         * tests/unicase/test-is-lowercase.h: New file.
34286
34287         New module 'unicase/u32-is-lowercase'.
34288         * lib/unicase/u32-is-lowercase.c: New file.
34289         * modules/unicase/u32-is-lowercase: New file.
34290
34291         New module 'unicase/u16-is-lowercase'.
34292         * lib/unicase/u16-is-lowercase.c: New file.
34293         * modules/unicase/u16-is-lowercase: New file.
34294
34295         New module 'unicase/u8-is-lowercase'.
34296         * lib/unicase/u8-is-lowercase.c: New file.
34297         * modules/unicase/u8-is-lowercase: New file.
34298
34299         Tests for module 'unicase/u32-is-uppercase'.
34300         * modules/unicase/u32-is-uppercase-tests: New file.
34301         * tests/unicase/test-u32-is-uppercase.c: New file.
34302
34303         Tests for module 'unicase/u16-is-uppercase'.
34304         * modules/unicase/u16-is-uppercase-tests: New file.
34305         * tests/unicase/test-u16-is-uppercase.c: New file.
34306
34307         Tests for module 'unicase/u8-is-uppercase'.
34308         * modules/unicase/u8-is-uppercase-tests: New file.
34309         * tests/unicase/test-u8-is-uppercase.c: New file.
34310         * tests/unicase/test-is-uppercase.h: New file.
34311
34312         New module 'unicase/u32-is-uppercase'.
34313         * lib/unicase/u32-is-uppercase.c: New file.
34314         * modules/unicase/u32-is-uppercase: New file.
34315
34316         New module 'unicase/u16-is-uppercase'.
34317         * lib/unicase/u16-is-uppercase.c: New file.
34318         * modules/unicase/u16-is-uppercase: New file.
34319
34320         New module 'unicase/u8-is-uppercase'.
34321         * lib/unicase/u8-is-uppercase.c: New file.
34322         * modules/unicase/u8-is-uppercase: New file.
34323
34324         New module 'unicase/u32-is-invariant'.
34325         * lib/unicase/u32-is-invariant.c: New file.
34326         * modules/unicase/u32-is-invariant: New file.
34327
34328         New module 'unicase/u16-is-invariant'.
34329         * lib/unicase/u16-is-invariant.c: New file.
34330         * modules/unicase/u16-is-invariant: New file.
34331
34332         New module 'unicase/u8-is-invariant'.
34333         * lib/unicase/u8-is-invariant.c: New file.
34334         * lib/unicase/invariant.h: New file.
34335         * lib/unicase/u-is-invariant.h: New file.
34336         * modules/unicase/u8-is-invariant: New file.
34337
34338         Tests for module 'unicase/u32-casecoll'.
34339         * modules/unicase/u32-casecoll-tests: New file.
34340         * tests/unicase/test-u32-casecoll.c: New file.
34341
34342         Tests for module 'unicase/u16-casecoll'.
34343         * modules/unicase/u16-casecoll-tests: New file.
34344         * tests/unicase/test-u16-casecoll.c: New file.
34345
34346         Tests for module 'unicase/u8-casecoll'.
34347         * modules/unicase/u8-casecoll-tests: New file.
34348         * tests/unicase/test-u8-casecoll.c: New file.
34349
34350         New module 'unicase/u32-casecoll'.
34351         * lib/unicase/u32-casecoll.c: New file.
34352         * modules/unicase/u32-casecoll: New file.
34353
34354         New module 'unicase/u16-casecoll'.
34355         * lib/unicase/u16-casecoll.c: New file.
34356         * modules/unicase/u16-casecoll: New file.
34357
34358         New module 'unicase/u8-casecoll'.
34359         * lib/unicase/u8-casecoll.c: New file.
34360         * lib/unicase/u-casecoll.h: New file.
34361         * modules/unicase/u8-casecoll: New file.
34362
34363         New module 'unicase/u32-casexfrm'.
34364         * lib/unicase/u32-casexfrm.c: New file.
34365         * modules/unicase/u32-casexfrm: New file.
34366
34367         New module 'unicase/u16-casexfrm'.
34368         * lib/unicase/u16-casexfrm.c: New file.
34369         * modules/unicase/u16-casexfrm: New file.
34370
34371         New module 'unicase/u8-casexfrm'.
34372         * lib/unicase/u8-casexfrm.c: New file.
34373         * lib/unicase/u-casexfrm.h: New file.
34374         * modules/unicase/u8-casexfrm: New file.
34375
34376         Tests for module 'unicase/u32-casecmp'.
34377         * modules/unicase/u32-casecmp-tests: New file.
34378         * tests/unicase/test-u32-casecmp.c: New file.
34379
34380         Tests for module 'unicase/u16-casecmp'.
34381         * modules/unicase/u16-casecmp-tests: New file.
34382         * tests/unicase/test-u16-casecmp.c: New file.
34383
34384         Tests for module 'unicase/u8-casecmp'.
34385         * modules/unicase/u8-casecmp-tests: New file.
34386         * tests/unicase/test-u8-casecmp.c: New file.
34387         * tests/unicase/test-casecmp.h: New file.
34388
34389         New module 'unicase/u32-casecmp'.
34390         * lib/unicase/u32-casecmp.c: New file.
34391         * modules/unicase/u32-casecmp: New file.
34392
34393         New module 'unicase/u16-casecmp'.
34394         * lib/unicase/u16-casecmp.c: New file.
34395         * modules/unicase/u16-casecmp: New file.
34396
34397         New module 'unicase/u8-casecmp'.
34398         * lib/unicase/u8-casecmp.c: New file.
34399         * lib/unicase/u-casecmp.h: New file.
34400         * modules/unicase/u8-casecmp: New file.
34401
34402         Tests for module 'unicase/u32-casefold'.
34403         * modules/unicase/u32-casefold-tests: New file.
34404         * tests/unicase/test-u32-casefold.c: New file.
34405
34406         Tests for module 'unicase/u16-casefold'.
34407         * modules/unicase/u16-casefold-tests: New file.
34408         * tests/unicase/test-u16-casefold.c: New file.
34409
34410         Tests for module 'unicase/u8-casefold'.
34411         * modules/unicase/u8-casefold-tests: New file.
34412         * tests/unicase/test-u8-casefold.c: New file.
34413
34414         New module 'unicase/u32-casefold'.
34415         * lib/unicase/u32-casefold.c: New file.
34416         * modules/unicase/u32-casefold: New file.
34417
34418         New module 'unicase/u16-casefold'.
34419         * lib/unicase/u16-casefold.c: New file.
34420         * modules/unicase/u16-casefold: New file.
34421
34422         New module 'unicase/u8-casefold'.
34423         * lib/unicase/u8-casefold.c: New file.
34424         * lib/unicase/u-casefold.h: New file.
34425         * modules/unicase/u8-casefold: New file.
34426
34427         New module 'unicase/tocasefold'.
34428         * lib/unicase/casefold.h: New file.
34429         * lib/unicase/tocasefold.c: New file.
34430         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34431         * modules/unicase/tocasefold: New file.
34432
34433         Tests for module 'unicase/u32-totitle'.
34434         * modules/unicase/u32-totitle-tests: New file.
34435         * tests/unicase/test-u32-totitle.c: New file.
34436
34437         Tests for module 'unicase/u16-totitle'.
34438         * modules/unicase/u16-totitle-tests: New file.
34439         * tests/unicase/test-u16-totitle.c: New file.
34440
34441         Tests for module 'unicase/u8-totitle'.
34442         * modules/unicase/u8-totitle-tests: New file.
34443         * tests/unicase/test-u8-totitle.c: New file.
34444
34445         New module 'unicase/u32-totitle'.
34446         * lib/unicase/u32-totitle.c: New file.
34447         * modules/unicase/u32-totitle: New file.
34448
34449         New module 'unicase/u16-totitle'.
34450         * lib/unicase/u16-totitle.c: New file.
34451         * modules/unicase/u16-totitle: New file.
34452
34453         New module 'unicase/u8-totitle'.
34454         * lib/unicase/u8-totitle.c: New file.
34455         * lib/unicase/u-totitle.h: New file.
34456         * modules/unicase/u8-totitle: New file.
34457
34458         Tests for module 'unicase/u32-tolower'.
34459         * modules/unicase/u32-tolower-tests: New file.
34460         * tests/unicase/test-u32-tolower.c: New file.
34461
34462         Tests for module 'unicase/u16-tolower'.
34463         * modules/unicase/u16-tolower-tests: New file.
34464         * tests/unicase/test-u16-tolower.c: New file.
34465
34466         Tests for module 'unicase/u8-tolower'.
34467         * modules/unicase/u8-tolower-tests: New file.
34468         * tests/unicase/test-u8-tolower.c: New file.
34469
34470         New module 'unicase/u32-tolower'.
34471         * lib/unicase/u32-tolower.c: New file.
34472         * modules/unicase/u32-tolower: New file.
34473
34474         New module 'unicase/u16-tolower'.
34475         * lib/unicase/u16-tolower.c: New file.
34476         * modules/unicase/u16-tolower: New file.
34477
34478         New module 'unicase/u8-tolower'.
34479         * lib/unicase/u8-tolower.c: New file.
34480         * modules/unicase/u8-tolower: New file.
34481
34482         Tests for module 'unicase/u32-toupper'.
34483         * modules/unicase/u32-toupper-tests: New file.
34484         * tests/unicase/test-u32-toupper.c: New file.
34485
34486         Tests for module 'unicase/u16-toupper'.
34487         * modules/unicase/u16-toupper-tests: New file.
34488         * tests/unicase/test-u16-toupper.c: New file.
34489
34490         Tests for module 'unicase/u8-toupper'.
34491         * modules/unicase/u8-toupper-tests: New file.
34492         * tests/unicase/test-u8-toupper.c: New file.
34493
34494         New module 'unicase/u32-toupper'.
34495         * lib/unicase/u32-toupper.c: New file.
34496         * modules/unicase/u32-toupper: New file.
34497
34498         New module 'unicase/u16-toupper'.
34499         * lib/unicase/u16-toupper.c: New file.
34500         * modules/unicase/u16-toupper: New file.
34501
34502         New module 'unicase/u8-toupper'.
34503         * lib/unicase/u8-toupper.c: New file.
34504         * modules/unicase/u8-toupper: New file.
34505
34506         New module 'unicase/u32-casemap'.
34507         * lib/unicase/u32-casemap.c: New file.
34508         * modules/unicase/u32-casemap: New file.
34509
34510         New module 'unicase/u16-casemap'.
34511         * lib/unicase/u16-casemap.c: New file.
34512         * modules/unicase/u16-casemap: New file.
34513
34514         New module 'unicase/u8-casemap'.
34515         * lib/unicase/unicasemap.h: New file.
34516         * lib/unicase/u8-casemap.c: New file.
34517         * lib/unicase/u-casemap.h: New file.
34518         * modules/unicase/u8-casemap: New file.
34519
34520         New module 'unicase/special-casing'.
34521         * lib/unicase/special-casing.h: New file.
34522         * lib/unicase/special-casing.c: New file.
34523         * lib/unicase/special-casing-table.gperf: New file, generated by
34524         gen-uni-tables.c.
34525         * modules/unicase/special-casing: New file.
34526
34527         Tests for module 'unicase/locale-language'.
34528         * modules/unicase/locale-language-tests: New file.
34529         * tests/unicase/test-locale-language.sh: New file.
34530         * tests/unicase/test-locale-language.c: New file.
34531
34532         New module 'unicase/locale-language'.
34533         * lib/unicase/locale-language.c: New file.
34534         * lib/unicase/locale-languages.gperf: New file.
34535         * modules/unicase/locale-language: New file.
34536
34537         Generate more tables for case conversion and case folding.
34538         * lib/gen-uni-tables.c (SCC_*): New enum items.
34539         (struct special_casing_rule): New type.
34540         (casing_rules, num_casing_rules, allocated_casing_rules): New
34541         variables.
34542         (add_casing_rule, fill_casing_rules): New functions.
34543         (struct casefold_rule): New type.
34544         (casefolding_rules, num_casefolding_rules,
34545         allocated_casefolding_rules): New variables.
34546         (fill_casefolding_rules): New function.
34547         (unicode_casefold): New variable.
34548         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34549         sort_casing_rules, output_casing_rules): New functions.
34550         (main): Accept to more arguments: SpecialCasing.txt and
34551         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34552         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34553         Output mapping for casefolding.
34554
34555         * lib/unicase.h: Include stdbool.h, uninorm.h.
34556         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34557         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34558         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34559         arguments.
34560         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34561         resultp arguments.
34562         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34563         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34564         resultp arguments.
34565         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34566         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34567         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34568         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34569         declarations.
34570         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34571
34572 2009-03-08  Bruno Haible  <bruno@clisp.org>
34573
34574         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34575         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34576         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34577         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34578
34579 2009-03-07  Bruno Haible  <bruno@clisp.org>
34580
34581         Adjust u*_normcmp, u*_normcoll API.
34582         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34583         u16_normcoll, u32_normcoll): Change failure conventions.
34584         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34585         errno and return -1.
34586         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34587
34588 2009-03-07  Bruno Haible  <bruno@clisp.org>
34589
34590         Tests for module 'uninorm/u32-normcoll'.
34591         * modules/uninorm/u32-normcoll-tests: New file.
34592         * tests/uninorm/test-u32-normcoll.c: New file.
34593
34594         Tests for module 'uninorm/u16-normcoll'.
34595         * modules/uninorm/u16-normcoll-tests: New file.
34596         * tests/uninorm/test-u16-normcoll.c: New file.
34597
34598         Tests for module 'uninorm/u8-normcoll'.
34599         * modules/uninorm/u8-normcoll-tests: New file.
34600         * tests/uninorm/test-u8-normcoll.c: New file.
34601
34602 2009-03-07  Bruno Haible  <bruno@clisp.org>
34603
34604         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34605         tests/uninorm/test-u32-normcmp.c.
34606         * tests/uninorm/test-u32-normcmp.c: Include it.
34607         (test_nonascii): New function, extracted from main. Add some more
34608         tests.
34609         (main): Invoke test_ascii and test_nonascii.
34610         * modules/uninorm/u32-normcmp-tests (Files): Add
34611         tests/uninorm/test-u32-normcmp.h.
34612         (Depends-on): Remove uninorm/u32-normcmp.
34613
34614         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34615         tests/uninorm/test-u16-normcmp.c.
34616         * tests/uninorm/test-u16-normcmp.c: Include it.
34617         (test_nonascii): New function, extracted from main. Add some more
34618         tests.
34619         (main): Invoke test_ascii and test_nonascii.
34620         * modules/uninorm/u16-normcmp-tests (Files): Add
34621         tests/uninorm/test-u16-normcmp.h.
34622         (Depends-on): Remove uninorm/u16-normcmp.
34623
34624         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34625         tests/uninorm/test-u8-normcmp.c.
34626         * tests/uninorm/test-u8-normcmp.c: Include it.
34627         (test_nonascii): New function, extracted from main. Add some more
34628         tests.
34629         (main): Invoke test_ascii and test_nonascii.
34630         * modules/uninorm/u8-normcmp-tests (Files): Add
34631         tests/uninorm/test-u8-normcmp.h.
34632         (Depends-on): Remove uninorm/u8-normcmp.
34633
34634 2009-03-07  Bruno Haible  <bruno@clisp.org>
34635
34636         New module 'uninorm/u32-normcoll'.
34637         * lib/uninorm/u32-normcoll.c: New file.
34638         * modules/uninorm/u32-normcoll: New file.
34639
34640         New module 'uninorm/u16-normcoll'.
34641         * lib/uninorm/u16-normcoll.c: New file.
34642         * modules/uninorm/u16-normcoll: New file.
34643
34644         New module 'uninorm/u8-normcoll'.
34645         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34646         declarations.
34647         * lib/uninorm/u8-normcoll.c: New file.
34648         * lib/uninorm/u-normcoll.h: New file.
34649         * modules/uninorm/u8-normcoll: New file.
34650
34651         New module 'uninorm/u32-normxfrm'.
34652         * lib/uninorm/u32-normxfrm.c: New file.
34653         * modules/uninorm/u32-normxfrm: New file.
34654
34655         New module 'uninorm/u16-normxfrm'.
34656         * lib/uninorm/u16-normxfrm.c: New file.
34657         * modules/uninorm/u16-normxfrm: New file.
34658
34659         New module 'uninorm/u8-normxfrm'.
34660         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34661         declarations.
34662         * lib/uninorm/u8-normxfrm.c: New file.
34663         * lib/uninorm/u-normxfrm.h: New file.
34664         * modules/uninorm/u8-normxfrm: New file.
34665
34666 2009-03-07  Bruno Haible  <bruno@clisp.org>
34667
34668         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34669         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34670         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34671
34672 2009-03-07  Bruno Haible  <bruno@clisp.org>
34673
34674         New module 'memxfrm'.
34675         * lib/memxfrm.h: New file.
34676         * lib/memxfrm.c: New file.
34677         * modules/memxfrm: New file.
34678
34679 2009-03-07  Bruno Haible  <bruno@clisp.org>
34680
34681         New module 'memcmp2'.
34682         * lib/memcmp2.h: New file.
34683         * lib/memcmp2.c: New file.
34684         * modules/memcmp2: New file.
34685
34686 2009-03-07  Bruno Haible  <bruno@clisp.org>
34687
34688         Tests for module 'uninorm/decomposing-form'.
34689         * modules/uninorm/decomposing-form-tests: New file.
34690         * tests/uninorm/test-decomposing-form.c: New file.
34691
34692         New module 'uninorm/decomposing-form'.
34693         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34694         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34695         Add 'decomposing_variant' field.
34696         * lib/uninorm/decomposing-form.c: New file.
34697         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34698         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34699         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34700         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34701         * modules/uninorm/decomposing-form: New file.
34702         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34703         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34704
34705 2009-03-07  Bruno Haible  <bruno@clisp.org>
34706
34707         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34708         strings.
34709
34710 2009-03-06  Bruno Haible  <bruno@clisp.org>
34711
34712         Tests for module 'uninorm/u32-normcmp'.
34713         * tests/uninorm/test-u32-normcmp.c: New file.
34714         * modules/uninorm/u32-normcmp-tests: New file.
34715
34716         Tests for module 'uninorm/u16-normcmp'.
34717         * tests/uninorm/test-u16-normcmp.c: New file.
34718         * modules/uninorm/u16-normcmp-tests: New file.
34719
34720         Tests for module 'uninorm/u8-normcmp'.
34721         * tests/uninorm/test-u8-normcmp.c: New file.
34722         * modules/uninorm/u8-normcmp-tests: New file.
34723
34724         New module 'uninorm/u32-normcmp'.
34725         * lib/uninorm/u32-normcmp.c: New file.
34726         * modules/uninorm/u32-normcmp: New file.
34727
34728         New module 'uninorm/u16-normcmp'.
34729         * lib/uninorm/u16-normcmp.c: New file.
34730         * modules/uninorm/u16-normcmp: New file.
34731
34732         New module 'uninorm/u8-normcmp'.
34733         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34734         declarations.
34735         * lib/uninorm/u8-normcmp.c: New file.
34736         * lib/uninorm/u-normcmp.h: New file.
34737         * modules/uninorm/u8-normcmp: New file.
34738
34739 2009-03-06  Bruno Haible  <bruno@clisp.org>
34740
34741         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34742         Reported by Eric Blake.
34743
34744 2009-03-06  Eric Blake  <ebb9@byu.net>
34745             Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34748         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34749         condition.
34750         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34751         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34752         condition.
34753         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34754
34755 2009-03-06  Eric Blake  <ebb9@byu.net>
34756
34757         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34758         to avoid compiler warnings.
34759         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34760
34761 2009-03-05  Bruno Haible  <bruno@clisp.org>
34762
34763         * tests/test-ftell.c (main): Disable test beyond end of file on
34764         FreeMiNT.
34765         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34766
34767 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34768
34769         * lib/filevercmp.c: Move hidden files up in ordering.
34770         * tests/test-filevercmp.c: Add tests for hidden files.
34771
34772 2009-03-04  Bruno Haible  <bruno@clisp.org>
34773
34774         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34775         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34776         AM_CFLAGS.
34777         Reported by Simon Josefsson.
34778
34779 2009-03-03  Bruno Haible  <bruno@clisp.org>
34780
34781         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34782         Reported by Simon Josefsson.
34783
34784         * doc/ld-version-script.texi: Update node reference.
34785
34786 2009-03-03  Bruno Haible  <bruno@clisp.org>
34787
34788         * modules/visibility (License): Change to 'unlimited'.
34789         Suggested by Simon Josefsson.
34790
34791 2009-03-03  Jim Meyering  <meyering@redhat.com>
34792
34793         unlinkdir: cannot_unlink_dir may modify process state
34794         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34795         it's neither thread-safe nor appropriate for use in a library.
34796
34797 2009-03-03  Eric Blake  <ebb9@byu.net>
34798
34799         test-closein: silence test under Darwin
34800         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34801         care if it dies from EPIPE or EBADF.
34802
34803 2009-03-03  Bruno Haible  <bruno@clisp.org>
34804
34805         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34806         earlier.
34807         * doc/visibility.texi: Fix @node and @section.
34808
34809 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34810
34811         * doc/gnulib.texi: Link to sections for ld version script and
34812         visibility.
34813         * doc/visibility.texi: Add @node and @section.
34814         * modules/ld-version-script: New module.
34815         * m4/ld-version-script.m4: New file.
34816         * doc/ld-version-script.texi: New file.
34817
34818 2009-03-02  David Lutterkort  <lutter@redhat.com>
34819
34820         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34822
34823 2009-03-02  Bruno Haible  <bruno@clisp.org>
34824
34825         * doc/visibility.texi: Mention libtool's -export-symbols option.
34826
34827 2009-03-02  Jim Meyering  <meyering@redhat.com>
34828
34829         announce-gen: new option: --no-print-checksums
34830         * build-aux/announce-gen (usage): Describe it.
34831         (print_checksums): Print a newline here, not in the [*] footnote.
34832         (main): Honor it.
34833
34834 2009-03-01  Bruno Haible  <bruno@clisp.org>
34835
34836         Use socklen_t in the native Windows replacements prototypes.
34837         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34838         instead of 'int'.
34839         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34840         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34841         * modules/getsockopt (Depends-on): Add socklen.
34842         * modules/setsockopt (Depends-on): Add socklen.
34843
34844 2009-03-01  Bruno Haible  <bruno@clisp.org>
34845
34846         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34847         least 4.2.
34848
34849 2009-03-01  Eric Blake  <ebb9@byu.net>
34850             Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34853         error messages.
34854         * lib/wait-process.c (wait_subprocess): Omit error message about
34855         deadly signal sent to the child of termsigp != NULL.
34856
34857 2009-03-01  Eric Blake  <ebb9@byu.net>
34858
34859         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34860
34861 2009-03-01  Bruno Haible  <bruno@clisp.org>
34862
34863         Avoid a gcc warning.
34864         * tests/test-sched.c (b): Make global.
34865         Reported by Eric Blake.
34866
34867 2009-01-19  Martin Lambers  <marlam@marlam.de>
34868
34869         Provide POSIX semantics for socket timeout options on W32.
34870         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34871         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34872         * modules/setsockopt: Depend on sys_time module for struct timeval.
34873         * modules/getsockopt: Depend on sys_time module for struct timeval.
34874
34875 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34876
34877         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34878         __USE_GNU, for consistency with netdb.in.h.
34879         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34880
34881 2009-03-01  Bruno Haible  <bruno@clisp.org>
34882
34883         More support for FreeMiNT.
34884         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34885         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34886
34887 2009-03-01  Bruno Haible  <bruno@clisp.org>
34888
34889         More support for FreeMiNT.
34890         * lib/fpurge.c (fpurge): Correct last commit.
34891         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34892
34893 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34894
34895         Fix unportable awk script in vc-list-files.
34896         * build-aux/vc-list-files: In the replacement awk script, use
34897         substr with a second argument of 1, not zero.
34898         Report by Simon Josefsson.
34899
34900 2009-02-28  Bruno Haible  <bruno@clisp.org>
34901
34902         More support for FreeMiNT.
34903         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34904         to FreeMiNT today.
34905         * lib/fwriting.c (fwriting): Likewise.
34906         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34907
34908 2009-02-28  Bruno Haible  <bruno@clisp.org>
34909
34910         * tests/test-freadseek.c (main): Disable test beyond end of file on
34911         FreeMiNT.
34912         * tests/test-ftello.c (main): Likewise.
34913         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34914
34915 2009-02-28  Bruno Haible  <bruno@clisp.org>
34916
34917         Add tentative support for FreeMiNT.
34918         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34919         * lib/fpurge.c (fpurge): Likewise.
34920         * lib/freadable.c (freadable): Likewise.
34921         * lib/freading.c (freading): Likewise.
34922         * lib/freadptr.c (freadptr): Likewise.
34923         * lib/freadseek.c (freadptrinc): Likewise.
34924         * lib/fseeko.c (rpl_fseeko): Likewise.
34925         * lib/fseterr.c (fseterr): Likewise.
34926         * lib/fwritable.c (fwritable): Likewise.
34927         * lib/fwriting.c (fwriting): Likewise.
34928         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34929         Hourihane.
34930         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34931
34932 2009-02-28  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34935         SIGCHLD.
34936         Reported by Jim Meyering.
34937
34938 2009-02-28  Bruno Haible  <bruno@clisp.org>
34939
34940         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34941         Mention the results of these tests on various platforms.
34942         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34943         order.
34944         * doc/posix-functions/printf.texi: Likewise.
34945         * doc/posix-functions/snprintf.texi: Likewise.
34946         * doc/posix-functions/sprintf.texi: Likewise.
34947         * doc/posix-functions/vfprintf.texi: Likewise.
34948         * doc/posix-functions/vprintf.texi: Likewise.
34949         * doc/posix-functions/vsnprintf.texi: Likewise.
34950         * doc/posix-functions/vsprintf.texi: Likewise.
34951         * doc/glibc-functions/obstack_printf.texi: Likewise.
34952         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34953
34954 2009-02-28  Bruno Haible  <bruno@clisp.org>
34955
34956         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34957         Reported by Loïc Minier <lool@dooz.org>.
34958
34959 2009-02-27  Bruno Haible  <bruno@clisp.org>
34960
34961         * gnulib-tool (func_import): Make the sed expression used to create the
34962         sed script for updating the .gitignore file POSIX compliant.
34963         Reported by Eric Blake.
34964
34965 2009-02-27  Bruno Haible  <bruno@clisp.org>
34966
34967         * gnulib-tool (sed): Don't alias as "sed --posix".
34968         Reported by Eric Blake.
34969
34970 2009-02-27  Bruno Haible  <bruno@clisp.org>
34971
34972         Avoid test link errors.
34973         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34974         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34975         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34976         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34978
34979 2009-02-27  Bruno Haible  <bruno@clisp.org>
34980
34981         Avoid spurious "(cached)" in configure output.
34982         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34983         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34984         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34985         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34986         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34987         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34988         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34989         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34990         Reported by Eric Blake.
34991
34992 2009-02-27  Eric Blake  <ebb9@byu.net>
34993
34994         printf: fix regression in previous patch
34995         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34996
34997 2009-02-27  Bruno Haible  <bruno@clisp.org>
34998
34999         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35000         value.
35001         * lib/stdint.in.h: Likewise.
35002         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35003
35004 2009-02-27  Eric Blake  <ebb9@byu.net>
35005
35006         doc: mention more functions added in cygwin 1.7.0
35007         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35008         addition.
35009         * doc/posix-functions/open_wmemstream.texi: Likewise.
35010         * doc/posix-functions/wcsnlen.texi: Likewise.
35011         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35012         * doc/posix-functions/wcstod.texi: Likewise.
35013         * doc/posix-functions/wcstof.texi: Likewise.
35014         * doc/posix-functions/wcstoimax.texi: Likewise.
35015         * doc/posix-functions/wcstok.texi: Likewise.
35016         * doc/posix-functions/wcstoumax.texi: Likewise.
35017
35018         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35020         * doc/posix-functions/fprintf.texi: Update.
35021         * doc/posix-functions/printf.texi: Update.
35022         * doc/posix-functions/snprintf.texi: Update.
35023         * doc/posix-functions/sprintf.texi: Update.
35024         * doc/posix-functions/vfprintf.texi: Update.
35025         * doc/posix-functions/vprintf.texi: Update.
35026         * doc/posix-functions/vsnprintf.texi: Update.
35027         * doc/posix-functions/vsprintf.texi: Update.
35028         * doc/glibc-functions/obstack_printf.texi: Update.
35029         * doc/glibc-functions/obstack_vprintf.texi: Update.
35030
35031 2009-02-26  Eric Blake  <ebb9@byu.net>
35032
35033         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35034         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35035         compilation bug by using runtime conversion.
35036         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35037         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35038         * modules/ceill-tests (Files): Use nan.h.
35039         * modules/floorl-tests (Files): Likewise.
35040         * modules/frexpl-tests (Files): Likewise.
35041         * modules/isnanl-tests (Files): Likewise.
35042         * modules/ldexpl-tests (Files): Likewise.
35043         * modules/roundl-tests (Files): Likewise.
35044         * modules/truncl-tests (Files): Likewise.
35045         * tests/test-ceill.c (main): Use a working NaN.
35046         * tests/test-floorl.c (main): Likewise.
35047         * tests/test-frexpl.c (main): Likewise.
35048         * tests/test-isnan.c (test_long_double): Likewise.
35049         * tests/test-isnanl.h (main): Likewise.
35050         * tests/test-ldexpl.h (main): Likewise.
35051         * tests/test-roundl.h (main): Likewise.
35052         * tests/test-truncl.h (main): Likewise.
35053         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35054
35055 2009-02-26  Eric Blake  <ebb9@byu.net>
35056             Bruno Haible  <bruno@clisp.org>
35057
35058         Work around a *printf bug with %ls on Solaris.
35059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35060         precision is specified, sprintf stops converting the wide string
35061         argument when the number of bytes that have been produced by this
35062         conversion equals or exceeds the precision.
35063         * doc/posix-functions/fprintf.texi: Update.
35064         * doc/posix-functions/printf.texi: Update.
35065         * doc/posix-functions/snprintf.texi: Update.
35066         * doc/posix-functions/sprintf.texi: Update.
35067         * doc/posix-functions/vfprintf.texi: Update.
35068         * doc/posix-functions/vprintf.texi: Update.
35069         * doc/posix-functions/vsnprintf.texi: Update.
35070         * doc/posix-functions/vsprintf.texi: Update.
35071         * doc/glibc-functions/obstack_printf.texi: Update.
35072         * doc/glibc-functions/obstack_vprintf.texi: Update.
35073
35074 2009-02-26  Eric Blake  <ebb9@byu.net>
35075
35076         stdlib: favor compiler check of random.h
35077         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35078         to avoid an ObjC random.h installed by Swarm.
35079
35080 2009-02-26  Bruno Haible  <bruno@clisp.org>
35081
35082         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35083         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35084         Reported by Gary V. Vaughan <gary@gnu.org>.
35085
35086 2009-02-26  Bruno Haible  <bruno@clisp.org>
35087
35088         Fix *printf behaviour regarding the %ls directive.
35089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35090         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35091         NEED_PRINTF_DIRECTIVE_LS.
35092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35093         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35095         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35096         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35097         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35098         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35099         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35100         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35101         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35103         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35107         * doc/posix-functions/fprintf.texi: Update.
35108         * doc/posix-functions/printf.texi: Update.
35109         * doc/posix-functions/snprintf.texi: Update.
35110         * doc/posix-functions/sprintf.texi: Update.
35111         * doc/posix-functions/vfprintf.texi: Update.
35112         * doc/posix-functions/vprintf.texi: Update.
35113         * doc/posix-functions/vsnprintf.texi: Update.
35114         * doc/posix-functions/vsprintf.texi: Update.
35115         * doc/glibc-functions/obstack_printf.texi: Update.
35116         * doc/glibc-functions/obstack_vprintf.texi: Update.
35117         Reported by Eric Blake.
35118
35119 2009-02-25  Bruno Haible  <bruno@clisp.org>
35120
35121         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35122         with known value.
35123         Reported by Gary V. Vaughan <gary@gnu.org>.
35124
35125 2009-02-25  Bruno Haible  <bruno@clisp.org>
35126
35127         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35128         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35129         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35130         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35131         Reported by Gary V. Vaughan <gary@gnu.org>.
35132
35133 2009-02-25  Bruno Haible  <bruno@clisp.org>
35134
35135         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35136         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35137         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35138         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35139         Reported by Gary V. Vaughan <gary@gnu.org>.
35140
35141 2009-02-25  Eric Blake  <ebb9@byu.net>
35142
35143         tests: skip fseek/ftell tests if ungetc is broken
35144         * m4/ungetc.m4: New file.
35145         * modules/fseek-tests: Split test, so ungetc dependency is
35146         separate from rest of test.
35147         * modules/fseeko-tests: Likewise.
35148         * modules/ftell-tests: Likewise.
35149         * modules/ftello-tests: Likewise.
35150         * tests/test-fseek.c (main): Isolate ungetc dependency.
35151         * tests/test-fseeko.c (main): Likewise.
35152         * tests/test-ftell.c (main): Likewise.
35153         * tests/test-ftello.c (main): Likewise.
35154         * tests/test-fseek2.sh: New file.
35155         * tests/test-fseeko2.sh: Likewise.
35156         * tests/test-ftell2.sh: Likewise.
35157         * tests/test-ftello2.sh: Likewise.
35158
35159 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35160
35161         test-getaddrinfo: fix usage of skip return code 77
35162         * tests/test-gettaddrinfo.c: Return skip code 77 only
35163         for first occurance of skip (4x77 is not 77)
35164
35165 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35166
35167         strtod: avoid C99 decl-after-statement
35168         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35169
35170 2009-02-24  Eric Blake  <ebb9@byu.net>
35171
35172         strtod: detect HP-UX 11.31 bug
35173         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35174         Reported by Gary V. Vaughan.
35175
35176 2009-02-23  Bruno Haible  <bruno@clisp.org>
35177
35178         Fix invalid read past end of memory block.
35179         * lib/vasnprintf.c (DCHAR_SET): Define.
35180         (local_wcslen): Define only when needed.
35181         (local_strnlen, local_wcsnlen): New functions.
35182         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35183         directives that involve a conversion ourselves.
35184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35185         wcsnlen, mbrtowc, wcrtomb.
35186         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35187         * tests/test-vasprintf-posix.c (test_function): Likewise.
35188         * tests/test-snprintf-posix.h (test_function): Likewise.
35189         * tests/test-sprintf-posix.h (test_function): Likewise.
35190         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35191
35192 2009-02-22  Bruno Haible  <bruno@clisp.org>
35193
35194         Implement new clarified decomposition of Hangul syllables.
35195         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35196         of type LTV, return only a pairwise decomposition.
35197         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35198         Likewise.
35199         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35200         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35201         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35202
35203 2009-02-22  Bruno Haible  <bruno@clisp.org>
35204
35205         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35206         zero-length results and shrink excess allocated memory.
35207         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35208         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35209         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35210         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35211         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35212         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35213         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35214         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35215         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35216         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35217         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35218         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35219
35220 2009-02-21  Bruno Haible  <bruno@clisp.org>
35221
35222         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35223         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35224         spaces after a period. Put a space between a macro name and its
35225         argument list. Trivial rewordings.
35226         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35227         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35228         (main): Return 0 explicitly.
35229
35230 2009-02-21  Bruno Haible  <bruno@clisp.org>
35231
35232         Tests for module 'uninorm/filter'.
35233         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35234         * modules/uninorm/filter-tests: New file.
35235
35236         New module 'uninorm/filter'.
35237         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35238         uninorm_filter_flush, uninorm_filter_free): New declarations.
35239         * lib/uninorm/uninorm-filter.c: New file.
35240         * modules/uninorm/filter: New file.
35241
35242 2009-02-21  Bruno Haible  <bruno@clisp.org>
35243
35244         Tests for module 'uninorm/nfkc'.
35245         * tests/uninorm/test-nfkc.c: New file.
35246         * tests/uninorm/test-u8-nfkc.c: New file.
35247         * tests/uninorm/test-u16-nfkc.c: New file.
35248         * tests/uninorm/test-u32-nfkc.c: New file.
35249         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35250         * tests/uninorm/test-u32-nfkc-big.c: New file.
35251         * modules/uninorm/nfkc-tests: New file.
35252
35253         New module 'uninorm/nfkc'.
35254         * lib/uninorm/nfkc.c: New file.
35255         * modules/uninorm/nfkc: New file.
35256
35257         Tests for module 'uninorm/nfkd'.
35258         * tests/uninorm/test-nfkd.c: New file.
35259         * tests/uninorm/test-u8-nfkd.c: New file.
35260         * tests/uninorm/test-u16-nfkd.c: New file.
35261         * tests/uninorm/test-u32-nfkd.c: New file.
35262         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35263         * tests/uninorm/test-u32-nfkd-big.c: New file.
35264         * modules/uninorm/nfkd-tests: New file.
35265
35266         New module 'uninorm/nfkd'.
35267         * lib/uninorm/nfkd.c: New file.
35268         * modules/uninorm/nfkd: New file.
35269
35270         Tests for module 'uninorm/nfc'.
35271         * tests/uninorm/test-nfc.c: New file.
35272         * tests/uninorm/test-u8-nfc.c: New file.
35273         * tests/uninorm/test-u16-nfc.c: New file.
35274         * tests/uninorm/test-u32-nfc.c: New file.
35275         * tests/uninorm/test-u32-nfc-big.sh: New file.
35276         * tests/uninorm/test-u32-nfc-big.c: New file.
35277         * modules/uninorm/nfc-tests: New file.
35278
35279         New module 'uninorm/nfc'.
35280         * lib/uninorm/nfc.c: New file.
35281         * modules/uninorm/nfc: New file.
35282
35283         Tests for module 'uninorm/nfd'.
35284         * tests/uninorm/test-nfd.c: New file.
35285         * tests/uninorm/test-u8-nfd.c: New file.
35286         * tests/uninorm/test-u16-nfd.c: New file.
35287         * tests/uninorm/test-u32-nfd.c: New file.
35288         * tests/uninorm/test-u32-nfd-big.sh: New file.
35289         * tests/uninorm/test-u32-nfd-big.c: New file.
35290         * tests/uninorm/test-u32-normalize-big.h: New file.
35291         * tests/uninorm/test-u32-normalize-big.c: New file.
35292         * tests/uninorm/NormalizationTest.txt: New file, created from
35293         Unicode 5.1.0 NormalizationTest.txt.
35294         * modules/uninorm/nfd-tests: New file.
35295
35296         New module 'uninorm/nfd'.
35297         * lib/uninorm/nfd.c: New file.
35298         * modules/uninorm/nfd: New file.
35299
35300         New module 'uninorm/u32-normalize'.
35301         * lib/uninorm/u32-normalize.c: New file.
35302         * modules/uninorm/u32-normalize: New file.
35303
35304         New module 'uninorm/u16-normalize'.
35305         * lib/uninorm/u16-normalize.c: New file.
35306         * modules/uninorm/u16-normalize: New file.
35307
35308         New module 'uninorm/u8-normalize'.
35309         * lib/uninorm/u8-normalize.c: New file.
35310         * lib/uninorm/normalize-internal.h: New file.
35311         * lib/uninorm/u-normalize-internal.h: New file.
35312         * modules/uninorm/u8-normalize: New file.
35313
35314         New module 'uninorm/decompose-internal'.
35315         * lib/uninorm/decompose-internal.c: New file.
35316         * modules/uninorm/decompose-internal: New file.
35317
35318         Tests for module 'uninorm/composition'.
35319         * tests/uninorm/test-composition.c: New file.
35320         * modules/uninorm/composition-tests: New file.
35321
35322         New module 'uninorm/composition'.
35323         * lib/uninorm/composition.c: New file.
35324         * lib/uninorm/composition-table.gperf: New file, generated by
35325         gen-uni-tables.
35326         * modules/uninorm/composition: New file.
35327
35328         Tests for module 'uninorm/compat-decomposition'.
35329         * tests/uninorm/test-compat-decomposition.c: New file.
35330         * modules/uninorm/compat-decomposition-tests: New file.
35331
35332         New module 'uninorm/compat-decomposition'.
35333         * lib/uninorm/decompose-internal.h: New file.
35334         * lib/uninorm/compat-decomposition.c: New file.
35335         * modules/uninorm/compat-decomposition: New file.
35336
35337         Tests for module 'uninorm/canonical-decomposition'.
35338         * tests/uninorm/test-canonical-decomposition.c: New file.
35339         * modules/uninorm/canonical-decomposition-tests: New file.
35340
35341         New module 'uninorm/canonical-decomposition'.
35342         * lib/uninorm/canonical-decomposition.c: New file.
35343         * modules/uninorm/canonical-decomposition: New file.
35344
35345         Tests for module 'uninorm/decomposition'.
35346         * tests/uninorm/test-decomposition.c: New file.
35347         * modules/uninorm/decomposition-tests: New file.
35348
35349         New module 'uninorm/decomposition'.
35350         * lib/uninorm/decomposition.c: New file.
35351         * modules/uninorm/decomposition: New file.
35352
35353         New module 'uninorm/decomposition-table'.
35354         * lib/uninorm/decomposition-table.h: New file.
35355         * lib/uninorm/decomposition-table.c: New file.
35356         * lib/uninorm/decomposition-table1.h: New file, generated by
35357         gen-uni-tables.
35358         * lib/uninorm/decomposition-table2.h: New file, generated by
35359         gen-uni-tables.
35360         * modules/uninorm/decomposition-table: New file.
35361
35362         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35363         (UC_DECOMP_*): New enumeration items.
35364         (get_decomposition): New function.
35365         (struct decomp_table): New type.
35366         (output_decomposition, output_decomposition_tables): New functions.
35367         (unicode_composition_exclusions): New variable.
35368         (fill_composition_exclusions, debug_output_composition_tables): New
35369         functions.
35370         (main): Accept one more argument. Invoke fill_composition_exclusions.
35371         Output decomposition and composition tables.
35372
35373         New module 'uninorm/base'.
35374         * lib/uninorm.h: New file.
35375         * lib/unictype.h: Update comment.
35376         * modules/uninorm/base: New file.
35377
35378 2009-02-21  David Lutterkort  <lutter@redhat.com>
35379
35380         Tests for module 'safe-alloc'.
35381         * tests/test-safe-alloc.c: New file.
35382         * modules/safe-alloc-tests: New file.
35383
35384         New module 'safe-alloc'.
35385         * lib/safe-alloc.h: New file.
35386         * lib/safe-alloc.c: New file.
35387         * m4/safe-alloc.m4: New file.
35388         * modules/safe-alloc: New file.
35389         * doc/safe-alloc.texi: New file.
35390         * doc/gnulib.texi: Include it.
35391         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35392         safe-alloc.
35393
35394 2009-02-18  Bruno Haible  <bruno@clisp.org>
35395
35396         Fix link error on non-glibc systems.
35397         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35398         variable.
35399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35400
35401 2009-02-18  Jim Meyering  <meyering@redhat.com>
35402
35403         fts: avoid used-uninitialized error due to recent change
35404         * lib/fts.c (fts_read): Guard uses of the new member,
35405         parent->fts_n_dirs_remaining, since it's not relevant for
35406         the parent of a directory specified on the command-line.
35407
35408 2009-02-17  James Youngman  <jay@gnu.org>
35409             Bruno Haible  <bruno@clisp.org>
35410
35411         * m4/include_next.m4: Reformulate comment.
35412
35413 2009-02-16  Jim Meyering  <meyering@redhat.com>
35414
35415         fts: add #if guards so that the fts_lgpl module still builds
35416         * lib/fts.c: Guard just-added hash-table-using parts with
35417         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35418         Reported by Simon Josefsson.
35419
35420 2009-02-15  Bruno Haible  <bruno@clisp.org>
35421
35422         * modules/array-mergesort-tests: New file.
35423         * tests/test-array-mergesort.c: New file.
35424
35425         New module 'array-mergesort'.
35426         * modules/array-mergesort: New file.
35427         * lib/array-mergesort.h: New file.
35428
35429 2009-02-15  Bruno Haible  <bruno@clisp.org>
35430
35431         Fix 2009-02-07 commit.
35432         * lib/gen-uni-tables.c (output_predicate, output_category,
35433         output_combclass, output_bidi_category, output_decimal_digit,
35434         output_digit, output_numeric, output_mirror, output_scripts,
35435         output_ident_category, output_simple_mapping): Fix format directives.
35436         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35437
35438 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35439
35440         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35441         fixes are available from IBM.
35442
35443 2009-02-13  Jim Meyering  <meyering@redhat.com>
35444
35445         fts: arrange not to stat non-directories in more cases
35446         This makes GNU find (when it doesn't need to stat each file)
35447         *much* more efficient at traversing reiserfs file systems.
35448         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35449         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35450         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35451         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35452         (leaf_optimization_applies): New function.
35453         (LCO_hash, LCO_compare): New helper functions.
35454         (link_count_optimize_ok): New function.
35455         (fts_stat): Initialize new member (if dir).
35456         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35457         we've just stat'ed a directory.  Skip the stat call when possible.
35458         ---
35459         Note this AFS-related exchange:
35460         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35461         and note find's pioctl call in find/fstype.c.
35462         But that is necessary only if you want to enable the
35463         optimization for AFS, and for now, I don't.
35464
35465         fts: move a function definition "up" (no semantic change)
35466         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35467         "up" to precede upcoming use of a related function.
35468
35469 2009-02-11  Jim Meyering  <meyering@redhat.com>
35470
35471         fts: correct internal computation of nlinks (optimization-related)
35472         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35473         whether the current entry is a directory, so don't test it.
35474
35475 2009-02-10  Bruno Haible  <bruno@clisp.org>
35476
35477         Tests for module 'uniwbrk/ulc-wordbreaks'.
35478         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35479         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35480         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35481
35482         Tests for module 'uniwbrk/u32-wordbreaks'.
35483         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35484         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35485
35486         Tests for module 'uniwbrk/u16-wordbreaks'.
35487         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35488         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35489
35490         Tests for module 'uniwbrk/u8-wordbreaks'.
35491         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35492         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35493
35494 2009-02-10  Bruno Haible  <bruno@clisp.org>
35495
35496         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35497         property.
35498         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35499         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35500         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35501
35502 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35503
35504         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35505         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35506
35507 2009-02-10  Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35510         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35511         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35512         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35513         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35514         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35515
35516 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35517
35518         * lib/sockets.h (gl_fd_to_handle): New function.
35519
35520         * tests/test-sockets.c: Call gl_fd_to_handle.
35521
35522 2009-02-09  Bruno Haible  <bruno@clisp.org>
35523
35524         * doc/havelib.texi: Document the conventions on bi-arch systems.
35525
35526 2009-02-08  Bruno Haible  <bruno@clisp.org>
35527
35528         Document the AC_LIB_LINKFLAGS macro.
35529         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35530         * doc/gnulib.texi: Include it.
35531
35532 2009-02-08  Bruno Haible  <bruno@clisp.org>
35533
35534         Fix wrong order of sections, compared to TOC.
35535         * doc/gnulib.texi: Include relocatable-maint.texi after the
35536         "Regular expressions" node, not before.
35537
35538 2009-02-08  Bruno Haible  <bruno@clisp.org>
35539
35540         Tests for module 'unicase/totitle'.
35541         * modules/unicase/totitle-tests: New file.
35542
35543         Tests for module 'unicase/tolower'.
35544         * modules/unicase/tolower-tests: New file.
35545
35546         Tests for module 'unicase/toupper'.
35547         * modules/unicase/toupper-tests: New file.
35548         * tests/unicase/test-mapping-part1.h: New file.
35549         * tests/unicase/test-mapping-part2.h: New file.
35550
35551         New module 'unicase/totitle'.
35552         * modules/unicase/totitle: New file.
35553         * lib/unicase/totitle.c: New file.
35554
35555         New module 'unicase/tolower'.
35556         * modules/unicase/tolower: New file.
35557         * lib/unicase/tolower.c: New file.
35558
35559         New module 'unicase/toupper'.
35560         * modules/unicase/toupper: New file.
35561         * lib/unicase/toupper.c: New file.
35562         * lib/unicase/simple-mapping.h: New file.
35563
35564         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35565         (mapping_table): New structure.
35566         (output_simple_mapping): New function.
35567         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35568         * modules/gen-uni-tables (Description): Update.
35569         * lib/unicase/toupper.h: New file, automatically generated by
35570         gen-uni-tables.
35571         * lib/unicase/tolower.h: New file, automatically generated by
35572         gen-uni-tables.
35573         * lib/unicase/totitle.h: New file, automatically generated by
35574         gen-uni-tables.
35575         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35576         gen-uni-tables.
35577         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35578         gen-uni-tables.
35579         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35580         gen-uni-tables.
35581
35582         New module 'unicase/base'.
35583         * modules/unicase/base: New file.
35584         * lib/unicase.h: New file.
35585
35586 2009-02-08  Bruno Haible  <bruno@clisp.org>
35587
35588         New module 'uniwbrk/ulc-wordbreaks'.
35589         * modules/uniwbrk/ulc-wordbreaks: New file.
35590         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35591
35592         New module 'uniwbrk/u32-wordbreaks'.
35593         * modules/uniwbrk/u32-wordbreaks: New file.
35594         * lib/uniwbrk/u32-wordbreaks.c: New file.
35595
35596         New module 'uniwbrk/u16-wordbreaks'.
35597         * modules/uniwbrk/u16-wordbreaks: New file.
35598         * lib/uniwbrk/u16-wordbreaks.c: New file.
35599
35600         New module 'uniwbrk/u8-wordbreaks'.
35601         * modules/uniwbrk/u8-wordbreaks: New file.
35602         * lib/uniwbrk/u8-wordbreaks.c: New file.
35603         * lib/uniwbrk/u-wordbreaks.h: New file.
35604
35605         New module 'uniwbrk/table'.
35606         * modules/uniwbrk/table: New file.
35607         * lib/uniwbrk/wbrktable.h: New file.
35608         * lib/uniwbrk/wbrktable.c: New file.
35609
35610         New module 'uniwbrk/wordbreak-property'.
35611         * modules/uniwbrk/wordbreak-property: New file.
35612         * lib/uniwbrk/wordbreak-property.c: New file.
35613
35614         * lib/gen-uni-tables.c (WBP_*): New enum items.
35615         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35616         (unicode_org_wbp): New variable.
35617         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35618         New functions.
35619         (wbp_table): New structure.
35620         (output_wbp, output_wbrk_tables): New functions.
35621         (main): Accept additional argument. Invoke fill_org_wbp,
35622         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35623         output_wbrk_tables.
35624         * modules/gen-uni-tables (Description): Update.
35625         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35626         gen-uni-tables.
35627
35628         New module 'uniwbrk/base'.
35629         * modules/uniwbrk/base: New file.
35630         * lib/uniwbrk.h: New file.
35631
35632 2009-02-08  Bruno Haible  <bruno@clisp.org>
35633
35634         Update to Unicode 5.1.0.
35635         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35636         U+2185..U+2188.
35637         (is_property_default_ignorable_code_point): Don't include characters
35638         of category Cc or Cs and not-a-characters.
35639         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35640         U+0D79, U+109E, U+109F, U+A60C.
35641         * lib/unictype/bidi_of.h: Regenerated.
35642         * lib/unictype/blocks.h: Regenerated.
35643         * lib/unictype/categ_C.h: Regenerated.
35644         * lib/unictype/categ_Cf.h: Regenerated.
35645         * lib/unictype/categ_Cn.h: Regenerated.
35646         * lib/unictype/categ_L.h: Regenerated.
35647         * lib/unictype/categ_Ll.h: Regenerated.
35648         * lib/unictype/categ_Lm.h: Regenerated.
35649         * lib/unictype/categ_Lo.h: Regenerated.
35650         * lib/unictype/categ_Lu.h: Regenerated.
35651         * lib/unictype/categ_M.h: Regenerated.
35652         * lib/unictype/categ_Mc.h: Regenerated.
35653         * lib/unictype/categ_Me.h: Regenerated.
35654         * lib/unictype/categ_Mn.h: Regenerated.
35655         * lib/unictype/categ_N.h: Regenerated.
35656         * lib/unictype/categ_Nd.h: Regenerated.
35657         * lib/unictype/categ_Nl.h: Regenerated.
35658         * lib/unictype/categ_No.h: Regenerated.
35659         * lib/unictype/categ_P.h: Regenerated.
35660         * lib/unictype/categ_Pd.h: Regenerated.
35661         * lib/unictype/categ_Pe.h: Regenerated.
35662         * lib/unictype/categ_Pf.h: Regenerated.
35663         * lib/unictype/categ_Pi.h: Regenerated.
35664         * lib/unictype/categ_Po.h: Regenerated.
35665         * lib/unictype/categ_Ps.h: Regenerated.
35666         * lib/unictype/categ_S.h: Regenerated.
35667         * lib/unictype/categ_Sk.h: Regenerated.
35668         * lib/unictype/categ_Sm.h: Regenerated.
35669         * lib/unictype/categ_So.h: Regenerated.
35670         * lib/unictype/categ_of.h: Regenerated.
35671         * lib/unictype/combining.h: Regenerated.
35672         * lib/unictype/ctype_alnum.h: Regenerated.
35673         * lib/unictype/ctype_alpha.h: Regenerated.
35674         * lib/unictype/ctype_graph.h: Regenerated.
35675         * lib/unictype/ctype_lower.h: Regenerated.
35676         * lib/unictype/ctype_print.h: Regenerated.
35677         * lib/unictype/ctype_punct.h: Regenerated.
35678         * lib/unictype/ctype_upper.h: Regenerated.
35679         * lib/unictype/decdigit.h: Regenerated.
35680         * lib/unictype/digit.h: Regenerated.
35681         * lib/unictype/mirror.h: Regenerated.
35682         * lib/unictype/numeric.h: Regenerated.
35683         * lib/unictype/pr_alphabetic.h: Regenerated.
35684         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35685         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35686         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35687         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35688         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35689         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35690         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35691         * lib/unictype/pr_combining.h: Regenerated.
35692         * lib/unictype/pr_dash.h: Regenerated.
35693         * lib/unictype/pr_decimal_digit.h: Regenerated.
35694         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35695         * lib/unictype/pr_deprecated.h: Regenerated.
35696         * lib/unictype/pr_diacritic.h: Regenerated.
35697         * lib/unictype/pr_extender.h: Regenerated.
35698         * lib/unictype/pr_format_control.h: Regenerated.
35699         * lib/unictype/pr_grapheme_base.h: Regenerated.
35700         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35701         * lib/unictype/pr_grapheme_link.h: Regenerated.
35702         * lib/unictype/pr_id_continue.h: Regenerated.
35703         * lib/unictype/pr_id_start.h: Regenerated.
35704         * lib/unictype/pr_ideographic.h: Regenerated.
35705         * lib/unictype/pr_ignorable_control.h: Regenerated.
35706         * lib/unictype/pr_lowercase.h: Regenerated.
35707         * lib/unictype/pr_math.h: Regenerated.
35708         * lib/unictype/pr_numeric.h: Regenerated.
35709         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35710         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35711         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35712         * lib/unictype/pr_other_id_continue.h: Regenerated.
35713         * lib/unictype/pr_other_lowercase.h: Regenerated.
35714         * lib/unictype/pr_other_math.h: Regenerated.
35715         * lib/unictype/pr_punctuation.h: Regenerated.
35716         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35717         * lib/unictype/pr_soft_dotted.h: Regenerated.
35718         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35719         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35720         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35721         * lib/unictype/pr_uppercase.h: Regenerated.
35722         * lib/unictype/pr_xid_continue.h: Regenerated.
35723         * lib/unictype/pr_xid_start.h: Regenerated.
35724         * lib/unictype/pr_zero_width.h: Regenerated.
35725         * lib/unictype/scripts.h: Regenerated.
35726         * lib/unictype/scripts_byname.gperf: Regenerated.
35727         * lib/unictype/sy_java_ident.h: Regenerated.
35728         * lib/unilbrk/lbrkprop1.h: Regenerated.
35729         * lib/unilbrk/lbrkprop2.h: Regenerated.
35730         * tests/unictype/test-categ_C.c: Regenerated.
35731         * tests/unictype/test-categ_Cf.c: Regenerated.
35732         * tests/unictype/test-categ_Cn.c: Regenerated.
35733         * tests/unictype/test-categ_L.c: Regenerated.
35734         * tests/unictype/test-categ_Ll.c: Regenerated.
35735         * tests/unictype/test-categ_Lm.c: Regenerated.
35736         * tests/unictype/test-categ_Lo.c: Regenerated.
35737         * tests/unictype/test-categ_Lu.c: Regenerated.
35738         * tests/unictype/test-categ_M.c: Regenerated.
35739         * tests/unictype/test-categ_Mc.c: Regenerated.
35740         * tests/unictype/test-categ_Me.c: Regenerated.
35741         * tests/unictype/test-categ_Mn.c: Regenerated.
35742         * tests/unictype/test-categ_N.c: Regenerated.
35743         * tests/unictype/test-categ_Nd.c: Regenerated.
35744         * tests/unictype/test-categ_Nl.c: Regenerated.
35745         * tests/unictype/test-categ_No.c: Regenerated.
35746         * tests/unictype/test-categ_P.c: Regenerated.
35747         * tests/unictype/test-categ_Pd.c: Regenerated.
35748         * tests/unictype/test-categ_Pe.c: Regenerated.
35749         * tests/unictype/test-categ_Pf.c: Regenerated.
35750         * tests/unictype/test-categ_Pi.c: Regenerated.
35751         * tests/unictype/test-categ_Po.c: Regenerated.
35752         * tests/unictype/test-categ_Ps.c: Regenerated.
35753         * tests/unictype/test-categ_S.c: Regenerated.
35754         * tests/unictype/test-categ_Sk.c: Regenerated.
35755         * tests/unictype/test-categ_Sm.c: Regenerated.
35756         * tests/unictype/test-categ_So.c: Regenerated.
35757         * tests/unictype/test-ctype_alnum.c: Regenerated.
35758         * tests/unictype/test-ctype_alpha.c: Regenerated.
35759         * tests/unictype/test-ctype_graph.c: Regenerated.
35760         * tests/unictype/test-ctype_lower.c: Regenerated.
35761         * tests/unictype/test-ctype_print.c: Regenerated.
35762         * tests/unictype/test-ctype_punct.c: Regenerated.
35763         * tests/unictype/test-ctype_upper.c: Regenerated.
35764         * tests/unictype/test-decdigit.h: Regenerated.
35765         * tests/unictype/test-digit.h: Regenerated.
35766         * tests/unictype/test-numeric.h: Regenerated.
35767         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35768         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35769         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35770         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35771         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35772         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35773         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35774         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35775         * tests/unictype/test-pr_combining.c: Regenerated.
35776         * tests/unictype/test-pr_dash.c: Regenerated.
35777         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35778         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35779         * tests/unictype/test-pr_deprecated.c: Regenerated.
35780         * tests/unictype/test-pr_diacritic.c: Regenerated.
35781         * tests/unictype/test-pr_extender.c: Regenerated.
35782         * tests/unictype/test-pr_format_control.c: Regenerated.
35783         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35784         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35785         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35786         * tests/unictype/test-pr_id_continue.c: Regenerated.
35787         * tests/unictype/test-pr_id_start.c: Regenerated.
35788         * tests/unictype/test-pr_ideographic.c: Regenerated.
35789         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35790         * tests/unictype/test-pr_lowercase.c: Regenerated.
35791         * tests/unictype/test-pr_math.c: Regenerated.
35792         * tests/unictype/test-pr_numeric.c: Regenerated.
35793         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35794         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35795         Regenerated.
35796         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35797         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35798         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35799         * tests/unictype/test-pr_other_math.c: Regenerated.
35800         * tests/unictype/test-pr_punctuation.c: Regenerated.
35801         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35802         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35803         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35804         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35805         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35806         * tests/unictype/test-pr_uppercase.c: Regenerated.
35807         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35808         * tests/unictype/test-pr_xid_start.c: Regenerated.
35809         * tests/unictype/test-pr_zero_width.c: Regenerated.
35810
35811         Update to Unicode 5.1.0.
35812         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35813         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35814         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35815         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35816         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35817         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35818         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35819         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35820         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35821         (nonspacing_table_ind): Update.
35822         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35823
35824         Update to Unicode 5.1.0.
35825         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35826         code transform.
35827         * lib/uniname/uniname.c (unicode_character_name,
35828         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35829         * lib/uniname/uninames.h: Regenerated.
35830         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35831
35832 2009-02-07  Bruno Haible  <bruno@clisp.org>
35833
35834         Merge gen-ctype and gen-lbrk into a single program.
35835         * lib/gen-uni-tables.c: New file, incorporating
35836         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35837         Add directory prefixes to the names of the generated files.
35838         * lib/unictype/gen-ctype.c: Remove file.
35839         * lib/unilbrk/gen-lbrk.c: Remove file.
35840         * modules/gen-uni-tables: New file.
35841         * modules/unictype/gen-ctype: Remove file.
35842         * modules/unilbrk/gen-lbrk: Remove file.
35843
35844 2009-02-07  Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35847
35848         New module 'unistr/u32-strcoll'.
35849         * modules/unistr/u32-strcoll: New file.
35850         * lib/unistr/u32-strcoll.c: New file.
35851
35852         New module 'unistr/u16-strcoll'.
35853         * modules/unistr/u16-strcoll: New file.
35854         * lib/unistr/u16-strcoll.c: New file.
35855
35856         New module 'unistr/u8-strcoll'.
35857         * modules/unistr/u8-strcoll: New file.
35858         * lib/unistr/u8-strcoll.c: New file.
35859         * lib/unistr/u-strcoll.h: New file.
35860
35861 2009-02-07  Bruno Haible  <bruno@clisp.org>
35862
35863         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35864         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35865         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35866         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35867         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35868         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35869
35870 2009-02-07  Bruno Haible  <bruno@clisp.org>
35871
35872         Make 64-bit clean.
35873         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35874         output_combclass, output_bidi_category, output_decimal_digit,
35875         output_digit, output_numeric, output_mirror, output_scripts,
35876         output_ident_category): Use proper width specifier in format strings.
35877
35878 2009-02-07  Bruno Haible  <bruno@clisp.org>
35879
35880         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35881         failure behaviour.
35882
35883 2009-02-07  Jim Meyering  <meyering@redhat.com>
35884
35885         regex: avoid compilation failure with upcoming gcc-4.4
35886         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35887         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35888         "... error: integer overflow in preprocessor expression".
35889
35890 2009-02-05  Ben Pfaff  <blp@gnu.org>
35891
35892         Fix link errors on Windows when close module is used.
35893         * modules/close: Add $(LIB_CLOSE) to Link section.
35894         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35895         $(LIB_CLOSE) on Windows.
35896
35897 2009-02-05  Jim Meyering  <meyering@redhat.com>
35898
35899         still avoid unused-parameter warnings, but do it cleanly
35900         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35901         (get_fs_usage): Cast to void instead.
35902         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35903         (dev_from_mount_options, read_file_system_list): Cast to void.
35904         Prompted by Bruno Haible.
35905
35906 2009-02-04  Jim Meyering  <meyering@redhat.com>
35907
35908         fsusage.c: correct copyright year
35909         * lib/fsusage.c: Reflect year in which the change is pushed into
35910
35911         avoid misc. warnings
35912         * lib/fsusage.c (UNUSED_PARAM): Define.
35913         (get_fs_usage): Mark parameter "disk" as unused.
35914         * lib/getugroups.c (getgrent): Use "void" in prototype.
35915         * lib/mountlist.c: Mark unused parameters.
35916         (read_file_system_list): Declare a local with "const".
35917         * lib/nanosleep.c (getnow): Declare static.
35918         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35919
35920         dirfd: set errno upon failure
35921         * lib/dirfd.c: Include <errno.h>.
35922         Set errno to ENOTSUP when returning -1.
35923         * modules/dirfd (Depends-on): Add errno.
35924         Suggested by John Kodis <kodis@comcast.net>.
35925
35926 2009-02-01  Bruno Haible  <bruno@clisp.org>
35927
35928         Don't assume sizeof (long) >= sizeof (void *).
35929         * lib/memcmp.c: Include stdint.h.
35930         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35931         srcp2 to 'const byte *'.
35932         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35933         types to uintptr_t.
35934         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35935         * modules/memcmp (Depends-on): Add stdint.
35936         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35937
35938 2009-01-30  Eric Blake  <ebb9@byu.net>
35939
35940         fix more require-before-expand issues
35941         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35942         expand, AC_PROG_AWK.
35943         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35944
35945 2009-01-28  Eric Blake  <ebb9@byu.net>
35946
35947         version-etc: use consistent URL formatting
35948         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35949         Improve formatting.  Use fputs for string without %.
35950
35951 2009-01-28  Jim Meyering  <meyering@redhat.com>
35952
35953         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35954         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35955         "underquoted definition of NAME" from autoconf-2.59.
35956
35957 2009-01-28  Bruno Haible  <bruno@clisp.org>
35958
35959         * doc/gnulib.texi: Add "Obsolete modules" to index.
35960
35961 2009-01-28  Jim Meyering  <meyering@redhat.com>
35962
35963         useless-if-before-free: recognize more variants
35964         * build-aux/useless-if-before-free: Also recognize e.g.,
35965         if (NULL != p) free (p);
35966
35967 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35968
35969         test-getaddrinfo: skip (don't fail) this test when there's no network
35970         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35971         on the presumption that it means you lack network access.
35972
35973 2009-01-26  Jim Meyering  <meyering@redhat.com>
35974
35975         fflush: avoid warnings on modern systems
35976         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35977         pos and result, into scopes where they're used.
35978
35979 2009-01-26  Eric Blake  <ebb9@byu.net>
35980
35981         Silence warning reintroduced by recent extensions patch.
35982         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35983         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35984         autoconf.
35985
35986         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35987         * m4/00gnulib.m4: New file.
35988         * gnulib-tool (func_get_filelist): Always use it.
35989         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35990         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35991
35992 2009-01-25  Bruno Haible  <bruno@clisp.org>
35993
35994         Make test-quotearg work on MacOS X and AIX.
35995         * tests/test-quotearg.sh: New file.
35996         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35997         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35998         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35999         include <libintl.h>.
36000         (fake_locale): Remove variable.
36001         (gettext, dgettext, dcgettext): Remove functions.
36002         (main): Instead of setting a fake locale, set a real locale. Call
36003         textdomain and bindtextdomain.
36004         * modules/quotearg-tests (Files): Add the new files.
36005         (Depends-on): Add gettext, setenv, unsetenv.
36006         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36007         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36008         Augment TESTS_ENVIRONMENT.
36009
36010 2009-01-25  Bruno Haible  <bruno@clisp.org>
36011
36012         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36013         fr_FR.ISO8859-1 locale on MacOS X.
36014         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36015         ja_JP.eucJP locale on MacOS X.
36016         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36017         zh_CN.GB18030 locale on MacOS X.
36018
36019 2009-01-25  Bruno Haible  <bruno@clisp.org>
36020
36021         Avoid link errors on MacOS X 10.3.
36022         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36023         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36024
36025 2009-01-25  Bruno Haible  <bruno@clisp.org>
36026
36027         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36028         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36029         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36030         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36031         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36032         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36033         posix_spawnattr_init, posix_spawnattr_setsigmask,
36034         posix_spawnattr_setflags, posix_spawnattr_destroy.
36035
36036         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36037         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36038         * modules/execute (Files): Remove m4/posix_spawn.m4.
36039         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36040         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36041         posix_spawnattr_init, posix_spawnattr_setsigmask,
36042         posix_spawnattr_setflags, posix_spawnattr_destroy.
36043
36044 2009-01-25  Bruno Haible  <bruno@clisp.org>
36045
36046         * lib/glthread/threadlib.c: Include <stdlib.h>.
36047
36048 2009-01-25  Bruno Haible  <bruno@clisp.org>
36049
36050         * lib/glthread/threadlib.c (dummy): New declaration.
36051
36052 2009-01-25  Bruno Haible  <bruno@clisp.org>
36053
36054         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36055         multibyte characters also for the GB18030 encoding. Don't crash when
36056         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36057
36058 2009-01-25  Bruno Haible  <bruno@clisp.org>
36059
36060         Avoid redefining 'struct random_data' on OSF/1 5.1.
36061         * lib/stdlib.in.h: Include <random.h> if it exists.
36062         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36063         HAVE_RANDOM_H. Include <random.h> when testing whether
36064         'struct random_data' exists.
36065         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36066
36067 2009-01-25  Bruno Haible  <bruno@clisp.org>
36068
36069         Don't install charset.alias on MacOS X >= 10.3.
36070         * lib/localcharset.c (DARWIN7): New macro.
36071         (get_charset_aliases): Hardcode the result for Darwin7.
36072         * modules/localcharset (install-exec-local): Don't install
36073         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36074
36075 2009-01-25  Bruno Haible  <bruno@clisp.org>
36076
36077         Don't install charset.alias on mingw and Cygwin.
36078         * modules/localcharset (install-exec-local): Don't install
36079         charset.alias on mingw and Cygwin, if the file does not yet exist.
36080         The result for these platforms is hardcoded in localcharset.c.
36081
36082 2009-01-25  Bruno Haible  <bruno@clisp.org>
36083
36084         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36085         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36086         before requiring AC_USE_SYSTEM_EXTENSIONS.
36087
36088 2009-01-25  Jim Meyering  <meyering@redhat.com>
36089
36090         c-strtod: avoid warnings
36091         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36092         "assignment discards qualifiers from pointer target type" warnings.
36093
36094 2009-01-24  Bruno Haible  <bruno@clisp.org>
36095
36096         Add support for non-UTF-8 locales on MacOS X.
36097         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36098         canonical encodings. For Darwin 7 and newer, don't map traditional
36099         encodings to UTF-8.
36100         Reported by Vincent Lefevre <vincent@vinc17.org>
36101         at <http://savannah.gnu.org/bugs/?25235>.
36102
36103 2009-01-24  Bruno Haible  <bruno@clisp.org>
36104
36105         * doc/gnulib.texi (Obsolete modules): New section.
36106         Reported by Mike Frysinger <vapier@gentoo.org>.
36107
36108 2009-01-24  Bruno Haible  <bruno@clisp.org>
36109
36110         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36111         (%.dvi): New rule.
36112
36113 2009-01-24  Bruno Haible  <bruno@clisp.org>
36114
36115         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36116         Reported by Eric Blake.
36117
36118 2009-01-24  Bruno Haible  <bruno@clisp.org>
36119
36120         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36121         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36122         Reported by Gary V. Vaughan <gary@gnu.org>.
36123
36124 2009-01-24  Bruno Haible  <bruno@clisp.org>
36125
36126         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36127
36128 2009-01-23  Bruno Haible  <bruno@clisp.org>
36129
36130         Make c-strtod, c-strtold usable in libraries.
36131         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36132         (C_STRTOD): Call strdup instead of xstrdup.
36133         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36134         * modules/c-strtold (Depends-on): Likewise.
36135         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36136         * NEWS: Mention the change.
36137         Reported by Michael Gold <mgold@ncf.ca>.
36138
36139 2009-01-23  Jim Meyering  <meyering@redhat.com>
36140
36141         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36142         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36143         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36144
36145 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36146
36147         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36148         GNU CoreUtils.
36149         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36150         * modules/version-etc (Description): Update.
36151
36152 2009-01-22  Bruno Haible  <bruno@clisp.org>
36153
36154         Cache the C locale object.
36155         * lib/c-strtod.c (c_locale_cache): New variable.
36156         (c_locale): New function.
36157         (C_STRTOD): Use it, and don't call freelocale.
36158         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36159         Suggested by Paolo Bonzini.
36160
36161 2009-01-21  Bruno Haible  <bruno@clisp.org>
36162
36163         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36164         conditions other than overflow.
36165
36166 2009-01-21  Bruno Haible  <bruno@clisp.org>
36167
36168         * lib/c-strtod.c: Include errno.h.
36169         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36170         value from STRTOD_L and STRTOD.
36171
36172 2009-01-21  Bruno Haible  <bruno@clisp.org>
36173         and Jim Meyering  <meyering@redhat.com>
36174
36175         nanosleep: skip configure test (fail it) for apple universal builds
36176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36177         universal builds, assume that nanosleep does not work.
36178         * modules/nanosleep (Depends-on): Add multiarch.
36179
36180         mktime: skip configure test (fail it) for apple universal builds
36181         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36182         universal builds, assume that mktime does not work.
36183         * modules/mktime (Depends-on): Add multiarch.
36184
36185 2009-01-21  Eric Blake  <ebb9@byu.net>
36186
36187         multiarch: avoid expand-before-require warning
36188         * modules/multiarch (configure.ac): Require, rather than expand,
36189         gl_MULTIARCH.
36190         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36191         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36192         enforce that all clients require it.  Partial reversion of
36193         2008-12-29 patch.
36194
36195         error: avoid expand-before-require warning
36196         * modules/errno (configure.ac): Require, rather than expand,
36197         gl_HEADER_ERRNO_H.
36198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36199         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36200         enforce that all clients require it.
36201
36202         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36203         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36204         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36205         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36206
36207 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36208
36209         Revert:
36210         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36211
36212         regex: do not depend on obsolete modules.
36213         * modules/regex: Remove memcmp and memmove.
36214
36215 2009-01-20  Bruno Haible  <bruno@clisp.org>
36216
36217         Make the 'link' module link on Windows NT 4.
36218         * lib/link.c (_WIN32_WINNT): Don't define.
36219         (CreateHardLinkFuncType): New type.
36220         (CreateHardLinkFunc, initialized): New variables.
36221         (initialize): New function.
36222         (link): Invoke CreateHardLink indirectly through the function pointer.
36223
36224 2009-01-20  Bruno Haible  <bruno@clisp.org>
36225
36226         Fix compilation failure on mingw.
36227         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36228
36229 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36230
36231         * doc/c-strtod.texi: Mention a couple of restrictions.
36232
36233 2009-01-20  Jim Meyering  <meyering@redhat.com>
36234
36235         gettimeofday: move more declarations out of functions
36236         * lib/gettimeofday.c: Move extern declarations of tzset and
36237         gmtime out of containing functions.  Prompted by Bruno Haible.
36238
36239 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36240
36241         regex: do not depend on obsolete modules.
36242         * modules/regex: Remove memcmp and memmove.
36243
36244 2009-01-19  Bruno Haible  <bruno@clisp.org>
36245
36246         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36247         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36248         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36249         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36250         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36251
36252 2009-01-19  Bruno Haible  <bruno@clisp.org>
36253
36254         * tests/test-link.c: Include <errno.h>.
36255         (main): Exit with code 77 when a hard link cannot be created due to
36256         the file system.
36257         * tests/test-link.sh: Skip test when a hard link cannot be created due
36258         to the file system.
36259         Suggested by Eric Blake.
36260
36261 2009-01-19  Martin Lambers  <marlam@marlam.de>
36262
36263         * modules/link-tests: New file.
36264         * tests/test-link.sh: New file.
36265         * tests/test-link.c: New file.
36266
36267 2009-01-19  Eric Blake  <ebb9@byu.net>
36268
36269         doc: mention another function added in cygwin 1.7.0
36270         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36271         Another new function in cygwin 1.7.
36272
36273 2009-01-19  Bruno Haible  <bruno@clisp.org>
36274
36275         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36276         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36277         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36278         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36279         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36280         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36281         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36282         * m4/md4.m4 (gl_MD4): Likewise.
36283         * m4/md5.m4 (gl_MD5): Likewise.
36284         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36285         * m4/sha1.m4 (gl_SHA1): Likewise.
36286         * m4/sha256.m4 (gl_SHA256): Likewise.
36287         * m4/sha512.m4 (gl_SHA512): Likewise.
36288
36289 2009-01-19  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/uniname/uniname-tests (Depends-on): Add progname.
36292         * tests/uniname/test-uninames.c: Include progname.h.
36293         (main): Call set_program_name.
36294
36295         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36296         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36297         (main): Call set_program_name.
36298
36299         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36300         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36301         (main): Call set_program_name.
36302
36303         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36304         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36305         (main): Call set_program_name.
36306
36307         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36308         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36309         (main): Call set_program_name.
36310
36311         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36312         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36313         (main): Call set_program_name.
36314
36315         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36316         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36317         (main): Call set_program_name.
36318
36319         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36320         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36321         (main): Call set_program_name.
36322
36323         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36324         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36325         (main): Call set_program_name.
36326
36327 2009-01-19  Eric Blake  <ebb9@byu.net>
36328
36329         test-unistd: test previous patch
36330         * tests/test-unistd.c: Test *_FILENO macros.
36331
36332         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36333         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36334         Guarantee a definition.
36335         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36336         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36337         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36338         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36339         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36340         Likewise.
36341         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36342         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36343         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36344         Likewise.
36345         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36346         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36347         (STDERR_FILENO): Likewise.
36348         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36349         (STDERR_FILENO): Likewise.
36350         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36351         (STDERR_FILENO): Likewise.
36352         Reported by Elbert Pol.
36353
36354 2009-01-19  Eric Blake  <ebb9@byu.net>
36355
36356         doc: mention more functions added in cygwin 1.7.0
36357         * doc/posix-functions/abort.texi (abort): Update wording related
36358         to cygwin.
36359         * doc/posix-functions/daylight.texi (daylight): Likewise.
36360         * doc/posix-functions/optarg.texi (optarg): Likewise.
36361         * doc/posix-functions/optarg.texi (opterr): Likewise.
36362         * doc/posix-functions/optarg.texi (optind): Likewise.
36363         * doc/posix-functions/optarg.texi (optopt): Likewise.
36364         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36365         worked in 1.5.x, and was withdrawn in 1.7.
36366         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36367         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36368         cygwin versions.
36369         * doc/posix-functions/perror.texi (perror): Likewise.
36370         * doc/posix-functions/printf.texi (printf): Likewise.
36371         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36372         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36373         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36374         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36375         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36376         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36377         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36378         Likewise.
36379         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36380         Likewise.
36381         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36382         this function.
36383         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36384         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36385         Likewise.
36386         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36387         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36388         * doc/posix-functions/confstr.texi (confstr): Likewise.
36389         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36390         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36391         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36392         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36393         * doc/posix-functions/fputws.texi (fputws): Likewise.
36394         * doc/posix-functions/fwide.texi (fwide): Likewise.
36395         * doc/posix-functions/getwc.texi (getwc): Likewise.
36396         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36397         * doc/posix-functions/putwc.texi (putwc): Likewise.
36398         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36399         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36400         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36401         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36402         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36403         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36404         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36405         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36406         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36407         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36408         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36409
36410 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36411
36412         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36413         * lib/ioctl.c: Include <sys/ioctl.h>.
36414
36415 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36416
36417         * modules/getdate-tests (Depends-on): Add progname.
36418         * tests/test-getdate.c: Use progname module, to avoid link errors
36419         on non-glibc systems.
36420
36421 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36422
36423         * modules/filenamecat-tests (Depends-on): Add progname.
36424         * modules/fstrcmp-tests (Depends-on): Likewise.
36425
36426         * tests/test-filenamecat.c: Use progname module, to avoid link
36427         errors on non-glibc systems.
36428         * tests/test-fstrcmp.c: Likewise.
36429
36430 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36431
36432         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36433         * lib/gettimeofday.c: Move extern declaration out of function.
36434
36435 2009-01-18  Bruno Haible  <bruno@clisp.org>
36436
36437         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36438         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36439         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36440
36441 2009-01-18  Bruno Haible  <bruno@clisp.org>
36442
36443         * lib/strftime.c (MEMPCPY): Remove unused macro.
36444         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36445
36446 2009-01-18  Martin Lambers  <marlam@marlam.de>
36447
36448         New module 'link'.
36449         * lib/unistd.in.h (link): New declaration.
36450         * lib/link.c: New file.
36451         * m4/link.m4: New file.
36452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36453         HAVE_LINK.
36454         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36455         * modules/link: New file.
36456         * doc/posix-functions/link.texi: Mention the new module.
36457
36458 2009-01-18  Bruno Haible  <bruno@clisp.org>
36459
36460         * tests/test-avltree_list.c (main): Call set_program_name.
36461         * tests/test-avltree_oset.c (main): Likewise.
36462         * tests/test-obstack-printf.c: Include progname.h.
36463         (main): Call set_program_name.
36464         * tests/test-quotearg.c: Include progname.h.
36465         (main): Call set_program_name.
36466         * tests/test-xmemdup0.c: Include progname.h.
36467         (main): Call set_program_name.
36468
36469 2009-01-18  Bruno Haible  <bruno@clisp.org>
36470
36471         New module 'alphasort'.
36472         * lib/dirent.in.h (alphasort): New declaration.
36473         * lib/alphasort.c: New file, from glibc with modifications.
36474         * m4/alphasort.m4: New file.
36475         * modules/alphasort: New file.
36476         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36477         HAVE_ALPHASORT.
36478         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36479         HAVE_ALPHASORT.
36480         * doc/posix-functions/alphasort.texi: Mention the new module and the
36481         portability problems.
36482
36483 2009-01-18  Bruno Haible  <bruno@clisp.org>
36484
36485         New module 'scandir'.
36486         * lib/dirent.in.h (scandir): New declaration.
36487         * lib/scandir.c: New file, from glibc with modifications.
36488         * m4/scandir.m4: New file.
36489         * modules/scandir: New file.
36490         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36491         HAVE_SCANDIR.
36492         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36493         HAVE_SCANDIR.
36494         * doc/posix-functions/scandir.texi: Mention the new module and the
36495         portability problems.
36496
36497 2009-01-17  Bruno Haible  <bruno@clisp.org>
36498
36499         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36500         Update documentation.
36501         (func_remove_suffix): Escape all dots in the suffix. Update
36502         documentation.
36503         (func_filter_filelist): Update documentation.
36504         Reported by Ralf Wildenhues.
36505
36506 2009-01-17  Bruno Haible  <bruno@clisp.org>
36507
36508         * modules/dprintf-posix-tests: New file.
36509         * tests/test-dprintf-posix.sh: New file.
36510         * tests/test-dprintf-posix.c: New file.
36511
36512         New modules 'dprintf', 'dprintf-posix'.
36513         * lib/stdio.in.h (dprintf): New declaration.
36514         * lib/dprintf.c: New file.
36515         * m4/dprintf.m4: New file.
36516         * m4/dprintf-posix.m4: New file.
36517         * modules/dprintf: New file.
36518         * modules/dprintf-posix: New file.
36519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36520         HAVE_DPRINTF, REPLACE_DPRINTF.
36521         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36522         HAVE_DPRINTF, REPLACE_DPRINTF.
36523         * doc/posix-functions/dprintf.texi: Mention the new modules.
36524
36525 2009-01-17  Bruno Haible  <bruno@clisp.org>
36526
36527         * modules/vdprintf-posix-tests: New file.
36528         * tests/test-vdprintf-posix.sh: New file.
36529         * tests/test-vdprintf-posix.c: New file.
36530
36531         New modules 'vdprintf', 'vdprintf-posix'.
36532         * lib/stdio.in.h (vdprintf): New declaration.
36533         * lib/vdprintf.c: New file.
36534         * m4/vdprintf.m4: New file.
36535         * m4/vdprintf-posix.m4: New file.
36536         * modules/vdprintf: New file.
36537         * modules/vdprintf-posix: New file.
36538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36539         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36540         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36541         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36542         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36543
36544 2009-01-17  Bruno Haible  <bruno@clisp.org>
36545
36546         Fix replacement of fopen on mingw.
36547         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36548         mingw.
36549
36550 2009-01-17  Bruno Haible  <bruno@clisp.org>
36551
36552         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36553         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36554
36555 2009-01-17  Bruno Haible  <bruno@clisp.org>
36556
36557         Avoid test-fflush2.sh failure on mingw.
36558         * tests/test-fflush2.c: Include binary-io.h.
36559         (main): Put standard input into binary mode.
36560         * modules/fflush-tests (Depends-on): Add binary-io.
36561
36562 2009-01-17  Bruno Haible  <bruno@clisp.org>
36563
36564         * lib/wchar.in.h: In another particular situation, include only the
36565         system's <wchar.h> file.
36566         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36567         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36568         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36569
36570 2009-01-17  Bruno Haible  <bruno@clisp.org>
36571
36572         Support for stripping executables in --enable-relocatable.
36573         * build-aux/install-reloc: Expect one more argument, or an environment
36574         variable RELOC_STRIP_PROG. If set, strip the destination program and
36575         its wrapper.
36576         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36577         RELOC_STRIP_PROG.
36578         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36579         to set RELOCATABLE_STRIP.
36580         * NEWS: Mention the new Makefile requirement.
36581
36582 2009-01-17  Bruno Haible  <bruno@clisp.org>
36583
36584         * build-aux/install-reloc: Remove debugging information left over by
36585         C compiler on MacOS X.
36586
36587 2009-01-17  Bruno Haible  <bruno@clisp.org>
36588
36589         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36590         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36591         _NSGetExecutablePath.
36592
36593 2009-01-16  Jim Meyering  <meyering@redhat.com>
36594
36595         strerror: avoid warnings about discarding "const"
36596         * lib/strerror.c (rpl_strerror): Instead of returning a const
36597         string from each and every "case", use a variable, and add a single
36598         cast after the switch.
36599
36600 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36601
36602         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36603
36604 2009-01-16  Bruno Haible  <bruno@clisp.org>
36605
36606         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36607         array initializer syntax that also works in C++ mode.
36608         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36609
36610 2009-01-16  Jim Meyering  <meyering@redhat.com>
36611
36612         poll: suppress a warning
36613         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36614         to ignore "...unsigned expression < 0 is always false" warnings.
36615
36616 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36617
36618         poll: remove declarations of unused variables
36619         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36620         sockbuf and optlen.
36621
36622 2009-01-15  Bruno Haible  <bruno@clisp.org>
36623
36624         Make fflush-after-ungetc POSIX compliant on BSD systems.
36625         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36626         (clear_ungetc_buffer): Implement also for other systems.
36627         (rpl_fflush): On glibc systems, invoke
36628         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36629         clear_ungetc_buffer after fetching the stream's position, not before.
36630
36631 2009-01-15  Bruno Haible  <bruno@clisp.org>
36632
36633         Make fflush-after-ungetc POSIX compliant on glibc systems.
36634         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36635         after ungetc.
36636         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36637         (rpl_fflush): On glibc systems, simply call the system's fflush
36638         function after clearing the ungetc buffer.
36639         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36640         Instead, lseek only to the end of file, then use the system's fseeko
36641         for the rest. On glibc systems, reset the EOF indicator bit.
36642
36643 2009-01-15  Jim Meyering  <meyering@redhat.com>
36644
36645         openmp.m4: revert quote-adding change, for portability to older autoconf
36646         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36647         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36648         Simon Josefsson noticed the problem when using autoconf-2.61.
36649
36650 2009-01-15  Bruno Haible  <bruno@clisp.org>
36651
36652         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36653         * tests/test-fflush2.c (ASSERT): Always fail.
36654         (main): Add two tests for fflush() after ungetc(), taking into account
36655         the Austin Group's clarification.
36656         Suggested by Eric Blake.
36657
36658 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36659
36660         mktime.m4: remove K&R-style function prototypes
36661         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36662         for the Sun C++ compiler.
36663
36664 2009-01-14  Bruno Haible  <bruno@clisp.org>
36665
36666         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36667         while including <wchar.h>.
36668         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36669         the system's <wchar.h> file.
36670         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36671
36672 2009-01-14  Bruno Haible  <bruno@clisp.org>
36673
36674         * m4/csharp.m4: Don't mention gettext on the serial number line.
36675         * m4/csharpexec.m4: Likewise.
36676         * m4/eaccess.m4: Likewise.
36677         * m4/javaexec.m4: Likewise.
36678         * m4/sig_atomic_t.m4: Likewise.
36679         * m4/tmpdir.m4: Likewise.
36680         * m4/intldir.m4: Bump gettext version.
36681         * m4/lib-ld.m4: Likewise.
36682
36683 2009-01-14  Bruno Haible  <bruno@clisp.org>
36684
36685         * lib/progname.c (set_program_name): Add more comments.
36686         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36687
36688 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36689
36690         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36691         were sys/stat.h does not define it.
36692
36693 2009-01-14  Jim Meyering  <meyering@redhat.com>
36694
36695         many *.m4 files: improve m4 quoting
36696         99% of this change was performed by running the following commands:
36697         git ls-files | grep '\.m4$' | xargs perl -pi \
36698           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36699           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36700           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36701           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36702         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36703         The remainder were to add Copyright dates, increment serial numbers,
36704         undo some changes in comments, exclude m4/intl.m4, and add quotes
36705         around the "1" in ",1" where the unusual spacing prohibited the
36706         above regexps from doing the job.  For more details, see
36707         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36708         * m4/acl.m4: Modified.
36709         * m4/afs.m4: Likewise.
36710         * m4/alloca.m4: Likewise.
36711         * m4/argp.m4: Likewise.
36712         * m4/argz.m4: Likewise.
36713         * m4/atexit.m4: Likewise.
36714         * m4/bison-i18n.m4: Likewise.
36715         * m4/bison.m4: Likewise.
36716         * m4/byteswap.m4: Likewise.
36717         * m4/c-stack.m4: Likewise.
36718         * m4/c-strtod.m4: Likewise.
36719         * m4/calloc.m4: Likewise.
36720         * m4/canonicalize-lgpl.m4: Likewise.
36721         * m4/chown.m4: Likewise.
36722         * m4/clock_time.m4: Likewise.
36723         * m4/codeset.m4: Likewise.
36724         * m4/copy-file.m4: Likewise.
36725         * m4/csharp.m4: Likewise.
36726         * m4/csharpcomp.m4: Likewise.
36727         * m4/csharpexec.m4: Likewise.
36728         * m4/d-ino.m4: Likewise.
36729         * m4/d-type.m4: Likewise.
36730         * m4/dirfd.m4: Likewise.
36731         * m4/double-slash-root.m4: Likewise.
36732         * m4/eaccess.m4: Likewise.
36733         * m4/eealloc.m4: Likewise.
36734         * m4/environ.m4: Likewise.
36735         * m4/errno_h.m4: Likewise.
36736         * m4/euidaccess.m4: Likewise.
36737         * m4/execute.m4: Likewise.
36738         * m4/fatal-signal.m4: Likewise.
36739         * m4/fchdir.m4: Likewise.
36740         * m4/fcntl_h.m4: Likewise.
36741         * m4/fileblocks.m4: Likewise.
36742         * m4/filenamecat.m4: Likewise.
36743         * m4/findprog.m4: Likewise.
36744         * m4/flexmember.m4: Likewise.
36745         * m4/fnmatch.m4: Likewise.
36746         * m4/fopen.m4: Likewise.
36747         * m4/fpending.m4: Likewise.
36748         * m4/fprintf-posix.m4: Likewise.
36749         * m4/free.m4: Likewise.
36750         * m4/frexp.m4: Likewise.
36751         * m4/frexpl.m4: Likewise.
36752         * m4/fsusage.m4: Likewise.
36753         * m4/ftruncate.m4: Likewise.
36754         * m4/gc-camellia.m4: Likewise.
36755         * m4/gc-random.m4: Likewise.
36756         * m4/gc.m4: Likewise.
36757         * m4/getaddrinfo.m4: Likewise.
36758         * m4/getcwd-abort-bug.m4: Likewise.
36759         * m4/getcwd-path-max.m4: Likewise.
36760         * m4/getdate.m4: Likewise.
36761         * m4/getdomainname.m4: Likewise.
36762         * m4/getgroups.m4: Likewise.
36763         * m4/gethostname.m4: Likewise.
36764         * m4/gethrxtime.m4: Likewise.
36765         * m4/getline.m4: Likewise.
36766         * m4/getloadavg.m4: Likewise.
36767         * m4/getndelim2.m4: Likewise.
36768         * m4/getpass.m4: Likewise.
36769         * m4/gettext.m4: Likewise.
36770         * m4/gettime.m4: Likewise.
36771         * m4/gettimeofday.m4: Likewise.
36772         * m4/gnulib-common.m4: Likewise.
36773         * m4/group-member.m4: Likewise.
36774         * m4/host-os.m4: Likewise.
36775         * m4/iconv.m4: Likewise.
36776         * m4/iconv_open.m4: Likewise.
36777         * m4/inet_ntop.m4: Likewise.
36778         * m4/inet_pton.m4: Likewise.
36779         * m4/inline.m4: Likewise.
36780         * m4/intldir.m4: Likewise.
36781         * m4/intlmacosx.m4: Likewise.
36782         * m4/intmax.m4: Likewise.
36783         * m4/intmax_t.m4: Likewise.
36784         * m4/inttypes.m4: Likewise.
36785         * m4/inttypes_h.m4: Likewise.
36786         * m4/inttypes-pri.m4: Likewise.
36787         * m4/isapipe.m4: Likewise.
36788         * m4/isnand.m4: Likewise.
36789         * m4/isnanf.m4: Likewise.
36790         * m4/isnanl.m4: Likewise.
36791         * m4/javacomp.m4: Likewise.
36792         * m4/javaexec.m4: Likewise.
36793         * m4/jm-winsz1.m4: Likewise.
36794         * m4/jm-winsz2.m4: Likewise.
36795         * m4/lchown.m4: Likewise.
36796         * m4/lcmessage.m4: Likewise.
36797         * m4/ldexpl.m4: Likewise.
36798         * m4/lib-ld.m4: Likewise.
36799         * m4/lib-link.m4: Likewise.
36800         * m4/libsigsegv.m4: Likewise.
36801         * m4/link-follow.m4: Likewise.
36802         * m4/localcharset.m4: Likewise.
36803         * m4/locale-fr.m4: Likewise.
36804         * m4/locale-ja.m4: Likewise.
36805         * m4/locale-tr.m4: Likewise.
36806         * m4/locale-zh.m4: Likewise.
36807         * m4/lock.m4: Likewise.
36808         * m4/longlong.m4: Likewise.
36809         * m4/ls-mntd-fs.m4: Likewise.
36810         * m4/lstat.m4: Likewise.
36811         * m4/malloc.m4: Likewise.
36812         * m4/mathl.m4: Likewise.
36813         * m4/mbrtowc.m4: Likewise.
36814         * m4/mbstate_t.m4: Likewise.
36815         * m4/mbswidth.m4: Likewise.
36816         * m4/memchr.m4: Likewise.
36817         * m4/memcmp.m4: Likewise.
36818         * m4/memcpy.m4: Likewise.
36819         * m4/memmem.m4: Likewise.
36820         * m4/memmove.m4: Likewise.
36821         * m4/mempcpy.m4: Likewise.
36822         * m4/memrchr.m4: Likewise.
36823         * m4/memset.m4: Likewise.
36824         * m4/minmax.m4: Likewise.
36825         * m4/mkdir-slash.m4: Likewise.
36826         * m4/mkdtemp.m4: Likewise.
36827         * m4/mktime.m4: Likewise.
36828         * m4/mmap-anon.m4: Likewise.
36829         * m4/mountlist.m4: Likewise.
36830         * m4/nanosleep.m4: Likewise.
36831         * m4/nls.m4: Likewise.
36832         * m4/nocrash.m4: Likewise.
36833         * m4/open.m4: Likewise.
36834         * m4/openat.m4: Likewise.
36835         * m4/openmp.m4: Likewise.
36836         * m4/pathmax.m4: Likewise.
36837         * m4/perl.m4: Likewise.
36838         * m4/physmem.m4: Likewise.
36839         * m4/pipe.m4: Likewise.
36840         * m4/po.m4: Likewise.
36841         * m4/poll.m4: Likewise.
36842         * m4/posixtm.m4: Likewise.
36843         * m4/posixver.m4: Likewise.
36844         * m4/printf-frexp.m4: Likewise.
36845         * m4/printf-frexpl.m4: Likewise.
36846         * m4/printf-posix.m4: Likewise.
36847         * m4/printf-posix-rpl.m4: Likewise.
36848         * m4/printf.m4: Likewise.
36849         * m4/progtest.m4: Likewise.
36850         * m4/putenv.m4: Likewise.
36851         * m4/readline.m4: Likewise.
36852         * m4/readlink.m4: Likewise.
36853         * m4/readutmp.m4: Likewise.
36854         * m4/realloc.m4: Likewise.
36855         * m4/regex.m4: Likewise.
36856         * m4/relocatable.m4: Likewise.
36857         * m4/relocatable-lib.m4: Likewise.
36858         * m4/rename-dest-slash.m4: Likewise.
36859         * m4/rename.m4: Likewise.
36860         * m4/rmdir-errno.m4: Likewise.
36861         * m4/rmdir.m4: Likewise.
36862         * m4/roundf.m4: Likewise.
36863         * m4/roundl.m4: Likewise.
36864         * m4/rpmatch.m4: Likewise.
36865         * m4/save-cwd.m4: Likewise.
36866         * m4/selinux-selinux-h.m4: Likewise.
36867         * m4/setenv.m4: Likewise.
36868         * m4/settime.m4: Likewise.
36869         * m4/sig2str.m4: Likewise.
36870         * m4/sig_atomic_t.m4: Likewise.
36871         * m4/signalblocking.m4: Likewise.
36872         * m4/signbit.m4: Likewise.
36873         * m4/sigpipe.m4: Likewise.
36874         * m4/sockets.m4: Likewise.
36875         * m4/sockpfaf.m4: Likewise.
36876         * m4/st_dm_mode.m4: Likewise.
36877         * m4/stat-time.m4: Likewise.
36878         * m4/stdbool.m4: Likewise.
36879         * m4/stdint.m4: Likewise.
36880         * m4/stdint_h.m4: Likewise.
36881         * m4/stpcpy.m4: Likewise.
36882         * m4/stpncpy.m4: Likewise.
36883         * m4/strcase.m4: Likewise.
36884         * m4/strchrnul.m4: Likewise.
36885         * m4/strcspn.m4: Likewise.
36886         * m4/strdup.m4: Likewise.
36887         * m4/strftime.m4: Likewise.
36888         * m4/strndup.m4: Likewise.
36889         * m4/strnlen.m4: Likewise.
36890         * m4/strpbrk.m4: Likewise.
36891         * m4/strptime.m4: Likewise.
36892         * m4/strsep.m4: Likewise.
36893         * m4/strtod.m4: Likewise.
36894         * m4/strtoimax.m4: Likewise.
36895         * m4/strtok_r.m4: Likewise.
36896         * m4/strtol.m4: Likewise.
36897         * m4/strtoll.m4: Likewise.
36898         * m4/strtoul.m4: Likewise.
36899         * m4/strtoull.m4: Likewise.
36900         * m4/strtoumax.m4: Likewise.
36901         * m4/strverscmp.m4: Likewise.
36902         * m4/threadlib.m4: Likewise.
36903         * m4/timegm.m4: Likewise.
36904         * m4/tm_gmtoff.m4: Likewise.
36905         * m4/tmpdir.m4: Likewise.
36906         * m4/tmpfile.m4: Likewise.
36907         * m4/tzset.m4: Likewise.
36908         * m4/uintmax_t.m4: Likewise.
36909         * m4/unlinkdir.m4: Likewise.
36910         * m4/unlocked-io.m4: Likewise.
36911         * m4/uptime.m4: Likewise.
36912         * m4/userspec.m4: Likewise.
36913         * m4/utimbuf.m4: Likewise.
36914         * m4/utime.m4: Likewise.
36915         * m4/utimes-null.m4: Likewise.
36916         * m4/utimes.m4: Likewise.
36917         * m4/vararrays.m4: Likewise.
36918         * m4/vasnprintf.m4: Likewise.
36919         * m4/vfprintf-posix.m4: Likewise.
36920         * m4/vprintf-posix.m4: Likewise.
36921         * m4/wait-process.m4: Likewise.
36922         * m4/wchar_t.m4: Likewise.
36923         * m4/wint_t.m4: Likewise.
36924         * m4/write-any-file.m4: Likewise.
36925         * m4/yield.m4: Likewise.
36926
36927 2009-01-13  Bruno Haible  <bruno@clisp.org>
36928
36929         Avoid test-copy-file.sh failures when ACL support insufficient.
36930         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36931         TESTS_ENVIRONMENT.
36932         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36933         Reported by Jim Meyering.
36934
36935 2009-01-13  Bruno Haible  <bruno@clisp.org>
36936
36937         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36938         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36939         * modules/unistdio/u8-printf-parse (Files): Likewise.
36940         * modules/unistdio/u32-printf-parse (Files): Likewise.
36941         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36942
36943 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36944
36945         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36946         and m4/inttypes_h.m4 too.
36947
36948 2009-01-12  Eric Blake  <ebb9@byu.net>
36949
36950         tests: IRIX 6.2 cc can't compile -0.0 into .data
36951         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36952         rather than at compile-time.
36953         * tests/test-floorl.c (minus_zero): Likewise.
36954         * tests/test-frexpl.c (minus_zero): Likewise.
36955         * tests/test-isnan.c (minus_zerol): Likewise.
36956         * tests/test-isnanl.h (minus_zero): Likewise.
36957         * tests/test-ldexpl.c (minus_zero): Likewise.
36958         * tests/test-roundl.c (minus_zero): Likewise.
36959         * tests/test-signbit.c (minus_zerol): Likewise.
36960         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36961         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36962         * tests/test-truncl.c (minus_zero): Likewise.
36963         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36964         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36965         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36966
36967 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36968
36969         regex: fix glibc bug 9697
36970         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36971         handling.
36972
36973 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36974
36975         regex: fix glibc bug 697
36976         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36977         being NULL also if there are no backreferences.
36978
36979 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36980
36981         regex: merge glibc changes
36982         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36983         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36984         re_string_skip_chars, re_string_reconstruct): Likewise.
36985         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36986
36987 2009-01-07  Jim Meyering  <meyering@redhat.com>
36988
36989         poll: filter through cppi
36990         * lib/poll.c: Indent cpp directives to reflect nesting.
36991
36992 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36993
36994         poll: don't return uninitialized
36995         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36996
36997 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36998
36999         avoid compile failure on AIX 6.1
37000         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37001         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37002
37003 2009-01-04  Jim Meyering  <meyering@redhat.com>
37004
37005         remove duplicate inclusion of <stdio.h>
37006         * tests/test-fprintf-posix.c: Likewise.
37007         * tests/test-printf-posix.c: Likewise.
37008         * tests/test-snprintf-posix.c: Likewise.
37009         * tests/test-sprintf-posix.c: Likewise.
37010         * tests/test-vasprintf-posix.c: Likewise.
37011         * tests/test-vfprintf-posix.c: Likewise.
37012         * tests/test-vprintf-posix.c: Likewise.
37013         * tests/test-vsnprintf-posix.c: Likewise.
37014         * tests/test-vsprintf-posix.c: Likewise.
37015
37016 2009-01-03  Jim Meyering  <meyering@redhat.com>
37017
37018         gnulib-tool: fix sed-based filtering
37019         * gnulib-tool (func_filter_filelist): Remove extra backslash
37020         in sed_fff_filter definition.
37021
37022 2009-01-02  Jim Meyering  <meyering@redhat.com>
37023
37024         strftime: avoid compilation failure on Solaris 2.6
37025         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37026         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37027         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37028         be available.  Reported by Tom G. Christensen.  Details in
37029         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37030
37031 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37032             Bruno Haible  <bruno@clisp.org>
37033
37034         Speed up gnulib-tool by doing more string processing through shell
37035         built-ins.
37036         * gnulib-tool (fast_func_append): New variable.
37037         (func_remove_prefix, func_remove_suffix): New functions.
37038         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37039         (func_filter_filelist): New function.
37040         (func_get_dependencies): Use func_remove_suffix instead of sed.
37041         (func_get_automake_snippet): Use func_filter_filelist instead of a
37042         subshell and sed invocation.
37043
37044 2009-01-01  Bruno Haible  <bruno@clisp.org>
37045
37046         Fix a security bug.
37047         * gnulib-tool (func_import, import, update): Don't allow the characters
37048         '"', '$', '`', '\' in macro arguments that become part of commands that
37049         are evaluated.
37050
37051 2009-01-01  Bruno Haible  <bruno@clisp.org>
37052
37053         * gnulib-tool (func_reset_sigpipe): Add more comments.
37054
37055 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37056
37057         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37058         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37059         already know the answer.
37060
37061 2009-01-01  Jim Meyering  <meyering@redhat.com>
37062
37063         * lib/version-etc.c (version_etc_va): Update copyright year.
37064
37065 2008-12-30  Bruno Haible  <bruno@clisp.org>
37066
37067         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37068         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37069         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37070
37071 2008-12-29  Eric Blake  <ebb9@byu.net>
37072
37073         multiarch: avoid autoconf AC_REQUIRE bug
37074         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37075         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37076         2.63 and older.
37077         Reported by Bruno Haible, and analyzed in
37078         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37079
37080 2008-12-29  Bruno Haible  <bruno@clisp.org>
37081
37082         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37083         files in subdirectories correctly.
37084         Reported by Ralf Wildenhues.
37085
37086 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37087
37088         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37089         rather than 'join FILE -', for Solaris join.
37090
37091 2008-12-29  Bruno Haible  <bruno@clisp.org>
37092
37093         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37094         quoting.
37095         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37096         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37097         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37098         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37099         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37100         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37101         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37102         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37103         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37104         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37105         * m4/nls.m4 (AM_NLS): Likewise.
37106         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37107         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37108         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37109         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37110         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37111         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37112         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37113         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37114         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37115         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37116         * m4/xsize.m4 (gl_XSIZE): Likewise.
37117         Suggested by Jim Meyering.
37118
37119 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37120
37121         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37122         * lib/parse-duration.c: use a switch instead of cascading if's.
37123
37124 2008-12-29  Eric Blake  <ebb9@byu.net>
37125
37126         wchar.h: supply WEOF on Irix 5.3
37127         * lib/wchar.in.h (wint_t): Also supply WEOF.
37128         * lib/wctype.in.h (wint_t): Likewise.
37129         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37130         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37131         Reported by Tom G. Christensen.
37132
37133 2008-12-26  Bruno Haible  <bruno@clisp.org>
37134
37135         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37136         i486, i586, i686.
37137
37138 2008-12-26  Bruno Haible  <bruno@clisp.org>
37139
37140         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37141
37142 2008-12-26  Bruno Haible  <bruno@clisp.org>
37143
37144         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37145         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37146         not __STDC_CONSTANT_MACROS.
37147         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37148
37149 2008-12-25  Bruno Haible  <bruno@clisp.org>
37150
37151         Add support for universal builds to vasnprintf.
37152         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37153         universal builds, guess no.
37154         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37155         * modules/vasprintf-posix (Depends-on): Likewise.
37156         * modules/fprintf-posix (Depends-on): Likewise.
37157         * modules/vfprintf-posix (Depends-on): Likewise.
37158         * modules/snprintf-posix (Depends-on): Likewise.
37159         * modules/vsnprintf-posix (Depends-on): Likewise.
37160         * modules/sprintf-posix (Depends-on): Likewise.
37161         * modules/vsprintf-posix (Depends-on): Likewise.
37162         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37163         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37164         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37165         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37166         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37167         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37168         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37169
37170         Add support for universal builds to <inttypes.h>.
37171         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37172         _SCNu64_PREFIX): In Apple
37173         universal builds, define directly, using _LP64.
37174         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37175         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37176         * modules/inttypes (Depends-on): Add multiarch.
37177         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37178
37179         Add support for universal builds to <stdint.h>.
37180         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37181         universal builds, define directly, using _LP64.
37182         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37183         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37184         and size_t.
37185         * modules/stdint (Depends-on): Add multiarch.
37186         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37187
37188         New module 'multiarch'.
37189         * modules/multiarch: New file.
37190         * m4/multiarch.m4: New file.
37191
37192 2008-12-25  Bruno Haible  <bruno@clisp.org>
37193
37194         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37195
37196 2008-12-25  Bruno Haible  <bruno@clisp.org>
37197
37198         * modules/btowc (License): Relicense under LGPLv2+.
37199         * modules/mbsinit (License): Likewise.
37200         * modules/mbrtowc (License): Likewise.
37201         * modules/wcrtomb (License): Likewise.
37202         * modules/streq (License): Likewise.
37203         Reported by David Lutterkort <lutter@redhat.com>.
37204
37205 2008-12-23  Bruno Haible  <bruno@clisp.org>
37206
37207         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37208
37209 2008-12-23  Bruno Haible  <bruno@clisp.org>
37210
37211         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37213         GETADDRINFO_LIB, not in LIBS.
37214         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37215         * modules/canon-host (Link): Likewise.
37216         * NEWS: Mention the change.
37217         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37218         GETADDRINFO_LIB.
37219
37220 2008-12-22  Bruno Haible  <bruno@clisp.org>
37221
37222         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37223         * doc/posix-functions/iswalpha_l.texi: Likewise.
37224         * doc/posix-functions/iswblank_l.texi: Likewise.
37225         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37226         * doc/posix-functions/iswctype_l.texi: Likewise.
37227         * doc/posix-functions/iswdigit_l.texi: Likewise.
37228         * doc/posix-functions/iswgraph_l.texi: Likewise.
37229         * doc/posix-functions/iswlower_l.texi: Likewise.
37230         * doc/posix-functions/iswprint_l.texi: Likewise.
37231         * doc/posix-functions/iswpunct_l.texi: Likewise.
37232         * doc/posix-functions/iswspace_l.texi: Likewise.
37233         * doc/posix-functions/iswupper_l.texi: Likewise.
37234         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37235         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37236         * doc/posix-functions/open_wmemstream.texi: Likewise.
37237         * doc/posix-functions/swscanf.texi: Likewise.
37238         * doc/posix-functions/towctrans_l.texi: Likewise.
37239         * doc/posix-functions/towlower.texi: Likewise.
37240         * doc/posix-functions/towlower_l.texi: Likewise.
37241         * doc/posix-functions/towupper.texi: Likewise.
37242         * doc/posix-functions/towupper_l.texi: Likewise.
37243         * doc/posix-functions/vfwprintf.texi: Likewise.
37244         * doc/posix-functions/vfwscanf.texi: Likewise.
37245         * doc/posix-functions/vswscanf.texi: Likewise.
37246         * doc/posix-functions/vwprintf.texi: Likewise.
37247         * doc/posix-functions/vwscanf.texi: Likewise.
37248         * doc/posix-functions/wcpcpy.texi: Likewise.
37249         * doc/posix-functions/wcpncpy.texi: Likewise.
37250         * doc/posix-functions/wcscasecmp.texi: Likewise.
37251         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37252         * doc/posix-functions/wcscoll_l.texi: Likewise.
37253         * doc/posix-functions/wcsdup.texi: Likewise.
37254         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37255         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37256         * doc/posix-functions/wcsnlen.texi: Likewise.
37257         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37258         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37259         * doc/posix-functions/wctrans_l.texi: Likewise.
37260         * doc/posix-functions/wctype_l.texi: Likewise.
37261         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37262         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37263         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37264         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37265         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37266         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37267         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37268         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37269         * doc/glibc-functions/wcschrnul.texi: Likewise.
37270         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37271         * doc/glibc-functions/wcstod_l.texi: Likewise.
37272         * doc/glibc-functions/wcstof_l.texi: Likewise.
37273         * doc/glibc-functions/wcstol_l.texi: Likewise.
37274         * doc/glibc-functions/wcstold_l.texi: Likewise.
37275         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37276         * doc/glibc-functions/wcstoq.texi: Likewise.
37277         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37278         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37279         * doc/glibc-functions/wcstouq.texi: Likewise.
37280         * doc/glibc-functions/wmempcpy.texi: Likewise.
37281
37282 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37283             Eric Blake  <ebb9@byu.net>
37284             Paolo Bonzini  <bonzini@gnu.org>
37285             Bruno Haible  <bruno@clisp.org>
37286
37287         Make c-stack work on Haiku.
37288         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37289         (c_stack_action): Use SA_ONSTACK flag.
37290
37291 2008-12-22  Bruno Haible  <bruno@clisp.org>
37292
37293         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37294
37295 2008-12-22  Bruno Haible  <bruno@clisp.org>
37296
37297         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37298         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37299         being overridden.
37300         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37301         New macros.
37302         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37304         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37305         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37306
37307 2008-12-22  Bruno Haible  <bruno@clisp.org>
37308
37309         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37310         from test code.
37311
37312 2008-12-22  Eric Blake  <ebb9@byu.net>
37313
37314         Avoid gcc warnings on cygwin.
37315         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37316         Avoid unused variable.
37317         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37318         Likewise.
37319
37320 2008-12-22  Bruno Haible  <bruno@clisp.org>
37321
37322         Remove HAVE_MBRTOWC conditionals.
37323         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37324         (mbscasecmp): Assume mbrtowc function.
37325         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37326         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37327         * lib/mbschr.c: Include mbuiter.h unconditionally.
37328         (mbschr): Assume mbrtowc function.
37329         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37330         (mbscspn): Assume mbrtowc function.
37331         * lib/mbslen.c: Include mbuiter.h unconditionally.
37332         (mbslen): Assume mbrtowc function.
37333         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37334         (mbsncasecmp): Assume mbrtowc function.
37335         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37336         (mbsnlen): Assume mbrtowc function.
37337         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37338         (mbspbrk): Assume mbrtowc function.
37339         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37340         (mbspcasecmp): Assume mbrtowc function.
37341         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37342         (mbsrchr): Assume mbrtowc function.
37343         * lib/mbssep.c: Include mbuiter.h unconditionally.
37344         (mbssep): Assume mbrtowc function.
37345         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37346         (mbsspn): Assume mbrtowc function.
37347         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37348         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37349         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37350         (mbstok_r): Assume mbrtowc function.
37351         * lib/propername.c: Include mbuiter.h unconditionally.
37352         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37353         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37354         (trim2): Assume mbrtowc function.
37355         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37356         (mbsnwidth): Assume mbrtowc function.
37357         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37358         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37359         fallback definitions.
37360         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37361
37362 2008-12-22  Bruno Haible  <bruno@clisp.org>
37363
37364         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37365
37366 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37367
37368         * modules/regex: Request emulations for the mb*/wc* functions we need.
37369         * m4/regex.m4: Don't look for those functions here.
37370         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37371
37372 2008-12-22  Bruno Haible  <bruno@clisp.org>
37373
37374         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37375
37376 2008-12-21  Bruno Haible  <bruno@clisp.org>
37377
37378         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37379         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37380         (Include): Remove conditionalization.
37381         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37382         (Include): Remove conditionalization.
37383         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37384         (Include): Remove conditionalization.
37385         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37386         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37387         * NEWS: Mention the change.
37388         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37389         via Sergey Poznyakoff <gray@gnu.org.ua>.
37390
37391 2008-12-21  Bruno Haible  <bruno@clisp.org>
37392
37393         * MODULES.html.sh (Extended multibyte and wide character utilities
37394         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37395         wcrtomb, wcsrtombs.
37396         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37397         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37398         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37399         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37400
37401 2008-12-21  Bruno Haible  <bruno@clisp.org>
37402
37403         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37404
37405 2008-12-21  Bruno Haible  <bruno@clisp.org>
37406
37407         * modules/wcsnrtombs-tests: New file.
37408         * tests/test-wcsnrtombs1.sh: New file.
37409         * tests/test-wcsnrtombs2.sh: New file.
37410         * tests/test-wcsnrtombs3.sh: New file.
37411         * tests/test-wcsnrtombs4.sh: New file.
37412         * tests/test-wcsnrtombs.c: New file.
37413
37414         New module 'wcsnrtombs'.
37415         * lib/wchar.in.h (wcsnrtombs): New declaration.
37416         * lib/wcsnrtombs.c: New file.
37417         * lib/wcsrtombs-state.c: New file.
37418         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37419         (internal_state): Remove variable.
37420         * m4/wcsnrtombs.m4: New file.
37421         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37422         compilation units.
37423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37424         HAVE_WCSNRTOMBS.
37425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37426         HAVE_WCSNRTOMBS.
37427         * modules/wcsnrtombs: New file.
37428         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37429         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37430
37431 2008-12-21  Bruno Haible  <bruno@clisp.org>
37432
37433         * modules/wcsrtombs-tests: New file.
37434         * tests/test-wcsrtombs1.sh: New file.
37435         * tests/test-wcsrtombs2.sh: New file.
37436         * tests/test-wcsrtombs3.sh: New file.
37437         * tests/test-wcsrtombs4.sh: New file.
37438         * tests/test-wcsrtombs.c: New file.
37439
37440         New module 'wcsrtombs'.
37441         * lib/wchar.in.h (wcsrtombs): New declaration.
37442         * lib/wcsrtombs.c: New file.
37443         * m4/wcsrtombs.m4: New file.
37444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37445         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37447         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37448         * modules/wcsrtombs: New file.
37449         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37450         bugs.
37451
37452 2008-12-21  Bruno Haible  <bruno@clisp.org>
37453
37454         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37455         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37456         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37457         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37458         if not correct.
37459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37460         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37461         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37462         m4/locale-zh.m4, m4/codeset.m4.
37463         * doc/posix-functions/wcrtomb.texi: Document the bug.
37464
37465 2008-12-21  Bruno Haible  <bruno@clisp.org>
37466
37467         Work around a btowc() bug on IRIX 6.5.
37468         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37469         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37470         REPLACE_WTOBC if not.
37471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37472         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37473         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37474
37475 2008-12-21  Bruno Haible  <bruno@clisp.org>
37476
37477         * modules/wcrtomb-tests: New file.
37478         * tests/test-wcrtomb.sh: New file.
37479         * tests/test-wcrtomb.c: New file.
37480
37481         New module 'wcrtomb'.
37482         * lib/wchar.in.h (wcrtomb): New declaration.
37483         * lib/wcrtomb.c: New file.
37484         * m4/wcrtomb.m4: New file.
37485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37486         HAVE_WCRTOMB.
37487         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37488         HAVE_WCRTOMB.
37489         * modules/wcrtomb: New file.
37490         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37491
37492 2008-12-21  Bruno Haible  <bruno@clisp.org>
37493
37494         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37495         * modules/mbsrtowcs (Files): Likewise.
37496         * modules/wctob (Files): Likewise.
37497         * modules/c-strcase-tests (Files): Likewise.
37498         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37499         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37500         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37501         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37502         * modules/vasnprintf-posix-tests (Files): Likewise.
37503
37504 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37505
37506         gitlog-to-changelog: pass all command-line arguments to git-log
37507         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37508         it is sometimes convenient to filter the commits in various ways.
37509         gitlog-to-changelog only allows --since to specify a start date,
37510         but git-log itself supports many other filtering mechanisms.
37511         At the moment, I want to filter by branch name.  Rather than
37512         adding a --branch option to gitlog-to-changelog, it seems more
37513         flexible to simply pass all options directly to git-log and let
37514         git do the work.  Notice that this effectively makes --since a
37515         redundant option for gitlog-to-changelog, but removing it would
37516         require current usage to change since calls would then require
37517         an additional '--'.
37518
37519 2008-12-21  Bruno Haible  <bruno@clisp.org>
37520
37521         * modules/mbsnrtowcs-tests: New file.
37522         * tests/test-mbsnrtowcs1.sh: New file.
37523         * tests/test-mbsnrtowcs2.sh: New file.
37524         * tests/test-mbsnrtowcs3.sh: New file.
37525         * tests/test-mbsnrtowcs4.sh: New file.
37526         * tests/test-mbsnrtowcs.c: New file.
37527
37528         New module 'mbsnrtowcs'.
37529         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37530         * lib/mbsnrtowcs.c: New file.
37531         * lib/mbsrtowcs-state.c: New file.
37532         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37533         (internal_state): Remove variable.
37534         * m4/mbsnrtowcs.m4: New file.
37535         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37536         compilation units.
37537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37538         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37539         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37540         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37541         * modules/mbsnrtowcs: New file.
37542         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37543         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37544         portability problem.
37545
37546 2008-12-21  Bruno Haible  <bruno@clisp.org>
37547
37548         Work around mbsrtowcs bug.
37549         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37550         (gl_FUNC_MBSRTOWCS): Invoke it.
37551         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37552         m4/locale-zh.m4.
37553         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37554
37555 2008-12-21  Bruno Haible  <bruno@clisp.org>
37556
37557         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37558
37559 2008-12-21  Bruno Haible  <bruno@clisp.org>
37560
37561         Update doc for AIX.
37562         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37563         16-bit wchar_t type.
37564         * doc/posix-functions/btowc.texi: Likewise.
37565         * doc/posix-functions/fgetwc.texi: Likewise.
37566         * doc/posix-functions/fgetws.texi: Likewise.
37567         * doc/posix-functions/fputwc.texi: Likewise.
37568         * doc/posix-functions/fputws.texi: Likewise.
37569         * doc/posix-functions/fwide.texi: Likewise.
37570         * doc/posix-functions/fwprintf.texi: Likewise.
37571         * doc/posix-functions/fwscanf.texi: Likewise.
37572         * doc/posix-functions/getwchar.texi: Likewise.
37573         * doc/posix-functions/getwc.texi: Likewise.
37574         * doc/posix-functions/iswalnum.texi: Likewise.
37575         * doc/posix-functions/iswalpha.texi: Likewise.
37576         * doc/posix-functions/iswblank.texi: Likewise.
37577         * doc/posix-functions/iswcntrl.texi: Likewise.
37578         * doc/posix-functions/iswctype.texi: Likewise.
37579         * doc/posix-functions/iswdigit.texi: Likewise.
37580         * doc/posix-functions/iswgraph.texi: Likewise.
37581         * doc/posix-functions/iswlower.texi: Likewise.
37582         * doc/posix-functions/iswprint.texi: Likewise.
37583         * doc/posix-functions/iswpunct.texi: Likewise.
37584         * doc/posix-functions/iswspace.texi: Likewise.
37585         * doc/posix-functions/iswupper.texi: Likewise.
37586         * doc/posix-functions/iswxdigit.texi: Likewise.
37587         * doc/posix-functions/mbrtowc.texi: Likewise.
37588         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37589         * doc/posix-functions/mbstowcs.texi: Likewise.
37590         * doc/posix-functions/mbtowc.texi: Likewise.
37591         * doc/posix-functions/putwchar.texi: Likewise.
37592         * doc/posix-functions/putwc.texi: Likewise.
37593         * doc/posix-functions/swprintf.texi: Likewise.
37594         * doc/posix-functions/tolower.texi: Likewise.
37595         * doc/posix-functions/toupper.texi: Likewise.
37596         * doc/posix-functions/towctrans.texi: Likewise.
37597         * doc/posix-functions/ungetwc.texi: Likewise.
37598         * doc/posix-functions/vswprintf.texi: Likewise.
37599         * doc/posix-functions/wcrtomb.texi: Likewise.
37600         * doc/posix-functions/wcscat.texi: Likewise.
37601         * doc/posix-functions/wcschr.texi: Likewise.
37602         * doc/posix-functions/wcscmp.texi: Likewise.
37603         * doc/posix-functions/wcscoll.texi: Likewise.
37604         * doc/posix-functions/wcscpy.texi: Likewise.
37605         * doc/posix-functions/wcscspn.texi: Likewise.
37606         * doc/posix-functions/wcsftime.texi: Likewise.
37607         * doc/posix-functions/wcslen.texi: Likewise.
37608         * doc/posix-functions/wcsncat.texi: Likewise.
37609         * doc/posix-functions/wcsncmp.texi: Likewise.
37610         * doc/posix-functions/wcsncpy.texi: Likewise.
37611         * doc/posix-functions/wcspbrk.texi: Likewise.
37612         * doc/posix-functions/wcsrchr.texi: Likewise.
37613         * doc/posix-functions/wcsrtombs.texi: Likewise.
37614         * doc/posix-functions/wcsspn.texi: Likewise.
37615         * doc/posix-functions/wcsstr.texi: Likewise.
37616         * doc/posix-functions/wcstod.texi: Likewise.
37617         * doc/posix-functions/wcstof.texi: Likewise.
37618         * doc/posix-functions/wcstoimax.texi: Likewise.
37619         * doc/posix-functions/wcstok.texi: Likewise.
37620         * doc/posix-functions/wcstold.texi: Likewise.
37621         * doc/posix-functions/wcstoll.texi: Likewise.
37622         * doc/posix-functions/wcstol.texi: Likewise.
37623         * doc/posix-functions/wcstombs.texi: Likewise.
37624         * doc/posix-functions/wcstoull.texi: Likewise.
37625         * doc/posix-functions/wcstoul.texi: Likewise.
37626         * doc/posix-functions/wcstoumax.texi: Likewise.
37627         * doc/posix-functions/wcswidth.texi: Likewise.
37628         * doc/posix-functions/wcsxfrm.texi: Likewise.
37629         * doc/posix-functions/wctob.texi: Likewise.
37630         * doc/posix-functions/wctomb.texi: Likewise.
37631         * doc/posix-functions/wctrans.texi: Likewise.
37632         * doc/posix-functions/wctype.texi: Likewise.
37633         * doc/posix-functions/wcwidth.texi: Likewise.
37634         * doc/posix-functions/wmemchr.texi: Likewise.
37635         * doc/posix-functions/wmemcmp.texi: Likewise.
37636         * doc/posix-functions/wmemcpy.texi: Likewise.
37637         * doc/posix-functions/wmemmove.texi: Likewise.
37638         * doc/posix-functions/wmemset.texi: Likewise.
37639         * doc/posix-functions/wprintf.texi: Likewise.
37640         * doc/posix-functions/wscanf.texi: Likewise.
37641
37642 2008-12-21  Bruno Haible  <bruno@clisp.org>
37643
37644         Update doc for HP-UX 11.11.
37645         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37646         in HP-UX version 11.00, not in all versions of HP-UX 11.
37647         * doc/posix-functions/fwide.texi: Likewise.
37648         * doc/posix-functions/fwprintf.texi: Likewise.
37649         * doc/posix-functions/fwscanf.texi: Likewise.
37650         * doc/posix-functions/inet_ntop.texi: Likewise.
37651         * doc/posix-functions/inet_pton.texi: Likewise.
37652         * doc/posix-functions/mbrlen.texi: Likewise.
37653         * doc/posix-functions/mbrtowc.texi: Likewise.
37654         * doc/posix-functions/mbsinit.texi: Likewise.
37655         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37656         * doc/posix-functions/swprintf.texi: Likewise.
37657         * doc/posix-functions/swscanf.texi: Likewise.
37658         * doc/posix-functions/towctrans.texi: Likewise.
37659         * doc/posix-functions/vfwprintf.texi: Likewise.
37660         * doc/posix-functions/vswprintf.texi: Likewise.
37661         * doc/posix-functions/vwprintf.texi: Likewise.
37662         * doc/posix-functions/wcrtomb.texi: Likewise.
37663         * doc/posix-functions/wcsrtombs.texi: Likewise.
37664         * doc/posix-functions/wcsstr.texi: Likewise.
37665         * doc/posix-functions/wctob.texi: Likewise.
37666         * doc/posix-functions/wctrans.texi: Likewise.
37667         * doc/posix-functions/wmemchr.texi: Likewise.
37668         * doc/posix-functions/wmemcmp.texi: Likewise.
37669         * doc/posix-functions/wmemcpy.texi: Likewise.
37670         * doc/posix-functions/wmemmove.texi: Likewise.
37671         * doc/posix-functions/wmemset.texi: Likewise.
37672         * doc/posix-functions/wprintf.texi: Likewise.
37673         * doc/posix-functions/wscanf.texi: Likewise.
37674
37675 2008-12-21  Bruno Haible  <bruno@clisp.org>
37676
37677         Work around a portability problem.
37678         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37679         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37680
37681 2008-12-20  Bruno Haible  <bruno@clisp.org>
37682
37683         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37684         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37685         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37687         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37688
37689         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37690         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37691         set.
37692         (GNULIB_defined_mbstate_t): New macro.
37693         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37694         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37695         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37696         reuses the system's mbrtowc function but works around the bugs.
37697         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37698         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37699         macros.
37700         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37701         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37702         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37703         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37704         REPLACE_MBSINIT if mbsinit needs to be overridden.
37705         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37706         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37707         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37708         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37709         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37710         m4/locale-zh.m4.
37711         (Depends): Add mbsinit.
37712         * modules/mbsinit (Depends): Add mbrtowc.
37713         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37714
37715 2008-12-20  Bruno Haible  <bruno@clisp.org>
37716
37717         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37718         so that there are no conversion errors on AIX.
37719         * tests/test-mbsrtowcs.c (main): LIkewise.
37720
37721 2008-12-20  Bruno Haible  <bruno@clisp.org>
37722
37723         Work around wctob bug on Solaris <= 9.
37724         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37725         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37727         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37728         * modules/wctob (Files): Add m4/locale-fr.m4.
37729         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37730
37731 2008-12-20  Bruno Haible  <bruno@clisp.org>
37732
37733         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37734         /dev/null.
37735         * tests/test-select-in.sh: Likewise.
37736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37737
37738 2008-12-20  Bruno Haible  <bruno@clisp.org>
37739
37740         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37741         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37742         Cygwin 1.5.x.
37743
37744 2008-12-20  Bruno Haible  <bruno@clisp.org>
37745
37746         Ensure mbstate_t is defined on HP-UX 11.11.
37747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37748         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37749         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37750         AC_USE_SYSTEM_EXTENSIONS.
37751         * modules/fnmatch (Depends-on): Add extensions.
37752         * modules/mbrlen (Depends-on): Likewise.
37753         * modules/mbrtowc (Depends-on): Likewise.
37754         * modules/mbsinit (Depends-on): Likewise.
37755         * modules/mbsrtowcs (Depends-on): Likewise.
37756         * modules/mbswidth (Depends-on): Likewise.
37757         * modules/quotearg (Depends-on): Likewise.
37758         * modules/strftime (Depends-on): Likewise.
37759
37760 2008-12-20  Bruno Haible  <bruno@clisp.org>
37761
37762         Ensure wctob is declared on IRIX 6.5.
37763         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37764         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37765         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37767         of HAVE_WCTOB.
37768         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37769         HAVE_WCTOB.
37770         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37771
37772 2008-12-19  Bruno Haible  <bruno@clisp.org>
37773
37774         * modules/mbsrtowcs-tests: New file.
37775         * tests/test-mbsrtowcs1.sh: New file.
37776         * tests/test-mbsrtowcs2.sh: New file.
37777         * tests/test-mbsrtowcs3.sh: New file.
37778         * tests/test-mbsrtowcs4.sh: New file.
37779         * tests/test-mbsrtowcs.c: New file.
37780
37781         New module 'mbsrtowcs'.
37782         * lib/wchar.in.h (mbsrtowcs): New declaration.
37783         * lib/mbsrtowcs.c: New file.
37784         * m4/mbsrtowcs.m4: New file.
37785         * modules/mbsrtowcs: New file.
37786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37787         HAVE_MBSRTOWCS.
37788         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37789         HAVE_MBSRTOWCS.
37790         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37791
37792 2008-12-19  Bruno Haible  <bruno@clisp.org>
37793
37794         New module 'mbrlen'.
37795         * lib/wchar.in.h (mbrlen): New declaration.
37796         * lib/mbrlen.c: New file.
37797         * m4/mbrlen.m4: New file.
37798         * modules/mbrlen: New file.
37799         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37800         HAVE_MBRLEN.
37801         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37802         HAVE_MBRLEN.
37803         * doc/posix-functions/mbrlen.texi: Document the new module.
37804
37805 2008-12-19  Bruno Haible  <bruno@clisp.org>
37806
37807         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37808         * modules/mbrtowc (Depends-on): Add verify.
37809         Suggested by Paul Eggert.
37810
37811 2008-12-18  Bruno Haible  <bruno@clisp.org>
37812
37813         * modules/mbsinit-tests: New file.
37814         * tests/test-mbsinit.sh: New file.
37815         * tests/test-mbsinit.c: New file.
37816
37817 2008-12-18  Bruno Haible  <bruno@clisp.org>
37818
37819         * modules/mbrtowc-tests: New file.
37820         * tests/test-mbrtowc1.sh: New file.
37821         * tests/test-mbrtowc2.sh: New file.
37822         * tests/test-mbrtowc3.sh: New file.
37823         * tests/test-mbrtowc4.sh: New file.
37824         * tests/test-mbrtowc.c: New file.
37825
37826         New module 'mbrtowc'.
37827         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37828         mbsinit and mbrtowc.
37829         (mbrtowc): New declaration.
37830         * lib/mbrtowc.c: New file.
37831         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37832         * modules/mbrtowc: New file.
37833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37834         HAVE_MBRTOWC.
37835         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37836         HAVE_MBRTOWC.
37837         * doc/posix-functions/mbrtowc.texi: Document the new module.
37838
37839 2008-12-18  Bruno Haible  <bruno@clisp.org>
37840
37841         New module 'wctob'.
37842         * lib/wchar.in.h (wctob): New declaration.
37843         * lib/wctob.c: New file.
37844         * m4/wctob.m4: New file.
37845         * modules/wctob: New file.
37846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37847         HAVE_WCTOB.
37848         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37849         * doc/posix-functions/wctob.texi: Document the new module.
37850
37851 2008-12-18  Bruno Haible  <bruno@clisp.org>
37852
37853         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37854         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37855
37856 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37857
37858         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37859         G. Christensen" <tgc@jupiterrise.com>.
37860
37861         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37862         G. Christensen" <tgc@jupiterrise.com>.
37863
37864         * lib/flock.c: Need to include string.h.  Reported by "Tom
37865         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37866         <ebb9@byu.net>.
37867
37868 2008-12-18  Bruno Haible  <bruno@clisp.org>
37869
37870         * m4/locale-ja.m4: New file, from GNU gettext.
37871
37872 2008-12-17  Bruno Haible  <bruno@clisp.org>
37873
37874         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37875         Suggested by Eric Blake.
37876
37877 2008-12-17  Bruno Haible  <bruno@clisp.org>
37878
37879         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37880
37881 2008-12-17  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37884         * modules/mbsinit (Depends-on): Add verify.
37885         Suggested by Paul Eggert.
37886
37887 2008-12-17  Bruno Haible  <bruno@clisp.org>
37888
37889         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37890         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37891         gl_FUNC_MBRTOWC.
37892         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37893         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37894         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37895         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37896         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37897         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37898         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37899         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37900         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37901         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37902         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37903         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37904         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37905         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37906         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37907         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37908         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37909         * modules/trim (configure.ac): Likewise.
37910
37911 2008-12-17  Bruno Haible  <bruno@clisp.org>
37912
37913         * modules/btowc-tests: New file.
37914         * tests/test-btowc1.sh: New file.
37915         * tests/test-btowc2.sh: New file.
37916         * tests/test-btowc.c: New file.
37917
37918         New module 'btowc'.
37919         * lib/wchar.in.h (btowc): New declaration.
37920         * lib/btowc.c: New file.
37921         * m4/btowc.m4: New file.
37922         * modules/btowc: New file.
37923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37924         HAVE_BTOWC.
37925         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37926         * doc/posix-functions/btowc.texi: Document the new module.
37927
37928 2008-12-17  Bruno Haible  <bruno@clisp.org>
37929
37930         New module 'mbsinit'.
37931         * lib/wchar.in.h (mbsinit): New declaration.
37932         * lib/mbsinit.c: New file.
37933         * m4/mbsinit.m4: New file.
37934         * modules/mbsinit: New file.
37935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37936         HAVE_MBSINIT.
37937         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37938         HAVE_MBSINIT.
37939         * doc/posix-functions/mbsinit.texi: Document the new module.
37940
37941 2008-12-16  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/unistd.in.h: Add comment.
37944         * tests/test-environ.c: Don't include <stdlib.h>.
37945
37946 2008-12-16  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/parse-duration.h (parse_duration): Document return value
37949         convention.
37950         * lib/parse-duration.c: Include specification header first. Add
37951         comments.
37952         (_): Remove macro.
37953         (parse_year_month_day, parse_hour_minute_second): Move side effects
37954         outside of strchr call.
37955         (parse_non_iso8601): Move side effects outside of isspace call.
37956         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37957         call.
37958
37959 2008-12-16  Bruno Haible  <bruno@clisp.org>
37960
37961         * tests/test-parse-duration.sh: Produce no output when the test
37962         succeeds.
37963
37964 2008-12-16  Bruno Haible  <bruno@clisp.org>
37965
37966         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37967         expressions.
37968
37969 2008-12-15  Bruno Haible  <bruno@clisp.org>
37970
37971         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37972         * doc/glibc-functions/flistxattr.texi: Likewise.
37973         * doc/glibc-functions/fopencookie.texi: Likewise.
37974         * doc/glibc-functions/fremovexattr.texi: Likewise.
37975         * doc/glibc-functions/fsetxattr.texi: Likewise.
37976         * doc/glibc-functions/getxattr.texi: Likewise.
37977         * doc/glibc-functions/lgetxattr.texi: Likewise.
37978         * doc/glibc-functions/listxattr.texi: Likewise.
37979         * doc/glibc-functions/llistxattr.texi: Likewise.
37980         * doc/glibc-functions/lremovexattr.texi: Likewise.
37981         * doc/glibc-functions/lsetxattr.texi: Likewise.
37982         * doc/glibc-functions/removexattr.texi: Likewise.
37983         * doc/glibc-functions/setxattr.texi: Likewise.
37984         * doc/posix-functions/open_memstream.texi: Likewise.
37985
37986 2008-12-15  Eric Blake  <ebb9@byu.net>
37987
37988         Update doc for cygwin 1.7.
37989         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37990         functions.
37991         * doc/posix-functions/fchmodat.texi: Likewise.
37992         * doc/posix-functions/fchownat.texi: Likewise.
37993         * doc/posix-functions/fdopendir.texi: Likewise.
37994         * doc/posix-functions/fmemopen.texi: Likewise.
37995         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37996         * doc/posix-functions/fstatat.texi: Likewise.
37997         * doc/posix-functions/futimens.texi: Likewise.
37998         * doc/posix-functions/gai_strerror.texi: Likewise.
37999         * doc/posix-functions/getaddrinfo.texi: Likewise.
38000         * doc/posix-functions/getnameinfo.texi: Likewise.
38001         * doc/posix-functions/if_freenameindex.texi: Likewise.
38002         * doc/posix-functions/if_indextoname.texi: Likewise.
38003         * doc/posix-functions/if_nameindex.texi: Likewise.
38004         * doc/posix-functions/if_nametoindex.texi: Likewise.
38005         * doc/posix-functions/insque.texi: Likewise.
38006         * doc/posix-functions/linkat.texi: Likewise.
38007         * doc/posix-functions/llrint.texi: Likewise.
38008         * doc/posix-functions/llrintf.texi: Likewise.
38009         * doc/posix-functions/llrintl.texi: Likewise.
38010         * doc/posix-functions/lockf.texi: Likewise.
38011         * doc/posix-functions/lrintl.texi: Likewise.
38012         * doc/posix-functions/mkdirat.texi: Likewise.
38013         * doc/posix-functions/mkfifoat.texi: Likewise.
38014         * doc/posix-functions/mknodat.texi: Likewise.
38015         * doc/posix-functions/mq_close.texi: Likewise.
38016         * doc/posix-functions/mq_getattr.texi: Likewise.
38017         * doc/posix-functions/mq_notify.texi: Likewise.
38018         * doc/posix-functions/mq_open.texi: Likewise.
38019         * doc/posix-functions/mq_receive.texi: Likewise.
38020         * doc/posix-functions/mq_send.texi: Likewise.
38021         * doc/posix-functions/mq_setattr.texi: Likewise.
38022         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38023         * doc/posix-functions/mq_timedsend.texi: Likewise.
38024         * doc/posix-functions/mq_unlink.texi: Likewise.
38025         * doc/posix-functions/open_memstream.texi: Likewise.
38026         * doc/posix-functions/openat.texi: Likewise.
38027         * doc/posix-functions/posix_fadvise.texi: Likewise.
38028         * doc/posix-functions/posix_fallocate.texi: Likewise.
38029         * doc/posix-functions/posix_madvise.texi: Likewise.
38030         * doc/posix-functions/posix_memalign.texi: Likewise.
38031         * doc/posix-functions/posix_openpt.texi: Likewise.
38032         * doc/posix-functions/readlinkat.texi: Likewise.
38033         * doc/posix-functions/remque.texi: Likewise.
38034         * doc/posix-functions/renameat.texi: Likewise.
38035         * doc/posix-functions/rintl.texi: Likewise.
38036         * doc/posix-functions/sem_unlink.texi: Likewise.
38037         * doc/posix-functions/shm_open.texi: Likewise.
38038         * doc/posix-functions/shm_unlink.texi: Likewise.
38039         * doc/posix-functions/signgam.texi: Likewise.
38040         * doc/posix-functions/sigset.texi: Likewise.
38041         * doc/posix-functions/stpcpy.texi: Likewise.
38042         * doc/posix-functions/stpncpy.texi: Likewise.
38043         * doc/posix-functions/strerror.texi: Likewise.
38044         * doc/posix-functions/strtod.texi: Likewise.
38045         * doc/posix-functions/symlinkat.texi: Likewise.
38046         * doc/posix-functions/unlinkat.texi: Likewise.
38047         * doc/posix-functions/utimensat.texi: Likewise.
38048         * doc/glibc-functions/bindresvport.texi: Likewise.
38049         * doc/glibc-functions/dn_expand.texi: Likewise.
38050         * doc/glibc-functions/exp10.texi: Likewise.
38051         * doc/glibc-functions/exp10f.texi: Likewise.
38052         * doc/glibc-functions/fgetxattr.texi: Likewise.
38053         * doc/glibc-functions/flistxattr.texi: Likewise.
38054         * doc/glibc-functions/fopencookie.texi: Likewise.
38055         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38056         * doc/glibc-functions/fremovexattr.texi: Likewise.
38057         * doc/glibc-functions/fsetxattr.texi: Likewise.
38058         * doc/glibc-functions/getifaddrs.texi: Likewise.
38059         * doc/glibc-functions/getxattr.texi: Likewise.
38060         * doc/glibc-functions/lgetxattr.texi: Likewise.
38061         * doc/glibc-functions/listxattr.texi: Likewise.
38062         * doc/glibc-functions/llistxattr.texi: Likewise.
38063         * doc/glibc-functions/lremovexattr.texi: Likewise.
38064         * doc/glibc-functions/lsetxattr.texi: Likewise.
38065         * doc/glibc-functions/pow10.texi: Likewise.
38066         * doc/glibc-functions/pow10f.texi: Likewise.
38067         * doc/glibc-functions/rcmd_af.texi: Likewise.
38068         * doc/glibc-functions/removexattr.texi: Likewise.
38069         * doc/glibc-functions/res_init.texi: Likewise.
38070         * doc/glibc-functions/res_mkquery.texi: Likewise.
38071         * doc/glibc-functions/res_query.texi: Likewise.
38072         * doc/glibc-functions/res_querydomain.texi: Likewise.
38073         * doc/glibc-functions/res_send.texi: Likewise.
38074         * doc/glibc-functions/rresvport_af.texi: Likewise.
38075         * doc/glibc-functions/setxattr.texi: Likewise.
38076         * doc/glibc-functions/strcasestr.texi: Likewise.
38077
38078 2008-12-15  Bruno Haible  <bruno@clisp.org>
38079
38080         Fix compilation error on OSF/1 4.0.
38081         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38082         <sys/time.h>, simply delegate to the system header.
38083         Reported by Daniel Richard G. <oss@teragram.com>.
38084
38085 2008-12-15  Bruno Haible  <bruno@clisp.org>
38086
38087         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38088         * doc/posix-functions/fchmodat.texi: Likewise.
38089         * doc/posix-functions/fchownat.texi: Likewise.
38090         * doc/posix-functions/fdopendir.texi: Likewise.
38091         * doc/posix-functions/fstatat.texi: Likewise.
38092         * doc/posix-functions/mkdirat.texi: Likewise.
38093         * doc/posix-functions/unlinkat.texi: Likewise.
38094
38095 2008-12-14  Bruno Haible  <bruno@clisp.org>
38096
38097         Update doc for POSIX:2008.
38098         * doc/posix-functions/faccessat.texi: New file.
38099         * doc/posix-functions/fchmodat.texi: New file.
38100         * doc/posix-functions/fchownat.texi: New file.
38101         * doc/posix-functions/fdopendir.texi: New file.
38102         * doc/posix-functions/fstatat.texi: New file.
38103         * doc/posix-functions/futimens.texi: New file.
38104         * doc/posix-functions/linkat.texi: New file.
38105         * doc/posix-functions/mkdirat.texi: New file.
38106         * doc/posix-functions/mkfifoat.texi: New file.
38107         * doc/posix-functions/mknodat.texi: New file.
38108         * doc/posix-functions/open_wmemstream.texi: New file.
38109         * doc/posix-functions/openat.texi: New file.
38110         * doc/posix-functions/psiginfo.texi: New file.
38111         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38112         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38113         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38114         * doc/posix-functions/readlinkat.texi: New file.
38115         * doc/posix-functions/renameat.texi: New file.
38116         * doc/posix-functions/strerror_l.texi: New file.
38117         * doc/posix-functions/symlinkat.texi: New file.
38118         * doc/posix-functions/unlinkat.texi: New file.
38119         * doc/posix-functions/utimensat.texi: New file.
38120         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38121
38122 2008-12-14  Bruno Haible  <bruno@clisp.org>
38123
38124         Update doc for POSIX:2008.
38125         * doc/posix-functions/alphasort.texi: Renamed from
38126         doc/glibc-functions/alphasort.texi.
38127         * doc/posix-functions/dirfd.texi: Renamed from
38128         doc/glibc-functions/dirfd.texi.
38129         * doc/posix-functions/dprintf.texi: Renamed from
38130         doc/glibc-functions/dprintf.texi.
38131         * doc/posix-functions/duplocale.texi: Renamed from
38132         doc/glibc-functions/duplocale.texi.
38133         * doc/posix-functions/fexecve.texi: Renamed from
38134         doc/glibc-functions/fexecve.texi.
38135         * doc/posix-functions/fmemopen.texi: Renamed from
38136         doc/glibc-functions/fmemopen.texi.
38137         * doc/posix-functions/freelocale.texi: Renamed from
38138         doc/glibc-functions/freelocale.texi.
38139         * doc/posix-functions/getdate_err.texi: Renamed from
38140         doc/glibc-functions/getdate_err.texi.
38141         * doc/posix-functions/isalnum_l.texi: Renamed from
38142         doc/glibc-functions/isalnum_l.texi.
38143         * doc/posix-functions/isalpha_l.texi: Renamed from
38144         doc/glibc-functions/isalpha_l.texi.
38145         * doc/posix-functions/isblank_l.texi: Renamed from
38146         doc/glibc-functions/isblank_l.texi.
38147         * doc/posix-functions/iscntrl_l.texi: Renamed from
38148         doc/glibc-functions/iscntrl_l.texi.
38149         * doc/posix-functions/isdigit_l.texi: Renamed from
38150         doc/glibc-functions/isdigit_l.texi.
38151         * doc/posix-functions/isgraph_l.texi: Renamed from
38152         doc/glibc-functions/isgraph_l.texi.
38153         * doc/posix-functions/islower_l.texi: Renamed from
38154         doc/glibc-functions/islower_l.texi.
38155         * doc/posix-functions/isprint_l.texi: Renamed from
38156         doc/glibc-functions/isprint_l.texi.
38157         * doc/posix-functions/ispunct_l.texi: Renamed from
38158         doc/glibc-functions/ispunct_l.texi.
38159         * doc/posix-functions/isspace_l.texi: Renamed from
38160         doc/glibc-functions/isspace_l.texi.
38161         * doc/posix-functions/isupper_l.texi: Renamed from
38162         doc/glibc-functions/isupper_l.texi.
38163         * doc/posix-functions/iswalnum_l.texi: Renamed from
38164         doc/glibc-functions/iswalnum_l.texi.
38165         * doc/posix-functions/iswalpha_l.texi: Renamed from
38166         doc/glibc-functions/iswalpha_l.texi.
38167         * doc/posix-functions/iswblank_l.texi: Renamed from
38168         doc/glibc-functions/iswblank_l.texi.
38169         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38170         doc/glibc-functions/iswcntrl_l.texi.
38171         * doc/posix-functions/iswctype_l.texi: Renamed from
38172         doc/glibc-functions/iswctype_l.texi.
38173         * doc/posix-functions/iswdigit_l.texi: Renamed from
38174         doc/glibc-functions/iswdigit_l.texi.
38175         * doc/posix-functions/iswgraph_l.texi: Renamed from
38176         doc/glibc-functions/iswgraph_l.texi.
38177         * doc/posix-functions/iswlower_l.texi: Renamed from
38178         doc/glibc-functions/iswlower_l.texi.
38179         * doc/posix-functions/iswprint_l.texi: Renamed from
38180         doc/glibc-functions/iswprint_l.texi.
38181         * doc/posix-functions/iswpunct_l.texi: Renamed from
38182         doc/glibc-functions/iswpunct_l.texi.
38183         * doc/posix-functions/iswspace_l.texi: Renamed from
38184         doc/glibc-functions/iswspace_l.texi.
38185         * doc/posix-functions/iswupper_l.texi: Renamed from
38186         doc/glibc-functions/iswupper_l.texi.
38187         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38188         doc/glibc-functions/iswxdigit_l.texi.
38189         * doc/posix-functions/isxdigit_l.texi: Renamed from
38190         doc/glibc-functions/isxdigit_l.texi.
38191         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38192         doc/glibc-functions/mbsnrtowcs.texi.
38193         * doc/posix-functions/mkdtemp.texi: Renamed from
38194         doc/glibc-functions/mkdtemp.texi.
38195         * doc/posix-functions/newlocale.texi: Renamed from
38196         doc/glibc-functions/newlocale.texi.
38197         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38198         doc/glibc-functions/nl_langinfo_l.texi.
38199         * doc/posix-functions/open_memstream.texi: Renamed from
38200         doc/glibc-functions/open_memstream.texi.
38201         * doc/posix-functions/opterr.texi: Renamed from
38202         doc/glibc-functions/opterr.texi.
38203         * doc/posix-functions/optind.texi: Renamed from
38204         doc/glibc-functions/optind.texi.
38205         * doc/posix-functions/optopt.texi: Renamed from
38206         doc/glibc-functions/optopt.texi.
38207         * doc/posix-functions/psignal.texi: Renamed from
38208         doc/glibc-functions/psignal.texi.
38209         * doc/posix-functions/scandir.texi: Renamed from
38210         doc/glibc-functions/scandir.texi.
38211         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38212         doc/glibc-functions/sched_get_priority_min.texi.
38213         * doc/posix-functions/signgam.texi: Renamed from
38214         doc/glibc-functions/signgam.texi.
38215         * doc/posix-functions/stpcpy.texi: Renamed from
38216         doc/glibc-functions/stpcpy.texi.
38217         * doc/posix-functions/stpncpy.texi: Renamed from
38218         doc/glibc-functions/stpncpy.texi.
38219         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38220         doc/glibc-functions/strcasecmp_l.texi.
38221         * doc/posix-functions/strcoll_l.texi: Renamed from
38222         doc/glibc-functions/strcoll_l.texi.
38223         * doc/posix-functions/strfmon_l.texi: Renamed from
38224         doc/glibc-functions/strfmon_l.texi.
38225         * doc/posix-functions/strftime_l.texi: Renamed from
38226         doc/glibc-functions/strftime_l.texi.
38227         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38228         doc/glibc-functions/strncasecmp_l.texi.
38229         * doc/posix-functions/strndup.texi: Renamed from
38230         doc/glibc-functions/strndup.texi.
38231         * doc/posix-functions/strnlen.texi: Renamed from
38232         doc/glibc-functions/strnlen.texi.
38233         * doc/posix-functions/strsignal.texi: Renamed from
38234         doc/glibc-functions/strsignal.texi.
38235         * doc/posix-functions/strxfrm_l.texi: Renamed from
38236         doc/glibc-functions/strxfrm_l.texi.
38237         * doc/posix-functions/timer_gettime.texi: Renamed from
38238         doc/glibc-functions/timer_gettime.texi.
38239         * doc/posix-functions/tolower_l.texi: Renamed from
38240         doc/glibc-functions/tolower_l.texi.
38241         * doc/posix-functions/toupper_l.texi: Renamed from
38242         doc/glibc-functions/toupper_l.texi.
38243         * doc/posix-functions/towctrans_l.texi: Renamed from
38244         doc/glibc-functions/towctrans_l.texi.
38245         * doc/posix-functions/towlower_l.texi: Renamed from
38246         doc/glibc-functions/towlower_l.texi.
38247         * doc/posix-functions/towupper_l.texi: Renamed from
38248         doc/glibc-functions/towupper_l.texi.
38249         * doc/posix-functions/uselocale.texi: Renamed from
38250         doc/glibc-functions/uselocale.texi.
38251         * doc/posix-functions/vdprintf.texi: Renamed from
38252         doc/glibc-functions/vdprintf.texi.
38253         * doc/posix-functions/wcpcpy.texi:
38254         Renamed from doc/glibc-functions/wcpcpy.texi.
38255         * doc/posix-functions/wcpncpy.texi: Renamed from
38256         doc/glibc-functions/wcpncpy.texi.
38257         * doc/posix-functions/wcscasecmp.texi: Renamed from
38258         doc/glibc-functions/wcscasecmp.texi.
38259         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38260         doc/glibc-functions/wcscasecmp_l.texi.
38261         * doc/posix-functions/wcscoll_l.texi: Renamed from
38262         doc/glibc-functions/wcscoll_l.texi.
38263         * doc/posix-functions/wcsdup.texi: Renamed from
38264         doc/glibc-functions/wcsdup.texi.
38265         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38266         doc/glibc-functions/wcsncasecmp.texi.
38267         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38268         doc/glibc-functions/wcsncasecmp_l.texi.
38269         * doc/posix-functions/wcsnlen.texi: Renamed from
38270         doc/glibc-functions/wcsnlen.texi.
38271         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38272         doc/glibc-functions/wcsnrtombs.texi.
38273         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38274         doc/glibc-functions/wcsxfrm_l.texi.
38275         * doc/posix-functions/wctrans_l.texi: Renamed from
38276         doc/glibc-functions/wctrans_l.texi.
38277         * doc/posix-functions/wctype_l.texi: Renamed from
38278         doc/glibc-functions/wctype_l.texi.
38279         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38280         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38281         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38282         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38283         these subsections.
38284         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38285         Remove sections.
38286
38287 2008-12-14  Bruno Haible  <bruno@clisp.org>
38288
38289         Update doc for POSIX:2008.
38290         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38291
38292 2008-12-14  Bruno Haible  <bruno@clisp.org>
38293
38294         Update doc for POSIX:2008.
38295         * doc/pastposix-functions/bcmp.texi: Renamed from
38296         doc/posix-functions/bcmp.texi.
38297         * doc/pastposix-functions/bcopy.texi: Renamed from
38298         doc/posix-functions/bcopy.texi.
38299         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38300         doc/posix-functions/bsd_signal.texi.
38301         * doc/pastposix-functions/bzero.texi: Renamed from
38302         doc/posix-functions/bzero.texi.
38303         * doc/pastposix-functions/ecvt.texi: Renamed from
38304         doc/posix-functions/ecvt.texi.
38305         * doc/pastposix-functions/fcvt.texi: Renamed from
38306         doc/posix-functions/fcvt.texi.
38307         * doc/pastposix-functions/ftime.texi: Renamed from
38308         doc/posix-functions/ftime.texi.
38309         * doc/pastposix-functions/gcvt.texi: Renamed from
38310         doc/posix-functions/gcvt.texi.
38311         * doc/pastposix-functions/getcontext.texi: Renamed from
38312         doc/posix-functions/getcontext.texi.
38313         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38314         doc/posix-functions/gethostbyaddr.texi.
38315         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38316         doc/posix-functions/gethostbyname.texi.
38317         * doc/pastposix-functions/getwd.texi: Renamed from
38318         doc/posix-functions/getwd.texi.
38319         * doc/pastposix-functions/h_errno.texi: Renamed from
38320         doc/posix-functions/h_errno.texi.
38321         * doc/pastposix-functions/index.texi: Renamed from
38322         doc/posix-functions/index.texi.
38323         * doc/pastposix-functions/makecontext.texi: Renamed from
38324         doc/posix-functions/makecontext.texi.
38325         * doc/pastposix-functions/mktemp.texi: Renamed from
38326         doc/posix-functions/mktemp.texi.
38327         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38328         doc/posix-functions/pthread_attr_getstackaddr.texi.
38329         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38330         doc/posix-functions/pthread_attr_setstackaddr.texi.
38331         * doc/pastposix-functions/rindex.texi: Renamed from
38332         doc/posix-functions/rindex.texi.
38333         * doc/pastposix-functions/scalb.texi: Renamed from
38334         doc/posix-functions/scalb.texi.
38335         * doc/pastposix-functions/setcontext.texi: Renamed from
38336         doc/posix-functions/setcontext.texi.
38337         * doc/pastposix-functions/swapcontext.texi: Renamed from
38338         doc/posix-functions/swapcontext.texi.
38339         * doc/pastposix-functions/ualarm.texi: Renamed from
38340         doc/posix-functions/ualarm.texi.
38341         * doc/pastposix-functions/usleep.texi: Renamed from
38342         doc/posix-functions/usleep.texi.
38343         * doc/pastposix-functions/vfork.texi: Renamed from
38344         doc/posix-functions/vfork.texi.
38345         * doc/pastposix-functions/wcswcs.texi: Renamed from
38346         doc/posix-functions/wcswcs.texi.
38347         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38348         (Function Substitutes): Update.
38349
38350 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38351
38352         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38353         m4/strerror.m4.
38354
38355 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38356             Bruno Haible  <bruno@clisp.org>
38357
38358         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38359
38360 2008-12-13  Bruno Haible  <bruno@clisp.org>
38361
38362         * modules/strtoull (Depends-on): Remove unistd.
38363
38364 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38365
38366         * modules/strtoull (Depends-on): Add stdlib.
38367
38368 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38369
38370         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38371
38372 2008-12-10  Jim Meyering  <meyering@redhat.com>
38373
38374         gl_ASSERT: don't say assertions are disabled when they're not
38375         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38376         "checking whether to enable assertions... no", when they are in
38377         fact enabled.  This is solely a bug in the output of configure.
38378         In spite of saying "no", NDEBUG was not defined in that case.
38379         Also, as noted by Eric Blake, leave assertions enabled upon
38380         --enable-assert=INVALID.
38381
38382 2008-12-10  Bruno Haible  <bruno@clisp.org>
38383
38384         Change MODULES.html to refer to POSIX:2008 where possible.
38385         * MODULES.html.sh (POSIX2008_URL): New variable.
38386         (posix_headers): Remove sys/timeb, ucontext.
38387         (posix2001_headers): New variable.
38388         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38389         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38390         index, makecontext, mktemp, pthread_attr_getstackaddr,
38391         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38392         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38393         (posix2001_functions): New variable.
38394         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38395         otherwise.
38396
38397 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38398
38399         add missing include to parse-duration.c
38400         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38401         * modules/parse-duration (Depends-on): Add xalloc.
38402
38403         fix sed script reading maint.mk
38404         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38405         (syntax-check-rules): Use it.
38406
38407 2008-12-09  Bruno Haible  <bruno@clisp.org>
38408
38409         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38410         MacOS X 10.4/PowerPC.
38411         Reported by Simon Josefsson.
38412
38413 2008-12-08  Jim Meyering  <meyering@redhat.com>
38414
38415         work around mingw's lack of some S_IF definitions
38416         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38417         Reported by Simon Josefsson.
38418
38419 2008-12-08  Bruno Haible  <bruno@clisp.org>
38420
38421         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38422         applied to variables. Needed on MacOS X 10.4/PowerPC.
38423         Reported by Simon Josefsson.
38424
38425 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38426         and Eric Blake  <ebb9@byu.net>
38427
38428         assert: honor --enable-assert
38429         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38430         order to honor --enable-assert, rather than treating it as a
38431         synonym for --disable-assert.
38432
38433 2008-12-08  Jim Meyering  <meyering@redhat.com>
38434
38435         * lib/posixtm.c: Remove now-useless declaration of mktime.
38436
38437         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38438
38439 2008-12-07  Bruno Haible  <bruno@clisp.org>
38440
38441         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38442         test_once): Mark functions as static.
38443         * tests/test-tls.c (test_tls): Likewise.
38444
38445 2008-12-07  Bruno Haible  <bruno@clisp.org>
38446
38447         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38448         iconv_register_autodetect.
38449
38450 2008-12-07  Jim Meyering  <meyering@redhat.com>
38451
38452         posixtm.c: avoid a warning
38453         * lib/posixtm.c (posixtime): Don't initialize tm0.
38454         It's no longer needed to placate gcc4's -Wuninitialized,
38455         and the attempt to placate would elicit a new warning.
38456
38457         unicodeio.c: mark unused parameters
38458         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38459         (fallback_failure_callback): Likewise.
38460
38461 2008-12-07  Bruno Haible  <bruno@clisp.org>
38462
38463         * gnulib-tool (func_create_testdir): When building the tests
38464         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38465         Reported by Simon Josefsson.
38466
38467 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38468
38469         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38470
38471 2008-12-06  Bruno Haible  <bruno@clisp.org>
38472
38473         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38474         Suggested by Eric Blake.
38475
38476 2008-12-06  Bruno Haible  <bruno@clisp.org>
38477
38478         Fix a c-stack test failure on MacOS X.
38479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38480         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38481         handler for SIGBUS as well.
38482         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38483         install a signal handler for SIGBUS as well.
38484         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38485
38486 2008-12-06  Bruno Haible  <bruno@clisp.org>
38487
38488         Advocacy documentation.
38489         * doc/gnulib-intro.texi (Benefits): New section.
38490         * doc/gnulib.texi: Update.
38491
38492 2008-12-06  Bruno Haible  <bruno@clisp.org>
38493
38494         Document the 'manywarnings' module.
38495         * doc/manywarnings.texi: New file.
38496         * doc/gnulib.texi: Include it.
38497
38498 2008-12-05  Eric Blake  <ebb9@byu.net>
38499
38500         tests: silence some gcc warnings
38501         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38502         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38503         type mismatches.
38504
38505 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38506             Bruno Haible  <bruno@clisp.org>
38507
38508         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38509
38510 2008-11-29  Jim Meyering  <meyering@redhat.com>
38511
38512         unicodeio.c: mark unused parameters
38513         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38514         (fallback_failure_callback): Likewise.
38515
38516         fts: fix a thinko
38517         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38518         (set_stat_type): Return S_IF*-valued "type" directly.
38519         Prompted by James Youngman's spotting a related bug.
38520         Confirmed by further testing through find.
38521
38522         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38523         * lib/fts.c (D_TYPE): Define.
38524         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38525         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38526         (s_ifmt_shift_bits): New function.
38527         (set_stat_type): New function.
38528         (fts_build): When not calling fts_stat, call set_stat_type
38529         to propagate dirent.d_type info to fts_read caller.
38530         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38531         fts_statp->st_mode type information may be valid.
38532
38533 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38534
38535         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38536         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38537         <sds@gnu.org>.
38538
38539 2008-11-20  Bruno Haible  <bruno@clisp.org>
38540
38541         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38542         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38543         INCLUDE_NEXT.
38544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38545         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38546         * modules/math (Makefile.am): Substitute
38547         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38549
38550 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38551             Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/stdint.in.h: Define all type macros so that their expansion is
38554         a single typedef'ed token. Fixes a compilation failure in Boost which
38555         does "using ::int8_t;".
38556
38557 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38558
38559         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38560         gl_MANYWARN_ALL_GCC.
38561         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38562         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38563         * modules/manywarnings: New file.
38564         * MODULES.html.sh: Mention manywarnings module.
38565
38566 2008-11-18  Bruno Haible  <bruno@clisp.org>
38567
38568         * doc/gnulib-tool.texi (Unit tests): New section.
38569
38570 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38571
38572         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38573         paths like 'lib/po/foo.po'.
38574
38575 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38576
38577         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38578         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38579
38580 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38581
38582         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38583         parameter works.
38584
38585 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38586
38587         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38588
38589 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38590
38591         * modules/parse-duration-tests: New file.
38592         * tests/test-parse-duration.sh: New file.
38593         * tests/test-parse-duration.c: New file.
38594
38595         New module 'parse-duration'.
38596         * lib/parse-duration.h: New file.
38597         * lib/parse-duration.c: New file.
38598         * modules/parse-duration: New file.
38599
38600 2008-11-17  Bruno Haible  <bruno@clisp.org>
38601
38602         * tests/test-select-out.sh: Comment out the first pipe test.
38603         Reported by Simon Josefsson.
38604
38605 2008-11-17  Bruno Haible  <bruno@clisp.org>
38606
38607         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38609         gl_HOSTENT.
38610
38611 2008-11-17  Bruno Haible  <bruno@clisp.org>
38612
38613         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38614         -lnetwork and -lnet. Needed for Haiku and BeOS.
38615
38616 2008-11-16  Bruno Haible  <bruno@clisp.org>
38617
38618         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38619
38620 2008-11-16  Bruno Haible  <bruno@clisp.org>
38621
38622         Avoid test failure on Haiku.
38623         * tests/test-fsync.c: Include <errno.h>.
38624         (main): Don't require that fsync (0) fails.
38625
38626 2008-11-15  Bruno Haible  <bruno@clisp.org>
38627
38628         New module 'hostent'.
38629         * modules/hostent: New file.
38630         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38631
38632 2008-11-15  Bruno Haible  <bruno@clisp.org>
38633
38634         New module 'servent'.
38635         * modules/servent: New file.
38636         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38637
38638 2008-11-15  Bruno Haible  <bruno@clisp.org>
38639
38640         Avoid generating same test program with two different rules.
38641         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38642         test-frexp to test-frexp-nolibm.
38643         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38644         test-frexpl to test-frexpl-nolibm.
38645
38646 2008-11-15  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38649         $(FREXPL_LIBM).
38650
38651 2008-11-15  Bruno Haible  <bruno@clisp.org>
38652
38653         * lib/netdb.in.h: Activate the definitions also when the system's
38654         <netdb.h> has 'struct addrinfo'.
38655         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38656         EAI_OVERFLOW or AI_NUMERICSERV.
38657         * doc/posix-headers/netdb.texi: Document the problem.
38658
38659 2008-11-15  Bruno Haible  <bruno@clisp.org>
38660
38661         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38662
38663         Make the 'sched' module work on platforms where <sched.h> exists but
38664         is incomplete (such as Haiku).
38665         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38666         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38667         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38668         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38669         HAVE_STRUCT_SCHED_PARAM.
38670         * modules/sched (Depends-on): Add include_next.
38671         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38672         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38673         * doc/posix-headers/sched.texi: Document the issue.
38674
38675 2008-11-13  Jim Meyering  <meyering@redhat.com>
38676
38677         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38678         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38679         test would fail due to the difference in the Report bugs to ...
38680         line.  The expected address is empty, "<>", while the actual
38681         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38682
38683 2008-11-12  Bruno Haible  <bruno@clisp.org>
38684
38685         lstat: don't compile lstat.c on systems lacking lstat
38686         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38687         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38688         Reported by Daniel P. Berrange via Jim Meyering.
38689
38690 2008-11-12  Jim Meyering  <meyering@redhat.com>
38691
38692         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38693
38694 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38695
38696         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38697         instead.
38698
38699 2008-11-12  Bruno Haible  <bruno@clisp.org>
38700
38701         * lib/unicodeio.c: Include unistr.h.
38702         (utf8_wctomb): Remove function.
38703         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38704
38705 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38706
38707         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38708         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38709         <bruno@clisp.org>.
38710         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38711
38712 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38713
38714         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38715         * doc/gnulib.texi: Add section for warnings.
38716
38717 2008-11-11  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/sockets.h: Add a comment.
38720
38721 2008-11-11  Karl Berry  <karl@gnu.org>
38722
38723         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38724
38725 2008-11-11  Eric Blake  <ebb9@byu.net>
38726
38727         fdl.texi: avoid git symlinks
38728         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38729
38730 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38731
38732         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38733
38734 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38735
38736         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38737         (gl_WARN_ADD): Substitute $2 if literal.
38738
38739 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38740
38741         * m4/warning.m4: Remove.
38742
38743 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38744
38745         * m4/warnings.m4: Almost complete rewrite. :-)
38746
38747 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38748
38749         * modules/warnings: New module.
38750         * m4/warnings.m4: New file.
38751         * MODULES.html.sh: Mention warnings module.
38752         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38753         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38754
38755 2008-11-10  Eric Blake  <ebb9@byu.net>
38756
38757         fdl.texi: make a symlink to the latest version
38758         * doc/standards.texi: Revert today's earlier change.
38759         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38760         * doc/fdl.texi: ...and replace this with a symlink to the newer
38761         fdl-1.3.texi.
38762
38763 2008-11-10  Bruno Haible  <bruno@clisp.org>
38764
38765         * tests/test-select-fd.c (main): Accept the result file name as fourth
38766         argument.
38767         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38768         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38769
38770 2008-11-10  Bruno Haible  <bruno@clisp.org>
38771
38772         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38773         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38774         as autoconf-substituted macros.
38775         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38776         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38777         gl_NETDB_H_DEFAULTS. Set these variables.
38778         * modules/netdb (Makefile.am): Substitute these variables.
38779
38780 2008-11-10  Eric Blake  <ebb9@byu.net>
38781
38782         standards.texi: include correct file for FDL 1.3
38783         * doc/standards.texi (GNU Free Documentation License): Change
38784         include file to pull in FDL 1.3, not 1.2.
38785
38786         fdl.texi: revert accidental change to license
38787         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38788
38789 2008-11-10  Bruno Haible  <bruno@clisp.org>
38790
38791         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38792         cross-compiling guesses also when the native compile gives no result.
38793
38794 2008-11-10  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/spawni.c (__spawni): Force variable into the stack.
38797
38798 2008-11-10  Bruno Haible  <bruno@clisp.org>
38799
38800         Add support for Haiku.
38801         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38802         glibc and BeOS, but also on Haiku.
38803         * lib/fpurge.c (fpurge): Likewise.
38804         * lib/freadable.c (freadable): Likewise.
38805         * lib/freadahead.c (freadahead): Likewise.
38806         * lib/freading.c (freading): Likewise.
38807         * lib/freadptr.c (freadptr): Likewise.
38808         * lib/freadseek.c (freadptrinc): Likewise.
38809         * lib/fseeko.c (rpl_fseeko): Likewise.
38810         * lib/fseterr.c (fseterr): Likewise.
38811         * lib/fwritable.c (fwritable): Likewise.
38812         * lib/fwriting.c (fwriting): Likewise.
38813         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38814
38815 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38816
38817         * lib/config.charset: Treat Haiku like BeOS.
38818
38819 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38820
38821         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38822         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38823
38824 2008-11-08  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38827         AC_CACHE_CHECK.
38828
38829 2008-11-08  Bruno Haible  <bruno@clisp.org>
38830
38831         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38832
38833 2008-11-08  Bruno Haible  <bruno@clisp.org>
38834
38835         * tests/test-select-fd.c: New file.
38836         * tests/test-select-in.sh: New file.
38837         * tests/test-select-out.sh: New file.
38838         * tests/test-select-stdin.c: New file.
38839         * modules/select-tests (Files): Add the new files.
38840         (Depends-on): Add gettimeofday.
38841         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38842         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38843         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38844
38845 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38846             Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38849
38850 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38851
38852         * build-aux/pmccabe2html: Added support for C++ source files.
38853
38854 2008-11-05  Ben Pfaff  <blp@gnu.org>
38855
38856         Fix lib/close.c build on Windows.
38857         * modules/close (Files): Add lib/w32sock.h.
38858
38859 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38860
38861         Accept Bison's NEWS format.
38862         * build-aux/announce-gen (print_news_deltas): Tweak
38863         $re_prefix.
38864
38865 2008-11-04  Bruno Haible  <bruno@clisp.org>
38866
38867         * modules/random_r (Maintainer): Add glibc.
38868
38869 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38870
38871         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38872         by karl@freefriends.org (Karl Berry).
38873         * doc/alloca.texi: Likewise.
38874         * doc/c-ctype.texi: Likewise.
38875         * doc/c-strcase.texi: Likewise.
38876         * doc/c-strcaseeq.texi: Likewise.
38877         * doc/c-strcasestr.texi: Likewise.
38878         * doc/c-strstr.texi: Likewise.
38879         * doc/c-strtod.texi: Likewise.
38880         * doc/c-strtold.texi: Likewise.
38881         * doc/ctime.texi: Likewise.
38882         * doc/error.texi: Likewise.
38883         * doc/fdl.texi: Likewise.
38884         * doc/gcd.texi: Likewise.
38885         * doc/getdate.texi: Likewise.
38886         * doc/gnulib-intro.texi: Likewise.
38887         * doc/gnulib-tool.texi: Likewise.
38888         * doc/gnulib.texi: Likewise.
38889         * doc/inet_ntoa.texi: Likewise.
38890         * doc/maintain.texi: Likewise.
38891         * doc/make-stds.texi: Likewise.
38892         * doc/quote.texi: Likewise.
38893         * doc/regexprops-generic.texi: Likewise.
38894         * doc/standards.texi: Likewise.
38895         * doc/verify.texi: Likewise.
38896         * doc/visibility.texi: Likewise.
38897         * doc/gnulib.texi (GNU Free Documentation License): Include
38898         fdl-1.3.texi instead of fdl.texi.
38899
38900 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38901
38902         * doc/fdl-1.3.texi: New file, from
38903         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38904         * modules/fdl-1.3: Add.
38905         * MODULES.html.sh: Add fdl-1.3.
38906
38907 2008-11-03  Bruno Haible  <bruno@clisp.org>
38908
38909         Make determination of absolute name of header file work with AIX xlc.
38910         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38911         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38912         preprocessing.
38913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38914         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38915
38916 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38917
38918         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38919         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38920         <ludo@gnu.org>.
38921
38922 2008-11-02  Bruno Haible  <bruno@clisp.org>
38923
38924         Mark 'strpbrk' obsolete.
38925         * modules/strpbrk (Status, Notice): New sections.
38926         * modules/strtok_r (Depends-on): Add strpbrk.
38927
38928 2008-11-02  Bruno Haible  <bruno@clisp.org>
38929
38930         Mark 'strdup' obsolete.
38931         * modules/strdup (Status, Notice): New sections.
38932         * modules/findprog (Depends-on): Add strdup.
38933         * modules/getaddrinfo (Depends-on): Likewise.
38934         * modules/localename (Depends-on): Likewise.
38935         * modules/relocatable-lib (Depends-on): Likewise.
38936         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38937         * modules/relocatable-prog (Depends-on): Likewise.
38938         * modules/trim (Depends-on): Likewise.
38939         * modules/unictype/gen-ctype (Depends-on): Likewise.
38940         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38941
38942 2008-11-02  Bruno Haible  <bruno@clisp.org>
38943
38944         Mark 'strcspn' obsolete.
38945         * modules/strcspn (Status, Notice): New sections.
38946
38947 2008-11-02  Bruno Haible  <bruno@clisp.org>
38948
38949         Mark 'rmdir' obsolete.
38950         * modules/rmdir (Status, Notice): New sections.
38951         * modules/clean-temp (Depends-on): Add rmdir.
38952         * modules/openat (Depends-on): Likewise.
38953
38954 2008-11-02  Bruno Haible  <bruno@clisp.org>
38955
38956         Mark 'raise' obsolete.
38957         * modules/raise (Status, Notice): New sections.
38958         (Include): Specify <signal.h>.
38959         * modules/stdio (Depends-on): Add raise.
38960         * modules/write (Depends-on): Likewise.
38961
38962 2008-11-02  Bruno Haible  <bruno@clisp.org>
38963
38964         Mark 'memset' obsolete.
38965         * modules/memset (Status, Notice): New sections.
38966
38967 2008-11-02  Bruno Haible  <bruno@clisp.org>
38968
38969         Mark 'memmove' obsolete.
38970         * modules/memmove (Status, Notice): New sections.
38971         * modules/argp (Depends-on): Add memmove.
38972         * modules/argz (Depends-on): Likewise.
38973         * modules/canonicalize (Depends-on): Likewise.
38974         * modules/canonicalize-lgpl (Depends-on): Likewise.
38975         * modules/fts (Depends-on): Likewise.
38976         * modules/getcwd (Depends-on): Likewise.
38977         * modules/human (Depends-on): Likewise.
38978         * modules/regex (Depends-on): Likewise.
38979         * modules/striconveh (Depends-on): Likewise.
38980         * modules/trim (Depends-on): Likewise.
38981         * modules/unistr/u8-move (Depends-on): Likewise.
38982         * modules/unistr/u16-move (Depends-on): Likewise.
38983         * modules/unistr/u32-move (Depends-on): Likewise.
38984
38985 2008-11-02  Bruno Haible  <bruno@clisp.org>
38986
38987         Mark 'memcpy' obsolete.
38988         * modules/memcpy (Status, Notice): New sections.
38989
38990 2008-11-02  Bruno Haible  <bruno@clisp.org>
38991
38992         Mark 'memcmp' obsolete.
38993         * modules/memcmp (Status, Notice): New sections.
38994         * modules/argmatch (Depends-on): Add memchr.
38995         * modules/backupfile (Depends-on): Likewise.
38996         * modules/c-strcasestr (Depends-on): Likewise.
38997         * modules/crypto/des (Depends-on): Likewise.
38998         * modules/csharpcomp (Depends-on): Likewise.
38999         * modules/fnmatch (Depends-on): Likewise.
39000         * modules/git-merge-changelog (Depends-on): Likewise.
39001         * modules/isnand (Depends-on): Likewise.
39002         * modules/isnand-nolibm (Depends-on): Likewise.
39003         * modules/isnanf (Depends-on): Likewise.
39004         * modules/isnanf-nolibm (Depends-on): Likewise.
39005         * modules/isnanl (Depends-on): Likewise.
39006         * modules/isnanl-nolibm (Depends-on): Likewise.
39007         * modules/mbchar (Depends-on): Likewise.
39008         * modules/memcoll (Depends-on): Likewise.
39009         * modules/quotearg (Depends-on): Likewise.
39010         * modules/regex (Depends-on): Likewise.
39011         * modules/relocatable-prog (Depends-on): Likewise.
39012         * modules/same (Depends-on): Likewise.
39013         * modules/signbit (Depends-on): Likewise.
39014         * modules/strcasestr-simple (Depends-on): Likewise.
39015         * modules/unictype/gen-ctype (Depends-on): Likewise.
39016         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39017         * modules/uniname/uniname (Depends-on): Likewise.
39018         * modules/unistr/u8-cmp (Depends-on): Likewise.
39019
39020 2008-11-02  Bruno Haible  <bruno@clisp.org>
39021
39022         Mark 'memchr' obsolete.
39023         * modules/memchr (Status, Notice): New sections.
39024         * modules/argp (Depends-on): Add memchr.
39025         * modules/base64 (Depends-on): Likewise.
39026         * modules/c-strcasestr (Depends-on): Likewise.
39027         * modules/chdir-long (Depends-on): Likewise.
39028         * modules/fnmatch (Depends-on): Likewise.
39029         * modules/getsubopt (Depends-on): Likewise.
39030         * modules/git-merge-changelog (Depends-on): Likewise.
39031         * modules/glob (Depends-on): Likewise.
39032         * modules/strcasestr-simple (Depends-on): Likewise.
39033         * modules/strnlen (Depends-on): Likewise.
39034
39035 2008-11-02  Bruno Haible  <bruno@clisp.org>
39036
39037         Mark 'atexit' obsolete.
39038         * modules/atexit (Status, Notice): New sections.
39039         * modules/chdir-long (Depends-on): Add atexit.
39040         * modules/wait-process (Depends-on): Likewise.
39041
39042 2008-11-02  Bruno Haible  <bruno@clisp.org>
39043
39044         * gnulib-tool: New option --with-obsolete.
39045         (func_usage): Document it.
39046         (func_modules_transitive_closure): Drop obsolete dependencies if
39047         incobsolete is not true.
39048         (func_import): Read and save the incobsolete variable to the cache.
39049
39050 2008-11-02  Bruno Haible  <bruno@clisp.org>
39051
39052         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39053         * gnulib-tool: New option --extract-status.
39054         (func_usage): Document it.
39055         (sed_extract_prog): Recognize it.
39056         (func_get_status): New function.
39057
39058 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39059
39060         * modules/sockets (License): Change from LGPL to LGPLv2+.
39061
39062 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39063
39064         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39065
39066 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39067
39068         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39069         Mention times and sys_times.
39070         * modules/sys_times, modules/sys_times-tests: New modules.
39071         * modules/times, modules/times-tests: Likewise
39072         * m4/sys_times_h.m4: New file.
39073         * lib/sys_times.in.h: Likewise
39074         * lib/times.c: Likewise.
39075         * tests/test-sys_times.c: Likewise.
39076         * tests/test-times.c: Likewise.
39077         * doc/posix-headers/sys_times.texi: Update.
39078         * doc/posix-functions/times.texi: Update.
39079
39080 2008-10-28  Jim Meyering  <meyering@redhat.com>
39081
39082         * modules/tempname (Depends-on): Add lstat.
39083
39084         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39085
39086 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39087
39088         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39089         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39090         using idiom used elsewhere in gnulib.
39091
39092 2008-10-27  Jim Meyering  <meyering@redhat.com>
39093
39094         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39095
39096 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39097
39098         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39099         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39100         programs.
39101         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39102
39103 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39104
39105         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39106
39107 2008-10-27  Bruno Haible  <bruno@clisp.org>
39108
39109         * tests/test-lstat.c: Include <stdio.h>.
39110
39111 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39112
39113         * modules/lstat-tests: New module.
39114         * tests/test-lstat.c: New file.
39115
39116 2008-10-26  Jim Meyering  <meyering@redhat.com>
39117
39118         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39119
39120 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39121             Bruno Haible  <bruno@clisp.org>
39122
39123         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39124         * modules/configmake (Include): Add a note that the include must come
39125         after all system headers.
39126         * lib/javaversion.c: Include configmake.h after all other includes.
39127
39128 2008-10-26  Bruno Haible  <bruno@clisp.org>
39129
39130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39131         HAVE_STRUCT_RANDOM_DATA to 1.
39132         (gl_STDLIB_H): Simplify.
39133
39134 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39135
39136         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39137         substitute HAVE_STRUCT_RANDOM_DATA.
39138         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39139         random_data.
39140         * modules/stdlib (Makefile.am): Substitute
39141         HAVE_STRUCT_RANDOM_DATA.
39142
39143 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39144
39145         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39146         * doc/gnulib-intro.texi (Copyright): Likewise.
39147
39148 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39149
39150         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39151         findings.
39152
39153 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39154             Bruno Haible  <bruno@clisp.org>
39155
39156         * lib/unistd.in.h: Include <winsock2.h>.
39157         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39158         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39159         Provide dummy declarations.
39160         (gethostname): Override.
39161         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39162         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39163         gl_PREREQ_SYS_H_WINSOCK2.
39164         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39165         * doc/posix-functions/gethostname.texi: More details.
39166
39167 2008-10-25  Bruno Haible  <bruno@clisp.org>
39168
39169         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39170         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39171         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39172
39173         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39174         here ...
39175         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39176         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39177         gl_UNISTD_H_DEFAULTS.
39178
39179 2008-10-25  Eric Blake  <ebb9@byu.net>
39180
39181         signbit: avoid spurious compiler failure
39182         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39183         declarations inside function.
39184
39185 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39186             Bruno Haible  <bruno@clisp.org>
39187
39188         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39189         * modules/random_r (Depends-on): Add stdint.
39190
39191 2008-10-24  Bruno Haible  <bruno@clisp.org>
39192
39193         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39194         Eggert.
39195         * modules/strerror (License): Likewise.
39196
39197 2008-10-24  Jim Meyering  <meyering@redhat.com>
39198
39199         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39200         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39201
39202 2008-10-24  Eric Blake  <ebb9@byu.net>
39203
39204         getgroups: fix compilation when getgroups is available
39205         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39206         but with <config.h> override of getgroups disabled.
39207
39208 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39209
39210         * doc/gnulib.texi (Header files): Add note about C++ problems.
39211         Explained by Bruno Haible <bruno@clisp.org>.
39212
39213 2008-10-23  Bruno Haible  <bruno@clisp.org>
39214
39215         Define a dummy SA_NODEFER macro on Interix.
39216         * lib/signal.in.h (SA_NODEFER): Define fallback.
39217         Reported by Aleksey Cheusov <cheusov@tut.by> via
39218         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39219
39220 2008-10-23  Bruno Haible  <bruno@clisp.org>
39221
39222         * modules/freadahead (License): Change to LGPLv2+.
39223         Suggested by Simon Josefsson.
39224
39225 2008-10-23  Jim Meyering  <meyering@redhat.com>
39226
39227         random_r: new module
39228         * modules/random_r: New file.
39229         * m4/random_r.m4: New file.
39230         * lib/random_r.c: New file, from glibc.
39231         * modules/random_r-tests: New file.
39232         * tests/test-random_r.c: New file.
39233         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39234          Declare.
39235         (RAND_MAX): Define.
39236         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39237         * modules/stdlib: Substitute them, too.
39238         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39239         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39240         * doc/glibc-functions/random_r.texi: Likewise.
39241         * doc/glibc-functions/setstate_r.texi: Likewise.
39242         * doc/glibc-functions/srandom_r.texi: Likewise.
39243         * config/srclist.txt: Mention it.
39244
39245 2008-10-23  David Lutterkort  <lutter@redhat.com>
39246
39247         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39248         link requirement
39249
39250 2008-10-23  Jim Meyering  <meyering@redhat.com>
39251
39252         selinux-h: mark parameters of stub functions as intentionally unused
39253         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39254         * lib/se-context.in.h: Likewise.
39255
39256 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39257
39258         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39259
39260 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39261
39262         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39263
39264 2008-10-22  Eric Blake  <ebb9@byu.net>
39265
39266         glthread/thread: avoid compiler warning
39267         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39268         Add unreachable abort to silence compiler.
39269
39270 2008-10-22  Eric Blake  <ebb9@byu.net>
39271
39272         netdb: also supply struct addrinfo for cygwin 1.5.x
39273         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39274         older cygwin.
39275         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39276         cygwin.
39277         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39278
39279 2008-10-22  Bruno Haible  <bruno@clisp.org>
39280
39281         * users.txt: Update entry about pspp.
39282
39283 2008-10-21  Bruno Haible  <bruno@clisp.org>
39284
39285         Simplification.
39286         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39287         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39288
39289         Simplification.
39290         * lib/ioctl.c (ioctl): Don't undefine.
39291         * lib/socket.c (socket): Don't undefine.
39292
39293         Remove unused module indicator macros.
39294         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39295         GNULIB_$1 as a C macro.
39296
39297         * doc/posix-functions/close.texi: Undo last change.
39298         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39299         Windows platforms.
39300
39301 2008-10-21  Bruno Haible  <bruno@clisp.org>
39302
39303         Add gethostname() declaration to <unistd.h>.
39304         * lib/unistd.in.h (gethostname): New declaration.
39305         * lib/gethostname.c: Include <unistd.h>.
39306         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39307         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39309         and HAVE_GETHOSTNAME.
39310         * modules/gethostname (Depends-on): Add unistd.
39311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39312         (Include): Specify <unistd.h>.
39313         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39314         HAVE_GETHOSTNAME.
39315         * tests/test-gethostname.c: Include <unistd.h> first.
39316
39317 2008-10-21  Bruno Haible  <bruno@clisp.org>
39318
39319         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39320         * modules/select-tests (Depends-on): Likewise.
39321         Reported by Simon Josefsson.
39322
39323 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39324
39325         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39326         * lib/accept.c: New file, based on winsock.c.
39327         * lib/bind.c: New file, based on winsock.c.
39328         * lib/connect.c: New file, based on winsock.c.
39329         * lib/getpeername.c: New file, based on winsock.c.
39330         * lib/getsockname.c: New file, based on winsock.c.
39331         * lib/getsockopt.c: New file, based on winsock.c.
39332         * lib/ioctl.c: New file, based on winsock.c.
39333         * lib/listen.c: New file, based on winsock.c.
39334         * lib/recv.c: New file, based on winsock.c.
39335         * lib/recvfrom.c: New file, based on winsock.c.
39336         * lib/send.c: New file, based on winsock.c.
39337         * lib/sendto.c: New file, based on winsock.c.
39338         * lib/setsockopt.c: New file, based on winsock.c.
39339         * lib/shutdown.c: New file, based on winsock.c.
39340         * lib/socket.c: New file, based on winsock.c.
39341         * lib/w32sock.h: New file, based on winsock.c.
39342         * lib/winsock.c: Remove file.
39343         * modules/accept: Likewise.
39344         * modules/bind: Likewise.
39345         * modules/connect: Likewise.
39346         * modules/getpeername: Likewise.
39347         * modules/getsockname: Likewise.
39348         * modules/getsockopt: Likewise.
39349         * modules/ioctl: Likewise.
39350         * modules/listen: Likewise.
39351         * modules/recv: Likewise.
39352         * modules/recvfrom: Likewise.
39353         * modules/send: Likewise.
39354         * modules/sendto: Likewise.
39355         * modules/setsockopt: Likewise.
39356         * modules/shutdown: Likewise.
39357         * modules/socket: Use socket.c instead of winsock.c.
39358         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39359         * doc/posix-functions/accept.texi: Doc fix.
39360         * doc/posix-functions/bind.texi: Doc fix.
39361         * doc/posix-functions/close.texi: Doc fix.
39362         * doc/posix-functions/connect.texi: Doc fix.
39363         * doc/posix-functions/getpeername.texi: Doc fix.
39364         * doc/posix-functions/getsockname.texi: Doc fix.
39365         * doc/posix-functions/getsockopt.texi: Doc fix.
39366         * doc/posix-functions/ioctl.texi: Doc fix.
39367         * doc/posix-functions/listen.texi: Doc fix.
39368         * doc/posix-functions/recv.texi: Doc fix.
39369         * doc/posix-functions/recvfrom.texi: Doc fix.
39370         * doc/posix-functions/send.texi: Doc fix.
39371         * doc/posix-functions/sendto.texi: Doc fix.
39372         * doc/posix-functions/setsockopt.texi: Doc fix.
39373         * doc/posix-functions/shutdown.texi: Doc fix.
39374         * doc/posix-functions/socket.texi: Doc fix.
39375
39376 2008-10-20  Bruno Haible  <bruno@clisp.org>
39377
39378         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39379         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39380         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39381         as an alias for SIGABRT.
39382         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39383         (sigaction): Map it to SIGABRT.
39384         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39385
39386 2008-10-20  Bruno Haible  <bruno@clisp.org>
39387
39388         * lib/fts.c: Don't include lstat.h.
39389         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39390
39391         Move the lstat() declaration to <sys/stat.h>.
39392         * lib/lstat.h: Remove file.
39393         * lib/sys_stat.in.h: Add special invocation convention.
39394         (lstat): New declaration.
39395         * lib/lstat.c (orig_lstat): New function.
39396         (rpl_lstat): Use orig_lstat instead of lstat.
39397         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39398         AC_C_INLINE. Set REPLACE_LSTAT.
39399         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39400         and REPLACE_LSTAT.
39401         * modules/lstat (Files): Remove lib/lstat.h.
39402         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39403         (Include): Specify <sys/stat.h> instead of lstat.h.
39404         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39405         REPLACE_LSTAT.
39406         * NEWS: Mention the change.
39407
39408 2008-10-20  Bruno Haible  <bruno@clisp.org>
39409
39410         * modules/posix_spawn-tests: New file.
39411         * tests/test-posix_spawn3.c: New file.
39412
39413 2008-10-20  Bruno Haible  <bruno@clisp.org>
39414
39415         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39416         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39417         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39418         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39419         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39420
39421 2008-10-20  Bruno Haible  <bruno@clisp.org>
39422
39423         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39424         of posix_spawn on AIX 5.3.
39425
39426 2008-10-20  Bruno Haible  <bruno@clisp.org>
39427
39428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39429
39430 2008-10-20  Bruno Haible  <bruno@clisp.org>
39431
39432         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39433         of AC_LANG_PROGRAM.
39434
39435 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39436
39437         * lib/netdb.in.h: Don't define GNU specific constants until they
39438         are supported or needed.  Reported by Bruno Haible
39439         <bruno@clisp.org>.
39440
39441 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39442
39443         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39444
39445 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39446
39447         * lib/getaddrinfo.h: Remove file.
39448         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39449         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39450         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39451         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39452         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39453         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39454         * tests/test-getaddrinfo.c: Likewise.
39455         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39456         * NEWS: Mention change.
39457
39458 2008-10-19  Bruno Haible  <bruno@clisp.org>
39459
39460         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39461
39462 2008-10-19  Bruno Haible  <bruno@clisp.org>
39463
39464         * lib/wait-process.c: Include simply <sys/wait.h>.
39465         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39466         WIFSTOPPED): Remove fallback definitions.
39467         * modules/wait-process (Depends-on): Add sys_wait.
39468
39469         New module 'sys_wait'.
39470         * modules/sys_wait: New file.
39471         * lib/sys_wait.in.h: New file, partially copied from
39472         lib/wait-process.c.
39473         * m4/sys_wait_h.m4: New file.
39474         * doc/posix-headers/sys_wait.texi: Mention the new module.
39475
39476 2008-10-19  Bruno Haible  <bruno@clisp.org>
39477
39478         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39479
39480 2008-10-19  Bruno Haible  <bruno@clisp.org>
39481
39482         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39483         * lib/wait-process.c (WAIT_T): Remove type.
39484         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39485         (wait_subprocess): Update.
39486
39487 2008-10-19  Bruno Haible  <bruno@clisp.org>
39488
39489         New module 'atoll'.
39490         * modules/atoll: New file.
39491         * lib/stdlib.in.h (atoll): New declaration.
39492         * lib/atoll.c: New file, from glibc with modifications.
39493         * m4/atoll.m4: New file.
39494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39495         HAVE_ATOLL.
39496         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39497         * doc/posix-functions/atoll.texi: Mention the new module.
39498
39499 2008-10-19  Bruno Haible  <bruno@clisp.org>
39500
39501         Add strtoull() declaration to <stdlib.h>.
39502         * lib/stdlib.in.h (strtoull): New declaration.
39503         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39504         Set HAVE_STRTOULL.
39505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39506         HAVE_STRTOULL.
39507         * modules/strtoull (Depends-on): Add stdlib.
39508         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39509         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39510         HAVE_STRTOULL.
39511
39512 2008-10-19  Bruno Haible  <bruno@clisp.org>
39513
39514         Add strtoll() declaration to <stdlib.h>.
39515         * lib/stdlib.in.h (strtoll): New declaration.
39516         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39517         Set HAVE_STRTOLL.
39518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39519         HAVE_STRTOLL.
39520         * modules/strtoll (Depends-on): Add stdlib.
39521         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39522         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39523
39524 2008-10-19  Bruno Haible  <bruno@clisp.org>
39525
39526         * modules/bcopy (Depends-on): Add strings.
39527         (Include): Specify <strings.h>.
39528
39529 2008-10-19  Bruno Haible  <bruno@clisp.org>
39530
39531         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39532
39533 2008-10-19  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39536         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39537         mingw.
39538
39539 2008-10-19  Bruno Haible  <bruno@clisp.org>
39540
39541         * lib/atanl.c: Don't include isnanl.h.
39542         * lib/cosl.c: Likewise.
39543         * lib/ldexpl.c: Likewise.
39544         * lib/logl.c: Likewise.
39545         * lib/sinl.c: Likewise.
39546         * lib/sqrtl.c: Likewise.
39547         * lib/tanl.c: Likewise.
39548
39549         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39550         * lib/isnanf.h: Remove file.
39551         * lib/isnand.h: Remove file.
39552         * lib/isnanl.h: Remove file.
39553         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39554         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39555         macros.
39556         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39557         HAVE_ISNANF, don't define it as a C macro.
39558         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39559         HAVE_ISNAND, don't define it as a C macro.
39560         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39561         HAVE_ISNANL, don't define it as a C macro.
39562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39563         HAVE_ISNAN[FDL].
39564         * modules/isnanf (Files): Remove lib/isnanf.h.
39565         (Depends-on): Add math.
39566         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39567         (Include): Specify <math.h> instead of isnanf.h.
39568         * modules/isnand (Files): Remove lib/isnand.h.
39569         (Depends-on): Add math.
39570         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39571         (Include): Specify <math.h> instead of isnand.h.
39572         * modules/isnanl (Files): Remove lib/isnanl.h.
39573         (Depends-on): Add math.
39574         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39575         (Include): Specify <math.h> instead of isnanl.h.
39576         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39577         HAVE_ISNAN[FDL].
39578         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39579         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39580         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39581         * NEWS: Mention the change.
39582
39583 2008-10-18  Bruno Haible  <bruno@clisp.org>
39584
39585         Add getusershell(), setusershell(), endusershell() declarations to
39586         <unistd.h>.
39587         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39588         declarations.
39589         * lib/getusershell.c: Include unistd.h.
39590         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39591         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39592         HAVE_GETUSERSHELL.
39593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39594         and HAVE_GETUSERSHELL.
39595         * modules/getusershell (Depends-on): Add unistd, extensions.
39596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39597         (Include): Specify <unistd.h>.
39598         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39599         HAVE_GETUSERSHELL.
39600
39601 2008-10-18  Bruno Haible  <bruno@clisp.org>
39602
39603         Add a getloadavg() declaration to <stdlib.h>.
39604         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39605         getloadavg declaration.
39606         (getloadavg): New declaration.
39607         * lib/getloadavg.c: Include <stdlib.h> first.
39608         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39609         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39610         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39612         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39613         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39615         (Include): Specify <stdlib.h>.
39616         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39617         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39618
39619 2008-10-18  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/dirchownmod.c: Don't include lchmod.h.
39622
39623         Move the lchmod() declaration to <sys/stat.h>.
39624         * lib/lchmod.h: Remove file.
39625         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39626         (lchmod): New declaration, moved here from lib/lchown.h.
39627         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39628         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39630         and HAVE_LCHMOD.
39631         * modules/lchmod (Files): Remove lib/lchmod.h.
39632         (Depends-on): Add sys_stat, extensions.
39633         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39634         (Include): Specify <sys/stat.h> instead of lchmod.h.
39635         * modules/sys_stat (Depends-on): Add link-warning.
39636         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39637         definition of GL_LINK_WARNING.
39638         * NEWS: Mention the change.
39639
39640 2008-10-18  Bruno Haible  <bruno@clisp.org>
39641
39642         * lib/fchdir.c: Don't include dirfd.h.
39643         * lib/fts.c: Likewise.
39644         * lib/getcwd.c: Likewise.
39645         * lib/glob.c: Likewise.
39646
39647         Move the dirfd() declaration to <dirent.h>.
39648         * lib/dirfd.h: Remove file.
39649         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39650         (dirfd): New declaration.
39651         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39652         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39653         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39654         HAVE_DECL_DIRFD.
39655         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39656         HAVE_DECL_DIRFD.
39657         * modules/dirfd (Files): Remove lib/dirfd.h.
39658         (Depends-on): Add dirent, extensions.
39659         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39660         (Include): Specify <dirent.h> instead of dirfd.h.
39661         * modules/dirent (Depends-on): Add link-warning.
39662         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39663         definition of GL_LINK_WARNING.
39664         * NEWS: Mention the change.
39665
39666 2008-10-18  Bruno Haible  <bruno@clisp.org>
39667
39668         Move the euidaccess() declaration to <unistd.h>.
39669         * lib/euidaccess.h: Remove file.
39670         * lib/unistd.in.h (euidaccess): New declaration.
39671         * lib/euidaccess.c: Don't include euidaccess.h.
39672         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39673         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39675         and HAVE_EUIDACCESS.
39676         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39677         (Depends-on): Add unistd.
39678         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39679         (Include): Specify <unistd.h> instead of euidaccess.h.
39680         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39681         HAVE_EUIDACCESS.
39682         * NEWS: Mention the change.
39683
39684 2008-10-18  Bruno Haible  <bruno@clisp.org>
39685
39686         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39687
39688         Move the getdomainname() declaration to <unistd.h>.
39689         * lib/getdomainname.h: Remove file.
39690         * lib/unistd.in.h (getdomainname): New declaration.
39691         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39692         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39693         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39694         HAVE_GETDOMAINNAME.
39695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39696         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39697         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39698         (Depends-on): Add unistd, extensions.
39699         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39700         (Includes): Specify <unistd.h> instead of getdomainname.h.
39701         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39702         HAVE_GETDOMAINNAME.
39703         * NEWS: Mention the change.
39704
39705 2008-10-18  Bruno Haible  <bruno@clisp.org>
39706
39707         * modules/dirent: New file.
39708         * m4/dirent_h.m4: New file.
39709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39710         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39711         * modules/fchdir (Files): Remove lib/dirent.in.h.
39712         (Depends-on): Add dirent.
39713         (Makefile.am): Move rules to modules/dirent.
39714         * doc/posix-headers/dirent.texi: Mention the new module.
39715
39716 2008-10-18  Bruno Haible  <bruno@clisp.org>
39717
39718         Avoid -Wunused-parameter warnings in public gnulib header files.
39719         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39720         macro.
39721         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39722
39723 2008-10-18  Bruno Haible  <bruno@clisp.org>
39724
39725         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39726         * doc/glibc-functions/error.texi: Mention the module 'error'.
39727         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39728         * doc/glibc-functions/getdomainname.texi: Mention the module
39729         'getdomainname'.
39730         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39731         * doc/glibc-functions/getpagesize.texi: Mention the module
39732         'getpagesize'.
39733         * doc/glibc-functions/getusershell.texi: Mention the module
39734         'getusershell'.
39735         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39736         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39737         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39738         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39739         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39740         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39741         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39742         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39743         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39744         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39745         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39746         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39747         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39748         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39749
39750 2008-10-17  Bruno Haible  <bruno@clisp.org>
39751
39752         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39753         HP-UX and IRIX, use -0.0L.
39754         * tests/test-ceill.c (minus_zero): Likewise.
39755         * tests/test-floorl.c (minus_zero): Likewise.
39756         * tests/test-frexpl.c (minus_zero): Likewise.
39757         * tests/test-isnan.c (minus_zerol): Likewise.
39758         * tests/test-isnanl.h (minus_zero): Likewise.
39759         * tests/test-ldexpl.c (minus_zero): Likewise.
39760         * tests/test-roundl.c (minus_zero): Likewise.
39761         * tests/test-signbit.c (minus_zerol): Likewise.
39762         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39763         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39764         * tests/test-truncl.c (minus_zero): Likewise.
39765         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39766         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39767         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39768         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39769
39770 2008-10-17  Bruno Haible  <bruno@clisp.org>
39771
39772         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39773         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39774         that it gets activated only for gcc >= 3.0.
39775         * lib/dirent.in.h: Likewise.
39776         * lib/errno.in.h: Likewise.
39777         * lib/fcntl.in.h: Likewise.
39778         * lib/float.in.h: Likewise.
39779         * lib/iconv.in.h: Likewise.
39780         * lib/inttypes.in.h: Likewise.
39781         * lib/locale.in.h: Likewise.
39782         * lib/math.in.h: Likewise.
39783         * lib/netdb.in.h: Likewise.
39784         * lib/netinet_in.in.h: Likewise.
39785         * lib/search.in.h: Likewise.
39786         * lib/signal.in.h: Likewise.
39787         * lib/spawn.in.h: Likewise.
39788         * lib/stdarg.in.h: Likewise.
39789         * lib/stdint.in.h: Likewise.
39790         * lib/stdio.in.h: Likewise.
39791         * lib/stdlib.in.h: Likewise.
39792         * lib/string.in.h: Likewise.
39793         * lib/strings.in.h: Likewise.
39794         * lib/sys_file.in.h: Likewise.
39795         * lib/sys_ioctl.in.h: Likewise.
39796         * lib/sys_select.in.h: Likewise.
39797         * lib/sys_socket.in.h: Likewise.
39798         * lib/sys_stat.in.h: Likewise.
39799         * lib/sys_time.in.h: Likewise.
39800         * lib/sysexits.in.h: Likewise.
39801         * lib/time.in.h: Likewise.
39802         * lib/unistd.in.h: Likewise.
39803         * lib/wchar.in.h: Likewise.
39804         * lib/wctype.in.h: Likewise.
39805         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39806
39807 2008-10-17  Jim Meyering  <meyering@redhat.com>
39808
39809         ignore-value: don't depend on inline module
39810         * modules/ignore-value (Depends-on): Remove 'inline'.
39811         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39812         Suggestion from Bruno Haible.
39813
39814 2008-10-17  Bruno Haible  <bruno@clisp.org>
39815
39816         New implementation of condition variables for Win32.
39817         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39818         (gl_linked_waitqueue_t): New type.
39819         (gl_cond_t): Use it.
39820         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39821         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39822         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39823         (glthread_cond_init_func, glthread_cond_wait_func,
39824         glthread_cond_timedwait_func, glthread_cond_signal_func,
39825         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39826         Reimplemented on the basis of gl_linked_waitqueue_t.
39827         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39828         gl_waitqueue_t.
39829         (gl_rwlock_t): Update.
39830         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39831
39832 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39833
39834         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39835         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39836
39837 2008-10-17  Jim Meyering  <meyering@redhat.com>
39838
39839         ignore-value: new module
39840         * modules/ignore-value: New file.
39841         * lib/ignore-value.h: New file.
39842         * MODULES.html.sh (Compiler warning management): New section,
39843         just for this module.  More to come.
39844
39845 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39846
39847         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39848         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39849         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39850
39851 2008-10-16  Jim Meyering  <meyering@redhat.com>
39852
39853         openat-die.c: avoid 'no previous prototype' warning
39854         * lib/openat-die.c: Include "openat.h".
39855         Reported by Reuben Thomas <rrt@sc3d.org>.
39856
39857 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39858
39859         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39860         * lib/netdb.in.h: Fix typo.
39861         Reported by Bruno Haible  <bruno@clisp.org>
39862
39863         * lib/netdb.in.h: Include sys/socket.h for platforms without
39864         netdb.h, to get structures like hostent on MinGW.
39865         * modules/netdb (Depends-on): Add sys_socket.
39866
39867 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39868
39869         * modules/netdb, modules/netdb-tests: New file.
39870         * m4/netdb_h.m4: New file.
39871         * lib/netdb.in.h: Add, currently just an empty file pending
39872         definitions.
39873         * tests/test-netdb.c: New file.
39874         * doc/posix-headers/netdb.texi: Mention that we replace it if
39875         needed.
39876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39877         netdb.
39878
39879 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39880
39881         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39882         with code.
39883
39884 2008-10-13  Bruno Haible  <bruno@clisp.org>
39885
39886         * lib/glthread/cond.c (glthread_cond_wait_func,
39887         glthread_cond_timedwait_func): Add a comment.
39888
39889 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39890
39891         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39892         * tests/test-select.c: Likewise,
39893
39894 2008-10-13  Bruno Haible  <bruno@clisp.org>
39895
39896         * lib/glthread/cond.c (glthread_cond_wait_func,
39897         glthread_cond_timedwait_func): Fix variable name.
39898         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39899
39900 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39901
39902         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39903         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39904         struct sockaddr.sa_len.
39905         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39906
39907 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39908
39909         * build-aux/pmccabe2html: Add css and css_url parameters.
39910
39911 2008-10-12  Bruno Haible  <bruno@clisp.org>
39912
39913         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39914         calling aclx_get.
39915         Reported by Rainer Tammer <tammer@tammer.net>.
39916
39917 2008-10-12  Bruno Haible  <bruno@clisp.org>
39918
39919         Use msvcrt aware primitives for creation/termination of Win32 threads.
39920         * lib/glthread/thread.c: Include <process.h>.
39921         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39922         (wrapper_func): Update signature.
39923         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39924
39925 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39926             Bruno Haible  <bruno@clisp.org>
39927
39928         Provide a Win32 implementation of the 'cond' module.
39929         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39930         * lib/glthread/cond.c (glthread_cond_init_func,
39931         glthread_cond_wait_func, glthread_cond_timedwait_func,
39932         glthread_cond_signal_func, glthread_cond_broadcast_func,
39933         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39934         * modules/cond (Dependencies): Add gettimeofday.
39935
39936 2008-10-11  Bruno Haible  <bruno@clisp.org>
39937
39938         Make sleep work on older versions of mingw.
39939         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39940         only whether it exists.
39941         * doc/posix-functions/sleep.texi: Mention the problem with older
39942         versions of mingw.
39943
39944 2008-10-11  Bruno Haible  <bruno@clisp.org>
39945
39946         New module 'shutdown'.
39947         * modules/shutdown: New file.
39948         * lib/sys_socket.in.h (shutdown): New declaration.
39949         * lib/winsock.c (shutdown): New function.
39950         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39951         GNULIB_SHUTDOWN.
39952         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39953         * doc/posix-functions/shutdown.texi: Document the new module.
39954
39955 2008-10-11  Jim Meyering  <meyering@redhat.com>
39956
39957         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39958
39959 2008-10-11  Bruno Haible  <bruno@clisp.org>
39960
39961         New module 'fclose'.
39962         * modules/fclose: New file.
39963         * lib/stdio.in.h (fclose): New declaration.
39964         * lib/fclose.c: New file.
39965         * m4/fclose.m4: New file.
39966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39967         REPLACE_FCLOSE.
39968         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39969         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39970         REPLACE_FCLOSE.
39971         * modules/close (Depends-on): fclose.
39972         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39973
39974 2008-10-11  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39977         set errno and don't call _close.
39978
39979 2008-10-10  Bruno Haible  <bruno@clisp.org>
39980
39981         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39982         ACL, not afterwards. Fixes test failure on Cygwin.
39983
39984 2008-10-09  Ben Pfaff  <blp@gnu.org>
39985
39986         * build-aux/announce-gen: Fix gnulib version related part of usage
39987         message.  Die with a useful error message if no tarballs are
39988         found.
39989
39990 2008-10-10  Jim Meyering  <meyering@redhat.com>
39991
39992         bootstrap: use git's --depth=N option only if it's supported
39993         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39994         recognize the --depth option.  Reported by Pádraig Brady.
39995
39996 2008-10-09  Bruno Haible  <bruno@clisp.org>
39997
39998         New module 'ioctl'.
39999         * modules/ioctl: New file.
40000         * lib/sys_socket.in.h (ioctl): Remove declaration.
40001         * lib/winsock.c: Include <sys/ioctl.h>.
40002         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40003         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40004         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40005         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40006         * doc/posix-functions/ioctl.texi: Mention the new module.
40007
40008 2008-10-09  Bruno Haible  <bruno@clisp.org>
40009
40010         New module 'sys_ioctl'.
40011         * lib/sys_ioctl.in.h: New file.
40012         * m4/sys_ioctl_h.m4: New file.
40013         * modules/sys_ioctl: New file.
40014         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40015
40016 2008-10-09  Bruno Haible  <bruno@clisp.org>
40017
40018         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40019         * lib/winsock.c: Include <stdarg.h>.
40020         (rpl_ioctl): Change to second argument 'int' and then varargs.
40021
40022 2008-10-09  Bruno Haible  <bruno@clisp.org>
40023
40024         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40025         when the sys_socket module is present and the system has <winsock2.h>.
40026
40027 2008-10-09  Bruno Haible  <bruno@clisp.org>
40028
40029         * doc/posix-functions/close.texi: Mention module 'close' instead of
40030         module 'sys_socket'.
40031
40032 2008-10-09  Bruno Haible  <bruno@clisp.org>
40033
40034         * doc/glibc-headers/sys_ioctl.texi: New file.
40035         * doc/gnulib.texi: Include it.
40036
40037 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40038             Bruno Haible  <bruno@clisp.org>
40039
40040         Combine the two replacements of 'close'.
40041         * lib/sys_socket.in.h (close): Define to a reminder to include
40042         <unistd.h>.
40043         (_gl_close_fd_maybe_socket): New declaration.
40044         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40045         * lib/winsock.c (close): Remove undefinition.
40046         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40047         needed for the gnulib module 'close'.
40048         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40049         define to an error symbol or to a warning, if suitable.
40050         * lib/close.c: Include <sys/socket.h>.
40051         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40052         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40053         UNISTD_H_HAVE_WINSOCK2_H.
40054         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40056         UNISTD_H_HAVE_WINSOCK2_H.
40057         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40058         (configure.ac): Set a module indicator.
40059         (Makefile.am): Substitute GNULIB_CLOSE.
40060         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40061         * modules/poll-tests (Depends-on): Add close.
40062         * modules/select-tests (Depends-on): Likewise.
40063
40064 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40065             Bruno Haible  <bruno@clisp.org>
40066
40067         New module 'close'.
40068         * modules/close: New file.
40069         * lib/unistd.in.h (close): Move declaration out of the
40070         FCHDIR_REPLACEMENT scope.
40071         (_gl_unregister_fd): New declaration.
40072         * lib/close.c: New file.
40073         * lib/fchdir.c (rpl_close): Remove function.
40074         * m4/close.m4: New file.
40075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40076         close.
40077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40078         REPLACE_CLOSE.
40079         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40080         REPLACE_CLOSE.
40081         * modules/fchdir (Depends-on): Add close.
40082
40083 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40084             Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/fcntl.in.h (open): Simplify conditionals.
40087         (_gl_register_fd): New declaration.
40088         * lib/fchdir.c (rpl_open): Remove function.
40089         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40090         also.
40091         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40093         open.
40094
40095 2008-10-09  Jim Meyering  <meyering@redhat.com>
40096
40097         GNUmakefile: use the more name-space-friendly "_version"
40098         * top/GNUmakefile (_dummy): Update.
40099         (_version): Rename from "version".
40100
40101 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40102             Bruno Haible  <bruno@clisp.org>
40103
40104         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40105         rpl_close.
40106         (_gl_register_fd): New function, extracted from rpl_open.
40107         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40108         (rpl_open, rpl_opendir): Use _gl_register_fd.
40109
40110 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40111
40112         Fix organization of 'open' replacement.
40113         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40114         (gl_FUNC_OPEN): Use it.
40115         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40116
40117 2008-10-08  Bruno Haible  <bruno@clisp.org>
40118
40119         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40120
40121 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40122
40123         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40124         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40125         listen).
40126
40127 2008-10-08  Eric Blake  <ebb9@byu.net>
40128
40129         GNUmakefile: add 'make version' target
40130         * top/GNUmakefile (_curr-ver): Split version update rules...
40131         (version): ...into a target.
40132
40133 2008-10-07  Bruno Haible  <bruno@clisp.org>
40134
40135         Use a more portable replacement expression for -0.0L.
40136         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40137         instead of -0.0L. Fix m4 quotation.
40138
40139         * tests/test-signbit.c: Include <float.h>.
40140         (minus_zero): New variable.
40141         (test_signbitl): Use minus_zero instead of -zero.
40142         * modules/signbit-tests (Depends-on): Add float.
40143
40144         * tests/test-ceill.c: Include <float.h>.
40145         (zero): Remove variable.
40146         (minus_zero): New variable.
40147         (main): Use minus_zero instead of -zero.
40148         * modules/ceill-tests (Depends-on): Add float.
40149
40150         * tests/test-floorl.c: Include <float.h>.
40151         (zero): Remove variable.
40152         (minus_zero): New variable.
40153         (main): Use minus_zero instead of -zero.
40154         * modules/floorl-tests (Depends-on): Add float.
40155
40156         * tests/test-roundl.c: Include <float.h>.
40157         (zero): Remove variable.
40158         (minus_zero): New variable.
40159         (main): Use minus_zero instead of -zero.
40160         * modules/roundl-tests (Depends-on): Add float.
40161
40162         * tests/test-truncl.c: Include <float.h>.
40163         (zero): Remove variable.
40164         (minus_zero): New variable.
40165         (main): Use minus_zero instead of -zero.
40166         * modules/truncl-tests (Depends-on): Add float.
40167
40168         * tests/test-frexpl.c (zero): Remove variable.
40169         (minus_zero): New variable.
40170         (main): Use minus_zero instead of -zero.
40171         * modules/frexpl-tests (Depends-on): Add float.
40172
40173         * tests/test-isnan.c (zerol): Remove variable.
40174         (minus_zerol): New variable.
40175         (test_long_double): Use minus_zerol instead of -zerol.
40176         * modules/isnan-tests (Depends-on): Add float.
40177
40178         * tests/test-isnanl.h (zero): Remove variable.
40179         (minus_zero): New variable.
40180         (main): Use minus_zero instead of -zero.
40181         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40182         * modules/isnanl-tests (Depends-on): Add float.
40183
40184         * tests/test-ldexpl.c (zero): Remove variable.
40185         (minus_zero): New variable.
40186         (main): Use minus_zero instead of -zero.
40187         * modules/ldexpl-tests (Depends-on): Add float.
40188
40189         * tests/test-snprintf-posix.h (zerol): Remove variable.
40190         (minus_zerol): New variable.
40191         (test_function): Use minus_zerol instead of -zerol.
40192         * modules/snprintf-posix-tests (Depends-on): Add float.
40193         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40194
40195         * tests/test-sprintf-posix.h (zerol): Remove variable.
40196         (minus_zerol): New variable.
40197         (test_function): Use minus_zerol instead of -zerol.
40198         * modules/sprintf-posix-tests (Depends-on): Add float.
40199         * modules/vsprintf-posix-tests (Depends-on): Add float.
40200
40201         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40202         (minus_zerol): New variable.
40203         (test_function): Use minus_zerol instead of -zerol.
40204         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40205
40206         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40207         (minus_zerol): New variable.
40208         (test_function): Use minus_zerol instead of -zerol.
40209         * modules/vasprintf-posix-tests (Depends-on): Add float.
40210
40211 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40212
40213         * MODULES.html.sh (Support for building documentation): Mention
40214         pmccabe2html.  Sort entries.
40215
40216         Add pmccabe2html module, from gnupdf.
40217         * build-aux/pmccabe.css: New file.
40218         * build-aux/pmccabe2html: New file.
40219         * m4/pmccabe2html.m4: New file.
40220         * modules/pmccabe2html: New file.
40221
40222 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40223
40224         flock: new module
40225         * MODULES.html.sh: Add to list of modules.
40226         * lib/flock.c: flock implementation for Windows and Unix systems
40227         which have fcntl.
40228         * doc/glibc-functions/flock.texi: Update documentation.
40229         * lib/sys_file.in.h: <sys/file.h> header file.
40230         * m4/flock.m4: M4 macros.
40231         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40232         * modules/flock: flock module.
40233         * modules/flock-tests: flock tests module.
40234         * modules/sys_file: sys/file.h module.
40235         * tests/test-flock.c: test suite for flock.
40236
40237 2008-10-06  Jim Meyering  <meyering@redhat.com>
40238
40239         bootstrap: check for LT_INIT more portably still ;-)
40240         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40241         Spotted by Bruno Haible.
40242
40243 2008-10-06  Eric Blake  <ebb9@byu.net>
40244
40245         test-signbit: avoid tripping Irix cc bug on -0.0L
40246         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40247         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40248         entire testsuite consistent and avoids an Irix 6.2 bug.
40249
40250 2008-10-05  Bruno Haible  <bruno@clisp.org>
40251             Jim Meyering  <jim@meyering.net>
40252
40253         Add an option for ignoring EPIPE during close_stdout.
40254         * lib/closeout.h: Include <stdbool.h>.
40255         (close_stdout_set_ignore_EPIPE): New declaration.
40256         * lib/closeout.c: Include <stdbool.h>.
40257         (ignore_EPIPE): New variable.
40258         (close_stdout_set_ignore_EPIPE): New function.
40259         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40260         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40261         failure.
40262         * modules/closeout (Depends-on): Add stdbool.
40263
40264 2008-10-05  Bruno Haible  <bruno@clisp.org>
40265
40266         * modules/accept: New file.
40267         * modules/bind: New file.
40268         * modules/connect: New file.
40269         * modules/getpeername: New file.
40270         * modules/getsockname: New file.
40271         * modules/getsockopt: New file.
40272         * modules/listen: New file.
40273         * modules/recv: New file.
40274         * modules/recvfrom: New file.
40275         * modules/send: New file.
40276         * modules/sendto: New file.
40277         * modules/setsockopt: New file.
40278         * modules/socket: New file.
40279         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40280         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40281         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40282         the particular module is requested. Add a link warning when the
40283         particular module is not requested.
40284         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40285         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40286         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40287         the particular module is requested.
40288         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40289         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40290         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40291         * modules/sys_socket (Depends-on): Add link-warning.
40292         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40293         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40294         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40295         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40296         GL_LINK_WARNING.
40297         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40298         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40299         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40300         * doc/posix-functions/getpeername.texi: Mention the new module
40301         'getpeername'.
40302         * doc/posix-functions/getsockname.texi: Mention the new module
40303         'getsockname'.
40304         * doc/posix-functions/getsockopt.texi: Mention the new module
40305         'getsockopt'.
40306         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40307         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40308         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40309         * doc/posix-functions/send.texi: Mention the new module 'send'.
40310         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40311         * doc/posix-functions/setsockopt.texi: Mention the new module
40312         'setsockopt'.
40313         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40314         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40315         listen, connect, accept.
40316         * modules/select-tests (Depends-on): Likewise.
40317
40318 2008-10-05  Bruno Haible  <bruno@clisp.org>
40319
40320         * lib/winsock.c (strerror): Remove unused #undef.
40321         (rpl_close): Remove unused local variable.
40322
40323         * modules/sys_socket (Depends-on); Add errno.
40324
40325 2008-10-05  Bruno Haible  <bruno@clisp.org>
40326
40327         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40328         (select): Add a link warning when the 'select' module is not used.
40329         * modules/sys_select (Depends-on): Add link-warning.
40330         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40331         Suggested by Paolo Bonzini.
40332
40333 2008-10-05  Jim Meyering  <meyering@redhat.com>
40334
40335         bootstrap: check for LT_INIT more portably
40336         * build-aux/bootstrap: Avoid using grep -E, since it's not
40337         portable enough.  Suggestion from Bruno Haible.
40338
40339 2008-10-05  Bruno Haible  <bruno@clisp.org>
40340
40341         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40342         as being fixed by gnulib.
40343
40344 2008-10-05  Bruno Haible  <bruno@clisp.org>
40345
40346         * modules/select-tests: New file, mostly copied from
40347         modules/sys_select-tests.
40348         * tests/test-select.c: New file, mostly copied from
40349         tests/test-sys_select.c.
40350         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40351         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40352         (Makefile.am): Remove test_sys_select_LDADD.
40353
40354         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40355         to an undefined symbol, for an error message.
40356         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40357         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40358         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40359         winsock-select.c here.
40360         * modules/sys_select (Files): Remove lib/winsock-select.c.
40361         (Depends-on): Remove alloca.
40362         (Makefile.am): Substitute GNULIB_SELECT.
40363         * modules/select: New file.
40364         * doc/posix-functions/select.texi: Update.
40365
40366 2008-10-05  Bruno Haible  <bruno@clisp.org>
40367
40368         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40369         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40370         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40371         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40372         getdtablesize.
40373         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40374         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40375
40376 2008-10-05  Bruno Haible  <bruno@clisp.org>
40377
40378         * modules/getdtablesize-tests: New file.
40379         * tests/test-getdtablesize.c: New file.
40380
40381         New module 'getdtablesize'.
40382         * lib/unistd.in.h (getdtablesize): New declaration.
40383         * lib/getdtablesize.c: New file.
40384         * m4/getdtablesize.m4: New file.
40385         * modules/getdtablesize: New file.
40386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40387         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40388         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40389         HAVE_GETDTABLESIZE.
40390         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40391
40392 2008-10-05  Bruno Haible  <bruno@clisp.org>
40393
40394         * modules/sched (Makefile.am): Fix typo.
40395         Reported by Simon Josefsson.
40396
40397 2008-10-05  Jim Meyering  <meyering@redhat.com>
40398
40399         bootstrap: check for LT_INIT, too
40400         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40401         are deprecated.  Suggestion from Ralf Wildenhues.
40402
40403 2008-10-05  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40406         overriding them by ours.
40407         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40408
40409 2008-10-05  Jim Meyering  <meyering@redhat.com>
40410
40411         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40412         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40413         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40414
40415 2008-10-04  Bruno Haible  <bruno@clisp.org>
40416
40417         * modules/dup2 (License): Change to LGPLv2+.
40418         * modules/sleep (License): Likewise.
40419         * modules/perror (License): Likewise.
40420         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40421         Blake.
40422         * modules/signal (License): Likewise.
40423         * modules/sigprocmask (License): Likewise.
40424         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40425         Meyering.
40426
40427 2008-10-04  Bruno Haible  <bruno@clisp.org>
40428
40429         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40430         Reported by Rainer Tammer <tammer@tammer.net>.
40431
40432 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40433             Bruno Haible  <bruno@clisp.org>
40434
40435         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40436         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40437         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40438
40439 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40440
40441         filevercmp: new module
40442         * lib/filevercmp.h: New function filevercmp comparing version strings.
40443         * lib/filevercmp.c: Implementation of filevercmp function.
40444         * modules/filevercmp: Module metadata.
40445         * tests/test-filevercmp.c: Unit test for new module.
40446         * modules/filevercmp-tests: Unit test metadata.
40447         * MODULES.html.sh: Add filevercmp module.
40448
40449 2008-10-03  Bruno Haible  <bruno@clisp.org>
40450
40451         * lib/c-ctype.h: Add comment.
40452         Reported by Jim Meyering.
40453
40454 2008-10-02  Bruno Haible  <bruno@clisp.org>
40455
40456         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40457
40458 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40459
40460         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40461         name of bootstrap.conf accordingly.
40462
40463 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40464
40465         * build-aux/bootstrap: Install git-merge-changelog configuration
40466         items into .gitconfig if needed.
40467
40468 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40469
40470         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40471         git repository, and initialize/update it accordingly.
40472
40473 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40474
40475         * modules/fsync-tests: New file.
40476         * tests/test-fsync.c: New file.
40477
40478         New module 'fsync'.
40479         * lib/fsync.c: New file.
40480         * m4/fsync.m4: New file.
40481         * modules/fsync: New file.
40482         * lib/unistd.in.h (fsync): New declaration.
40483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40484         GNULIB_FSYNC and HAVE_FSYNC.
40485         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40486         * MODULES.html.sh (posix_functions): Add fsync.
40487         * doc/posix-functions/fsync.texi: Mention the new module.
40488
40489 2008-10-02  Jim Meyering  <meyering@redhat.com>
40490
40491         fts.c: sync with similar code from coreutils' remove.c
40492         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40493         Guard also with "#if defined __linux__", since for now at least,
40494         this code is Linux-kernel-specific.
40495
40496 2008-10-02  Jim Meyering  <meyering@redhat.com>
40497
40498         fts: bug fixes
40499         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40500         Include <sys/vfs.h>, not <sys/statfs.h>.
40501
40502         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40503         Include <sys/vfs.h>, not <sys/statfs.h>.
40504
40505 2008-10-01  Bruno Haible  <bruno@clisp.org>
40506
40507         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40508         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40509         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40510         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40511         * doc/posix-functions/posix_spawnp.texi: Likewise.
40512         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40513         whether posix_spawn actually works.
40514         * m4/pipe.m4 (gl_PIPE): Likewise.
40515         * modules/execute (Files): Add m4/posix_spawn.m4.
40516         * modules/pipe (Files): Add m4/posix_spawn.m4.
40517         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40518
40519 2008-10-01  Jim Meyering  <meyering@redhat.com>
40520
40521         remove trailing spaces
40522         * NEWS: Likewise.
40523         * lib/poll.c (poll): Likewise.
40524         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40525         * lib/winsock.c (rpl_close): Likewise.
40526         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40527         * modules/yield: Likewise.
40528         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40529         * tests/test-sys_select.c (connect_to_socket): Likewise.
40530
40531         fts.c: adjust a new interface to be more generally useful
40532         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40533         (fts_build): Adjust caller.
40534
40535 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40536
40537         * modules/cond-tests: New file.
40538         * tests/test-cond.c: New file.
40539
40540 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40541             Bruno Haible  <bruno@clisp.org>
40542
40543         * modules/cond (Dependencies): Add errno, time.
40544         * lib/glthread/cond.h: Include <time.h>.
40545         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40546         across platforms.
40547
40548 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40549             Bruno Haible  <bruno@clisp.org>
40550
40551         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40552
40553 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40554             Bruno Haible  <bruno@clisp.org>
40555
40556         * modules/tls-tests (Depends-on): Add thread, yield.
40557         (configure.ac): Remove all checks.
40558         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40559         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40560         gl_thread_self): Remove definitions. Include glthread/thread.h and
40561         glthread/yield.h instead.
40562         (test_tls): Pass an additional NULL argument to gl_thread_join.
40563
40564 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40565             Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/lock-tests (Depends-on): Add thread, yield.
40568         (configure.ac): Remove all checks.
40569         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40570         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40571         gl_thread_self): Remove definitions. Include glthread/thread.h and
40572         glthread/yield.h instead.
40573         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40574         additional NULL argument to gl_thread_join.
40575
40576 2008-09-30  Bruno Haible  <bruno@clisp.org>
40577
40578         Fix the Win32 implementation of the 'thread' module.
40579         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40580         pointer type.
40581         (gl_thread_self): Invoke gl_thread_self_func.
40582         (gl_thread_self_func): New declaration.
40583         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40584         (do_init_self_key, init_self_key): New functions.
40585         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40586         Remove some fields.
40587         (running_threads, running_lock): Remove variables.
40588         (get_current_thread_handle): New function.
40589         (gl_thread_self_func, wrapper_func, glthread_create_func,
40590         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40591         simplified.
40592
40593 2008-09-30  Bruno Haible  <bruno@clisp.org>
40594
40595         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40596         files.
40597
40598 2008-09-30  Jim Meyering  <meyering@redhat.com>
40599
40600         fts.m4: correct the test for statfs.f_type
40601         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40602         when checking for statfs.f_type.
40603
40604 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40605
40606         tests: avoid some compiler warnings
40607         * tests/test-memchr.c (main): Pass NULL indirectly.
40608         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40609
40610 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40611
40612         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40613         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40614         exactly specified dayshifts.
40615         (dayshift): New rule.
40616         (rel): Add dayshift.
40617         (relative_time_table) [tomorrow, yesterday, today, now]:
40618         Use tDAY_SHIFT in place of tDAY_UNIT.
40619         * tests/test-getdate.c: Add tests for now-disallowed countable
40620         dayshifts, e.g., "4 yesterday ago".
40621
40622 2008-09-29  Bruno Haible  <bruno@clisp.org>
40623
40624         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40625         * tests/test-posix_spawn1.in.sh: Renamed from
40626         tests/test-posix_spawn.in.sh.
40627         * tests/test-posix_spawn2.c: New file.
40628         * tests/test-posix_spawn2.in.sh: New file.
40629         * modules/posix_spawnp-tests (Files): Update.
40630         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40631
40632 2008-09-29  Bruno Haible  <bruno@clisp.org>
40633
40634         Propagate effects of putenv/setenv/unsetenv to child processes.
40635         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40636         * lib/pipe.c (create_pipe): Likewise.
40637
40638 2008-09-29  Bruno Haible  <bruno@clisp.org>
40639
40640         Enable use of shell scripts as executables in mingw.
40641         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40642         run the program as a shell script.
40643         * lib/pipe.c (create_pipe): Likewise.
40644         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40645         resulting array.
40646
40647 2008-09-29  Eric Blake  <ebb9@byu.net>
40648
40649         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40650
40651 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40652
40653         * doc/posix-functions/accept.texi: Update mingw problems.
40654         * doc/posix-functions/bind.texi: Update mingw problems.
40655         * doc/posix-functions/close.texi: Update mingw problems.
40656         * doc/posix-functions/connect.texi: Update mingw problems.
40657         * doc/posix-functions/getpeername.texi: Update mingw problems.
40658         * doc/posix-functions/getsockname.texi: Update mingw problems.
40659         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40660         * doc/posix-functions/ioctl.texi: Update mingw problems.
40661         * doc/posix-functions/listen.texi: Update mingw problems.
40662         * doc/posix-functions/recv.texi: Update mingw problems.
40663         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40664         * doc/posix-functions/select.texi: Update mingw problems.
40665         * doc/posix-functions/send.texi: Update mingw problems.
40666         * doc/posix-functions/sendto.texi: Update mingw problems.
40667         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40668         * doc/posix-functions/socket.texi: Update mingw problems.
40669
40670 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40671             Bruno Haible  <bruno@clisp.org>
40672
40673         * lib/sys_select.in.h: Include sys/time.h.
40674         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40675         * modules/sys_select: Depend on sys_time.
40676         * tests/test-sys_select.c: Test that sys/select.h defines struct
40677         timeval fully.
40678
40679 2008-09-29  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40682         * lib/sys_select.in.h: Likewise.
40683
40684 2008-09-29  Bruno Haible  <bruno@clisp.org>
40685
40686         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40687
40688 2008-09-29  Bruno Haible  <bruno@clisp.org>
40689
40690         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40691         Set LIBSOCKET instead of augmenting LIBS.
40692         * modules/sockets (Link): New section.
40693         * modules/sockets-tests (test_sockets_LDADD): New variable.
40694         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40695         * modules/poll-tests (test_poll_LDADD): New variable.
40696         * NEWS: Document the change.
40697
40698 2008-09-29  Bruno Haible  <bruno@clisp.org>
40699
40700         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40701         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40702         ARPA_INET_H directly.
40703         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40704
40705 2008-09-28  Bruno Haible  <bruno@clisp.org>
40706
40707         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40708         from gl_HEADER_SYS_SOCKET.
40709         (gl_HEADER_SYS_SOCKET): Invoke it.
40710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40711
40712 2008-09-28  Bruno Haible  <bruno@clisp.org>
40713
40714         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40715         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40716         Needed on OSF/1 4.0.
40717
40718 2008-09-28  Bruno Haible  <bruno@clisp.org>
40719
40720         Override open more carefully.
40721         * lib/open.c (orig_open): New function.
40722         (rpl_open): Use orig_open instead of open.
40723         * lib/fcntl.in.h: Add special invocation convention.
40724         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40725         (gl_FUNC_OPEN): Invoke it.
40726
40727         Override freopen more carefully.
40728         * lib/freopen.c (orig_freopen): New function.
40729         (rpl_freopen): Use orig_freopen instead of freopen.
40730         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40731         (gl_FUNC_FREOPEN): Invoke it.
40732
40733         Override fopen more carefully.
40734         * lib/fopen.c (orig_fopen): New function.
40735         (rpl_fopen): Use orig_fopen instead of fopen.
40736         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40737         (gl_FUNC_FOPEN): Invoke it.
40738         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40739
40740 2008-09-28  Bruno Haible  <bruno@clisp.org>
40741
40742         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40743         SIGPIPE.
40744
40745 2008-09-28  Bruno Haible  <bruno@clisp.org>
40746
40747         * tests/test-sigaction.c (handler, main): Disable the check whether
40748         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40749         glibc systems with LinuxThreads.
40750
40751 2008-09-28  Bruno Haible  <bruno@clisp.org>
40752
40753         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40754
40755         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40756         with AIX xlc.
40757         * lib/fcntl.in.h (open): Likewise.
40758         Reported by Rainer Tammer <tammer@tammer.net>.
40759
40760 2008-09-28  Bruno Haible  <bruno@clisp.org>
40761
40762         * modules/posix_spawnp-tests: New file.
40763         * tests/test-posix_spawn.c: New file.
40764         * tests/test-posix_spawn.in.sh: New file.
40765
40766         New module 'posix_spawnp'.
40767         * modules/posix_spawnp: New file.
40768         * lib/spawnp.c: New file, from GNU libc with modifications.
40769         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40770
40771         New module 'posix_spawn'.
40772         * modules/posix_spawn: New file.
40773         * lib/spawn.c: New file, from GNU libc with modifications.
40774         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40775
40776         New module 'posix_spawnattr_destroy'.
40777         * modules/posix_spawnattr_destroy: New file.
40778         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40779         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40780         module.
40781
40782         New module 'posix_spawnattr_setsigmask'.
40783         * modules/posix_spawnattr_setsigmask: New file.
40784         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40785         modifications.
40786         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40787         new module.
40788
40789         New module 'posix_spawnattr_getsigmask'.
40790         * modules/posix_spawnattr_getsigmask: New file.
40791         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40792         modifications.
40793         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40794         new module.
40795
40796         New module 'posix_spawnattr_setsigdefault'.
40797         * modules/posix_spawnattr_setsigdefault: New file.
40798         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40799         modifications.
40800         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40801         new module.
40802
40803         New module 'posix_spawnattr_getsigdefault'.
40804         * modules/posix_spawnattr_getsigdefault: New file.
40805         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40806         modifications.
40807         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40808         new module.
40809
40810         New module 'posix_spawnattr_setschedpolicy'.
40811         * modules/posix_spawnattr_setschedpolicy: New file.
40812         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40813         modifications.
40814         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40815         new module.
40816
40817         New module 'posix_spawnattr_getschedpolicy'.
40818         * modules/posix_spawnattr_getschedpolicy: New file.
40819         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40820         modifications.
40821         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40822         new module.
40823
40824         New module 'posix_spawnattr_setschedparam'.
40825         * modules/posix_spawnattr_setschedparam: New file.
40826         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40827         modifications.
40828         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40829         new module.
40830
40831         New module 'posix_spawnattr_getschedparam'.
40832         * modules/posix_spawnattr_getschedparam: New file.
40833         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40834         modifications.
40835         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40836         new module.
40837
40838         New module 'posix_spawnattr_setpgroup'.
40839         * modules/posix_spawnattr_setpgroup: New file.
40840         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40841         modifications.
40842         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40843         module.
40844
40845         New module 'posix_spawnattr_getpgroup'.
40846         * modules/posix_spawnattr_getpgroup: New file.
40847         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40848         modifications.
40849         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40850         module.
40851
40852         New module 'posix_spawnattr_setflags'.
40853         * modules/posix_spawnattr_setflags: New file.
40854         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40855         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40856         module.
40857
40858         New module 'posix_spawnattr_getflags'.
40859         * modules/posix_spawnattr_getflags: New file.
40860         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40861         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40862         module.
40863
40864         New module 'posix_spawnattr_init'.
40865         * modules/posix_spawnattr_init: New file.
40866         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40867         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40868         module.
40869
40870         New module 'posix_spawn_file_actions_destroy'.
40871         * modules/posix_spawn_file_actions_destroy: New file.
40872         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40873         modifications.
40874         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40875         the new module.
40876
40877         New module 'posix_spawn_file_actions_addopen'.
40878         * modules/posix_spawn_file_actions_addopen: New file.
40879         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40880         modifications.
40881         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40882         the new module.
40883
40884         New module 'posix_spawn_file_actions_adddup2'.
40885         * modules/posix_spawn_file_actions_adddup2: New file.
40886         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40887         modifications.
40888         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40889         the new module.
40890
40891         New module 'posix_spawn_file_actions_addclose'.
40892         * modules/posix_spawn_file_actions_addclose: New file.
40893         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40894         modifications.
40895         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40896         the new module.
40897
40898         New module 'posix_spawn_file_actions_init'.
40899         * modules/posix_spawn_file_actions_init: New file.
40900         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40901         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40902         new module.
40903
40904         New module 'posix_spawn-internal'.
40905         * modules/posix_spawn-internal: New file.
40906         * lib/spawn_int.h: New file, from GNU libc with modifications.
40907         * lib/spawni.c: New file, from GNU libc with modifications.
40908         * m4/posix_spawn.m4: New file.
40909
40910         New module 'spawn'.
40911         * modules/spawn: New file.
40912         * lib/spawn.in.h: New file, from GNU libc with modifications.
40913         * m4/spawn_h.m4: New file.
40914         * doc/posix-headers/spawn.texi: Mention the new module.
40915
40916 2008-09-28  Bruno Haible  <bruno@clisp.org>
40917
40918         * modules/sched-tests: New file.
40919         * tests/test-sched.c: New file.
40920
40921         New module 'sched'.
40922         * modules/sched: New file.
40923         * lib/sched.in.h: New file.
40924         * m4/sched_h.m4: New file.
40925         * doc/posix-headers/sched.texi: Mention the new module.
40926
40927 2008-09-27  Eric Blake  <ebb9@byu.net>
40928
40929         Fix previous patch, and tweak references to $0.
40930         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40931         (func_version, func_gnulib_dir): Don't call this program
40932         gnulib-tool.
40933         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40934         with using $0 in function.
40935         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40936         (func_fatal_error): Reuse the name the user invoked us with.
40937
40938 2008-09-27  Bruno Haible  <bruno@clisp.org>
40939
40940         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40941         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40942         (gl_ICONV_H): Not here.
40943         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40944         instead of assigning ICONV_H directly.
40945
40946         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40948         WCHAR_H directly.
40949
40950 2008-09-27  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40953         * modules/arpa_inet (Depends-on): Add link-warning.
40954         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40955         * modules/unistd (Makefile.am): Likewise.
40956
40957 2008-09-26  Bruno Haible  <bruno@clisp.org>
40958
40959         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40960         variables.
40961         (func_version): Essentially copied from gnulib-tool.
40962         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40963         func_readlink): Copied from gnulib-tool.
40964
40965 2008-09-26  Bruno Haible  <bruno@clisp.org>
40966
40967         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40968         invoking git-version-gen.
40969
40970 2008-09-26  Bruno Haible  <bruno@clisp.org>
40971
40972         * posix-modules: Update to directory names changed on 2008-01-19.
40973         Remove commas in output before splitting into words. No more need to
40974         avoid 'ftruncate' since 2007-02-19.
40975
40976 2008-09-26  Bruno Haible  <bruno@clisp.org>
40977
40978         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40979
40980 2008-09-26  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40983         * modules/fwriteerror (Depends-on): Add errno.
40984
40985 2008-09-26  Bruno Haible  <bruno@clisp.org>
40986
40987         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40988         * tests/test-vc-list-files-cvs.sh: Likewise.
40989
40990 2008-09-26  Bruno Haible  <bruno@clisp.org>
40991
40992         * doc/posix-headers/sys_resource.texi: Reorder items.
40993
40994 2008-09-26  Jim Meyering  <meyering@redhat.com>
40995
40996         fts: tweak inode comparison function
40997         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40998         inode numbers, as documented.
40999
41000         fts: sort dirent entries on inode number before traversing
41001         This avoids a quadratic, seek-related performance penalty when
41002         operating on a directory containing many entries (measurable at 10k;
41003         3.5 hours at 2 million entries with a cold cache) on certain types
41004         of file systems, including ext3 and ext4, but not tmpfs.
41005         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41006         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41007         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41008         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41009         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41010         (fts_build): Set the stat.st_ino member from D_INO.
41011         If it is likely to be useful, sort dirent entries on inode number.
41012
41013         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41014         and the struct statfs.f_type member.
41015         * modules/fts (Depends-on): Add d-ino.
41016
41017 2008-09-26  Bruno Haible  <bruno@clisp.org>
41018
41019         * modules/sigpipe-die (Depends-on): Add sigpipe.
41020
41021         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41022         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41023         and GNULIB_STDIO_H_SIGPIPE are set.
41024         * lib/stdio-write.c: New file.
41025         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41026         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41027         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41028         REPLACE_STDIO_WRITE_FUNCS.
41029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41030         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41031         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41032         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41033         * modules/stdio (Files): Add lib/stdio-write.c.
41034         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41035         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41036         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41037         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41038         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41039         REPLACE_FPRINTF_POSIX.
41040         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41041         REPLACE_PRINTF_POSIX.
41042         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41043         REPLACE_VFPRINTF_POSIX.
41044         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41045         REPLACE_VPRINTF_POSIX.
41046         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41047         SIGPIPE issue.
41048         * doc/posix-functions/fputc.texi: Likewise.
41049         * doc/posix-functions/fputs.texi: Likewise.
41050         * doc/posix-functions/fwrite.texi: Likewise.
41051         * doc/posix-functions/printf.texi: Likewise.
41052         * doc/posix-functions/putc.texi: Likewise.
41053         * doc/posix-functions/putchar.texi: Likewise.
41054         * doc/posix-functions/puts.texi: Likewise.
41055         * doc/posix-functions/vfprintf.texi: Likewise.
41056         * doc/posix-functions/vprintf.texi: Likewise.
41057
41058         * modules/safe-write (Depends-on): Add write.
41059
41060         * modules/sigpipe-tests: New file.
41061         * tests/test-sigpipe.c: New file.
41062         * tests/test-sigpipe.sh: New file.
41063
41064         * modules/write: New file.
41065         * lib/unistd.in.h: Include <sys/types.h>.
41066         (write): New declaration.
41067         * lib/write.c: New file.
41068         * m4/write.m4: New file.
41069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41070         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41071         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41072         GNULIB_WRITE, REPLACE_WRITE.
41073         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41074         and the SIGPIPE issue.
41075
41076         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41077         (raise): New declaration.
41078         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41079         (ext_signal): New function.
41080         (rpl_raise): New function.
41081         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41082         GNULIB_SIGNAL_H_SIGPIPE.
41083         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41084         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41085
41086         * modules/sigpipe: New file.
41087         * m4/sigpipe.m4: New file.
41088
41089 2008-09-25  Derek Price  <derek@ximbiot.com>
41090             Bruno Haible  <bruno@clisp.org>
41091
41092         * gnulib-tool (func_import): Report all license incompatibilities, not
41093         just the first one.
41094
41095 2008-09-25  Bruno Haible  <bruno@clisp.org>
41096
41097         * gnulib-tool (func_import): When computing the edits, consider not
41098         only the Makefile.ams that exist but also those that will be generated.
41099
41100 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41101
41102         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41103         fixes gnulib-tool --test warning about duplicate dependency.
41104
41105 2008-09-25  Bruno Haible  <bruno@clisp.org>
41106
41107         * gnulib-tool: Don't ask the user to perform edits in the generated
41108         Makefile.ams.
41109         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41110         apply to the Makefile.am being generated.
41111         (func_emit_tests_Makefile_am): Execute edits that apply to the
41112         Makefile.am being generated.
41113         (func_import): Setup list of Makefile.am edits before emitting the
41114         Makefile.ams, not at the end.
41115         (func_create_testdir): Update.
41116         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41117
41118 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41119
41120         * gnulib-tool (func_import): Store the --tests-base option in the
41121         comment in gnulib-cache.m4.
41122
41123 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41124
41125         * NEWS: Document increased portability that sys_select now provides.
41126
41127         * lib/sys_select.in.h: Install select wrapper.
41128         * lib/sys_socket.in.h: Use more descriptive name when there is no
41129         select wrapper.
41130         * lib/winsock-select.c: New.
41131         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41132         Require gl_HEADER_SYS_SOCKET.
41133         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41134         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41135         * tests/test-sys_select.c: Add functional tests.
41136
41137 2008-09-24  Eric Blake  <ebb9@byu.net>
41138
41139         open, fopen: close fd leak in last patch
41140         * lib/open.c (rpl_open): Close fd before returning error.
41141         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41142         * doc/posix-functions/open.texi (open): Document that Irix also
41143         has the bug.
41144         * doc/posix-functions/fopen.texi (fopen): Likewise.
41145         Reported by Paolo Bonzini.
41146
41147 2008-09-24  Bruno Haible  <bruno@clisp.org>
41148
41149         Ensure that a filename ending in a slash cannot be used to access a
41150         non-directory.
41151         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41152         to check whether it's really a directory.
41153         * lib/fopen.c: Include fcntl.h, unistd.h.
41154         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41155         and fdopen().
41156         * modules/fopen (Depends-on): Add unistd.
41157         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41158         * tests/test-fopen.c (main): Likewise.
41159         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41160         * doc/posix-functions/fopen.texi: Likewise.
41161         Reported by Eric Blake.
41162
41163 2008-09-23  Eric Blake  <ebb9@byu.net>
41164
41165         c-stack: avoid compiler optimizations when provoking overflow
41166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41167         recursion harder to optimize, to ensure a stack overflow occurs.
41168         * tests/test-c-stack.c (recurse): Likewise.
41169         Borrowed from libsigsegv.
41170
41171         c-stack: work around Irix sigaltstack bug
41172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41173         whether sigaltstack uses wrong end of stack_t (copied in part from
41174         libsigsegv).
41175         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41176         Irix bug, without requiring an over-allocation.
41177         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41178         bug.
41179
41180         fopen: document mingw bug on directories
41181         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41182         not allowing a stream visiting a directory, even though reading
41183         from such a stream is not portable.
41184
41185 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41186
41187         * lib/poll.c: Rewrite.
41188         * modules/poll: Depend on alloca.
41189
41190 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41191
41192         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41193         instead define prototypes for a full set of wrappers.  Ensure
41194         that Cygwin does not use the compatibility code, which is only
41195         for MinGW.
41196         * lib/winsock.c: New.
41197         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41198         * modules/sys_socket: Add lib/winsock.c.
41199
41200         * modules/poll-tests: Add errno and perror.
41201         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41202
41203 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41204
41205         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41206
41207 2008-09-23  Bruno Haible  <bruno@clisp.org>
41208
41209         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41210         * doc/glibc-functions/*: Likewise.
41211
41212 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41213
41214         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41215         success.
41216
41217 2008-09-22  Eric Blake  <ebb9@byu.net>
41218             Bruno Haible  <bruno@clisp.org>
41219
41220         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41221         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41222         supply %A but mishandle pseudo-NaN.
41223         Reported by Simon Josefsson.
41224
41225 2008-09-21  Bruno Haible  <bruno@clisp.org>
41226
41227         * tests/test-lock.c (main): Tweak skip message.
41228         * tests/test-tls.c (main): Likewise.
41229
41230 2008-09-21  Bruno Haible  <bruno@clisp.org>
41231
41232         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41233         whether 'struct sigaction' has sa_sigaction here...
41234         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41235         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41236
41237 2008-09-21  Bruno Haible  <bruno@clisp.org>
41238
41239         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41240         section.
41241         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41242         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41243         the new section.
41244         (Support for obsolete systems lacking POSIX:2001): New section.
41245         (String handling <string.h>): Move strdup to the new section.
41246         Suggested by Simon Josefsson and Paolo Bonzini.
41247
41248 2008-09-21  Bruno Haible  <bruno@clisp.org>
41249
41250         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41251         exponents in %e and %g results on 'long double'. Needed for mingw's
41252         improved *printf functions.
41253         * tests/test-vasprintf-posix.c (test_function): Likewise.
41254         * tests/test-snprintf-posix.h (test_function): Likewise.
41255         * tests/test-sprintf-posix.h (test_function): Likewise.
41256         Reported by Eric Blake.
41257
41258 2008-09-21  Bruno Haible  <bruno@clisp.org>
41259
41260         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41261         * tests/test-sprintf-posix.h (test_function): Likewise.
41262
41263 2008-09-21  Bruno Haible  <bruno@clisp.org>
41264
41265         * modules/getpass (Depends-on): Add strdup-posix.
41266
41267         New module 'strdup-posix'.
41268         * modules/strdup-posix: New file.
41269         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41270         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41272         REPLACE_STRDUP.
41273         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41274         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41276         strdup-posix.
41277
41278         * modules/strdup (Depends-on): Remove malloc-posix.
41279
41280 2008-09-20  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41283         Wildenhues.
41284
41285 2008-09-20  Bruno Haible  <bruno@clisp.org>
41286
41287         Ensure that wint_t gets defined on IRIX 5.3.
41288         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41289         * lib/wctype.in.h (wint_t): Likewise.
41290         (__wctype_wint_t): Remove type.
41291         (isw*): Use wint_t instead of __wctype_wint_t.
41292         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41293         * modules/wchar (Files): Add m4/wint_t.m4.
41294         (Makefile.am): Substitute HAVE_WINT_T.
41295         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41296         * tests/test-wctype.c: Check that wint_t is defined.
41297         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41298         * doc/posix-headers/wctype.texi: Likewise.
41299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41300
41301 2008-09-18  Bruno Haible  <bruno@clisp.org>
41302
41303         * gnulib-tool (func_exit): Update comment.
41304
41305 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41306
41307         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41308         assumes strdup exists and does not depend on strdup to return
41309         ENOMEM on out of memory conditions.
41310
41311 2008-09-18  Bruno Haible  <bruno@clisp.org>
41312
41313         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41314         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41315         digits for the exponent.
41316
41317 2008-09-18  Jim Meyering  <meyering@redhat.com>
41318             Bruno Haible  <bruno@clisp.org>
41319
41320         * lib/vasnprintf.c (decimal_point_char): Define also if
41321         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41322
41323 2008-09-16  Bruno Haible  <bruno@clisp.org>
41324         and Eric Blake  <ebb9@byu.net>
41325
41326         vasnprintf: support Irix 5.3
41327         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41328         that mishandle long double infinity.
41329         Reported by Tom G. Christensen.
41330
41331 2008-09-16  Bruno Haible  <bruno@clisp.org>
41332
41333         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41334         Solaris 9.
41335         * doc/glibc-functions/alphasort.texi: Likewise.
41336         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41337
41338 2008-09-16  Jim Meyering  <meyering@redhat.com>
41339
41340         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41341         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41342         a umask modification leak out of a subshell.  Otherwise, the
41343         opensolaris /bin/sh would be accepted and thus cause unwarranted
41344         failures in the coreutils test suite.
41345
41346 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41347
41348         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41349         to succeed.
41350
41351 2008-09-16  Jim Meyering  <meyering@redhat.com>
41352
41353         avoid spurious test failure when library is built without ACL support
41354         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41355         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41356         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41357         * tests/test-copy-acl.sh: Likewise.
41358
41359 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41360
41361         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41362         based on character occurrence counts.
41363
41364 2008-09-15  Eric Blake  <ebb9@byu.net>
41365
41366         tests: avoid some compiler warnings
41367         * tests/test-memchr.c (main): Pass NULL indirectly.
41368         * tests/test-closein.c (main): Avoid unused variable.
41369
41370 2008-09-15  Bruno Haible  <bruno@clisp.org>
41371
41372         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41373         are missing on OpenBSD 4.0 individually.
41374         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41375
41376 2008-09-15  Bruno Haible  <bruno@clisp.org>
41377
41378         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41379         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41380         * doc/posix-functions/perror.texi: Likewise.
41381         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41382         is missing.
41383         Reported by Eric Blake.
41384
41385         * lib/errno.in.h: Use replacement values >= 2000.
41386         Reported by Eric Blake.
41387
41388 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41389
41390         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41391         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41392         limit.
41393         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41394         compareseq was aborted.
41395
41396 2008-09-14  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41399         yvec_edit_count.
41400         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41401         (fstrcmp_bounded): Simplify result computation accordingly.
41402
41403 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41404
41405         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41406         (fstrcmp): Define in terms of fstrcmp_bounded.
41407         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41408         lower_bound argument.
41409         Return quickly if the result is certainly < lower_bound.
41410         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41411
41412 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41413
41414         * lib/diffseq.h (EARLY_ABORT): New macro.
41415         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41416         evaluates to true.
41417
41418 2008-09-14  Bruno Haible  <bruno@clisp.org>
41419
41420         * modules/perror-tests: New file.
41421         * tests/test-perror.sh: New file.
41422         * tests/test-perror.c: New file.
41423
41424         New module 'perror'.
41425         * lib/stdio.in.h (perror): New declaration.
41426         * lib/perror.c: New file.
41427         * m4/perror.m4: New file.
41428         * modules/perror: New file.
41429         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41430         * doc/posix-functions/perror.texi: Mention the perror module.
41431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41432         REPLACE_PERROR.
41433         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41434         REPLACE_PERROR.
41435
41436 2008-09-14  Bruno Haible  <bruno@clisp.org>
41437
41438         * modules/stdio (Makefile.am): Reorder to match the order in
41439         lib/stdio.in.h.
41440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41441
41442 2008-09-13  Bruno Haible  <bruno@clisp.org>
41443
41444         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41445
41446 2008-09-13  Bruno Haible  <bruno@clisp.org>
41447
41448         Extend strerror to cover the added errno values.
41449         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41450         (rpl_strerror): Provide error messages for the added errno values and
41451         for the WSA* values.
41452         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41453         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41454         strerror.
41455         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41456         * modules/strerror (Depends-on): Add errno.
41457         * doc/posix-functions/strerror.texi: Document the change.
41458         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41459         and EOVERFLOW.
41460
41461 2008-09-13  Bruno Haible  <bruno@clisp.org>
41462
41463         * modules/EOVERFLOW: Remove file.
41464         * m4/eoverflow.m4: Remove file.
41465         * modules/EOVERFLOW-tests: Remove file.
41466         * tests/test-EOVERFLOW.c: Remove file.
41467         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41468         * modules/ftell (Depends-on): Likewise.
41469         * modules/getdelim (Depends-on): Likewise.
41470         * modules/getugroups (Depends-on): Likewise.
41471         * modules/poll (Depends-on): Likewise.
41472         * modules/snprintf (Depends-on): Likewise.
41473         * modules/sprintf-posix (Depends-on): Likewise.
41474         * modules/vasnprintf (Depends-on): Likewise.
41475         * modules/vasprintf (Depends-on): Likewise.
41476         * modules/vfprintf-posix (Depends-on): Likewise.
41477         * modules/vsnprintf (Depends-on): Likewise.
41478         * modules/vsprintf-posix (Depends-on): Likewise.
41479         * modules/xvasprintf (Depends-on): Likewise.
41480         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41481         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41482         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41483         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41484         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41485         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41486         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41487         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41489         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41490         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41491         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41492         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41493         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41494         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41495         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41496         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41497         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41498         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41499         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41500         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41501         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41502         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41503         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41504         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41505         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41506         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41507         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41508         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41509         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41510         * MODULES.html.sh: Remove EOVERFLOW.
41511         * NEWS: Mention the change.
41512
41513 2008-09-13  Bruno Haible  <bruno@clisp.org>
41514
41515         * modules/errno-tests: New file.
41516         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41517
41518         * lib/errno.in.h: New file.
41519         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41520         * modules/errno: New file.
41521         * doc/posix-headers/errno.texi: Update documentation.
41522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41523
41524 2008-09-13  Bruno Haible  <bruno@clisp.org>
41525
41526         * tests/test-poll.c: Use #if for native Windows, rather than testing
41527         __MSVCRT__.
41528
41529 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41530             Bruno Haible  <bruno@clisp.org>
41531
41532         * lib/glob.c: Don't include <pwd.h> on native Windows.
41533         (WINDOWS32): New macro.
41534         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41535
41536 2008-09-13  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41539         (ETIMEDOUT): Remove macro.
41540         (glthread_cond_timedwait_multithreaded): New declaration.
41541         (glthread_cond_timedwait): Use it.
41542         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41543         (glthread_cond_timedwait_multithreaded): New function.
41544
41545 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41546
41547         * modules/poll-tests: Do not check for io.h.
41548         * tests/test-poll.c: Check for __MSVCRT__ instead.
41549
41550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41551
41552         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41553         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41554         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41555
41556 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41557
41558         * modules/poll-tests: New.
41559         * tests/test-poll.c: New.
41560
41561 2008-09-12  Eric Blake  <ebb9@byu.net>
41562
41563         frexp: test for NetBSD failure on -0.0
41564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41565         not all, bugs from NetBSD 3.0 have been fixed.
41566         * doc/posix-functions/frexp.texi (frexp): Document bug.
41567         Reported by Thomas Klausner.
41568
41569         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41570         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41571         literal -0.0.
41572         Reported by Jonathan C. Patschke <jp@centtech.com>.
41573
41574 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41575
41576         * lib/glthread/cond.h: Use dummy implementation also if
41577         USE_WIN32_THREADS.
41578
41579 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41580
41581         * modules/fnmatch-posix (License): Change to LGPLv2+.
41582         * modules/fnmatch-gnu (License): Likewise.
41583
41584 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41585
41586         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41587
41588 2008-09-11  Jim Meyering  <meyering@redhat.com>
41589
41590         * users.txt: Add gtk-vnc.
41591
41592 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41593
41594         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41595         rotate amounts.
41596
41597         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41598         required for 16-bit and 8-bit rotates.
41599         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41600         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41601         UINT8_MAX instead of hard-coded constants.
41602         Suggested by Paul Eggert.
41603
41604 2008-09-07  Bruno Haible  <bruno@clisp.org>
41605
41606         * tests/test-striconveh.c (main): Check behaviour when converting from
41607         UTF-7.
41608
41609         Make striconveh work better with stateful encodings.
41610         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41611         that iconv does not increment the inptr when returning -1/EINVAL.
41612
41613 2008-09-07  Bruno Haible  <bruno@clisp.org>
41614
41615         * build-aux/config.rpath: Update according to libtool-2.2.6.
41616         * build-aux/config.libpath: Likewise.
41617
41618 2008-09-06  Bruno Haible  <bruno@clisp.org>
41619
41620         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41621         * lib/freadptr.c (freadptr): Likewise.
41622         * lib/freadseek.c (freadptrinc): Likewise.
41623         Reported by Simon Josefsson.
41624
41625 2008-09-06  Bruno Haible  <bruno@clisp.org>
41626
41627         * modules/freadptr (License): Change to LGPLv2+.
41628         * modules/freadseek (License): Likewise.
41629         Suggested by Eric Blake.
41630
41631         * modules/memchr2 (License): Change to LGPLv2+.
41632         Approved by Eric Blake.
41633
41634 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41635             Bruno Haible  <bruno@clisp.org>
41636
41637         Make gnulib-tool work with native 'sed' on AIX.
41638         * gnulib-tool (sed_noop): New variable.
41639         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41640         func_add_or_update, func_create_testdir): Use it to initialize sed
41641         script variables.
41642         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41643
41644 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41645             Bruno Haible  <bruno@clisp.org>
41646
41647         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41648         also works after #include directives.
41649
41650 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41651
41652         getdate.y: reject an out-of-range timezone value
41653         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41654         the range [-24...+24].  When specified with only one or two digits,
41655         * tests/test-getdate.c: Tests for the fix.
41656         * doc/getdate.texi: Document this change.
41657
41658 2008-09-03  Bruno Haible  <bruno@clisp.org>
41659
41660         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41661
41662 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41663
41664         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41665         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41666         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41667         Blake <ebb9@byu.net>.
41668
41669         * tests/test-bitrotate.c: Add more test vectors.
41670
41671 2008-09-02  Eric Blake  <ebb9@byu.net>
41672
41673         vasnprintf-posix: handle large precision via %.*d
41674         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41675         when handling it ourselves.
41676         * tests/test-vasnprintf-posix.c (test_function): Add test.
41677         * tests/test-snprintf-posix.h (test_function): Likewise.
41678         * tests/test-sprintf-posix.h (test_function): Likewise.
41679         * tests/test-vasprintf-posix.c (test_function): Likewise.
41680         Reported by Alain Guibert.
41681
41682 2008-09-01  Eric Blake  <ebb9@byu.net>
41683
41684         c-stack: make configure-time check more robust
41685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41686         successful sigaction call.
41687         Reported by Tom G. Christensen.
41688
41689 2008-09-01  Bruno Haible  <bruno@clisp.org>
41690
41691         New module 'findprog-lgpl'.
41692         * modules/findprog-lgpl: New file.
41693         * lib/findprog-lgpl.c: New file.
41694         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41695         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41696         to decide whether to use strdup or xstrdup, concatenated_filename or
41697         xconcatenated_filename.
41698
41699 2008-09-01  Bruno Haible  <bruno@clisp.org>
41700
41701         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41702         'xconcat-filename' (GPL).
41703         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41704         (License): Change to LGPLv2+.
41705         * modules/xconcat-filename: New file.
41706         * lib/concat-filename.h (concatenated_filename): Change specification.
41707         (xconcatenated_filename): New declaration.
41708         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41709         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41710         memory situations.
41711         * lib/xconcat-filename.c: New file.
41712         * NEWS: Mention the change.
41713         * lib/findprog.c: Include concat-filename.h, not filename.h.
41714         (find_in_path): Use xconcatenated_filename instead of
41715         concatenated_filename.
41716         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41717         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41718         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41719         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41720         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41721         instead of concatenated_filename.
41722         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41723         (execute_java_class): Use xconcatenated_filename instead of
41724         concatenated_filename.
41725         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41726         * modules/javacomp (Depends-on): Likewise.
41727         * modules/javaexec (Depends-on): Likewise.
41728
41729 2008-09-01  Bruno Haible  <bruno@clisp.org>
41730
41731         Split module 'filename' into 'filename' and 'concat-filename'.
41732         * modules/filename: Keep only lib/filename.h.
41733         (License): Change to LGPLv2+.
41734         * modules/concat-filename: New file, extracted from modules/filename.
41735         * lib/filename.h (concatenated_filename): Remove declaration.
41736         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41737         * lib/concat-filename.c: Include concat-filename.h.
41738         * NEWS: Mention the change.
41739
41740 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41741
41742         * lib/bitrotate.h (rotl8, rotr8): Add.
41743
41744         * modules/bitrotate (configure.ac): Need
41745         AC_REQUIRE([AC_C_INLINE]).
41746         (Description): Mention stdint.h.  Reported by Bruno Haible
41747         <bruno@clisp.org>.
41748
41749         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41750         Paolo Bonzini <bonzini@gnu.org>.
41751
41752 2008-08-31  Bruno Haible  <bruno@clisp.org>
41753
41754         Assume Solaris specific bi-arch conventions on Solaris systems.
41755         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41756         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41757         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41758         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41759         like acl_libdirstem.
41760         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41761         acl_libdirstem.
41762         * NEWS: Mention the change.
41763         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41764
41765 2008-08-31  Jim Meyering  <meyering@redhat.com>
41766
41767         * lib/strftime.h: Add comments describing the two added arguments.
41768
41769         remove duplicate #include directives
41770         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41771         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41772
41773 2008-08-31  Bruno Haible  <bruno@clisp.org>
41774
41775         New module 'sigpipe-die'.
41776         * modules/sigpipe-die: New file.
41777         * lib/sigpipe-die.h: New file.
41778         * lib/sigpipe-die.c: New file.
41779         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41780
41781 2008-08-31  Bruno Haible  <bruno@clisp.org>
41782
41783         Don't override previously installed signal handlers.
41784         * lib/fatal-signal.c (saved_sigactions): New variable.
41785         (uninstall_handlers): Reset the signal to the saved handler, not
41786         to SIG_DFL (except when ignored).
41787         (install_handlers): Save the previous handlers.
41788
41789 2008-08-30  Bruno Haible  <bruno@clisp.org>
41790
41791         * gnulib-tool (func_reset_sigpipe): New function.
41792         (func_get_automake_snippet, func_modules_transitive_closure,
41793         func_import): Invoke it before a join command that reads from stdin,
41794         to avoid "echo: write error: Broken pipe" error messages on stderr.
41795         Reported by Sam Steingold <sds@gnu.org>.
41796
41797 2008-08-30  Bruno Haible  <bruno@clisp.org>
41798
41799         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41800         Code copied from m4/open.m4.
41801         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41802         access and the filename ends in a slash. Code copied from lib/open.c.
41803         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41804         * tests/test-fopen.c (main): Check against bug with trailing slash.
41805
41806 2008-08-29  Bruno Haible  <bruno@clisp.org>
41807
41808         Avoid some "gcc -pedantic" warnings.
41809         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41810         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41811         * lib/dirent.in.h: Likewise.
41812         * lib/fcntl.in.h: Likewise.
41813         * lib/float.in.h: Likewise.
41814         * lib/iconv.in.h: Likewise.
41815         * lib/inttypes.in.h: Likewise.
41816         * lib/locale.in.h: Likewise.
41817         * lib/math.in.h: Likewise.
41818         * lib/netinet_in.in.h: Likewise.
41819         * lib/search.in.h: Likewise.
41820         * lib/signal.in.h: Likewise.
41821         * lib/stdarg.in.h: Likewise.
41822         * lib/stdint.in.h: Likewise.
41823         * lib/stdio.in.h: Likewise.
41824         * lib/stdlib.in.h: Likewise.
41825         * lib/string.in.h: Likewise.
41826         * lib/strings.in.h: Likewise.
41827         * lib/sys_select.in.h: Likewise.
41828         * lib/sys_socket.in.h: Likewise.
41829         * lib/sys_stat.in.h: Likewise.
41830         * lib/sys_time.in.h: Likewise.
41831         * lib/sysexits.in.h: Likewise.
41832         * lib/time.in.h: Likewise.
41833         * lib/unistd.in.h: Likewise.
41834         * lib/wchar.in.h: Likewise.
41835         * lib/wctype.in.h: Likewise.
41836         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41837         * modules/fchdir (Makefile.am): Likewise.
41838         * modules/fcntl (Makefile.am): Likewise.
41839         * modules/float (Makefile.am): Likewise.
41840         * modules/iconv_open (Makefile.am): Likewise.
41841         * modules/inttypes (Makefile.am): Likewise.
41842         * modules/locale (Makefile.am): Likewise.
41843         * modules/math (Makefile.am): Likewise.
41844         * modules/netinet_in (Makefile.am): Likewise.
41845         * modules/search (Makefile.am): Likewise.
41846         * modules/signal (Makefile.am): Likewise.
41847         * modules/stdarg (Makefile.am): Likewise.
41848         * modules/stdint (Makefile.am): Likewise.
41849         * modules/stdio (Makefile.am): Likewise.
41850         * modules/stdlib (Makefile.am): Likewise.
41851         * modules/string (Makefile.am): Likewise.
41852         * modules/strings (Makefile.am): Likewise.
41853         * modules/sys_select (Makefile.am): Likewise.
41854         * modules/sys_socket (Makefile.am): Likewise.
41855         * modules/sys_stat (Makefile.am): Likewise.
41856         * modules/sys_time (Makefile.am): Likewise.
41857         * modules/sysexits (Makefile.am): Likewise.
41858         * modules/time (Makefile.am): Likewise.
41859         * modules/unistd (Makefile.am): Likewise.
41860         * modules/wchar (Makefile.am): Likewise.
41861         * modules/wctype (Makefile.am): Likewise.
41862         Reported by Reuben Thomas <rrt@sc3d.org>.
41863
41864 2008-08-29  Bruno Haible  <bruno@clisp.org>
41865
41866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41867         any more.
41868
41869 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41870
41871         * MODULES.html.sh (Misc): Add bitrotate.
41872
41873         * modules/bitrotate: New file.
41874
41875         * lib/bitrotate.h: New file.
41876
41877         * modules/bitrotate-tests: New file.
41878
41879         * tests/test-bitrotate.c: New file.
41880
41881         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41882         on the bitrotate module.
41883
41884         * lib/arctwo.c: Use new bitrotate module.
41885
41886 2008-08-29  Jim Meyering  <meyering@redhat.com>
41887
41888         bootstrap: merge changes from coreutils
41889         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41890         of copied files.  Remove a kludge, now that this is fixed.
41891         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41892         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41893         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41894
41895 2008-08-29  Bruno Haible  <bruno@clisp.org>
41896
41897         * MODULES.html.sh: Remove --cvs-urls option.
41898
41899 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41900
41901         maint.mk: adjust to file name change
41902         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41903
41904 2008-08-28  Jim Meyering  <meyering@redhat.com>
41905
41906         * modules/getndelim2 (License): Relicense to LGPLv2+.
41907         Approved by Richard Stallman for the version of 1995, and by
41908         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41909
41910 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41911
41912         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41913         dummy if one is not available.  Do not touch them if
41914         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41915         (getc_maybe_unlocked): New.
41916         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41917
41918 2008-08-26  Eric Blake  <ebb9@byu.net>
41919
41920         doc/INSTALL: resync from autoconf
41921         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41922         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41923         moving...
41924         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41925         * INSTALL: Regenerate.
41926         * INSTALL.ISO: New file.
41927         * INSTALL.UTF-8: Likewise.
41928
41929 2008-08-26  Jim Meyering  <meyering@redhat.com>
41930
41931         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41932         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41933         these definitions conditional, so that they may be overridden, too.
41934
41935 2008-08-26  Bruno Haible  <bruno@clisp.org>
41936
41937         Generate INSTALL file variants with prettier quotes.
41938         * doc/Makefile (INSTALL_PRELUDE): New macro.
41939         (INSTALL): Use it.
41940         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41941
41942 2008-08-26  Bruno Haible  <bruno@clisp.org>
41943
41944         Run makeinfo in an English locale.
41945         * doc/Makefile (MAKEINFO): New variable.
41946
41947 2008-08-26  Bruno Haible  <bruno@clisp.org>
41948
41949         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41950         Suggested by Eric Blake.
41951
41952 2008-08-25  Bruno Haible  <bruno@clisp.org>
41953
41954         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41955
41956 2008-08-25  Eric Blake  <ebb9@byu.net>
41957
41958         c-stack: test that stack overflow can be caught
41959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41960         that platform allows handling stack overflow; at least OS/2 EMX
41961         has sigaltstack, but crashes before transferring control to
41962         handler on stack overflow.
41963         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41964         check for HAVE_STACK_OVERFLOW_HANDLING.
41965         Reported by Elbert Pol.
41966
41967 2008-08-25  Bruno Haible  <bruno@clisp.org>
41968
41969         * doc/posix-functions/strftime.texi: Fix description of strftime
41970         module.
41971
41972 2008-08-24  Bruno Haible  <bruno@clisp.org>
41973
41974         * tests/uniwidth/test-uc_width2.c: New file.
41975         * tests/uniwidth/test-uc_width2.sh: New file.
41976         * modules/uniwidth/width-tests (Files): Add the new files.
41977         (TESTS): Add uniwidth/test-uc_width2.sh.
41978         (TESTS_ENVIRONMENT): New variable.
41979         (check_PROGRAMS): Add test-uc_width2.
41980         (test_uc_width2_SOURCES): New variable.
41981
41982         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41983         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41984         not 0x00AB.
41985         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41986
41987 2008-08-22  Eric Blake  <ebb9@byu.net>
41988
41989         test-lock, test-tls: mention why a test is skipped
41990         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41991         skipped.
41992         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41993
41994         count-one-bits: relax license
41995         * modules/count-one-bits (License): Relicense to LGPLv2+.
41996         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41997
41998 2008-08-22  Andreas Schwab  <schwab@suse.de>
41999
42000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42001         Remove spurious space in assignment.
42002
42003 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42004
42005         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42006         Paul Eggert <eggert@CS.UCLA.EDU>.
42007
42008 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42009
42010         * modules/gettext: Add m4/threadlib.m4.
42011
42012 2008-08-19  Eric Blake  <ebb9@byu.net>
42013
42014         test-c-stack: fix compilation failure on FreeBSD 5.0
42015         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42016         headers before <sys/resource.h>.
42017         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42018         the bug.
42019         Reported by Nelson H. F. Beebe.
42020
42021         strverscmp: migrate from "strverscmp.h" to <string.h>
42022         * modules/string (Makefile.am): Add new hooks.
42023         * modules/strverscmp (Files): Remove strverscmp.h.
42024         (Depends-on): Add string.
42025         (configure.ac): Add indicator.
42026         (Include): Mention new header.
42027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42028         defaults.
42029         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42030         results.
42031         * lib/strverscmp.h: Delete.
42032         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42033         * tests/test-strverscmp.c (includes): Adjust client.
42034         * lib/check-version.c (includes): Likewise.
42035         * NEWS: Document the change.
42036
42037         strverscmp: add unit test
42038         * modules/strverscmp-tests: New file.
42039         * tests/test-strverscmp.c: Likewise.
42040
42041 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42042
42043         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42044         regarding Windows crypto stuff, from Mono.
42045
42046 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42047
42048         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42049         if present, for intel RND.  Return error on failures.
42050
42051 2008-08-18  Ben Pfaff  <blp@gnu.org>
42052
42053         gitlog-to-changelog: give better diagnostic for failed pipe-open
42054         * build-aux/gitlog-to-changelog: Improve error message: suggest
42055         that the version of Git may be too old.
42056
42057 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42058
42059         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42060         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42061
42062 2008-08-18  Bruno Haible  <bruno@clisp.org>
42063
42064         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42065         pthread_in_use().
42066
42067 2008-08-18  Bruno Haible  <bruno@clisp.org>
42068
42069         * lib/glthread/threadlib.c: Include <pthread.h>.
42070
42071 2008-08-18  Bruno Haible  <bruno@clisp.org>
42072
42073         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42074         glthread_recursive_lock_* macros.
42075         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42076         Fix syntax error.
42077
42078 2008-08-18  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/glthread/thread.c: Avoid forcing a context switch right after
42081         thread creation.
42082
42083 2008-08-17  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42086         * lib/glthread/thread.h: Provide Win32 specific implementation.
42087         * modules/thread (Files): Add lib/glthread/thread.c.
42088         (Depends-on): Add lock.
42089         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42090
42091 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42092
42093         New module 'yield'.
42094         * modules/yield: New file.
42095         * lib/glthread/yield.h: New file.
42096         * m4/yield.m4: New file.
42097         * MODULES.html.sh (Multithreading): Add yield.
42098
42099 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42100
42101         New module 'thread'.
42102         * modules/thread: New file.
42103         * lib/glthread/thread.h: New file.
42104         * m4/thread.m4: New file.
42105         * MODULES.html.sh (Multithreading): Add thread.
42106
42107 2008-08-17  Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/glthread/lock.h: Include <stdlib.h> always.
42110         * lib/glthread/tls.h: Likewise.
42111         * lib/glthread/cond.h: Likewise.
42112
42113 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42114
42115         New module 'cond'.
42116         * modules/cond: New file.
42117         * lib/glthread/cond.h: New file.
42118         * lib/glthread/cond.c: New file.
42119         * m4/cond.m4: New file.
42120         * MODULES.html.sh (Multithreading): Add cond.
42121
42122 2008-08-16  Eric Blake  <ebb9@byu.net>
42123
42124         c-stack: fix regression on Irix 5.3 from 2008-06-21
42125         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42126         sa_sigaction...
42127         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42128         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42129         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42130         * modules/signal (Makefile.am): Use the value.
42131         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42132         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42133         * doc/posix-headers/signal.texi (signal.h): Document this
42134         portability issue.
42135         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42136         Reported by Tom G. Christensen.
42137
42138 2008-08-17  Bruno Haible  <bruno@clisp.org>
42139
42140         New module 'threadlib'.
42141         * modules/threadlib: New file.
42142         * lib/glthread/threadlib.c: New file, extracted from
42143         lib/glthread/lock.c.
42144         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42145         functions.
42146         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42147         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42148         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42149         macros.
42150         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42151         (gl_DISABLE_THREADS): Remove macro.
42152         * modules/lock (Files): Remove build-aux/config.rpath.
42153         (Depends-on): Remove havelib. Add threadlib.
42154         (configure.ac-early): Remove section.
42155         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42156         * modules/tls (Depends-on): Remove lock. Add threadlib.
42157         (Link): New section, copied from threadlib.
42158         * MODULES.html.sh (Multithreading): Add threadlib.
42159
42160 2008-08-14  Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42163         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42164         glthread_rwlock_unlock, glthread_rwlock_destroy,
42165         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42166         glthread_recursive_lock_destroy): Define as macros always.
42167         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42168         glthread_lock_lock.
42169         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42170         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42171         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42172         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42173         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42174         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42175         (glthread_recursive_lock_lock_func): Renamed from
42176         glthread_recursive_lock_lock.
42177         (glthread_recursive_lock_unlock_func): Renamed from
42178         glthread_recursive_lock_unlock.
42179         (glthread_recursive_lock_destroy_func): Renamed from
42180         glthread_recursive_lock_destroy.
42181
42182 2008-08-14  Bruno Haible  <bruno@clisp.org>
42183
42184         * lib/glthread/lock.h: Renamed from lib/lock.h.
42185         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42186         * lib/glthread/tls.h: Renamed from lib/tls.h.
42187         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42188         * lib/fstrcmp.c: Update includes.
42189         * lib/strsignal.c: Update includes.
42190         * modules/lock (Files, Makefile.am): Update.
42191         (Include): Change to "glthread/lock.h".
42192         * modules/tls (Files, Makefile.am): Update.
42193         (Include): Change to "glthread/tls.h".
42194         * tests/test-lock.c: Update includes.
42195         * tests/test-tls.c: Update includes.
42196         * NEWS: Mention the renamed header files.
42197
42198 2008-08-11  Jim Meyering  <meyering@redhat.com>
42199
42200         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42201
42202 2008-08-11  Eric Blake  <ebb9@byu.net>
42203
42204         test-c-stack: avoid C99-ism
42205         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42206         before statement.
42207         Reported by Alain Guibert.
42208
42209 2008-08-10  Jim Meyering  <meyering@redhat.com>
42210
42211         ensure that return value of uinttostr et al are not ignored
42212         * lib/inttostr.h (__GNUC_PREREQ): Define.
42213         (__attribute_warn_unused_result__): Define.
42214         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42215
42216 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42217
42218         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42219         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42220
42221 2008-08-07  Jim Meyering  <meyering@redhat.com>
42222
42223         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42224
42225         * modules/mkstemp (License): Relicense under LGPLv2+.
42226         * modules/tempname (License): Likewise.
42227
42228 2008-08-06  Bruno Haible  <bruno@clisp.org>
42229
42230         * lib/poll.c (poll): Further micro-optimization.
42231
42232 2008-08-06  Jim Meyering  <meyering@redhat.com>
42233
42234         inet_pton.c: use locale-independent tolower
42235         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42236         (inet_pton6): Use c_tolower rather than tolower.
42237         * modules/inet_pton (Depends-on): Add c-ctype.
42238
42239 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42240
42241         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42242         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42243
42244 2008-08-06  Jim Meyering  <meyering@redhat.com>
42245
42246         * modules/inet_pton (License): Relicense under LGPLv2+.
42247
42248 2008-08-03  Bruno Haible  <bruno@clisp.org>
42249
42250         Additional non-aborting API for lock and tls.
42251         * lib/lock.h: Include <errno.h>.
42252         (glthread_lock_init): New macro/function.
42253         (gl_lock_init): Define as wrapper around glthread_lock_init.
42254         (glthread_lock_lock): New macro/function.
42255         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42256         (glthread_lock_unlock): New macro/function.
42257         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42258         (glthread_lock_destroy): New macro/function.
42259         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42260         (glthread_rwlock_init): New macro/function.
42261         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42262         (glthread_rwlock_rdlock): New macro/function.
42263         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42264         (glthread_rwlock_wrlock): New macro/function.
42265         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42266         (glthread_rwlock_unlock): New macro/function.
42267         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42268         (glthread_rwlock_destroy): New macro/function.
42269         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42270         (glthread_recursive_lock_init): New macro/function.
42271         (gl_recursive_lock_init): Define as wrapper around
42272         glthread_recursive_lock_init.
42273         (glthread_recursive_lock_lock): New macro/function.
42274         (gl_recursive_lock_lock): Define as wrapper around
42275         glthread_recursive_lock_lock.
42276         (glthread_recursive_lock_unlock): New macro/function.
42277         (gl_recursive_lock_unlock): Define as wrapper around
42278         glthread_recursive_lock_unlock.
42279         (glthread_recursive_lock_destroy): New macro/function.
42280         (gl_recursive_lock_destroy): Define as wrapper around
42281         glthread_recursive_lock_destroy.
42282         (glthread_once): New macro/function.
42283         (gl_once): Define as wrapper around glthread_once.
42284         Update function declarations.
42285         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42286         glthread_rwlock_init. Return error code.
42287         (glthread_rwlock_rdlock_multithreaded): Renamed from
42288         glthread_rwlock_rdlock. Return error code.
42289         (glthread_rwlock_wrlock_multithreaded): Renamed from
42290         glthread_rwlock_wrlock. Return error code.
42291         (glthread_rwlock_unlock_multithreaded): Renamed from
42292         glthread_rwlock_unlock. Return error code.
42293         (glthread_rwlock_destroy_multithreaded): Renamed from
42294         glthread_rwlock_destroy. Return error code.
42295         (glthread_recursive_lock_init_multithreaded): Renamed from
42296         glthread_recursive_lock_init. Return error code.
42297         (glthread_recursive_lock_lock_multithreaded): Renamed from
42298         glthread_recursive_lock_lock. Return error code.
42299         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42300         glthread_recursive_lock_unlock. Return error code.
42301         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42302         glthread_recursive_lock_destroy. Return error code.
42303         (glthread_once_call): Make static.
42304         (glthread_once_multithreaded): Renamed from glthread_once.
42305         * lib/tls.h: Include <errno.h>.
42306         (glthread_tls_key_init): New macro/function.
42307         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42308         (glthread_tls_set): New macro/function.
42309         (gl_tls_set): Define as wrapper around glthread_tls_set.
42310         (glthread_tls_key_destroy): New macro/function.
42311         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42312         Update function declarations.
42313         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42314         glthread_tls_get.
42315         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42316
42317 2008-08-04  Eric Blake  <ebb9@byu.net>
42318
42319         gnumakefile: use space, not TAB, outside of targets
42320         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42321
42322 2008-08-02  Jim Meyering  <meyering@redhat.com>
42323
42324         getdate.y: avoid locale-dependent date parsing failure
42325         In Turkish locales, getdate would fail to recognize keywords
42326         containing a lowercase "i".  The solution is not to rely on
42327         locale-sensitive case-conversion.
42328         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42329         (lookup_word): Use c_toupper in place of toupper.
42330         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42331         Reported by Vefa Bicakci <bicave@superonline.com> in
42332         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42333         * modules/getdate (Depends-on): Add c-ctype.
42334
42335 2008-08-02  Bruno Haible  <bruno@clisp.org>
42336
42337         * gnulib-tool (func_import): When updating or creating a .gitignore
42338         file, prepend each added line with a slash, and ignore leading slashes
42339         from the existing lines.
42340         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42341
42342 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42343
42344         Portability fix for GNU make 3.79.1.
42345         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42346         versions do not understand.
42347
42348 2008-08-01  Bruno Haible  <bruno@clisp.org>
42349
42350         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42351         * tests/test-isnanf.h (zero): New variable.
42352         (main): Avoid literal -0.0f.
42353         * tests/test-isnand.h (zero): New variable.
42354         (main): Avoid literal -0.0.
42355         * tests/test-isnanl.h (zero): New variable.
42356         (main): Avoid literal -0.0L.
42357         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42358         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42359         -0.0, -0.0L.
42360         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42361         (test_signbitd): Avoid literal -0.0.
42362         (test_signbitl): Avoid literal -0.0L.
42363         * tests/test-ceilf1.c (zero): New variable.
42364         (main): Avoid literal -0.0f.
42365         * tests/test-ceill.c (zero): New variable.
42366         (main): Avoid literal -0.0L.
42367         * tests/test-floorf1.c (zero): New variable.
42368         (main): Avoid literal -0.0f.
42369         * tests/test-floorl.c (zero): New variable.
42370         (main): Avoid literal -0.0L.
42371         * tests/test-roundf1.c (zero): New variable.
42372         (main): Avoid literal -0.0f.
42373         * tests/test-round1.c (zero): New variable.
42374         (main): Avoid literal -0.0.
42375         * tests/test-roundl.c (zero): New variable.
42376         (main): Avoid literal -0.0L.
42377         * tests/test-truncf1.c (zero): New variable.
42378         (main): Avoid literal -0.0f.
42379         * tests/test-trunc1.c (zero): New variable.
42380         (main): Avoid literal -0.0.
42381         * tests/test-truncl.c (zero): New variable.
42382         (main): Avoid literal -0.0L.
42383         * tests/test-frexp.c (zero): New variable.
42384         (main): Avoid literal -0.0.
42385         * tests/test-frexpl.c (zero): New variable.
42386         (main): Avoid literal -0.0L.
42387         * tests/test-ldexpl.c (zero): New variable.
42388         (main): Avoid literal -0.0L.
42389         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42390         (zerod, zerol): New variables.
42391         (test_function): Avoid literals -0.0, -0.0L.
42392         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42393         (zerod, zerol): New variables.
42394         (test_function): Avoid literals -0.0, -0.0L.
42395         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42396         (zerod, zerol): New variables.
42397         (test_function): Avoid literals -0.0, -0.0L.
42398         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42399         (zerod, zerol): New variables.
42400         (test_function): Avoid literals -0.0, -0.0L.
42401         * tests/test-strtod.c (zero): New variable.
42402         (main): Avoid literal -0.0.
42403         Reported by Jonathan C. Patschke <jp@centtech.com>.
42404
42405 2008-07-31  Jim Meyering  <meyering@redhat.com>
42406
42407         sha256.h: correct definition of SHA224_DIGEST_SIZE
42408         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42409         Reported by Paulie Pena IV <paulie4@gmail.com>.
42410         Define as 224 / 8, rather than as a literal.
42411         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42412         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42413         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42414
42415 2008-07-31  Bruno Haible  <bruno@clisp.org>
42416
42417         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42418         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42419         Reported by Jonathan Patschke <jp@centtech.com>.
42420
42421 2008-07-31  Bruno Haible  <bruno@clisp.org>
42422
42423         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42424         Reported by Paolo Bonzini <bonzini@gnu.org>.
42425
42426 2008-07-30  Eric Blake  <ebb9@byu.net>
42427
42428         test-strtod: allow compilation without -lm
42429         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42430         Reported by Dennis Clarke <blastwave@gmail.com>.
42431
42432 2008-07-28  Jim Meyering  <meyering@redhat.com>
42433
42434         bootstrap: work also when there are no .po files in po/
42435         * build-aux/bootstrap (update_po_files): Complete the change
42436         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42437
42438 2008-07-27  Jim Meyering  <meyering@redhat.com>
42439
42440         * users.txt: Add zile.
42441
42442 2008-07-26  Ben Pfaff  <blp@gnu.org>
42443
42444         Add missing dependencies on new m4/exponent[fdl].m4 files.
42445         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42446         * modules/isnand-nolibm: Add m4/exponentd.m4.
42447         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42448         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42449         m4/isnan[fdl].m4, because the macros actually used moved.
42450         Reported by Jim Meyering.
42451
42452 2008-07-14  Ben Pfaff  <blp@gnu.org>
42453
42454         Add isinf module.
42455         * lib/isinf.c: New file.
42456         * lib/math.in.h: Define isinf macro if we have decided to replace
42457         it.
42458         * m4/isinf.m4: New file.
42459         * m4/math_h.m4: Initialize and substitute variables for isinf
42460         module.
42461         * modules/isinf: New file.
42462         * modules/isinf-tests: New file.
42463         * modules/math: Add substitutions for new module.
42464         * tests/test-isinf.c: New file.
42465         * doc/posix-functions/isinf.texi: Mention new module.
42466         * MODULES.html.sh: Mention new module.
42467
42468 2008-07-14  Ben Pfaff  <blp@gnu.org>
42469
42470         Factor out some macros for use by additional modules.
42471         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42472         exponentf.m4.
42473         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42474         exponentd.m4.
42475         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42476         file exponentl.m4.
42477         * m4/exponentf.m4: New file.
42478         * m4/exponentd.m4: New file.
42479         * m4/exponentl.m4: New file.
42480         * modules/isnanf: Use new file m4/exponentf.m4.
42481         * modules/isnand: Use new file m4/exponentd.m4.
42482         * modules/isnanl: Use new file m4/exponentl.m4.
42483
42484 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42485
42486         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42487         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42488         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42489         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42490
42491         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42492         readlink on platforms without PATH_MAX.
42493
42494 2008-07-21  Eric Blake  <ebb9@byu.net>
42495
42496         Warn, not fail, on stale version.
42497         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42498
42499         Don't allow installation with stale devel version number.
42500         * top/GNUmakefile (_is-install-target): New macro.
42501         (_curr-ver): Forbid installation with stale version number.
42502
42503 2008-07-20  Bruno Haible  <bruno@clisp.org>
42504
42505         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42506         TESTS_ENVIRONMENT.
42507         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42508
42509 2008-07-20  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/c-stack.h (c_stack_action): Add documentation.
42512         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42513
42514 2008-07-20  Bruno Haible  <bruno@clisp.org>
42515
42516         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42517         * modules/readlink (License): Likewise.
42518
42519 2008-07-17  Eric Blake  <ebb9@byu.net>
42520
42521         * modules/c-stack (Link): Fix typo.
42522
42523         Make c-stack use libsigsegv, when available.
42524         * modules/c-stack (Depends-on): Add libsigsegv.
42525         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42526         needed.
42527         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42528         (segv_handler, overflow_handler, c_stack_action)
42529         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42530         implementation when libsigsegv is available, but only when using
42531         the library is necessary.
42532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42533         comment, explaining why XSI check fails on Linux.
42534         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42535         * tests/test-c-stack2.sh: Tweak skip message.
42536         * NEWS: Document new link-time requirements.
42537
42538 2008-07-16  Eric Blake  <ebb9@byu.net>
42539
42540         c-stack: Expose false positives when not using libsigsegv.
42541         * modules/c-stack-tests (Files): Expand test.
42542         * tests/test-c-stack.c (main): Add means to conditionally trigger
42543         non-overflow SIGSEGV.
42544         * tests/test-c-stack2.sh: New file.
42545
42546 2008-07-14  Bruno Haible  <bruno@clisp.org>
42547
42548         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42549         Reported by Eric Blake.
42550
42551 2008-07-14  Sam Steingold  <sds@gnu.org>
42552             Bruno Haible  <bruno@clisp.org>
42553
42554         New module libsigsegv.
42555         * modules/libsigsegv: New file.
42556         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42557         modifications.
42558         * MODULES.html.sh (Signal handling): New section.
42559
42560 2008-07-14  Bruno Haible  <bruno@clisp.org>
42561
42562         * modules/unictype/ctype-* (Description): Add the word "function".
42563         Improves the resulting doc in MODULES.html.
42564
42565 2008-07-12  Ben Pfaff  <blp@gnu.org>
42566
42567         Add longlong module.
42568         * modules/longlong: New file.
42569
42570 2008-07-12  Bruno Haible  <bruno@clisp.org>
42571
42572         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42573         to empty.
42574
42575 2008-07-10  Ben Pfaff  <blp@gnu.org>
42576
42577         Add isnan module.
42578         * doc/posix-functions/isnan.texi: Mention new module.
42579         * lib/math.in.h: Define isnan macro if we have decided to replace
42580         it.
42581         * m4/isnan.m4: New file.
42582         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42583         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42584         also.
42585         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42586         redundancy.
42587         * m4/math_h.m4: Initialize and substitute variables for isnan
42588         module.
42589         * modules/isnan: New file.
42590         * modules/isnan-tests: New file.
42591         * modules/math: Add substitutions for new module.
42592         * tests/test-isnan.c: New file.
42593         * MODULES.html.sh: Mention new module.
42594
42595 2008-07-10  Ben Pfaff  <blp@gnu.org>
42596
42597         Add isnanf module.
42598         * lib/isnanf.m4: New file.
42599         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42600         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42601         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42602         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42603         * modules/isnanf: New file.
42604         * modules/isnanf-tests: New file.
42605         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42606         files.
42607         * tests/test-isnanf-nolibm.c: factored most of its contents into
42608         new file tests/test-isnanf.h.
42609         * tests/test-isnanf.h: New file.
42610         * tests/test-isnanf.c: New file.
42611         * MODULES.html.sh: Mention new module.
42612         * doc/glibc-functions/isnanf.texi: Mention new module.
42613
42614 2008-07-10  Ben Pfaff  <blp@gnu.org>
42615
42616         Add isnand module.
42617         * lib/isnand.h: New file.
42618         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42619         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42620         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42621         functionality also.
42622         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42623         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42624         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42625         * modules/isnand: New file.
42626         * modules/isnand-tests: New file.
42627         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42628         files.
42629         * tests/test-isnand-nolibm.c: factored most of its contents into
42630         new file tests/test-isnand.h.
42631         * tests/test-isnand.h: New file.
42632         * tests/test-isnand.c: New file.
42633         * MODULES.html.sh: Mention new module.
42634
42635 2008-07-10  Ben Pfaff  <blp@gnu.org>
42636
42637         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42638         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42639         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42640         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42641         * modules/isnanf-nolibm: Update references to renamed files.
42642         * modules/isnand-nolibm: Likewise.
42643         * modules/isnanf-nolibm-tests: Likewise.
42644         * modules/isnand-nolibm-tests: Likewise.
42645         * lib/frexp.c: Likewise.
42646         * lib/isfinite.c: Likewise.
42647         * lib/signbitd.c: Likewise.
42648         * lib/signbitf.c: Likewise.
42649         * lib/vasnprintf.c: Likewise.
42650         * tests/test-ceilf1.c: Likewise.
42651         * tests/test-ceilf2.c: Likewise.
42652         * tests/test-floorf1.c: Likewise.
42653         * tests/test-floorf2.c: Likewise.
42654         * tests/test-frexp.c: Likewise.
42655         * tests/test-round1.c: Likewise.
42656         * tests/test-round2.c: Likewise.
42657         * tests/test-roundf1.c: Likewise.
42658         * tests/test-strtod.c: Likewise.
42659         * tests/test-trunc1.c: Likewise.
42660         * tests/test-trunc2.c: Likewise.
42661         * tests/test-truncf1.c: Likewise.
42662         * tests/test-truncf2.c: Likewise.
42663         * NEWS: Mention the renamed header files.
42664
42665 2008-07-11  Jim Meyering  <meyering@redhat.com>
42666
42667         vc-list-files: make the last-resort awk code more portable
42668         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42669         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42670         does not support it.
42671
42672 2008-07-10  Eric Blake  <ebb9@byu.net>
42673
42674         Work with tar's bootstrap.
42675         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42676         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42677         an m4 comment.
42678
42679 2008-07-09  Jim Meyering  <meyering@redhat.com>
42680
42681         posix-shell.m4: fix typo that made this test malfunction
42682         * m4/posix-shell.m4: Remove capitalization in variable name.
42683
42684 2008-07-08  Bruno Haible  <bruno@clisp.org>
42685
42686         * m4/onceonly.m4: Update comments.
42687         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42688
42689 2008-07-04  Jim Meyering  <meyering@redhat.com>
42690
42691         * users.txt: Add vc-dwim.
42692         (bison, coreutils): Use the gitweb URL.
42693
42694 2008-07-03  Jim Meyering  <meyering@redhat.com>
42695
42696         * users.txt: Add libffcall.  From Sam Steingold.
42697
42698 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42699
42700         getdate.y: do not ignore TZ with relative day, month or year offset
42701         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42702         relative-date-handling, since otherwise, the latter would clobber the
42703         sole output (an updated Start value) of the tz-handling block.
42704         * tests/test-getdate.c: Tests for the fix
42705
42706 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42707
42708         Recognize 'foo_LIBRARIES += libgnu.a'.
42709         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42710         makefile snippet has already specified an installation location,
42711         also using '+='.
42712
42713 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42714
42715         getdate.y: factor out common actions
42716         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42717         Use them in place of open-coded actions.
42718
42719 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42720
42721         Add self-test for getdate module.
42722         * modules/getdate-tests: New file.
42723         * tests/test-getdate.c: New file.
42724
42725 2008-06-29  Bruno Haible  <bruno@clisp.org>
42726
42727         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42728         .gitignore.
42729         Reported by Sylvain Beucler <beuc@beuc.net>.
42730
42731 2008-06-29  Bruno Haible  <bruno@clisp.org>
42732
42733         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42734         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42735
42736 2008-06-29  Bruno Haible  <bruno@clisp.org>
42737
42738         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42739         EXTRA_DIST.
42740         Reported by Sylvain Beucler <beuc@beuc.net>.
42741
42742 2008-06-26  Jim Meyering  <meyering@redhat.com>
42743
42744         make several modules depend on the "open" module
42745         This provides slightly increased consistency when opening-for-write
42746         the name of a non-directory spelled with a trailing slash.
42747         * modules/chdir-safer: Likewise.
42748         * modules/chown: Likewise.
42749         * modules/clean-temp: Likewise.
42750         * modules/copy-file: Likewise.
42751         * modules/fchdir: Likewise.
42752         * modules/fcntl-safer: Likewise.
42753         * modules/pipe: Likewise.
42754         * modules/utime: Likewise.
42755         Prompted by Eric Blake and Bruno Haible.
42756
42757 2008-06-24  Andreas Schwab  <schwab@suse.de>
42758
42759         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42760         literals can be used as initializers for global variables.
42761
42762 2008-06-23  Eric Blake  <ebb9@byu.net>
42763
42764         Make gnulib-cache.m4 easier to diff.
42765         * gnulib-tool (func_import): Allow newlines when reading cached
42766         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42767
42768 2008-06-23  Bruno Haible  <bruno@clisp.org>
42769
42770         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42771         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42772         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42773         m4/signalblocking.m4.
42774         (gl_PREREQ_SIGACTION): Don't invoke it.
42775         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42776         gl_PREREQ_SIG_HANDLER_H.
42777         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42778         Don't check for sigaction here.
42779
42780 2008-06-23  Bruno Haible  <bruno@clisp.org>
42781
42782         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42783         (install_handlers): Don't set the SA_RESETHAND flag.
42784
42785 2008-06-23  Bruno Haible  <bruno@clisp.org>
42786
42787         * m4/sigaction.m4: Comment fixes.
42788         * lib/signal.in.h: Likewise.
42789
42790 2008-06-23  Eric Blake  <ebb9@byu.net>
42791
42792         Fix typo.
42793         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42794
42795         Avoid SA_ namespace.
42796         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42797         Reported by Ralf Wildenhues.
42798
42799         Avoid test failure due to SA_RESTORER.
42800         * tests/test-sigaction.c (SA_MASK): New macro.
42801         (main): Avoid failing due to extension flags being set.
42802         Reported by Jim Meyering.
42803
42804         Revert use of sig-handler.h in sigprocmask.c.
42805         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42806         it requires the existence of struct sigaction.
42807         * lib/sigprocmask.c (handler_t): Restore typedef.
42808         (rpl_signal, old_handlers): Use local type.
42809
42810 2008-06-22  Bruno Haible  <bruno@clisp.org>
42811
42812         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42813         conditionally.
42814         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42815
42816 2008-06-22  Bruno Haible  <bruno@clisp.org>
42817
42818         * doc/posix-functions/siginterrupt.texi: Move note.
42819
42820         * lib/signal.in.h (SA_RESTART): New macro.
42821         * lib/sigaction.c: Update comment.
42822
42823         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42824
42825         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42826         (gl_PREREQ_SIGPROCMASK): Invoke it.
42827         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42828
42829         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42830
42831         * lib/sigprocmask.c: Update a comment.
42832
42833 2008-06-21  Eric Blake  <ebb9@byu.net>
42834
42835         Use sigaction module rather than signal().
42836         * modules/c-stack (Depends-on): Add sigaction.
42837         * modules/fatal-signal (Depends-on): Likewise.
42838         * modules/nanosleep (Depends-on): Likewise.
42839         * modules/sigprocmask (Files): Add sig-handler.h.
42840         * modules/sigaction (Files): Likewise.
42841         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42842         Eggert.
42843         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42844         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42845         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42846         (init_fatal_signals): Likewise.
42847         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42848         (siginterrupt): Delete fallback.
42849         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42850         instead.
42851         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42852         siginterrupt.
42853
42854         New module sigaction, for mingw.
42855         * modules/sigaction: New module...
42856         * modules/sigaction-tests: ...and its test.
42857         * m4/sigaction.m4: New file.
42858         * lib/sigaction.c: Likewise.
42859         * tests/test-sigaction.c: Likewise.
42860         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42861         * modules/signal (Makefile.am): Likewise.
42862         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42863         needed.
42864         * doc/posix-headers/signal.texi (signal.h): Mention provided
42865         types.
42866         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42867         that sigaction is preferable.
42868         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42869         module.
42870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42871         sigaction.
42872
42873         Improve robustness of sigprocmask by overriding signal.
42874         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42875         is in use.
42876         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42877         (SIGKILL, SIGSTOP): Provide fallbacks.
42878         (rpl_signal): Implement.
42879         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42880         signal can be called inside handlers.
42881
42882         Fix nanosleep module on mingw.
42883         * modules/nanosleep (Depends-on): Add sys_select.
42884         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42885
42886         Fix licensing of sigprocmask.
42887         * modules/raise (License): Relicense as LGPL.
42888
42889 2008-06-21  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42892         result if it contains question marks.
42893         Reported by Michael Geng <linux@michaelgeng.de>.
42894
42895 2008-06-19  Bruno Haible  <bruno@clisp.org>
42896
42897         Fix CVS-ism.
42898         * doc/gnulib.texi: Include updated-stamp.texi.
42899         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42900         (updated-stamp.texi): New rule.
42901         (gnulib.info): Depend on it.
42902         * doc/.gitignore: Add updated-stamp.texi.
42903         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42904
42905 2008-06-19  Bruno Haible  <bruno@clisp.org>
42906
42907         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42908         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42909
42910 2008-06-19  Eric Blake  <ebb9@byu.net>
42911
42912         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42913         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42914         Reported by Stepan Kasal.
42915
42916 2008-06-18  Bruno Haible  <bruno@clisp.org>
42917
42918         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42919         Reported by Eric Blake.
42920
42921 2008-06-18  Eric Blake  <ebb9@byu.net>
42922
42923         Work around cygwin 1.5.25 strsignal bug.
42924         * tests/test-strsignal.c: Allow for const char *.
42925         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42926
42927 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42928
42929         * users.txt: Update URL to article and add author/date
42930         information.
42931
42932 2008-06-17  Bruno Haible  <bruno@clisp.org>
42933
42934         New macro gl_DISABLE_THREADS.
42935         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42936         if the user did not pass --enable-threads or --disable-threads option.
42937         (gl_DISABLE_THREADS): New macro.
42938         Reported by Eric Blake <ebb9@byu.net>.
42939
42940 2008-06-17  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42943         when the macro ignores it.
42944         Based on a patch by Eric Blake <ebb9@byu.net>.
42945
42946 2008-06-17  Bruno Haible  <bruno@clisp.org>
42947
42948         * modules/tls (License): Change to LGPLv2+.
42949         Reported by Eric Blake.
42950
42951 2008-06-17  Eric Blake  <ebb9@byu.net>
42952
42953         Simplify c-stack prerequisites.
42954         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42956         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42957         check.
42958         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42959         <sys/resource.h>.
42960
42961         Move c-stack test into testsuite.
42962         * modules/c-stack-tests: New file.
42963         * lib/c-stack.c [DEBUG]: Move test program...
42964         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42965         fail test if sigaltstack is lacking.
42966         * tests/test-c-stack.sh: New driver file.
42967
42968 2008-06-16  Eric Blake  <ebb9@byu.net>
42969
42970         Use raise module consistently.
42971         * modules/fatal-signal (Depends-on): Add raise.
42972         * modules/sigprocmask (Depends-on): Likewise.
42973         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42974         * lib/sigprocmask.c (sigprocmask): Likewise.
42975         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42976         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42977
42978         Fix compliance bug in sigpending.
42979         * lib/sigprocmask.c (sigpending): Return pending array via
42980         parameter, not return value.
42981
42982 2008-06-14  Eric Blake  <ebb9@byu.net>
42983
42984         Improve obstack-printf test code.
42985         * tests/test-obstack-printf.c (test_function): Fix comment, and
42986         simplify usage of obstack_* in macros.  Add a test for coverage.
42987         Reported by Bruno Haible.
42988
42989 2008-06-14  Bruno Haible  <bruno@clisp.org>
42990
42991         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42992         array size as a constant, not as a const variable.
42993         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42994         AC_USE_SYSTEM_EXTENSIONS.
42995         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42996         Test whether the obstack_printf function actually exists.
42997         * modules/obstack-printf (Depends-on): Add extensions.
42998         (Include): Remove obstack.h.
42999         * modules/obstack-printf-posix (Depends-on): Add extensions.
43000         (Include): Remove obstack.h.
43001
43002 2008-06-13  Eric Blake  <ebb9@byu.net>
43003
43004         Add obstack-printf and obstack-printf-posix modules.
43005         * modules/obstack-printf: New file.
43006         * modules/obstack-printf-posix: Likewise.
43007         * MODULES.html.sh (Misc): Mention them.
43008         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43009         Likewise.
43010         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43011         Likewise.
43012         * modules/stdio (Makefile.am): Accomodate new modules.
43013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43014         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43015         Declare.
43016         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43017         functions.
43018         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43019         (gl_REPLACE_OBSTACK_PRINTF): New macros
43020         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43021         * tests/test-obstack-printf.c: New file.
43022         * modules/obstack-printf-tests: Likewise.
43023         * modules/obstack-printf-posix-tests: Likewise.
43024
43025 2008-06-11  Bruno Haible  <bruno@clisp.org>
43026
43027         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43028         * lib/open.c: Include errno.h.
43029         (open): Fail when attempting to write to a file that has a trailing
43030         slash.
43031         * tests/test-open.c (main): Test against trailing slash bug.
43032         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43033
43034 2008-06-10  Bruno Haible  <bruno@clisp.org>
43035
43036         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43037         for $? to work inside the trap command, with various /bin/sh-s.
43038         * tests/test-vc-list-files-cvs.sh: Likewise.
43039
43040 2008-06-10  Bruno Haible  <bruno@clisp.org>
43041
43042         * lib/acl-internal.h: Don't include gettext.h here.
43043         * lib/set-mode-acl.c: Include gettext.h here.
43044         * lib/copy-acl.c: Likewise.
43045
43046 2008-06-10  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43049         * lib/wait-process.c (wait_subprocess): Likewise.
43050         * lib/execute.h (execute): Add termsigp argument.
43051         * lib/execute.c (execute): Likewise.
43052         * lib/csharpcomp.c (compile_csharp_using_pnet,
43053         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43054         * lib/csharpexec.c (execute_csharp_using_pnet,
43055         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43056         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43057         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43058         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43059         is_jikes_present): Update.
43060         * lib/javaexec.c (execute_java_class): Update.
43061         * lib/javaversion.c (execute_and_read_line): Update.
43062         * NEWS: Document the changes.
43063         Reported by Eric Blake.
43064
43065 2008-06-10  Eric Blake  <ebb9@byu.net>
43066
43067         Add missing include.
43068         * tests/test-strstr.c (includes): Add <signal.h>.
43069         * tests/test-strcasestr.c (includes): Likewise.
43070         * tests/test-memmem.c (includes): Likewise.
43071
43072 2008-06-10  Bruno Haible  <bruno@clisp.org>
43073
43074         * lib/wait-process.c (wait_subprocess): Add an assertion.
43075
43076 2008-06-10  Bruno Haible  <bruno@clisp.org>
43077
43078         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43079
43080 2008-06-10  Bruno Haible  <bruno@clisp.org>
43081
43082         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43083         using alarm().
43084         * tests/test-strcasestr.c (main): Likewise.
43085         * tests/test-strstr.c (main): Likewise.
43086
43087 2008-06-09  Bruno Haible  <bruno@clisp.org>
43088
43089         Work around the Solaris 10 ACE ACLs ABI change.
43090         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43091         declare if ACL_NO_TRIVIAL is present.
43092         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43093         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43094         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43095         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43096         define if ACL_NO_TRIVIAL is present.
43097         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43098         and use the current ABI.
43099         (file_has_acl): Use same #if condition as elsewhere.
43100         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43101         in use, and use the current ABI.
43102         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43103         Reported by Jim Meyering.
43104
43105 2008-06-09  Eric Blake  <ebb9@byu.net>
43106
43107         Work around environments that (stupidly) ignore SIGALRM.
43108         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43109         before using alarm().
43110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43111         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43112         Reported by Ian Beckwith <ianb@erislabs.net>.
43113
43114         Produce autobuild blurb earlier in log.
43115         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43116
43117 2008-06-09  Jim Meyering  <meyering@redhat.com>
43118         and OndÅ™ej Vašík  <ovasik@redhat.com>
43119
43120         utimens.c: correct kernel bug work-around
43121         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43122         failure, not success, and the kernel bug we're trying to work
43123         around affects not just the utimensat call, but also the fallback
43124         futimens call.
43125         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43126         not success.
43127         [HAVE_FUTIMENS]: Use the same work-around, here.
43128
43129 2008-06-09  Jim Meyering  <meyering@redhat.com>
43130
43131         add more guards around definition of ACE_-related code
43132         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43133         ALLOW and ACE_OWNER are also defined.
43134
43135 2008-06-08  Bruno Haible  <bruno@clisp.org>
43136
43137         * lib/acl-internal.h: Add me as co-author.
43138         * lib/file-has-acl.c: Likewise.
43139         * lib/set-mode-acl.c: Likewise.
43140         * lib/copy-acl.c: Likewise.
43141
43142 2008-06-08  Bruno Haible  <bruno@clisp.org>
43143
43144         Add support for AIX ACLs.
43145         * lib/acl-internal.h (acl_nontrivial): New declaration.
43146         * lib/file-has-acl.c (acl_nontrivial): New function.
43147         (file_has_acl): Add implementation using AIX 4 ACL API.
43148         * lib/set-mode-acl.c (qset_acl): Likewise.
43149         * lib/copy-acl.c (qcopy_acl): Likewise.
43150
43151 2008-06-08  Bruno Haible  <bruno@clisp.org>
43152
43153         Add support for HP-UX ACLs.
43154         * lib/acl-internal.h (acl_nontrivial): New declaration.
43155         * lib/file-has-acl.c (acl_nontrivial): New function.
43156         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43157         * lib/set-mode-acl.c (qset_acl): Likewise.
43158         * lib/copy-acl.c (qcopy_acl): Likewise.
43159
43160 2008-06-08  Bruno Haible  <bruno@clisp.org>
43161
43162         Add support for Cygwin ACLs.
43163         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43164         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43165         the chmod_or_fchmod call.
43166         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43167
43168 2008-06-08  Bruno Haible  <bruno@clisp.org>
43169
43170         Fix bug with setuid modes in Solaris 10+ code.
43171         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43172         succeeded, when the mode contains some special bits.
43173
43174 2008-06-08  Bruno Haible  <bruno@clisp.org>
43175
43176         Add support for Solaris 7..10 ACLs.
43177         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43178         declarations.
43179         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43180         functions.
43181         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43182         * lib/set-mode-acl.c (qset_acl): Likewise.
43183         * lib/copy-acl.c (qcopy_acl): Likewise.
43184
43185 2008-06-08  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43188         declaration.
43189         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43190         (acl_access_nontrivial): Remove MacOS X case.
43191         (file_has_acl): Use acl_extended_nontrivial.
43192         * lib/copy-acl.c (qcopy_acl): Likewise.
43193
43194 2008-06-08  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43197
43198 2008-06-08  Jim Meyering  <meyering@redhat.com>
43199
43200         * modules/acl (Maintainer): Add Bruno Haible.
43201
43202 2008-06-07  Bruno Haible  <bruno@clisp.org>
43203
43204         Improve support for Tru64 ACLs.
43205         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43206         ACL on OSF/1.
43207
43208 2008-06-07  Bruno Haible  <bruno@clisp.org>
43209
43210         Add support for MacOS X ACLs.
43211         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43212         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43213         * lib/set-mode-acl.c (qset_acl): Likewise.
43214         * lib/copy-acl.c (qcopy_acl): Likewise.
43215
43216 2008-06-07  Bruno Haible  <bruno@clisp.org>
43217
43218         Fix memory leak introduced on 2008-05-22.
43219         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43220         use.
43221
43222 2008-06-07  Bruno Haible  <bruno@clisp.org>
43223
43224         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43225         to construct an empty ACL.
43226
43227 2008-06-07  Bruno Haible  <bruno@clisp.org>
43228
43229         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43230         precisely.
43231         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43232
43233 2008-06-07  Bruno Haible  <bruno@clisp.org>
43234
43235         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43236         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43237
43238 2008-06-07  Bruno Haible  <bruno@clisp.org>
43239
43240         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43241         regardless of POSIX.
43242         * doc/posix-functions/_longjmp.texi: Likewise.
43243         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43244         SystemV platform in this case.
43245
43246 2008-06-06  Eric Blake  <ebb9@byu.net>
43247
43248         Document abort() bugs.
43249         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43250
43251         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43252         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43253         sigsetjmp.
43254         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43255         siglongjmp, but only as a macro.
43256         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43257         is obsolete.
43258         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43259
43260         Tweak documentation to cover cygwin argz bugs.
43261         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43262         argz bug fix; no code change needed since no cygwin releases
43263         occurred between the last fix and the bug being tested.
43264         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43265         module and recently fixed cygwin bugs.
43266         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43267         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43268         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43269         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43270         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43271         Likewise.
43272         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43273         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43274         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43275         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43276         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43277         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43278         Likewise.
43279
43280         Avoid gcc warning on cygwin.
43281         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43282         !ACL_NO_TRIVIAL]: Avoid unused variable.
43283
43284 2008-06-05  Eric Blake  <ebb9@byu.net>
43285
43286         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43287         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43288         git-version-gen fails to come up with a version.
43289         Reported by Simon Josefsson.
43290
43291 2008-06-05  Jim Meyering  <meyering@redhat.com>
43292             Paul Eggert  <eggert@cs.ucla.edu>
43293
43294         utimens.c: work around a probable Linux kernel bug
43295         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43296         appears to be a kernel bug that causes utimensat to return 280
43297         instead of 0, indicating success.
43298
43299 2008-06-04  Bruno Haible  <bruno@clisp.org>
43300
43301         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43302         2008-06-01 commit.
43303
43304 2008-06-04  Bruno Haible  <bruno@clisp.org>
43305
43306         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43307         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43308         (file_has_acl): Use it. Save errno afterwards.
43309         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43310
43311 2008-06-03  Bruno Haible  <bruno@clisp.org>
43312
43313         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43314         draft code. Simplify #ifs.
43315         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43316         Put Solaris code after POSIX-draft code. Fix comments regarding
43317         Solaris 10, HP-UX. Mention Cygwin.
43318         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43319
43320 2008-06-03  Eric Blake  <ebb9@byu.net>
43321
43322         Provide fallback for older kernels.
43323         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43324         Provide runtime fallback if kernel lacks support.
43325         Reported by Mike Frysinger.
43326
43327 2008-06-02  Bruno Haible  <bruno@clisp.org>
43328
43329         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43330         it exists.
43331
43332 2008-06-02  Bruno Haible  <bruno@clisp.org>
43333
43334         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43335         * lib/copy-acl.c (qcopy_acl): Update comment.
43336
43337 2008-06-02  Bruno Haible  <bruno@clisp.org>
43338
43339         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43340         like ACL APIs.
43341
43342 2008-06-02  Bruno Haible  <bruno@clisp.org>
43343
43344         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43345         * tests/test-set-mode-acl.sh: Likewise.
43346         * tests/test-copy-acl.sh: Likewise.
43347         * tests/test-copy-file.sh: Likewise.
43348
43349 2008-06-02  Bruno Haible  <bruno@clisp.org>
43350
43351         * tests/test-file-has-acl.sh: Remove unused code.
43352
43353 2008-06-01  Bruno Haible  <bruno@clisp.org>
43354
43355         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43356         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43357         messages.
43358         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43359
43360 2008-06-01  Bruno Haible  <bruno@clisp.org>
43361
43362         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43363         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43364         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43365         APIs.
43366         * modules/acl-tests (configure.ac): Remove tests now contained in
43367         m4/acl.m4.
43368
43369 2008-06-02  Jim Meyering  <meyering@redhat.com>
43370
43371         announce-gen: use a better key-server host name
43372         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43373         it may be more consistently reliable.  Suggested by Werner Koch
43374         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43375
43376 2008-06-01  Bruno Haible  <bruno@clisp.org>
43377
43378         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43379         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43380
43381 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43382
43383         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43384
43385 2008-06-01  Bruno Haible  <bruno@clisp.org>
43386
43387         New ACL tests.
43388         * tests/test-file-has-acl.sh: New file.
43389         * tests/test-file-has-acl.c: New file.
43390         * tests/test-set-mode-acl.sh: New file.
43391         * tests/test-set-mode-acl.c: New file.
43392         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43393         * tests/test-copy-acl.c: New file.
43394         * modules/acl-tests: New file, based on modules/copy-file-tests.
43395         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43396         (Depends-on): Add acl-tests.
43397         (configure.ac): Remove checks.
43398         (Makefile.am): Don't create test-sameacls program here any more.
43399
43400 2008-06-01  Bruno Haible  <bruno@clisp.org>
43401
43402         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43403         * tests/test-sameacls.c: Include progname.h.
43404         (main): Invoke set_program_name. Portability fixes for MacOS X,
43405         Solaris, HP-UX.
43406
43407 2008-06-01  Bruno Haible  <bruno@clisp.org>
43408
43409         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43410         function.
43411         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43412
43413 2008-06-01  Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/rpmatch (Depends-on): Add strdup.
43416
43417 2008-06-01  Bruno Haible  <bruno@clisp.org>
43418
43419         * lib/pipe.c: Include unistd-safer.h.
43420         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43421         * modules/pipe (Depends-on): Add unistd-safer.
43422
43423 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43424
43425         * modules/autobuild (configure.ac): Call AB_INIT.
43426
43427 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43428
43429         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43430         Suggested by Bruno Haible <bruno@clisp.org>.
43431
43432 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43433
43434         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43435         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43436         <bruno@clisp.org>.
43437
43438 2008-05-29  Eric Blake  <ebb9@byu.net>
43439
43440         Prefer new POSIX 200x interfaces over futimesat.
43441         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43442         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43443         when available.
43444         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43445
43446 2008-05-28  Bruno Haible  <bruno@clisp.org>
43447
43448         * modules/stpcpy (License): Change to LGPLv2+.
43449         Requested by David Lutterkort <dlutter@redhat.com>.
43450
43451 2008-05-27  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43454         current mingw.
43455         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43456
43457 2008-05-27  Bruno Haible  <bruno@clisp.org>
43458
43459         * modules/iconv_open (Link): New section, from module 'iconv'.
43460         * modules/striconv (Link): Likewise.
43461         * modules/striconveh (Link): Likewise.
43462         * modules/xstriconv (Link): Likewise.
43463         * modules/unicodeio (Link): Likewise.
43464         * modules/propername (Link): Likewise.
43465         Reported by Jim Meyering.
43466
43467 2008-05-26  Jim Meyering  <meyering@redhat.com>
43468
43469         sha256: do not artificially restrict buffer length to be < 2^32
43470         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43471         uint32_t to size_t.
43472         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43473         to match.
43474
43475         avoid unaligned access errors, e.g., on sparc
43476         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43477         direct access through a possibly-unaligned uint64* pointer.
43478         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43479         direct access through a possibly-unaligned uint32* pointer.
43480         Prompted by this patch from Tom "spot" Callaway:
43481         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43482
43483         sha512.c: fix typo in comment
43484         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43485
43486 2008-05-25  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43489         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43490         (Makefile.am): Update lib_SOURCES.
43491
43492 2008-05-25  Bruno Haible  <bruno@clisp.org>
43493
43494         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43495
43496 2008-05-25  Jim Meyering  <meyering@redhat.com>
43497
43498         useless-if-before-free: freed expr may have white-space differences
43499         * build-aux/useless-if-before-free: Recognize cases in which the
43500         freed expression differs from the tested one in embedded white
43501         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43502         $1 was used, so we can't make any regexp shy.  Improved tests now
43503         detect this.
43504
43505         useless-if-before-free: accept white space in the expression.
43506         * build-aux/useless-if-before-free: For now, any white space
43507         in the expression must be identical in the free argument.
43508
43509         useless-if-before-free: efficiency tweak
43510         * build-aux/useless-if-before-free: Make the expression-matching
43511         regexp "shy".
43512         Make the *outer* regexp shy, not the expr-matching one.
43513
43514         update code-in-comment to accept cast of free arg
43515         * build-aux/useless-if-before-free: Update regexp.
43516
43517 2008-05-25  Bruno Haible  <bruno@clisp.org>
43518
43519         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43520         * modules/copy-file-tests (Files, Makefile.am): Update.
43521         * tests/test-copy-file.c (func_test_copy): Update.
43522
43523 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43524
43525         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43526
43527 2008-05-23  Bruno Haible  <bruno@clisp.org>
43528
43529         Improve support for ACLs on OSF/1.
43530         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43531         Remove fallback for unknown flavors of ACLs.
43532
43533 2008-05-22  Bruno Haible  <bruno@clisp.org>
43534
43535         Add support for ACLs on OSF/1.
43536         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43537         replacements.
43538         (acl_free_text): New macro fallback.
43539         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43540         acl_free.
43541         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43542         acl_free_text function. Require AC_C_INLINE.
43543
43544 2008-05-22  Bruno Haible  <bruno@clisp.org>
43545
43546         Make copy_acl work on MacOS X 10.5.
43547         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43548         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43549         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43550         If MODE_INSIDE_ACL, don't assume that every system has the same text
43551         representation for ACLs as FreeBSD.
43552         * lib/copy-acl.c (copy_acl): Add support for platforms with
43553         !MODE_INSIDE_ACL.
43554         * lib/file-has-acl.c (file_has_acl): Likewise.
43555         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43556         FreeBSD, MacOS X, or IRIX, respectively.
43557
43558 2008-05-22  Bruno Haible  <bruno@clisp.org>
43559
43560         * lib/acl.h: Don't include <sys/acl.h>.
43561         (GETACLCNT): Move fallback to lib/acl-internal.h.
43562         * lib/acl-internal.h: Include <sys/acl.h> here.
43563         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43564
43565 2008-05-22  Bruno Haible  <bruno@clisp.org>
43566
43567         Split off copy_acl function to separate file.
43568         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43569         * lib/acl.c (copy_acl): Moved function to separate file.
43570         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43571         * modules/acl (Files): Add lib/copy-acl.c.
43572         (Makefiles.am): Augment lib_SOURCES.
43573
43574 2008-05-22  Bruno Haible  <bruno@clisp.org>
43575
43576         * modules/copy-file-tests: New file.
43577         * tests/test-copy-file.sh: New file.
43578         * tests/test-copy-file.c: New file.
43579         * tests/test-copy-file-sameacls.c: New file.
43580
43581 2008-05-22  Eric Blake  <ebb9@byu.net>
43582
43583         Avoid gcc warning.
43584         * tests/test-memcmp.c (main): Pass NULL indirectly.
43585
43586 2008-05-21  Bruno Haible  <bruno@clisp.org>
43587
43588         Add reference doc about ACLs.
43589         * doc/acl-resources.txt: New file.
43590         * doc/acl-cygwin.txt: New file.
43591
43592 2008-05-21  Bruno Haible  <bruno@clisp.org>
43593
43594         Avoid one more warning from gcc.
43595         * lib/vasnprintf.c (IF_LINT): Update comments.
43596         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43597
43598 2008-05-21  Jim Meyering  <meyering@redhat.com>
43599
43600         avoid a warning from gcc
43601         * lib/vasnprintf.c (IF_LINT): Define.
43602         (scale10_round_decimal_long_double):
43603         Use it to avoid a "may be used uninitialized" warning.
43604         (scale10_round_decimal_double): Likewise.
43605
43606 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43607
43608         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43609         declared.
43610
43611 2008-05-20  Bruno Haible  <bruno@clisp.org>
43612
43613         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43614         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43615
43616 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43617
43618         * modules/memcmp-tests: New file.
43619         * tests/test-memcmp.c: New file.
43620
43621 2008-05-19  Bruno Haible  <bruno@clisp.org>
43622
43623         * modules/propername (Notice, configure.ac): Put quoted "..." into
43624         --keyword option.
43625         * lib/propername.h: Update comments accordingly.
43626         Reported by Eric Blake.
43627
43628 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43629
43630         * modules/getpass-gnu (Depends-on): Add fseeko.
43631
43632 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43633
43634         * modules/base64-tests: New file.
43635
43636 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43637
43638         * lib/base64.c (base64_decode_ctx): If a decode context structure
43639         was passed in use it to ignore newlines.  If a context structure
43640         was _not_ passed in, continue to treat newlines as garbage (this
43641         is the historical behavior).  Formerly base64_decode.
43642         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43643         takes a decode context structure.
43644         * lib/base64.h (base64_decode): Macro for four-argument calls.
43645         (base64_decode_alloc): Likewise.
43646         * lib/base64.c (base64_decode_ctx): If a decode context structure
43647         was passed in use it to ignore newlines.  If a context structure
43648         was _not_ passed in, continue to treat newlines as garbage (this
43649         is the historical behavior).  Formerly base64_decode.
43650         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43651         takes a decode context structure.
43652         * lib/base64.h (base64_decode): Macro for four-argument calls.
43653         (base64_decode_alloc): Likewise.
43654
43655 2008-05-19  Jim Meyering  <meyering@redhat.com>
43656
43657         avoid a warning from gcc
43658         * lib/trim.c (IF_LINT): Define.
43659         (trim2): Use it to avoid a "may be used uninitialized" warning.
43660
43661         Fix doc typo.
43662         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43663
43664 2008-05-19  Bruno Haible  <bruno@clisp.org>
43665
43666         * doc/glibc-functions/getpass.texi: Document limits of other
43667         implementations.
43668
43669 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43670             Bruno Haible <bruno@clisp.org>
43671
43672         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43673
43674 2008-05-18  Bruno Haible  <bruno@clisp.org>
43675
43676         * modules/propername: New file, from GNU gettext.
43677         * lib/propername.h: New file, from GNU gettext.
43678         * lib/propername.c: New file, from GNU gettext.
43679         * MODULES.html.sh (Internationalization functions): Add propername.
43680
43681 2008-05-16  Jim Meyering  <meyering@redhat.com>
43682             Bruno Haible  <bruno@clisp.org>
43683
43684         Avoid some warnings from "gcc -Wshadow".
43685         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43686
43687 2008-05-15  Eric Blake  <ebb9@byu.net>
43688
43689         Extend previous patch to cygwin 1.7.0.
43690         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43691         fast implementation in cygwin >= 1.7.0.
43692         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43693         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43694
43695 2008-05-15  Bruno Haible  <bruno@clisp.org>
43696
43697         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43698         implementation in glibc >= 2.9.
43699         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43701
43702 2008-05-15  Bruno Haible  <bruno@clisp.org>
43703
43704         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43705         (Unicode string functions): Add unilbrk/*.
43706         Reported by Karl Berry.
43707
43708 2008-05-15  Eric Blake  <ebb9@byu.net>
43709
43710         Fix violation of <stdbool.h> replacement in regex.
43711         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43712         * lib/regexec.c (re_search_internal): Likewise.
43713         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43714
43715 2008-05-15  Jim Meyering  <meyering@redhat.com>
43716
43717         avoid distracting test output when git or cvs is not found
43718         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43719         * tests/test-vc-list-files-git.sh: Likewise.
43720
43721 2008-05-15  Eric Blake  <ebb9@byu.net>
43722
43723         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43724         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43725         glibc version.
43726         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43727         * doc/posix-functions/strstr.texi (strstr): Likewise.
43728         * lib/str-two-way.h (MAX): Sychronize with glibc.
43729
43730 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43731
43732         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43733         opr.ctx_type.
43734         (calc_first): Initialize constraint field.
43735         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43736         Fix grammar.
43737         (duplicate_node): Merge constraint field for all node types.
43738         (calc_eclosure_iter): Look at constraint field for all node types.
43739         * lib/regex_internal.c (create_cd_newstate): Don't look at
43740         opr.ctx_type.
43741
43742 2008-05-14  Bruno Haible  <bruno@clisp.org>
43743
43744         Help GCC to do better code generation.
43745         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43746         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43747         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43748         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43749         Declare with attribute 'malloc' if supported.
43750
43751 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43752
43753         use "echo STR|wc -c" rather than unportable "expr length STR"
43754         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43755         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43756
43757 2008-05-14  Jim Meyering  <meyering@redhat.com>
43758
43759         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43760         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43761         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43762         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43763         via Collin Lasse.
43764
43765 2008-05-14  Eric Blake  <ebb9@byu.net>
43766
43767         Avoid quadratic growth in gl_LIBSOURCES.
43768         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43769         Suggested by Bruno Haible.
43770
43771         Test xmemdup0.
43772         * modules/xmemdup0-tests: New file.
43773         * tests/test-xmemdup0.c: Likewise.
43774
43775 2008-05-13  Eric Blake  <ebb9@byu.net>
43776
43777         Split xmemdup0 into its own module.
43778         * modules/xmemdup0: New file.
43779         * lib/xmemdup0.h: Likewise.
43780         * lib/xmemdup0.c: Likewise.
43781         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43782         * lib/xalloc.h (xmemdup0): Remove.
43783         * lib/xmalloc.c (xmemdup0): Likewise.
43784
43785 2008-05-13  Eric Blake  <ebb9@byu.net>
43786             Bruno Haible  <bruno@clisp.org>
43787
43788         Reduce number of forks required during autoconf.
43789         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43790         and gl_LIBSOURCES_DIR.
43791         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43792         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43793         m4_syscmd per file.
43794         <m4_foreach_w>: Move...
43795         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43796
43797 2008-05-13  Eric Blake  <ebb9@byu.net>
43798
43799         * gnulib-tool: Fix various comment typos.
43800
43801 2008-05-12  Bruno Haible  <bruno@clisp.org>
43802
43803         Tailor the linebreaking algorithm.
43804         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43805
43806 2008-05-12  Bruno Haible  <bruno@clisp.org>
43807
43808         Update to Unicode 5.0.0.
43809         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43810         LBP_JV, LBP_JT. Redistribute values.
43811         (unilbrk_table): Change size.
43812         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43813         Unicode TR#14 rev. 22.
43814         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43815         LBP_JV, LBP_JT. Redistribute values.
43816         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43817         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43818         Update.
43819         * lib/unilbrk/lbrkprop1.h: Regenerated.
43820         * lib/unilbrk/lbrkprop2.h: Regenerated.
43821         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43822         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43823         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43824         Likewise.
43825         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43826         Likewise.
43827         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43828         result.
43829         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43830         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43831         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43832         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43833         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43834         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43835
43836 2008-05-11  Bruno Haible  <bruno@clisp.org>
43837
43838         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43839
43840 2008-05-11  Bruno Haible  <bruno@clisp.org>
43841
43842         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43843         * modules/unilbrk/gen-lbrk: New file.
43844
43845 2008-05-11  Bruno Haible  <bruno@clisp.org>
43846
43847         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43848         * m4/sha512.m4 (gl_SHA512): Likewise.
43849
43850 2008-05-11  Jim Meyering  <meyering@redhat.com>
43851
43852         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43853         * modules/crypto/sha256: New file.
43854         * modules/crypto/sha512: Likewise.
43855         * lib/sha256.c: Likewise.
43856         * lib/sha256.h: Likewise.
43857         * lib/sha512.c: Likewise.
43858         * lib/sha512.h: Likewise.
43859         * lib/u64.h: Likewise.
43860         * m4/sha256.m4: Likewise.
43861         * m4/sha512.m4: Likewise.
43862         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43863
43864 2008-05-10  Bruno Haible  <bruno@clisp.org>
43865
43866         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43867         (Input/Output <stdio.h>): Add xprintf.
43868         (Signal handling <signal.h>): Add strsignal.
43869         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43870         (Core language properties): Add func.
43871         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43872         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43873         strings.
43874         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43875         (Input/output): New section.
43876         (File system functions): Add openat-die, stat-macros.
43877         (Networking functions): Add sockets.
43878         (Unicode string functions): Add unictype/*.
43879         (Support for building libraries and executables): Add gperf.
43880         (Support for building documentation): Add agpl-3.0.
43881         (Misc): Add nocrash.
43882
43883 2008-05-10  Bruno Haible  <bruno@clisp.org>
43884
43885         * modules/unictype/gen-ctype: New file.
43886
43887 2008-05-10  Jim Meyering  <meyering@redhat.com>
43888
43889         Make chdir-safer.c more efficient on a system with no symlinks.
43890         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43891         also if ELOOP is zero.  Suggested by Bruno Haible.
43892
43893         Make chdir-safer.c slightly safer.
43894         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43895         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43896
43897         Avoid compile failure on systems without ELOOP (like mingw).
43898         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43899         Reported by Bruno Haible.
43900
43901 2008-05-10  Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43904         (is_utf8_encoding): Use a case-insensitive comparison.
43905         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43906         streq.
43907
43908 2008-05-10  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43911         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43912         * lib/unilbrk/ulc-common.h (iconv_string_length,
43913         iconv_string_keeping_offsets): Remove declarations.
43914         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43915         Don't include <iconv.h>, streq.h, xsize.h.
43916         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43917         conversion.
43918         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43919         <iconv.h>, streq.h, xsize.h.
43920         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43921         conversion.
43922         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43923         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43924         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43925         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43926
43927 2008-05-10  Bruno Haible  <bruno@clisp.org>
43928
43929         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43930         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43931
43932         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43933         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43934
43935         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43936         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43937
43938         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43939         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43940
43941         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43942         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43943
43944         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43945         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43946
43947         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43948         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43949
43950         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43951         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43952
43953 2008-05-10  Bruno Haible  <bruno@clisp.org>
43954
43955         Split up 'linebreak' module.
43956         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43957         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43958         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43959         modifications.
43960         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43961         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43962         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43963         lib/linebreak.c.
43964         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43965         lib/linebreak.c.
43966         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43967         lib/linebreak.c.
43968         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43969         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43970         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43971         lib/linebreak.c.
43972         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43973         lib/linebreak.c.
43974         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43975         lib/linebreak.c.
43976         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43977         lib/linebreak.c.
43978         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43979         lib/linebreak.c.
43980         * modules/unilbrk/base: New file.
43981         * modules/unilbrk/tables: New file.
43982         * modules/unilbrk/u8-possible-linebreaks: New file.
43983         * modules/unilbrk/u16-possible-linebreaks: New file.
43984         * modules/unilbrk/u32-possible-linebreaks: New file.
43985         * modules/unilbrk/ulc-common: New file.
43986         * modules/unilbrk/ulc-possible-linebreaks: New file.
43987         * modules/unilbrk/u8-width-linebreaks: New file.
43988         * modules/unilbrk/u16-width-linebreaks: New file.
43989         * modules/unilbrk/u32-width-linebreaks: New file.
43990         * modules/unilbrk/ulc-width-linebreaks: New file.
43991         * lib/linebreak.h: Remove file.
43992         * lib/linebreak.c: Remove file.
43993         * m4/linebreak.m4: Remove file.
43994         * modules/linebreak: Remove file.
43995         * NEWS: Mention the changes.
43996
43997 2008-05-09  Eric Blake  <ebb9@byu.net>
43998
43999         Add xmemdup0.
44000         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44001         implementation.
44002         * lib/xmalloc.c (xmemdup0): New C implementation.
44003
44004 2008-05-08  Bruno Haible  <bruno@clisp.org>
44005
44006         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44007
44008 2008-05-07  Eric Blake  <ebb9@byu.net>
44009
44010         Support cross-compilation of <wctype.h>.
44011         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44012         AC_CACHE_CHECK.
44013
44014 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44015
44016         * build-aux/vc-list-files: Add support for bzr.
44017
44018 2008-05-03  Jim Meyering  <meyering@redhat.com>
44019
44020         avoid failed assertion with tight malloc
44021         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44022
44023 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44024
44025         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44026         are needed from arpa/inet.h.
44027         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44028         Reported by Bruno Haible.
44029
44030 2008-05-02  Jim Meyering  <meyering@redhat.com>
44031
44032         avoid compilation error on FreeBSD 6
44033         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44034
44035 2008-05-01  Jim Meyering  <meyering@redhat.com>
44036
44037         useless-if-before-free: correct --help's exit status description
44038         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44039         for one or more matches, etc.  Reported by Bruno Haible.
44040
44041         vc-list-files: make the stand-alone gnulib test work
44042         * modules/vc-list-files-tests (configure.ac):
44043         Define and AC_SUBST abs_aux_dir.
44044         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44045         $(abs_top_srcdir) to each script and having each of them
44046         duplicate the work of setting PATH, set PATH here, using
44047         the new variable, abs_aux_dir instead.
44048         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44049         * tests/test-vc-list-files-git.sh: Likewise.
44050         Reported by Bruno Haible.
44051
44052 2008-05-01  Bruno Haible  <bruno@clisp.org>
44053
44054         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44055         reallocation. Rename 'done' to 'found_delimiter'.
44056
44057 2008-05-01  Jim Meyering  <meyering@redhat.com>
44058
44059         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44060         * build-aux/vc-list-files: Use `...`, not $(...).
44061
44062 2008-04-30  Jim Meyering  <meyering@redhat.com>
44063
44064         add tests for vc-list-files
44065         * modules/vc-list-files-tests: New module.
44066         * tests/test-vc-list-files-cvs.sh: New file.
44067         * tests/test-vc-list-files-git.sh: New file.
44068
44069         avoid a warning from gcc
44070         * lib/getndelim2.c (IF_LINT): Define.
44071         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44072
44073         vc-list-files: work properly with build-aux/cvsu, too
44074         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44075         to all cvs-based clauses.
44076
44077         vc-list-files: work properly in the CVS+awk case, too
44078         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44079
44080         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44081         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44082         take more than one file argument, so .  Add quotes, just in case $dir
44083         ever contains a shell meta-character.  Prompted by Soren Hansen in
44084         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44085
44086 2008-04-29  Eric Blake  <ebb9@byu.net>
44087
44088         Optimize getndelim2 to use block operations when possible.
44089         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44090         freadseek, and memchr2.
44091         * lib/getndelim2.c (getndelim2): Use them for block reads.
44092
44093 2008-04-29  Bruno Haible  <bruno@clisp.org>
44094
44095         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44096         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44097         * modules/inet_ntop (Depends-on): Add extensions.
44098         * modules/inet_pton (Depends-on): Likewise.
44099         Reported by Simon Josefsson.
44100
44101 2008-04-29  Jim Meyering  <meyering@redhat.com>
44102
44103         When the is more than one match in a block, match all of them.
44104         * build-aux/useless-if-before-free: Iterate through each block
44105         until there are no more matches.
44106
44107         Fix broken useless-if-before-free script.
44108         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44109         the expression to match cast of argument to free-like function.
44110
44111 2008-04-29  Eric Blake  <ebb9@byu.net>
44112
44113         Use new header.
44114         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44115
44116 2008-04-29  Jim Meyering  <meyering@redhat.com>
44117
44118         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44119         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44120         by gnulib to exist and to declare e.g., inet_ntop.
44121         Don't include "inet_ntop.h", now removed.
44122
44123         * m4/arpa_inet_h.m4: Remove trailing blanks.
44124
44125 2008-04-29  Eric Blake  <ebb9@byu.net>
44126
44127         Silence valgrind on safe reads beyond potential array bounds.
44128         * lib/rawmemchr.valgrind: New file.
44129         * lib/strchrnul.valgrind: Likewise.
44130         * modules/rawmemchr (Files): Distribute new file.
44131         * modules/strchrnul (Files): Likewise.
44132         Suggested by Bruno Haible.
44133
44134 2008-04-29  Bruno Haible  <bruno@clisp.org>
44135
44136         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44137         (inet_ntop, inet_pton): Change portability warning's wording.
44138         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44139         Invoke gl_CHECK_NEXT_HEADERS.
44140         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44141         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44142         set ARPA_INET_H.
44143         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44144         * modules/arpa_inet (Description): No longer only for systems that
44145         lack it.
44146         (Depends-on): Add include_next.
44147         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44148         HAVE_ARPA_INET_H.
44149
44150 2008-04-29  Jim Meyering  <meyering@redhat.com>
44151
44152         * modules/mkdir (License): Re-license as LGPLv2+.
44153
44154 2008-04-29  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/rawmemchr (Maintainer): Set to Eric.
44157         * modules/strchrnul (Maintainer): Likewise.
44158
44159 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44160
44161         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44162         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44163
44164         * modules/arpa_inet (arpa/inet.h): Use them.
44165
44166 2008-04-28  Eric Blake  <ebb9@byu.net>
44167
44168         Test getndelim2.
44169         * modules/getndelim2-tests: New file.
44170         * tests/test-getndelim2.c: Likewise.
44171         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44172         stream.
44173         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44174
44175         * MODULES.html.sh: Document new module.
44176
44177 2008-04-20  Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/c-stack.c (die): Use raise.
44180         * modules/c-stack (Depends-on): Add raise.
44181
44182 2008-04-28  Bruno Haible  <bruno@clisp.org>
44183
44184         Expect rpmatch to be declared.
44185         * lib/yesno.c (rpmatch): Remove declaration.
44186
44187         Declare rpmatch.
44188         * lib/stdlib.in.h (rpmatch): New declaration.
44189         * lib/rpmatch.c: Include <stdlib.h> first.
44190         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44191         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44193         HAVE_RPMATCH.
44194         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44195         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44196         (Include): Set to <stdlib.h>.
44197         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44198         HAVE_RPMATCH.
44199         * NEWS: Document the change.
44200
44201 2008-04-28  Bruno Haible  <bruno@clisp.org>
44202
44203         Change rpmatch to use nl_langinfo when appropriate.
44204         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44205         (N_): New macro.
44206         (localized_pattern): New function/macro.
44207         (try): Remove match, nomatch arguments. Copy the pattern into safe
44208         memory before caching it.
44209         (rpmatch): Use localized_pattern. Add translator comments.
44210         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44211         Suggested by Eric Blake.
44212         * modules/rpmatch (Depends-on): Add stdbool.
44213
44214 2008-04-28  Eric Blake  <ebb9@byu.net>
44215
44216         Add rawmemchr module, matching glibc.
44217         * modules/string (Makefile.am): New indicator.
44218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44219         * lib/string.in.h (rawmemchr): Declare when appropriate.
44220         * modules/rawmemchr: New file.
44221         * m4/rawmemchr.m4: Likewise.
44222         * lib/rawmemchr.c: Likewise.
44223         * modules/rawmemchr-tests: Likewise.
44224         * tests/test-rawmemchr.c: Likewise.
44225         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44226         module.
44227         * modules/strchrnul (Depends-on): Add rawmemchr.
44228         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44229
44230         Whitespace cleanup.
44231         * tests/test-strchrnul.c: Reindent.
44232         * lib/strchrnul.c: Likewise.
44233
44234         Optimize and test strchrnul.
44235         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44236         * modules/strchrnul-tests: New file.
44237         * tests/test-strchrnul.c: Likewise.
44238
44239         Remove intprops dependency.
44240         * modules/memchr (Depends-on): Remove intprops.
44241         * modules/memrchr (Depends-on): Likewise.
44242         * modules/memchr2 (Depends-on): Likewise.
44243         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44244         * lib/memrchr.c (__memrchr): Likewise.
44245         * lib/memrchr2.c (memchr2): Likewise.
44246         Reported by Simon Josefsson.
44247
44248 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44249
44250         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44251         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44252
44253 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44254
44255         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44256
44257         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44258
44259         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44260
44261         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44262         declarations.
44263         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44264
44265         * m4/inet_pton.m4: Don't check for header files.
44266
44267         * m4/inet_ntop.m4: Don't check for header files.
44268
44269 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44270
44271         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44272         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44273         trigger for cygwin).
44274         Reported by Bruno Haible  <bruno@clisp.org>.
44275
44276 2008-04-28  Bruno Haible  <bruno@clisp.org>
44277
44278         * doc/posix-functions/strdup.texi: Mention mingw problem.
44279
44280 2008-04-27  Bruno Haible  <bruno@clisp.org>
44281
44282         * modules/stat-time-tests (Depends-on): Add sleep.
44283         * tests/test-stat-time.c (force_unlink): New function.
44284         (cleanup): Use it.
44285         (test_mtime): Remove the ctime related tests.
44286         (test_ctime): New function, containing the ctime related tests.
44287         (main): Call test_ctime, except on native Windows platforms.
44288
44289 2008-04-27  Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/rpmatch.c (rpmatch): Add some comments.
44292         Reported by James Youngman <jay@gnu.org>.
44293
44294 2008-04-27  Bruno Haible  <bruno@clisp.org>
44295
44296         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44297         quiet NaNs.
44298
44299 2008-04-27  Bruno Haible  <bruno@clisp.org>
44300
44301         Make test-yesno.sh work on mingw.
44302         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44303         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44304         (main): Set stdin to binary mode.
44305         * modules/yesno-tests (Depends-on): Add binary-io.
44306
44307 2008-04-27  Bruno Haible  <bruno@clisp.org>
44308
44309         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44310         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44311         argument that lie outside the IEEE 854 domain.
44312         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44313         (gl_ISFINITE): Use it.
44314         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44315
44316 2008-04-27  Bruno Haible  <bruno@clisp.org>
44317
44318         Allow local renaming in config.h.
44319         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44320
44321 2008-04-27  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/memchr.c (__memchr): Change type of 'i'.
44324         * lib/memchr2.c (memchr2): Likewise.
44325
44326 2008-04-26  Eric Blake  <ebb9@byu.net>
44327         and Bruno Haible  <bruno@clisp.org>
44328
44329         Optimize and test memrchr.
44330         * modules/memrchr (Depends-on): Add intprops.
44331         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44332         * modules/memrchr-tests: New file.
44333         * tests/test-memrchr.c: New file.
44334
44335 2008-04-26  Bruno Haible  <bruno@clisp.org>
44336
44337         Add tentative support for DragonFly BSD.
44338         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44339         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44340         fp.
44341         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44342         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44343         * lib/fpurge.c (fpurge): Likewise.
44344         * lib/freadable.c (freaadable): Likewise.
44345         * lib/freadahead.c (freadahead): Likewise.
44346         * lib/freading.c (freading): Likewise.
44347         * lib/freadptr.c (freadptr): Likewise.
44348         * lib/freadseek.c (freadptrinc): Likewise.
44349         * lib/fseeko.c (fseeko): Likewise.
44350         * lib/fseterr.c (fseterr): Likewise.
44351         * lib/fwritable.c (fwritable): Likewise.
44352         * lib/fwriting.c (fwriting): Likewise.
44353
44354 2008-04-26  Bruno Haible  <bruno@clisp.org>
44355
44356         * lib/stdio-impl.h: New file.
44357         * lib/fbufmode.c: Include stdio-impl.h.
44358         (fbufmode): Use fp_, remove redundant #defines.
44359         * lib/fflush.c: Include stdio-impl.h.
44360         (clear_ungetc_buffer): Remove redundant #defines.
44361         * lib/fpurge.c: Include stdio-impl.h.
44362         (fpurge): Remove redundant #defines.
44363         * lib/freadable.c: Include stdio-impl.h.
44364         (freadable): Remove redundant #defines.
44365         * lib/freadahead.c: Include stdio-impl.h.
44366         (freadahead): Remove redundant #defines.
44367         * lib/freading.c: Include stdio-impl.h.
44368         (freading): Remove redundant #defines.
44369         * lib/freadptr.c: Include stdio-impl.h.
44370         (freadptr): Remove redundant #defines.
44371         * lib/freadseek.c: Include stdio-impl.h.
44372         (freadptrinc): Remove redundant #defines.
44373         * lib/fseeko.c: Include stdio-impl.h.
44374         (rpl_fseeko): Remove redundant #defines.
44375         * lib/fseterr.c: Include stdio-impl.h.
44376         (fseterr): Remove redundant #defines.
44377         * lib/fwritable.c: Include stdio-impl.h.
44378         (fwritable: Remove redundant #defines.
44379         * lib/fwriting.c: Include stdio-impl.h.
44380         (fwriting): Remove redundant #defines.
44381         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44382         * modules/fflush (Files): Likewise.
44383         * modules/fpurge (Files): Likewise.
44384         * modules/freadable (Files): Likewise.
44385         * modules/freadahead (Files): Likewise.
44386         * modules/freading (Files): Likewise.
44387         * modules/freadptr (Files): Likewise.
44388         * modules/freadseek (Files): Likewise.
44389         * modules/fseeko (Files): Likewise.
44390         * modules/fseterr (Files): Likewise.
44391         * modules/fwritable (Files): Likewise.
44392         * modules/fwriting (Files): Likewise.
44393
44394 2008-04-26  Bruno Haible  <bruno@clisp.org>
44395
44396         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44397         restore_seek_optimization, update_fpos_cache): New functions, extracted
44398         from rpl_fflush.
44399         (rpl_fflush): Use them.
44400         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44401         (gl_REPLACE_FFLUSH): Use it.
44402
44403 2008-04-26  Bruno Haible  <bruno@clisp.org>
44404
44405         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44406         on Solaris.
44407         * tests/test-xstrtoimax.sh: Likewise.
44408         * tests/test-xstrtoumax.sh: Likewise.
44409         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44410
44411 2008-04-26  Bruno Haible  <bruno@clisp.org>
44412
44413         * modules/memchr-tests: New file.
44414         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44415
44416 2008-04-26  Eric Blake  <ebb9@byu.net>
44417             Bruno Haible  <bruno@clisp.org>
44418
44419         * lib/memchr.c: Include intprops.h.
44420         (__memchr): Optimize parallel detection of matching bytes. Rename local
44421         variables. Add explanatory comments.
44422
44423 2008-04-26  Bruno Haible  <bruno@clisp.org>
44424
44425         Fix module 'memchr', broken since 2000-10-28.
44426         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44427
44428 2008-04-26  Bruno Haible  <bruno@clisp.org>
44429
44430         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44431         comments.
44432
44433 2008-04-25  Eric Blake  <ebb9@byu.net>
44434
44435         Use native fstatat on cygwin 1.7.0.
44436         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44437         first.
44438
44439 2008-04-23  Eric Blake  <ebb9@byu.net>
44440
44441         Improve memchr2 performance.
44442         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44443         NUL bytes.
44444         * modules/memchr2 (Depends-on): Use intprops.h.
44445
44446 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44447
44448         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44449         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44450         <blp@cs.stanford.edu>.
44451
44452 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44453
44454         * lib/arpa_inet.in.h: New file.
44455
44456         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44457         (Makefile.am): Sed in substitute header file.
44458
44459         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44460         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44461
44462         * modules/inet_ntop (configure.ac): Use
44463         gl_ARPA_INET_MODULE_INDICATOR.
44464
44465         * modules/inet_pton (configure.ac): Use
44466         gl_ARPA_INET_MODULE_INDICATOR.
44467
44468 2008-04-22  Jim Meyering  <meyering@redhat.com>
44469
44470         * modules/verify (License): Re-license as LGPLv2+.
44471
44472 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44473
44474         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44475         parameter to void* as per POSIX standard (MinGW uses char*).
44476
44477 2008-04-21  Bruno Haible  <bruno@clisp.org>
44478
44479         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44480         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44481         Define to replacements if REPLACE_ISWCNTRL is 1.
44482         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44483         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44484         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44485         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44486         what it fixes.
44487         * doc/posix-functions/iswalpha.texi: Likewise.
44488         * doc/posix-functions/iswblank.texi: Likewise.
44489         * doc/posix-functions/iswcntrl.texi: Likewise.
44490         * doc/posix-functions/iswdigit.texi: Likewise.
44491         * doc/posix-functions/iswgraph.texi: Likewise.
44492         * doc/posix-functions/iswlower.texi: Likewise.
44493         * doc/posix-functions/iswprint.texi: Likewise.
44494         * doc/posix-functions/iswpunct.texi: Likewise.
44495         * doc/posix-functions/iswspace.texi: Likewise.
44496         * doc/posix-functions/iswupper.texi: Likewise.
44497         * doc/posix-functions/iswxdigit.texi: Likewise.
44498         Reported by Alain Guibert.
44499
44500 2008-04-21  Bruno Haible  <bruno@clisp.org>
44501
44502         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44503         Patch by Alain Guibert.
44504
44505 2008-04-21  Bruno Haible  <bruno@clisp.org>
44506
44507         Fix test failures on mingw.
44508         * tests/test-xstrtol.c (print_no_progname): New function.
44509         (main): Install it in error_print_progname hook.
44510         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44511         * tests/test-xstrtoimax.sh: Likewise.
44512         * tests/test-xstrtoumax.sh: Likewise.
44513
44514 2008-04-21  Bruno Haible  <bruno@clisp.org>
44515
44516         Fix test failure on mingw.
44517         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44518
44519 2008-04-21  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44522         Actually assign a value.
44523
44524 2008-04-20  Bruno Haible  <bruno@clisp.org>
44525
44526         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44527         take 2.
44528         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44529         'canonicalize-lgpl' module is also used.
44530         * lib/canonicalize-lgpl.c: Undo last change.
44531         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44532
44533 2008-04-20  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44536         config.h. Provide _mkdir based fallback for mingw.
44537         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44538         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44539         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44540         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44541         rather than defining mkdir in config.h.
44542         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44543         (gl_SYS_STAT_H_DEFAULTS): New macro.
44544         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44545         HAVE_IO_H any more.
44546         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44547         HAVE_DECL_MKDIR and HAVE_IO_H.
44548
44549 2008-04-20  Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/isapipe.c: Port to native Windows platforms.
44552
44553 2008-04-20  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44556
44557 2008-04-21  Eric Blake  <ebb9@byu.net>
44558
44559         Work around preprocessors that don't handle UINTMAX_MAX.
44560         * lib/memchr2.c (memchr2): Avoid embedded #if.
44561         Reported by Alain Guibert, fix suggested by Bruno Haible.
44562
44563 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44564
44565         * doc/posix-functions/strftime.texi (strftime): Explain better
44566         Windows incompatibility.  Suggested by Micah Cowan
44567         <micah@cowan.name>.
44568
44569 2008-04-20  Bruno Haible  <bruno@clisp.org>
44570
44571         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44572         unistr/u8-mblen.
44573
44574 2008-04-20  Bruno Haible  <bruno@clisp.org>
44575
44576         Fix test failure on platforms with non-GNU iconv.
44577         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44578         (U_TO_U8): Use it, rather than u16_to_u8.
44579         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44580         units at the end of the input string.
44581         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44582
44583 2008-04-20  Bruno Haible  <bruno@clisp.org>
44584
44585         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44586         when the resulting length is 0.
44587         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44588
44589 2008-04-20  Bruno Haible  <bruno@clisp.org>
44590
44591         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44592         works.
44593         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44594
44595 2008-04-20  Bruno Haible  <bruno@clisp.org>
44596
44597         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44598         * modules/tsearch-tests (configure.ac): Test for initstate function.
44599
44600 2008-04-20  Bruno Haible  <bruno@clisp.org>
44601
44602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44603         for nlink_t if missing.
44604         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44605
44606 2008-04-19  Bruno Haible  <bruno@clisp.org>
44607
44608         Work around snprintf bug on Linux libc5.
44609         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44611         gl_SNPRINTF_SIZE1.
44612         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44613         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44614         that test failed.
44615         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44616         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44617         * modules/snprintf (Files): Add m4/printf.m4.
44618         * modules/vsnprintf (Files): Likewise.
44619         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44620         * doc/posix-functions/vsnprintf.texi: Likewise.
44621
44622 2008-04-19  Bruno Haible  <bruno@clisp.org>
44623
44624         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44625         from 0.0058 to less than 10^-7.
44626
44627 2008-04-19  Bruno Haible  <bruno@clisp.org>
44628
44629         Fix rounding when a precision is given.
44630         * lib/vasnprintf.c (is_borderline): New function.
44631         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44632         9...9x.
44633         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44634         %e, %g.
44635         * tests/test-vasprintf-posix.c (test_function): Likewise.
44636         * tests/test-snprintf-posix.h (test_function): Likewise.
44637         * tests/test-sprintf-posix.h (test_function): Likewise.
44638         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44639         * tests/test-printf-posix.h (test_function): Likewise.
44640         * tests/test-printf-posix.output: Update.
44641         Reported by John Darrington <john@darrington.wattle.id.au> via
44642         Ben Pfaff <blp@cs.stanford.edu>.
44643
44644 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44645
44646         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44647         Suggested by Bruno Haible <bruno@clisp.org>.
44648
44649 2008-04-17  Bruno Haible  <bruno@clisp.org>
44650
44651         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44652         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44653         implementation.
44654         Patch by Bruce Merry <bmerry@gmail.com>.
44655
44656 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44657
44658         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44659         doesn't work under Windows.
44660
44661 2008-04-16  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44664         New macros.
44665         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44666         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44667         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44668         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44669         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44670         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44671         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44672         macros.
44673         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44674         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44675         Northern Sotho, Uighur.
44676
44677 2008-04-16  Bruno Haible  <bruno@clisp.org>
44678
44679         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44680         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44681         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44682         Reported by Daniel Bergström <daniel@octocode.com>.
44683
44684 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44685             Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44688         function.
44689         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44690         New functions, mostly extracted from gl_locale_name_default.
44691         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44692
44693 2008-04-16  Eric Blake  <ebb9@byu.net>
44694
44695         Adjust strtod detection to catch glibc 2.7 bug.
44696         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44697         Reported by John Gatewood Ham.
44698
44699 2008-04-16  Bruno Haible  <bruno@clisp.org>
44700
44701         Add tentative support for Linux libc5.
44702         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44703         * lib/fpurge.c (fpurge): Likewise.
44704         * lib/freadable.c (freadable): Likewise.
44705         * lib/freadahead.c (freadahead): Likewise.
44706         * lib/freading.c (freading): Likewise.
44707         * lib/freadptr.c (freadptr): Likewise.
44708         * lib/freadseek.c (freadptrinc): Likewise.
44709         * lib/fseeko.c (rpl_fseeko): Likewise.
44710         * lib/fseterr.c (fseterr): Likewise.
44711         * lib/fwritable.c (fwritable): Likewise.
44712         * lib/fwriting.c (fwriting): Likewise.
44713         Reported by Alain Guibert <alguibert+bts@free.fr>.
44714
44715 2008-04-15  Bruno Haible  <bruno@clisp.org>
44716
44717         * modules/mathl (configure.ac): Define module indicator.
44718
44719 2008-04-15  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/logl.c (logl): Remove unused variables.
44722
44723 2008-04-15  Bruno Haible  <bruno@clisp.org>
44724
44725         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44726         fails.
44727
44728 2008-04-15  Bruno Haible  <bruno@clisp.org>
44729
44730         * lib/trim.c (trim2): Fix argument of isspace() macro.
44731
44732 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44733
44734         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44735         to 0.
44736         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44737
44738 2008-04-14  Bruno Haible  <bruno@clisp.org>
44739
44740         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44741         AC_LANG_PROGRAM argument.
44742         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44743         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44744         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44745         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44746         * m4/math_h.m4 (gl_MATH_H): Likewise.
44747         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44748         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44749         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44750         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44751         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44752         * m4/regex.m4 (gl_REGEX): Likewise.
44753         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44754         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44756         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44757         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44758         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44760         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44761
44762 2008-04-14  Jim Meyering  <meyering@redhat.com>
44763
44764         test-strtod: fix typos: s/abs/fabs/
44765         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44766
44767 2008-04-13  Bruno Haible  <bruno@clisp.org>
44768
44769         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44770         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44771         module is also used and while not building the reloc-wrapper.
44772
44773 2008-04-13  Bruno Haible  <bruno@clisp.org>
44774
44775         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44776
44777 2008-04-13  Bruno Haible  <bruno@clisp.org>
44778
44779         Fix AIX compilation failure introduced on 2008-04-02.
44780         * tests/test-frexp.c (exp): Undefine before redefining.
44781         * tests/test-frexpl.c (exp): Likewise.
44782
44783 2008-04-13  Bruno Haible  <bruno@clisp.org>
44784
44785         Work around a HP-UX stdio bug.
44786         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44787         * tests/test-ftello.c (main): Likewise.
44788         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44789         * doc/posix-functions/ftello.texi: Likewise.
44790
44791 2008-04-13  Bruno Haible  <bruno@clisp.org>
44792
44793         Make test-signbit pass on HP-UX/hppa.
44794         * tests/test-signbit.c (minus_zerol): New variable.
44795         (test_signbitl): Use it.
44796
44797 2008-04-13  Bruno Haible  <bruno@clisp.org>
44798
44799         Make truncl work on OSF/1 4.0.
44800         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44801         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44802         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44804         HAVE_DECL_TRUNCL.
44805         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44806         HAVE_DECL_TRUNCL.
44807         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44808
44809 2008-04-13  Bruno Haible  <bruno@clisp.org>
44810
44811         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44812
44813 2008-04-13  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44816         expression, so as to avoid HP-UX 11 cc compiler bug.
44817
44818 2008-04-13  Bruno Haible  <bruno@clisp.org>
44819
44820         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44821
44822 2008-04-13  Bruno Haible  <bruno@clisp.org>
44823
44824         * lib/git-merge-changelog.c: Remove empty declaration outside of
44825         functions.
44826
44827 2008-04-13  Bruno Haible  <bruno@clisp.org>
44828
44829         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44830
44831 2008-04-13  Bruno Haible  <bruno@clisp.org>
44832
44833         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44834         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44835         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44836         also if it exists but lacks definitions of the SHUT_* macros.
44837         * modules/sys_socket (Description): Update.
44838         Reported by Elbert Pol <e.pol@chello.nl>.
44839
44840 2008-04-13  Bruno Haible  <bruno@clisp.org>
44841
44842         * lib/localcharset.c (OS2): Don't redefine if already defined.
44843         Reported by Elbert Pol <e.pol@chello.nl>.
44844
44845 2008-04-13  Bruno Haible  <bruno@clisp.org>
44846
44847         * lib/binary-io.h [__EMX__]: Include <io.h>.
44848         Reported by Elbert Pol <e.pol@chello.nl>.
44849
44850 2008-04-12  Bruno Haible  <bruno@clisp.org>
44851
44852         * lib/fpucw.h: Enable the definitions also for x86_64.
44853         Needed for NetBSD/x86_64.
44854         Reported by Thomas Klausner <tk@giga.or.at>.
44855
44856 2008-04-12  Bruno Haible  <bruno@clisp.org>
44857
44858         * tests/test-strtod.c: Include isnand.h.
44859         (main): Use isnand instead of isnan.
44860         Reported by Jim Meyering.
44861
44862 2008-04-12  Bruno Haible  <bruno@clisp.org>
44863
44864         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44865         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44866
44867 2008-04-12  Jim Meyering  <meyering@redhat.com>
44868
44869         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44870
44871 2008-04-12  Bruno Haible  <bruno@clisp.org>
44872
44873         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44874         Reported by Elbert Pol <e.pol@chello.nl>.
44875
44876 2008-04-12  Eric Blake  <ebb9@byu.net>
44877
44878         Work around Solaris 10 math.h bug.
44879         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44880         (gl_MATH_H_DEFAULTS): Set up default.
44881         * modules/math (Makefile.am): Replace new indicators.
44882         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44883         * tests/test-math.c (main): Test this.
44884         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44885         * doc/posix-headers/math.texi (math.h): Mention bug.
44886         Reported by Nelson H. F. Beebe and Jim Meyering.
44887
44888 2008-04-11  Bruno Haible  <bruno@clisp.org>
44889
44890         Adapt to future versions of Apple GCC.
44891         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44892         Reported by Peter O'Gorman <peter@pogma.com>.
44893
44894 2008-04-11  Bruno Haible  <bruno@clisp.org>
44895
44896         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44897
44898 2008-04-11  Bruno Haible  <bruno@clisp.org>
44899
44900         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44901
44902         * modules/getaddrinfo-tests (Makefile.am): Define
44903         test_getaddrinfo_LDADD.
44904
44905 2008-04-11  Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44908         (init): Fix syntax error.
44909         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44910         is declared.
44911
44912 2008-04-11  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44915         * modules/glob (Depends-on): Add stdbool.
44916
44917 2008-04-11  Bruno Haible  <bruno@clisp.org>
44918
44919         * lib/trim.c: Include <string.h>.
44920
44921 2008-04-11  Eric Blake  <ebb9@byu.net>
44922
44923         Avoid compile failure on OS/2.
44924         * lib/regex_internal.h (internal_function): Disable optimization
44925         on OS/2 (__EMX__), where it caused compiler error.
44926         Reported by Elbert Pol.
44927
44928 2008-04-11  Bruno Haible  <bruno@clisp.org>
44929
44930         Flush the standard error stream before aborting. Needed on mingw.
44931         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44932         * tests/test-array_list.c (ASSERT): Likewise.
44933         * tests/test-array_oset.c (ASSERT): Likewise.
44934         * tests/test-avltree_list.c (ASSERT): Likewise.
44935         * tests/test-avltree_oset.c (ASSERT): Likewise.
44936         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44937         * tests/test-binary-io.c (ASSERT): Likewise.
44938         * tests/test-byteswap.c (ASSERT): Likewise.
44939         * tests/test-c-ctype.c (ASSERT): Likewise.
44940         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44941         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44942         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44943         * tests/test-c-strstr.c (ASSERT): Likewise.
44944         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44945         * tests/test-canonicalize.c (ASSERT): Likewise.
44946         * tests/test-carray_list.c (ASSERT): Likewise.
44947         * tests/test-ceilf1.c (ASSERT): Likewise.
44948         * tests/test-ceilf2.c (ASSERT): Likewise.
44949         * tests/test-ceill.c (ASSERT): Likewise.
44950         * tests/test-count-one-bits.c (ASSERT): Likewise.
44951         * tests/test-fbufmode.c (ASSERT): Likewise.
44952         * tests/test-fflush2.c (ASSERT): Likewise.
44953         * tests/test-floorf1.c (ASSERT): Likewise.
44954         * tests/test-floorf2.c (ASSERT): Likewise.
44955         * tests/test-floorl.c (ASSERT): Likewise.
44956         * tests/test-fopen.c (ASSERT): Likewise.
44957         * tests/test-fpending.c (ASSERT): Likewise.
44958         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44959         * tests/test-fpurge.c (ASSERT): Likewise.
44960         * tests/test-freadable.c (ASSERT): Likewise.
44961         * tests/test-freadahead.c (ASSERT): Likewise.
44962         * tests/test-freading.c (ASSERT): Likewise.
44963         * tests/test-freadptr.c (ASSERT): Likewise.
44964         * tests/test-freadptr2.c (ASSERT): Likewise.
44965         * tests/test-freadseek.c (ASSERT): Likewise.
44966         * tests/test-freopen.c (ASSERT): Likewise.
44967         * tests/test-frexp.c (ASSERT): Likewise.
44968         * tests/test-frexpl.c (ASSERT): Likewise.
44969         * tests/test-fseek.c (ASSERT): Likewise.
44970         * tests/test-fseeko.c (ASSERT): Likewise.
44971         * tests/test-fstrcmp.c (ASSERT): Likewise.
44972         * tests/test-ftell.c (ASSERT): Likewise.
44973         * tests/test-ftello.c (ASSERT): Likewise.
44974         * tests/test-func.c (ASSERT): Likewise.
44975         * tests/test-fwritable.c (ASSERT): Likewise.
44976         * tests/test-fwriting.c (ASSERT): Likewise.
44977         * tests/test-getdelim.c (ASSERT): Likewise.
44978         * tests/test-getline.c (ASSERT): Likewise.
44979         * tests/test-i-ring.c (ASSERT): Likewise.
44980         * tests/test-iconv-utf.c (ASSERT): Likewise.
44981         * tests/test-iconv.c (ASSERT): Likewise.
44982         * tests/test-isfinite.c (ASSERT): Likewise.
44983         * tests/test-isnand.c (ASSERT): Likewise.
44984         * tests/test-isnanf.c (ASSERT): Likewise.
44985         * tests/test-isnanl.h (ASSERT): Likewise.
44986         * tests/test-ldexpl.c (ASSERT): Likewise.
44987         * tests/test-linked_list.c (ASSERT): Likewise.
44988         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44989         * tests/test-localename.c (ASSERT): Likewise.
44990         * tests/test-lseek.c (ASSERT): Likewise.
44991         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44992         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44993         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44994         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44995         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44996         * tests/test-mbschr.c (ASSERT): Likewise.
44997         * tests/test-mbscspn.c (ASSERT): Likewise.
44998         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44999         * tests/test-mbspbrk.c (ASSERT): Likewise.
45000         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45001         * tests/test-mbsrchr.c (ASSERT): Likewise.
45002         * tests/test-mbsspn.c (ASSERT): Likewise.
45003         * tests/test-mbsstr1.c (ASSERT): Likewise.
45004         * tests/test-mbsstr2.c (ASSERT): Likewise.
45005         * tests/test-mbsstr3.c (ASSERT): Likewise.
45006         * tests/test-memchr2.c (ASSERT): Likewise.
45007         * tests/test-memmem.c (ASSERT): Likewise.
45008         * tests/test-open.c (ASSERT): Likewise.
45009         * tests/test-printf-frexp.c (ASSERT): Likewise.
45010         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45011         * tests/test-printf-posix.c (ASSERT): Likewise.
45012         * tests/test-quotearg.c (ASSERT): Likewise.
45013         * tests/test-rbtree_list.c (ASSERT): Likewise.
45014         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45015         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45016         * tests/test-round1.c (ASSERT): Likewise.
45017         * tests/test-roundf1.c (ASSERT): Likewise.
45018         * tests/test-roundl.c (ASSERT): Likewise.
45019         * tests/test-signbit.c (ASSERT): Likewise.
45020         * tests/test-sleep.c (ASSERT): Likewise.
45021         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45022         * tests/test-snprintf.c (ASSERT): Likewise.
45023         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45024         * tests/test-stat-time.c (ASSERT): Likewise.
45025         * tests/test-strcasestr.c (ASSERT): Likewise.
45026         * tests/test-strerror.c (ASSERT): Likewise.
45027         * tests/test-striconv.c (ASSERT): Likewise.
45028         * tests/test-striconveh.c (ASSERT): Likewise.
45029         * tests/test-striconveha.c (ASSERT): Likewise.
45030         * tests/test-strsignal.c (ASSERT): Likewise.
45031         * tests/test-strstr.c (ASSERT): Likewise.
45032         * tests/test-strtod.c (ASSERT): Likewise.
45033         * tests/test-trunc1.c (ASSERT): Likewise.
45034         * tests/test-trunc2.c (ASSERT): Likewise.
45035         * tests/test-truncf1.c (ASSERT): Likewise.
45036         * tests/test-truncf2.c (ASSERT): Likewise.
45037         * tests/test-truncl.c (ASSERT): Likewise.
45038         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45039         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45040         * tests/test-vasnprintf.c (ASSERT): Likewise.
45041         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45042         * tests/test-vasprintf.c (ASSERT): Likewise.
45043         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45044         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45045         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45046         * tests/test-vsnprintf.c (ASSERT): Likewise.
45047         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45048         * tests/test-wcwidth.c (ASSERT): Likewise.
45049         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45050         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45051         * tests/test-xvasprintf.c (ASSERT): Likewise.
45052         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45053         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45054         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45055         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45056         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45057         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45058         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45059         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45060         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45061         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45062         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45063         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45064         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45065         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45066         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45067         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45068         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45069         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45070         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45071         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45072         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45073         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45074         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45075         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45076         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45077         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45078         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45079         * tests/unictype/test-combining.c (ASSERT): Likewise.
45080         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45081         * tests/unictype/test-digit.c (ASSERT): Likewise.
45082         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45083         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45084         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45085         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45086         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45087         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45088         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45089         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45090         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45091         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45092         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45093         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45094         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45095         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45096         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45097         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45098         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45099         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45100         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45101         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45102         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45103         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45104         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45105         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45106         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45107         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45108         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45109         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45110         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45111         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45112         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45113         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45114         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45115         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45116         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45117         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45118         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45119         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45120         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45121         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45122         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45123         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45124         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45125         Reported by Eric Blake.
45126
45127 2008-04-11  Bruno Haible  <bruno@clisp.org>
45128
45129         * lib/wchar.in.h: Tweak comment.
45130
45131 2008-04-11  Bruno Haible  <bruno@clisp.org>
45132
45133         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45134         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45135         gl_COMMON.
45136         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45137
45138 2008-04-11  Bruno Haible  <bruno@clisp.org>
45139
45140         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45141
45142 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45143
45144         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45145         of attempting to use non-existing /dev/*random.  Based on patch
45146         from Adam Strzelecki <ono@java.pl> in
45147         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45148
45149 2008-04-08  Bruno Haible  <bruno@clisp.org>
45150
45151         Add tentative support for emx+gcc.
45152         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45153         * lib/fpurge.c (fpurge): Likewise.
45154         * lib/freadable.c (freadable): Likewise.
45155         * lib/freadahead.c (freadahead): Likewise.
45156         * lib/freading.c (freading): Likewise.
45157         * lib/freadptr.c (freadptr): Likewise.
45158         * lib/freadseek.c (freadptrinc): Likewise.
45159         * lib/fseeko.c (rpl_fseeko): Likewise.
45160         * lib/fseterr.c (fseterr): Likewise.
45161         * lib/fwritable.c (fwritable): Likewise.
45162         * lib/fwriting.c (fwriting): Likewise.
45163         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45164
45165 2008-04-09  Eric Blake  <ebb9@byu.net>
45166
45167         Avoid some autoconf warnings.
45168         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45169         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45170         * m4/afs.m4 (gl_AFS): Likewise.
45171         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45172         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45173         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45174         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45175         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45176         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45177         (AC_CHECK_DECLS_ONCE): Likewise.
45178         Rename file...
45179         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45180         gnulib-tool requires autoconf 2.59 or better.
45181         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45182
45183 2008-04-08  Eric Blake  <ebb9@byu.net>
45184
45185         Use 'git describe --match' if present (added in git 1.5.5).
45186         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45187         if possible.
45188
45189 2008-04-08  Bruno Haible  <bruno@clisp.org>
45190
45191         Add tentative support for OpenServer.
45192         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45193         _ptr, _cnt.
45194         * lib/fpurge.c (fpurge): Likewise.
45195         * lib/freadable.c (freadable): Likewise.
45196         * lib/freadahead.c (freadahead): Likewise.
45197         * lib/freading.c (freading): Likewise.
45198         * lib/freadptr.c (freadptr): Likewise.
45199         * lib/freadseek.c (freadptrinc): Likewise.
45200         * lib/fseeko.c (rpl_fseeko): Likewise.
45201         * lib/fseterr.c (fseterr): Likewise.
45202         * lib/fwritable.c (fwritable): Likewise.
45203         * lib/fwriting.c (fwriting): Likewise.
45204         Reported by Roger Cornelius <rac@tenzing.org> and
45205         Brian K. White <brian@aljex.com>.
45206
45207 2008-04-06  Jim Meyering  <meyering@redhat.com>
45208
45209         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45210
45211 2008-04-06  Bruno Haible  <bruno@clisp.org>
45212
45213         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45214         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45215         * tests/test-printf-posix.sh: Likewise.
45216         * tests/test-vfprintf-posix.sh: Likewise.
45217         * tests/test-vprintf-posix.sh: Likewise.
45218         * tests/test-xprintf-posix.sh: Likewise.
45219
45220 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45221
45222         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45223         hide error from 'ls', needed on OS/2.
45224         Report by Elbert Pol <elbert.pol@gmail.com>.
45225
45226 2008-04-04  Eric Blake  <ebb9@byu.net>
45227
45228         Make test-fseeko.c failures meaningful.
45229         * tests/test-fseeko.c: Print line number on failure.
45230         * tests/test-fseek.c: Likewise.
45231         Reported by Nelson H. F. Beebe.
45232
45233         Improve strtod bug detection check.
45234         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45235         required for Solaris 10.
45236         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45237
45238 2008-04-04  Bruno Haible  <bruno@clisp.org>
45239
45240         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45241         by m4/setenv.m4.
45242
45243 2008-04-03  Eric Blake  <ebb9@byu.net>
45244
45245         Ensure sane .version contents.
45246         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45247         version string.
45248         * build-aux/git-version-gen: Improve documentation.
45249
45250         Make GNU make output nicer.
45251         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45252         MAKECMDGOALS to enforce message for all command line targets.  Set
45253         srcdir for use in maint.mk.
45254
45255         Another maintainer tweak.
45256         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45257         a target that regenerates version.
45258
45259 2008-04-03  Jim Meyering  <meyering@redhat.com>
45260
45261         vc-list-files: don't cause coreutils "make po-check" failure
45262         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45263
45264 2008-04-03  Eric Blake  <ebb9@byu.net>
45265
45266         Allow VPATH usage of vc-list-files.
45267         * build-aux/vc-list-files (scriptversion): Add timestamp.
45268         (options): Add --help, --version, -C.
45269         (CVS): Support installed cvsu.
45270
45271 2008-04-02  Bruno Haible  <bruno@clisp.org>
45272
45273         Avoid some "statement with no effect" warnings from gcc.
45274         * tests/test-wctype.c (main): Explicitly ignore unused values.
45275         Reported by Jim Meyering.
45276
45277 2008-04-02  Jim Meyering  <meyering@redhat.com>
45278
45279         Avoid some warnings from "gcc -Wshadow".
45280         * tests/test-frexp.c (exp): Define to a different identifier.
45281         * tests/test-frexpl.c (exp): Likewise.
45282
45283 2008-04-03  Jim Meyering  <meyering@redhat.com>
45284
45285         bootstrap: remove dangling *.[ch] symlinks from lib
45286         * build-aux/bootstrap [dangling symlink removal]: Move find's
45287         -depth option to precede all others, to avoid a warning.
45288         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45289
45290 2008-04-02  Bruno Haible  <bruno@clisp.org>
45291
45292         Avoid some warnings from "gcc -Wshadow".
45293         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45294         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45295         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45296         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45297         Reported by Jim Meyering.
45298
45299 2008-04-01  Bruno Haible  <bruno@clisp.org>
45300
45301         Fix test to work on IRIX 6.5 with cc.
45302         * tests/test-math.c (numeric_equal): New function.
45303         (main): Use it.
45304
45305 2008-04-01  Bruno Haible  <bruno@clisp.org>
45306
45307         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45308
45309 2008-04-01  Bruno Haible  <bruno@clisp.org>
45310
45311         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45312         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45313         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45314         (Depends-on): Remove math.
45315
45316         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45317         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45318         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45319         (Depends-on): Remove math.
45320
45321         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45322         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45323         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45324         (Depends-on): Remove math.
45325         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45326         (Depends-on): Remove math.
45327
45328         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45329         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45330         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45331         (Depends-on): Remove math.
45332         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45333         (Depends-on): Remove math.
45334
45335         * tests/test-round1.c: Include nan.h.
45336         (main): Use NaNd instead of NAN.
45337         * modules/round-tests (Files): Add tests/nan.h.
45338
45339         * tests/test-trunc1.c: Include nan.h.
45340         (main): Use NaNd instead of NAN.
45341         * modules/trunc-tests (Files): Add tests/nan.h.
45342
45343         * tests/test-roundf1.c: Include nan.h.
45344         (main): Use NaNf instead of NAN.
45345         * modules/roundf-tests (Files): Add tests/nan.h.
45346
45347         * tests/test-truncf1.c: Include nan.h.
45348         (main): Use NaNf instead of NAN.
45349         * modules/truncf-tests (Files): Add tests/nan.h.
45350
45351         * tests/test-ceilf1.c: Include nan.h.
45352         (main): Use NaNf instead of NAN.
45353         * modules/ceilf-tests (Files): Add tests/nan.h.
45354
45355         * tests/test-floorf1.c: Include nan.h.
45356         (main): Use NaNf instead of NAN.
45357         * modules/floorf-tests (Files): Add tests/nan.h.
45358
45359         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45360         (main): Use NaNf instead of NAN.
45361         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45362
45363         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45364         (main): Use NaNd instead of NAN.
45365         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45366
45367         * tests/test-frexp.c: Include nan.h.
45368         (main): Use NaNd instead of NAN.
45369         * modules/frexp-tests (Files): Add tests/nan.h.
45370
45371         * lib/isnan.c: Don't include <math.h>.
45372         (FUNC): Don't use NAN macro.
45373         * modules/isnand-nolibm (Depends-on): Remove math.
45374         * modules/isnanf-nolibm (Depends-on): Remove math.
45375         * modules/isnanl (Depends-on): Remove math.
45376         * modules/isnanl-nolibm (Depends-on): Remove math.
45377
45378         * tests/nan.h: New file.
45379
45380 2008-04-01  Eric Blake  <ebb9@byu.net>
45381
45382         Fix typos.
45383         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45384         values to be the right type.
45385
45386         For now, cater to gnulib strtod inaccuracies.
45387         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45388         fractional results.  While not as nice from a QoI perspective, it
45389         is a quicker patch than correctly implementing decimal to binary
45390         rounding.
45391
45392 2008-03-31  Eric Blake  <ebb9@byu.net>
45393
45394         Guarantee a definition of NAN.
45395         * lib/math.in.h (NAN): Define if missing.
45396         * tests/test-math.c (main): Test it.
45397         * doc/posix-headers/math.texi (math.h): Document this.
45398         * lib/isnan.c (rpl_isnand): Use it.
45399         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45400         * tests/test-floorf1.c (NaN): Likewise.
45401         * tests/test-frexp.c (NaN): Likewise.
45402         * tests/test-isnand.c (NaN): Likewise.
45403         * tests/test-isnanf.c (NaN): Likewise.
45404         * tests/test-round1.c (NaN): Likewise.
45405         * tests/test-roundf1.c (NaN): Likewise.
45406         * tests/test-snprintf-posix.h (NaN): Likewise.
45407         * tests/test-sprintf-posix.h (NaN): Likewise.
45408         * tests/test-trunc1.c (NaN): Likewise.
45409         * tests/test-truncf1.c (NaN): Likewise.
45410         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45411         * tests/test-vasprintf-posix.c (NaN): Likewise.
45412         * modules/isnand-nolibm (Depends-on): Add math.
45413         * modules/isnanf-nolibm (Depends-on): Likewise.
45414         * modules/isnanl (Depends-on): Likewise.
45415         * modules/isnanl-nolibm (Depends-on): Likewise.
45416         * modules/snprintf-posix-tests (Depends-on): Likewise.
45417         * modules/sprintf-posix-tests (Depends-on): Likewise.
45418         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45419         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45420         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45421         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45422
45423 2008-03-31  Bruno Haible  <bruno@clisp.org>
45424
45425         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45426         * doc/posix-functions/strtod.texi: Likewise.
45427
45428 2008-03-31  Bruno Haible  <bruno@clisp.org>
45429
45430         * tests/test-strtod.c (main): Don't use C99 syntax.
45431
45432 2008-03-31  Bruno Haible  <bruno@clisp.org>
45433
45434         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45435         Reported by Eric Blake.
45436
45437 2008-03-31  Jim Meyering  <meyering@redhat.com>
45438
45439         Don't compare actual signbit return values.
45440         * tests/test-strtod.c (main): Rather, compare only their
45441         zero/non-zero nature.
45442
45443 2008-03-31  Eric Blake  <ebb9@byu.net>
45444
45445         More strtod documentation.
45446         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45447         failures as distinct bugs.
45448
45449 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45450
45451         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45452         Problem reported by Erik Benada in
45453         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45454
45455 2008-03-30  Bruno Haible  <bruno@clisp.org>
45456
45457         * tests/test-strtod.c: Add comments about which assertion fails on which
45458         platform.
45459         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45460
45461 2008-03-30  Eric Blake  <ebb9@byu.net>
45462
45463         Test signbit behavior on zeros.
45464         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45465         (test_signbitd, test_signbitl): Likewise.
45466
45467         More strtod touchups.
45468         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45469         sign of negative underflow, for now.  Use .5, not .1.
45470         * doc/posix-functions/strtod.texi (strtod): Mention these
45471         limitations.
45472         Reported by Jim Meyering.
45473
45474 2008-03-30  Bruno Haible  <bruno@clisp.org>
45475
45476         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45477         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45478
45479 2008-03-30  Bruno Haible  <bruno@clisp.org>
45480
45481         Avoid failure when attempting to return empty iconv results on some
45482         platforms.
45483         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45484         allocation, don't report ENOMEM when the resulting string is empty.
45485
45486 2008-03-30  Bruno Haible  <bruno@clisp.org>
45487
45488         Fix buffer overrun.
45489         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45490         Don't consider the width for tmp_length. Check count against tmp_length
45491         before doing the padding. Ensure enough allocation during padding.
45492
45493 2008-03-30  Eric Blake  <ebb9@byu.net>
45494
45495         strtod touchups.
45496         * lib/strtod.c (strtod): Avoid compiler warnings.
45497         Reported by Jim Meyering.
45498
45499 2008-03-30  Bruno Haible  <bruno@clisp.org>
45500
45501         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45502         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45503         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45504         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45505         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45506         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45507         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45508         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45509
45510         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45511         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45512         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45513         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45514         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45515         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45516         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45517         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45518
45519         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45520         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45521         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45522         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45523         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45524         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45525         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45526         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45527
45528         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45529         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45530
45531         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45532         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45533
45534         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45535         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45536
45537         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45538         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45539         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45540
45541         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45542         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45543         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45544
45545         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45547         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45548
45549         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45550         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45551         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45552
45553         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45554         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45556         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45557         (Depends-on): Add EOVERFLOW.
45558         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45559         (Depends-on): Add EOVERFLOW.
45560         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45561         (Depends-on): Add EOVERFLOW.
45562         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45563         (Depends-on): Add EOVERFLOW.
45564         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45565         (Depends-on): Add EOVERFLOW.
45566         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45567         (Depends-on): Add EOVERFLOW.
45568         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45569         (Depends-on): Add EOVERFLOW.
45570         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45571         (Depends-on): Add EOVERFLOW.
45572
45573         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45575         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45576
45577         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45579         * modules/snprintf (Depends-on): Add EOVERFLOW.
45580
45581         * lib/poll.c (EOVERFLOW): Remove fallback.
45582         * modules/poll (Depends-on): Add EOVERFLOW.
45583
45584         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45585         * modules/getugroups (Depends-on): Add EOVERFLOW.
45586
45587         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45588         * modules/getdelim (Depends-on): Add EOVERFLOW.
45589
45590         * lib/ftell.c (EOVERFLOW): Remove fallback.
45591         * modules/ftell (Depends-on): Add EOVERFLOW.
45592
45593         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45595         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45596
45597         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45598
45599         * modules/EOVERFLOW-tests: New file.
45600         * tests/test-EOVERFLOW.c: New file.
45601
45602         * modules/EOVERFLOW: New file.
45603         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45604
45605 2008-03-30  Bruno Haible  <bruno@clisp.org>
45606
45607         Fix bug introduced on 2007-06-10.
45608         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45609         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45610
45611 2008-03-30  Bruno Haible  <bruno@clisp.org>
45612
45613         Improve freadseek's efficiency after ungetc.
45614         * lib/freadseek.c: Include freadahead.h.
45615         (freadptrinc): New function, extracted from freadseek.
45616         (freadseek): Use it in a loop. Use freadahead to determine the number
45617         of loop iterations.
45618         * modules/freadseek (Depends-on): Add freadahead.
45619         (configure.ac): Require AC_C_INLINE.
45620
45621 2008-03-30  Bruno Haible  <bruno@clisp.org>
45622
45623         * lib/freadseek.c (freadseek): Don't ignore the return value of
45624         freadptr.
45625
45626 2008-03-29  Eric Blake  <ebb9@byu.net>
45627
45628         Add hex float support.
45629         * modules/strtod (Depends-on): Add c-ctype.
45630         (Link): Mention POW_LIB.
45631         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45632         whitespace between 'e' and exponent.
45633         * tests/test-strtod.c (main): Enable hex float tests.
45634         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45635         now provides.
45636
45637         Document various strtod bugs, with some fixes.
45638         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45639         "-0x", "inf", "nan", and hex constants.
45640         * doc/posix-functions/atof.texi (atof): Likewise.
45641         * modules/stdlib (Makefile.am): Support strtod.
45642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45643         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45644         detect additional strtod bugs.
45645         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45646         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45647         bool where appropriate.  Parse 'inf' and 'nan'.
45648         * tests/test-strtod.c: New file.
45649         * modules/strtod (Depends-on): Add stdbool, stdlib.
45650         (configure.ac): Turn on module indicator.
45651         * modules/strtod-tests: New module.
45652
45653 2008-03-29  Eric Blake  <ebb9@byu.net>
45654
45655         Fix ftell on mingw.
45656         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45657         * modules/ftell-tests (Depends-on): Add binary-io.
45658         * modules/ftello-tests (Depends-on): Likewise.
45659         * tests/test-ftell.c (main): Enhance test to cover behavior after
45660         ungetc.  Enforce binary mode.
45661         * tests/test-ftello.c (main): Likewise.
45662
45663         Pass test-freadseek on cygwin.
45664         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45665         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45666         ungetc buffer.
45667
45668         * tests/test-fflush2.c (main): Fix typo.
45669
45670 2008-03-29  Bruno Haible  <bruno@clisp.org>
45671
45672         * tests/test-fflush2.c (main): Temporarily disable the contents of
45673         this test.
45674         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45675         Reported by Eric Blake.
45676
45677 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45678
45679         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45680         (GC_SHA224_DIGEST_SIZE): Add.
45681
45682         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45683         (gc_hash_digest_length): Likewise.
45684         (gc_hash_buffer): Likewise.
45685
45686 2008-03-25  Bruno Haible  <bruno@clisp.org>
45687
45688         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45689         detail which gettext release to use.
45690         Reported by Simon Josefsson.
45691
45692 2008-03-26  Jim Meyering  <meyering@redhat.com>
45693
45694         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45695         * modules/gnumakefile (clean-GNUmakefile): Also, use
45696         test ... && ... || : syntax rather than if-then ... fi.
45697
45698         gnumakefile: Don't double-quote-expand $(VPATH) value.
45699         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45700
45701 2008-03-24  Eric Blake  <ebb9@byu.net>
45702
45703         Alter GNUmakefile to install into top directory.
45704         * modules/maintainer-makefile: Split, and add dependency...
45705         * modules/gnumakefile: to this new module.
45706         * build-aux/GNUmakefile: Move...
45707         * top/GNUmakefile: ...here.
45708         * build-aux/maint.mk: Move...
45709         * top/maint.mk: ...here.
45710         * MODULES.html.sh (Support for maintaining...): Document new
45711         module.
45712
45713 2008-03-23  Bruno Haible  <bruno@clisp.org>
45714
45715         * gnulib-tool: New options --vc-files, --no-vc-files.
45716         (func_usage): Document them.
45717         (vc_files): New variable.
45718         (func_import): Consider vc_files.
45719         (func_create_testdir): Set vc_files to empty.
45720         Suggested by Jim Meyering and Karl Berry.
45721
45722 2008-03-23  Bruno Haible  <bruno@clisp.org>
45723
45724         Fix regex compilation error on HP-UX 11.
45725         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45726         * modules/regex (Files): Add m4/mbstate_t.m4.
45727         Reported by Ton Voon <ton.voon@altinity.com>.
45728
45729 2008-03-23  Bruno Haible  <bruno@clisp.org>
45730
45731         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45732
45733 2008-03-23  Eric Blake  <ebb9@byu.net>
45734             Bruno Haible  <bruno@clisp.org>
45735
45736         Install files from top/ in the destination directory.
45737         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45738         augmentation also for the files from top/.
45739         (func_import, func_create_testdir): Rewrite file names:
45740         top/filename -> filename.
45741
45742 2008-03-23  Bruno Haible  <bruno@clisp.org>
45743
45744         Tweak "gnulib --version" output.
45745         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45746
45747 2008-03-23  Bruno Haible  <bruno@clisp.org>
45748
45749         Tweak "gnulib --version" output.
45750         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45751         rather than contents of ChangeLog, when possible.
45752
45753 2008-03-21  Eric Blake  <ebb9@byu.net>
45754
45755         More --version tweaks.
45756         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45757         date of last ChangeLog entry.
45758
45759 2008-03-21  Jim Meyering  <meyering@redhat.com>
45760
45761         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45762
45763 2008-03-20  Eric Blake  <ebb9@byu.net>
45764
45765         VPATH fix.
45766         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45767
45768 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45769
45770         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45771         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45772
45773 2008-03-20  Eric Blake  <ebb9@byu.net>
45774
45775         Sync GNUmakefile with coreutils.
45776         * build-aux/GNUmakefile (have-Makefile): Rename...
45777         (_have-Makefile): ...to this, for namespace consideration.
45778         (GNUmakefile.cfg): Include, if present.
45779         (_autoreconf): Define a default.
45780         (_is-dist-target): New rule for rebuilds to pick up intra-release
45781         version.
45782         (maint-cfg.mk): Rename...
45783         (cfg.mk): ...to this.
45784
45785 2008-03-18  Jim Meyering  <meyering@redhat.com>
45786
45787         New script and module: mktempd
45788         * MODULES.html.sh (maint+release support): Add mktempd.
45789         * build-aux/mktempd: New file.
45790         * modules/mktempd: New file.
45791
45792 2008-03-15  Jim Meyering  <meyering@redhat.com>
45793
45794         Undo last change.
45795         * lib/sha1.c, lib/md5.c: 63 != ~63.
45796         Reported by Andreas Schwab.
45797
45798         sha1.c, md5.c: Hoist a redundant expression.
45799         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45800         "ctx->buflen" only once, before calling *_process_block.
45801         * lib/md5.c (md5_process_bytes): Likewise.
45802
45803 2008-03-14  Eric Blake  <ebb9@byu.net>
45804
45805         Bump copyright year in files generated by gnulib-tool.
45806         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45807         gnulib-tool, rather than hard-coding it.
45808
45809         Fix 'gnulib-tool --version' output to work with git.
45810         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45811         (startup): ...here.
45812         (func_version): Use it to invoke git-version-gen, rather than
45813         relying on CVS keyword expansion.  Modernize wording.
45814         (cvsdatestamp, last_checkin_date, version): Kill unused
45815         variables.
45816
45817 2008-03-12  Jim Meyering  <meyering@redhat.com>
45818
45819         Recognize optional cast of the argument to free.
45820         * build-aux/useless-if-before-free: Update regexps.
45821
45822         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45823
45824 2008-03-11  Bruno Haible  <bruno@clisp.org>
45825
45826         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45827         by a single package.
45828         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45829         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45830         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45831         Reported by Sam Steingold <sds@gnu.org>.
45832
45833 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45834
45835         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45836         repositories.
45837
45838 2008-03-11  Bruno Haible  <bruno@clisp.org>
45839
45840         Avoid conflicts between local macro definitions.
45841         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45842         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45843
45844 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45845             Bruno Haible  <bruno@clisp.org>
45846
45847         Make va_copy work with some version of xlc on AIX 5.1.
45848         * lib/stdarg.in.h: New file.
45849         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45850         On AIX, use a <stdarg.h> file substitute.
45851         * modules/stdarg (Files): Add lib/stdarg.in.h.
45852         (Depends-on): Add include_next.
45853         (Makefile.am): Build a stdarg.h substitute if requested.
45854         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45855
45856 2008-03-10  Bruno Haible  <bruno@clisp.org>
45857
45858         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45859         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45860         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45861
45862 2008-03-10  Bruno Haible  <bruno@clisp.org>
45863
45864         * modules/stdlib (Depends-on): Add include_next, remove
45865         absolute-header.
45866
45867 2008-03-09  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/freadahead.h (freadahead): Document more precisely.
45870         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45871         the sum of both buffer sizes.
45872         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45873         * NEWS: Document the change.
45874
45875 2008-03-09  Bruno Haible  <bruno@clisp.org>
45876
45877         Extend freadptr to return also the buffer size.
45878         * lib/freadptr.h (freadptr): Add sizep argument.
45879         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45880         (freadptr): Add sizep argument. Determine buffer size like freadahead
45881         does.
45882         * tests/test-freadptr.c: Don't include freadahead.h.
45883         (main): Adapt for new calling convention of freadptr.
45884         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45885         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45886         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45887         tests/test-freadptr2.sh.
45888         (Depends): Remove freadahead.
45889         (TESTS): Add test-freadptr2.sh.
45890         (check_PROGRAMS): Add test-freadptr2.
45891
45892 2008-03-09  Bruno Haible  <bruno@clisp.org>
45893
45894         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45895         Report and solution by Simon Josefsson.
45896
45897 2008-03-06  Bruno Haible  <bruno@clisp.org>
45898
45899         Make fflush after ungetc work on BSD platforms.
45900         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45901         * tests/test-fflush2.c: New file.
45902         * tests/test-fflush2.sh: New file.
45903         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45904         tests/test-fflush2.c.
45905         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45906         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45907
45908 2008-03-06  Eric Blake  <ebb9@byu.net>
45909
45910         Likewise for ftello.
45911         * modules/ftello (Dependencies): Add extensions.
45912         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45913
45914 2008-03-06  Bruno Haible  <bruno@clisp.org>
45915
45916         * modules/fseeko (Dependencies): Add extensions.
45917         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45918         Needed on glibc systems.
45919
45920 2008-03-06  Bruno Haible  <bruno@clisp.org>
45921
45922         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45923         email address.
45924         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45925
45926 2008-03-06  Bruno Haible  <bruno@clisp.org>
45927
45928         * users.txt: Add libgnupdf.
45929
45930 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45931
45932         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45933         (Header File Substitutes, Function Substitutes,
45934         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45935         (Build robot for gnulib): Fix typo.
45936
45937 2008-03-06  Bruno Haible  <bruno@clisp.org>
45938
45939         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45940         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45941
45942 2008-03-06  Bruno Haible  <bruno@clisp.org>
45943
45944         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45945         * doc/gnulib.texi: Include it.
45946
45947 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45948
45949         * modules/func (License): Change license to unlimited; there was
45950         no LGPL parts in the module anyway.
45951
45952 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45953
45954         * modules/__func__: Renamed to modules/func.
45955         * modules/__func__-tests: Renamed to modules/func-tests.
45956         * tests/test-__func__.c: Renamed to tests/test-func.c.
45957         * m4/__func__.m4: Renamed to m4/func.m4.
45958         * doc/gnulib.texi (__func__): Section renamed to func.
45959         Suggested by Eric Blake <ebb9@byu.net>.
45960
45961 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45962
45963         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45964         about __func__.  Make example self-contained.  Suggested by Eric
45965         Blake <ebb9@byu.net>.
45966
45967         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45968         Suggested by Eric Blake <ebb9@byu.net>.
45969
45970 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45971
45972         * modules/__func__: New file.
45973         * modules/__func__-tests: New file.
45974         * tests/test-__func__.c: New file.
45975         * m4/__func__.m4: New file.
45976         * doc/gnulib.texi (__func__): Document __func__ module.
45977
45978 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45979
45980         * modules/byteswap (License): Re-license as LGPLv2+.
45981
45982 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45983
45984         * doc/Makefile: Add pdf target.
45985
45986 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45987
45988         * modules/inline (License): Use 'unlimited', since there are only
45989         *.m4 files in this module.
45990
45991 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45992             Bruno Haible  <bruno@clisp.org>
45993
45994         Add support for HP C 7.1 on OpenVMS 8.3.
45995         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45996
45997 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45998
45999         Update VMS specifics.
46000         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46001
46002 2008-03-02  Jim Meyering  <meyering@redhat.com>
46003
46004         Remove the last dependency on the "free" module.
46005         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46006         Reported by Bob Proulx.
46007
46008         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46009
46010         Remove useless "if" tests before free.  Deprecate "free" module.
46011         * doc/posix-functions/free.texi: Mention that this
46012         module is no longer useful.
46013         * modules/free (Notice): Say this module is obsolete.
46014         * modules/readutmp (Depends-on): Remove free.
46015         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46016         * lib/putenv.c (putenv): Likewise.
46017         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46018         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46019         * tests/test-c-strcasestr.c (main): Likewise.
46020         * tests/test-c-strstr.c (main): Likewise.
46021         * tests/test-mbscasestr1.c (main): Likewise.
46022         * tests/test-mbscasestr2.c (main): Likewise.
46023         * tests/test-mbsstr1.c (main): Likewise.
46024         * tests/test-mbsstr2.c (main): Likewise.
46025         * tests/test-memmem.c (main): Likewise.
46026         * tests/test-strcasestr.c (main): Likewise.
46027         * tests/test-striconv.c (main): Likewise.
46028         * tests/test-striconveh.c (main): Likewise.
46029         * tests/test-striconveha.c (main): Likewise.
46030         * tests/test-strstr.c (main): Likewise.
46031
46032         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46033
46034         bootstrap: sync from coreutils again
46035         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46036
46037 2008-03-01  Jim Meyering  <meyering@redhat.com>
46038
46039         bootstrap: sync from coreutils
46040         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46041         also when the target doesn't exist.
46042
46043 2008-03-01  Eric Blake  <ebb9@byu.net>
46044
46045         Fix bugs in last patch.
46046         * lib/memchr2.c (memchr2): Fix typo.
46047         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46048         extension.
46049         Reported by Bruce Korb.
46050
46051         New module 'memchr2'.
46052         * modules/memchr2: New file.
46053         * modules/memchr2-tests: Likewise.
46054         * lib/memchr2.h: Likewise.
46055         * lib/memchr2.c: Likewise, based on memchr.c.
46056         * tests/test-memchr2.c: New test.
46057         * MODULES.html.sh (String handling): Add memchr2.
46058
46059 2008-02-29  Bruno Haible  <bruno@clisp.org>
46060
46061         * modules/freadseek-tests: New file.
46062         * tests/test-freadseek.sh: New file.
46063         * tests/test-freadseek.c: New file.
46064
46065         New module 'freadseek'.
46066         * modules/freadseek: New file.
46067         * lib/freadseek.h: New file.
46068         * lib/freadseek.c: New file.
46069         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46070
46071 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46072
46073         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46074         wydawca.
46075
46076         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46077         program_invocation_name and program_invocation_short_name are
46078         present.
46079
46080 2008-02-28  Bruno Haible  <bruno@clisp.org>
46081
46082         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46083         * tests/test-freadptr.sh: Also test non-seekable stdin.
46084
46085 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46086
46087         * build-aux/bootstrap (source_base, m4_base)
46088         (doc_base, tests_base): New variables.
46089         (gnulib_tool_options): Do not hardcode base directories, use
46090         the above variables instead.
46091
46092 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46093
46094         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46095
46096 2008-02-28  Bruno Haible  <bruno@clisp.org>
46097
46098         * modules/freadptr-tests: New file.
46099         * tests/test-freadptr.sh: New file.
46100         * tests/test-freadptr.c: New file.
46101
46102         New module 'freadptr'.
46103         * modules/freadptr: New file.
46104         * lib/freadptr.h: New file.
46105         * lib/freadptr.c: New file.
46106         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46107
46108 2008-02-26  Karl Berry  <karl@freefriends.org>
46109
46110         Sync from Libtool:
46111         * libltdl/argz.c (argz_add, argz_count): New functions.
46112         * libltdl/argz.in.h: Declare them.
46113         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46114
46115 2008-02-22  Bruno Haible  <bruno@clisp.org>
46116
46117         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46118         is a pointer type.  Needed for HP-UX 10.
46119         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46120         * doc/posix-functions/gmtime_r.texi: Likewise.
46121         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46122
46123 2008-02-24  Bruno Haible  <bruno@clisp.org>
46124
46125         * modules/environ-tests: New file.
46126         * tests/test-environ.c: New file.
46127
46128         New module 'environ'.
46129         * modules/environ: New file.
46130         * lib/unistd.in.h (environ): New declaration.
46131         * m4/environ.m4: New file.
46132         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46133         after use.
46134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46135         HAVE_DECL_ENVIRON.
46136         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46137         HAVE_DECL_ENVIRON.
46138         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46139         wrong claim that 'environ' is missing on some systems.
46140         * modules/execute (Depends-on): Add environ.
46141         * lib/execute.c (environ): Remove fallback declaration.
46142         * modules/pipe (Depends-on): Add environ.
46143         * lib/pipe.c (environ): Remove fallback declaration.
46144         * modules/setenv (Depends-on): Add environ.
46145         * lib/setenv.c (environ): Remove fallback declaration.
46146         * modules/unsetenv (Depends-on): Add environ.
46147         * lib/unsetenv.c (environ): Remove fallback declaration.
46148         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46149         m4/environ.m4.
46150         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46151         (gl_PREREQ_UNSETENV): Likewise.
46152
46153 2008-02-24  Bruno Haible  <bruno@clisp.org>
46154
46155         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46156
46157 2008-02-20  Bob Proulx  <bob@proulx.com>
46158
46159         Enable use of older two part flavor 'git describe'.
46160         * build-aux/git-version-gen: If using the older two part flavor of
46161         git version then recreate the third part now present in the
46162         newer three part flavor of git describe.
46163
46164 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46165
46166         * lib/fts.c (fts_build): Typo correction to comment.
46167
46168 2008-02-17  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46171         generating no-op conflicts.
46172
46173 2008-02-17  Bruno Haible  <bruno@clisp.org>
46174
46175         Speed up by 10%.
46176         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46177         result_entries, rather than an index-based loop.
46178
46179 2008-02-17  Bruno Haible  <bruno@clisp.org>
46180
46181         Speed up by 25%.
46182         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46183         'hashcode_cached'.
46184         (entry_create): New function.
46185         (entry_hashcode): Use the cached hashcode if possible.
46186         (read_changelog_file, try_split_merged_entry): Use entry_create.
46187
46188 2008-02-17  Bruno Haible  <bruno@clisp.org>
46189
46190         Speed up from O(n^2) to O(n) for long ChangeLog files.
46191         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46192         (read_changelog_file): Change implementation of entries_reversed list
46193         to rbtreehash.
46194         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46195
46196 2008-02-17  Bruno Haible  <bruno@clisp.org>
46197
46198         New option --split-merged-entry.
46199         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46200         (find_paragraph_end, try_split_merged_entry): New functions.
46201         (long_options): Add option --split-merged-entry.
46202         (usage): Document option --split-merged-entry.
46203         (main): Implement option --split-merged-entry.
46204         Reported by Eric Blake.
46205
46206 2008-02-17  Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/git-merge-changelog.c: Include c-strstr.h.
46209         (main): Support the "git pull --rebase" situation.
46210         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46211         Reported by Eric Blake.
46212
46213 2008-02-16  Eric Blake  <ebb9@byu.net>
46214
46215         Avoid doubling \ in common case of "c-maybe" quoting style.
46216         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46217         eliding outer quotes.
46218         * lib/quotearg.h: Document this.
46219         * tests/test-quotearg.c (result_strings, inputs, results_g)
46220         (flag_results, locale_results): Test it by adding a new string to
46221         each test group.
46222         (compare_strings): Test new string.
46223
46224 2008-02-13  Eric Blake  <ebb9@byu.net>
46225
46226         Avoid trigraph quoting in default output.
46227         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46228         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46229         unless explicitly requested.
46230         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46231
46232 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46233
46234         Don't rely on signed integer overflowing to negative value.
46235         * lib/getugroups.c (getugroups): Include <limits.h>.
46236         Instead, compare against INT_MAX, and increment only if the test passes.
46237
46238 2008-02-13  Jim Meyering  <meyering@redhat.com>
46239         and Eric Blake  <ebb9@byu.net>
46240
46241         Avoid shadowing warning and compile errors on Linux.
46242         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46243         forwarding macros on Linux.
46244         (dcgettext): Define a stub, for Linux.
46245         (results_g, main): Avoid warnings.
46246
46247 2008-02-12  Eric Blake  <ebb9@byu.net>
46248
46249         Silence warning in last patch.
46250         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46251
46252         Quotearg part 4: add tests, fix c-maybe colon quoting.
46253         * lib/quotearg.h: Improve documentation.
46254         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46255         escapes when adding outer quotes.  When quoting trigraphs, use
46256         valid C notation.  When quoting NUL, omit extra characters if next
46257         character is not digit.  Alter prototype.
46258         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46259         callers.
46260         * modules/quotearg-tests: New module.
46261         * tests/test-quotearg.c: New test.
46262
46263 2008-02-07  Eric Blake  <ebb9@byu.net>
46264
46265         Quotearg part 3: add flag to control outer quote elision.
46266         * lib/quotearg.h (c_maybe_quoting_style): New style.
46267         (enum quoting_flags): Better documentation of flags.
46268         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46269         c-maybe style.
46270         (quotearg_buffer_restyled): Handle new flag to elide outer
46271         quotes.
46272
46273         Quotearg part 2: add flag that can control NUL elision.
46274         * lib/quotearg.h (set_quoting_flags): New prototype.
46275         * lib/quotearg.c (struct quoting_options): Add flag field.
46276         (set_quoting_flags): New function.
46277         (quotearg_buffer_restyled): Add flags parameter.
46278         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46279         (quotearg_n_options): Set the flag, since length cannot be
46280         returned.
46281         (quoting_options_from_style): Default flags correctly.
46282
46283         Quotearg part 1: more wrappers, restore quotearg_char state.
46284         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46285         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46286         (quotearg_colon_mem): New wrappers.
46287         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46288         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46289         functions.
46290         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46291         (quotearg_colon_mem): New functions.
46292
46293 2008-02-11  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46296         library in the current directory: it does not work with parallel make.
46297         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46298
46299 2008-02-11  Bruno Haible  <bruno@clisp.org>
46300
46301         * .gitattributes: New file.
46302
46303 2008-02-11  Jim Meyering  <meyering@redhat.com>
46304
46305         useless-if-before-free: Fix reversed exit values.
46306         * build-aux/useless-if-before-free: Use correct values
46307         for EXIT_MATCH and EXIT_NO_MATCH.
46308
46309         * build-aux/useless-if-before-free: Close stdout carefully.
46310
46311 2008-02-10  Bruno Haible  <bruno@clisp.org>
46312
46313         New module 'git-merge-changelog'.
46314         * modules/git-merge-changelog: New file.
46315         * lib/git-merge-changelog.c: New file.
46316
46317 2008-02-10  Jim Meyering  <meyering@redhat.com>
46318
46319         useless-if-before-free: New option: --list (-l).
46320
46321         useless-if-before-free: Don't exit immediately upon open failure.
46322         * build-aux/useless-if-before-free: Exit 2 for errors.
46323         Upon failure to open a file, don't exit immediately.
46324         Rather, just warn and continue with any remaining files.
46325
46326 2008-02-10  Bruno Haible  <bruno@clisp.org>
46327
46328         New abstract list operation 'node_set_value'.
46329         * lib/gl_list.h (gl_list_node_set_value): New function.
46330         (struct gl_list_implementation): New field node_set_value.
46331         * lib/gl_list.c (gl_list_node_set_value): New function.
46332         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46333         (gl_array_list_implementation): Update.
46334         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46335         (gl_carray_list_implementation): Update.
46336         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46337         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46338         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46339         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46340         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46341         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46342         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46343         Update.
46344         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46345         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46346         (gl_sublist_list_implementation): Update.
46347
46348 2008-02-10  Bruno Haible  <bruno@clisp.org>
46349
46350         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46351         Needed when ELEMENT is #defined to 'some_type *'.
46352
46353 2008-02-10  Jim Meyering  <meyering@redhat.com>
46354
46355         New script and module: useless-if-before-free
46356         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46357         * build-aux/useless-if-before-free: New file.
46358         * modules/useless-if-before-free: New file.
46359
46360         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46361
46362         xstrtol_error: Fix typo.
46363         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46364         s/exit_failure/exit_status/.
46365
46366 2008-02-09  Jim Meyering  <meyering@redhat.com>
46367
46368         New script and module: gitlog-to-changelog
46369         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46370         * modules/gitlog-to-changelog: New file.
46371         * build-aux/gitlog-to-changelog: New file.
46372
46373 2008-02-08  Jim Meyering  <meyering@redhat.com>
46374
46375         Avoid two "parameter unused" warnings.
46376         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46377         Mark "st" as used.
46378
46379         Use "git COMMAND", not "git-COMMAND".
46380         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46381         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46382         * build-aux/git-version-gen: Use "git status", not "git-status".
46383
46384 2008-02-07  Bruno Haible  <bruno@clisp.org>
46385
46386         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46387         Avoids a crash on Windows Vista.
46388         Reported by Adam Strzelecki <ono@java.pl> via
46389         Simon Josefsson <simon@josefsson.org>.
46390
46391 2008-02-06  Bruno Haible  <bruno@clisp.org>
46392
46393         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46394         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46395         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46397         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46399         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46400         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46401         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46405         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46408         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46409         left-adjust flag.
46410         * tests/test-snprintf-posix.h (test_function): Likewise.
46411         * tests/test-sprintf-posix.h (test_function): Likewise.
46412         * tests/test-vasprintf-posix.c (test_function): Likewise.
46413         * doc/posix-functions/fprintf.texi: Update.
46414         * doc/posix-functions/printf.texi: Update.
46415         * doc/posix-functions/snprintf.texi: Update.
46416         * doc/posix-functions/sprintf.texi: Update.
46417         * doc/posix-functions/vfprintf.texi: Update.
46418         * doc/posix-functions/vprintf.texi: Update.
46419         * doc/posix-functions/vsnprintf.texi: Update.
46420         * doc/posix-functions/vsprintf.texi: Update.
46421         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46422
46423 2008-02-06  Bruno Haible  <bruno@clisp.org>
46424
46425         Fix bug introduced on 2008-01-26.
46426         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46427
46428 2008-02-06  Bruno Haible  <bruno@clisp.org>
46429
46430         Fix bug introduced on 2007-06-10.
46431         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46432         !NEED_PRINTF_FLAG_ZERO.
46433
46434 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46435
46436         getloadavg: use libperfstat on AIX5
46437         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46438
46439 2008-02-03  Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/diffseq.h: Add comments about required #includes.
46442         Reported by Michael Biggs <gnulib@doubleplum.net>.
46443
46444 2008-02-01  Bruno Haible  <bruno@clisp.org>
46445
46446         * users.txt: Add gnuit.
46447
46448 2008-01-31  Bruno Haible  <bruno@clisp.org>
46449
46450         * lib/md4.c (set_uint32): Mark as inline.
46451         * lib/md5.c (set_uint32): Likewise.
46452         * lib/sha1.c (set_uint32): Likewise.
46453         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46454         * m4/md5.m4 (gl_MD5): Likewise.
46455         * m4/sha1.m4 (gl_SHA1): Likewise.
46456
46457 2008-01-31  Jim Meyering  <meyering@redhat.com>
46458
46459         Use "sizeof VAR", rather than a literal "4".
46460         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46461         * lib/md4.c (md4_read_ctx): Likewise.
46462         * lib/sha1.c (sha1_read_ctx): Likewise.
46463
46464 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46465
46466         * tests/test-sha1.c: New file, based on test-md5.c.
46467
46468         * modules/crypto/sha1-tests: New file.
46469
46470 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46471
46472         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46473
46474 2008-01-31  Jim Meyering  <meyering@redhat.com>
46475
46476         Prefer "sizeof v" over the equivalent "4".
46477         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46478         * lib/md5.c (set_uint32): Likewise.
46479         * lib/sha1.c (set_uint32): Likewise.
46480
46481 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46482
46483         * lib/sha1.c (set_uint32): Mark function as static.
46484
46485 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46486
46487         md2: clarify comments to say that alignment is not required.
46488         * lib/md2.h: Remove warning about alignment in comment.
46489         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46490         never been required.
46491
46492 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46493
46494         md4: adapt alignment constraint fix from sha1.
46495         * lib/md4.c (set_uint32): New function, from sha1.c
46496         (md4_read_ctx): Use it.
46497         (md4_finish_ctx): Doc fix.
46498         * lib/md4.h: Doc fix.
46499
46500 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46501
46502         md5: adapt alignment constraint fix from sha1.
46503         * lib/md5.c (set_uint32): New function, from sha1.c
46504         (md5_read_ctx): Use it.
46505         (md5_finish_ctx): Doc fix.
46506         * lib/md5.h: Doc fix.
46507
46508 2008-01-30  Peter Palfrader  <weasel@debian.org>
46509
46510         sha1: remove the result buffer alignment constraint
46511         * lib/sha1.c (set_uint32): New function.
46512         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46513         constraint.
46514         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46515         * lib/sha1.h: Likewise.
46516
46517 2008-01-30  Andreas Schwab  <schwab@suse.de>
46518             Bruno Haible  <bruno@clisp.org>
46519
46520         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46521         correct definition of LDBL_MIN_EXP.
46522
46523 2008-01-30  Karl Berry  <karl@gnu.org>
46524
46525         * config/srclist-update: try to preserve x bit on updates.
46526         * config/srclistvars.sh: update for karl.
46527
46528 2008-01-29  Jim Meyering  <meyering@redhat.com>
46529
46530         vasnprintf.c: Avoid warning about unused label
46531         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46532         "overflow" label definition and associated code with the
46533         same cpp condition that guards the sole use of that label.
46534
46535 2008-01-26  Bruno Haible  <bruno@clisp.org>
46536
46537         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46538         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46539         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46540         * lib/isnanl-nolibm.h (isnanl): Likewise.
46541         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46542
46543 2008-01-26  Bruno Haible  <bruno@clisp.org>
46544
46545         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46546         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46547
46548 2008-01-26  Bruno Haible  <bruno@clisp.org>
46549
46550         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46551         GCC >= 4.0 built-in.
46552         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46553
46554 2008-01-26  Bruno Haible  <bruno@clisp.org>
46555
46556         Rename isnan, applicable to 'double' only, to isnand.
46557         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46558         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46559         (configure.ac): Update.
46560         (Include): Replace "isnan.h" with "isnand.h".
46561         * m4/isnand.m4: Renamed from m4/isnan.m4.
46562         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46563         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46564         instead of isnan.c.
46565         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46566         instead of HAVE_ISNAN_IN_LIBC.
46567         (isnand): Renamed from isnan.
46568         * lib/isnand.c: New file.
46569         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46570         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46571         (Makefile.am): Update.
46572         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46573         Include isnand.h instead of isnan.h.
46574         (main): Test isnand instead of isnan.
46575         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46576         isnan-nolibm.
46577         * modules/frexp (Depends-on): Likewise.
46578         * modules/frexp-tests (Depends-on): Likewise.
46579         * modules/frexp-nolibm (Depends-on): Likewise.
46580         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46581         * modules/isfinite (Depends-on): Likewise.
46582         * modules/round-tests (Depends-on): Likewise.
46583         * modules/signbit (Depends-on): Likewise.
46584         * modules/signbit-tests (Depends-on): Likewise.
46585         * modules/snprintf-posix (Depends-on): Likewise.
46586         * modules/sprintf-posix (Depends-on): Likewise.
46587         * modules/trunc-tests (Depends-on): Likewise.
46588         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46589         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46590         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46591         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46592         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46593         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46594         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46595         * modules/vasnprintf-posix (Depends-on): Likewise.
46596         * modules/vasprintf-posix (Depends-on): Likewise.
46597         * modules/vfprintf-posix (Depends-on): Likewise.
46598         * modules/vsnprintf-posix (Depends-on): Likewise.
46599         * modules/vsprintf-posix (Depends-on): Likewise.
46600         * lib/frexp.c: Include isnand.h instead of isnan.h.
46601         (ISNAN): Set to isnand instead of isnan.
46602         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46603         (gl_isfinited): Use isnand instead of isnan.
46604         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46605         (gl_signbitd): Use isnand instead of isnan.
46606         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46607         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46608         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46609         (main): Use isnand instead of isnan.
46610         * tests/test-round1.c: Include isnand.h.
46611         (main): Use isnand instead of isnan.
46612         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46613         (ISNAN): Set to isnand instead of isnan.
46614         * tests/test-trunc1.c: Include isnand.h.
46615         (main): Use isnand instead of isnan.
46616         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46617         (equal): Use isnand instead of isnan.
46618         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46619         isnand-nolibm.
46620         * NEWS: Mention the change.
46621
46622 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46623             Bruno Haible  <bruno@clisp.org>
46624
46625         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46626         the GCC builtins for signbits are present and set
46627         REPLACE_SIGNBIT_USING_GCC if so.
46628         * lib/math.in.h (signbit): Define using GCC builtins if
46629         REPLACE_SIGNBIT_USING_GCC is set.
46630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46631         REPLACE_SIGNBIT_USING_GCC.
46632         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46633
46634 2008-01-25  Jim Meyering  <meyering@redhat.com>
46635
46636         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46637         * lib/poll.c: Include <config.h>, not "config.h".
46638         * tests/test-getaddrinfo.c: Likewise.
46639
46640 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46641
46642         * modules/sockets-tests: New file.
46643
46644 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46645
46646         * modules/sockets: New module, can be used to call WSA_Startup and
46647         WSA_Cleanup when needed.
46648
46649         * lib/sockets.h, lib/sockets.c: New files.
46650
46651         * m4/sockets.m4: New file.
46652
46653         * tests/test-sockets.c: New file.
46654
46655 2008-01-19  Bruno Haible  <bruno@clisp.org>
46656
46657         * doc/posix-headers: Renamed from doc/headers.
46658         * doc/posix-functions: Renamed from doc/functions.
46659         * doc/gnulib.texi: Update.
46660
46661 2008-01-19  Bruno Haible  <bruno@clisp.org>
46662
46663         * doc/glibc-functions/strcasestr.texi: Include contents of
46664         doc/functions/strcasestr.texi, fixing the list of platforms.
46665         * doc/functions/strcasestr.texi: Remove file.
46666
46667 2008-01-19  Bruno Haible  <bruno@clisp.org>
46668
46669         * doc/glibc-functions/memmem.texi: Include contents of
46670         doc/functions/memmem.texi.
46671         * doc/functions/memmem.texi: Remove file.
46672
46673 2008-01-18  Bruno Haible  <bruno@clisp.org>
46674
46675         * doc/glibc-functions/*.texi: New files.
46676         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46677         to use the new files.
46678
46679 2008-01-17  Bruno Haible  <bruno@clisp.org>
46680
46681         * tests/test-gethostname.c (main): Fix printf statement.
46682
46683 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46684
46685         * modules/gethostname-tests: New file.
46686
46687         * tests/test-gethostname.c: New file.
46688
46689 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46690
46691         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46692         used by the UNAME case.  Reported by Bruno Haible
46693         <bruno@clisp.org>.
46694
46695 2008-01-17  Eric Blake  <ebb9@byu.net>
46696
46697         Convert c-strcasestr to be more efficient.
46698         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46699         (Depends-on): Add c-strcase, remove malloca, strnlen.
46700         * tests/test-c-strcasestr.c (main): Enhance test.
46701         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46702
46703 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46704
46705         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46706         Use it in creating po/Makevars.
46707
46708 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46709
46710         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46711         Applications that requires it should initialize libgcrypt
46712         manually.
46713
46714 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46715
46716         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46717
46718 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46719
46720         Fix problem with getdate on mingw32 reported by Simon Josefsson
46721         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46722         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46723         tzname", when deciding whether to declare tzname.
46724         * lib/strftime.c (tzname): Likewise.
46725
46726 2008-01-15  Bruno Haible  <bruno@clisp.org>
46727
46728         Work around a MacOS X 10.5 bug in frexpl().
46729         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46730         * doc/functions/frexpl.texi: Document the bug.
46731         Reported by Elias Pipping <pipping@gentoo.org>.
46732
46733 2008-01-14  Eric Blake  <ebb9@byu.net>
46734
46735         Touch up previous patch.
46736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46737         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46738
46739         Convert strcasestr module to use Two-Way algorithm.
46740         * modules/strcasestr-simple: New module, based on the old
46741         strcasestr, but with Two-Way rather than KMP.
46742         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46743         * lib/string.in.h (rpl_strcasestr): Declare.
46744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46745         performance.
46746         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46747         * modules/string (Makefile.am): Support strcasestr.
46748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46749         * modules/strcasestr-tests (Depends-on): Check for alarm.
46750         * tests/test-strcasestr.c: Augment test.
46751         * lib/str-two-way.h: Clean up stray macro.
46752         * NEWS: Document new module.
46753         * MODULES.html.sh (string handling): Likewise.
46754         * doc/functions/strcasestr.texi: New file.
46755         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46756         here, since it is not a POSIX function.
46757
46758 2008-01-14  Colin Watson  <cjwatson@debian.org>
46759             Bruno Haible  <bruno@clisp.org>
46760
46761         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46762         works fine; if not, set REPLACE_STRSIGNAL.
46763         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46765         REPLACE_STRSIGNAL.
46766         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46767         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46768         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46769
46770 2008-01-14  Bruno Haible  <bruno@clisp.org>
46771
46772         * modules/strsignal (Include): Change to <string.h>.
46773
46774 2008-01-14  Colin Watson  <cjwatson@debian.org>
46775
46776         * modules/argp (Notice): Add a notice recommending to change
46777         XGETTEXT_OPTIONS.
46778         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46779
46780 2008-01-13  Colin Watson  <cjwatson@debian.org>
46781
46782         * modules/strsignal-tests: New file.
46783         * tests/test-strsignal.c: New file.
46784
46785         * lib/strsignal.c: New file, from glibc with modifications.
46786         * lib/siglist.h: New file, from glibc with modifications.
46787         * lib/string.in.h (strsignal): New declaration.
46788         * m4/strsignal.m4: New file.
46789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46790         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46791         * modules/strsignal: New file.
46792         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46793         HAVE_DECL_STRSIGNAL.
46794
46795 2008-01-13  Bruno Haible  <bruno@clisp.org>
46796
46797         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46798         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46799         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46800         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46801
46802 2008-01-13  Bruno Haible  <bruno@clisp.org>
46803
46804         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46805         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46806         * lib/argp.h (__attribute__): Likewise.
46807         * lib/c-stack.c (__attribute__): Likewise.
46808         * lib/error.h (__attribute__): Likewise.
46809         * lib/fts.c (__attribute__): Likewise.
46810         * lib/openat.h (__attribute__): Likewise.
46811         * lib/stdio.in.h (__attribute__): Likewise.
46812         * lib/string.in.h (__attribute__): Likewise.
46813         * lib/utimens.c (__attribute__): Likewise.
46814         * lib/vasnprintf.h (__attribute__): Likewise.
46815         * lib/xalloc.h (__attribute__): Likewise.
46816         * lib/xprintf.h (__attribute__): Likewise.
46817         * lib/xstrtol.h (__attribute__): Likewise.
46818         * lib/xvasprintf.h (__attribute__): Likewise.
46819
46820 2008-01-12  Bruno Haible  <bruno@clisp.org>
46821
46822         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46823         * doc/glibc-headers/a.out.texi: New file.
46824         * doc/glibc-headers/aliases.texi: New file.
46825         * doc/glibc-headers/alloca.texi: New file.
46826         * doc/glibc-headers/ar.texi: New file.
46827         * doc/glibc-headers/argp.texi: New file.
46828         * doc/glibc-headers/argz.texi: New file.
46829         * doc/glibc-headers/byteswap.texi: New file.
46830         * doc/glibc-headers/crypt.texi: New file.
46831         * doc/glibc-headers/endian.texi: New file.
46832         * doc/glibc-headers/envz.texi: New file.
46833         * doc/glibc-headers/err.texi: New file.
46834         * doc/glibc-headers/error.texi: New file.
46835         * doc/glibc-headers/execinfo.texi: New file.
46836         * doc/glibc-headers/fpu_control.texi: New file.
46837         * doc/glibc-headers/fstab.texi: New file.
46838         * doc/glibc-headers/fts.texi: New file.
46839         * doc/glibc-headers/getopt.texi: New file.
46840         * doc/glibc-headers/ieee754.texi: New file.
46841         * doc/glibc-headers/ifaddrs.texi: New file.
46842         * doc/glibc-headers/libintl.texi: New file.
46843         * doc/glibc-headers/mcheck.texi: New file.
46844         * doc/glibc-headers/mntent.texi: New file.
46845         * doc/glibc-headers/obstack.texi: New file.
46846         * doc/glibc-headers/paths.texi: New file.
46847         * doc/glibc-headers/printf.texi: New file.
46848         * doc/glibc-headers/pty.texi: New file.
46849         * doc/glibc-headers/resolv.texi: New file.
46850         * doc/glibc-headers/shadow.texi: New file.
46851         * doc/glibc-headers/sysexits.texi: New file.
46852         * doc/glibc-headers/ttyent.texi: New file.
46853
46854 2008-01-12  Jim Meyering  <meyering@redhat.com>
46855
46856         announce-gen: emit Gnulib's git-based version string.
46857         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46858         New option --gnulib-version=V, where V is expected to be
46859         the output of running git describe in the gnulib directory.
46860         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46861         not useful, and plan to stop publishing an xdelta file with each
46862         coreutils release.
46863
46864         * build-aux/announce-gen: Also check for lzma-compressed files.
46865
46866 2008-01-11  Bruno Haible  <bruno@clisp.org>
46867
46868         * tests/test-memmem.c (main): Increase maximum allowed time.
46869         * tests/test-strstr.c (main): Likewise.
46870
46871 2008-01-11  Bruno Haible  <bruno@clisp.org>
46872
46873         * doc/functions/memmem.texi: Add more precisions about platforms.
46874         * doc/functions/strstr.texi: Likewise.
46875
46876 2008-01-10  Eric Blake  <ebb9@byu.net>
46877
46878         * m4/strstr.m4: Delete cruft from copy-n-paste.
46879         Reported by Bruno Haible.
46880
46881 2008-01-10  Bruno Haible  <bruno@clisp.org>
46882
46883         Make c-strstr rely on strstr.
46884         * lib/c-strstr.c: Don't include str-kmp.h.
46885         (c_strstr): Define in terms of strstr.
46886         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46887         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46888
46889 2008-01-10  Bruno Haible  <bruno@clisp.org>
46890
46891         * doc/gnulib.texi (String Functions in C Locale): New section.
46892         * doc/c-ctype.texi: New file.
46893         * doc/c-strcase.texi: New file.
46894         * doc/c-strcaseeq.texi: New file.
46895         * doc/c-strcasestr.texi: New file.
46896         * doc/c-strstr.texi: New file.
46897         * doc/c-strtod.texi: New file.
46898         * doc/c-strtold.texi: New file.
46899
46900 2008-01-10  Eric Blake  <ebb9@byu.net>
46901
46902         * lib/relocatable.h: Fix a comment.
46903
46904 2008-01-10  Eric Blake  <ebb9@byu.net>
46905
46906         Share two-way algorithm.
46907         * lib/str-two-way.h: New file, merged from...
46908         * lib/memmem.c: ...here...
46909         * lib/strstr.c: ...and here.
46910         * modules/memmem (Files): Use it.
46911         * modules/strstr (Files): Likewise.
46912
46913         Avoid quadratic strstr implementations.
46914         * lib/strstr.c: New file.
46915         * m4/strstr.m4: Likewise.
46916         * modules/strstr: Likewise.
46917         * modules/strstr-tests: Likewise.
46918         * tests/test-strstr.c: Likewise.
46919         * lib/string.in.h (rpl_strstr): Declare.
46920         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46922         * modules/string (Makefile.am): Likewise.
46923         * MODULES.html.sh (string handling): Mention new module.
46924         * doc/functions/strstr.texi (strstr): Document the bug.
46925
46926 2008-01-10  Bruno Haible  <bruno@clisp.org>
46927
46928         * lib/relocatable.h (relocate): State whether result is freshly
46929         allocated or not.
46930         * lib/relocatable.c (relocate): Return a freshly allocated string
46931         instead of a pointer to a privately held string.
46932         Reported by Sylvain Beucler <beuc@gnu.org>.
46933
46934 2008-01-10  Colin Watson  <cjwatson@debian.org>
46935
46936         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46937         s/S_ISNLK/S_ISLNK/.
46938
46939 2008-01-09  Bruno Haible  <bruno@clisp.org>
46940
46941         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46942         and other files.
46943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46944         if it's only a guess.
46945         * modules/memmem: Simplify by depending on memmem-simple.
46946
46947 2008-01-09  Bruno Haible  <bruno@clisp.org>
46948
46949         Work around OpenBSD 4.0 tdelete() bug.
46950         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46951         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46952         macros and don't redefine the enum values.
46953         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46954         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46955         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46956
46957 2008-01-09  Bruno Haible  <bruno@clisp.org>
46958
46959         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46960         (main): Don't perform the tests if setlocale did not install a UTF-8
46961         locale. Needed on OpenBSD 4.0.
46962         * modules/wcwidth-tests (Depends-on): Add localcharset.
46963
46964 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46965
46966         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46967         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46968         * NEWS: announce this.
46969         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46970
46971 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46972         and Eric Blake  <ebb9@byu.net>
46973
46974         Add memmem-simple module.
46975         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46976         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46977         * modules/memmem-simple: New file.
46978         * modules/memmem (Description): Tweak.
46979         * MODULES.html.sh (string handling): Mention new module.
46980         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46981         addressed by memmem-simple.
46982         * NEWS: Document the difference.
46983
46984 2008-01-09  Eric Blake  <ebb9@byu.net>
46985
46986         Give gcc some memmem optimization hints.
46987         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46988         (strcasestr): Declare as pure.
46989         * modules/memmem (Maintainer): Claim my implementation.
46990
46991 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46992
46993         Support AIX 6.1 and higher.
46994         * build-aux/config.libpath: Likewise.
46995         * build-aux/config.rpath: Likewise.
46996
46997 2008-01-08  Jim Meyering  <meyering@redhat.com>
46998             Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47001         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47002         Reported by Peter Fales in
47003         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47004
47005 2008-01-08  Bruno Haible  <bruno@clisp.org>
47006
47007         * modules/unictype/category-of (Depends-on): Add
47008         unictype/category-none.
47009         * modules/unictype/category-and-tests (Depends-on): Add
47010         unictype/category-{L,N,Lu,Nd}.
47011         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47012         * modules/unictype/category-or-tests (Depends-on): Add
47013         unictype/category-{L,N}.
47014         * modules/unictype/category-name-tests (Depends-on): Add
47015         unictype/category-{Z,Nl}.
47016         Reported by Simon Josefsson.
47017
47018 2008-01-08  Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47021         convention better.
47022         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47023         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47024         Reported by Peter Miller <millerp@canb.auug.org.au>.
47025
47026 2008-01-08  Eric Blake  <ebb9@byu.net>
47027
47028         Rewrite memmem to guarantee linear complexity without malloc.
47029         * lib/memmem.c (memmem): Use Two-Way rather than
47030         Knuth-Morris-Pratt, to allow O(1) space usage.
47031         (critical_factorization, two_way_short_needle)
47032         (two_way_long_needle): New functions.
47033         (knuth_morris_pratt): Delete.
47034         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47035         Add stdint.
47036         * tests/test-memmem.c (main): Add tests for periodic needle and
47037         sublinear performance.
47038         * doc/functions/memmem.texi (memmem): Document other deficiencies
47039         in cygwin and older glibc.
47040
47041 2008-01-08  Bruno Haible  <bruno@clisp.org>
47042
47043         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47044         augmentation.
47045
47046 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47047
47048         Add a configure time option: --disable-acl.
47049         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47050         AC_ARG_ENABLE(acl).
47051
47052 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47053
47054         * tests/test-localename.c: Don't include obsolete "setenv.h".
47055
47056         * modules/localename-tests (Depends-on): Need unsetenv.
47057
47058 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47059
47060         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47061
47062 2008-01-06  Colin Watson  <cjwatson@debian.org>
47063
47064         * users.txt: Add man-db.
47065
47066 2008-01-07  Bruno Haible  <bruno@clisp.org>
47067
47068         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47069         previous section name.
47070
47071 2008-01-07  Bruno Haible  <bruno@clisp.org>
47072
47073         * lib/progname.c (set_program_name): Don't strip off a leading
47074         "lt-" prefix outside a .libs directory.
47075         Suggested by Paul Eggert.
47076
47077 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47078             Bruno Haible  <bruno@clisp.org>
47079
47080         Improve memory cleanup in 'relocatable' module.
47081         * lib/relocatable.h (compute_curr_prefix): Change return type to
47082         'char *'.
47083         * lib/relocatable.c (compute_curr_prefix): Change return type to
47084         'char *'. Free curr_installdir after use.
47085         (relocate): Free curr_prefix_better after use.
47086         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47087
47088 2008-01-01  Bruno Haible  <bruno@clisp.org>
47089
47090         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47091         failure on older glibc systems.
47092         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47093
47094 2008-01-05  Eric Blake  <ebb9@byu.net>
47095
47096         Avoid quadratic system memmem.
47097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47098         Reported by Ralf Wildenhues.
47099
47100         Fix memmem test for mingw.
47101         * modules/memmem-tests (configure.ac): Check for alarm.
47102         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47103         it.
47104         * doc/functions/memmem.texi: New file.
47105         * doc/gnulib.texi (Function Substitutes): Add memmem.
47106         Reported by Bruno Haible.
47107
47108 2008-01-04  Bruno Haible  <bruno@clisp.org>
47109
47110         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47111         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47112         gl_HEADER_STRING_H_DEFAULTS.
47113
47114 2008-01-04  Eric Blake  <ebb9@byu.net>
47115
47116         Shorten duration of memmem test.
47117         * tests/test-memmem.c (main): Use alarm to declare failure if test
47118         is taking too long.
47119         Reported by Ralf Wildenhues.
47120
47121 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47122
47123         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47124         string, needed by strerror.
47125
47126 2008-01-03  Colin Watson  <cjwatson@debian.org>
47127             Bruno Haible  <bruno@clisp.org>
47128
47129         * doc/gnulib-tool.texi (Localization): New section.
47130
47131 2008-01-02  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47134         variables to 'unsigned char *' type.
47135         Reported by Paul Eggert.
47136
47137 2008-01-02  Jim Meyering  <jim@meyering.net>
47138
47139         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47140
47141 2007-12-31  Jim Meyering  <jim@meyering.net>
47142
47143         Avoid use of private FTS type name.
47144         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47145
47146 2007-12-30  Karl Berry  <karl@gnu.org>
47147
47148         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47149         work around defect in Texinfo and/or the standalone Info browser.
47150
47151 2007-12-30  Bruno Haible  <bruno@clisp.org>
47152
47153         Unify 5 copies of the KMP code.
47154         * lib/str-kmp.h: New file.
47155         * lib/c-strcasestr.c: Include str-kmp.h.
47156         (knuth_morris_pratt): Remove function.
47157         (c_strcasestr): Update.
47158         * lib/c-strstr.c: Include str-kmp.h.
47159         (knuth_morris_pratt): Remove function.
47160         (c_strcasestr): Update.
47161         * lib/mbscasestr.c: Include str-kmp.h.
47162         (knuth_morris_pratt_unibyte): Remove function.
47163         * lib/mbsstr.c: Include str-kmp.h.
47164         (knuth_morris_pratt_unibyte): Remove function.
47165         * lib/strcasestr.c: Include str-kmp.h.
47166         (knuth_morris_pratt): Remove function.
47167         (strcasestr): Update.
47168         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47169         * modules/c-strstr (Files): Likewise.
47170         * modules/mbscasestr (Files): Likewise.
47171         * modules/mbsstr (Files): Likewise.
47172         * modules/strcasestr (Files): Likewise.
47173         Suggested by Paul Eggert.
47174
47175 2007-12-30  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47178         defined.
47179
47180 2007-12-30  Bruno Haible  <bruno@clisp.org>
47181
47182         * lib/xmalloca.h: Include xalloc.h.
47183         (xnmalloca): New macro.
47184
47185 2007-12-30  Bruno Haible  <bruno@clisp.org>
47186
47187         * lib/malloca.h (nmalloca): New macro.
47188         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47189         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47190         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47191         knuth_morris_pratt_multibyte): Likewise.
47192         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47193         knuth_morris_pratt_multibyte): Likewise.
47194         * lib/memmem.c (knuth_morris_pratt): Likewise.
47195         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47196
47197 2007-12-25  Bruno Haible  <bruno@clisp.org>
47198
47199         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47200         * lib/glob.c: Don't include openat.h.
47201         (link_exists2_p): Add back the code that deals with the
47202         !GLOB_ALTDIRFUNC case.
47203         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47204         let it do the filename concatenation.
47205         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47206         * modules/glob (Depends-on): Remove openat.
47207
47208 2007-12-31  Bruno Haible  <bruno@clisp.org>
47209
47210         * modules/dirfd (License): Change to LGPLv2+.
47211         Approved by Jim Meyering.
47212
47213 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47214
47215         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47216         when multiplying M by sizeof (size_t).
47217
47218 2007-12-10  Martin Lambers  <marlam@marlam.de>
47219
47220         Override getpagesize on mingw.
47221         * lib/getpagesize.c: New file.
47222         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47223         * modules/getpagesize (Files): Add lib/getpagesize.c.
47224         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47226         REPLACE_GETPAGESIZE.
47227         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47228
47229 2007-12-25  Bruno Haible  <bruno@clisp.org>
47230
47231         * modules/localcharset (Notice): New field.
47232         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47233         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47234
47235 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47236             Bruno Haible  <bruno@clisp.org>
47237
47238         Avoid using the syntax symbol() in formatted documentation.
47239         * MODULES.html.sh (func_module): When replacing symbol() with a
47240         hyperlink, remove the parentheses. Show an error if some remain.
47241         Recognize and render the '...' syntax.
47242         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47243         Rework. Add paragraph about GCC's inlining.
47244         * doc/alloca.texi: Likewise.
47245         * doc/error.texi: Remove parentheses from symbol reference.
47246         * doc/gnulib-intro.texi: Likewise.
47247         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47248         * modules/fnmatch (Description): Reword to say "the ... function".
47249         * modules/full-read (Description): Likewise.
47250         * modules/full-write (Description): Likewise.
47251         * modules/safe-read (Description): Likewise.
47252         * modules/safe-write (Description): Likewise.
47253         * modules/strchrnul (Description): Likewise.
47254         * modules/trim (Description): Likewise.
47255         * modules/error (Description): Remove parentheses from symbol
47256         references.
47257         * modules/verror (Description): Likewise.
47258         Reported by Karl Berry.
47259
47260 2007-12-25  Bruno Haible  <bruno@clisp.org>
47261
47262         Fixup after 2007-10-16 commit.
47263         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47264
47265 2007-12-24  Bruno Haible  <bruno@clisp.org>
47266
47267         Make --enable-relocatable work with DESTDIR.
47268         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47269         to compute installdir from destprog.
47270         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47271         also set the RELOC_DESTDIR variable.
47272         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47273
47274 2007-12-24  Bruno Haible  <bruno@clisp.org>
47275
47276         Fix link error due to xalloc_die().
47277         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47278         of xreadlink.
47279         * lib/relocwrapper.c: Update comments.
47280         * build-aux/install-reloc: Remove xreadlink.c from file list.
47281         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47282         xreadlink.c.
47283         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47284
47285 2007-12-24  Bruno Haible  <bruno@clisp.org>
47286
47287         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47288         * lib/setenv.h: Remove file.
47289         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47290         lib/setenv.h.
47291         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47292         (Depends-on): Add stdlib.
47293         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47294         gl_FUNC_UNSETENV.
47295         (Include): Replace setenv.h with <stdlib.h>.
47296         * modules/unsetenv: New file.
47297         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47298         * lib/unsetenv.c: Include <stdlib.h> first.
47299         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47300         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47301         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47302         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47303         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47304         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47306         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47307         * doc/functions/unsetenv.texi: Update.
47308         * modules/xsetenv (Depends-on): Add unsetenv.
47309         * modules/getdate (Depends-on): Likewise.
47310         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47311         * lib/xsetenv.c: Don't include setenv.h.
47312         * lib/getdate.y: Likewise.
47313         * lib/relocwrapper.c: Likewise.
47314         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47315         (Depends-on): Add stdlib.
47316         * NEWS: Mention the changes.
47317         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47318
47319 2007-12-23  Bruno Haible  <bruno@clisp.org>
47320
47321         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47322         indentation.
47323
47324 2007-12-23  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/c-strcasestr.c: Add more comments.
47327         * lib/c-strstr.c: Likewise.
47328         * lib/mbscasestr.c: Likewise.
47329         * lib/mbsstr.c: Likewise.
47330         * lib/strcasestr.c: Likewise.
47331         * lib/memmem.c: Likewise.
47332
47333 2007-12-23  Bruno Haible  <bruno@clisp.org>
47334
47335         * tests/test-memmem.c: Include <string.h> first.
47336
47337 2007-12-22  Bruno Haible  <bruno@clisp.org>
47338
47339         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47340         the contents of $testsbase.
47341         Reported by Ralf Wildenhues.
47342
47343 2007-12-22  Bruno Haible  <bruno@clisp.org>
47344
47345         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47346         two variables local_ldadd_before, local_ldadd_last.
47347
47348 2007-12-20  Eric Blake  <ebb9@byu.net>
47349
47350         Work around circular library issue when cross-compiling.
47351         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47352         that progname.o does not need to pull in rpl_memcmp.
47353
47354 2007-12-19  Eric Blake  <ebb9@byu.net>
47355
47356         Fix memmem to avoid O(n^2) worst-case complexity.
47357         * lib/memmem.c (knuth_morris_pratt): New function.
47358         (memmem): Use it if first few naive iterations fail.
47359         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47360         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47361         * modules/memchr (License): Likewise.
47362         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47363         malloca.
47364         * tests/test-memmem.c: Rewrite, borrowing ideas from
47365         test-mbsstr1.c; the old version wouldn't even compile!
47366         * modules/memmem-tests: New file.
47367         * lib/string.in.h (rpl_memmem): Add declaration.
47368         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47370         REPLACE_MEMMEM.
47371
47372 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47373
47374         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47375         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47376         before any system include files, and undef after them all.  This
47377         should fix a problem on VMS reported by John E. Malmberg in
47378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47379
47380 2007-12-17  Eric Blake  <ebb9@byu.net>
47381
47382         Revert addition of verify, for BSD/OS.
47383         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47384         can't handle large files, for the sake of obsolete platforms.
47385         * modules/fseeko (Depends-on): Remove verify.
47386         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47387         * doc/functions/ftello.texi (ftello): Likewise.
47388         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47389         Reported by Larry Jones.
47390
47391 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47392
47393         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47394         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47395
47396 2007-12-17  Jim Meyering  <meyering@redhat.com>
47397
47398         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47399         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47400         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47401         * modules/getcwd (Depends-on): Add openat.
47402         Reported by Petr Salinger.
47403
47404 2007-12-17  Bruno Haible  <bruno@clisp.org>
47405
47406         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47407         avoid a segmentation fault of the configure test on x86_64 systems.
47408
47409 2007-12-15  Jim Meyering  <meyering@redhat.com>
47410
47411         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47412
47413 2007-12-13  Eric Blake  <ebb9@byu.net>
47414
47415         Another fseek test.
47416         * tests/test-fseek.c (main): Also test ungetc handling.
47417         * tests/test-fseeko.c (main): Likewise.
47418         * modules/fseeko (Depends-on): Add verify.
47419         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47420         large.
47421         Reported by Larry Jones.
47422
47423         Fix fseeko on mingw.
47424         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47425         seek.
47426
47427         Beef up fseek tests.
47428         * tests/test-fseek.c (main): Also test eof handling.
47429         * tests/test-fseeko.c (main): Likewise.
47430         Reported by Larry Jones.
47431
47432 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47433
47434         Fix fseeko on BSD-based platforms.
47435         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47436         successful seek.
47437
47438 2007-12-12  Eric Blake  <ebb9@byu.net>
47439
47440         Allow circular dependency of separate libtests.a
47441         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47442         when use_libtests.
47443
47444 2007-12-11  Eric Blake  <ebb9@byu.net>
47445
47446         Fix bug with -0.0L in previous patch.
47447         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47448         * tests/test-isnan.c (main): Also test on zeroes.
47449         * tests/test-isnanf.c (main): Likewise.
47450         * tests/test-isnanl.h (main): Likewise.
47451
47452         Detect pseudo-denormals on x86 even when cross-compiling.
47453         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47454         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47455         invalid bit patterns that happen to satisfy ==.
47456
47457         Avoid link failures with separate libtests.a.
47458         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47459         last, to satisfy circular dependencies.
47460
47461 2007-12-11  Eric Blake  <ebb9@byu.net>
47462         and Bruno Haible  <bruno@clisp.org>
47463
47464         Fix OpenBSD 4.0 <float.h> handling of long double.
47465         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47466         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47467         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47468
47469 2007-12-11  Jim Meyering  <meyering@redhat.com>
47470
47471         * users.txt: Add libvirt.
47472
47473         Support versions of autoconf prior to 2.59c.
47474         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47475         if it is not already defined.
47476
47477 2007-12-09  Bruno Haible  <bruno@clisp.org>
47478
47479         Let 'gnulib-tool --import' collect sources needed for the tests in
47480         tests/ rather than in lib/.
47481         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47482         argument. If true, add rules to generate libtests.a, and put libtests.a
47483         into $(LDADD). Consider source files in subdirectories and set
47484         uses_subdirs.
47485         (func_emit_initmacro_start, func_emit_initmacro_end,
47486         func_emit_initmacro_done): Pass all arguments explicitly.
47487         (func_import): Determine two module lists main_modules,
47488         testsrelated_modules. Determine use_libtests. Determine two variables
47489         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47490         instead of just sed_transform_lib_file. Determine two variables
47491         main_files and testsrelated_files. Compute 'files' as the union of
47492         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47493         func_add_or_update. In the generated gnulib-comp.m4, collect the
47494         object files for tests/ in different variables than those for lib/.
47495         Substitute LIBTESTS_LIBDEPS.
47496         (func_create_testdir): Combine the uses_subdirs results from
47497         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47498
47499 2007-12-09  Bruno Haible  <bruno@clisp.org>
47500
47501         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47502         the build-aux directory.
47503
47504 2007-12-09  Bruno Haible  <bruno@clisp.org>
47505
47506         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47507         introduced on 2006-09-09.
47508
47509 2007-12-07  Jim Meyering  <meyering@redhat.com>
47510
47511         Let these macros work also with autoconf-2.59.
47512         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47513         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47514         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47515
47516 2007-12-06  Jim Meyering  <meyering@redhat.com>
47517
47518         Avoid a configure-time syntax error in gl_FUNC_ACL.
47519         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47520         function in each branch, before testing the cache variable.
47521
47522 2007-12-04  Eric Blake  <ebb9@byu.net>
47523
47524         Make scripts executable.
47525         * build-aux/config.guess: Add execute permissions.
47526         * build-aux/config.sub: Likewise.
47527         * build-aux/gendocs.sh: Likewise.
47528
47529         Fix frexp on mingw.
47530         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47531         cross-compiling.
47532         * doc/functions/frexp.texi (frexp): Document the bug.
47533
47534         Make cygwin fseeko check more reliable.
47535         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47536         version numbers, rather than unrelated feature check.
47537         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47538         * doc/functions/ftello.texi (ftello): Likewise.
47539         Reported by Bruno Haible.
47540
47541         * m4/strerror.m4: Bump version number.
47542
47543 2007-12-03  Bruno Haible  <bruno@clisp.org>
47544
47545         * doc/functions/mprotect.texi: Mention the mingw problem.
47546
47547 2007-12-03  Eric Blake  <ebb9@byu.net>
47548
47549         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47550         REPLACE_STRERROR is initialized before this macro.
47551
47552 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47553
47554         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47555         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47556         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47557         put -lsec in even for programs other than 'ls'.  This fixes a problem
47558         for gettext reported by Bruno Haible in
47559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47560         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47561         Add support for Solaris 10.  This isn't efficient, but should get the
47562         job done for now.
47563
47564 2007-12-03  James Youngman  <jay@gnu.org>
47565
47566         * doc/regexprops-generic.texi: change "an close-group" to "a
47567         close-group" and "illegal" to "not allowed".
47568
47569 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47570
47571         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47572         pr_byname.h. Needed for the rare case when the maintainer has done
47573         "make maintainer-clean" in the source directory and then attempts a
47574         build outside the source directory.
47575         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47576         scripts_byname.h.
47577
47578 2007-12-02  Martin Lambers <marlam@marlam.de>
47579             Bruno Haible  <bruno@clisp.org>
47580
47581         * lib/getpagesize.h: Remove file.
47582         * lib/unistd.in.h: Include declaration of getpagesize here.
47583         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47584         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47585         HAVE_SYS_PARAM_H.
47586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47587         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47588         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47589         (Depends-on): Add unistd.
47590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47591         (Include): Use <unistd.h> instead of getpagesize.h.
47592         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47593         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47594         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47595         gl_GETPAGESIZE invocation, already handled by module dependency.
47596         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47597
47598 2007-12-02  Bruno Haible  <bruno@clisp.org>
47599
47600         * modules/strings-tests: New file.
47601         * tests/test-strings.c: New file.
47602
47603         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47604         * lib/strings.in.h: New file.
47605         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47606         * m4/strings_h.m4: New file.
47607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47608         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47609         * modules/strings: New file.
47610         * modules/string (Makefile.am): Update.
47611         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47612         Reported by Karl Berry.
47613
47614 2007-12-01  Eric Blake  <ebb9@byu.net>
47615
47616         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47617         accomodate fix in cygwin 1.5.25.
47618
47619 2007-12-01  Jim Meyering  <meyering@redhat.com>
47620
47621         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47622         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47623         that would inhibit utf8-optimization of a regexp containing line-
47624         or buffer-anchors, e.g., `^', `$'.
47625
47626 2007-11-30  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47629         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47630         glthread_recursive_lock_init.
47631         * lib/lock.c (glthread_recursive_lock_init)
47632         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47633         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47634
47635 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47636
47637         New function qset_acl, like set_acl but with syscall semantics.
47638         * lib/acl.h (qset_acl): New decl.
47639         * lib/acl.c (qset_acl): New function.
47640         (set_acl): Use new function.  Use more-consistent diagnostics.
47641
47642 2007-11-28  Jim Meyering  <meyering@redhat.com>
47643
47644         * modules/physmem (License): Change from GPL to LGPLv2+.
47645
47646 2007-11-26  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47649         'long double' type has excess precision.
47650         Reported by Jim Meyering in
47651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47652
47653 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47654
47655         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47656         Sync from <http://gnu.org/licenses>.
47657         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47658         with license text from same location.
47659         * doc/maintain.texi, doc/standards.texi:  Sync from
47660         <http://savannah.gnu.org/projects/gnustandards>.
47661
47662 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47663         and Jim Meyering  <meyering@redhat.com>
47664
47665         Adjust getdate' grammar to accept a slightly more regular language.
47666         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47667         Before, the former was rejected.
47668         * lib/getdate.y (digits_to_date_time): New function, factored
47669         out of ...
47670         (number): ...here.  Just call digits_to_date_time.
47671         (hybrid): New non-terminal to handle an <unsigned number,
47672         signed relative offset> sequence consistently.
47673
47674 2007-11-18  Jim Meyering  <meyering@redhat.com>
47675
47676         Pull my changes from coreutils:
47677         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47678         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47679         use of $gnulib_tool_option_extras, so that it's separated from the
47680         preceding argument.
47681
47682         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47683         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47684         parent destination directories before copying a file into place.
47685
47686 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47687
47688         bootstrap: work also with 4-argument variant of AC_INIT
47689         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47690
47691 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47692
47693         Port test-getaddrinfo to Solaris.
47694         Problem reported by Bruno Haible in
47695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47696         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47697         explanation of setting 'hints'.
47698         Don't reject an implementation merely because it returns EAI_SERVICE.
47699         (EAI_SERVICE): Define to 0 if not defined.
47700
47701 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47702
47703         The license of gnu-make and posix-shell is now "GPLed build tool".
47704         * modules/gnu-make (License): Likewise.
47705         * modules/posix-shell (License): Likewise.
47706
47707         New module posix-shell, for determining a POSIX shell
47708         or perhaps something that is close enough to a POSIX shell.
47709         * m4/posix-shell.m4: New file.
47710         * modules/posix-shell: New file.
47711
47712         * MODULES.html.sh: Mention new module.
47713
47714         New module gnu-make, for determining whether we're using GNU Make.
47715         * m4/gnu-make.m4: New file.
47716         * modules/gnu-make: New file.
47717         * MODULES.html.sh: Mention new module.
47718
47719 2007-11-14  Jim Meyering  <meyering@redhat.com>
47720
47721         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47722         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47723         use this macro to create a function _definition_.
47724         Remove useless "#undef ARGMATCH_DIE".
47725
47726 2007-11-14  Bruno Haible  <bruno@clisp.org>
47727
47728         * lib/config.charset: Update for OpenBSD 4.1.
47729         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47730
47731 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47732
47733         Document 64-bit #if problems in stdint.texi.
47734         * doc/headers/stdint.texi (stdint.h): Mention problems with
47735         64-bit-#if, and how to work around them.
47736
47737         Don't insist on 'long long int' support in the preprocessor.  It
47738         breaks too many things.  For example, PRIdMAX still uses a 'long
47739         long int' format with the latest Sun compiler, even though
47740         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47741         preprocessor problem.  This causes the latest coreutils to dump
47742         core on Solaris 10 sparc with the Sun C compiler.
47743         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47744         the troublesome expressions at configure-time, not at #if-time.
47745         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47746         preprocessor.
47747         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47748         compile-time C checks, done at 'configure'-time.
47749         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47750         * modules/inttypes (Makefile): Substitute the new symbols that
47751         gl_INTTYPES_H now generates.
47752         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47753
47754 2007-11-12  Bruno Haible  <bruno@clisp.org>
47755
47756         Tests for Unicode character classification functions.
47757
47758         * modules/unictype/bidicategory-byname-tests: New file.
47759         * modules/unictype/bidicategory-name-tests: New file.
47760         * modules/unictype/bidicategory-of-tests: New file.
47761         * modules/unictype/bidicategory-test-tests: New file.
47762         * modules/unictype/block-list-tests: New file.
47763         * modules/unictype/block-of-tests: New file.
47764         * modules/unictype/block-test-tests: New file.
47765         * modules/unictype/category-C-tests: New file.
47766         * modules/unictype/category-Cc-tests: New file.
47767         * modules/unictype/category-Cf-tests: New file.
47768         * modules/unictype/category-Cn-tests: New file.
47769         * modules/unictype/category-Co-tests: New file.
47770         * modules/unictype/category-Cs-tests: New file.
47771         * modules/unictype/category-L-tests: New file.
47772         * modules/unictype/category-Ll-tests: New file.
47773         * modules/unictype/category-Lm-tests: New file.
47774         * modules/unictype/category-Lo-tests: New file.
47775         * modules/unictype/category-Lt-tests: New file.
47776         * modules/unictype/category-Lu-tests: New file.
47777         * modules/unictype/category-M-tests: New file.
47778         * modules/unictype/category-Mc-tests: New file.
47779         * modules/unictype/category-Me-tests: New file.
47780         * modules/unictype/category-Mn-tests: New file.
47781         * modules/unictype/category-N-tests: New file.
47782         * modules/unictype/category-Nd-tests: New file.
47783         * modules/unictype/category-Nl-tests: New file.
47784         * modules/unictype/category-No-tests: New file.
47785         * modules/unictype/category-P-tests: New file.
47786         * modules/unictype/category-Pc-tests: New file.
47787         * modules/unictype/category-Pd-tests: New file.
47788         * modules/unictype/category-Pe-tests: New file.
47789         * modules/unictype/category-Pf-tests: New file.
47790         * modules/unictype/category-Pi-tests: New file.
47791         * modules/unictype/category-Po-tests: New file.
47792         * modules/unictype/category-Ps-tests: New file.
47793         * modules/unictype/category-S-tests: New file.
47794         * modules/unictype/category-Sc-tests: New file.
47795         * modules/unictype/category-Sk-tests: New file.
47796         * modules/unictype/category-Sm-tests: New file.
47797         * modules/unictype/category-So-tests: New file.
47798         * modules/unictype/category-Z-tests: New file.
47799         * modules/unictype/category-Zl-tests: New file.
47800         * modules/unictype/category-Zp-tests: New file.
47801         * modules/unictype/category-Zs-tests: New file.
47802         * modules/unictype/category-and-not-tests: New file.
47803         * modules/unictype/category-and-tests: New file.
47804         * modules/unictype/category-byname-tests: New file.
47805         * modules/unictype/category-name-tests: New file.
47806         * modules/unictype/category-none-tests: New file.
47807         * modules/unictype/category-of-tests: New file.
47808         * modules/unictype/category-or-tests: New file.
47809         * modules/unictype/category-test-withtable-tests: New file.
47810         * modules/unictype/combining-class-tests: New file.
47811         * modules/unictype/ctype-alnum-tests: New file.
47812         * modules/unictype/ctype-alpha-tests: New file.
47813         * modules/unictype/ctype-blank-tests: New file.
47814         * modules/unictype/ctype-cntrl-tests: New file.
47815         * modules/unictype/ctype-digit-tests: New file.
47816         * modules/unictype/ctype-graph-tests: New file.
47817         * modules/unictype/ctype-lower-tests: New file.
47818         * modules/unictype/ctype-print-tests: New file.
47819         * modules/unictype/ctype-punct-tests: New file.
47820         * modules/unictype/ctype-space-tests: New file.
47821         * modules/unictype/ctype-upper-tests: New file.
47822         * modules/unictype/ctype-xdigit-tests: New file.
47823         * modules/unictype/decimal-digit-tests: New file.
47824         * modules/unictype/digit-tests: New file.
47825         * modules/unictype/mirror-tests: New file.
47826         * modules/unictype/numeric-tests: New file.
47827         * modules/unictype/property-alphabetic-tests: New file.
47828         * modules/unictype/property-ascii-hex-digit-tests: New file.
47829         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47830         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47831         * modules/unictype/property-bidi-block-separator-tests: New file.
47832         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47833         * modules/unictype/property-bidi-common-separator-tests: New file.
47834         * modules/unictype/property-bidi-control-tests: New file.
47835         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47836         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47837         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47838         * modules/unictype/property-bidi-european-digit-tests: New file.
47839         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47840         * modules/unictype/property-bidi-left-to-right-tests: New file.
47841         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47842         * modules/unictype/property-bidi-other-neutral-tests: New file.
47843         * modules/unictype/property-bidi-pdf-tests: New file.
47844         * modules/unictype/property-bidi-segment-separator-tests: New file.
47845         * modules/unictype/property-bidi-whitespace-tests: New file.
47846         * modules/unictype/property-byname-tests: New file.
47847         * modules/unictype/property-combining-tests: New file.
47848         * modules/unictype/property-composite-tests: New file.
47849         * modules/unictype/property-currency-symbol-tests: New file.
47850         * modules/unictype/property-dash-tests: New file.
47851         * modules/unictype/property-decimal-digit-tests: New file.
47852         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47853         * modules/unictype/property-deprecated-tests: New file.
47854         * modules/unictype/property-diacritic-tests: New file.
47855         * modules/unictype/property-extender-tests: New file.
47856         * modules/unictype/property-format-control-tests: New file.
47857         * modules/unictype/property-grapheme-base-tests: New file.
47858         * modules/unictype/property-grapheme-extend-tests: New file.
47859         * modules/unictype/property-grapheme-link-tests: New file.
47860         * modules/unictype/property-hex-digit-tests: New file.
47861         * modules/unictype/property-hyphen-tests: New file.
47862         * modules/unictype/property-id-continue-tests: New file.
47863         * modules/unictype/property-id-start-tests: New file.
47864         * modules/unictype/property-ideographic-tests: New file.
47865         * modules/unictype/property-ids-binary-operator-tests: New file.
47866         * modules/unictype/property-ids-trinary-operator-tests: New file.
47867         * modules/unictype/property-ignorable-control-tests: New file.
47868         * modules/unictype/property-iso-control-tests: New file.
47869         * modules/unictype/property-join-control-tests: New file.
47870         * modules/unictype/property-left-of-pair-tests: New file.
47871         * modules/unictype/property-line-separator-tests: New file.
47872         * modules/unictype/property-logical-order-exception-tests: New file.
47873         * modules/unictype/property-lowercase-tests: New file.
47874         * modules/unictype/property-math-tests: New file.
47875         * modules/unictype/property-non-break-tests: New file.
47876         * modules/unictype/property-not-a-character-tests: New file.
47877         * modules/unictype/property-numeric-tests: New file.
47878         * modules/unictype/property-other-alphabetic-tests: New file.
47879         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47880         * modules/unictype/property-other-grapheme-extend-tests: New file.
47881         * modules/unictype/property-other-id-continue-tests: New file.
47882         * modules/unictype/property-other-id-start-tests: New file.
47883         * modules/unictype/property-other-lowercase-tests: New file.
47884         * modules/unictype/property-other-math-tests: New file.
47885         * modules/unictype/property-other-uppercase-tests: New file.
47886         * modules/unictype/property-paired-punctuation-tests: New file.
47887         * modules/unictype/property-paragraph-separator-tests: New file.
47888         * modules/unictype/property-pattern-syntax-tests: New file.
47889         * modules/unictype/property-pattern-white-space-tests: New file.
47890         * modules/unictype/property-private-use-tests: New file.
47891         * modules/unictype/property-punctuation-tests: New file.
47892         * modules/unictype/property-quotation-mark-tests: New file.
47893         * modules/unictype/property-radical-tests: New file.
47894         * modules/unictype/property-sentence-terminal-tests: New file.
47895         * modules/unictype/property-soft-dotted-tests: New file.
47896         * modules/unictype/property-space-tests: New file.
47897         * modules/unictype/property-terminal-punctuation-tests: New file.
47898         * modules/unictype/property-test-tests: New file.
47899         * modules/unictype/property-titlecase-tests: New file.
47900         * modules/unictype/property-unassigned-code-value-tests: New file.
47901         * modules/unictype/property-unified-ideograph-tests: New file.
47902         * modules/unictype/property-uppercase-tests: New file.
47903         * modules/unictype/property-variation-selector-tests: New file.
47904         * modules/unictype/property-white-space-tests: New file.
47905         * modules/unictype/property-xid-continue-tests: New file.
47906         * modules/unictype/property-xid-start-tests: New file.
47907         * modules/unictype/property-zero-width-tests: New file.
47908         * modules/unictype/scripts-tests: New file.
47909         * modules/unictype/syntax-c-ident-tests: New file.
47910         * modules/unictype/syntax-c-whitespace-tests: New file.
47911         * modules/unictype/syntax-java-ident-tests: New file.
47912         * modules/unictype/syntax-java-whitespace-tests: New file.
47913         * tests/unictype/test-bidi_byname.c: New file.
47914         * tests/unictype/test-bidi_name.c: New file.
47915         * tests/unictype/test-bidi_of.c: New file.
47916         * tests/unictype/test-bidi_test.c: New file.
47917         * tests/unictype/test-block_list.c: New file.
47918         * tests/unictype/test-block_of.c: New file.
47919         * tests/unictype/test-block_test.c: New file.
47920         * tests/unictype/test-categ_and.c: New file.
47921         * tests/unictype/test-categ_and_not.c: New file.
47922         * tests/unictype/test-categ_byname.c: New file.
47923         * tests/unictype/test-categ_name.c: New file.
47924         * tests/unictype/test-categ_none.c: New file.
47925         * tests/unictype/test-categ_of.c: New file.
47926         * tests/unictype/test-categ_or.c: New file.
47927         * tests/unictype/test-categ_test_withtable.c: New file.
47928         * tests/unictype/test-combining.c: New file.
47929         * tests/unictype/test-decdigit.c: New file.
47930         * tests/unictype/test-digit.c: New file.
47931         * tests/unictype/test-mirror.c: New file.
47932         * tests/unictype/test-numeric.c: New file.
47933         * tests/unictype/test-pr_byname.c: New file.
47934         * tests/unictype/test-pr_test.c: New file.
47935         * tests/unictype/test-predicate-part1.h: New file.
47936         * tests/unictype/test-predicate-part2.h: New file.
47937         * tests/unictype/test-scripts.c: New file.
47938         * tests/unictype/test-sy_c_ident.c: New file.
47939         * tests/unictype/test-sy_java_ident.c: New file.
47940
47941         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47942         for Unicode 5.0.0.
47943         * tests/unictype/test-categ_Cc.c: Likewise.
47944         * tests/unictype/test-categ_Cf.c: Likewise.
47945         * tests/unictype/test-categ_Cn.c: Likewise.
47946         * tests/unictype/test-categ_Co.c: Likewise.
47947         * tests/unictype/test-categ_Cs.c: Likewise.
47948         * tests/unictype/test-categ_L.c: Likewise.
47949         * tests/unictype/test-categ_Ll.c: Likewise.
47950         * tests/unictype/test-categ_Lm.c: Likewise.
47951         * tests/unictype/test-categ_Lo.c: Likewise.
47952         * tests/unictype/test-categ_Lt.c: Likewise.
47953         * tests/unictype/test-categ_Lu.c: Likewise.
47954         * tests/unictype/test-categ_M.c: Likewise.
47955         * tests/unictype/test-categ_Mc.c: Likewise.
47956         * tests/unictype/test-categ_Me.c: Likewise.
47957         * tests/unictype/test-categ_Mn.c: Likewise.
47958         * tests/unictype/test-categ_N.c: Likewise.
47959         * tests/unictype/test-categ_Nd.c: Likewise.
47960         * tests/unictype/test-categ_Nl.c: Likewise.
47961         * tests/unictype/test-categ_No.c: Likewise.
47962         * tests/unictype/test-categ_P.c: Likewise.
47963         * tests/unictype/test-categ_Pc.c: Likewise.
47964         * tests/unictype/test-categ_Pd.c: Likewise.
47965         * tests/unictype/test-categ_Pe.c: Likewise.
47966         * tests/unictype/test-categ_Pf.c: Likewise.
47967         * tests/unictype/test-categ_Pi.c: Likewise.
47968         * tests/unictype/test-categ_Po.c: Likewise.
47969         * tests/unictype/test-categ_Ps.c: Likewise.
47970         * tests/unictype/test-categ_S.c: Likewise.
47971         * tests/unictype/test-categ_Sc.c: Likewise.
47972         * tests/unictype/test-categ_Sk.c: Likewise.
47973         * tests/unictype/test-categ_Sm.c: Likewise.
47974         * tests/unictype/test-categ_So.c: Likewise.
47975         * tests/unictype/test-categ_Z.c: Likewise.
47976         * tests/unictype/test-categ_Zl.c: Likewise.
47977         * tests/unictype/test-categ_Zp.c: Likewise.
47978         * tests/unictype/test-categ_Zs.c: Likewise.
47979         * tests/unictype/test-ctype_alnum.c: Likewise.
47980         * tests/unictype/test-ctype_alpha.c: Likewise.
47981         * tests/unictype/test-ctype_blank.c: Likewise.
47982         * tests/unictype/test-ctype_cntrl.c: Likewise.
47983         * tests/unictype/test-ctype_digit.c: Likewise.
47984         * tests/unictype/test-ctype_graph.c: Likewise.
47985         * tests/unictype/test-ctype_lower.c: Likewise.
47986         * tests/unictype/test-ctype_print.c: Likewise.
47987         * tests/unictype/test-ctype_punct.c: Likewise.
47988         * tests/unictype/test-ctype_space.c: Likewise.
47989         * tests/unictype/test-ctype_upper.c: Likewise.
47990         * tests/unictype/test-ctype_xdigit.c: Likewise.
47991         * tests/unictype/test-decdigit.h: Likewise.
47992         * tests/unictype/test-digit.h: Likewise.
47993         * tests/unictype/test-numeric.h: Likewise.
47994         * tests/unictype/test-pr_alphabetic.c: Likewise.
47995         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47996         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47997         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47998         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47999         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48000         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48001         * tests/unictype/test-pr_bidi_control.c: Likewise.
48002         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48003         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48004         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48005         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48006         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48007         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48008         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48009         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48010         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48011         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48012         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48013         * tests/unictype/test-pr_combining.c: Likewise.
48014         * tests/unictype/test-pr_composite.c: Likewise.
48015         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48016         * tests/unictype/test-pr_dash.c: Likewise.
48017         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48018         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48019         * tests/unictype/test-pr_deprecated.c: Likewise.
48020         * tests/unictype/test-pr_diacritic.c: Likewise.
48021         * tests/unictype/test-pr_extender.c: Likewise.
48022         * tests/unictype/test-pr_format_control.c: Likewise.
48023         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48024         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48025         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48026         * tests/unictype/test-pr_hex_digit.c: Likewise.
48027         * tests/unictype/test-pr_hyphen.c: Likewise.
48028         * tests/unictype/test-pr_id_continue.c: Likewise.
48029         * tests/unictype/test-pr_id_start.c: Likewise.
48030         * tests/unictype/test-pr_ideographic.c: Likewise.
48031         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48032         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48033         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48034         * tests/unictype/test-pr_iso_control.c: Likewise.
48035         * tests/unictype/test-pr_join_control.c: Likewise.
48036         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48037         * tests/unictype/test-pr_line_separator.c: Likewise.
48038         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48039         * tests/unictype/test-pr_lowercase.c: Likewise.
48040         * tests/unictype/test-pr_math.c: Likewise.
48041         * tests/unictype/test-pr_non_break.c: Likewise.
48042         * tests/unictype/test-pr_not_a_character.c: Likewise.
48043         * tests/unictype/test-pr_numeric.c: Likewise.
48044         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48045         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48046         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48047         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48048         * tests/unictype/test-pr_other_id_start.c: Likewise.
48049         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48050         * tests/unictype/test-pr_other_math.c: Likewise.
48051         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48052         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48053         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48054         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48055         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48056         * tests/unictype/test-pr_private_use.c: Likewise.
48057         * tests/unictype/test-pr_punctuation.c: Likewise.
48058         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48059         * tests/unictype/test-pr_radical.c: Likewise.
48060         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48061         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48062         * tests/unictype/test-pr_space.c: Likewise.
48063         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48064         * tests/unictype/test-pr_titlecase.c: Likewise.
48065         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48066         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48067         * tests/unictype/test-pr_uppercase.c: Likewise.
48068         * tests/unictype/test-pr_variation_selector.c: Likewise.
48069         * tests/unictype/test-pr_white_space.c: Likewise.
48070         * tests/unictype/test-pr_xid_continue.c: Likewise.
48071         * tests/unictype/test-pr_xid_start.c: Likewise.
48072         * tests/unictype/test-pr_zero_width.c: Likewise.
48073         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48074         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48075
48076 2007-11-12  Bruno Haible  <bruno@clisp.org>
48077
48078         Unicode character classification functions.
48079         * lib/unictype.h: New file.
48080         * modules/unictype/base: New file.
48081         * modules/unictype/category-L: New file.
48082         * modules/unictype/category-Lu: New file.
48083         * modules/unictype/category-Ll: New file.
48084         * modules/unictype/category-Lt: New file.
48085         * modules/unictype/category-Lm: New file.
48086         * modules/unictype/category-Lo: New file.
48087         * modules/unictype/category-M: New file.
48088         * modules/unictype/category-Mn: New file.
48089         * modules/unictype/category-Mc: New file.
48090         * modules/unictype/category-Me: New file.
48091         * modules/unictype/category-N: New file.
48092         * modules/unictype/category-Nd: New file.
48093         * modules/unictype/category-Nl: New file.
48094         * modules/unictype/category-No: New file.
48095         * modules/unictype/category-P: New file.
48096         * modules/unictype/category-Pc: New file.
48097         * modules/unictype/category-Pd: New file.
48098         * modules/unictype/category-Ps: New file.
48099         * modules/unictype/category-Pe: New file.
48100         * modules/unictype/category-Pi: New file.
48101         * modules/unictype/category-Pf: New file.
48102         * modules/unictype/category-Po: New file.
48103         * modules/unictype/category-S: New file.
48104         * modules/unictype/category-Sm: New file.
48105         * modules/unictype/category-Sc: New file.
48106         * modules/unictype/category-Sk: New file.
48107         * modules/unictype/category-So: New file.
48108         * modules/unictype/category-Z: New file.
48109         * modules/unictype/category-Zs: New file.
48110         * modules/unictype/category-Zl: New file.
48111         * modules/unictype/category-Zp: New file.
48112         * modules/unictype/category-C: New file.
48113         * modules/unictype/category-Cc: New file.
48114         * modules/unictype/category-Cf: New file.
48115         * modules/unictype/category-Cs: New file.
48116         * modules/unictype/category-Co: New file.
48117         * modules/unictype/category-Cn: New file.
48118         * modules/unictype/category-or: New file.
48119         * modules/unictype/category-of: New file.
48120         * modules/unictype/category-test: New file.
48121         * modules/unictype/category-test-withtable: New file.
48122         * modules/unictype/category-byname: New file.
48123         * modules/unictype/category-none: New file.
48124         * modules/unictype/category-and: New file.
48125         * modules/unictype/category-and-not: New file.
48126         * modules/unictype/category-name: New file.
48127         * modules/unictype/combining-class: New file.
48128         * modules/unictype/category-all: New file.
48129         * modules/unictype/bidicategory-all: New file.
48130         * modules/unictype/bidicategory-byname: New file.
48131         * modules/unictype/bidicategory-name: New file.
48132         * modules/unictype/bidicategory-of: New file.
48133         * modules/unictype/bidicategory-test: New file.
48134         * modules/unictype/decimal-digit: New file.
48135         * modules/unictype/digit: New file.
48136         * modules/unictype/numeric: New file.
48137         * modules/unictype/mirror: New file.
48138         * modules/unictype/property-white-space: New file.
48139         * modules/unictype/property-alphabetic: New file.
48140         * modules/unictype/property-other-alphabetic: New file.
48141         * modules/unictype/property-not-a-character: New file.
48142         * modules/unictype/property-default-ignorable-code-point: New file.
48143         * modules/unictype/property-other-default-ignorable-code-point: New
48144         file.
48145         * modules/unictype/property-deprecated: New file.
48146         * modules/unictype/property-logical-order-exception: New file.
48147         * modules/unictype/property-variation-selector: New file.
48148         * modules/unictype/property-private-use: New file.
48149         * modules/unictype/property-unassigned-code-value: New file.
48150         * modules/unictype/property-uppercase: New file.
48151         * modules/unictype/property-other-uppercase: New file.
48152         * modules/unictype/property-lowercase: New file.
48153         * modules/unictype/property-other-lowercase: New file.
48154         * modules/unictype/property-titlecase: New file.
48155         * modules/unictype/property-soft-dotted: New file.
48156         * modules/unictype/property-id-start: New file.
48157         * modules/unictype/property-other-id-start: New file.
48158         * modules/unictype/property-id-continue: New file.
48159         * modules/unictype/property-other-id-continue: New file.
48160         * modules/unictype/property-xid-start: New file.
48161         * modules/unictype/property-xid-continue: New file.
48162         * modules/unictype/property-pattern-white-space: New file.
48163         * modules/unictype/property-pattern-syntax: New file.
48164         * modules/unictype/property-join-control: New file.
48165         * modules/unictype/property-grapheme-base: New file.
48166         * modules/unictype/property-grapheme-extend: New file.
48167         * modules/unictype/property-other-grapheme-extend: New file.
48168         * modules/unictype/property-grapheme-link: New file.
48169         * modules/unictype/property-bidi-control: New file.
48170         * modules/unictype/property-bidi-left-to-right: New file.
48171         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48172         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48173         * modules/unictype/property-bidi-european-digit: New file.
48174         * modules/unictype/property-bidi-eur-num-separator: New file.
48175         * modules/unictype/property-bidi-eur-num-terminator: New file.
48176         * modules/unictype/property-bidi-arabic-digit: New file.
48177         * modules/unictype/property-bidi-common-separator: New file.
48178         * modules/unictype/property-bidi-block-separator: New file.
48179         * modules/unictype/property-bidi-segment-separator: New file.
48180         * modules/unictype/property-bidi-whitespace: New file.
48181         * modules/unictype/property-bidi-non-spacing-mark: New file.
48182         * modules/unictype/property-bidi-boundary-neutral: New file.
48183         * modules/unictype/property-bidi-pdf: New file.
48184         * modules/unictype/property-bidi-embedding-or-override: New file.
48185         * modules/unictype/property-bidi-other-neutral: New file.
48186         * modules/unictype/property-hex-digit: New file.
48187         * modules/unictype/property-ascii-hex-digit: New file.
48188         * modules/unictype/property-ideographic: New file.
48189         * modules/unictype/property-unified-ideograph: New file.
48190         * modules/unictype/property-radical: New file.
48191         * modules/unictype/property-ids-binary-operator: New file.
48192         * modules/unictype/property-ids-trinary-operator: New file.
48193         * modules/unictype/property-zero-width: New file.
48194         * modules/unictype/property-space: New file.
48195         * modules/unictype/property-non-break: New file.
48196         * modules/unictype/property-iso-control: New file.
48197         * modules/unictype/property-format-control: New file.
48198         * modules/unictype/property-dash: New file.
48199         * modules/unictype/property-hyphen: New file.
48200         * modules/unictype/property-punctuation: New file.
48201         * modules/unictype/property-line-separator: New file.
48202         * modules/unictype/property-paragraph-separator: New file.
48203         * modules/unictype/property-quotation-mark: New file.
48204         * modules/unictype/property-sentence-terminal: New file.
48205         * modules/unictype/property-terminal-punctuation: New file.
48206         * modules/unictype/property-currency-symbol: New file.
48207         * modules/unictype/property-math: New file.
48208         * modules/unictype/property-other-math: New file.
48209         * modules/unictype/property-paired-punctuation: New file.
48210         * modules/unictype/property-left-of-pair: New file.
48211         * modules/unictype/property-combining: New file.
48212         * modules/unictype/property-composite: New file.
48213         * modules/unictype/property-decimal-digit: New file.
48214         * modules/unictype/property-numeric: New file.
48215         * modules/unictype/property-diacritic: New file.
48216         * modules/unictype/property-extender: New file.
48217         * modules/unictype/property-ignorable-control: New file.
48218         * modules/unictype/property-test: New file.
48219         * modules/unictype/property-byname: New file.
48220         * modules/unictype/property-all: New file.
48221         * modules/unictype/scripts: New file.
48222         * modules/unictype/scripts-all: New file.
48223         * modules/unictype/block-of: New file.
48224         * modules/unictype/block-test: New file.
48225         * modules/unictype/block-list: New file.
48226         * modules/unictype/block-all: New file.
48227         * modules/unictype/syntax-c-whitespace: New file.
48228         * modules/unictype/syntax-java-whitespace: New file.
48229         * modules/unictype/syntax-c-ident: New file.
48230         * modules/unictype/syntax-java-ident: New file.
48231         * modules/unictype/ctype-alnum: New file.
48232         * modules/unictype/ctype-alpha: New file.
48233         * modules/unictype/ctype-cntrl: New file.
48234         * modules/unictype/ctype-digit: New file.
48235         * modules/unictype/ctype-graph: New file.
48236         * modules/unictype/ctype-lower: New file.
48237         * modules/unictype/ctype-print: New file.
48238         * modules/unictype/ctype-punct: New file.
48239         * modules/unictype/ctype-space: New file.
48240         * modules/unictype/ctype-upper: New file.
48241         * modules/unictype/ctype-xdigit: New file.
48242         * modules/unictype/ctype-blank: New file.
48243         * lib/unictype/bidi_byname.c: New file.
48244         * lib/unictype/bidi_name.c: New file.
48245         * lib/unictype/bidi_of.c: New file.
48246         * lib/unictype/bidi_test.c: New file.
48247         * lib/unictype/bitmap.h: New file.
48248         * lib/unictype/block_test.c: New file.
48249         * lib/unictype/blocks.c: New file.
48250         * lib/unictype/categ_C.c: New file.
48251         * lib/unictype/categ_Cc.c: New file.
48252         * lib/unictype/categ_Cf.c: New file.
48253         * lib/unictype/categ_Cn.c: New file.
48254         * lib/unictype/categ_Co.c: New file.
48255         * lib/unictype/categ_Cs.c: New file.
48256         * lib/unictype/categ_L.c: New file.
48257         * lib/unictype/categ_Ll.c: New file.
48258         * lib/unictype/categ_Lm.c: New file.
48259         * lib/unictype/categ_Lo.c: New file.
48260         * lib/unictype/categ_Lt.c: New file.
48261         * lib/unictype/categ_Lu.c: New file.
48262         * lib/unictype/categ_M.c: New file.
48263         * lib/unictype/categ_Mc.c: New file.
48264         * lib/unictype/categ_Me.c: New file.
48265         * lib/unictype/categ_Mn.c: New file.
48266         * lib/unictype/categ_N.c: New file.
48267         * lib/unictype/categ_Nd.c: New file.
48268         * lib/unictype/categ_Nl.c: New file.
48269         * lib/unictype/categ_No.c: New file.
48270         * lib/unictype/categ_P.c: New file.
48271         * lib/unictype/categ_Pc.c: New file.
48272         * lib/unictype/categ_Pd.c: New file.
48273         * lib/unictype/categ_Pe.c: New file.
48274         * lib/unictype/categ_Pf.c: New file.
48275         * lib/unictype/categ_Pi.c: New file.
48276         * lib/unictype/categ_Po.c: New file.
48277         * lib/unictype/categ_Ps.c: New file.
48278         * lib/unictype/categ_S.c: New file.
48279         * lib/unictype/categ_Sc.c: New file.
48280         * lib/unictype/categ_Sk.c: New file.
48281         * lib/unictype/categ_Sm.c: New file.
48282         * lib/unictype/categ_So.c: New file.
48283         * lib/unictype/categ_Z.c: New file.
48284         * lib/unictype/categ_Zl.c: New file.
48285         * lib/unictype/categ_Zp.c: New file.
48286         * lib/unictype/categ_Zs.c: New file.
48287         * lib/unictype/categ_and.c: New file.
48288         * lib/unictype/categ_and_not.c: New file.
48289         * lib/unictype/categ_byname.c: New file.
48290         * lib/unictype/categ_name.c: New file.
48291         * lib/unictype/categ_none.c: New file.
48292         * lib/unictype/categ_of.c: New file.
48293         * lib/unictype/categ_or.c: New file.
48294         * lib/unictype/categ_test.c: New file.
48295         * lib/unictype/combining.c: New file.
48296         * lib/unictype/ctype_alnum.c: New file.
48297         * lib/unictype/ctype_alpha.c: New file.
48298         * lib/unictype/ctype_blank.c: New file.
48299         * lib/unictype/ctype_cntrl.c: New file.
48300         * lib/unictype/ctype_digit.c: New file.
48301         * lib/unictype/ctype_graph.c: New file.
48302         * lib/unictype/ctype_lower.c: New file.
48303         * lib/unictype/ctype_print.c: New file.
48304         * lib/unictype/ctype_punct.c: New file.
48305         * lib/unictype/ctype_space.c: New file.
48306         * lib/unictype/ctype_upper.c: New file.
48307         * lib/unictype/ctype_xdigit.c: New file.
48308         * lib/unictype/decdigit.c: New file.
48309         * lib/unictype/digit.c: New file.
48310         * lib/unictype/identsyntaxmap.h: New file.
48311         * lib/unictype/mirror.c: New file.
48312         * lib/unictype/numeric.c: New file.
48313         * lib/unictype/pr_alphabetic.c: New file.
48314         * lib/unictype/pr_ascii_hex_digit.c: New file.
48315         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48316         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48317         * lib/unictype/pr_bidi_block_separator.c: New file.
48318         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48319         * lib/unictype/pr_bidi_common_separator.c: New file.
48320         * lib/unictype/pr_bidi_control.c: New file.
48321         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48322         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48323         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48324         * lib/unictype/pr_bidi_european_digit.c: New file.
48325         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48326         * lib/unictype/pr_bidi_left_to_right.c: New file.
48327         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48328         * lib/unictype/pr_bidi_other_neutral.c: New file.
48329         * lib/unictype/pr_bidi_pdf.c: New file.
48330         * lib/unictype/pr_bidi_segment_separator.c: New file.
48331         * lib/unictype/pr_bidi_whitespace.c: New file.
48332         * lib/unictype/pr_byname.c: New file.
48333         * lib/unictype/pr_byname.gperf: New file.
48334         * lib/unictype/pr_combining.c: New file.
48335         * lib/unictype/pr_composite.c: New file.
48336         * lib/unictype/pr_currency_symbol.c: New file.
48337         * lib/unictype/pr_dash.c: New file.
48338         * lib/unictype/pr_decimal_digit.c: New file.
48339         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48340         * lib/unictype/pr_deprecated.c: New file.
48341         * lib/unictype/pr_diacritic.c: New file.
48342         * lib/unictype/pr_extender.c: New file.
48343         * lib/unictype/pr_format_control.c: New file.
48344         * lib/unictype/pr_grapheme_base.c: New file.
48345         * lib/unictype/pr_grapheme_extend.c: New file.
48346         * lib/unictype/pr_grapheme_link.c: New file.
48347         * lib/unictype/pr_hex_digit.c: New file.
48348         * lib/unictype/pr_hyphen.c: New file.
48349         * lib/unictype/pr_id_continue.c: New file.
48350         * lib/unictype/pr_id_start.c: New file.
48351         * lib/unictype/pr_ideographic.c: New file.
48352         * lib/unictype/pr_ids_binary_operator.c: New file.
48353         * lib/unictype/pr_ids_trinary_operator.c: New file.
48354         * lib/unictype/pr_ignorable_control.c: New file.
48355         * lib/unictype/pr_iso_control.c: New file.
48356         * lib/unictype/pr_join_control.c: New file.
48357         * lib/unictype/pr_left_of_pair.c: New file.
48358         * lib/unictype/pr_line_separator.c: New file.
48359         * lib/unictype/pr_logical_order_exception.c: New file.
48360         * lib/unictype/pr_lowercase.c: New file.
48361         * lib/unictype/pr_math.c: New file.
48362         * lib/unictype/pr_non_break.c: New file.
48363         * lib/unictype/pr_not_a_character.c: New file.
48364         * lib/unictype/pr_numeric.c: New file.
48365         * lib/unictype/pr_other_alphabetic.c: New file.
48366         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48367         * lib/unictype/pr_other_grapheme_extend.c: New file.
48368         * lib/unictype/pr_other_id_continue.c: New file.
48369         * lib/unictype/pr_other_id_start.c: New file.
48370         * lib/unictype/pr_other_lowercase.c: New file.
48371         * lib/unictype/pr_other_math.c: New file.
48372         * lib/unictype/pr_other_uppercase.c: New file.
48373         * lib/unictype/pr_paired_punctuation.c: New file.
48374         * lib/unictype/pr_paragraph_separator.c: New file.
48375         * lib/unictype/pr_pattern_syntax.c: New file.
48376         * lib/unictype/pr_pattern_white_space.c: New file.
48377         * lib/unictype/pr_private_use.c: New file.
48378         * lib/unictype/pr_punctuation.c: New file.
48379         * lib/unictype/pr_quotation_mark.c: New file.
48380         * lib/unictype/pr_radical.c: New file.
48381         * lib/unictype/pr_sentence_terminal.c: New file.
48382         * lib/unictype/pr_soft_dotted.c: New file.
48383         * lib/unictype/pr_space.c: New file.
48384         * lib/unictype/pr_terminal_punctuation.c: New file.
48385         * lib/unictype/pr_test.c: New file.
48386         * lib/unictype/pr_titlecase.c: New file.
48387         * lib/unictype/pr_unassigned_code_value.c: New file.
48388         * lib/unictype/pr_unified_ideograph.c: New file.
48389         * lib/unictype/pr_uppercase.c: New file.
48390         * lib/unictype/pr_variation_selector.c: New file.
48391         * lib/unictype/pr_white_space.c: New file.
48392         * lib/unictype/pr_xid_continue.c: New file.
48393         * lib/unictype/pr_xid_start.c: New file.
48394         * lib/unictype/pr_zero_width.c: New file.
48395         * lib/unictype/scripts.c: New file.
48396         * lib/unictype/sy_c_ident.c: New file.
48397         * lib/unictype/sy_c_whitespace.c: New file.
48398         * lib/unictype/sy_java_ident.c: New file.
48399         * lib/unictype/sy_java_whitespace.c: New file.
48400
48401         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48402         Unicode 5.0.0.
48403         * lib/unictype/blocks.h: Likewise.
48404         * lib/unictype/categ_C.h: Likewise.
48405         * lib/unictype/categ_Cc.h: Likewise.
48406         * lib/unictype/categ_Cf.h: Likewise.
48407         * lib/unictype/categ_Cn.h: Likewise.
48408         * lib/unictype/categ_Co.h: Likewise.
48409         * lib/unictype/categ_Cs.h: Likewise.
48410         * lib/unictype/categ_L.h: Likewise.
48411         * lib/unictype/categ_Ll.h: Likewise.
48412         * lib/unictype/categ_Lm.h: Likewise.
48413         * lib/unictype/categ_Lo.h: Likewise.
48414         * lib/unictype/categ_Lt.h: Likewise.
48415         * lib/unictype/categ_Lu.h: Likewise.
48416         * lib/unictype/categ_M.h: Likewise.
48417         * lib/unictype/categ_Mc.h: Likewise.
48418         * lib/unictype/categ_Me.h: Likewise.
48419         * lib/unictype/categ_Mn.h: Likewise.
48420         * lib/unictype/categ_N.h: Likewise.
48421         * lib/unictype/categ_Nd.h: Likewise.
48422         * lib/unictype/categ_Nl.h: Likewise.
48423         * lib/unictype/categ_No.h: Likewise.
48424         * lib/unictype/categ_P.h: Likewise.
48425         * lib/unictype/categ_Pc.h: Likewise.
48426         * lib/unictype/categ_Pd.h: Likewise.
48427         * lib/unictype/categ_Pe.h: Likewise.
48428         * lib/unictype/categ_Pf.h: Likewise.
48429         * lib/unictype/categ_Pi.h: Likewise.
48430         * lib/unictype/categ_Po.h: Likewise.
48431         * lib/unictype/categ_Ps.h: Likewise.
48432         * lib/unictype/categ_S.h: Likewise.
48433         * lib/unictype/categ_Sc.h: Likewise.
48434         * lib/unictype/categ_Sk.h: Likewise.
48435         * lib/unictype/categ_Sm.h: Likewise.
48436         * lib/unictype/categ_So.h: Likewise.
48437         * lib/unictype/categ_Z.h: Likewise.
48438         * lib/unictype/categ_Zl.h: Likewise.
48439         * lib/unictype/categ_Zp.h: Likewise.
48440         * lib/unictype/categ_Zs.h: Likewise.
48441         * lib/unictype/categ_of.h: Likewise.
48442         * lib/unictype/combining.h: Likewise.
48443         * lib/unictype/ctype_alnum.h: Likewise.
48444         * lib/unictype/ctype_alpha.h: Likewise.
48445         * lib/unictype/ctype_blank.h: Likewise.
48446         * lib/unictype/ctype_cntrl.h: Likewise.
48447         * lib/unictype/ctype_digit.h: Likewise.
48448         * lib/unictype/ctype_graph.h: Likewise.
48449         * lib/unictype/ctype_lower.h: Likewise.
48450         * lib/unictype/ctype_print.h: Likewise.
48451         * lib/unictype/ctype_punct.h: Likewise.
48452         * lib/unictype/ctype_space.h: Likewise.
48453         * lib/unictype/ctype_upper.h: Likewise.
48454         * lib/unictype/ctype_xdigit.h: Likewise.
48455         * lib/unictype/decdigit.h: Likewise.
48456         * lib/unictype/digit.h: Likewise.
48457         * lib/unictype/mirror.h: Likewise.
48458         * lib/unictype/numeric.h: Likewise.
48459         * lib/unictype/pr_alphabetic.h: Likewise.
48460         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48461         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48462         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48463         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48464         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48465         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48466         * lib/unictype/pr_bidi_control.h: Likewise.
48467         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48468         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48469         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48470         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48471         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48472         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48473         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48474         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48475         * lib/unictype/pr_bidi_pdf.h: Likewise.
48476         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48477         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48478         * lib/unictype/pr_combining.h: Likewise.
48479         * lib/unictype/pr_composite.h: Likewise.
48480         * lib/unictype/pr_currency_symbol.h: Likewise.
48481         * lib/unictype/pr_dash.h: Likewise.
48482         * lib/unictype/pr_decimal_digit.h: Likewise.
48483         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48484         * lib/unictype/pr_deprecated.h: Likewise.
48485         * lib/unictype/pr_diacritic.h: Likewise.
48486         * lib/unictype/pr_extender.h: Likewise.
48487         * lib/unictype/pr_format_control.h: Likewise.
48488         * lib/unictype/pr_grapheme_base.h: Likewise.
48489         * lib/unictype/pr_grapheme_extend.h: Likewise.
48490         * lib/unictype/pr_grapheme_link.h: Likewise.
48491         * lib/unictype/pr_hex_digit.h: Likewise.
48492         * lib/unictype/pr_hyphen.h: Likewise.
48493         * lib/unictype/pr_id_continue.h: Likewise.
48494         * lib/unictype/pr_id_start.h: Likewise.
48495         * lib/unictype/pr_ideographic.h: Likewise.
48496         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48497         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48498         * lib/unictype/pr_ignorable_control.h: Likewise.
48499         * lib/unictype/pr_iso_control.h: Likewise.
48500         * lib/unictype/pr_join_control.h: Likewise.
48501         * lib/unictype/pr_left_of_pair.h: Likewise.
48502         * lib/unictype/pr_line_separator.h: Likewise.
48503         * lib/unictype/pr_logical_order_exception.h: Likewise.
48504         * lib/unictype/pr_lowercase.h: Likewise.
48505         * lib/unictype/pr_math.h: Likewise.
48506         * lib/unictype/pr_non_break.h: Likewise.
48507         * lib/unictype/pr_not_a_character.h: Likewise.
48508         * lib/unictype/pr_numeric.h: Likewise.
48509         * lib/unictype/pr_other_alphabetic.h: Likewise.
48510         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48511         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48512         * lib/unictype/pr_other_id_continue.h: Likewise.
48513         * lib/unictype/pr_other_id_start.h: Likewise.
48514         * lib/unictype/pr_other_lowercase.h: Likewise.
48515         * lib/unictype/pr_other_math.h: Likewise.
48516         * lib/unictype/pr_other_uppercase.h: Likewise.
48517         * lib/unictype/pr_paired_punctuation.h: Likewise.
48518         * lib/unictype/pr_paragraph_separator.h: Likewise.
48519         * lib/unictype/pr_pattern_syntax.h: Likewise.
48520         * lib/unictype/pr_pattern_white_space.h: Likewise.
48521         * lib/unictype/pr_private_use.h: Likewise.
48522         * lib/unictype/pr_punctuation.h: Likewise.
48523         * lib/unictype/pr_quotation_mark.h: Likewise.
48524         * lib/unictype/pr_radical.h: Likewise.
48525         * lib/unictype/pr_sentence_terminal.h: Likewise.
48526         * lib/unictype/pr_soft_dotted.h: Likewise.
48527         * lib/unictype/pr_space.h: Likewise.
48528         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48529         * lib/unictype/pr_titlecase.h: Likewise.
48530         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48531         * lib/unictype/pr_unified_ideograph.h: Likewise.
48532         * lib/unictype/pr_uppercase.h: Likewise.
48533         * lib/unictype/pr_variation_selector.h: Likewise.
48534         * lib/unictype/pr_white_space.h: Likewise.
48535         * lib/unictype/pr_xid_continue.h: Likewise.
48536         * lib/unictype/pr_xid_start.h: Likewise.
48537         * lib/unictype/pr_zero_width.h: Likewise.
48538         * lib/unictype/scripts.h: Likewise.
48539         * lib/unictype/scripts_byname.gperf: Likewise.
48540         * lib/unictype/sy_c_ident.h: Likewise.
48541         * lib/unictype/sy_c_whitespace.h: Likewise.
48542         * lib/unictype/sy_java_ident.h: Likewise.
48543         * lib/unictype/sy_java_whitespace.h: Likewise.
48544
48545         * lib/unictype/Makefile: New file.
48546         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48547         glibc.
48548         * lib/unictype/3level.h: New file, copied from glibc.
48549         * lib/unictype/3levelbit.h: New file.
48550
48551 2007-11-11  Bruno Haible  <bruno@clisp.org>
48552
48553         * modules/gperf: New file.
48554         * modules/iconv_open (Depends-on): Add it.
48555         (Makefile.am): Remove the GPERF definition.
48556
48557 2007-11-11  Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48560         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48561
48562 2007-11-11  Bruno Haible  <bruno@clisp.org>
48563
48564         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48565         (usage): Remove function.
48566
48567 2007-11-11  Bruno Haible  <bruno@clisp.org>
48568
48569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48570         gl_FUNC_CEILF_LIBS.
48571         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48572         gl_FUNC_CEIL_LIBS.
48573         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48574         gl_FUNC_CEILL_LIBS.
48575         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48576         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48577         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48578
48579 2007-11-11  Bruno Haible  <bruno@clisp.org>
48580
48581         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48582         roundf were declared but do not exist on functions.
48583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48584         roundl were declared but do not exist on functions.
48585         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48586         HAVE_FLOORL_AND_CEILL, respectively.
48587         Needed for Sun C on Solaris 10.
48588
48589 2007-11-11  Bruno Haible  <bruno@clisp.org>
48590
48591         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48592         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48593         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48594         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48595         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48596         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48597         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48598         HAVE_DECL_ROUNDF.
48599         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48600         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48602         of HAVE_DECL_ROUND*.
48603         * modules/math (Makefile.am): Update.
48604
48605 2007-11-10  Bruno Haible  <bruno@clisp.org>
48606
48607         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48608         ptrdiff_t as m4/intl.m4.
48609
48610 2007-11-10  Jim Meyering  <meyering@redhat.com>
48611
48612         Avoid link failure for the argmatch test.
48613         * tests/test-argmatch.c (usage): Define function to avoid a link
48614         failure: argmatch_die requires a usage function.
48615
48616 2007-11-09  Bruno Haible  <bruno@clisp.org>
48617
48618         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48619         * doc/functions/vsnprintf.texi: Likewise.
48620         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48621         with a size argument < 2.
48622
48623 2007-11-09  Bruno Haible  <bruno@clisp.org>
48624
48625         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48626         buffer. Fixes an inefficiency introduced on 2007-11-03.
48627
48628 2007-11-09  Bruno Haible  <bruno@clisp.org>
48629
48630         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48631         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48632
48633 2007-11-08  Jim Meyering  <meyering@redhat.com>
48634
48635         Change cache variable name prefix "jm_" to "gl_" everywhere.
48636         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48637         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48638         * m4/uptime.m4: s/gl_/jm_/
48639
48640 2007-11-07  Bruno Haible  <bruno@clisp.org>
48641
48642         Update to GNU gettext 0.17.
48643         * m4/intl.m4: Update to GNU gettext 0.17.
48644         * m4/po.m4: Likewise.
48645         * modules/gettext (Files): Remove m4/ulonglong.m4.
48646         (configure.ac): Require gettext infrastructure from version 0.17.
48647
48648 2007-11-06  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48651         symbolic values are not defined in a public header.
48652         * lib/freadable.c (freadable) [QNX]: Likewise.
48653         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48654         * lib/freading.c (freading) [QNX]: Likewise.
48655         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48656         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48657         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48658         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48659         Reported by Alain Magloire.
48660
48661         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48662
48663 2007-11-05  Bruno Haible  <bruno@clisp.org>
48664
48665         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48666         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48667         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48668         Reported by Eric Blake.
48669
48670 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48671             Bruno Haible  <bruno@clisp.org>
48672
48673         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48674         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48675         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48676         (malloc): Undefine also before including <stdlib.h>.
48677         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48678         Needed on OSF/1 4.0.
48679
48680 2007-11-05  Jim Meyering  <meyering@redhat.com>
48681
48682         git-version-gen: sync from coreutils.
48683         * build-aux/git-version-gen: Add comments.
48684         Change the first '-' to '.' in the snapshot version string,
48685         e.g., 6.9-377-08144 -> 6.9.377-08144
48686         Remove first parameter.
48687         Don't declare a version "-dirty" merely because a time
48688         stamp has changed.
48689
48690 2007-11-04  Bruno Haible  <bruno@clisp.org>
48691
48692         * lib/lock.h: Protect all macro definitions containing an 'if'
48693         statement through a "do { ... } while (0)".
48694         * lib/tls.h: Likewise.
48695
48696 2007-11-04  Bruno Haible  <bruno@clisp.org>
48697
48698         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48699
48700 2007-11-04  Bruno Haible  <bruno@clisp.org>
48701
48702         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48703         * modules/fprintf-posix (Depends-on): Add nocrash.
48704         * modules/snprintf-posix (Depends-on): Likewise.
48705         * modules/sprintf-posix (Depends-on): Likewise.
48706         * modules/vasnprintf-posix (Depends-on): Likewise.
48707         * modules/vasprintf-posix (Depends-on): Likewise.
48708         * modules/vfprintf-posix (Depends-on): Likewise.
48709         * modules/vsnprintf-posix (Depends-on): Likewise.
48710         * modules/vsprintf-posix (Depends-on): Likewise.
48711         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48712         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48713         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48714         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48715         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48716         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48717         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48718
48719 2007-11-04  Bruno Haible  <bruno@clisp.org>
48720
48721         * modules/nocrash: New file.
48722         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48723         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48724
48725 2007-11-04  Bruno Haible  <bruno@clisp.org>
48726
48727         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48728         precision handling.
48729         * tests/test-vasprintf-posix.c (test_function): Likewise.
48730         * tests/test-snprintf-posix.h (test_function): Likewise.
48731         * tests/test-sprintf-posix.h (test_function): Likewise.
48732
48733         Fix *printf behaviour for large precisions on mingw and BeOS.
48734         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48735         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48736         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48737         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48738         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48739         gl_PRINTF_PRECISION and test its result. Invoke
48740         gl_PREREQ_VASNPRINTF_PRECISION.
48741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48745         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48748         * doc/functions/fprintf.texi: Update.
48749         * doc/functions/printf.texi: Update.
48750         * doc/functions/snprintf.texi: Update.
48751         * doc/functions/sprintf.texi: Update.
48752         * doc/functions/vfprintf.texi: Update.
48753         * doc/functions/vprintf.texi: Update.
48754         * doc/functions/vsnprintf.texi: Update.
48755         * doc/functions/vsprintf.texi: Update.
48756
48757 2007-11-04  Bruno Haible  <bruno@clisp.org>
48758
48759         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48760
48761 2007-11-04  Bruno Haible  <bruno@clisp.org>
48762
48763         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48764         Reported by Sylvain Beucler <beuc@gnu.org>.
48765
48766 2007-11-03  Bruno Haible  <bruno@clisp.org>
48767
48768         * tests/test-fprintf-posix2.sh: New file.
48769         * tests/test-fprintf-posix2.c: New file.
48770         * modules/fprintf-posix-tests (Files): Add them.
48771         (TESTS): Add test-fprintf-posix2.sh.
48772         (configure.ac): Check for getrlimit and setrlimit.
48773         (check_PROGRAMS): Add test-fprintf-posix2.
48774
48775         * tests/test-printf-posix2.sh: New file.
48776         * tests/test-printf-posix2.c: New file.
48777         * modules/printf-posix-tests (Files): Add them.
48778         (TESTS): Add test-printf-posix2.sh.
48779         (configure.ac): Check for getrlimit and setrlimit.
48780         (check_PROGRAMS): Add test-printf-posix2.
48781
48782         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48783         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48784         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48785         (decode_double): New function, copied from decode_long_double.
48786         (scale10_round_decimal_decoded): New function, extracted from
48787         scale10_round_decimal_long_double.
48788         (scale10_round_decimal_long_double): Use it.
48789         (scale10_round_decimal_double): New function.
48790         (floorlog10): New function.
48791         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48793         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48795         gl_PRINTF_ENOMEM and test its result. Invoke
48796         gl_PREREQ_VASNPRINTF_ENOMEM.
48797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48804         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48805         * modules/snprintf-posix (Depends-on): Likewise.
48806         * modules/sprintf-posix (Depends-on): Likewise.
48807         * modules/vasnprintf-posix (Depends-on): Likewise.
48808         * modules/vasprintf-posix (Depends-on): Likewise.
48809         * modules/vfprintf-posix (Depends-on): Likewise.
48810         * modules/vsnprintf-posix (Depends-on): Likewise.
48811         * modules/vsprintf-posix (Depends-on): Likewise.
48812         * doc/functions/fprintf.texi: Update.
48813         * doc/functions/printf.texi: Update.
48814         * doc/functions/snprintf.texi: Update.
48815         * doc/functions/sprintf.texi: Update.
48816         * doc/functions/vfprintf.texi: Update.
48817         * doc/functions/vprintf.texi: Update.
48818         * doc/functions/vsnprintf.texi: Update.
48819         * doc/functions/vsprintf.texi: Update.
48820
48821 2007-11-03  Bruno Haible  <bruno@clisp.org>
48822
48823         * modules/frexp-nolibm-tests: New file.
48824
48825         * modules/frexp-nolibm: New file.
48826         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48827
48828 2007-11-03  Bruno Haible  <bruno@clisp.org>
48829
48830         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48831         value is C99 compliant.
48832         Needed for OSF/1 5.1.
48833
48834 2007-11-03  Bruno Haible  <bruno@clisp.org>
48835
48836         Fix out-of-memory handling of vasnprintf.
48837         * lib/printf-parse.c: Include <errno.h>.
48838         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48839         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48840         is already set.
48841
48842 2007-11-02  Eric Blake  <ebb9@byu.net>
48843
48844         Fix tests on cygwin.
48845         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48846
48847 2007-11-01  Bruno Haible  <bruno@clisp.org>
48848
48849         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48850         warning.
48851         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48852         needed for POSIX compatibility.
48853
48854 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48855
48856         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48857         for compatibility with GNU.
48858
48859 2007-11-01  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48862         (putenv): Renamed from rpl_putenv. Change argument type from
48863         'const char *' to 'char *'.
48864         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48865         of defining putenv in config.h, just set REPLACE_PUTENV.
48866         * modules/putenv (Depends-on): Add stdlib.
48867         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48868         (Include): Use <stdlib.h>.
48869         * lib/stdlib.in.h (putenv): New declaration.
48870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48871         REPLACE_PUTENV.
48872         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48873         REPLACE_PUTENV.
48874         Needed for MacOS X 10.5.0.
48875         Reported by Peter O'Gorman <peter@pogma.com>.
48876
48877 2007-11-01  Jim Meyering  <meyering@redhat.com>
48878
48879         Treat an empty date string exactly like "0".
48880         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48881         if the remaining date string (to be parsed) is empty, use "0".
48882         Reported by Mischa Molhoek and discussed in this thread:
48883         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48884
48885 2007-10-31  Bruno Haible  <bruno@clisp.org>
48886
48887         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48888         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48889         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48890         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48891         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48892         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48893
48894 2007-10-31  Bruno Haible  <bruno@clisp.org>
48895
48896         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48897         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48898         (AC_TYPE_LONG_LONG_INT): Use it.
48899         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48900         it as well.
48901         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48902         to m4/longlong.m4.
48903         * modules/stdint (Files): Remove m4/ulonglong.m4.
48904         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48905         m4/ulonglong.m4.
48906         * modules/strtoumax (Files): Likewise.
48907
48908 2007-10-30  Bruno Haible  <bruno@clisp.org>
48909
48910         * modules/xvasprintf-posix: New file.
48911         Suggested by Eric Blake.
48912
48913 2007-10-30  Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/xprintf-posix-tests: New file.
48916         * tests/test-xprintf-posix.sh: New file.
48917         * tests/test-xprintf-posix.c: New file.
48918         * tests/test-xfprintf-posix.c: New file.
48919
48920         * modules/xprintf-posix: New file.
48921
48922 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48923
48924         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48925         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48926         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48927
48928 2007-10-29  Bruno Haible  <bruno@clisp.org>
48929
48930         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48931         contain the special marker '_cv_'.
48932         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48933         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48934         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48935         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48936         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48937         Reported by Ralf Wildenhues.
48938
48939 2007-10-29  Bruno Haible  <bruno@clisp.org>
48940
48941         * gnulib-tool (func_import): When --lgpl is not specified, set
48942         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48943         GPLv3.
48944         Reported by Simon Josefsson.
48945
48946 2007-10-28  Bruno Haible  <bruno@clisp.org>
48947
48948         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48949         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48950         HAVE_DECL_ISFINITE.
48951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48952         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48953         HAVE_DECL_ISFINITE.
48954
48955 2007-10-28  Bruno Haible  <bruno@clisp.org>
48956
48957         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48958         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48959
48960 2007-10-28  Bruno Haible  <bruno@clisp.org>
48961
48962         Fix link errors with Sun C 5.0 on Solaris 10.
48963         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48964         function is declared but not present in the compiler's libm.
48965         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48966         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48967         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48968         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48969         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48970         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48971         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48973         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48974         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48975         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48976         HAVE_DECL_FLOORL.
48977
48978 2007-10-28  Bruno Haible  <bruno@clisp.org>
48979
48980         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48981         gl_FUNC_FLOORL. Cache the result.
48982         (gl_FUNC_FLOORL): Use it.
48983         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48984         gl_FUNC_CEILL. Cache the result.
48985         (gl_FUNC_CEILL): Use it.
48986
48987         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48988         gl_FUNC_FLOOR. Cache the result.
48989         (gl_FUNC_FLOOR): Use it.
48990         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48991         gl_FUNC_CEIL. Cache the result.
48992         (gl_FUNC_CEIL): Use it.
48993
48994         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48995         gl_FUNC_FLOORF. Cache the result.
48996         (gl_FUNC_FLOORF): Use it.
48997         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48998         gl_FUNC_CEILF. Cache the result.
48999         (gl_FUNC_CEILF): Use it.
49000
49001 2007-10-28  Bruno Haible  <bruno@clisp.org>
49002
49003         * gnulib-tool: Allow specifying the LGPL version number through
49004         --lgpl=2 or --lgpl=3.
49005         (func_usage): Document --lgpl with argument.
49006         Handle --lgpl=... arguments.
49007         (func_import): Recognize also gl_LGPL calls with an argument. When
49008         --lgpl=2 is used and the module's license is just LGPL, report an
49009         error. Set sed_transform_lib_file according to the lgpl variable. In
49010         the generated files, use --lgpl or gl_LGPL invocations with argument,
49011         if necessary.
49012         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49013         an LGPv2+ license.
49014         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49015         gl_LGPL macro.
49016
49017 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49018             Bruno Haible  <bruno@clisp.org>
49019
49020         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49021         (u16_uctomb_aux): Likewise.
49022         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49023         !HAVE_INLINE.
49024         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49025
49026 2007-10-28  Bruno Haible  <bruno@clisp.org>
49027
49028         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49029         Invoke AM_GETTEXT_OPTION if it exists.
49030         * modules/vasprintf: Likewise.
49031         * modules/verror: Likewise.
49032         * modules/xprintf: Likewise.
49033         * modules/xvasprintf: Likewise.
49034
49035 2007-10-27  Ben Pfaff  <blp@gnu.org>
49036
49037         * lib/math.in.h: Define isfinite macro and prototypes for
49038         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49039         implementations.
49040         * m4/math_h.m4: New substitutions for isfinite module.
49041         * lib/isfinite.c: New file.
49042         * m4/isfinite.m4: New file.
49043         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49044         * modules/isfinite: New file.
49045         * modules/isfinite-tests: New file.
49046         * tests/tests-isfinite.c: New file.
49047         * doc/functions/isfinite.texi: Mention isfinite module.
49048         * MODULES.html.sh: Mention new module.
49049
49050 2007-10-27  Ben Pfaff  <blp@gnu.org>
49051
49052         Ralf Wildenhues reported that Tru64 4.0D declares the round
49053         functions but does not have definitions.
49054         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49055         cannot be found in any library, set the output variable to
49056         "missing" instead of "".
49057         * m4/round.m4: Also use our substitute if we cannot find round in
49058         any library, even if it is declared.
49059         * m4/roundf.m4: Likewise for roundf.
49060         * m4/roundl.m4: Likewise for roundl.
49061         * lib/math.in.h: Undefine roundf, round, roundl before defining
49062         their replacements, to allow for hypothetical systems where these
49063         may be defined as macros but not available in libraries.
49064
49065 2007-10-27  Bruno Haible  <bruno@clisp.org>
49066
49067         * doc/gnulib.texi: Invoke @firstparagraphindent.
49068         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49069         changes in gnulib.
49070         (Source changes): New section.
49071
49072 2007-10-26  Bruno Haible  <bruno@clisp.org>
49073
49074         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49075         borrowed from autoconf.
49076
49077 2007-10-26  Bruno Haible  <bruno@clisp.org>
49078
49079         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49080         strerror returned the empty string. Needed on HP-UX 11.00.
49081
49082 2007-10-24  Micah Cowan  <micah@cowan.name>
49083
49084         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49085         * build-aux/bootstrap: Remove support for now-unnecessary option,
49086         --cvs-user, and envvars CVS_USER, CVS_RSH.
49087
49088 2007-10-24  Jim Meyering  <meyering@redhat.com>
49089
49090         Avoid diagnostics from sha1sum when there is no cached checksum.
49091         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49092         if the po.s1 file hasn't been created yet.
49093
49094         * build-aux/bootstrap: Sync from coreutils:
49095         2007-10-24  Jim Meyering  <meyering@redhat.com>
49096         Get gnulib from the git repository, not from an obsolete cvs one.
49097         * build-aux/bootstrap: Suggestion from Micah Cowan.
49098         2007-10-04  Jim Meyering  <jim@meyering.net>
49099         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49100         (update_po_files): Work also when there are no .po files in po/.
49101
49102 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49103
49104         * README: Append ".git" to git and cg examples.
49105         Problem reported by Benoit Sigoure.
49106
49107 2007-10-23  Micah Cowan  <micah@cowan.name>
49108
49109         * users.txt: Add wget.
49110
49111 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49112
49113         Fix linking of some unistdio tests on FreeBSD.
49114         * modules/unistdio/u16-vsnprintf-tests
49115         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49116         * modules/unistdio/u16-vsprintf-tests
49117         (test_u16_vsnprintf1_LDADD): Likewise.
49118         * modules/unistdio/u32-vsnprintf-tests
49119         (test_u32_vsnprintf1_LDADD): Likewise.
49120         * modules/unistdio/u32-vsprintf-tests
49121         (test_u32_vsprintf1_LDADD): Likewise.
49122         * modules/unistdio/u8-vsnprintf-tests
49123         (test_u8_vsnprintf1_LDADD): Likewise.
49124         * modules/unistdio/u8-vsprintf-tests
49125         (test_u8_vsprintf1_LDADD): Likewise.
49126         * modules/unistdio/ulc-vsnprintf-tests
49127         (test_ulc_vsnprintf1_LDADD): Likewise.
49128         * modules/unistdio/ulc-vsprintf-tests
49129         (test_ulc_vsprintf1_LDADD): Likewise.
49130
49131         Fix linking of some uniconv tests on FreeBSD.
49132         * modules/uniconv/u16-conv-from-enc-tests
49133         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49134         * modules/uniconv/u16-conv-to-enc-tests
49135         (test_u16_conv_to_enc_LDADD): Likewise.
49136         * modules/uniconv/u16-strconv-from-enc-tests
49137         (test_u16_strconv_from_enc_LDADD): Likewise.
49138         * modules/uniconv/u16-strconv-to-enc-tests
49139         (test_u16_strconv_to_enc_LDADD): Likewise.
49140         * modules/uniconv/u32-conv-from-enc-tests
49141         (test_u32_conv_from_enc_LDADD): Likewise.
49142         * modules/uniconv/u32-conv-to-enc-tests
49143         (test_u32_conv_to_enc_LDADD): Likewise.
49144         * modules/uniconv/u32-strconv-from-enc-tests
49145         (test_u32_strconv_from_enc_LDADD): Likewise.
49146         * modules/uniconv/u32-strconv-to-enc-tests
49147         (test_u32_strconv_to_enc_LDADD): Likewise.
49148         * modules/uniconv/u8-conv-from-enc-tests
49149         (test_u8_conv_from_enc_LDADD): Likewise.
49150         * modules/uniconv/u8-conv-to-enc-tests
49151         (test_u8_conv_to_enc_LDADD): Likewise.
49152         * modules/uniconv/u8-strconv-from-enc-tests
49153         (test_u8_strconv_from_enc_LDADD): Likewise.
49154         * modules/uniconv/u8-strconv-to-enc-tests
49155         (test_u8_strconv_to_enc_LDADD): Likewise.
49156
49157 2007-10-22  Bruno Haible  <bruno@clisp.org>
49158
49159         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49160         size.
49161
49162 2007-10-22  Eric Blake  <ebb9@byu.net>
49163
49164         Tweak x*printf documentation.
49165         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49166         variable name and comments.
49167         Suggested by Bruno Haible.
49168
49169 2007-10-22  Bruno Haible  <bruno@clisp.org>
49170
49171         * lib/acl.c (copy_acl): Fix file name in comment.
49172
49173 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         Fix Tru64 problem with stdbool.h.
49176         * lib/stdbool.in.h (false, true):
49177         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49178         Don't declare as an enum in this situation; it runs afoul of Tru64.
49179         Problem reported by Steven M. Schweda in
49180         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49181
49182 2007-10-22  Eric Blake  <ebb9@byu.net>
49183
49184         Also wrap vf?printf.
49185         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49186         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49187         (xvprintf, xvfprintf): New functions.
49188
49189 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49190
49191         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49192         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49193
49194         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49195         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49196
49197 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49198
49199         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49200         by Bruno Haible.
49201
49202 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49203
49204         * lib/getloadavg.c
49205         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49206         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49207
49208         * tests/test-i-ring.c: Work for C89.
49209
49210 2007-10-22  Bruno Haible  <bruno@clisp.org>
49211
49212         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49213         -1u, in preprocessor expression, so that we don't test for the bug
49214         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49216
49217 2007-10-22  Eric Blake  <ebb9@byu.net>
49218
49219         * tests/test-yesno.sh: Silence stderr during test.
49220
49221 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49222
49223         * modules/crypto/gc-camellia: New file.
49224
49225         * m4/gc-camellia.m4: New file.
49226
49227         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49228
49229         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49230
49231 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49232
49233         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49234         --help to stdout.  Reported by sms@antinode.org (Steven
49235         M. Schweda).
49236
49237 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49238
49239         * users.txt: Fix link to libksba.
49240
49241 2007-10-21  Ben Pfaff  <blp@gnu.org>
49242
49243         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49244         round.c roundf implementation that depends on floorf and ceilf to
49245         be tested unconditionally.
49246
49247 2007-10-21  Ben Pfaff  <blp@gnu.org>
49248
49249         * m4/check-libm-func.m4: Removed.
49250         * m4/check-math-lib.m4: New file.
49251         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49252         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49253         definition and lack of AC_LIBOBJ([roundf]).
49254         * m4/roundl.m4: Ditto, and similarly for roundl.
49255         * modules/round: Reference new m4 file.
49256         * modules/roundf: Ditto.
49257         * modules/roundl: Ditto.
49258         * tests/test-round2.c (main): Use ROUND instead of round.
49259         Bug report from Bruno Haible.
49260
49261 2007-10-21  Bruno Haible  <bruno@clisp.org>
49262
49263         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49264         context.
49265
49266 2007-10-21  Bruno Haible  <bruno@clisp.org>
49267
49268         * tests/test-wcwidth.c (main): Allow negative result for some control
49269         characters.
49270
49271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49272         Needed on OSF/1 5.1.
49273
49274 2007-10-21  Bruno Haible  <bruno@clisp.org>
49275
49276         * tests/test-floorf1.c: Include isnanf.h.
49277         (main): Use isnanf() instead of isnan().
49278         * tests/test-ceilf1.c: Include isnanf.h.
49279         (main): Use isnanf() instead of isnan().
49280         * tests/test-truncf1.c: Include isnanf.h.
49281         (main): Use isnanf() instead of isnan().
49282         * tests/test-roundf1.c: Include isnanf.h.
49283         (main): Use isnanf() instead of isnan().
49284
49285 2007-10-21  Eric Blake  <ebb9@byu.net>
49286
49287         * users.txt: Update URL for m4.
49288
49289 2007-10-21  Bruno Haible  <bruno@clisp.org>
49290
49291         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49292
49293 2007-10-21  Bruno Haible  <bruno@clisp.org>
49294
49295         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49296         Git's management files if the CVS files are not present.
49297
49298 2007-10-20  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49301         gcc-3.4.x.
49302
49303 2007-10-20  Ben Pfaff  <blp@gnu.org>
49304
49305         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49306         implementations.
49307         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49308         * lib/round.c: New file.
49309         * lib/roundf.c: New file.
49310         * lib/roundl.c: New file.
49311         * m4/round.m4: New file.
49312         * m4/roundf.m4: New file.
49313         * m4/roundl.m4: New file.
49314         * m4/check-libm-func-m4: New file.
49315         * modules/math: Replace round, roundf, roundl related @VARS@ in
49316         math.in.h.
49317         * modules/round: New file.
49318         * modules/round-tests: New file.
49319         * modules/roundf: New file.
49320         * modules/roundf-tests: New file.
49321         * modules/roundl: New file.
49322         * modules/roundl-tests: New file.
49323         * tests/test-round1.c: New file.
49324         * tests/test-round2.c: New file.
49325         * tests/test-roundf1.c: New file.
49326         * tests/test-roundf2.c: New file.
49327         * tests/test-roundl.c: New file.
49328         * doc/functions/round.texi: Mention round module.
49329         * doc/functions/roundf.texi: Mention roundf module.
49330         * doc/functions/roundl.texi: Mention roundl module.
49331         * MODULES.html.sh: Mention new modules.
49332         Thanks to Bruno Haible for suggestions.
49333
49334 2007-10-20  Jim Meyering  <meyering@redhat.com>
49335
49336         * lib/xprintf.c: Include <config.h> unconditionally.
49337
49338         Change xprintf's license to GPL.
49339         * modules/xprintf (License): s/LGPL/GPL/, since this module
49340         depends on modules (exit and exitfail) which are GPL.
49341         Suggestion from Bruno Haible.
49342
49343         xprintf fixes.
49344         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49345         Use a clearer diagnostic.
49346         Patch from Bruno Haible.
49347
49348 2007-10-20  Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49351         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49353
49354 2007-10-20  Bruno Haible  <bruno@clisp.org>
49355
49356         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49357         precision in the comparison result > x - 1 or similar.
49358         * tests/test-ceilf2.c (correct_result_p): Likewise.
49359         * tests/test-truncf2.c (correct_result_p): Likewise.
49360         * tests/test-trunc2.c (correct_result_p): Likewise.
49361         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49362
49363 2007-10-20  Bruno Haible  <bruno@clisp.org>
49364
49365         * modules/ceil: New file.
49366         * m4/ceil.m4: New file.
49367         * doc/functions/ceil.texi: Mention the 'ceil' module.
49368
49369 2007-10-20  Bruno Haible  <bruno@clisp.org>
49370
49371         * modules/floor: New file.
49372         * m4/floor.m4: New file.
49373         * doc/functions/floor.texi: Mention the 'floor' module.
49374
49375 2007-10-20  Bruno Haible  <bruno@clisp.org>
49376
49377         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49378         of %a.
49379         * modules/floorf-tests (Depends-on): Likewise.
49380         * modules/truncf-tests (Depends-on): Likewise.
49381         * modules/trunc-tests (Depends-on): Likewise.
49382         Reported by Ben Pfaff.
49383
49384 2007-10-19  Jim Meyering  <meyering@redhat.com>
49385
49386         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49387         Don't bother testing specific errno values.  Just test ferror.
49388
49389         New module: xprintf
49390         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49391
49392 2007-10-19  Bruno Haible  <bruno@clisp.org>
49393
49394         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49395         syntax.
49396         * modules/javaexec (Makefile.am): Likewise.
49397         * modules/relocatable-prog (Makefile.am): Likewise.
49398         Suggested by Jim Meyering.
49399
49400 2007-10-18  Bruno Haible  <bruno@clisp.org>
49401
49402         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49403         Reported by Jim Meyering.
49404
49405 2007-10-18  Eric Blake  <ebb9@byu.net>
49406
49407         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49408
49409 2007-10-18  Bruno Haible  <bruno@clisp.org>
49410
49411         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49412         the format string into writable memory. Needed in Fortify conditions.
49413
49414 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49415             Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49418         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49419         * modules/trim (Depends-on): Add mbchar.
49420         (configure.ac): Add gl_FUNC_MBRTOWC.
49421         (Makefile.am): Augment lib_SOURCES.
49422
49423 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49424
49425         Modify glob.c to use fstatat and dirfd, to simplify it.
49426         Suggested by Eric Blake.
49427         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49428         Don't include <stdbool.h>; not used.
49429         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49430         (link_exists_p): Simplify implementation, since we can now assume
49431         dirfd and fstatat.
49432         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49433
49434 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49435
49436         * gnulib-tool (func_get_dependencies): Fix sed script to
49437         match only tests.
49438
49439 2007-10-17  Bruno Haible  <bruno@clisp.org>
49440
49441         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49442         allow locale names without encoding suffix.
49443         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49444         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49445
49446 2007-10-16  Bruno Haible  <bruno@clisp.org>
49447
49448         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49449         * lib/getgroups.c (getgroups): Likewise.
49450         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49451
49452 2007-10-16  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49455         * modules/malloc-posix (License): Likewise.
49456         * modules/realloc-posix (License): Likewise.
49457         * modules/calloc-posix (License): Likewise.
49458         * modules/intprops (License): Change from GPL to LGPL, with
49459         Paul Eggert's approval.
49460
49461 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49462
49463         Merge glibc changes into lib/glob.c.
49464
49465         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49466         2007-10-15 04:59:03 UTC.  Here are the changes:
49467
49468         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49469
49470         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49471
49472         * lib/glob.c: Add some branch prediction throughout.
49473
49474         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49475
49476         [BZ #5103]
49477         * lib/glob.c (glob): Recognize patterns starting \/.
49478
49479         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49480
49481         [BZ #3996]
49482         * lib/glob.c (attribute_hidden): Define if not defined.
49483         (glob): Unescape dirname, filename or username when needed and not
49484         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49485         is NULL.  Handle unescaped [ in pattern without closing ].
49486         Don't pass GLOB_CHECK down to recursive glob for directories.
49487         (__glob_pattern_type): New function.
49488         (__glob_pattern_p): Implement using __glob_pattern_type.
49489         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49490         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49491         Remove unreachable code.
49492
49493         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49494
49495         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49496         explain why there are no leaks.
49497
49498         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49499
49500         [BZ #3253]
49501         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49502         time, rather allocate increasingly bigger arrays of pointers, if
49503         possible with alloca, if too large with malloc.
49504
49505 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49506
49507         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49508         Problem reported by H.Merijn Brand in
49509         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49510         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49511         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49512
49513 2007-10-15  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49516         with explicit rpl_ prefix.
49517         * lib/fopen.c (fopen): Likewise.
49518         * lib/freopen.c (freopen): Likewise.
49519         * lib/iconv.c (iconv): Likewise.
49520         * lib/iconv_close.c (iconv_close): Likewise.
49521
49522 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49523
49524         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49525
49526 2007-10-15  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49529         <stddef.h> instead of <stdlib.h> since we only need NULL.
49530         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49531
49532 2007-10-15  Bruno Haible  <bruno@clisp.org>
49533
49534         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49535         Replace paragraph talking about LIBOBJS.
49536         Reported by Colin Watson <cjwatson@debian.org>.
49537
49538 2007-10-15  Bruno Haible  <bruno@clisp.org>
49539
49540         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49541         <stdlib.h> before using NULL.
49542
49543 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49544
49545         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49546         Reported by Albert Chin <china@thewrittenword.com>.
49547
49548 2007-10-14  Bruno Haible  <bruno@clisp.org>
49549
49550         * modules/iconv_open-utf-tests: New file.
49551         * tests/test-iconv-utf.c: New file.
49552
49553         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49554         * modules/iconv_open-utf: New file.
49555         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49556         (iconv, iconv_close): New declarations.
49557         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49558         be defined.
49559         (iconv_open): Add special handling of conversion between UTF-8 and
49560         UTF-{16,32}{BE,LE}.
49561         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49562         * lib/iconv_close.c: New file.
49563         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49564         gl_FUNC_ICONV_OPEN.
49565         (gl_FUNC_ICONV_OPEN): Use it.
49566         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49567         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49568         and REPLACE_ICONV_UTF.
49569         * modules/iconv_open (Depends-on): Add c-strcase.
49570         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49571         ICONV_CONST.
49572         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49573
49574 2007-10-13  Albert Chin  <china@thewrittenword.com>
49575             Bruno Haible  <bruno@clisp.org>
49576
49577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49578         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49579
49580 2007-10-13  Bruno Haible  <bruno@clisp.org>
49581
49582         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49583         defined, use the ISO C99 inline semantics.
49584         * lib/argp.h (ARGP_EI): Likewise.
49585
49586 2007-10-13  Bruno Haible  <bruno@clisp.org>
49587
49588         Handle 'inline' change in gcc 4.3.0.
49589         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49590         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49591         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49592         argp_fmtstream_point): Disable 'extern' declaration if the function
49593         definition is going to be provided inline.
49594         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49595         semantics, not the ISO C99 inline semantics.
49596         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49597         'extern' declaration if the function definition is going to be provided
49598         inline.
49599         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49600         the GNU C inline semantics, not the ISO C99 inline semantics. With
49601         GCC 4.2, avoid a warning.
49602
49603 2007-10-13  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/freading.h (freading): Enable the use of __freading for
49606         glibc >= 2.7.
49607         * lib/freading.c (freading): Likewise.
49608
49609 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49610
49611         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49612         "warning: C99 inline functions are not supported; using GNU89".
49613
49614 2007-10-12  Bruno Haible  <bruno@clisp.org>
49615
49616         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49617         of 2.
49618         * tests/test-ceilf2.c: New file.
49619         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49620
49621         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49622         * modules/ceilf-tests: Update.
49623
49624 2007-10-12  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49627         of 2.
49628         * tests/test-floorf2.c: New file.
49629         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49630
49631         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49632         * modules/floorf-tests: Update.
49633
49634 2007-10-12  Bruno Haible  <bruno@clisp.org>
49635
49636         * tests/test-trunc2.c: New file.
49637         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49638
49639         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49640         * modules/trunc-tests: Update.
49641
49642 2007-10-12  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49645         of 2.
49646         * tests/test-truncf2.c: New file.
49647         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49648
49649         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49650         * modules/truncf-tests: Update.
49651
49652 2007-10-11  Eric Blake  <ebb9@byu.net>
49653
49654         Don't claim strerror is broken on Interix.
49655         * doc/functions/strerror.texi (strerror): Known broken systems are
49656         now Solaris 8, and not Interix.
49657         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49658         Interix on cross-compile.
49659         Reported by Martin Koeppe in
49660         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49661
49662 2007-10-11  Bruno Haible  <bruno@clisp.org>
49663
49664         * modules/i-ring-tests: New file.
49665         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49666         instead of assert.
49667
49668 2007-10-11  Bruno Haible  <bruno@clisp.org>
49669
49670         * modules/filenamecat-tests: New file.
49671         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49672         * lib/filenamecat.c: Remove test code.
49673
49674 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49675
49676         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49677
49678         * lib/strerror.c: Include <string.h> always, to test interface,
49679         and to remove the need for the dummy.
49680         Include intprops.h to compute width instead of doing it ourselves
49681         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49682         (strerror): Define it to return NULL if there's no system strerror.
49683         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49684         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49685         ancient pre-strerror Unix systems well any more.  Saying "unknown
49686         system error" is enough.
49687         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49688         simpler strerror.c implementation.
49689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49690         Simplify the tests to reflect the simpler strerror implementation.
49691         * modules/strerror (Depends-on): Add intprops.
49692
49693 2007-10-09  Eric Blake  <ebb9@byu.net>
49694
49695         Silence test-fpending.
49696         * modules/fpending-tests (Files): Add wrapper script.
49697         * tests/test-fpending.sh: New file.
49698
49699 2007-10-09  Bruno Haible  <bruno@clisp.org>
49700
49701         * MODULES.html.sh (func_module): Don't create a hyperlink for
49702         function names like 'printf_frexp'.
49703         (Misc): Add crc, memxor.
49704         (Characteristics of floating types): New section.
49705         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49706         isnanf-nolibm, signbit, trunc, truncf, truncl.
49707         (Enhancements for ISO C 99 functions): New subsection Input/output.
49708         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49709         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49710         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49711         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49712         (Enhancements for POSIX:2001 functions): Add chdir-long.
49713         (File system functions): Add areadlink, chdir-safer, read-file.
49714         Remove cycle-check.
49715         (File system as inode set): New section.
49716         (Date and time): Add gethrxtime.
49717         (Multithreading): Add openmp.
49718         (Internationalization functions): Add localename.
49719         (Unicode string functions): Add unistr/u*-mbsnlen.
49720         (Support for maintaining and releasing projects): Add git-version-gen.
49721         (Lone files): Remove directories.
49722
49723 2007-10-08  Ben Pfaff  <blp@gnu.org>
49724
49725         * lib/xmalloca.h: Fix typo in comment.
49726
49727 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49728
49729         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49730         when avoiding problems with integer overflow.  Use a portable test
49731         instead.
49732
49733 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49734
49735         * modules/dummy (License): Change to LGPLv2+.
49736         * modules/float (License): Likewise
49737         * modules/realloc (License): Likewise
49738         * modules/stdlib (License): Likewise
49739
49740 2007-10-07  Bruno Haible  <bruno@clisp.org>
49741
49742         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49743         * floor.c (TWO_MANT_DIG): Likewise.
49744         * ceil.c (TWO_MANT_DIG): Likewise.
49745         Reported by Ben Pfaff.
49746
49747 2007-10-07  Bruno Haible  <bruno@clisp.org>
49748
49749         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49750         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49751         * lib/frexp.c (FUNC): Likewise.
49752         * lib/printf-frexp.h (printf_frexp): Likewise.
49753         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49754         * lib/printf-frexp.c (FUNC): Likewise.
49755         Suggested by Jim Meyering.
49756
49757 2007-10-07  Jim Meyering  <meyering@redhat.com>
49758
49759         Make xnanosleep's integer overflow test more robust.
49760         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49761         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49762
49763 2007-10-07  Bruno Haible  <bruno@clisp.org>
49764
49765         * NEWS: Mention the license change.
49766
49767         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49768         abbreviations in the modules files.
49769
49770         Change copyright notice from GPLv2+ to GPLv3+.
49771         * README: Change copyright notice.
49772         * MODULES.html.sh: Likewise.
49773         * build-aux/bootstrap.conf: Likewise.
49774         * build-aux/config.libpath: Likewise.
49775         * build-aux/csharpcomp.sh.in: Likewise.
49776         * build-aux/csharpexec.sh.in: Likewise.
49777         * build-aux/install-reloc: Likewise.
49778         * build-aux/javacomp.sh.in: Likewise.
49779         * build-aux/javaexec.sh.in: Likewise.
49780         * build-aux/ldd.sh.in: Likewise.
49781         * build-aux/reloc-ldflags: Likewise.
49782         * build-aux/relocatable.sh.in: Likewise.
49783         * build-aux/x-to-1.in: Likewise.
49784         * check-module: Likewise.
49785         * config/srclistvars.sh: Likewise.
49786         * gnulib-tool: Likewise.
49787         * lib/acl-internal.h: Likewise.
49788         * lib/acl.c: Likewise.
49789         * lib/acl.h: Likewise.
49790         * lib/acl_entries.c: Likewise.
49791         * lib/areadlink-with-size.c: Likewise.
49792         * lib/areadlink.c: Likewise.
49793         * lib/areadlink.h: Likewise.
49794         * lib/argmatch.c: Likewise.
49795         * lib/argmatch.h: Likewise.
49796         * lib/argp-ba.c: Likewise.
49797         * lib/argp-eexst.c: Likewise.
49798         * lib/argp-fmtstream.c: Likewise.
49799         * lib/argp-fmtstream.h: Likewise.
49800         * lib/argp-fs-xinl.c: Likewise.
49801         * lib/argp-help.c: Likewise.
49802         * lib/argp-namefrob.h: Likewise.
49803         * lib/argp-parse.c: Likewise.
49804         * lib/argp-pin.c: Likewise.
49805         * lib/argp-pv.c: Likewise.
49806         * lib/argp-pvh.c: Likewise.
49807         * lib/argp-xinl.c: Likewise.
49808         * lib/argp.h: Likewise.
49809         * lib/at-func.c: Likewise.
49810         * lib/atanl.c: Likewise.
49811         * lib/backupfile.c: Likewise.
49812         * lib/backupfile.h: Likewise.
49813         * lib/basename.c: Likewise.
49814         * lib/binary-io.h: Likewise.
49815         * lib/byteswap.in.h: Likewise.
49816         * lib/c-stack.c: Likewise.
49817         * lib/c-stack.h: Likewise.
49818         * lib/c-strcasestr.c: Likewise.
49819         * lib/c-strcasestr.h: Likewise.
49820         * lib/c-strstr.c: Likewise.
49821         * lib/c-strstr.h: Likewise.
49822         * lib/c-strtod.c: Likewise.
49823         * lib/calloc.c: Likewise.
49824         * lib/canon-host.c: Likewise.
49825         * lib/canon-host.h: Likewise.
49826         * lib/canonicalize-lgpl.c: Likewise.
49827         * lib/canonicalize.c: Likewise.
49828         * lib/canonicalize.h: Likewise.
49829         * lib/ceil.c: Likewise.
49830         * lib/ceilf.c: Likewise.
49831         * lib/ceill.c: Likewise.
49832         * lib/chdir-long.c: Likewise.
49833         * lib/chdir-long.h: Likewise.
49834         * lib/chdir-safer.c: Likewise.
49835         * lib/chdir-safer.h: Likewise.
49836         * lib/chown.c: Likewise.
49837         * lib/classpath.c: Likewise.
49838         * lib/classpath.h: Likewise.
49839         * lib/clean-temp.c: Likewise.
49840         * lib/clean-temp.h: Likewise.
49841         * lib/cloexec.c: Likewise.
49842         * lib/close-stream.c: Likewise.
49843         * lib/closein.c: Likewise.
49844         * lib/closein.h: Likewise.
49845         * lib/closeout.c: Likewise.
49846         * lib/closeout.h: Likewise.
49847         * lib/concat-filename.c: Likewise.
49848         * lib/copy-file.c: Likewise.
49849         * lib/copy-file.h: Likewise.
49850         * lib/count-one-bits.h: Likewise.
49851         * lib/crc.c: Likewise.
49852         * lib/crc.h: Likewise.
49853         * lib/creat-safer.c: Likewise.
49854         * lib/csharpcomp.c: Likewise.
49855         * lib/csharpcomp.h: Likewise.
49856         * lib/csharpexec.c: Likewise.
49857         * lib/csharpexec.h: Likewise.
49858         * lib/cycle-check.c: Likewise.
49859         * lib/cycle-check.h: Likewise.
49860         * lib/diacrit.c: Likewise.
49861         * lib/diacrit.h: Likewise.
49862         * lib/diffseq.h: Likewise.
49863         * lib/dirchownmod.c: Likewise.
49864         * lib/dirent.in.h: Likewise.
49865         * lib/dirfd.c: Likewise.
49866         * lib/dirfd.h: Likewise.
49867         * lib/dirname.c: Likewise.
49868         * lib/dirname.h: Likewise.
49869         * lib/dummy.c: Likewise.
49870         * lib/dup-safer.c: Likewise.
49871         * lib/dup2.c: Likewise.
49872         * lib/eealloc.h: Likewise.
49873         * lib/error.c: Likewise.
49874         * lib/error.h: Likewise.
49875         * lib/euidaccess.c: Likewise.
49876         * lib/exclude.c: Likewise.
49877         * lib/exclude.h: Likewise.
49878         * lib/execute.c: Likewise.
49879         * lib/execute.h: Likewise.
49880         * lib/exitfail.c: Likewise.
49881         * lib/exitfail.h: Likewise.
49882         * lib/expl.c: Likewise.
49883         * lib/fatal-signal.c: Likewise.
49884         * lib/fatal-signal.h: Likewise.
49885         * lib/fbufmode.c: Likewise.
49886         * lib/fbufmode.h: Likewise.
49887         * lib/fchdir.c: Likewise.
49888         * lib/fchmodat.c: Likewise.
49889         * lib/fchownat.c: Likewise.
49890         * lib/fcntl--.h: Likewise.
49891         * lib/fcntl-safer.h: Likewise.
49892         * lib/fcntl.in.h: Likewise.
49893         * lib/fd-safer.c: Likewise.
49894         * lib/fflush.c: Likewise.
49895         * lib/file-has-acl.c: Likewise.
49896         * lib/file-set.c: Likewise.
49897         * lib/file-type.c: Likewise.
49898         * lib/file-type.h: Likewise.
49899         * lib/fileblocks.c: Likewise.
49900         * lib/filemode.c: Likewise.
49901         * lib/filemode.h: Likewise.
49902         * lib/filename.h: Likewise.
49903         * lib/filenamecat.c: Likewise.
49904         * lib/filenamecat.h: Likewise.
49905         * lib/findprog.c: Likewise.
49906         * lib/findprog.h: Likewise.
49907         * lib/float.in.h: Likewise.
49908         * lib/floor.c: Likewise.
49909         * lib/floorf.c: Likewise.
49910         * lib/floorl.c: Likewise.
49911         * lib/fopen-safer.c: Likewise.
49912         * lib/fopen.c: Likewise.
49913         * lib/fpending.c: Likewise.
49914         * lib/fpending.h: Likewise.
49915         * lib/fprintf.c: Likewise.
49916         * lib/fprintftime.h: Likewise.
49917         * lib/fpucw.h: Likewise.
49918         * lib/fpurge.c: Likewise.
49919         * lib/fpurge.h: Likewise.
49920         * lib/freadable.c: Likewise.
49921         * lib/freadable.h: Likewise.
49922         * lib/freadahead.c: Likewise.
49923         * lib/freadahead.h: Likewise.
49924         * lib/freading.c: Likewise.
49925         * lib/freading.h: Likewise.
49926         * lib/free.c: Likewise.
49927         * lib/freopen.c: Likewise.
49928         * lib/frexp.c: Likewise.
49929         * lib/frexpl.c: Likewise.
49930         * lib/fseek.c: Likewise.
49931         * lib/fseterr.c: Likewise.
49932         * lib/fseterr.h: Likewise.
49933         * lib/fstatat.c: Likewise.
49934         * lib/fstrcmp.c: Likewise.
49935         * lib/fstrcmp.h: Likewise.
49936         * lib/fsusage.c: Likewise.
49937         * lib/fsusage.h: Likewise.
49938         * lib/ftell.c: Likewise.
49939         * lib/ftello.c: Likewise.
49940         * lib/fts-cycle.c: Likewise.
49941         * lib/fts.c: Likewise.
49942         * lib/fts_.h: Likewise.
49943         * lib/full-read.c: Likewise.
49944         * lib/full-read.h: Likewise.
49945         * lib/full-write.c: Likewise.
49946         * lib/full-write.h: Likewise.
49947         * lib/fwritable.c: Likewise.
49948         * lib/fwritable.h: Likewise.
49949         * lib/fwriteerror.c: Likewise.
49950         * lib/fwriteerror.h: Likewise.
49951         * lib/fwriting.c: Likewise.
49952         * lib/fwriting.h: Likewise.
49953         * lib/gcd.c: Likewise.
49954         * lib/gcd.h: Likewise.
49955         * lib/getcwd.c: Likewise.
49956         * lib/getdate.h: Likewise.
49957         * lib/getdate.y: Likewise.
49958         * lib/getdomainname.c: Likewise.
49959         * lib/getdomainname.h: Likewise.
49960         * lib/getgroups.c: Likewise.
49961         * lib/gethostname.c: Likewise.
49962         * lib/gethrxtime.c: Likewise.
49963         * lib/gethrxtime.h: Likewise.
49964         * lib/getloadavg.c: Likewise.
49965         * lib/getndelim2.c: Likewise.
49966         * lib/getndelim2.h: Likewise.
49967         * lib/getnline.c: Likewise.
49968         * lib/getnline.h: Likewise.
49969         * lib/getopt.c: Likewise.
49970         * lib/getopt.in.h: Likewise.
49971         * lib/getopt1.c: Likewise.
49972         * lib/getopt_int.h: Likewise.
49973         * lib/getpagesize.h: Likewise.
49974         * lib/getsubopt.c: Likewise.
49975         * lib/gettime.c: Likewise.
49976         * lib/getugroups.c: Likewise.
49977         * lib/getugroups.h: Likewise.
49978         * lib/getusershell.c: Likewise.
49979         * lib/gl_anyavltree_list1.h: Likewise.
49980         * lib/gl_anyavltree_list2.h: Likewise.
49981         * lib/gl_anyhash_list1.h: Likewise.
49982         * lib/gl_anyhash_list2.h: Likewise.
49983         * lib/gl_anylinked_list1.h: Likewise.
49984         * lib/gl_anylinked_list2.h: Likewise.
49985         * lib/gl_anyrbtree_list1.h: Likewise.
49986         * lib/gl_anyrbtree_list2.h: Likewise.
49987         * lib/gl_anytree_list1.h: Likewise.
49988         * lib/gl_anytree_list2.h: Likewise.
49989         * lib/gl_anytree_oset.h: Likewise.
49990         * lib/gl_anytreehash_list1.h: Likewise.
49991         * lib/gl_anytreehash_list2.h: Likewise.
49992         * lib/gl_array_list.c: Likewise.
49993         * lib/gl_array_list.h: Likewise.
49994         * lib/gl_array_oset.c: Likewise.
49995         * lib/gl_array_oset.h: Likewise.
49996         * lib/gl_avltree_list.c: Likewise.
49997         * lib/gl_avltree_list.h: Likewise.
49998         * lib/gl_avltree_oset.c: Likewise.
49999         * lib/gl_avltree_oset.h: Likewise.
50000         * lib/gl_avltreehash_list.c: Likewise.
50001         * lib/gl_avltreehash_list.h: Likewise.
50002         * lib/gl_carray_list.c: Likewise.
50003         * lib/gl_carray_list.h: Likewise.
50004         * lib/gl_linked_list.c: Likewise.
50005         * lib/gl_linked_list.h: Likewise.
50006         * lib/gl_linkedhash_list.c: Likewise.
50007         * lib/gl_linkedhash_list.h: Likewise.
50008         * lib/gl_list.c: Likewise.
50009         * lib/gl_list.h: Likewise.
50010         * lib/gl_oset.c: Likewise.
50011         * lib/gl_oset.h: Likewise.
50012         * lib/gl_rbtree_list.c: Likewise.
50013         * lib/gl_rbtree_list.h: Likewise.
50014         * lib/gl_rbtree_oset.c: Likewise.
50015         * lib/gl_rbtree_oset.h: Likewise.
50016         * lib/gl_rbtreehash_list.c: Likewise.
50017         * lib/gl_rbtreehash_list.h: Likewise.
50018         * lib/gl_sublist.c: Likewise.
50019         * lib/gl_sublist.h: Likewise.
50020         * lib/group-member.c: Likewise.
50021         * lib/group-member.h: Likewise.
50022         * lib/hard-locale.c: Likewise.
50023         * lib/hard-locale.h: Likewise.
50024         * lib/hash-pjw.c: Likewise.
50025         * lib/hash-pjw.h: Likewise.
50026         * lib/hash-triple.c: Likewise.
50027         * lib/hash.c: Likewise.
50028         * lib/hash.h: Likewise.
50029         * lib/human.c: Likewise.
50030         * lib/human.h: Likewise.
50031         * lib/i-ring.c: Likewise.
50032         * lib/i-ring.h: Likewise.
50033         * lib/idcache.c: Likewise.
50034         * lib/imaxabs.c: Likewise.
50035         * lib/imaxdiv.c: Likewise.
50036         * lib/inet_pton.c: Likewise.
50037         * lib/inet_pton.h: Likewise.
50038         * lib/intprops.h: Likewise.
50039         * lib/inttostr.c: Likewise.
50040         * lib/inttostr.h: Likewise.
50041         * lib/inttypes.in.h: Likewise.
50042         * lib/isapipe.c: Likewise.
50043         * lib/isdir.c: Likewise.
50044         * lib/isnan.c: Likewise.
50045         * lib/isnan.h: Likewise.
50046         * lib/isnanf.c: Likewise.
50047         * lib/isnanf.h: Likewise.
50048         * lib/isnanl-nolibm.h: Likewise.
50049         * lib/isnanl.c: Likewise.
50050         * lib/isnanl.h: Likewise.
50051         * lib/javacomp.c: Likewise.
50052         * lib/javacomp.h: Likewise.
50053         * lib/javaexec.c: Likewise.
50054         * lib/javaexec.h: Likewise.
50055         * lib/javaversion.c: Likewise.
50056         * lib/javaversion.h: Likewise.
50057         * lib/javaversion.java: Likewise.
50058         * lib/lbrkprop.h: Likewise.
50059         * lib/lchmod.h: Likewise.
50060         * lib/lchown.c: Likewise.
50061         * lib/ldexpl.c: Likewise.
50062         * lib/linebreak.c: Likewise.
50063         * lib/linebreak.h: Likewise.
50064         * lib/linebuffer.c: Likewise.
50065         * lib/linebuffer.h: Likewise.
50066         * lib/locale.in.h: Likewise.
50067         * lib/logl.c: Likewise.
50068         * lib/long-options.c: Likewise.
50069         * lib/long-options.h: Likewise.
50070         * lib/lstat.c: Likewise.
50071         * lib/lstat.h: Likewise.
50072         * lib/math.in.h: Likewise.
50073         * lib/mbchar.c: Likewise.
50074         * lib/mbchar.h: Likewise.
50075         * lib/mbfile.h: Likewise.
50076         * lib/mbiter.h: Likewise.
50077         * lib/mbscasecmp.c: Likewise.
50078         * lib/mbscasestr.c: Likewise.
50079         * lib/mbschr.c: Likewise.
50080         * lib/mbscspn.c: Likewise.
50081         * lib/mbslen.c: Likewise.
50082         * lib/mbsncasecmp.c: Likewise.
50083         * lib/mbsnlen.c: Likewise.
50084         * lib/mbspbrk.c: Likewise.
50085         * lib/mbspcasecmp.c: Likewise.
50086         * lib/mbsrchr.c: Likewise.
50087         * lib/mbssep.c: Likewise.
50088         * lib/mbsspn.c: Likewise.
50089         * lib/mbsstr.c: Likewise.
50090         * lib/mbstok_r.c: Likewise.
50091         * lib/mbswidth.c: Likewise.
50092         * lib/mbswidth.h: Likewise.
50093         * lib/mbuiter.h: Likewise.
50094         * lib/memcasecmp.c: Likewise.
50095         * lib/memcasecmp.h: Likewise.
50096         * lib/memchr.c: Likewise.
50097         * lib/memcmp.c: Likewise.
50098         * lib/memcoll.c: Likewise.
50099         * lib/memcoll.h: Likewise.
50100         * lib/memcpy.c: Likewise.
50101         * lib/memrchr.c: Likewise.
50102         * lib/mkancesdirs.c: Likewise.
50103         * lib/mkdir-p.c: Likewise.
50104         * lib/mkdir-p.h: Likewise.
50105         * lib/mkdir.c: Likewise.
50106         * lib/mkdirat.c: Likewise.
50107         * lib/mkdtemp.c: Likewise.
50108         * lib/mkstemp-safer.c: Likewise.
50109         * lib/mkstemp.c: Likewise.
50110         * lib/modechange.c: Likewise.
50111         * lib/modechange.h: Likewise.
50112         * lib/mountlist.c: Likewise.
50113         * lib/mountlist.h: Likewise.
50114         * lib/mpsort.c: Likewise.
50115         * lib/nanosleep.c: Likewise.
50116         * lib/obstack.c: Likewise.
50117         * lib/obstack.h: Likewise.
50118         * lib/open-safer.c: Likewise.
50119         * lib/open.c: Likewise.
50120         * lib/openat-die.c: Likewise.
50121         * lib/openat-priv.h: Likewise.
50122         * lib/openat-proc.c: Likewise.
50123         * lib/openat.c: Likewise.
50124         * lib/openat.h: Likewise.
50125         * lib/pagealign_alloc.c: Likewise.
50126         * lib/pagealign_alloc.h: Likewise.
50127         * lib/physmem.c: Likewise.
50128         * lib/physmem.h: Likewise.
50129         * lib/pipe-safer.c: Likewise.
50130         * lib/pipe.c: Likewise.
50131         * lib/pipe.h: Likewise.
50132         * lib/posixtm.c: Likewise.
50133         * lib/posixtm.h: Likewise.
50134         * lib/posixver.c: Likewise.
50135         * lib/printf-frexp.c: Likewise.
50136         * lib/printf-frexp.h: Likewise.
50137         * lib/printf-frexpl.c: Likewise.
50138         * lib/printf-frexpl.h: Likewise.
50139         * lib/printf.c: Likewise.
50140         * lib/progname.c: Likewise.
50141         * lib/progname.h: Likewise.
50142         * lib/progreloc.c: Likewise.
50143         * lib/putenv.c: Likewise.
50144         * lib/quote.c: Likewise.
50145         * lib/quote.h: Likewise.
50146         * lib/quotearg.c: Likewise.
50147         * lib/quotearg.h: Likewise.
50148         * lib/raise.c: Likewise.
50149         * lib/readline.c: Likewise.
50150         * lib/readline.h: Likewise.
50151         * lib/readlink.c: Likewise.
50152         * lib/readtokens.c: Likewise.
50153         * lib/readtokens.h: Likewise.
50154         * lib/readtokens0.c: Likewise.
50155         * lib/readtokens0.h: Likewise.
50156         * lib/readutmp.c: Likewise.
50157         * lib/readutmp.h: Likewise.
50158         * lib/realloc.c: Likewise.
50159         * lib/relocwrapper.c: Likewise.
50160         * lib/rename-dest-slash.c: Likewise.
50161         * lib/rename.c: Likewise.
50162         * lib/rmdir.c: Likewise.
50163         * lib/rpmatch.c: Likewise.
50164         * lib/safe-read.c: Likewise.
50165         * lib/safe-read.h: Likewise.
50166         * lib/safe-write.c: Likewise.
50167         * lib/safe-write.h: Likewise.
50168         * lib/same-inode.h: Likewise.
50169         * lib/same.c: Likewise.
50170         * lib/same.h: Likewise.
50171         * lib/save-cwd.c: Likewise.
50172         * lib/save-cwd.h: Likewise.
50173         * lib/savedir.c: Likewise.
50174         * lib/savedir.h: Likewise.
50175         * lib/savewd.c: Likewise.
50176         * lib/savewd.h: Likewise.
50177         * lib/search.in.h: Likewise.
50178         * lib/setenv.c: Likewise.
50179         * lib/setenv.h: Likewise.
50180         * lib/settime.c: Likewise.
50181         * lib/sh-quote.c: Likewise.
50182         * lib/sh-quote.h: Likewise.
50183         * lib/sig2str.c: Likewise.
50184         * lib/sig2str.h: Likewise.
50185         * lib/signal.in.h: Likewise.
50186         * lib/signbitd.c: Likewise.
50187         * lib/signbitf.c: Likewise.
50188         * lib/signbitl.c: Likewise.
50189         * lib/sigprocmask.c: Likewise.
50190         * lib/sincosl.c: Likewise.
50191         * lib/sleep.c: Likewise.
50192         * lib/sprintf.c: Likewise.
50193         * lib/sqrtl.c: Likewise.
50194         * lib/stat-time.h: Likewise.
50195         * lib/stdio--.h: Likewise.
50196         * lib/stdio-safer.h: Likewise.
50197         * lib/stdlib--.h: Likewise.
50198         * lib/stdlib-safer.h: Likewise.
50199         * lib/stdlib.in.h: Likewise.
50200         * lib/stpcpy.c: Likewise.
50201         * lib/stpncpy.c: Likewise.
50202         * lib/strchrnul.c: Likewise.
50203         * lib/strcspn.c: Likewise.
50204         * lib/strerror.c: Likewise.
50205         * lib/strftime.c: Likewise.
50206         * lib/strftime.h: Likewise.
50207         * lib/striconveh.c: Likewise.
50208         * lib/striconveh.h: Likewise.
50209         * lib/striconveha.c: Likewise.
50210         * lib/striconveha.h: Likewise.
50211         * lib/stripslash.c: Likewise.
50212         * lib/strnlen1.c: Likewise.
50213         * lib/strnlen1.h: Likewise.
50214         * lib/strtod.c: Likewise.
50215         * lib/strtoimax.c: Likewise.
50216         * lib/strtok_r.c: Likewise.
50217         * lib/strtol.c: Likewise.
50218         * lib/strtoll.c: Likewise.
50219         * lib/strtoul.c: Likewise.
50220         * lib/strtoull.c: Likewise.
50221         * lib/sysexits.in.h: Likewise.
50222         * lib/tempname.c: Likewise.
50223         * lib/tempname.h: Likewise.
50224         * lib/timespec.h: Likewise.
50225         * lib/tls.c: Likewise.
50226         * lib/tls.h: Likewise.
50227         * lib/tmpdir.c: Likewise.
50228         * lib/tmpdir.h: Likewise.
50229         * lib/tmpfile-safer.c: Likewise.
50230         * lib/tmpfile.c: Likewise.
50231         * lib/trigl.c: Likewise.
50232         * lib/trigl.h: Likewise.
50233         * lib/trim.c: Likewise.
50234         * lib/trim.h: Likewise.
50235         * lib/trunc.c: Likewise.
50236         * lib/truncf.c: Likewise.
50237         * lib/truncl.c: Likewise.
50238         * lib/tsearch.c: Likewise.
50239         * lib/unicodeio.c: Likewise.
50240         * lib/unicodeio.h: Likewise.
50241         * lib/unistd--.h: Likewise.
50242         * lib/unistd-safer.h: Likewise.
50243         * lib/unistdio/ulc-fprintf.c: Likewise.
50244         * lib/unistdio/ulc-vfprintf.c: Likewise.
50245         * lib/unlinkdir.c: Likewise.
50246         * lib/unlinkdir.h: Likewise.
50247         * lib/unlocked-io.h: Likewise.
50248         * lib/unsetenv.c: Likewise.
50249         * lib/userspec.c: Likewise.
50250         * lib/utime.c: Likewise.
50251         * lib/utimecmp.c: Likewise.
50252         * lib/utimecmp.h: Likewise.
50253         * lib/utimens.c: Likewise.
50254         * lib/verify.h: Likewise.
50255         * lib/verror.c: Likewise.
50256         * lib/verror.h: Likewise.
50257         * lib/version-etc-fsf.c: Likewise.
50258         * lib/version-etc.c: Likewise.
50259         * lib/version-etc.h: Likewise.
50260         * lib/vfprintf.c: Likewise.
50261         * lib/vprintf.c: Likewise.
50262         * lib/vsprintf.c: Likewise.
50263         * lib/w32spawn.h: Likewise.
50264         * lib/wait-process.c: Likewise.
50265         * lib/wait-process.h: Likewise.
50266         * lib/wcwidth.c: Likewise.
50267         * lib/write-any-file.c: Likewise.
50268         * lib/xalloc-die.c: Likewise.
50269         * lib/xalloc.h: Likewise.
50270         * lib/xasprintf.c: Likewise.
50271         * lib/xgetcwd.c: Likewise.
50272         * lib/xgetcwd.h: Likewise.
50273         * lib/xgetdomainname.c: Likewise.
50274         * lib/xgetdomainname.h: Likewise.
50275         * lib/xgethostname.c: Likewise.
50276         * lib/xmalloc.c: Likewise.
50277         * lib/xmalloca.c: Likewise.
50278         * lib/xmalloca.h: Likewise.
50279         * lib/xmemcoll.c: Likewise.
50280         * lib/xnanosleep.c: Likewise.
50281         * lib/xreadlink.c: Likewise.
50282         * lib/xreadlink.h: Likewise.
50283         * lib/xsetenv.c: Likewise.
50284         * lib/xsetenv.h: Likewise.
50285         * lib/xstriconv.c: Likewise.
50286         * lib/xstriconv.h: Likewise.
50287         * lib/xstrndup.c: Likewise.
50288         * lib/xstrndup.h: Likewise.
50289         * lib/xstrtod.c: Likewise.
50290         * lib/xstrtod.h: Likewise.
50291         * lib/xstrtol-error.c: Likewise.
50292         * lib/xstrtol.c: Likewise.
50293         * lib/xstrtol.h: Likewise.
50294         * lib/xtime.h: Likewise.
50295         * lib/xvasprintf.c: Likewise.
50296         * lib/xvasprintf.h: Likewise.
50297         * lib/yesno.c: Likewise.
50298         * lib/yesno.h: Likewise.
50299         * posix-modules: Likewise.
50300         * tests/test-alloca-opt.c: Likewise.
50301         * tests/test-arcfour.c: Likewise.
50302         * tests/test-arctwo.c: Likewise.
50303         * tests/test-argmatch.c: Likewise.
50304         * tests/test-argp-2.sh: Likewise.
50305         * tests/test-argp.c: Likewise.
50306         * tests/test-arpa_inet.c: Likewise.
50307         * tests/test-array_list.c: Likewise.
50308         * tests/test-array_oset.c: Likewise.
50309         * tests/test-atexit.c: Likewise.
50310         * tests/test-avltree_list.c: Likewise.
50311         * tests/test-avltree_oset.c: Likewise.
50312         * tests/test-avltreehash_list.c: Likewise.
50313         * tests/test-base64.c: Likewise.
50314         * tests/test-binary-io.c: Likewise.
50315         * tests/test-byteswap.c: Likewise.
50316         * tests/test-c-ctype.c: Likewise.
50317         * tests/test-c-strcasecmp.c: Likewise.
50318         * tests/test-c-strcasestr.c: Likewise.
50319         * tests/test-c-strncasecmp.c: Likewise.
50320         * tests/test-c-strstr.c: Likewise.
50321         * tests/test-canonicalize-lgpl.c: Likewise.
50322         * tests/test-canonicalize.c: Likewise.
50323         * tests/test-carray_list.c: Likewise.
50324         * tests/test-ceilf.c: Likewise.
50325         * tests/test-ceill.c: Likewise.
50326         * tests/test-count-one-bits.c: Likewise.
50327         * tests/test-crc.c: Likewise.
50328         * tests/test-dirname.c: Likewise.
50329         * tests/test-fbufmode.c: Likewise.
50330         * tests/test-fcntl.c: Likewise.
50331         * tests/test-fflush.c: Likewise.
50332         * tests/test-floorf.c: Likewise.
50333         * tests/test-floorl.c: Likewise.
50334         * tests/test-fopen.c: Likewise.
50335         * tests/test-fprintf-posix.c: Likewise.
50336         * tests/test-fprintf-posix.h: Likewise.
50337         * tests/test-fpurge.c: Likewise.
50338         * tests/test-freadable.c: Likewise.
50339         * tests/test-freadahead.c: Likewise.
50340         * tests/test-freading.c: Likewise.
50341         * tests/test-freopen.c: Likewise.
50342         * tests/test-frexp.c: Likewise.
50343         * tests/test-frexpl.c: Likewise.
50344         * tests/test-fseek.c: Likewise.
50345         * tests/test-fseeko.c: Likewise.
50346         * tests/test-fseterr.c: Likewise.
50347         * tests/test-fstrcmp.c: Likewise.
50348         * tests/test-ftell.c: Likewise.
50349         * tests/test-ftello.c: Likewise.
50350         * tests/test-fwritable.c: Likewise.
50351         * tests/test-fwriting.c: Likewise.
50352         * tests/test-getaddrinfo.c: Likewise.
50353         * tests/test-getpass.c: Likewise.
50354         * tests/test-gettimeofday.c: Likewise.
50355         * tests/test-hmac-md5.c: Likewise.
50356         * tests/test-hmac-sha1.c: Likewise.
50357         * tests/test-iconv.c: Likewise.
50358         * tests/test-iconvme.c: Likewise.
50359         * tests/test-inttypes.c: Likewise.
50360         * tests/test-isnan.c: Likewise.
50361         * tests/test-isnanf.c: Likewise.
50362         * tests/test-isnanl-nolibm.c: Likewise.
50363         * tests/test-isnanl.c: Likewise.
50364         * tests/test-isnanl.h: Likewise.
50365         * tests/test-ldexpl.c: Likewise.
50366         * tests/test-linked_list.c: Likewise.
50367         * tests/test-linkedhash_list.c: Likewise.
50368         * tests/test-locale.c: Likewise.
50369         * tests/test-localename.c: Likewise.
50370         * tests/test-lock.c: Likewise.
50371         * tests/test-lseek.c: Likewise.
50372         * tests/test-malloca.c: Likewise.
50373         * tests/test-math.c: Likewise.
50374         * tests/test-mbscasecmp.c: Likewise.
50375         * tests/test-mbscasestr1.c: Likewise.
50376         * tests/test-mbscasestr2.c: Likewise.
50377         * tests/test-mbscasestr3.c: Likewise.
50378         * tests/test-mbscasestr4.c: Likewise.
50379         * tests/test-mbschr.c: Likewise.
50380         * tests/test-mbscspn.c: Likewise.
50381         * tests/test-mbsncasecmp.c: Likewise.
50382         * tests/test-mbspbrk.c: Likewise.
50383         * tests/test-mbspcasecmp.c: Likewise.
50384         * tests/test-mbsrchr.c: Likewise.
50385         * tests/test-mbsspn.c: Likewise.
50386         * tests/test-mbsstr1.c: Likewise.
50387         * tests/test-mbsstr2.c: Likewise.
50388         * tests/test-mbsstr3.c: Likewise.
50389         * tests/test-md5.c: Likewise.
50390         * tests/test-memmem.c: Likewise.
50391         * tests/test-netinet_in.c: Likewise.
50392         * tests/test-open.c: Likewise.
50393         * tests/test-printf-frexp.c: Likewise.
50394         * tests/test-printf-frexpl.c: Likewise.
50395         * tests/test-printf-posix.c: Likewise.
50396         * tests/test-printf-posix.h: Likewise.
50397         * tests/test-rbtree_list.c: Likewise.
50398         * tests/test-rbtree_oset.c: Likewise.
50399         * tests/test-rbtreehash_list.c: Likewise.
50400         * tests/test-read-file.c: Likewise.
50401         * tests/test-rijndael.c: Likewise.
50402         * tests/test-search.c: Likewise.
50403         * tests/test-signbit.c: Likewise.
50404         * tests/test-sleep.c: Likewise.
50405         * tests/test-snprintf-posix.c: Likewise.
50406         * tests/test-snprintf-posix.h: Likewise.
50407         * tests/test-snprintf.c: Likewise.
50408         * tests/test-sprintf-posix.c: Likewise.
50409         * tests/test-sprintf-posix.h: Likewise.
50410         * tests/test-stat-time.c: Likewise.
50411         * tests/test-stdbool.c: Likewise.
50412         * tests/test-stdint.c: Likewise.
50413         * tests/test-stdio.c: Likewise.
50414         * tests/test-stdlib.c: Likewise.
50415         * tests/test-stpncpy.c: Likewise.
50416         * tests/test-strcasestr.c: Likewise.
50417         * tests/test-striconv.c: Likewise.
50418         * tests/test-striconveh.c: Likewise.
50419         * tests/test-striconveha.c: Likewise.
50420         * tests/test-string.c: Likewise.
50421         * tests/test-sys_select.c: Likewise.
50422         * tests/test-sys_socket.c: Likewise.
50423         * tests/test-sys_stat.c: Likewise.
50424         * tests/test-sys_time.c: Likewise.
50425         * tests/test-sysexits.c: Likewise.
50426         * tests/test-time.c: Likewise.
50427         * tests/test-tls.c: Likewise.
50428         * tests/test-trunc.c: Likewise.
50429         * tests/test-truncf.c: Likewise.
50430         * tests/test-truncl.c: Likewise.
50431         * tests/test-unistd.c: Likewise.
50432         * tests/test-vasnprintf-posix.c: Likewise.
50433         * tests/test-vasnprintf-posix2.c: Likewise.
50434         * tests/test-vasnprintf.c: Likewise.
50435         * tests/test-vasprintf-posix.c: Likewise.
50436         * tests/test-vasprintf.c: Likewise.
50437         * tests/test-verify.c: Likewise.
50438         * tests/test-vfprintf-posix.c: Likewise.
50439         * tests/test-vprintf-posix.c: Likewise.
50440         * tests/test-vsnprintf-posix.c: Likewise.
50441         * tests/test-vsnprintf.c: Likewise.
50442         * tests/test-vsprintf-posix.c: Likewise.
50443         * tests/test-wchar.c: Likewise.
50444         * tests/test-wctype.c: Likewise.
50445         * tests/test-wcwidth.c: Likewise.
50446         * tests/test-xstrtol.c: Likewise.
50447         * tests/test-xvasprintf.c: Likewise.
50448         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50449         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50450         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50451         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50452         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50453         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50454         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50455         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50456         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50457         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50458         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50459         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50460         * tests/uniname/test-uninames.c: Likewise.
50461         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50462         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50463         * tests/unistdio/test-u16-printf1.h: Likewise.
50464         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50465         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50466         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50467         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50468         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50469         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50470         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50471         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50472         * tests/unistdio/test-u32-printf1.h: Likewise.
50473         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50474         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50475         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50476         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50477         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50478         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50479         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50480         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50481         * tests/unistdio/test-u8-printf1.h: Likewise.
50482         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50483         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50484         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50485         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50486         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50487         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50488         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50489         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50490         * tests/unistdio/test-ulc-printf1.h: Likewise.
50491         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50492         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50493         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50494         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50495         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50496         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50497         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50498         * tests/uniwidth/test-u16-width.c: Likewise.
50499         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50500         * tests/uniwidth/test-u32-width.c: Likewise.
50501         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50502         * tests/uniwidth/test-u8-width.c: Likewise.
50503         * tests/uniwidth/test-uc_width.c: Likewise.
50504         * config/srclist-update: Likewise.
50505         (fixlicense): Update to GPLv3+.
50506
50507         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50508         * tests/test-tsearch.c: Change copyright notice.
50509
50510         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50511         * lib/c-strcaseeq.h: Change copyright notice.
50512         * lib/streq.h: Likewise.
50513         * lib/uniconv.h: Likewise.
50514         * lib/uniconv/u-conv-from-enc.h: Likewise.
50515         * lib/uniconv/u-conv-to-enc.h: Likewise.
50516         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50517         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50518         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50519         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50520         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50521         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50522         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50523         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50524         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50525         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50526         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50527         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50528         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50529         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50530         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50531         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50532         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50533         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50534         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50535         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50536         * lib/uniname.h: Likewise.
50537         * lib/uniname/uniname.c: Likewise.
50538         * lib/unistdio.h: Likewise.
50539         * lib/unistdio/u-asnprintf.h: Likewise.
50540         * lib/unistdio/u-asprintf.h: Likewise.
50541         * lib/unistdio/u-printf-args.c: Likewise.
50542         * lib/unistdio/u-printf-args.h: Likewise.
50543         * lib/unistdio/u-printf-parse.h: Likewise.
50544         * lib/unistdio/u-snprintf.h: Likewise.
50545         * lib/unistdio/u-sprintf.h: Likewise.
50546         * lib/unistdio/u-vasprintf.h: Likewise.
50547         * lib/unistdio/u-vsnprintf.h: Likewise.
50548         * lib/unistdio/u-vsprintf.h: Likewise.
50549         * lib/unistdio/u16-asnprintf.c: Likewise.
50550         * lib/unistdio/u16-asprintf.c: Likewise.
50551         * lib/unistdio/u16-printf-parse.c: Likewise.
50552         * lib/unistdio/u16-snprintf.c: Likewise.
50553         * lib/unistdio/u16-sprintf.c: Likewise.
50554         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50555         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50556         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50557         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50558         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50559         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50560         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50561         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50562         * lib/unistdio/u16-vasnprintf.c: Likewise.
50563         * lib/unistdio/u16-vasprintf.c: Likewise.
50564         * lib/unistdio/u16-vsnprintf.c: Likewise.
50565         * lib/unistdio/u16-vsprintf.c: Likewise.
50566         * lib/unistdio/u32-asnprintf.c: Likewise.
50567         * lib/unistdio/u32-asprintf.c: Likewise.
50568         * lib/unistdio/u32-printf-parse.c: Likewise.
50569         * lib/unistdio/u32-snprintf.c: Likewise.
50570         * lib/unistdio/u32-sprintf.c: Likewise.
50571         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50572         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50573         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50574         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50575         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50576         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50577         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50578         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50579         * lib/unistdio/u32-vasnprintf.c: Likewise.
50580         * lib/unistdio/u32-vasprintf.c: Likewise.
50581         * lib/unistdio/u32-vsnprintf.c: Likewise.
50582         * lib/unistdio/u32-vsprintf.c: Likewise.
50583         * lib/unistdio/u8-asnprintf.c: Likewise.
50584         * lib/unistdio/u8-asprintf.c: Likewise.
50585         * lib/unistdio/u8-printf-parse.c: Likewise.
50586         * lib/unistdio/u8-snprintf.c: Likewise.
50587         * lib/unistdio/u8-sprintf.c: Likewise.
50588         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50589         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50590         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50591         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50592         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50593         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50594         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50595         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50596         * lib/unistdio/u8-vasnprintf.c: Likewise.
50597         * lib/unistdio/u8-vasprintf.c: Likewise.
50598         * lib/unistdio/u8-vsnprintf.c: Likewise.
50599         * lib/unistdio/u8-vsprintf.c: Likewise.
50600         * lib/unistdio/ulc-asnprintf.c: Likewise.
50601         * lib/unistdio/ulc-asprintf.c: Likewise.
50602         * lib/unistdio/ulc-printf-parse.c: Likewise.
50603         * lib/unistdio/ulc-snprintf.c: Likewise.
50604         * lib/unistdio/ulc-sprintf.c: Likewise.
50605         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50606         * lib/unistdio/ulc-vasprintf.c: Likewise.
50607         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50608         * lib/unistdio/ulc-vsprintf.c: Likewise.
50609         * lib/unistr.h: Likewise.
50610         * lib/unistr/u-cpy-alloc.h: Likewise.
50611         * lib/unistr/u-cpy.h: Likewise.
50612         * lib/unistr/u-endswith.h: Likewise.
50613         * lib/unistr/u-move.h: Likewise.
50614         * lib/unistr/u-set.h: Likewise.
50615         * lib/unistr/u-startswith.h: Likewise.
50616         * lib/unistr/u-stpcpy.h: Likewise.
50617         * lib/unistr/u-stpncpy.h: Likewise.
50618         * lib/unistr/u-strcat.h: Likewise.
50619         * lib/unistr/u-strcpy.h: Likewise.
50620         * lib/unistr/u-strcspn.h: Likewise.
50621         * lib/unistr/u-strdup.h: Likewise.
50622         * lib/unistr/u-strlen.h: Likewise.
50623         * lib/unistr/u-strncat.h: Likewise.
50624         * lib/unistr/u-strncpy.h: Likewise.
50625         * lib/unistr/u-strnlen.h: Likewise.
50626         * lib/unistr/u-strpbrk.h: Likewise.
50627         * lib/unistr/u-strspn.h: Likewise.
50628         * lib/unistr/u-strstr.h: Likewise.
50629         * lib/unistr/u-strtok.h: Likewise.
50630         * lib/unistr/u16-check.c: Likewise.
50631         * lib/unistr/u16-chr.c: Likewise.
50632         * lib/unistr/u16-cmp.c: Likewise.
50633         * lib/unistr/u16-cpy-alloc.c: Likewise.
50634         * lib/unistr/u16-cpy.c: Likewise.
50635         * lib/unistr/u16-endswith.c: Likewise.
50636         * lib/unistr/u16-mblen.c: Likewise.
50637         * lib/unistr/u16-mbsnlen.c: Likewise.
50638         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50639         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50640         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50641         * lib/unistr/u16-mbtouc.c: Likewise.
50642         * lib/unistr/u16-mbtoucr.c: Likewise.
50643         * lib/unistr/u16-move.c: Likewise.
50644         * lib/unistr/u16-next.c: Likewise.
50645         * lib/unistr/u16-prev.c: Likewise.
50646         * lib/unistr/u16-set.c: Likewise.
50647         * lib/unistr/u16-startswith.c: Likewise.
50648         * lib/unistr/u16-stpcpy.c: Likewise.
50649         * lib/unistr/u16-stpncpy.c: Likewise.
50650         * lib/unistr/u16-strcat.c: Likewise.
50651         * lib/unistr/u16-strchr.c: Likewise.
50652         * lib/unistr/u16-strcmp.c: Likewise.
50653         * lib/unistr/u16-strcpy.c: Likewise.
50654         * lib/unistr/u16-strcspn.c: Likewise.
50655         * lib/unistr/u16-strdup.c: Likewise.
50656         * lib/unistr/u16-strlen.c: Likewise.
50657         * lib/unistr/u16-strmblen.c: Likewise.
50658         * lib/unistr/u16-strmbtouc.c: Likewise.
50659         * lib/unistr/u16-strncat.c: Likewise.
50660         * lib/unistr/u16-strncmp.c: Likewise.
50661         * lib/unistr/u16-strncpy.c: Likewise.
50662         * lib/unistr/u16-strnlen.c: Likewise.
50663         * lib/unistr/u16-strpbrk.c: Likewise.
50664         * lib/unistr/u16-strrchr.c: Likewise.
50665         * lib/unistr/u16-strspn.c: Likewise.
50666         * lib/unistr/u16-strstr.c: Likewise.
50667         * lib/unistr/u16-strtok.c: Likewise.
50668         * lib/unistr/u16-to-u32.c: Likewise.
50669         * lib/unistr/u16-to-u8.c: Likewise.
50670         * lib/unistr/u16-uctomb-aux.c: Likewise.
50671         * lib/unistr/u16-uctomb.c: Likewise.
50672         * lib/unistr/u32-check.c: Likewise.
50673         * lib/unistr/u32-chr.c: Likewise.
50674         * lib/unistr/u32-cmp.c: Likewise.
50675         * lib/unistr/u32-cpy-alloc.c: Likewise.
50676         * lib/unistr/u32-cpy.c: Likewise.
50677         * lib/unistr/u32-endswith.c: Likewise.
50678         * lib/unistr/u32-mblen.c: Likewise.
50679         * lib/unistr/u32-mbsnlen.c: Likewise.
50680         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50681         * lib/unistr/u32-mbtouc.c: Likewise.
50682         * lib/unistr/u32-mbtoucr.c: Likewise.
50683         * lib/unistr/u32-move.c: Likewise.
50684         * lib/unistr/u32-next.c: Likewise.
50685         * lib/unistr/u32-prev.c: Likewise.
50686         * lib/unistr/u32-set.c: Likewise.
50687         * lib/unistr/u32-startswith.c: Likewise.
50688         * lib/unistr/u32-stpcpy.c: Likewise.
50689         * lib/unistr/u32-stpncpy.c: Likewise.
50690         * lib/unistr/u32-strcat.c: Likewise.
50691         * lib/unistr/u32-strchr.c: Likewise.
50692         * lib/unistr/u32-strcmp.c: Likewise.
50693         * lib/unistr/u32-strcpy.c: Likewise.
50694         * lib/unistr/u32-strcspn.c: Likewise.
50695         * lib/unistr/u32-strdup.c: Likewise.
50696         * lib/unistr/u32-strlen.c: Likewise.
50697         * lib/unistr/u32-strmblen.c: Likewise.
50698         * lib/unistr/u32-strmbtouc.c: Likewise.
50699         * lib/unistr/u32-strncat.c: Likewise.
50700         * lib/unistr/u32-strncmp.c: Likewise.
50701         * lib/unistr/u32-strncpy.c: Likewise.
50702         * lib/unistr/u32-strnlen.c: Likewise.
50703         * lib/unistr/u32-strpbrk.c: Likewise.
50704         * lib/unistr/u32-strrchr.c: Likewise.
50705         * lib/unistr/u32-strspn.c: Likewise.
50706         * lib/unistr/u32-strstr.c: Likewise.
50707         * lib/unistr/u32-strtok.c: Likewise.
50708         * lib/unistr/u32-to-u16.c: Likewise.
50709         * lib/unistr/u32-to-u8.c: Likewise.
50710         * lib/unistr/u32-uctomb.c: Likewise.
50711         * lib/unistr/u8-check.c: Likewise.
50712         * lib/unistr/u8-chr.c: Likewise.
50713         * lib/unistr/u8-cmp.c: Likewise.
50714         * lib/unistr/u8-cpy-alloc.c: Likewise.
50715         * lib/unistr/u8-cpy.c: Likewise.
50716         * lib/unistr/u8-endswith.c: Likewise.
50717         * lib/unistr/u8-mblen.c: Likewise.
50718         * lib/unistr/u8-mbsnlen.c: Likewise.
50719         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50720         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50721         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50722         * lib/unistr/u8-mbtouc.c: Likewise.
50723         * lib/unistr/u8-mbtoucr.c: Likewise.
50724         * lib/unistr/u8-move.c: Likewise.
50725         * lib/unistr/u8-next.c: Likewise.
50726         * lib/unistr/u8-prev.c: Likewise.
50727         * lib/unistr/u8-set.c: Likewise.
50728         * lib/unistr/u8-startswith.c: Likewise.
50729         * lib/unistr/u8-stpcpy.c: Likewise.
50730         * lib/unistr/u8-stpncpy.c: Likewise.
50731         * lib/unistr/u8-strcat.c: Likewise.
50732         * lib/unistr/u8-strchr.c: Likewise.
50733         * lib/unistr/u8-strcmp.c: Likewise.
50734         * lib/unistr/u8-strcpy.c: Likewise.
50735         * lib/unistr/u8-strcspn.c: Likewise.
50736         * lib/unistr/u8-strdup.c: Likewise.
50737         * lib/unistr/u8-strlen.c: Likewise.
50738         * lib/unistr/u8-strmblen.c: Likewise.
50739         * lib/unistr/u8-strmbtouc.c: Likewise.
50740         * lib/unistr/u8-strncat.c: Likewise.
50741         * lib/unistr/u8-strncmp.c: Likewise.
50742         * lib/unistr/u8-strncpy.c: Likewise.
50743         * lib/unistr/u8-strnlen.c: Likewise.
50744         * lib/unistr/u8-strpbrk.c: Likewise.
50745         * lib/unistr/u8-strrchr.c: Likewise.
50746         * lib/unistr/u8-strspn.c: Likewise.
50747         * lib/unistr/u8-strstr.c: Likewise.
50748         * lib/unistr/u8-strtok.c: Likewise.
50749         * lib/unistr/u8-to-u16.c: Likewise.
50750         * lib/unistr/u8-to-u32.c: Likewise.
50751         * lib/unistr/u8-uctomb-aux.c: Likewise.
50752         * lib/unistr/u8-uctomb.c: Likewise.
50753         * lib/unitypes.h: Likewise.
50754         * lib/uniwidth.h: Likewise.
50755         * lib/uniwidth/cjk.h: Likewise.
50756         * lib/uniwidth/u16-strwidth.c: Likewise.
50757         * lib/uniwidth/u16-width.c: Likewise.
50758         * lib/uniwidth/u32-strwidth.c: Likewise.
50759         * lib/uniwidth/u32-width.c: Likewise.
50760         * lib/uniwidth/u8-strwidth.c: Likewise.
50761         * lib/uniwidth/u8-width.c: Likewise.
50762         * lib/uniwidth/width.c: Likewise.
50763
50764 2007-10-07  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50767         The file is still under LGPL (see modules/inttypes).
50768
50769 2007-10-06  Bruno Haible  <bruno@clisp.org>
50770
50771         * modules/trunc (Dependencies): Add 'extensions'.
50772         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50773         Reported by Ben Pfaff <blp@gnu.org>.
50774
50775 2007-10-06  Bruno Haible  <bruno@clisp.org>
50776
50777         * modules/freopen-tests: New file.
50778         * tests/test-freopen.c: New file.
50779
50780         * modules/fopen-tests: New file.
50781         * tests/test-fopen.c: New file.
50782
50783         * modules/fopen: New file.
50784         * lib/fopen.c: New file.
50785         * m4/fopen.m4: New file.
50786         * modules/freopen: New file.
50787         * lib/freopen.c: New file.
50788         * m4/freopen.m4: New file.
50789         * lib/stdio.in.h (fopen, freopen): New declarations.
50790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50791         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50792         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50793         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50794         * doc/functions/fopen.texi: Mention the 'fopen' module.
50795         * doc/functions/freopen.texi: Mention the 'freopen' module.
50796
50797 2007-10-06  Bruno Haible  <bruno@clisp.org>
50798
50799         * modules/open-tests: New file.
50800         * tests/test-open.c: New file.
50801
50802         * modules/open: New file.
50803         * lib/open.c: New file.
50804         * m4/open.m4: New file.
50805         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50806         lib/open.c does.
50807         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50808         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50809         macros.
50810         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50811         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50812         REPLACE_OPEN.
50813         * doc/functions/open.texi: Mention the 'open' module.
50814
50815 2007-10-04  Bruno Haible  <bruno@clisp.org>
50816
50817         * modules/ceill-tests: New file.
50818         * tests/test-ceill.c: New file.
50819
50820         * modules/ceill: New file.
50821         * lib/ceill.c: Replace entire file.
50822         * m4/ceill.m4: New file.
50823         * lib/math.in.h (ceill): Replace declaration.
50824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50825         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50826         * doc/functions/ceill.texi: Mention the 'ceill' module.
50827         * modules/mathl (Files): Remove lib/ceill.c.
50828         (Depends-on): Add ceill.
50829
50830 2007-10-04  Bruno Haible  <bruno@clisp.org>
50831
50832         * modules/ceilf-tests: New file.
50833         * tests/test-ceilf.c: New file.
50834
50835         * modules/ceilf: New file.
50836         * lib/ceil.c: New file.
50837         * lib/ceilf.c: New file.
50838         * m4/ceilf.m4: New file.
50839         * lib/math.in.h (ceilf): New declaration.
50840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50841         HAVE_DECL_CEILF.
50842         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50843         HAVE_DECL_CEILF.
50844         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50845
50846 2007-10-04  Bruno Haible  <bruno@clisp.org>
50847
50848         * modules/floorl-tests: New file.
50849         * tests/test-floorl.c: New file.
50850
50851         * modules/floorl: New file.
50852         * lib/floorl.c: Replace entire file.
50853         * m4/floorl.m4: New file.
50854         * lib/math.in.h (floorl): Replace declaration.
50855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50856         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50857         * doc/functions/floorl.texi: Mention the 'floorl' module.
50858         * modules/mathl (Files): Remove lib/floorl.c.
50859         (Depends-on): Add floorl.
50860
50861 2007-10-04  Bruno Haible  <bruno@clisp.org>
50862
50863         * modules/floorf-tests: New file.
50864         * tests/test-floorf.c: New file.
50865
50866         * modules/floorf: New file.
50867         * lib/floor.c: New file.
50868         * lib/floorf.c: New file.
50869         * m4/floorf.m4: New file.
50870         * lib/math.in.h (floorf): New declaration.
50871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50872         HAVE_DECL_FLOORF.
50873         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50874         HAVE_DECL_FLOORF.
50875         * doc/functions/floorf.texi: Mention the 'floorf' module.
50876
50877 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50878             Bruno Haible  <bruno@clisp.org>
50879
50880         Advertise for the Git server instead of the CVS server.
50881         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50882         repository instead of the CVS one.
50883         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50884         about all VCS systems generically.
50885         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50886
50887 2007-10-04  Bruno Haible  <bruno@clisp.org>
50888
50889         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50890         means.
50891         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50892
50893 2007-10-04  Bruno Haible  <bruno@clisp.org>
50894
50895         * modules/truncl-tests: New file.
50896         * tests/test-truncl.c: New file.
50897
50898         * modules/truncl: New file.
50899         * lib/truncl.c: New file.
50900         * m4/truncl.m4: New file.
50901         * lib/math.in.h (truncl): New declaration.
50902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50903         HAVE_DECL_TRUNCL.
50904         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50905         HAVE_DECL_TRUNCL.
50906         * doc/functions/truncl.texi: Mention the 'truncl' module.
50907
50908 2007-10-04  Bruno Haible  <bruno@clisp.org>
50909
50910         * modules/truncf-tests: New file.
50911         * tests/test-truncf.c: New file.
50912
50913         * modules/truncf: New file.
50914         * lib/trunc.c: Make paramerizable through USE_* macros.
50915         * lib/truncf.c: New file.
50916         * m4/truncf.m4: New file.
50917         * lib/math.in.h (truncf): New declaration.
50918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50919         HAVE_DECL_TRUNCF.
50920         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50921         HAVE_DECL_TRUNCF.
50922         * doc/functions/truncf.texi: Mention the 'truncf' module.
50923
50924 2007-10-03  Bruno Haible  <bruno@clisp.org>
50925
50926         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50927         augmentation also for tests modules.
50928         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50929         * modules/atexit-tests (Makefile.am): Likewise.
50930         * modules/binary-io-tests (Makefile.am): Likewise.
50931         * modules/c-strcase-tests (Makefile.am): Likewise.
50932         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50933         * modules/canonicalize-tests (Makefile.am): Likewise.
50934         * modules/closein-tests (Makefile.am): Likewise.
50935         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50936         * modules/freadahead-tests (Makefile.am): Likewise.
50937         * modules/fseek-tests (Makefile.am): Likewise.
50938         * modules/fseeko-tests (Makefile.am): Likewise.
50939         * modules/ftell-tests (Makefile.am): Likewise.
50940         * modules/ftello-tests (Makefile.am): Likewise.
50941         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50942         * modules/isnanl-tests (Makefile.am): Likewise.
50943         * modules/lseek-tests (Makefile.am): Likewise.
50944         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50945         * modules/mbscasestr-tests (Makefile.am): Likewise.
50946         * modules/mbschr-tests (Makefile.am): Likewise.
50947         * modules/mbscspn-tests (Makefile.am): Likewise.
50948         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50949         * modules/mbspbrk-tests (Makefile.am): Likewise.
50950         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50951         * modules/mbsrchr-tests (Makefile.am): Likewise.
50952         * modules/mbsspn-tests (Makefile.am): Likewise.
50953         * modules/mbsstr-tests (Makefile.am): Likewise.
50954         * modules/printf-posix-tests (Makefile.am): Likewise.
50955         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50956         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50957         * modules/tsearch-tests (Makefile.am): Likewise.
50958         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50959         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50960         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50961         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50962         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50963         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50964         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50965         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50966         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50967         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50968         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50969         * modules/xstrtol-tests (Makefile.am): Likewise.
50970         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50971         * modules/yesno-tests (Makefile.am): Likewise.
50972
50973 2007-10-03  Bruno Haible  <bruno@clisp.org>
50974
50975         * modules/trunc-tests: New file.
50976         * tests/test-trunc.c: New file.
50977
50978         * modules/trunc: New file.
50979         * lib/trunc.c: New file.
50980         * m4/trunc.m4: New file.
50981         * lib/math.in.h (trunc): New declaration.
50982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50983         HAVE_DECL_TRUNC.
50984         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50985         HAVE_DECL_TRUNC.
50986         * doc/functions/trunc.texi: Mention the 'trunc' module.
50987
50988 2007-10-03  Bruno Haible  <bruno@clisp.org>
50989
50990         * tests/test-fpending.c: New file, mostly copied
50991         from coreutils/lib/t-fpending.c.
50992         * modules/fpending-tests: New file.
50993
50994 2007-10-03  Bruno Haible  <bruno@clisp.org>
50995
50996         Port the stdio extensions to QNX (untested).
50997         * lib/fseterr.c (fseterr): Add support for QNX.
50998         * lib/fbufmode.c (fbufmode): Likewise.
50999         * lib/freadable.c (freadable): Likewise.
51000         * lib/fwritable.c (fwritable): Likewise.
51001         * lib/freading.c (freading): Likewise.
51002         * lib/fwriting.c (fwriting): Likewise.
51003         * lib/freadahead.c (freadahed): Likewise.
51004         * lib/fpurge.c (fpurge): Likewise.
51005         * lib/fseeko.c (rpl_fseeko): Likewise.
51006
51007 2007-10-03  Bruno Haible  <bruno@clisp.org>
51008             Jim Meyering  <jim@meyering.net>
51009             Eric Blake  <ebb9@byu.net>
51010
51011         * doc/relocatable.texi: Use @command instead of @program.
51012
51013 2007-10-02  Jim Meyering  <jim@meyering.net>
51014
51015         Perform one more "_.h" -> ".in.h" substitution.
51016         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51017         instead of unistd_.h here, too.
51018
51019 2007-10-01  Bruno Haible  <bruno@clisp.org>
51020
51021         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51022         Needed for the alloca-opt module.
51023
51024 2007-09-30  Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51027         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51028         alloca_.h.
51029         * lib/argz.in.h: Renamed from lib/argz_.h.
51030         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51031         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51032         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51033         byteswap_.h.
51034         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51035         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51036         dirent_.h.
51037         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51038         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51039         fcntl_.h.
51040         * lib/float.in.h: Renamed from lib/float_.h.
51041         * modules/float (Files, Makefile.am): Use float.in.h instead of
51042         float_.h.
51043         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51044         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51045         fnmatch_.h.
51046         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51047         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51048         getopt_.h.
51049         * lib/glob.in.h: Renamed from lib/glob_.h.
51050         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51051         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51052         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51053         iconv_.h.
51054         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51055         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51056         inttypes_.h.
51057         * lib/locale.in.h: Renamed from lib/locale_.h.
51058         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51059         locale_.h.
51060         * lib/math.in.h: Renamed from lib/math_.h.
51061         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51062         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51063         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51064         of netinet_in_.h. Add dependency.
51065         * lib/poll.in.h: Renamed from lib/poll_.h.
51066         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51067         * lib/search.in.h: Renamed from lib/search_.h.
51068         * modules/search (Files, Makefile.am): Use search.in.h instead of
51069         search_.h.
51070         * lib/signal.in.h: Renamed from lib/signal_.h.
51071         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51072         _signal.h.
51073         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51074         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51075         stdbool_.h.
51076         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51077         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51078         stdint_.h.
51079         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51080         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51081         stdio_.h.
51082         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51083         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51084         stdlib_.h.
51085         * lib/string.in.h: Renamed from lib/string_.h.
51086         * modules/string (Files, Makefile.am): Use string.in.h instead of
51087         string_.h.
51088         * doc/gnulib-tool.texi (Initial import): Update.
51089         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51090         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51091         of sys_select_.h. Add dependency.
51092         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51093         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51094         of sys_socket_.h.
51095         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51096         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51097         sys_stat_.h.
51098         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51099         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51100         sys_time_.h.
51101         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51102         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51103         sysexits_.h.
51104         * lib/time.in.h: Renamed from lib/time_.h.
51105         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51106         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51107         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51108         unistd_.h.
51109         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51110         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51111         wchar_.h.
51112         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51113         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51114         wctype_.h.
51115         * build-aux/bootstrap (slurp): Update.
51116         * lib/.cppi-disable: Update.
51117
51118 2007-09-30  Bruno Haible  <bruno@clisp.org>
51119
51120         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51121         Needed on BeOS.
51122
51123 2007-09-30  Bruno Haible  <bruno@clisp.org>
51124
51125         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51126
51127 2007-09-29  Bruno Haible  <bruno@clisp.org>
51128
51129         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51130
51131 2007-09-29  Bruno Haible  <bruno@clisp.org>
51132
51133         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51134         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51135         * build-aux/install-reloc: Compile also areadlink.c.
51136         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51137
51138 2007-09-29  Bruno Haible  <bruno@clisp.org>
51139
51140         * gnulib-tool (func_emit_initmacro_done): Indentation.
51141
51142 2007-09-29  Bruno Haible  <bruno@clisp.org>
51143
51144         * README: Add CVS checkout update instructions.
51145         Info from Bob Proulx <bob@proulx.com>.
51146
51147 2007-09-28  Eric Blake  <ebb9@byu.net>
51148
51149         Provide move-if-change.
51150         * build-aux/move-if-change: New file, based on best practice
51151         rather than any canonical upstream location.
51152
51153 2007-09-28  Jim Meyering  <jim@meyering.net>
51154
51155         Fix canonicalize loop-detection corner case.
51156         Do not attempt to stat the symlink values stored via seen_triple.
51157         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51158         on linux-2.6.18, (but not 2.6.22).
51159         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51160         triple_compare.  The former compares dev,ino,filename, while the latter
51161         would actually stat dirname(filename) when dev and ino were equal.
51162         * lib/hash-triple.c: Install <string.h>.
51163         (STREQ): Define.
51164         (triple_compare_ino_str): New function.
51165         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51166
51167 2007-09-28  Eric Blake  <ebb9@byu.net>
51168
51169         Enforce that AC_REPLACE_FUNCS files exist.
51170         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51171         override check for typos.
51172
51173         Fix test-closein on Solaris 10.
51174         * tests/test-closein.c (main): Don't assume stdin can be inherited
51175         closed on all systems.
51176         * tests/test-closein.sh: Likewise.
51177         Reported by Piotr Tarnowski.
51178
51179 2007-09-28  Jim Meyering  <jim@meyering.net>
51180
51181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51182
51183 2007-09-27  Jim Meyering  <jim@meyering.net>
51184
51185         canonicalize: Avoid a false-positive cycle failure.
51186         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51187         Sort.  Remove cycle-check.
51188         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51189         not cycle-check.h.
51190         (seen_triple): New function.
51191         (canonicalize_filename_mode): Use it instead of cycle-check.
51192         * tests/test-canonicalize.c: Add a test for this bug.
51193         * tests/test-canonicalize.sh: Set up and run the test.
51194
51195         New module, file-set, from coreutils.
51196         * modules/file-set: Define it.
51197         * lib/file-set.c, lib/file-set.h: Implement.
51198
51199         New module, hash-triple, from coreutils.
51200         * modules/hash-triple: Define it.
51201         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51202
51203 2007-09-25  Eric Blake  <ebb9@byu.net>
51204
51205         Fix strerror on Interix.
51206         * lib/string_.h (strerror): Declare replacement.
51207         * doc/functions/strerror.texi (strerror): Document the Interix
51208         shortcoming.
51209         * modules/string (Makefile.am): Support new hooks.
51210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51211         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51212         gl_FUNC_STRERROR_SEPARATE.
51213         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51214         * lib/strerror.c (rpl_strerror): Provide replacement.
51215         * modules/strerror (Depends-on): Add string.
51216         (configure.ac): Detect use of module.
51217         * tests/test-strerror.c: New file.
51218         * modules/strerror-tests: New test module.
51219         * modules/argp (Depends-on): Add strerror.
51220         * modules/error (Depends-on): Likewise.
51221         Reported by Martin Koeppe.
51222
51223 2007-09-24  Bruno Haible  <bruno@clisp.org>
51224
51225         * README: Update git instructions.
51226
51227 2007-09-24  Eric Blake  <ebb9@byu.net>
51228
51229         Revert fpending breakage from 2007-09-08.
51230         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51231         __fpending.c.
51232
51233 2007-09-24  Jim Meyering  <jim@meyering.net>
51234
51235         filenamecat.c: Add a test.
51236         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51237         showing how the function works when DIR is the empty string.
51238
51239 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51240
51241         * tests/test-canonicalize.sh: Turn on executable bit.
51242
51243 2007-09-19  Eric Blake  <ebb9@byu.net>
51244
51245         * README: Update CVS instructions.
51246
51247 2007-09-18  Bruno Haible  <bruno@clisp.org>
51248
51249         * modules/areadlink: New file.
51250         * lib/areadlink.h (areadlink): New declaration.
51251         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51252
51253 2007-09-17  Jim Meyering  <jim@meyering.net>
51254
51255         * lib/savewd.c (ESTALE) [!defined]: Define.
51256         Reported to be required on Interix by Martin Koeppe.
51257
51258 2007-09-17  Bruno Haible  <bruno@clisp.org>
51259
51260         * gnulib-tool (func_version): Use $version.
51261
51262 2007-09-16  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51265         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51266         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51267         Reported by Greg Schafer <gschafer@zip.com.au>.
51268
51269 2007-09-15  Bruno Haible  <bruno@clisp.org>
51270
51271         * gnulib-tool (sed): Try a little harder to make bash understand the
51272         alias.
51273         Reported by Bruce Korb <bruce.korb@gmail.com>.
51274
51275 2007-09-13  Eric Blake  <ebb9@byu.net>
51276
51277         * ChangeLog: Remove conflict markers.
51278
51279 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51280
51281         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51282         Reported by Bruno Haible <bruno@clisp.org>.
51283
51284 2007-09-12  Bruno Haible  <bruno@clisp.org>
51285
51286         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51287         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51288         is not defined.
51289
51290 2007-09-12  Eric Blake  <ebb9@byu.net>
51291
51292         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51293         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51294         Autoconf definition.
51295         * modules/euidaccess (Depends-on): Add extensions, for
51296         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51297         * modules/fnmatch (Depends-on): Likewise.
51298         * modules/getaddrinfo (Depends-on): Likewise.
51299         * modules/getdelim (Depends-on): Likewise.
51300         * modules/getline (Depends-on): Likewise.
51301         * modules/getsubopt (Depends-on): Likewise.
51302         * modules/gettext (Depends-on): Likewise.
51303         * modules/group-member (Depends-on): Likewise.
51304         * modules/mbchar (Depends-on): Likewise.
51305         * modules/memmem (Depends-on): Likewise.
51306         * modules/mempcpy (Depends-on): Likewise.
51307         * modules/memrchr (Depends-on): Likewise.
51308         * modules/pagealign_alloc (Depends-on): Likewise.
51309         * modules/readutmp (Depends-on): Likewise.
51310         * modules/stpcpy (Depends-on): Likewise.
51311         * modules/stpncpy (Depends-on): Likewise.
51312         * modules/strchrnul (Depends-on): Likewise.
51313         * modules/strndup (Depends-on): Likewise.
51314         * modules/strsep (Depends-on): Likewise.
51315         * modules/strverscmp (Depends-on): Likewise.
51316         * modules/vasprintf (Depends-on): Likewise.
51317         * modules/wcwidth (Depends-on): Likewise.
51318         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51319         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51320         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51322         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51323         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51324         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51325         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51326         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51327         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51329         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51331         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51332         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51333         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51334         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51335         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51336         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51337         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51339         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51340         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51341         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51342         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51344         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51345         so that lock.m4 can be used in gettext without extensions module.
51346
51347 2007-09-11  Bruno Haible  <bruno@clisp.org>
51348
51349         * m4/isc-posix.m4: Remove file.
51350         Suggested by Eric Blake.
51351
51352 2007-09-11  Eric Blake  <ebb9@byu.net>
51353
51354         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51355
51356 2007-09-10  Bruno Haible  <bruno@clisp.org>
51357
51358         * posix-modules: Fix typo in error message.
51359         Reported by Matt <mkraai@beckman.com>.
51360
51361 2007-09-09  Bruno Haible  <bruno@clisp.org>
51362
51363         * doc/functions/getdelim.texi: Update list of platforms lacking the
51364         function.
51365         * doc/functions/getline.texi: Likewise.
51366
51367 2007-09-09  Jim Meyering  <jim@meyering.net>
51368
51369         * lib/hash.c (hash_initialize): Detect calloc failure.
51370         Reported by Bruno Haible.
51371
51372 2007-09-09  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51375         malloc or realloc fails.
51376
51377 2007-09-09  Bruno Haible  <bruno@clisp.org>
51378
51379         * modules/getcwd (Depends-on): Add malloc-posix.
51380         * modules/glob (Depends-on): Likewise.
51381         * modules/putenv (Depends-on): Likewise.
51382         * modules/strdup (Depends-on): Likewise.
51383         * modules/getdelim (Depends-on): Add realloc-posix.
51384         * modules/read-file (Depends-on): Likewise.
51385
51386 2007-09-09  Bruno Haible  <bruno@clisp.org>
51387
51388         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51389         (gl_FUNC_MALLOC_POSIX): Require it.
51390         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51391         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51392         * modules/realloc (Files): Add m4/malloc.m4.
51393         * modules/calloc (Files): Likewise.
51394
51395 2007-09-09  Bruno Haible  <bruno@clisp.org>
51396
51397         * modules/malloc-posix: New file.
51398         * modules/malloc (Depends-on): Add malloc-posix.
51399         * lib/malloc.c: Include errno.h.
51400         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51401         and a POSIX-compatible malloc into a single function. Set ENOMEM
51402         when returning NULL.
51403         * m4/malloc.m4: New file.
51404         * doc/functions/malloc.texi: Mention the malloc-posix module.
51405         * lib/stdlib_.h (malloc): New declaration.
51406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51407         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51408         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51409         and HAVE_MALLOC_POSIX.
51410
51411 2007-09-09  Bruno Haible  <bruno@clisp.org>
51412
51413         * modules/realloc-posix: New file.
51414         * modules/realloc (Depends-on): Add realloc-posix.
51415         * lib/realloc.c: Include errno.h.
51416         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51417         and a POSIX-compatible realloc into a single function. Set ENOMEM
51418         when returning NULL.
51419         * m4/realloc.m4: New file.
51420         * doc/functions/realloc.texi: Mention the realloc-posix module.
51421         * lib/stdlib_.h (realloc): New declaration.
51422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51423         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51424         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51425         and HAVE_REALLOC_POSIX.
51426
51427 2007-09-09  Bruno Haible  <bruno@clisp.org>
51428
51429         * modules/calloc-posix: New file.
51430         * modules/calloc (Depends-on): Add calloc-posix.
51431         * lib/calloc.c: Include errno.h.
51432         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51433         and a POSIX-compatible calloc into a single function. Set ENOMEM
51434         when returning NULL.
51435         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51436         * doc/functions/calloc.texi: Mention the calloc-posix module.
51437         * lib/stdlib_.h (calloc): New declaration.
51438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51439         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51440         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51441         and HAVE_CALLOC_POSIX.
51442
51443 2007-09-09  Bruno Haible  <bruno@clisp.org>
51444
51445         Allow for modules to show an arbitrary notice.
51446         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51447         * gnulib-tool: New option --extract-notice.
51448         (func_usage): Document it.
51449         (sed_extract_prog): Update.
51450         (func_get_notice): New function.
51451         (func_modules_notice): New function.
51452         (func_import, func_create_testdir): Invoke it.
51453         Suggested by Jim Meyering.
51454
51455 2007-09-09  Bruno Haible  <bruno@clisp.org>
51456
51457         * gnulib-tool: New options --verbose, --quiet.
51458         (func_usage): Document them.
51459         (verbose): New variable.
51460         (func_execute_command): New function.
51461         (func_import): Don't show the module list and the file list if
51462         $verbose < 0.
51463         (func_create_testdir): Likewise. Use func_execute_command.
51464         (func_create_megatestdir): Use func_execute_command.
51465
51466 2007-09-08  Bruno Haible  <bruno@clisp.org>
51467
51468         * gnulib-tool (func_import): Prefer rsync over wget when available,
51469         for fetching the PO files.
51470
51471 2007-09-08  Bruno Haible  <bruno@clisp.org>
51472
51473         * posix-modules: New file. Portions copied from gnulib-tool.
51474         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51475
51476 2007-09-08  Jim Meyering  <jim@meyering.net>
51477
51478         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51479         * lib/fpending.h: Rename from __fpending.h.
51480         * lib/fpending.c: Rename from __fpending.c.
51481         Include "fpending.h", not "__fpending.h".
51482         * lib/__fpending.h, lib/__fpending.c: Remove files.
51483         * modules/fpending (Files): Reflect new file names.
51484         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51485
51486 2007-09-08  Bruno Haible  <bruno@clisp.org>
51487
51488         * m4/inttypes-h.m4: Remove stub file.
51489
51490 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51491
51492         * doc/headers/stdint.texi: Discuss #include_next issue.
51493
51494 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51495
51496         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51497
51498 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51499
51500         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51501         in variable name.
51502
51503 2007-09-03  Jim Meyering  <jim@meyering.net>
51504
51505         New module: git-version-gen.
51506         * modules/git-version-gen: New file.
51507
51508         Import changes from coreutils for bootstrap script.
51509
51510         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51511
51512         bootstrap: uses rsync to download the .po files
51513         * build-aux/bootstrap (po_download_command_format): New global.
51514         (download_po_files): Use rsync.
51515         (update_po_files): Don't remove .po files after download,
51516         so future rsync runs can take advantage of the copies.
51517
51518         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51519
51520         Solve the unnecessary-.po-file-regeneration problem once and for all.
51521         * build-aux/bootstrap (download_po_files): New function, renamed from
51522         get_translations.  Now, downloads, but doesn't update LINGUAS.
51523         (update_po_files): New function.
51524
51525         bootstrap: Ignore more.
51526         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51527         uniwidth to e.g., lib/.gitignore.
51528         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51529
51530         * build-aux/bootstrap: New setting: vc_ignore.
51531         (insert_sorted_if_absent): Create $file if absent.
51532         Adapt to new, possibly empty, list: $vc_ignore.
51533
51534         bootstrap: generate more ignorable names
51535         * build-aux/bootstrap (slurp): When generating ignorable names,
51536         also map .sin to .sed, .gperf to .c, and .y to .c.
51537
51538 2007-09-03  Jim Meyering  <jim@meyering.net>
51539
51540         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51541         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51542
51543 2007-09-02  Bruno Haible  <bruno@clisp.org>
51544
51545         Fix mis-recognition of 'mcs' on QNX 6.
51546         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51547         output contains the string "Mono".
51548         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51549         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51550
51551 2007-09-01  Bruno Haible  <bruno@clisp.org>
51552
51553         Fix collision between uniwidth/* and linebreak modules.
51554         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51555         u32_width): Remove declarations.
51556         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51557         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51558         streq3, streq2, streq1, streq0): Remove functions.
51559         (STREQ): Remove macro.
51560         (is_cjk_encoding): Remove function.
51561         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51562         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51563         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51564         * NEWS: Document the change.
51565
51566 2007-09-01  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/streq.h: Add double-inclusion guard.
51569
51570 2007-09-01  Karl Berry  <karl@gnu.org>
51571
51572         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51573
51574 2007-08-28  Jim Meyering  <jim@meyering.net>
51575
51576         Rename mreadlink_with_size to areadlink_with_size.
51577         * NEWS: Document the change.
51578         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51579         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51580         * lib/mreadlink.h: Rename this to...
51581         * lib/areadlink.h: ...this.
51582         * modules/mreadlink-with-size: Rename this to...
51583         * modules/areadlink-with-size: ...this.
51584         * lib/canonicalize.c: Reflect the renaming.
51585         * modules/canonicalize: Likewise.
51586
51587 2007-08-26  Bruno Haible  <bruno@clisp.org>
51588
51589         * gnulib-tool (func_import): When deciding which files to remove,
51590         consider also dangling symbolic links.
51591         Reported by Eric Blake.
51592
51593 2007-08-26  Bruno Haible  <bruno@clisp.org>
51594
51595         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51596
51597 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51598
51599         * lib/readline.c: Don't include getline.h, the prototype is now
51600         found in stdio.h.
51601
51602 2007-08-23  Jim Meyering  <jim@meyering.net>
51603
51604         Getdelim touchup.
51605         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51606         around the funlockfile call, since funlockfile never sets errno.
51607         Don't set errno upon failed realloc.
51608
51609 2007-08-22  Eric Blake  <ebb9@byu.net>
51610
51611         Getline touchups.
51612         * lib/getdelim.c (getdelim): Revert regression that required *n to
51613         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51614         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51615         getdelim, rather than whether implementation is missing.
51616         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51617         * lib/stdio_.h (getline): Also declare if replacement is
51618         required.
51619         * doc/functions/getdelim.texi: New file.
51620         * doc/functions/getline.texi: Likewise.
51621         * doc/gnulib.texi (Function Substitutes): Add new files.
51622         Reported by Bruno Haible.
51623
51624 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51625
51626         * users.txt: Add Guile.
51627
51628 2007-08-22  Eric Blake  <ebb9@byu.net>
51629
51630         * tests/test-getdelim.c (main): Use remove, not unlink.
51631         * tests/test-getline.c (main): Likewise.
51632
51633         Move getline and getdelim into stdio.h, per POSIX 200x.
51634         * modules/getline (Files): Remove getline.h.
51635         (Depends-on): Add stdio.
51636         (configure.ac): Add module indicator.
51637         * modules/getdelim (Files): Remove getdelim.h.
51638         (Depends-on): Add stdio.
51639         (configure.ac): Add module indicator.
51640         * modules/stdio (Makefile.am): Work with new indicators.
51641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51642         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51643         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51644         * lib/getdelim.h: Delete.
51645         * lib/getline.h: Delete.
51646         * lib/stdio_.h (getdelim, getline): Declare.
51647         * modules/getdelim-tests: New module.
51648         * modules/getline-tests: Likewise.
51649         * tests/test-getdelim.c: New file.
51650         * tests/test-getline.c: Likewise.
51651         * NEWS: Document the change.
51652         * lib/getline.c: Update choice of header.
51653         * lib/csharpcomp.c: Likewise.
51654         * lib/getpass.c: Likewise.
51655         * lib/javacomp.c: Likewise.
51656         * lib/javaversion.c: Likewise.
51657         * lib/yesno.c: Likewise.
51658         * lib/getdelim.c: Likewise.
51659         (getdelim): Set errno on failure, and avoid memory leak.
51660
51661 2007-08-19  Bruno Haible  <bruno@clisp.org>
51662
51663         * modules/closein (Depends-on): Add freadahead.
51664         * lib/closein.c: Include freadahead.h.
51665         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51666         is zero.
51667
51668 2007-08-19  Bruno Haible  <bruno@clisp.org>
51669
51670         * modules/freadahead-tests: New file.
51671         * tests/test-freadahead.sh: New file.
51672         * tests/test-freadahead.c: New file.
51673
51674         * modules/freadahead: New file.
51675         * lib/freadahead.h: New file.
51676         * lib/freadahead.c: New file.
51677         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51678         fbufmode, fpurge, freadable, fwritable.
51679
51680 2007-08-19  Eric Blake  <ebb9@byu.net>
51681
51682         Test yesno in combination with closein.
51683         * lib/yesno.c (yesno): Document use of stdin.
51684         * modules/yesno-tests (Files): New module.
51685         * tests/test-yesno.c (main): New file.
51686         * tests/test-yesno.sh: Likewise.
51687
51688 2007-08-19  Bruno Haible  <bruno@clisp.org>
51689
51690         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51691         * lib/fseeko.c (rpl_fseeko): Likewise.
51692         * lib/fseterr.c (fseterr): Likewise.
51693
51694 2007-08-19  Bruno Haible  <bruno@clisp.org>
51695
51696         * tests/test-lseek.c (main): Disable a test for BeOS.
51697         * doc/functions/lseek.texi: Document the BeOS bug.
51698
51699 2007-08-19  Bruno Haible  <bruno@clisp.org>
51700             Eric Blake  <ebb9@byu.net>
51701
51702         * lib/lseek.c: Include <sys/stat.h>.
51703         (rpl_lseek): Add workaround code also for Unix platforms.
51704         Needed for BeOS.
51705         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51706         * doc/functions/lseek.texi: Document BeOS definiency.
51707
51708 2007-08-18  Bruno Haible  <bruno@clisp.org>
51709
51710         * modules/fstrcmp-tests: New file.
51711         * tests/test-fstrcmp.c: New file.
51712
51713 2007-08-18  Bruno Haible  <bruno@clisp.org>
51714
51715         * modules/fstrcmp: New file, from GNU gettext with modifications.
51716         * lib/fstrcmp.h: New file, from GNU gettext.
51717         * lib/fstrcmp.c: New file, from GNU gettext.
51718         * MODULES.html.sh (String handling): Add fstrcmp.
51719
51720 2007-08-18  Bruno Haible  <bruno@clisp.org>
51721
51722         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51723         'bool'.
51724         (diag, compareseq): Remove const from the ctxt argument.
51725         (USE_HEURISTIC): Undefine at the end.
51726
51727 2007-08-18  Jim Meyering  <jim@meyering.net>
51728
51729         New file: lib/idcache.h
51730         * NEWS: Mention the addition.
51731         * modules/idcache (Files): Add lib/idcache.h
51732         * lib/idcache.c: Include "idcache.h".
51733         Don't include <sys/types.h>.
51734         Add a FIXME comment.
51735         Move file-scoped "static" declarations to the top.
51736         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51737
51738 2007-08-17  Bruno Haible  <bruno@clisp.org>
51739         and Paul Eggert  <eggert@cs.ucla.edu>
51740
51741         * MODULES.html.sh: Add diffseq.
51742         * modules/diffseq: New file.
51743         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51744         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51745
51746 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51747
51748         Import changes from coreutils for bootstrap script.
51749
51750         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51751
51752         * build-aux/bootstrap (slurp): Work even in environments where
51753         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51754         current code does not slurp files whose names start with ".", and
51755         this looks like it might be a troublesome area.
51756
51757         2007-07-11  Jim Meyering  <jim@meyering.net>
51758
51759         If there's a GPL vN copyright comment, require that N == 3.
51760
51761         2007-07-08  Jim Meyering  <jim@meyering.net>
51762
51763         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51764         * build-aux/bootstrap (mam_template): Move definition out of loop.
51765
51766         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51767
51768         * build-aux/bootstrap (symlink_to_dir): Rename function from
51769         symlink_to_gnulib.  Add a directory parameter.  Update all
51770         callers.
51771         (cp_mark_as_generated): Also check for -- and link to -- files in
51772         gl/.
51773
51774         2007-07-08  Jim Meyering  <jim@meyering.net>
51775
51776         Adapt to deeper hierarchy in gnulib.
51777         * build-aux/bootstrap (symlink_to_dir): If the destination
51778         directory doesn't exist, create it. This is required at least for
51779         "lib/uniwidth/cjk.h".
51780
51781         2007-05-15  Jim Meyering  <jim@meyering.net>
51782
51783         * build-aux/bootstrap: Now that generated Makefile.am files
51784         are no longer under version control, they must be created at
51785         bootstrap time.
51786
51787 2007-08-14  Ben Pfaff  <blp@gnu.org>
51788
51789         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51790
51791 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51792
51793         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51794         given the changes below.
51795         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51796         even on hosts that have padding bits beyond the supported 64.
51797
51798 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51801         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51802         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51803         depends on it.
51804         (xstrtol_error): Remove.
51805         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51806         but with a different signature.
51807         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51808         * lib/xstrtol-error.c: Include exitfail.h.
51809         (xstrtol_fatal): New function, with a different signature from the
51810         old xstrtol_error, so that the caller need not worry about passing
51811         in an exit status, or about storage management of the option argument.
51812         (xstrtol_error): Now a static function.  Redo signature to
51813         implement xstrtol_fatal.  Output the correct number of hyphens in
51814         front of the option so that the caller need not worry about
51815         storage management.
51816         (N_): New macro.
51817         (_): Remove; not used now.
51818         * modules/xstrtol: Depend on getopt.
51819         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51820         of old STRTOL_FATAL_ERROR macro.
51821         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51822         of test program.
51823         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51824         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51825
51826 2007-08-08  Eric Blake  <ebb9@byu.net>
51827
51828         * lib/xstrtol-error.c: Add missing include.
51829
51830         Move xstrtol messages into gnulib domain, when --pobase is used.
51831         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51832         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51833         * modules/xstrtol (Files): Distribute new file.
51834         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51835         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51836         * tests/test-xstrtol.c: ...into new file.
51837         * tests/test-xstrtoul.c: Also test xstrtoul.
51838         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51839         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51840         * tests/test-xstrtol.sh: Drive the tests.
51841         * tests/test-xstrtoimax.sh: Likewise.
51842         * tests/test-xstrtoumax.sh: Likewise.
51843         * modules/xstrtol-tests: New module.
51844         * modules/xstrtoimax-tests: Likewise.
51845         * modules/xstrtoumax-tests: Likewise.
51846
51847 2007-08-08  Jim Meyering  <jim@meyering.net>
51848
51849         New function: mfile_name_concat.
51850         * lib/filenamecat.c (mfile_name_concat): New function, just like
51851         file_name_concat, but return NULL upon failure rather than exiting
51852         with a diagnostic.
51853         * lib/filenamecat.h: Declare it.
51854
51855 2007-08-07  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51858         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51859         warning from gcc.
51860         Reported by Eric Blake.
51861
51862 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51863
51864         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51865         * modules/crypto/arcfour (License): Likewise.
51866         * modules/crypto/des-tests (License): Likewise.
51867         * modules/crypto/gc-arctwo-tests (License): Likewise.
51868         * modules/crypto/gc-des-tests (License): Likewise.
51869         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51870         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51871         * modules/crypto/gc-md2-tests (License): Likewise.
51872         * modules/crypto/gc-md4-tests (License): Likewise.
51873         * modules/crypto/gc-md5-tests (License): Likewise.
51874         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51875         * modules/crypto/gc-rijndael-tests (License): Likewise.
51876         * modules/crypto/gc-sha1-tests (License): Likewise.
51877         * modules/crypto/gc-tests (License): Likewise.
51878         * modules/crypto/hmac-md5 (License): Likewise.
51879         * modules/crypto/hmac-sha1 (License): Likewise.
51880         * modules/crypto/md2-tests (License): Likewise.
51881         * modules/crypto/md4-tests (License): Likewise.
51882         * modules/crypto/md5 (License): Likewise.
51883         * modules/crypto/rijndael (License): Likewise.
51884         * modules/crypto/sha1 (License): Likewise.
51885         * modules/memxor (License): Likewise.
51886
51887 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51888         and Bruno Haible  <bruno@clisp.org>
51889
51890         * NEWS: Describe interface changes to human, xstrtol.
51891         * lib/human.h: Include <xstrtol.h>.
51892         (human_options): Return enum strtol_error, not int.  Remove
51893         bool arg; take int * instead.
51894         * lib/human.c: Don't include "gettext.h".
51895         (_): Remove; no longer used.
51896         Don't include <xstrtol.h>, since human.h does it.
51897         (human_options): Adjust to abovementioned interface changes.
51898         Do not report error to stderr; that's now the caller's
51899         responsibility.
51900         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51901         interface change.
51902         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51903         Str, Argument_type_string.  All uses changed.  Put " argument"
51904         in diagnostics to make them clearer.  Change wording of suffix
51905         message for clarity.
51906         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51907         Argument_type_string.
51908         (STRTOL_FATAL_WARN): Remove; no longer used.
51909         * modules/human (Depends-on): Remove gettext-h.
51910
51911 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51912
51913         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51914
51915 2007-07-31  Bruno Haible  <bruno@clisp.org>
51916
51917         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51918         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51919         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51920
51921 2007-07-31  Bruno Haible  <bruno@clisp.org>
51922
51923         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51924         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51925
51926 2007-07-30  Bruno Haible  <bruno@clisp.org>
51927
51928         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51929         * modules/c-ctype (License): Likewise.
51930         * modules/c-strcase (License): Likewise.
51931         * modules/check-version (License): Likewise.
51932         * modules/iconv (License): Likewise.
51933         * modules/iconv_open (License): Likewise.
51934         * modules/read-file (License): Likewise.
51935         * modules/striconv (License): Likewise.
51936         * modules/strverscmp (License): Likewise.
51937         * modules/vasprintf (License): Likewise.
51938         * modules/crypto/des (License): Likewise.
51939         * modules/crypto/gc (License): Likewise.
51940         * modules/crypto/gc-arcfour (License): Likewise.
51941         * modules/crypto/gc-arctwo (License): Likewise.
51942         * modules/crypto/gc-des (License): Likewise.
51943         * modules/crypto/gc-hmac-md5 (License): Likewise.
51944         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51945         * modules/crypto/gc-md2 (License): Likewise.
51946         * modules/crypto/gc-md4 (License): Likewise.
51947         * modules/crypto/gc-md5 (License): Likewise.
51948         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51949         * modules/crypto/gc-random (License): Likewise.
51950         * modules/crypto/gc-rijndael (License): Likewise.
51951         * modules/crypto/gc-sha1 (License): Likewise.
51952         * modules/crypto/md2 (License): Likewise.
51953         * modules/crypto/md4 (License): Likewise.
51954
51955 2007-07-30  Jim Meyering  <jim@meyering.net>
51956
51957         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51958         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51959         it has valid stat data.  This bug would cause du not to count the
51960         sizes of inaccessible directories.
51961         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51962         in <http://bugzilla.redhat.com/250077>.
51963
51964 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51965             Bruno Haible  <bruno@clisp.org>
51966
51967         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51968         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51969         #include_next, gives a diagnostic about it, but reports no error in
51970         the exit code.
51971         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51972
51973 2007-07-24  Ben Pfaff  <blp@gnu.org>
51974
51975         Improve name: "count-one-bits" is better than "popcount".
51976         * MODULES.html.sh: Update name.
51977         * lib/popcount.h: Renamed lib/count-one-bits.h.
51978         (popcount): Renamed count_one_bits.
51979         (popcountl): Renamed count_one_bits_l.
51980         (popcountll): Renamed count_one_bits_ll.
51981         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51982         * modules/popcount: Renamed module/count-one-bits.
51983         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51984         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51985
51986 2007-07-23  Ben Pfaff  <blp@gnu.org>
51987
51988         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51989         better code generation, and add U to large constants to avoid
51990         warnings, in non-GCC case.
51991         Suggested by Bruno Haible.
51992
51993 2007-07-23  Ben Pfaff  <blp@gnu.org>
51994
51995         * lib/popcount.h: Use verify_true instead of if...abort.
51996         * modules/popcount: Depend on verify module.
51997         Suggested by Jim Meyering.
51998
51999 2007-07-23  Bruno Haible  <bruno@clisp.org>
52000
52001         * gnulib-tool (func_import): Create a .cvsignore file also when the
52002         directory is not yet in CVS but the toplevel directory is. When
52003         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52004         Reported by Karl Berry.
52005
52006 2007-07-22  Ben Pfaff  <blp@gnu.org>
52007
52008         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52009         case.
52010         Suggested by Eric Blake.
52011
52012 2007-07-22  Ben Pfaff  <blp@gnu.org>
52013
52014         New module: popcount.
52015         * MODULES.html.sh: Add popcount.
52016         * modules/popcount: New file.
52017         * modules/popcount-tests: New file.
52018         * tests/test-popcount.c: New file.
52019         * lib/popcount.h: New file.
52020         * m4/popcount.m4: New file.
52021
52022 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52023
52024         * build-aux/announce-gen: Update to GPLv3.
52025
52026         * build-aux/config.guess: Update from config.
52027
52028 2007-07-21  Bruno Haible  <bruno@clisp.org>
52029
52030         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52031         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52032
52033 2007-07-20  Jim Meyering  <jim@meyering.net>
52034
52035         * check-module: Diagnose a self-dependency.
52036
52037 2007-07-19  Bruno Haible  <bruno@clisp.org>
52038
52039         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52040         empty.
52041         Reported by Eric Blake.
52042
52043 2007-07-18  Bruno Haible  <bruno@clisp.org>
52044
52045         * gnulib-tool: New options --po-base, --po-domain.
52046         (func_usage): Document them.
52047         (pobase, po_domain): New variables.
52048         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52049         DEFAULT_TEXT_DOMAIN.
52050         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52051         (func_import): Consider pobase and po_domain. Create a po/ directory.
52052         (func_create_testdir): Set pobase and po_domain to empty.
52053         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52054         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52055
52056 2007-07-18  Bruno Haible  <bruno@clisp.org>
52057
52058         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52059         EXTRA_DIST augmentation for files in build-aux/.
52060
52061 2007-07-16  Bruno Haible  <bruno@clisp.org>
52062
52063         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52064         * modules/getdelim (License): Likewise.
52065
52066 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52067
52068         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52069         * modules/d-type (License): Likewise.
52070         * modules/extensions (License): Likewise.
52071         * modules/fnmatch (License): Likewise.
52072         * modules/fseeko (License): Likewise.
52073         * modules/getaddrinfo (License): Likewise.
52074         * modules/getline (License): Likewise.
52075         * modules/getlogin_r (License): Likewise.
52076         * modules/getpass (License): Likewise.
52077         * modules/gettimeofday (License): Likewise.
52078         * modules/glob (License): Likewise.
52079         * modules/inet_ntop (License): Likewise.
52080         * modules/malloc (License): Likewise.
52081         * modules/malloca (License): Likewise.
52082         * modules/memmem (License): Likewise.
52083         * modules/mempcpy (License): Likewise.
52084         * modules/memset (License): Likewise.
52085         * modules/minmax (License): Likewise.
52086         * modules/mktime (License): Likewise.
52087         * modules/netinet_in (License): Likewise.
52088         * modules/pathmax (License): Likewise.
52089         * modules/poll (License): Likewise.
52090         * modules/regex (License): Likewise.
52091         * modules/snprintf (License): Likewise.
52092         * modules/stdbool (License): Likewise.
52093         * modules/stdint (License): Likewise.
52094         * modules/stdio (License): Likewise.
52095         * modules/strcase (License): Likewise.
52096         * modules/strcasestr (License): Likewise.
52097         * modules/strdup (License): Likewise.
52098         * modules/string (License): Likewise.
52099         * modules/strndup (License): Likewise.
52100         * modules/strnlen (License): Likewise.
52101         * modules/strpbrk (License): Likewise.
52102         * modules/strptime (License): Likewise.
52103         * modules/strsep (License): Likewise.
52104         * modules/sys_select (License): Likewise.
52105         * modules/sys_socket (License): Likewise.
52106         * modules/sys_stat (License): Likewise.
52107         * modules/sys_time (License): Likewise.
52108         * modules/time (License): Likewise.
52109         * modules/time_r (License): Likewise.
52110         * modules/timegm (License): Likewise.
52111         * modules/unistd (License): Likewise.
52112         * modules/vsnprintf (License): Likewise.
52113         * modules/wctype (License): Likewise.
52114
52115 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52116
52117         * modules/argz (License): LGPLv2+.
52118
52119 2007-07-15  Karl Berry  <karl@gnu.org>
52120
52121         * doc/gnulib.texi: revise node structure per new fdl.texi.
52122
52123 2007-07-14  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52126         the output file.
52127         * lib/uniname/uninames.h: Regenerated.
52128
52129 2007-07-14  Karl Berry  <karl@gnu.org>
52130
52131         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52132         omitting sectioning and index commands.
52133
52134 2007-07-13  Bruno Haible  <bruno@clisp.org>
52135
52136         New gnulib-tool option --more-symlinks.
52137         * gnulib-tool (func_usage): Document --more-symlinks.
52138         (do_copyrights): New variable.
52139         Recognize option --more-symlinks.
52140         (func_import): Don't add a copyright notice transform to
52141         sed_transform_lib_file if do_copyrights is empty.
52142
52143 2007-07-13  Bruno Haible  <bruno@clisp.org>
52144
52145         * lib/vasnprintf.c (decimal_point_char): Define also if
52146         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52147         && !NEED_PRINTF_DIRECTIVE_A.
52148         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52149         Gary V. Vaughan <gary@gnu.org>.
52150
52151 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * lib/inttypes_.h: Undo previous change, since it was fixed
52154         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52155
52156 2007-07-13  Bruno Haible  <bruno@clisp.org>
52157
52158         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52159         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52160
52161 2007-07-13  Jim Meyering  <jim@meyering.net>
52162
52163         df: Don't fail for Tru64's "file-on-file mount".
52164         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52165         so we fall through and use statfs instead.  Details here:
52166         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52167         Reported by Albert Chin.
52168
52169 2007-07-13  Bruno Haible  <bruno@clisp.org>
52170
52171         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52172         * modules/configmake (License): Likewise.
52173         * modules/gettext (License): Likewise.
52174         * modules/gettext-h (License): Likewise.
52175         * modules/include_next (License): Likewise.
52176         * modules/link-warning (License): Likewise.
52177         * modules/localcharset (License): Likewise.
52178         * modules/localename (License): Likewise.
52179         * modules/lock (License): Likewise.
52180         * modules/relocatable-lib-lgpl (License): Likewise.
52181         * modules/size_max (License): Likewise.
52182         * modules/vasnprintf (License): Likewise.
52183         * modules/wchar (License): Likewise.
52184         * modules/xsize (License): Likewise.
52185
52186 2007-07-13  Bruno Haible  <bruno@clisp.org>
52187
52188         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52189         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52190
52191 2007-07-12  Bruno Haible  <bruno@clisp.org>
52192
52193         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52194         in the modules files.
52195
52196 2007-07-11  Karl Berry  <karl@gnu.org>
52197
52198         * MODULES.html.sh (func_module): use
52199          sed -e '\|^'"${includefile}"'$|d'
52200          instead of /.../d, to avoid errors on $includefile's containing /.
52201
52202 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52203
52204         * gnulib-tool (func_import): Avoid duplication of --avoid
52205         statements
52206         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52207         names to `_' in variable names.
52208
52209 2007-07-10  Eric Blake  <ebb9@byu.net>
52210
52211         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52212         * NEWS: Document this change.
52213
52214 2007-07-08  Bruno Haible  <bruno@clisp.org>
52215
52216         Update to Unicode 5.0.
52217         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52218         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52219         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52220         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52221         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52222         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52223         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52224         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52225         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52226         U+10A3F, U+1D242..U+1D244.
52227         (nonspacing_table_ind): Update.
52228         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52229         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52230
52231 2007-07-08  Bruno Haible  <bruno@clisp.org>
52232
52233         Update to Unicode 5.0.
52234         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52235         code transform. Extend the name index field of unicode_name_to_code and
52236         unicode_code_to_name from 16 to 24 bits.
52237         * lib/uniname/uniname.c (unicode_character_name,
52238         unicode_name_character): Add the range 0x12xxx to the code transform.
52239         * lib/uniname/uninames.h: Regenerated.
52240         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52241
52242 2007-07-07  Bruno Haible  <bruno@clisp.org>
52243
52244         * modules/wcwidth-tests: New file.
52245         * tests/test-wcwidth.c: New file.
52246
52247         Work around MacOS X wcwidth() bug.
52248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52249         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52250         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52251         original wcwidth in non-UTF-8 locales.
52252         * modules/wcwidth (Depends-on): Add localcharset, streq,
52253         uniwidth/width.
52254         * doc/functions/wcwidth.texi: Update.
52255
52256 2007-07-07  Bruno Haible  <bruno@clisp.org>
52257
52258         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52259         (wcwidth): New declaration.
52260         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52261         macros.
52262         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52263         here. Prepare for creating <wchar.h> unconditionally.
52264         * modules/wchar (Depends-on): Add link-warning.
52265         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52266         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52267         * lib/wcwidth.h: Remove file.
52268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52269         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52270         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52271         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52272         (Include): Replace wcwidth.h with <wchar.h>.
52273         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52274         * lib/mbchar.h: Don't include wcwidth.h.
52275         * lib/mbswidth.c: Likewise.
52276         * NEWS: Mention the change.
52277
52278 2007-07-07  Bruno Haible  <bruno@clisp.org>
52279
52280         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52281         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52282         definition with an external declaration.
52283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52284         defined as a function. Remove AC_C_INLINE requirement.
52285         * modules/wcwidth (Files): Add lib/wcwidth.c.
52286         (Makefile.am): Remove redundant statement.
52287
52288 2007-07-07  Bruno Haible  <bruno@clisp.org>
52289
52290         * MODULES.html.sh (Unicode string functions): Add the new modules.
52291
52292         * tests/uniwidth/test-u32-strwidth.c: New file.
52293         * modules/uniwidth/u32-strwidth-tests: New file.
52294
52295         * lib/uniwidth/u32-strwidth.c: New file.
52296         * modules/uniwidth/u32-strwidth: New file.
52297
52298         * tests/uniwidth/test-u16-strwidth.c: New file.
52299         * modules/uniwidth/u16-strwidth-tests: New file.
52300
52301         * lib/uniwidth/u16-strwidth.c: New file.
52302         * modules/uniwidth/u16-strwidth: New file.
52303
52304         * tests/uniwidth/test-u8-strwidth.c: New file.
52305         * modules/uniwidth/u8-strwidth-tests: New file.
52306
52307         * lib/uniwidth/u8-strwidth.c: New file.
52308         * modules/uniwidth/u8-strwidth: New file.
52309
52310         * tests/uniwidth/test-u32-width.c: New file.
52311         * modules/uniwidth/u32-width-tests: New file.
52312
52313         * lib/uniwidth/u32-width.c: New file.
52314         * modules/uniwidth/u32-width: New file.
52315
52316         * tests/uniwidth/test-u16-width.c: New file.
52317         * modules/uniwidth/u16-width-tests: New file.
52318
52319         * lib/uniwidth/u16-width.c: New file.
52320         * modules/uniwidth/u16-width: New file.
52321
52322         * tests/uniwidth/test-u8-width.c: New file.
52323         * modules/uniwidth/u8-width-tests: New file.
52324
52325         * lib/uniwidth/u8-width.c: New file.
52326         * modules/uniwidth/u8-width: New file.
52327
52328         * tests/uniwidth/test-uc_width.c: New file.
52329         * modules/uniwidth/width-tests: New file.
52330
52331         * lib/uniwidth/width.c: New file, from GNU libiconv.
52332         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52333         * modules/uniwidth/width: New file.
52334
52335         * lib/uniwidth.h: New file, from GNU libiconv.
52336         * modules/uniwidth/base: New file.
52337
52338 2007-07-07  Bruno Haible  <bruno@clisp.org>
52339
52340         * lib/uniname.h: New file, from GNU gettext.
52341         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52342         * lib/uniname/uninames.h: New file, from GNU gettext.
52343         * lib/uniname/uniname.c: New file, from GNU gettext.
52344         * tests/uniname/test-uninames.sh: New file.
52345         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52346         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52347         * modules/uniname/base: New file.
52348         * modules/uniname/uniname: New file.
52349         * modules/uniname/uniname-tests: New file.
52350         * MODULES.html.sh (Unicode string functions): Add the new modules.
52351
52352 2007-07-06  Bruno Haible  <bruno@clisp.org>
52353
52354         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52355
52356 2007-07-06  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52359         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52360         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52361         include <sys/time.h>.
52362         Reported by Eric Blake.
52363
52364 2007-07-06  Eric Blake  <ebb9@byu.net>
52365
52366         Fix testing canonicalize on cygwin.
52367         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52368         Revert patch from 2007-06-19.
52369         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52370         canonicalize module is also in use.
52371         * tests/test-canonicalize.c: New file.
52372         * tests/test-canonicalize.sh: Likewise.
52373         * modules/canonicalize-tests: Likewise.
52374
52375 2007-07-06  Jim Meyering  <jim@meyering.net>
52376
52377         * lib/getugroups.c (getugroups): Detect getgrent failure.
52378         Adjust comment to reflect reality: this function may return -1.
52379
52380 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52381
52382         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52383         the new TP address.
52384         (usage): Fix typo
52385         (gnulib_mk): New variable.
52386
52387 2007-07-05  Jim Meyering  <jim@meyering.net>
52388
52389         Don't let endgrent clobber errno, no matter how improbable.
52390         * lib/getugroups.c (getugroups): Save and restore errno around
52391         endgrent call.
52392
52393         Close the group DB even when failing with 2^31 or more members.
52394         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52395
52396 2007-07-04  Jim Meyering  <jim@meyering.net>
52397
52398         * lib/getugroups.h: New file.
52399         * lib/getugroups.c: Include "getugroups.h".
52400         Remove uses of "register" keyword.
52401         Move local variable, "cp", down into scope where used.
52402         Give "username" parameter the "const" attribute.
52403         * modules/getugroups (Files): Add lib/getugroups.h
52404
52405 2007-07-04  Karl Berry  <karl@gnu.org>
52406
52407         * MODULES.html.sh (func_all_modules): Complete rename of
52408         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52409
52410 2007-07-02  Bruno Haible  <bruno@clisp.org>
52411
52412         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52413         mode, when inttypes.h comes from gnulib.
52414         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52415
52416 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52417
52418         * NEWS: Mention lgpl module name change.
52419
52420         * modules/lgpl-2.1: Renamed from lgpl.
52421
52422         * NEWS: Mention gpl module name change.
52423
52424         * modules/gpl-3.0: New file, based on gpl-2.0.
52425
52426         * modules/gpl-2.0: Renamed from gpl.
52427
52428         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52429         doc/gpl-2.0.texi.
52430
52431 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52432
52433         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52434         #define __STDC_LIMIT_MACROS temporarily while including
52435         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52436         Problem reported by Joel E. Denny in
52437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52438
52439 2007-07-01  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/unistdio.h: New file.
52442         * lib/unistdio/u-asnprintf.h: New file.
52443         * lib/unistdio/u-asprintf.h: New file.
52444         * lib/unistdio/u-printf-args.c: New file.
52445         * lib/unistdio/u-printf-args.h: New file.
52446         * lib/unistdio/u-printf-parse.h: New file.
52447         * lib/unistdio/u-snprintf.h: New file.
52448         * lib/unistdio/u-sprintf.h: New file.
52449         * lib/unistdio/u-vasprintf.h: New file.
52450         * lib/unistdio/u-vsnprintf.h: New file.
52451         * lib/unistdio/u-vsprintf.h: New file.
52452         * lib/unistdio/ulc-asnprintf.c: New file.
52453         * lib/unistdio/ulc-asprintf.c: New file.
52454         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52455         * lib/unistdio/ulc-printf-parse.c: New file.
52456         * lib/unistdio/ulc-snprintf.c: New file.
52457         * lib/unistdio/ulc-sprintf.c: New file.
52458         * lib/unistdio/ulc-vasnprintf.c: New file.
52459         * lib/unistdio/ulc-vasprintf.c: New file.
52460         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52461         * lib/unistdio/ulc-vsnprintf.c: New file.
52462         * lib/unistdio/ulc-vsprintf.c: New file.
52463         * lib/unistdio/u8-asnprintf.c: New file.
52464         * lib/unistdio/u8-asprintf.c: New file.
52465         * lib/unistdio/u8-printf-parse.c: New file.
52466         * lib/unistdio/u8-snprintf.c: New file.
52467         * lib/unistdio/u8-sprintf.c: New file.
52468         * lib/unistdio/u8-vasnprintf.c: New file.
52469         * lib/unistdio/u8-vasprintf.c: New file.
52470         * lib/unistdio/u8-vsnprintf.c: New file.
52471         * lib/unistdio/u8-vsprintf.c: New file.
52472         * lib/unistdio/u8-u8-asnprintf.c: New file.
52473         * lib/unistdio/u8-u8-asprintf.c: New file.
52474         * lib/unistdio/u8-u8-snprintf.c: New file.
52475         * lib/unistdio/u8-u8-sprintf.c: New file.
52476         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52477         * lib/unistdio/u8-u8-vasprintf.c: New file.
52478         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52479         * lib/unistdio/u8-u8-vsprintf.c: New file.
52480         * lib/unistdio/u16-asnprintf.c: New file.
52481         * lib/unistdio/u16-asprintf.c: New file.
52482         * lib/unistdio/u16-printf-parse.c: New file.
52483         * lib/unistdio/u16-snprintf.c: New file.
52484         * lib/unistdio/u16-sprintf.c: New file.
52485         * lib/unistdio/u16-vasnprintf.c: New file.
52486         * lib/unistdio/u16-vasprintf.c: New file.
52487         * lib/unistdio/u16-vsnprintf.c: New file.
52488         * lib/unistdio/u16-vsprintf.c: New file.
52489         * lib/unistdio/u16-u16-asnprintf.c: New file.
52490         * lib/unistdio/u16-u16-asprintf.c: New file.
52491         * lib/unistdio/u16-u16-snprintf.c: New file.
52492         * lib/unistdio/u16-u16-sprintf.c: New file.
52493         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52494         * lib/unistdio/u16-u16-vasprintf.c: New file.
52495         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52496         * lib/unistdio/u16-u16-vsprintf.c: New file.
52497         * lib/unistdio/u32-asnprintf.c: New file.
52498         * lib/unistdio/u32-asprintf.c: New file.
52499         * lib/unistdio/u32-printf-parse.c: New file.
52500         * lib/unistdio/u32-snprintf.c: New file.
52501         * lib/unistdio/u32-sprintf.c: New file.
52502         * lib/unistdio/u32-vasnprintf.c: New file.
52503         * lib/unistdio/u32-vasprintf.c: New file.
52504         * lib/unistdio/u32-vsnprintf.c: New file.
52505         * lib/unistdio/u32-vsprintf.c: New file.
52506         * lib/unistdio/u32-u32-asnprintf.c: New file.
52507         * lib/unistdio/u32-u32-asprintf.c: New file.
52508         * lib/unistdio/u32-u32-snprintf.c: New file.
52509         * lib/unistdio/u32-u32-sprintf.c: New file.
52510         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52511         * lib/unistdio/u32-u32-vasprintf.c: New file.
52512         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52513         * lib/unistdio/u32-u32-vsprintf.c: New file.
52514         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52515         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52516         * tests/unistdio/test-ulc-printf1.h: New file.
52517         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52518         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52519         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52520         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52521         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52522         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52523         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52524         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52525         * tests/unistdio/test-u8-asnprintf1.c: New file.
52526         * tests/unistdio/test-u8-asnprintf1.h: New file.
52527         * tests/unistdio/test-u8-printf1.h: New file.
52528         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52529         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52530         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52531         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52532         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52533         * tests/unistdio/test-u8-vasprintf1.c: New file.
52534         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52535         * tests/unistdio/test-u8-vsprintf1.c: New file.
52536         * tests/unistdio/test-u16-asnprintf1.c: New file.
52537         * tests/unistdio/test-u16-asnprintf1.h: New file.
52538         * tests/unistdio/test-u16-printf1.h: New file.
52539         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52540         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52541         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52542         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52543         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52544         * tests/unistdio/test-u16-vasprintf1.c: New file.
52545         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52546         * tests/unistdio/test-u16-vsprintf1.c: New file.
52547         * tests/unistdio/test-u32-asnprintf1.c: New file.
52548         * tests/unistdio/test-u32-asnprintf1.h: New file.
52549         * tests/unistdio/test-u32-printf1.h: New file.
52550         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52551         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52552         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52553         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52554         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52555         * tests/unistdio/test-u32-vasprintf1.c: New file.
52556         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52557         * tests/unistdio/test-u32-vsprintf1.c: New file.
52558         * modules/unistdio/base: New file.
52559         * modules/unistdio/u-printf-args: New file.
52560         * modules/unistdio/ulc-asnprintf: New file.
52561         * modules/unistdio/ulc-asprintf: New file.
52562         * modules/unistdio/ulc-fprintf: New file.
52563         * modules/unistdio/ulc-printf-parse: New file.
52564         * modules/unistdio/ulc-snprintf: New file.
52565         * modules/unistdio/ulc-sprintf: New file.
52566         * modules/unistdio/ulc-vasnprintf: New file.
52567         * modules/unistdio/ulc-vasprintf: New file.
52568         * modules/unistdio/ulc-vfprintf: New file.
52569         * modules/unistdio/ulc-vsnprintf: New file.
52570         * modules/unistdio/ulc-vsprintf: New file.
52571         * modules/unistdio/u8-asnprintf: New file.
52572         * modules/unistdio/u8-asprintf: New file.
52573         * modules/unistdio/u8-printf-parse: New file.
52574         * modules/unistdio/u8-snprintf: New file.
52575         * modules/unistdio/u8-sprintf: New file.
52576         * modules/unistdio/u8-vasnprintf: New file.
52577         * modules/unistdio/u8-vasprintf: New file.
52578         * modules/unistdio/u8-vsnprintf: New file.
52579         * modules/unistdio/u8-vsprintf: New file.
52580         * modules/unistdio/u8-u8-asnprintf: New file.
52581         * modules/unistdio/u8-u8-asprintf: New file.
52582         * modules/unistdio/u8-u8-snprintf: New file.
52583         * modules/unistdio/u8-u8-sprintf: New file.
52584         * modules/unistdio/u8-u8-vasnprintf: New file.
52585         * modules/unistdio/u8-u8-vasprintf: New file.
52586         * modules/unistdio/u8-u8-vsnprintf: New file.
52587         * modules/unistdio/u8-u8-vsprintf: New file.
52588         * modules/unistdio/u16-asnprintf: New file.
52589         * modules/unistdio/u16-asprintf: New file.
52590         * modules/unistdio/u16-printf-parse: New file.
52591         * modules/unistdio/u16-snprintf: New file.
52592         * modules/unistdio/u16-sprintf: New file.
52593         * modules/unistdio/u16-vasnprintf: New file.
52594         * modules/unistdio/u16-vasprintf: New file.
52595         * modules/unistdio/u16-vsnprintf: New file.
52596         * modules/unistdio/u16-vsprintf: New file.
52597         * modules/unistdio/u16-u16-asnprintf: New file.
52598         * modules/unistdio/u16-u16-asprintf: New file.
52599         * modules/unistdio/u16-u16-snprintf: New file.
52600         * modules/unistdio/u16-u16-sprintf: New file.
52601         * modules/unistdio/u16-u16-vasnprintf: New file.
52602         * modules/unistdio/u16-u16-vasprintf: New file.
52603         * modules/unistdio/u16-u16-vsnprintf: New file.
52604         * modules/unistdio/u16-u16-vsprintf: New file.
52605         * modules/unistdio/u32-asnprintf: New file.
52606         * modules/unistdio/u32-asprintf: New file.
52607         * modules/unistdio/u32-printf-parse: New file.
52608         * modules/unistdio/u32-snprintf: New file.
52609         * modules/unistdio/u32-sprintf: New file.
52610         * modules/unistdio/u32-vasnprintf: New file.
52611         * modules/unistdio/u32-vasprintf: New file.
52612         * modules/unistdio/u32-vsnprintf: New file.
52613         * modules/unistdio/u32-vsprintf: New file.
52614         * modules/unistdio/u32-u32-asnprintf: New file.
52615         * modules/unistdio/u32-u32-asprintf: New file.
52616         * modules/unistdio/u32-u32-snprintf: New file.
52617         * modules/unistdio/u32-u32-sprintf: New file.
52618         * modules/unistdio/u32-u32-vasnprintf: New file.
52619         * modules/unistdio/u32-u32-vasprintf: New file.
52620         * modules/unistdio/u32-u32-vsnprintf: New file.
52621         * modules/unistdio/u32-u32-vsprintf: New file.
52622         * modules/unistdio/ulc-asnprintf-tests: New file.
52623         * modules/unistdio/ulc-vasnprintf-tests: New file.
52624         * modules/unistdio/ulc-vasprintf-tests: New file.
52625         * modules/unistdio/ulc-vsnprintf-tests: New file.
52626         * modules/unistdio/ulc-vsprintf-tests: New file.
52627         * modules/unistdio/u8-asnprintf-tests: New file.
52628         * modules/unistdio/u8-vasnprintf-tests: New file.
52629         * modules/unistdio/u8-vasprintf-tests: New file.
52630         * modules/unistdio/u8-vsnprintf-tests: New file.
52631         * modules/unistdio/u8-vsprintf-tests: New file.
52632         * modules/unistdio/u16-asnprintf-tests: New file.
52633         * modules/unistdio/u16-vasnprintf-tests: New file.
52634         * modules/unistdio/u16-vasprintf-tests: New file.
52635         * modules/unistdio/u16-vsnprintf-tests: New file.
52636         * modules/unistdio/u16-vsprintf-tests: New file.
52637         * modules/unistdio/u32-asnprintf-tests: New file.
52638         * modules/unistdio/u32-vasnprintf-tests: New file.
52639         * modules/unistdio/u32-vasprintf-tests: New file.
52640         * modules/unistdio/u32-vsnprintf-tests: New file.
52641         * modules/unistdio/u32-vsprintf-tests: New file.
52642         * MODULES.html.sh (Unicode string functions): Add the new modules.
52643
52644 2007-07-01  Bruno Haible  <bruno@clisp.org>
52645
52646         * lib/sprintf.c (sprintf): Limit the available length estimation,
52647         to avoid address wraparound.
52648         * lib/vsprintf.c (vsprintf): Likewise.
52649         * modules/sprintf-posix (Dependencies): Add stdint.
52650         * modules/vsprintf-posix (Dependencies): Likewise.
52651
52652 2007-07-01  Bruno Haible  <bruno@clisp.org>
52653
52654         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52655         Windows PATH as well. Conservative double-quoting. Comments.
52656
52657 2007-07-01  Bruno Haible  <bruno@clisp.org>
52658             Eric Blake  <ebb9@byu.net>
52659             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52660
52661         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52662         empty components in $PATH, denoting '.'.
52663
52664 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52665
52666         * gnulib-tool: Fix indentation.
52667         (func_create_megatestdir): Likewise.
52668         Report by Bruno Haible.
52669
52670 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52671
52672         Sync from Automake.
52673         * build-aux/gnupload: Fix shell portability issues with for loops.
52674         Report by Karl Berry.
52675
52676 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52677
52678         * build-aux/maint.mk (POURL): Use translationproject.org.
52679
52680 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52681             Bruno Haible  <bruno@clisp.org>
52682
52683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52684         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52685         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52686         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52687         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52688
52689 2007-06-27  Bruno Haible  <bruno@clisp.org>
52690
52691         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52692         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52693
52694 2007-06-26  Karl Berry  <karl@gnu.org>
52695
52696         * MODULES.html.sh: remove xreadlink-with-size.
52697
52698 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52699
52700         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52701         method that I hope also handles the double-include problem noted
52702         by Bruno Haible in
52703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52704
52705 2007-06-23  Bruno Haible  <bruno@clisp.org>
52706
52707         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52708         Don't let the 'mostlyclean' target fail if the last subdirectory could
52709         not be removed.
52710         Reported by Karl Berry.
52711
52712 2007-06-23  Bruno Haible  <bruno@clisp.org>
52713
52714         * gnulib-tool (echo): Add a speedier workaround for ksh.
52715         * tests/test-echo.sh: Likewise.
52716
52717 2007-06-23  Bruno Haible  <bruno@clisp.org>
52718
52719         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52720         * tests/test-echo.sh: Likewise.
52721
52722 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52723
52724         * gnulib-tool (IFS): Initialize early, so we don't set it to
52725         empty later.
52726         (self_abspathname): Rewrite algorithm to set it, reindent.
52727         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52728         (func_create_megatestdir): Merge some sed scripts.
52729
52730 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52731
52732         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52733         exposed by Sun Studio 11 cc on Solaris 8.
52734
52735 2007-06-22  Bruno Haible  <bruno@clisp.org>
52736
52737         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52738         backslashes.
52739         * tests/test-echo.sh: New file.
52740
52741 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52742
52743         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52744         simplify `sed_replace_build_aux' scripts, they are portable but
52745         echoing them with `echo' is not.
52746         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52747
52748 2007-06-21  Karl Berry  <karl@gnu.org>
52749
52750         * config/srclist.txt: guess we can't handle the licenses via
52751         srclist at the moment.
52752
52753 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52754
52755         * MODULES.html.sh: Add include_next.
52756         * modules/include_next: New file.
52757
52758 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52761         INCLUDE_NEXT.
52762         (gl_CHECK_NEXT_HEADERS): New macro.
52763         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52764         the obsolescent gl_ABSOLUTE_HEADER.
52765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52766         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52767         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52768         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52769         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52770         * m4/math_h.m4 (gl_MATH_H): Likewise.
52771         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52772         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52773         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52774         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52775         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52776         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52777         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52778         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52779         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52780         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52781         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52782         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52783         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52784         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52785         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52786         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52787         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52788         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52789         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52790         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52791         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52792         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52793         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52794         * lib/float_.h: Likewise.
52795         * lib/inttypes_.h: Likewise.
52796         * lib/math_.h: Likewise.
52797         * lib/search_.h: Likewise.
52798         * lib/signal_.h: Likewise.
52799         * lib/stdint_.h: Likewise.
52800         * lib/stdio_.h: Likewise.
52801         * lib/stdlib_.h: Likewise.
52802         * lib/string_.h: Likewise.
52803         * lib/sys_stat_.h: Likewise.
52804         * lib/sys_time_.h: Likewise.
52805         * lib/time_.h: Likewise.
52806         * lib/unistd_.h: Likewise.
52807         * lib/wchar_.h: Likewise.
52808         * lib/wctype_.h: Likewise.
52809         * lib/dirent_.h: Likewise.
52810         * lib/iconv_.h: Likewise.
52811         * lib/locale_.h: Likewise.
52812         * lib/netinet_in_.h: Likewise.
52813         * lib/sys_select_.h: Likewise.
52814         * lib/sys_socket_.h: Likewise.
52815         * lib/sysexits_.h: Likewise.
52816         * modules/fcntl (Depends-on): Depend on include_next, not
52817         absolute_header.
52818         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52819         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52820         * modules/fchdir: Likewise.
52821         * modules/float: Likewise.
52822         * modules/iconv_open: Likewise.
52823         * modules/inttypes: Likewise.
52824         * modules/locale: Likewise.
52825         * modules/math: Likewise.
52826         * modules/netinet_in: Likewise.
52827         * modules/search: Likewise.
52828         * modules/signal: Likewise.
52829         * modules/stdint: Likewise.
52830         * modules/stdio: Likewise.
52831         * modules/stdlib: Likewise.
52832         * modules/string: Likewise.
52833         * modules/sys_select: Likewise.
52834         * modules/sys_socket: Likewise.
52835         * modules/sys_stat: Likewise.
52836         * modules/sys_time: Likewise.
52837         * modules/sysexits: Likewise.
52838         * modules/time: Likewise.
52839         * modules/unistd: Likewise.
52840         * modules/wchar: Likewise.
52841         * modules/wctype: Likewise.
52842         * modules/sys_stat: Change maintainer to "all".
52843         * modules/unistd: Likewise.
52844
52845 2007-06-20  Karl Berry  <karl@gnu.org>
52846
52847         * config/srclist.txt: track www changes in license files.
52848
52849 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52850
52851         * build-aux/bootstrap: Remove stray dot.
52852         Make sure build_aux settings are honored when linking
52853         gnulib_extra_files.
52854
52855 2007-06-19  Eric Blake  <ebb9@byu.net>
52856
52857         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52858         Allow compilation on cygwin.
52859
52860 2007-06-19  Jim Meyering  <jim@meyering.net>
52861
52862         xreadlink-with-size: Remove module.  No longer used.
52863         Ex-callers now use xreadlink or mreadlink-with-size.
52864         * modules/xreadlink-with-size: Remove module.
52865         * lib/xreadlink-with-size.c: Remove file.
52866         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52867         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52868         just before the function definition *is* accurate.
52869
52870         Eliminate one way canonicalize_filename_mode could exit.
52871         * lib/canonicalize.c (canonicalize_filename_mode):
52872         Use mreadlink_with_size, not xreadlink_with_size.
52873
52874 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52875
52876         Detect porting problems to FreeBSD/arm, which has time_t wider than
52877         long int.  Original problem reported for GNU diff by Xin Li in
52878         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52879         * modules/getdate (Depends-on): Add intprops, verify.
52880         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52881         is an integer type no wider than long int.
52882
52883 2007-06-18  Jim Meyering  <jim@meyering.net>
52884
52885         New module: mreadlink-with-size.
52886         * MODULES.html.sh: Add mreadlink-with-size.
52887         * modules/mreadlink-with-size: New module
52888         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52889         not xreadlink-with-size.
52890         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52891
52892 2007-06-16  Bruno Haible  <bruno@clisp.org>
52893
52894         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52895         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52896         Reported by Gary V. Vaughan <gary@gnu.org>.
52897
52898 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52899
52900         Revamp lchown so that it lives in unistd.h where it belongs.
52901         * lib/lchown.h: Remove.
52902         * lib/dirchownmod.c: Don't include lib/lchown.h.
52903         * lib/fchownat.c: Likewise.
52904         * lib/openat.c: Likewise.
52905         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52906         does not follow symlinks.
52907         (EOPNOTSUPP): Define if not defined.
52908         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52909         is defined to 0.
52910         (lchown): New decl.
52911         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52912         Do not check for lchown decl.
52913         Set REPLACE_LCHOWN.
52914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52915         REPLACE_LCHOWN.
52916         * modules/chown: Make it clear it follows symlinks.
52917         * modules/lchown: Make it clear it doesn't follow symlinks.
52918         (Files): Remove lib/lchown.h
52919         (Depends-on): Add unistd.
52920         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52921         (Include): Include <unistd.h>, not "lchown.h".
52922         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52923         REPLACE_LCHOWN.
52924
52925 2007-06-15  Jim Meyering  <jim@meyering.net>
52926
52927         Change license (GPL to LGPL) of fsusage and dependents.
52928         * modules/fsusage (License): Change to LGPL.
52929         * modules/full-read (License): Likewise.
52930         * modules/full-write (License): Likewise.
52931         * modules/safe-read (License): Likewise.
52932         * modules/safe-write (License): Likewise.
52933
52934 2007-06-14  Ben Pfaff  <blp@gnu.org>
52935
52936         Missing part of allocsa -> malloca transition.
52937         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52938         gl_MALLOCA.
52939
52940 2007-06-12  Bruno Haible  <bruno@clisp.org>
52941
52942         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52943         to ia64, x86_64, i386.
52944         Reported by Eric Blake.
52945
52946 2007-06-12  Bruno Haible  <bruno@clisp.org>
52947
52948         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52949         cross-compiling to x86_64.
52950
52951 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52954         glitch reported by Ralf Wildenhues in
52955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52956
52957         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52958         Vin Shelton.
52959
52960 2007-06-11  Bruno Haible  <bruno@clisp.org>
52961
52962         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52963         replacement string.
52964         Reported by Eric Blake.
52965
52966 2007-06-10  Bruno Haible  <bruno@clisp.org>
52967
52968         Prepare vasnprintf code for use with Unicode strings.
52969         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52970         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52971         TYPE_U32_STRING.
52972         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52973         a_u32_string variants.
52974         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52975         * lib/printf-args.c: Don't include config.h and the specification
52976         header if PRINTF_FETCHARGS is already defined.
52977         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52978         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52979         TYPE_U16_STRING, TYPE_U32_STRING.
52980         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52981         u16_directive, u16_directives, u32_directive, u32_directives): New
52982         types.
52983         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52984         New declarations.
52985         * lib/printf-parse.c: Don't include config.h and the specification
52986         header if PRINTF_PARSE is already defined. Eliminate the set of
52987         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52988         them now. Include c-ctype.h.
52989         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52990         directive and CHAR_T_ONLY_ASCII.
52991         * lib/vasnprintf.c: Don't include config.h and the specification header
52992         if VASNPRINTF is already defined.
52993         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52994         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52995         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52996         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52997         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52998         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52999         code accordingly.
53000         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53001         pad_ourselves also in this case, with the 'c' and 's' directives, and
53002         with a different notion of "width".
53003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53004
53005 2007-06-10  Bruno Haible  <bruno@clisp.org>
53006
53007         * modules/unistr/u32-mbsnlen: New file.
53008         * lib/unistr/u32-mbsnlen.c: New file.
53009
53010         * modules/unistr/u16-mbsnlen: New file.
53011         * lib/unistr/u16-mbsnlen.c: New file.
53012
53013         * modules/unistr/u8-mbsnlen: New file.
53014         * lib/unistr/u8-mbsnlen.c: New file.
53015
53016         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53017         declarations.
53018
53019 2007-06-10  Bruno Haible  <bruno@clisp.org>
53020
53021         * lib/string_.h (mbsnlen): New declaration.
53022         * lib/mbsnlen.c: New file.
53023         * m4/mbsnlen.m4: New file.
53024         * modules/mbsnlen: New file.
53025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53026         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53027         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53028
53029 2007-06-10  Bruno Haible  <bruno@clisp.org>
53030
53031         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53032
53033 2007-06-10  Bruno Haible  <bruno@clisp.org>
53034
53035         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53036         * lib/mbuiter.h: Likewise.
53037
53038 2007-06-10  Bruno Haible  <bruno@clisp.org>
53039
53040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53041         declaration.
53042
53043 2007-06-10  Karl Berry  <karl@gnu.org>
53044
53045         * config/srclist.txt: remove gettext entries, Bruno prefers
53046         to update individually.
53047
53048 2007-06-10  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53051         'maxlen'. Ensure only length + width bytes are allocated, not
53052         length + 1 + width.
53053
53054 2007-06-09  Bruno Haible  <bruno@clisp.org>
53055
53056         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53057         (CHAR_T): Remove macro.
53058         (VASNPRINTF): Update.
53059
53060 2007-06-09  Bruno Haible  <bruno@clisp.org>
53061
53062         * MODULES.html.sh (Unicode string functions): Add the new modules.
53063
53064         * modules/uniconv/u32-conv-to-enc: New file.
53065         * lib/uniconv/u32-conv-to-enc.c: New file.
53066         * modules/uniconv/u32-conv-to-enc-tests: New file.
53067         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53068
53069         * modules/uniconv/u16-conv-to-enc: New file.
53070         * lib/uniconv/u16-conv-to-enc.c: New file.
53071         * lib/uniconv/u-conv-to-enc.h: New file.
53072         * modules/uniconv/u16-conv-to-enc-tests: New file.
53073         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53074
53075         * modules/uniconv/u8-conv-to-enc: New file.
53076         * lib/uniconv/u8-conv-to-enc.c: New file.
53077         * modules/uniconv/u8-conv-to-enc-tests: New file.
53078         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53079
53080         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53081         u32_conv_to_encoding): New declarations.
53082
53083 2007-06-09  Bruno Haible  <bruno@clisp.org>
53084
53085         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53086
53087 2007-06-09  Bruno Haible  <bruno@clisp.org>
53088
53089         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53090         * modules/malloca: Renamed from modules/allocsa, updated.
53091         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53092         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53093         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53094         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53095         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53096         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53097         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53098         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53099         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53100         * modules/c-strcasestr (Depends-on): Update.
53101         * lib/c-strcasestr.c: Update.
53102         * modules/c-strstr (Depends-on): Update.
53103         * lib/c-strstr.c: Update.
53104         * modules/canonicalize-lgpl (Depends-on): Update.
53105         * lib/canonicalize-lgpl.c: Update.
53106         * modules/clean-temp (Depends-on): Update.
53107         * lib/clean-temp.c: Update.
53108         * modules/csharpcomp (Depends-on): Update.
53109         * lib/csharpcomp.c: Update.
53110         * modules/csharpexec (Depends-on): Update.
53111         * lib/csharpexec.c: Update.
53112         * modules/javacomp (Depends-on): Update.
53113         * lib/javacomp.c: Update.
53114         * modules/javaexec (Depends-on): Update.
53115         * lib/javaexec.c: Update.
53116         * modules/mbscasestr (Depends-on): Update.
53117         * lib/mbscasestr.c: Update.
53118         * modules/mbsstr (Depends-on): Update.
53119         * lib/mbsstr.c: Update.
53120         * modules/setenv (Depends-on): Update.
53121         * lib/setenv.c: Update.
53122         * modules/strcasestr (Depends-on): Update.
53123         * lib/strcasestr.c: Update.
53124         * modules/striconveha (Depends-on): Update.
53125         * lib/striconveha.c: Update.
53126         * modules/relocatable-prog-wrapper (Files): Update.
53127         * lib/relocwrapper.c: Update.
53128         * build-aux/install-reloc: Update.
53129         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53130
53131 2007-06-08  Bruno Haible  <bruno@clisp.org>
53132
53133         Port to uClibc.
53134         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53135         * lib/fpurge.c (fpurge): Likewise.
53136         * lib/freading.c (freading): Likewise.
53137         * lib/fseeko.c (rpl_fseeko): Likewise.
53138         * lib/fseterr.c (fseterr): Likewise.
53139         * lib/fwriting.c (fwriting): Likewise.
53140         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53141
53142 2007-06-08  Bruno Haible  <bruno@clisp.org>
53143
53144         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53145         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53146         * modules/gettext (Files): Add m4/intlmacosx.m4.
53147
53148 2007-06-07  Bruno Haible  <bruno@clisp.org>
53149
53150         * modules/localename-tests: New file.
53151         * tests/test-localename.c: New file.
53152
53153         New module 'localename'.
53154         * lib/localename.h: New file.
53155         * lib/localename.c: New file, from GNU gettext.
53156         * m4/localename.m4: New file.
53157         * modules/localename: New file.
53158
53159 2007-06-07  Bruno Haible  <bruno@clisp.org>
53160
53161         Work around the lack of <wchar.h> on some builds of uClibc.
53162         * doc/headers/wchar.texi: Update.
53163         * lib/wchar_.h: Include <wchar.h> only if it exists.
53164         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53165         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53166         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53167         doesn't exist.
53168         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53169         * modules/mbfile (Depends-on): Add wchar.
53170         * modules/mbiter (Depends-on): Likewise.
53171         * modules/mbuiter (Depends-on): Likewise.
53172         Reported by Simon Josefsson.
53173
53174 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53175
53176         Work around problem reported by Steven M. Schweda in
53177         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53178         Tru64 5.1B with the Compaq compiler environment installed declares
53179         an 'isblank' function but does not define it in the C library.
53180         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53181         * lib/regex_internal.h (isblank): Likewise.
53182         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53183         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53184
53185 2007-06-05  Bruno Haible  <bruno@clisp.org>
53186
53187         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53188         ia64.
53189         * modules/printf-safe: New file.
53190         * modules/fprintf-posix (Depends-on): Add printf-safe.
53191         * modules/printf-posix (Depends-on): Likewise.
53192         * modules/snprintf-posix (Depends-on): Likewise.
53193         * modules/sprintf-posix (Depends-on): Likewise.
53194         * modules/vasnprintf-posix (Depends-on): Likewise.
53195         * modules/vasprintf-posix (Depends-on): Likewise.
53196         * modules/vfprintf-posix (Depends-on): Likewise.
53197         * modules/vprintf-posix (Depends-on): Likewise.
53198         * modules/vsnprintf-posix (Depends-on): Likewise.
53199         * modules/vsprintf-posix (Depends-on): Likewise.
53200         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53201         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53202         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53203         "no" on i386, x86_64, ia64.
53204         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53205         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53206         on i386, x86_64, ia64.
53207         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53208         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53209         on i386, x86_64, ia64.
53210         * tests/test-vasnprintf-posix.c: Include float.h.
53211         (LDBL80_WORDS): New macro.
53212         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53213         on i386, x86_64, ia64.
53214         * tests/test-vasprintf-posix.c: Include float.h.
53215         (LDBL80_WORDS): New macro.
53216         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53217         on i386, x86_64, ia64.
53218         * tests/test-snprintf-posix.c: Include float.h.
53219         * tests/test-sprintf-posix.c: Likewise.
53220         * tests/test-vsnprintf-posix.c: Likewise.
53221         * tests/test-vsprintf-posix.c: Likewise.
53222
53223 2007-06-05  Bruno Haible  <bruno@clisp.org>
53224
53225         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53226         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53227         non-IEEE numbers on i386, x86_64, ia64.
53228         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53229         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53230         * tests/test-isnanl.h: Include float.h.
53231         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53232
53233 2007-06-05  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53236         also the %a / %A. Handle the %a / %A code before this extra handling.
53237
53238 2007-06-05  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53241         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53242
53243 2007-06-05  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53246         typo in variable name.
53247
53248 2007-06-05  Eric Blake  <ebb9@byu.net>
53249
53250         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53251         Reported by Simon Josefsson.
53252
53253 2007-06-04  Bruno Haible  <bruno@clisp.org>
53254
53255         Avoid test failures on some PowerPC platforms.
53256         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53257         Define differently for PowerPC.
53258         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53259         Reported by Gary V. Vaughan <gary@gnu.org>.
53260
53261 2007-06-02  Bruno Haible  <bruno@clisp.org>
53262
53263         Fix test-stdint failure on FreeBSD/ia64.
53264         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53265         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53266         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53267         * doc/headers/stdint.texi: Update.
53268
53269 2007-06-01  Bruno Haible  <bruno@clisp.org>
53270
53271         * tests/test-binary-io.c (main): Pass a third argument to open().
53272         Reported by Gary V. Vaughan <gary@gnu.org>.
53273
53274 2007-06-01  Bruno Haible  <bruno@clisp.org>
53275
53276         * doc/functions/frexpl.texi: Update for mingw.
53277
53278 2007-06-01  Bruno Haible  <bruno@clisp.org>
53279
53280         * tests/test-lseek.c (main): Disable test of errno for invalid third
53281         argument.
53282         * doc/functions/lseek.texi: Update.
53283         Reported by Gary V. Vaughan <gary@gnu.org>.
53284
53285 2007-05-28  Bruno Haible  <bruno@clisp.org>
53286
53287         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53288
53289 2007-05-31  Eric Blake  <ebb9@byu.net>
53290
53291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53292         cross compiling.
53293
53294 2007-05-30  Eric Blake  <ebb9@byu.net>
53295         and Bruno Haible  <bruno@clisp.org>
53296
53297         Work around mingw test failures exposed by m4-1.4.9b.
53298         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53299         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53300         moment.
53301
53302 2007-05-30  Bruno Haible  <bruno@clisp.org>
53303
53304         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53305         assuming that they are closed. Needed on HP-UX 11.
53306
53307 2007-05-29  Bruno Haible  <bruno@clisp.org>
53308
53309         Fix a problem with #include_next.
53310         * lib/dirent_.h: Split the double-inclusion guard.
53311         * lib/fcntl_.h: Likewise.
53312         * lib/float_.h: Likewise.
53313         * lib/iconv_.h: Likewise.
53314         * lib/inttypes_.h: Likewise.
53315         * lib/locale_.h: Likewise.
53316         * lib/math_.h: Likewise.
53317         * lib/netinet_in_.h: Likewise.
53318         * lib/search_.h: Likewise.
53319         * lib/signal_.h: Likewise.
53320         * lib/stdint_.h: Likewise.
53321         * lib/stdio_.h: Likewise.
53322         * lib/stdlib_.h: Likewise.
53323         * lib/string_.h: Likewise.
53324         * lib/sys_select_.h: Likewise.
53325         * lib/sys_socket_.h: Likewise.
53326         * lib/sys_stat_.h: Likewise.
53327         * lib/sys_time_.h: Likewise.
53328         * lib/sysexits_.h: Likewise.
53329         * lib/time_.h: Likewise.
53330         * lib/unistd_.h: Likewise.
53331         * lib/wchar_.h: Likewise.
53332         * lib/wctype_.h: Likewise.
53333
53334 2007-05-29  Bruno Haible  <bruno@clisp.org>
53335
53336         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53337         for the moment.
53338
53339 2007-05-29  Bruno Haible  <bruno@clisp.org>
53340
53341         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53342         invocation.
53343         Reported by Eric Blake.
53344
53345 2007-05-29  Bruno Haible  <bruno@clisp.org>
53346
53347         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53348         compiling case.
53349
53350 2007-05-29  Eric Blake  <ebb9@byu.net>
53351             Bruno Haible  <bruno@clisp.org>
53352
53353         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53354         cross compiles.
53355
53356 2007-05-28  Eric Blake  <ebb9@byu.net>
53357
53358         * modules/closein-tests (test_closein_LDADD): Support test on
53359         cygwin with libtool.
53360
53361 2007-05-28  Bruno Haible  <bruno@clisp.org>
53362
53363         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53364         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53365         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53366         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53367         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53368         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53369         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53370         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53371         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53372
53373 2007-05-28  Eric Blake  <ebb9@byu.net>
53374
53375         Unconditionally include <config.h> in unit tests.
53376         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53377         * tests/test-allocsa.c, tests/test-arcfour.c,
53378         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53379         tests/test-array_list.c, tests/test-array_oset.c,
53380         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53381         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53382         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53383         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53384         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53385         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53386         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53387         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53388         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53389         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53390         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53391         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53392         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53393         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53394         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53395         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53396         test-md5.c, test-memmem.c, test-printf-posix.c,
53397         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53398         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53399         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53400         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53401         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53402         test-vasnprintf-posix2.c, test-vasnprintf.c,
53403         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53404         test-vfprintf-posix.c, test-vprintf-posix.c,
53405         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53406         test-xvasprintf.c: Likewise.
53407
53408 2007-05-28  Bruno Haible  <bruno@clisp.org>
53409
53410         * gnulib-tool (func_import): Remember the --with-tests command-line
53411         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53412         Reported by Eric Blake.
53413
53414 2007-05-28  Bruno Haible  <bruno@clisp.org>
53415
53416         * modules/ftell-tests: New file.
53417         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53418         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53419
53420         * lib/ftell.c: New file.
53421         * modules/ftell: New file.
53422         * m4/ftell.m4: New file.
53423         * doc/functions/ftell.texi: Update.
53424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53425         REPLACE_FTELL.
53426         * lib/stdio_.h (rpl_ftell): New declaration.
53427         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53428         REPLACE_FTELL.
53429
53430 2007-05-28  Eric Blake  <ebb9@byu.net>
53431
53432         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53433
53434 2007-05-28  Bruno Haible  <bruno@clisp.org>
53435
53436         * modules/fseek-tests: New file.
53437         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53438         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53439
53440         * lib/fseek.c: New file.
53441         * modules/fseek: New file.
53442         * m4/fseek.m4: New file.
53443         * doc/functions/fseek.texi: Update.
53444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53445         REPLACE_FSEEK.
53446         * lib/stdio_.h (rpl_fseek): New declaration.
53447         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53448         REPLACE_FSEEK.
53449
53450 2007-05-28  Bruno Haible  <bruno@clisp.org>
53451
53452         * lib/stdio_.h (fflush): More comments.
53453
53454 2007-05-28  Bruno Haible  <bruno@clisp.org>
53455
53456         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53457         runtime test.
53458
53459 2007-05-28  Eric Blake  <ebb9@byu.net>
53460
53461         Improve lseek module.
53462         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53463         * lib/unistd_.h (lseek): Scale back link warning message.
53464         * tests/test-lseek.c: Beef up test.
53465         * tests/test-lseek.sh: Exercise more facets of lseek.
53466         Reported by Bruno Haible.
53467
53468 2007-05-28  Bruno Haible  <bruno@clisp.org>
53469
53470         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53471         to define.
53472
53473 2007-05-27  Bruno Haible  <bruno@clisp.org>
53474
53475         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53476
53477 2007-05-27  Bruno Haible  <bruno@clisp.org>
53478
53479         * modules/openmp: New file.
53480         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53481         Noah Misch.
53482
53483 2007-05-26  Bruno Haible  <bruno@clisp.org>
53484
53485         * modules/chdir-long (Depends-on): Add fchdir.
53486         * modules/chdir-safer (Depends-on): Likewise.
53487         * modules/fts (Depends-on): Likewise.
53488         * modules/fts-lgpl (Depends-on): Likewise.
53489         * modules/openat (Depends-on): Likewise.
53490         * modules/savewd (Depends-on): Likewise.
53491
53492 2007-05-24  Eric Blake  <ebb9@byu.net>
53493
53494         Fix lseek on mingw.
53495         * modules/lseek: New module.
53496         * m4/lseek.m4: New file.
53497         * lib/lseek.c: New file.
53498         * modules/lseek-tests: New file.
53499         * tests/test-lseek.c: New file.
53500         * tests/test-lseek.sh: New file.
53501         * MODULES.html.sh: Document lseek module.
53502         * modules/fflush (Depends-on): Add lseek, fseeko.
53503         * modules/fseeko (Depends-on): Likewise.
53504         * modules/ftello (Depends-on): Likewise.
53505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53506         broken.
53507         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53508         broken.
53509         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53510         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53511         * lib/ftello.c (rpl_ftello): Likewise.
53512         * tests/test-fseeko.c (main): Test this.
53513         * tests/test-fseeko.sh: Likewise.
53514         * tests/test-ftello.c (main): Likewise.
53515         * tests/test-ftello.sh: Likewise.
53516         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53517         implies replacing fseek.
53518         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53519         HAVE_FTELLO.
53520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53521         * modules/unistd (Makefile.am): Likewise.
53522         * lib/unistd_.h (lseek): Declare a replacement.
53523         * doc/functions/lseek.texi (lseek): Document this fix.
53524         * doc/functions/fseek.texi (fseek): Likewise.
53525         * doc/functions/ftell.texi (ftell): Likewise.
53526
53527 2007-05-24  Bruno Haible  <bruno@clisp.org>
53528
53529         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53530         in the printed representation of a NaN.
53531         * tests/test-vasprintf-posix.c (test_function): Likewise.
53532         * tests/test-snprintf-posix.h (test_function): Likewise.
53533         * tests/test-sprintf-posix.h (test_function): Likewise.
53534         Reported by Eric Blake.
53535
53536 2007-05-23  Eric Blake  <ebb9@byu.net>
53537
53538         Fix fseeko/ftello on cygwin 1.5.24.
53539         * doc/functions/fseeko.texi (fseeko): Document the fix.
53540         * doc/functions/ftello.texi (ftello): Document the fix.
53541         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53542         * doc/functions/stdout.text (stdout): New file.
53543         * doc/functions/stderr.text (stderr): New file.
53544         * doc/gnulib.texi (Function Substitutes): Use new files.
53545         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53546         prior to 1.7.0.
53547         * tests/test-ftello.c (main): Likewise for ftello.
53548         * tests/test-fseeko.sh: New file.
53549         * tests/test-ftello.sh: New file.
53550         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53551         with seekable stdin.
53552         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53553         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53554         (gl_REPLACE_FSEEKO): New macro.
53555         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53556         * modules/fseeko (Files): Distribute fseeko.c.
53557         * modules/ftello (Files): Distribute ftello.c.
53558         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53559         mode.
53560         * lib/ftello.c (rpl_ftello): New file.
53561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53562         fseeko, ftello.
53563         (gl_STDIN_LARGE_OFFSET): New macro.
53564         * modules/stdio (Makefile.am): Perform the replacement.
53565         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53566
53567 2007-05-23  Bruno Haible  <bruno@clisp.org>
53568
53569         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53570         GNULIB_POSIXCHECK is defined.
53571
53572 2007-05-21  Bruno Haible  <bruno@clisp.org>
53573
53574         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53575         Check also the output for NaN arguments. When cross-compiling, guess
53576         no on IRIX.
53577         * lib/vasnprintf.c: Update comments.
53578         * tests/test-vasnprintf-posix.c (strisnan): New function.
53579         (test_function): Use it.
53580         * tests/test-vasprintf-posix.c (strisnan): New function.
53581         (test_function): Use it.
53582         * tests/test-snprintf-posix.h (strisnan): New function.
53583         (test_function): Use it.
53584         * tests/test-sprintf-posix.h (strisnan): New function.
53585         (test_function): Use it.
53586         Reported by Eric Blake.
53587
53588 2007-05-20  Bruno Haible  <bruno@clisp.org>
53589
53590         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53591         numbers that fails on BeOS.
53592         * doc/functions/frexpl.texi: Update.
53593
53594 2007-05-20  Jim Meyering  <jim@meyering.net>
53595
53596         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53597         forced upon us by glibc-2.6.
53598
53599 2007-05-20  Bruno Haible  <bruno@clisp.org>
53600
53601         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53602         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53603         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53604         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53605         NEED_PRINTF_INFINITE.
53606         (is_infinitel): New function.
53607         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53609         gl_PREREQ_VASNPRINTF_INFINITE.
53610         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53612         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53613         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53614         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53615         gl_PREREQ_VASNPRINTF_INFINITE.
53616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53620         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53623         * doc/functions/fprintf.texi: Update.
53624         * doc/functions/printf.texi: Update.
53625         * doc/functions/snprintf.texi: Update.
53626         * doc/functions/sprintf.texi: Update.
53627         * doc/functions/vfprintf.texi: Update.
53628         * doc/functions/vprintf.texi: Update.
53629         * doc/functions/vsnprintf.texi: Update.
53630         * doc/functions/vsprintf.texi: Update.
53631
53632 2007-05-20  Bruno Haible  <bruno@clisp.org>
53633
53634         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53635         was not found in libc.
53636         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53637
53638 2007-05-20  Bruno Haible  <bruno@clisp.org>
53639
53640         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53641         printed as "-nan" instead of "nan".
53642         * tests/test-vasprintf-posix.c (test_function): Likewise.
53643         * tests/test-snprintf-posix.h (test_function): Likewise.
53644         * tests/test-sprintf-posix.h (test_function): Likewise.
53645         Needed for HP-UX 11.
53646
53647 2007-05-20  Jim Meyering  <jim@meyering.net>
53648
53649         Fix buggy test for the fchownat-deref bug.
53650         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53651         symlink required for the run-test.  Without it, this test would
53652         always declare that fchownat doesn't work, and client code would
53653         unnecessarily use the replacement function with fixed libc.
53654         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53655         Reported by Greg Schafer.
53656
53657 2007-05-19  Bruno Haible  <bruno@clisp.org>
53658
53659         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53660         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53661         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53662         Needed for IRIX 6.5 and Solaris 2.5.1.
53663
53664 2007-05-19  Bruno Haible  <bruno@clisp.org>
53665
53666         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53667         (test_function): Skip tests involving -0.0 on platforms where
53668         -0.0 = 0.0.
53669         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53670         (test_function): Skip tests involving -0.0 on platforms where
53671         -0.0 = 0.0.
53672         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53673         (test_function): Skip tests involving -0.0 on platforms where
53674         -0.0 = 0.0.
53675         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53676         (test_function): Skip tests involving -0.0 on platforms where
53677         -0.0 = 0.0.
53678         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53679         tests.
53680         * tests/test-printf-posix.h (test_function): Likewise.
53681         * tests/test-printf-posix.output: Remove all -0.0 related results.
53682         Needed for IRIX 6.5.
53683
53684 2007-05-19  Bruno Haible  <bruno@clisp.org>
53685
53686         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53687         printed as "nan0x7fffffff" instead of "nan".
53688         * tests/test-vasprintf-posix.c (test_function): Likewise.
53689         * tests/test-snprintf-posix.h (test_function): Likewise.
53690         * tests/test-sprintf-posix.h (test_function): Likewise.
53691         * tests/test-fprintf-posix.h (NaN): Remove macro.
53692         (test_function): Remove all NaN related tests.
53693         * tests/test-printf-posix.h (NaN): Remove macro.
53694         (test_function): Remove all NaN related tests.
53695         * tests/test-printf-posix.output: Remove all NaN related results.
53696         Needed for IRIX 6.5.
53697
53698 2007-05-19  Bruno Haible  <bruno@clisp.org>
53699
53700         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53701         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53702
53703 2007-05-19  Bruno Haible  <bruno@clisp.org>
53704
53705         * lib/float_.h: New file.
53706         * m4/float_h.m4: New file.
53707         * modules/float: New file.
53708         * modules/isnanl (Dependencies): Add float.
53709         * modules/isnanl-nolibm (Dependencies): Likewise.
53710         * modules/mathl (Dependencies): Likewise.
53711         * modules/printf-frexpl (Dependencies): Likewise.
53712         * modules/signbit (Dependencies): Likewise.
53713         * modules/vasnprintf (Dependencies): Likewise.
53714         * doc/headers/float.texi: Update.
53715
53716 2007-05-19  Jim Meyering  <jim@meyering.net>
53717
53718         * lib/utimens.c (gl_futimens): Rename from futimens,
53719         now that glibc-2.6 declares futimens.
53720         * lib/utimens.h: Likewise.
53721
53722 2007-05-19  Bruno Haible  <bruno@clisp.org>
53723
53724         Avoid test failures on mingw.
53725         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53726         * tests/test-printf-posix.sh: Likewise.
53727         * tests/test-vfprintf-posix.sh: Likewise.
53728         * tests/test-vprintf-posix.sh: Likewise.
53729
53730 2007-05-19  Bruno Haible  <bruno@clisp.org>
53731
53732         Fix *printf result for NaN, Inf, -0.0 on mingw.
53733         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53734         * lib/vasnprintf.c: Include math.h and isnan.h.
53735         (is_infinite_or_zero): New function.
53736         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53737         values in the %f, %F, %e, %E, %g, %G directives.
53738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53739         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53740         gl_PRINTF_INFINITE and test its result. Invoke
53741         gl_PREREQ_VASNPRINTF_INFINITE.
53742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53743         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53744         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53746         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53749         * doc/functions/fprintf.texi: Update.
53750         * doc/functions/printf.texi: Update.
53751         * doc/functions/snprintf.texi: Update.
53752         * doc/functions/sprintf.texi: Update.
53753         * doc/functions/vfprintf.texi: Update.
53754         * doc/functions/vprintf.texi: Update.
53755         * doc/functions/vsnprintf.texi: Update.
53756         * doc/functions/vsprintf.texi: Update.
53757
53758 2007-05-19  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53761         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53762         Instead of multiplying with 10^k, set extra_zeroes to k.
53763         (scale10_round_long_double): Remove function.
53764
53765 2007-05-18  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53768         introduced on 2007-05-06.
53769
53770 2007-05-18  Bruno Haible  <bruno@clisp.org>
53771
53772         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53773         %g directives.
53774         * tests/test-vasprintf-posix.c (test_function): Likewise.
53775         * tests/test-snprintf-posix.h (test_function): Likewise.
53776         * tests/test-sprintf-posix.h (test_function): Likewise.
53777
53778 2007-05-18  Bruno Haible  <bruno@clisp.org>
53779
53780         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53781         (strmatch): New function.
53782         (test_function): Test the %f directive on numbers of various exponents.
53783         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53784         (strmatch): New function.
53785         (test_function): Test the %f directive on numbers of various exponents.
53786         * tests/test-snprintf-posix.h (strmatch): New function.
53787         (test_function): Test the %f directive on numbers of various exponents.
53788         * tests/test-sprintf-posix.h (strmatch): New function.
53789         (test_function): Test the %f directive on numbers of various exponents.
53790         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53791         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53792         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53793         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53794
53795 2007-05-18  Bruno Haible  <bruno@clisp.org>
53796
53797         Add support for 'long double' number output.
53798         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53799         * lib/vasnprintf.c: Include math.h and float+.h.
53800         (mp_limb_t): New type.
53801         (GMP_LIMB_BITS): New macro.
53802         (mp_twolimb_t): New type.
53803         (GMP_TWOLIMB_BITS): New macro.
53804         (mpn_t): New type.
53805         (multiply, divide, convert_to_decimal, decode_long_double,
53806         scale10_round_long_double, scale10_round_decimal_long_double,
53807         floorlog10l): New functions.
53808         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53809         for the %f, %F, %e, %E, %g, %G directives.
53810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53812         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53813         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53816         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53821         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53822         * modules/snprintf-posix (Depends-on): Likewise.
53823         * modules/sprintf-posix (Depends-on): Likewise.
53824         * modules/vasnprintf-posix (Depends-on): Likewise.
53825         * modules/vasprintf-posix (Depends-on): Likewise.
53826         * modules/vfprintf-posix (Depends-on): Likewise.
53827         * modules/vsnprintf-posix (Depends-on): Likewise.
53828         * modules/vsprintf-posix (Depends-on): Likewise.
53829         * modules/vasnprintf (Files): Add lib/float+.h.
53830         * doc/functions/fprintf.texi: Update.
53831         * doc/functions/printf.texi: Update.
53832         * doc/functions/snprintf.texi: Update.
53833         * doc/functions/sprintf.texi: Update.
53834         * doc/functions/vfprintf.texi: Update.
53835         * doc/functions/vprintf.texi: Update.
53836         * doc/functions/vsnprintf.texi: Update.
53837         * doc/functions/vsprintf.texi: Update.
53838
53839 2007-05-18  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53842
53843 2007-05-18  Bruno Haible  <bruno@clisp.org>
53844
53845         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53846         for printing 64-bit integers. Needed for mingw.
53847
53848 2007-05-18  Bruno Haible  <bruno@clisp.org>
53849
53850         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53851         gl_FUNC_FREXPL_WORKS.
53852         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53853
53854 2007-05-18  Bruno Haible  <bruno@clisp.org>
53855
53856         * modules/frexpl-nolibm-tests: New file.
53857
53858         * modules/frexpl-nolibm: New file.
53859         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53860
53861 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53864         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53865         GCC 4.2, which otherwise issues a lot of warnings.
53866         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53867         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53868         Likewise.
53869         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53870         * modules/iconv_open (iconv.h): Likewise.
53871         * modules/locale (locale.h): Likewise.
53872         * modules/netinet_in (netinet/in.h): Likewise.
53873         * modules/sys_select (sys_select.h): Likewise.
53874         * modules/sys_socket (sys/socket.h): Likewise.
53875         * modules/sys_stat (sys/stat.h): Likewise.
53876         * modules/sysexits (sysexits.h): Likewise.
53877         * modules/unistd (unistd.h): Likewise.
53878
53879 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53880
53881         * modules/closein-tests (Makefile.am): Distribute
53882         `test-closein.sh'.
53883
53884 2007-05-17  Bruno Haible  <bruno@clisp.org>
53885
53886         * tests/test-printf-posix.output: Renamed from
53887         tests/test-fprintf-posix.out.
53888         * modules/fprintf-posix-tests: Update.
53889         * modules/printf-posix-tests: Update.
53890         * modules/vfprintf-posix-tests: Update.
53891         * modules/vprintf-posix-tests: Update.
53892         * tests/test-fprintf-posix.sh: Update.
53893         * tests/test-printf-posix.sh: Update.
53894         * tests/test-vfprintf-posix.sh: Update.
53895         * tests/test-vprintf-posix.sh: Update.
53896         Reported by Ralf Wildenhues.
53897
53898 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53901         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53902         GCC 4.2, which otherwise issues a lot of warnings.
53903         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53904         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53905         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53906         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53907         it should no longer be needed.
53908         * lib/string_.h: Likewise.
53909         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53910         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53911         * modules/inttypes (inttypes.h): Likewise.
53912         * modules/math (math.h): Likewise.
53913         * modules/search (search.h): Likewise.
53914         * modules/signal (signal.h): Likewise.
53915         * modules/stdint (stdint.h): Likewise.
53916         * modules/stdio (stdio.h): Likewise.
53917         * modules/stdlib (stdlib.h): Likewise.
53918         * modules/string (string.h): Likewise.
53919         * modules/sys_time (sys/time.h): Likewise.
53920         * modules/time (time.h): Likewise.
53921         * modules/wchar (wchar.h): Likewise.
53922         * modules/wctype (wtype.h): Likewise.
53923
53924 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53925
53926         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53927
53928 2007-05-13  Bruno Haible  <bruno@clisp.org>
53929
53930         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53931         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53932         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53933         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53934         (gl_PREREQ_STRTOK_R): Don't require it here.
53935
53936 2007-05-13  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53939         when used in C++ mode.
53940
53941 2007-05-12  Bruno Haible  <bruno@clisp.org>
53942
53943         * lib/linebuffer.h: Tweak doc.
53944         * lib/linebuffer.c: Likewise.
53945
53946 2007-05-12  James Youngman  <jay@gnu.org>
53947
53948         * lib/linebuffer.c (readlinebuffer_delim): New function,
53949         like readlinebuffer, but use a caller-specified delimiter.
53950         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53951         as the delimiter.
53952         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53953
53954 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53955
53956         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53957         * modules/openat (Files): Remove openat-die.c.
53958         (Depends-on): Add openat-die.
53959         * modules/openat-die: New module.
53960
53961 2007-05-06  Bruno Haible  <bruno@clisp.org>
53962
53963         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53964         Update with info about Cygwin.
53965         * doc/functions/fprintf.texi: Update.
53966         * doc/functions/printf.texi: Update.
53967         * doc/functions/snprintf.texi: Update.
53968         * doc/functions/sprintf.texi: Update.
53969         * doc/functions/vfprintf.texi: Update.
53970         * doc/functions/vprintf.texi: Update.
53971         * doc/functions/vsnprintf.texi: Update.
53972         * doc/functions/vsprintf.texi: Update.
53973         Reported by Eric Blake.
53974
53975 2007-05-06  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53978         padding ourselves for the floating-point directives.
53979         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53981         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53982         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53983         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53984         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53985         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53990         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53991         * tests/test-snprintf-posix.h (test_function): Also check the width
53992         and some flags in the %f directive.
53993         * tests/test-sprintf-posix.h (test_function): Likewise.
53994         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53995         * tests/test-vasprintf-posix.c (test_function): Likewise.
53996         * doc/functions/fprintf.texi: Update.
53997         * doc/functions/printf.texi: Update.
53998         * doc/functions/snprintf.texi: Update.
53999         * doc/functions/sprintf.texi: Update.
54000         * doc/functions/vfprintf.texi: Update.
54001         * doc/functions/vprintf.texi: Update.
54002         * doc/functions/vsnprintf.texi: Update.
54003         * doc/functions/vsprintf.texi: Update.
54004
54005 2007-05-06  Bruno Haible  <bruno@clisp.org>
54006
54007         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54008         pass the ' flag character to sprintf or snprintf.
54009         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54012         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54013         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54015         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54016         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54017         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54018         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54020         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54021         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54022         flag.
54023         * tests/test-sprintf-posix.h (test_function): Likewise.
54024         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54025         * tests/test-vasprintf-posix.c (test_function): Likewise.
54026         * doc/functions/fprintf.texi: Update.
54027         * doc/functions/printf.texi: Update.
54028         * doc/functions/snprintf.texi: Update.
54029         * doc/functions/sprintf.texi: Update.
54030         * doc/functions/vfprintf.texi: Update.
54031         * doc/functions/vprintf.texi: Update.
54032         * doc/functions/vsnprintf.texi: Update.
54033         * doc/functions/vsprintf.texi: Update.
54034
54035 2007-05-01  Bruno Haible  <bruno@clisp.org>
54036
54037         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54038
54039 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54040
54041         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54042         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54043
54044 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54045
54046         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54047         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54049
54050 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54051
54052         * lib/argp-help.c (struct hol_entry): New member `ord'.
54053         (HOL_ENTRY_PTRCMP): Use ord for comparison
54054         (hol_sort): Initialize ord.
54055
54056 2007-05-01  Bruno Haible  <bruno@clisp.org>
54057
54058         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54059         Reported by Eric Blake.
54060         * doc/gnulib.texi (Function Substitutes): Update.
54061
54062 2007-05-01  Bruno Haible  <bruno@clisp.org>
54063
54064         * doc/functions.texi: Remove file, now redundant through
54065         doc/functions/*.texi.
54066
54067 2007-05-01  Bruno Haible  <bruno@clisp.org>
54068
54069         * modules/argp (Depends-on): Add sleep.
54070
54071 2007-05-01  Bruno Haible  <bruno@clisp.org>
54072
54073         * modules/sleep-tests: New file.
54074         * tests/test-sleep.c: New file.
54075
54076         * modules/sleep: New file.
54077         * lib/sleep.c: New file.
54078         * m4/sleep.m4: New file.
54079         * lib/unistd_.h (sleep): New declaration.
54080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54081         HAVE_SLEEP.
54082         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54083         * doc/functions/sleep.texi: Document the sleep module.
54084
54085 2007-05-01  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/sigprocmask.h: Remove file.
54088         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54089         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54090         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54091         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54092         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54093         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54094         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54095         HAVE_SIGSET_T as a shell variable.
54096         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54097         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54098         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54099         (Depends-on): Add signal. Remove verify.
54100         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54101         (Include): Mention <signal.h> instead of sigprocmask.h.
54102         * NEWS: Mention the change.
54103         * lib/fatal-signal.c: Don't include sigprocmask.h.
54104
54105 2007-05-01  Bruno Haible  <bruno@clisp.org>
54106
54107         * modules/signal: New file.
54108         * lib/signal_.h: New file.
54109         * m4/signal_h.m4: New file.
54110
54111 2007-05-01  Bruno Haible  <bruno@clisp.org>
54112
54113         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54114         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54115         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54116         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54117
54118 2007-05-01  Bruno Haible  <bruno@clisp.org>
54119
54120         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54121         configure time.
54122         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54123         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54124         * modules/sys_stat (Makefile.am): Substitute their values into
54125         sys/stat.h.
54126
54127 2007-05-01  Bruno Haible  <bruno@clisp.org>
54128
54129         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54130         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54131         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54132
54133 2007-05-01  Bruno Haible  <bruno@clisp.org>
54134
54135         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54136         'assert' module here.
54137
54138 2007-05-01  Bruno Haible  <bruno@clisp.org>
54139
54140         * doc/functions/*.texi: New files.
54141         * doc/functions/google-ranking.txt: New file.
54142         * doc/gnulib.texi (Function Substitutes): New chapter.
54143         (ctime, inet_ntoa): Remove sections.
54144         * doc/ctime.texi: Remove file.
54145         * doc/inet_ntoa.texi: Remove file.
54146         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54147         dependencies.
54148         (%.info): New rule, specifying a --reference-limit.
54149
54150 2007-05-01  Bruno Haible  <bruno@clisp.org>
54151
54152         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54153
54154 2007-05-01  Bruno Haible  <bruno@clisp.org>
54155
54156         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54157         the portability of 'mkdir' to mingw systems.
54158
54159 2007-05-01  Bruno Haible  <bruno@clisp.org>
54160
54161         * doc/headers/google-ranking.txt: New file.
54162
54163 2007-04-30  Eric Blake  <ebb9@byu.net>
54164
54165         Prefer fseeko to fseek.
54166         * modules/getpass (Depends-on): Add fseeko.
54167         * lib/getpass.c (getpass): Use fseeko, not fseek.
54168
54169 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54170
54171         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54172         assumes the sorting is stable, while most qsort implementations
54173         are not.  Use argument addresses to ensure they never compare as
54174         equal.
54175
54176         * tests/test-argp-2.sh (usage-indent test): Fix output
54177         (func_compare): Restore diff options
54178         * tests/test-argp.c: Restore #include "progname.h"
54179
54180 2007-04-29  Bruno Haible  <bruno@clisp.org>
54181
54182         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54183         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54184         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54186         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54187         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54188         (TESTS, check_PROGRAMS): Add test-snprintf.
54189         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54190         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54191         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54192         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54193         assertions that fail on HP-UX, OSF/1, or IRIX.
54194         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54195
54196 2007-04-29  Bruno Haible  <bruno@clisp.org>
54197
54198         * MODULES.html.sh (posix_functions): Remove 'contents'.
54199
54200 2007-04-29  Karl Berry  <karl@gnu.org>
54201
54202         * config/srclist.txt (gendocs_template_min): new entry.
54203
54204 2007-04-29  Bruno Haible  <bruno@clisp.org>
54205
54206         Work around fpurge bug on BSD systems.
54207         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54208         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54209         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54210         fpurge to rpl_fpurge if the system already has this function.
54211         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54212         the case where the system already has this function. Correct invariants
54213         on BSD systems.
54214         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54215         BSD systems.
54216
54217 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54218
54219         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54220         proposed by Sven Verdoolaege.
54221
54222         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54223         options.
54224         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54225         (usage and help tests): Update
54226
54227 2007-04-29  Bruno Haible  <bruno@clisp.org>
54228
54229         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54230         Print more information in case of failure. Disable a test on BeOS.
54231
54232 2007-04-29  Bruno Haible  <bruno@clisp.org>
54233
54234         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54235         This helps debugging on systems on which no gdb is available.
54236
54237 2007-04-29  Bruno Haible  <bruno@clisp.org>
54238
54239         * lib/freading.h: Improve comments.
54240         * lib/fwriting.h: Likewise.
54241         * tests/test-freading.c (main): Don't check freading immediately after
54242         repositioning. Needed for glibc.
54243
54244 2007-04-29  Bruno Haible  <bruno@clisp.org>
54245
54246         * lib/freading.c (freading): Trivial simplification.
54247
54248 2007-04-28  Bruno Haible  <bruno@clisp.org>
54249
54250         * tests/test-fwriting.c (main): Also test the interaction between
54251         fflush and fwriting.
54252         * modules/fwriting-tests (Depends-on): Add fflush.
54253
54254         * tests/test-freading.c (main): Also test the interaction between
54255         fflush and freading.
54256         * modules/freading-tests (Depends-on): Add fflush.
54257
54258 2007-04-28  Bruno Haible  <bruno@clisp.org>
54259
54260         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54261         fseeko and ftello.
54262         Suggested by Eric Blake.
54263
54264 2007-04-28  Jim Meyering  <jim@meyering.net>
54265
54266         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54267         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54268         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54269
54270 2007-04-27  Eric Blake  <ebb9@byu.net>
54271
54272         * doc/headers/assert.texi (assert.h): Document assert module use.
54273
54274 2007-04-27  Bruno Haible  <bruno@clisp.org>
54275
54276         * doc/headers/*.texi: New files.
54277         * doc/gnulib.texi (Header File Substitutes): New chapter.
54278         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54279         dependencies.
54280         (standards.info ,standards.html, standards.dvi): Update dependencies.
54281         (mostlyclean, clean): New targets.
54282
54283 2007-04-27  Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54286         * modules/sysexits (Files, Makefile.am): Update.
54287
54288         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54289         * modules/sys_socket (Files, Makefile.am): Update.
54290
54291         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54292         * modules/sys_stat (Files, Makefile.am): Update.
54293
54294 2007-04-27  Eric Blake  <ebb9@byu.net>
54295
54296         * lib/freading.h: Improve comments.
54297         * lib/fwriting.h: Likewise.
54298         * lib/fflush.c: Likewise.
54299
54300         Fix closein for mingw.
54301         * modules/closein-tests: Add tests for closein.
54302         * tests/test-closein.c: New file.
54303         * tests/test-closein.sh: Likewise.
54304         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54305         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54306
54307 2007-04-27  Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54310         version is < 6.
54311         * lib/math_.h [__DECC]: Likewise.
54312         * lib/stdio_.h [__DECC]: Likewise.
54313         * lib/stdlib_.h [__DECC]: Likewise.
54314         * lib/string_.h [__DECC]: Likewise.
54315         * lib/time_.h [__DECC]: Likewise.
54316         * lib/wchar_.h [__DECC]: Likewise.
54317         * lib/wctype_.h [__DECC]: Likewise.
54318
54319 2007-04-27  Bruno Haible  <bruno@clisp.org>
54320
54321         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54322
54323 2007-04-27  Bruno Haible  <bruno@clisp.org>
54324
54325         * lib/fflush.c: Add comments.
54326         * modules/fpurge-tests (Depends-on): Add fflush.
54327         * modules/freadable-tests (Depends-on): Likewise.
54328         * modules/fwritable-tests (Depends-on): Likewise.
54329
54330 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54331
54332         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54333         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54334         Report by Bruno Haible <bruno@clisp.org>.
54335
54336 2007-04-26  Eric Blake  <ebb9@byu.net>
54337
54338         Fix fflush on mingw.
54339         * modules/fflush (Depends-on): Add freading.
54340         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54341         but unread data.
54342
54343 2007-04-26  Eric Blake  <ebb9@byu.net>
54344         and Bruno Haible  <bruno@clisp.org>
54345
54346         Implement freading and fwriting.
54347         * lib/freading.c: New file.
54348         * lib/freading.h: Likewise.
54349         * m4/freading.m4: Likewise.
54350         * modules/freading: Likewise.
54351         * modules/freading-tests: Likewise.
54352         * tests/test-freading.c: Likewise.
54353         * lib/fwriting.c: New file.
54354         * lib/fwriting.h: Likewise.
54355         * m4/fwriting.m4: Likewise.
54356         * modules/fwriting: Likewise.
54357         * modules/fwriting-tests: Likewise.
54358         * tests/test-fwriting.c: Likewise.
54359         * MODULES.html.sh (File stream based Input/Output): Mention them.
54360
54361 2007-04-26  Bruno Haible  <bruno@clisp.org>
54362
54363         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54364         'long' when we assume it.
54365         Suggested by Eric Blake.
54366
54367 2007-04-26  Bruno Haible  <bruno@clisp.org>
54368
54369         Ensure fseeko, ftello are declared on glibc systems.
54370         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54371         * modules/fseeko (configure.ac-early): Likewise.
54372         * modules/ftello (configure.ac-early): Likewise.
54373         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54374         AC_FUNC_FSEEKO for this.
54375         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54376         (gl_CHECK_FSEEKO): Remove macro.
54377
54378 2007-04-26  Bruno Haible  <bruno@clisp.org>
54379
54380         * tests/test-fflush.c (main): Also check the ftell result after
54381         fflush and fseek/fseeko.
54382         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54383         file descriptor position cache in the stream.
54384         * lib/fseeko.c (rpl_fseeko): Likewise.
54385
54386 2007-04-26  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/fflush-tests (Depends-on): Add fseeko.
54389
54390 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54391             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54392
54393         * lib/argz_.h: ensure error_t definition is obtained in same
54394         mechanism system argz.h would have.
54395         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54396         argz facilities are known bad.  Err on the side of caution if
54397         cross-compiling.
54398
54399 2007-04-25  Eric Blake  <ebb9@byu.net>
54400
54401         * lib/fpurge.c (includes): Use stdlib.h for free.
54402         * tests/test-fflush.c (main): Also test fflush-fseeko.
54403
54404 2007-04-25  Bruno Haible  <bruno@clisp.org>
54405
54406         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54407         * lib/fseeko.c: New file.
54408         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54409         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54410         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54411         gl_FUNC_FSEEKO.
54412         (gl_FUNC_FSEEKO): Invoke it.
54413         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54414         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54415         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54416
54417 2007-04-25  Bruno Haible  <bruno@clisp.org>
54418
54419         * modules/fflush (Depends-on): Add ftello.
54420
54421 2007-04-25  Bruno Haible  <bruno@clisp.org>
54422
54423         * modules/ftello-tests: New file.
54424         * tests/test-ftello.c: New file.
54425
54426         * modules/ftello: New file.
54427         * m4/ftello.m4: New file.
54428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54429         HAVE_FTELLO.
54430         * lib/stdio_.h (ftello): New declaration.
54431         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54432         HAVE_FTELLO.
54433
54434 2007-04-25  Bruno Haible  <bruno@clisp.org>
54435
54436         * modules/fseeko-tests: New file.
54437         * tests/test-fseeko.c: New file.
54438
54439         * modules/fseeko: New file.
54440         * m4/fseeko.m4: New file.
54441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54442         HAVE_FSEEKO.
54443         * lib/stdio_.h (fseeko): New declaration.
54444         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54445         HAVE_FSEEKO.
54446
54447 2007-04-25  Bruno Haible  <bruno@clisp.org>
54448
54449         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54450
54451 2007-04-25  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54454         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54455         * tests/test-unistd.c: Likewise.
54456         * tests/test-fcntl.c: Likewise.
54457
54458 2007-04-23  Eric Blake  <ebb9@byu.net>
54459
54460         * lib/fflush.c: Fix missing include.
54461         Reported by Bruno Haible.
54462
54463 2007-04-23  Bruno Haible  <bruno@clisp.org>
54464
54465         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54466         Reported by Eric Blake.
54467
54468 2007-04-23  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54471
54472 2007-04-23  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54475
54476 2007-04-23  Bruno Haible  <bruno@clisp.org>
54477
54478         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54479         Needed on HP-UX 11.
54480
54481 2007-04-16  Eric Blake  <ebb9@byu.net>
54482
54483         Make fflush rely on fpurge.
54484         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54485         open coding all variants.
54486         * modules/fflush (Depends-on): Add fpurge and unistd.
54487         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54488         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54489
54490         Fix --with-tests compilation on cygwin.
54491         * modules/argmatch-tests (Makefile.am): List gnulib library first
54492         in LDADD.
54493         * modules/argp-tests (Makefile.am): Likewise.
54494         * modules/array-list-tests (Makefile.am): Likewise.
54495         * modules/array-oset-tests (Makefile.am): Likewise.
54496         * modules/avltree-list-tests (Makefile.am): Likewise.
54497         * modules/avltree-oset-tests (Makefile.am): Likewise.
54498         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54499         * modules/carray-list-tests (Makefile.am): Likewise.
54500         * modules/dirname-tests (Makefile.am): Likewise.
54501         * modules/frexp-tests (Makefile.am): Likewise.
54502         * modules/isnanl-tests (Makefile.am): Likewise.
54503         * modules/linked-list-tests (Makefile.am): Likewise.
54504         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54505         * modules/lock-tests (Makefile.am): Likewise.
54506         * modules/rbtree-list-tests (Makefile.am): Likewise.
54507         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54508         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54509         * modules/tls-tests (Makefile.am): Likewise.
54510         * modules/tsearch-tests (Makefile.am): Likewise.
54511         * modules/xvasprintf-tests (Makefile.am): Likewise.
54512
54513         Fix fpurge for cygwin.
54514         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54515         value.
54516         * modules/fpurge-tests (Depends-on): Clean up trash.
54517
54518 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54519
54520         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54521
54522         * m4/autobuild.m4: Re-indent.
54523
54524 2007-04-13  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/fpurge-tests: New file.
54527         * tests/test-fpurge.c: New file.
54528
54529         * modules/fpurge: New file.
54530         * lib/fpurge.h: New file.
54531         * lib/fpurge.c: New file.
54532         * m4/fpurge.m4: New file.
54533
54534 2007-04-13  Bruno Haible  <bruno@clisp.org>
54535
54536         * modules/fbufmode-tests: New file.
54537         * tests/test-fbufmode.c: New file.
54538
54539         * modules/fbufmode: New file.
54540         * lib/fbufmode.h: New file.
54541         * lib/fbufmode.c: New file.
54542         * m4/fbufmode.m4: New file.
54543
54544 2007-04-13  Bruno Haible  <bruno@clisp.org>
54545
54546         * modules/fwritable-tests: New file.
54547         * tests/test-fwritable.c: New file.
54548
54549         * modules/fwritable: New file.
54550         * lib/fwritable.h: New file.
54551         * lib/fwritable.c: New file.
54552         * m4/fwritable.m4: New file.
54553
54554 2007-04-13  Bruno Haible  <bruno@clisp.org>
54555
54556         * modules/freadable-tests: New file.
54557         * tests/test-freadable.c: New file.
54558
54559         * modules/freadable: New file.
54560         * lib/freadable.h: New file.
54561         * lib/freadable.c: New file.
54562         * m4/freadable.m4: New file.
54563
54564 2007-04-13  Bruno Haible  <bruno@clisp.org>
54565
54566         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54567         MOSTLYCLEANFILES.
54568
54569 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54570
54571         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54572         gzip bootstrap.conf to avoid dragging in i18n machinery.
54573         (gnulib_tool_option): Use it.
54574
54575 2007-04-13  Bruno Haible  <bruno@clisp.org>
54576
54577         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54578         %F directives.
54579         * tests/test-vasprintf-posix.c (test_function): Likewise.
54580         * tests/test-snprintf-posix.h (test_function): Likewise.
54581         * tests/test-sprintf-posix.h (test_function): Likewise.
54582         * tests/test-fprintf-posix.h (test_function): Likewise.
54583         * tests/test-printf-posix.h (test_function): Likewise.
54584         * tests/test-fprintf-posix.out: Likewise.
54585
54586 2007-04-13  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54589         * modules/tls-tests (configure.ac): Likewise.
54590         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54591
54592 2007-04-13  Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/tls.c (glthread_tls_get): Fix return type.
54595         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54596
54597 2007-04-12  Eric Blake  <ebb9@byu.net>
54598
54599         * modules/gettime (Depends-on): Remove gettime.
54600         Reported by Dmitry V. Levin.
54601
54602 2007-04-12  Bruno Haible  <bruno@clisp.org>
54603
54604         * modules/fflush (Include): Mention <stdio.h>.
54605         * modules/strtoimax (Include): Mention <inttypes.h>.
54606         * modules/strtoumax (Include): Likewise.
54607
54608 2007-04-12  Eric Blake  <ebb9@byu.net>
54609
54610         * .cvsignore: New file.
54611         * .gitignore: Likewise.
54612
54613 2007-04-12  Bruno Haible  <bruno@clisp.org>
54614
54615         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54616         not before, since $(LDADD) often contains libgnu.a.
54617         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54618         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54619         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54620         Needed on Cygwin.
54621
54622 2007-04-12  Eric Blake  <ebb9@byu.net>
54623
54624         Work around glibc's failure to flush stdin on fclose.
54625         * lib/closein.c (close_stdin): Flush stdin before closing.
54626
54627         Work around glibc's failure to reset seekable stdin on exit.
54628         * modules/closein: New module.
54629         * lib/closein.c: New file.
54630         * lib/closein.h: Likewise.
54631         * m4/closein.m4: Likewise.
54632         * MODULES.html.sh (File stream based Input/Output): Document it.
54633
54634 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54635
54636         * gnulib-tool: Rename generated 'autobuild' script to
54637         'do-autobuild' in --create-megatestdir output.
54638
54639         * doc/gnulib.texi (Build robot for gnulib): Fix.
54640
54641 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54642
54643         * modules/sysexits (Depends-on): Add absolute-header.
54644
54645 2007-04-12  Eric Blake  <ebb9@byu.net>
54646
54647         No need to preserve errno on success.
54648         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54649         Reported by Bruno Haible.
54650
54651 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54652
54653         * MODULES.html.sh (Support for maintaining and releasing
54654         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54655
54656 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54657
54658         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54659
54660 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54661
54662         * modules/autobuild: New module.
54663
54664         * m4/autobuild.m4: New file.
54665
54666 2007-04-11  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54669         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54670         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54673         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54674         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54676         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54677         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54679         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54680         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54681         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54682         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54683         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54684         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54685         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54686         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54687         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54688         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54689         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54690         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54691         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54692         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54694         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54695         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54696         Reported by Eric Blake.
54697
54698 2007-04-11  Bruno Haible  <bruno@clisp.org>
54699
54700         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54701
54702 2007-04-10  Bruno Haible  <bruno@clisp.org>
54703
54704         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54705         for NaN and Infinity. Needed on FreeBSD 6.1.
54706         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54707         regarding results for "%010a" of Infinity and NaN.
54708         * tests/test-vasprintf-posix.c (test_function): Likewise.
54709         * tests/test-snprintf-posix.h (test_function): Likewise.
54710         * tests/test-sprintf-posix.h (test_function): Likewise.
54711         * tests/test-fprintf-posix.h (test_function): Likewise.
54712         * tests/test-printf-posix.h (test_function): Likewise.
54713         * tests/test-fprintf-posix.out: Likewise.
54714
54715 2007-04-10  Bruno Haible  <bruno@clisp.org>
54716
54717         * modules/locale-tests: New file.
54718         * tests/test-locale.c: New file.
54719
54720         * modules/locale: New file.
54721         * lib/locale_.h: New file.
54722         * m4/locale_h.m4: New file.
54723
54724 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54725             Bruno Haible  <bruno@clisp.org>
54726
54727         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54728         be determined, test for availability of the copysignf, copysign,
54729         copysignl functions.
54730         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54731         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54732         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54733
54734 2007-04-09  Eric Blake  <ebb9@byu.net>
54735
54736         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54737         * modules/stdio (Makefile.am): Support fflush.
54738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54739         * modules/fflush: New file.
54740         * lib/fflush.c: Likewise.
54741         * m4/fflush.m4: Likewise.
54742         * modules/fflush-tests: New test.
54743         * tests/test-fflush.c: Likewise.
54744         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54745
54746 2007-04-06  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54749         (VASNPRINTF): Use signbit for faster determination whether to print a
54750         minus sign.
54751         * modules/vasnprintf (Files): Remove lib/float+.h.
54752         * modules/fprintf-posix (Depends-on): Add signbit.
54753         * modules/snprintf-posix (Depends-on): Likewise.
54754         * modules/sprintf-posix (Depends-on): Likewise.
54755         * modules/vasnprintf-posix (Depends-on): Likewise.
54756         * modules/vasprintf-posix (Depends-on): Likewise.
54757         * modules/vfprintf-posix (Depends-on): Likewise.
54758         * modules/vsnprintf-posix (Depends-on): Likewise.
54759         * modules/vsprintf-posix (Depends-on): Likewise.
54760
54761 2007-04-06  Bruno Haible  <bruno@clisp.org>
54762
54763         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54764         * tests/test-frexpl.c (main): Likewise.
54765         * tests/test-ldexpl.c (main): Likewise.
54766         * modules/frexp-tests (Depends-on): Add signbit.
54767         * modules/frexpl-tests (Depdends-on): Likewise.
54768         * modules/ldexpl-tests (Depdends-on): Likewise.
54769
54770 2007-04-06  Bruno Haible  <bruno@clisp.org>
54771
54772         * modules/signbit-tests: New file.
54773         * tests/test-signbit.c: New file.
54774
54775         * modules/signbit: New file.
54776         * lib/signbitf.c: New file.
54777         * lib/signbitd.c: New file.
54778         * lib/signbitl.c: New file.
54779         * m4/signbit.m4: New file.
54780         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54781         (signbit): New macro.
54782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54783         REPLACE_SIGNBIT.
54784         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54785         REPLACE_FREXPL into math.h.
54786
54787 2007-04-06  Bruno Haible  <bruno@clisp.org>
54788
54789         * modules/isnanf-nolibm-tests: New file.
54790         * tests/test-isnanf.c: New file.
54791
54792         * modules/isnanf-nolibm: New file.
54793         * lib/isnanf.h: New file.
54794         * lib/isnanf.c: New file.
54795         * lib/isnan.c: Consider the USE_FLOAT macro.
54796         * m4/isnanf.m4: New file.
54797
54798 2007-04-06  Bruno Haible  <bruno@clisp.org>
54799
54800         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54801         (Link): New section.
54802
54803         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54804
54805 2007-04-06  Bruno Haible  <bruno@clisp.org>
54806
54807         Assume the 'long double' type.
54808         * m4/longdouble.m4: Remove file.
54809         * config/srclist.txt: Don't mention longdouble.m4.
54810         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54811         * lib/float+.h: Likewise.
54812         * lib/frexp.c: Likewise.
54813         * lib/printf-args.h: Likewise.
54814         * lib/printf-args.c: Likewise.
54815         * lib/printf-frexp.c: Likewise.
54816         * lib/printf-parse.c: Likewise.
54817         * lib/vasnprintf.c: Likewise.
54818         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54819         * m4/intl.m4: Likewise.
54820         * m4/isnanl.m4: Likewise.
54821         * m4/printf.m4: Likewise.
54822         * m4/printf-frexpl.m4: Likewise.
54823         * m4/vasnprintf.m4: Likewise.
54824         * modules/allocsa (Files): Remove m4/longdouble.m4.
54825         * modules/gettext (Files): Likewise.
54826         * modules/relocatable-prog-wrapper (Files): Likewise.
54827         * modules/vasnprintf (Files): Likewise.
54828         * modules/isnanl (Files): Likewise.
54829         (Include): Simplify.
54830         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54831         (Include): Simplify.
54832         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54833         (Include): Simplify.
54834         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54835         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54836         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54837         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54838         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54839         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54840         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54841         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54842         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54843         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54844         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54845         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54846         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54847         * tests/test-isnanl.c: Likewise.
54848         * tests/test-snprintf-posix.h: Likewise.
54849         * tests/test-sprintf-posix.h: Likewise.
54850         * tests/test-vasnprintf-posix.c: Likewise.
54851         * tests/test-vasnprintf-posix2.c: Likewise.
54852         * tests/test-vasprintf-posix.c: Likewise.
54853
54854 2007-04-06  Bruno Haible  <bruno@clisp.org>
54855
54856         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54857         * lib/math_.h [__DECC]: Include the overridden include file through
54858         #include_next, outside the double-inclusion guard.
54859         * lib/stdio_.h [__DECC]: Likewise.
54860         * lib/stdlib_.h [__DECC]: Likewise.
54861         * lib/string_.h [__DECC]: Likewise.
54862         * lib/time_.h [__DECC]: Likewise.
54863         * lib/wchar_.h [__DECC]: Likewise.
54864         * lib/wctype_.h [__DECC]: Likewise.
54865         * lib/inttypes_.h [__DECC]: Likewise.
54866         Reported by Albert Chin <china@thewrittenword.com> in
54867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54868
54869 2007-04-04  Eric Blake  <ebb9@byu.net>
54870
54871         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54872         1.5.x.
54873
54874 2007-04-04  Bruno Haible  <bruno@clisp.org>
54875
54876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54877         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54878
54879 2007-04-04  Bruno Haible  <bruno@clisp.org>
54880
54881         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54882         results for "%010a" of Infinity and NaN.
54883         * tests/test-vasprintf-posix.c (test_function): Likewise.
54884         * tests/test-snprintf-posix.h (test_function): Likewise.
54885         * tests/test-sprintf-posix.h (test_function): Likewise.
54886         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54887         * tests/test-printf-posix.h (test_function): Likewise.
54888         * tests/test-fprintf-posix.out: Update.
54889         Needed for FreeBSD 6.1.
54890
54891 2007-04-04  Bruno Haible  <bruno@clisp.org>
54892
54893         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54894         directly used by the gnulib modules nor by gnulib-tool.
54895
54896 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54897
54898         * DEPENDENCIES: Give overall description of version dependency
54899         desirability.  Use more-typical names for apps.
54900         Add shell, coreutils, diffutils, grep, tar, gzip.
54901
54902 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54903
54904         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54905
54906 2007-04-04  Karl Berry  <karl@gnu.org>
54907
54908         * MODULES.html.sh (func_module): missing '.
54909
54910 2007-04-03  Bruno Haible  <bruno@clisp.org>
54911
54912         * modules/argmatch-tests (Makefile.am): New variable
54913         test_argmatch_LDADD.
54914         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54915         * modules/array-list-tests (Makefile.am): New variable
54916         test_array_list_LDADD.
54917         * modules/array-oset-tests (Makefile.am): New variable
54918         test_array_oset_LDADD.
54919         * modules/avltree-list-tests (Makefile.am): New variable
54920         test_avltree_list_LDADD.
54921         * modules/avltree-oset-tests (Makefile.am): New variable
54922         test_avltree_oset_LDADD.
54923         * modules/avltreehash-list-tests (Makefile.am): New variable
54924         test_avltreehash_list_LDADD.
54925         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54926         test_canonicalize_lgpl_LDADD.
54927         * modules/carray-list-tests (Makefile.am): New variable
54928         test_carray_list_LDADD.
54929         * modules/dirname-tests (Makefile.am): New variable
54930         test_dirname_LDADD.
54931         * modules/linked-list-tests (Makefile.am): New variable
54932         test_linked_list_LDADD.
54933         * modules/linkedhash-list-tests (Makefile.am): New variable
54934         test_linkedhash_list_LDADD.
54935         * modules/rbtree-list-tests (Makefile.am): New variable
54936         test_rbtree_list_LDADD.
54937         * modules/rbtree-oset-tests (Makefile.am): New variable
54938         test_rbtree_oset_LDADD.
54939         * modules/rbtreehash-list-tests (Makefile.am): New variable
54940         test_rbtreehash_list_LDADD.
54941         * modules/xvasprintf-tests (Makefile.am): New variable
54942         test_xvasprintf_LDADD.
54943         Reported by Eric Blake.
54944
54945 2007-04-03  Eric Blake  <ebb9@byu.net>
54946
54947         * DEPENDENCIES: Weaken m4 requirements.
54948
54949 2007-04-03  Bruno Haible  <bruno@clisp.org>
54950
54951         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54952         * modules/isnanl-tests (configure.ac): Likewise.
54953
54954 2007-04-03  Ben Pfaff  <blp@gnu.org>
54955
54956         * modules/iconv_open: Add $(srcdir)/ to source directory
54957         references in Makefile fragments that call gperf, to fix VPATH
54958         builds.
54959
54960 2007-04-03  Bruno Haible  <bruno@clisp.org>
54961
54962         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54963         * lib/ldexpl.c: Undo last change.
54964
54965 2007-04-03  Bruno Haible  <bruno@clisp.org>
54966
54967         * modules/printf-frexpl (Depends-on): Undo last change.
54968         (Files): Add m4/ldexpl.m4.
54969
54970 2007-04-03  Bruno Haible  <bruno@clisp.org>
54971
54972         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54973         * modules/isnanl (Link): New section.
54974
54975         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54976         * modules/frexp (Link): New section.
54977
54978         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54979         * modules/frexpl (Link): New section.
54980
54981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54982         * modules/ldexpl (Link): New section.
54983
54984 2007-04-03  Bruno Haible  <bruno@clisp.org>
54985
54986         * modules/TEMPLATE-EXTENDED: New file.
54987         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54988
54989 2007-04-03  Bruno Haible  <bruno@clisp.org>
54990
54991         * DEPENDENCIES: New file.
54992         Suggested by Simon Josefsson.
54993
54994 2007-04-03  Bruno Haible  <bruno@clisp.org>
54995
54996         * doc/gnulib.texi: Escape @.
54997
54998 2007-04-03  James Youngman  <jay@gnu.org>
54999         and Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55002         birthtime on all systems that have birthtime, not just those which
55003         use st_birthtimensec rather than st_birthtim.  Putting zero in
55004         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55005         that the birth time is not available for files on an NFS mount.
55006
55007 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55008
55009         * modules/memxor: Move back from crypto/, suggested by Bruno.
55010         * modules/crypto/hmac-sha1: Fix memxor dependency.
55011
55012         * modules/crypto/gc: Moved from ../.
55013
55014 2007-04-02  Eric Blake  <ebb9@byu.net>
55015
55016         * lib/ldexpl.c (includes): Avoid libm.
55017
55018         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55019
55020 2007-04-02  Bruno Haible  <bruno@clisp.org>
55021
55022         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55023         on IRIX.
55024
55025 2007-04-02  Bruno Haible  <bruno@clisp.org>
55026
55027         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55028         x86 or x86_64 platforms running MacOS X.
55029         Reported by Ryan Schmidt <@ryandesign.com>.
55030
55031 2007-04-02  Bruno Haible  <bruno@clisp.org>
55032
55033         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55034         i386.
55035
55036 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55037
55038         * modules/crypto/arcfour: Moved from ../.
55039         * modules/crypto/arcfour-tests: Moved from ../.
55040         * modules/crypto/arctwo: Moved from ../.
55041         * modules/crypto/arctwo-tests: Moved from ../.
55042         * modules/crypto/des: Moved from ../.
55043         * modules/crypto/des-tests: Moved from ../.
55044         * modules/crypto/gc-arcfour: Moved from ../.
55045         * modules/crypto/gc-arcfour-tests: Moved from ../.
55046         * modules/crypto/gc-arctwo: Moved from ../.
55047         * modules/crypto/gc-arctwo-tests: Moved from ../.
55048         * modules/crypto/gc-des: Moved from ../.
55049         * modules/crypto/gc-des-tests: Moved from ../.
55050         * modules/crypto/gc-hmac-md5: Moved from ../.
55051         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55052         * modules/crypto/gc-hmac-sha1: Moved from ../.
55053         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55054         * modules/crypto/gc-md2: Moved from ../.
55055         * modules/crypto/gc-md2-tests: Moved from ../.
55056         * modules/crypto/gc-md4: Moved from ../.
55057         * modules/crypto/gc-md4-tests: Moved from ../.
55058         * modules/crypto/gc-md5: Moved from ../.
55059         * modules/crypto/gc-md5-tests: Moved from ../.
55060         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55061         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55062         * modules/crypto/gc-random: Moved from ../.
55063         * modules/crypto/gc-rijndael: Moved from ../.
55064         * modules/crypto/gc-rijndael-tests: Moved from ../.
55065         * modules/crypto/gc-sha1: Moved from ../.
55066         * modules/crypto/gc-sha1-tests: Moved from ../.
55067         * modules/crypto/gc-tests: Moved from ../.
55068         * modules/crypto/hmac-md5: Moved from ../.
55069         * modules/crypto/hmac-md5-tests: Moved from ../.
55070         * modules/crypto/hmac-sha1: Moved from ../.
55071         * modules/crypto/hmac-sha1-tests: Moved from ../.
55072         * modules/crypto/md2: Moved from ../.
55073         * modules/crypto/md2-tests: Moved from ../.
55074         * modules/crypto/md4: Moved from ../.
55075         * modules/crypto/md4-tests: Moved from ../.
55076         * modules/crypto/md5: Moved from ../.
55077         * modules/crypto/md5-tests: Moved from ../.
55078         * modules/crypto/memxor: Moved from ../.
55079         * modules/crypto/rijndael: Moved from ../.
55080         * modules/crypto/rijndael-tests: Moved from ../.
55081         * modules/crypto/sha1: Moved from ../.
55082
55083 2007-03-30  James Youngman  <jay@gnu.org>
55084
55085         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55086         rename() to change the ctime of a file (because ctime is unaffected
55087         by rename on jfs2 on AIX 5.1).
55088         (main): Start by doing cleanup, in case a previous run failed leaving
55089         test files behind.
55090
55091 2007-03-31  Bruno Haible  <bruno@clisp.org>
55092
55093         Support old proprietary implementations of iconv.
55094         * modules/iconv_open: New file.
55095         * lib/iconv_.h: New file.
55096         * m4/iconv_h.m4: New file.
55097         * lib/iconv_open.c: New file.
55098         * lib/iconv_open-aix.gperf: New file.
55099         * lib/iconv_open-hpux.gperf: New file.
55100         * lib/iconv_open-irix.gperf: New file.
55101         * lib/iconv_open-osf.gperf: New file.
55102         * m4/iconv_open.m4: New file.
55103         * modules/linebreak (Depends-on): Add iconv_open.
55104         * modules/striconv (Depends-on): Likewise.
55105         * modules/striconveh (Depends-on): Likewise.
55106         * modules/unicodeio (Depends-on): Likewise.
55107         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55108         (iconv_t)(-1).
55109         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55110         conversion if cd is (iconv_t)(-1).
55111         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55112         is not possible.
55113
55114 2007-03-31  Bruno Haible  <bruno@clisp.org>
55115
55116         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55117         work on Solaris either. Protect also second use of "autodetect_jp".
55118
55119 2007-03-31  Bruno Haible  <bruno@clisp.org>
55120
55121         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55122         the function is not present.
55123
55124 2007-03-31  Bruno Haible  <bruno@clisp.org>
55125
55126         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55127         the function is not present.
55128
55129 2007-03-31  Bruno Haible  <bruno@clisp.org>
55130
55131         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55132         a bug in HP-UX iconv_open().
55133
55134 2007-03-31  Bruno Haible  <bruno@clisp.org>
55135
55136         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55137         (Mathematics <math.h>): New section, add fpieee.
55138         (Input/output <stdio.h>): Add fseterr.
55139         (Mathematics <math.h>): New section, add printf-frexp.
55140         (Container data structures): Add sublist.
55141         (Core language properties): Add fpucw, inline.
55142         (Functions for greatest-width integer types <inttypes.h>): Add
55143         imaxabs, imaxdiv, inttypes.
55144         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55145         isnanl-nolibm, ldexp.
55146         (Mathematics <math.h>): New section, add printf-frexpl.
55147         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55148         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55149         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55150         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55151         (Unicode string functions): Add unistr/u*-mbtoucr.
55152         (Java): Add javacomp-script, javaexec-script.
55153         (C#): Add csharpcomp-script, csharpexec-script.
55154         (Support for building libraries and executables): Add havelib,
55155         relocatable-*.
55156         (Support for maintaining and releasing projects): Renamed from
55157         'Support for maintaining and release projects'. Add announce-gen.
55158
55159 2007-03-31  Bruno Haible  <bruno@clisp.org>
55160
55161         * README: Talk primarily about git.
55162         (git and CVS): Renamed from CVS.
55163         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55164         gnulib is available through git.
55165         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55166
55167 2007-03-30  Bruno Haible  <bruno@clisp.org>
55168
55169         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55170         * lib/poll_.h: Likewise.
55171         * lib/stat_.h: Likewise.
55172         * lib/sys_time_.h: Likewise.
55173         * lib/sysexit_.h: Likewise.
55174         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55175         * lib/stdbool_.h: Likewise.
55176         * lib/byteswap_.h: Add double-inclusion guard.
55177
55178 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55179
55180         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55181
55182 2007-03-30  Karl Berry  <karl@gnu.org>
55183
55184         * config/srclist-update: double space after USA in the license
55185         substitution, since that's how it's usually (?) written.
55186
55187 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55190         reported by Bruno Haible.
55191
55192 2007-03-29  Bruno Haible  <bruno@clisp.org>
55193
55194         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55195         a bug in AIX iconv().
55196
55197 2007-03-29  Bruno Haible  <bruno@clisp.org>
55198
55199         * modules/ldexpl-tests: New file.
55200         * tests/test-ldexpl.c: New file.
55201
55202 2007-03-29  Bruno Haible  <bruno@clisp.org>
55203
55204         * lib/ldexpl.c: Include fpucw.h.
55205         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55206         multiplication.
55207         * modules/ldexpl (Depends-on): Add fpucw.
55208
55209 2007-03-29  Bruno Haible  <bruno@clisp.org>
55210
55211         * modules/ldexpl: New file.
55212         * m4/ldexpl.m4: New file.
55213         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55214         set.
55215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55216         REPLACE_LDEXPL.
55217         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55218         REPLACE_LDEXPL.
55219         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55220         gl_FUNC_LDEXPL_WORKS.
55221         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55222         * modules/mathl (Files): Remove lib/ldexpl.c.
55223         (Depends-on): Add ldexpl.
55224
55225 2007-03-29  Bruno Haible  <bruno@clisp.org>
55226
55227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55228
55229 2007-03-29  Bruno Haible  <bruno@clisp.org>
55230
55231         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55232         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55233         and possibly also HP-UX.
55234         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55235         work on AIX, IRIX, HP-UX, OSF/1.
55236         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55237         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55238         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55239         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55240         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55241         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55242
55243 2007-03-29  Bruno Haible  <bruno@clisp.org>
55244
55245         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55246
55247 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55248
55249         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55250         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55251
55252 2007-03-29  Eric Blake  <ebb9@byu.net>
55253
55254         * lib/acl-internal.h: Remove redundant include.
55255         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55256         Cygwin when a file is locked.
55257
55258 2007-03-29  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55261         file.
55262         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55263
55264 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55265
55266         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55267         try to remove a parent directory if the child couldn't be removed
55268         (except for the first rmdir, which could fail because the child
55269         doesn't exist).  Problem reported by Jeff Blaine in
55270         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55271
55272 2007-03-28  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/striconveh.c (utf8conv_carefully): New function.
55275         (mem_cd_iconveh_internal): Invoke it.
55276
55277 2007-03-28  Bruno Haible  <bruno@clisp.org>
55278
55279         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55280         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55281         input.
55282         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55283         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55284         unistr/u8-uctomb.
55285
55286 2007-03-28  Bruno Haible  <bruno@clisp.org>
55287
55288         * modules/unistr/u8-mbtoucr: New file.
55289         * lib/unistr/u8-mbtoucr.c: New file.
55290         * modules/unistr/u16-mbtoucr: New file.
55291         * lib/unistr/u16-mbtoucr.c: New file.
55292         * modules/unistr/u16-mbtoucr: New file.
55293         * lib/unistr/u16-mbtoucr.c: New file.
55294         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55295
55296 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55297             Bruno Haible  <bruno@clisp.org>
55298
55299         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55300         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55301         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55302
55303         * m4/stdio_h.m4: Add stubs for vasprintf too.
55304
55305         * modules/stdio: Support vasprintf in sed command.
55306
55307         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55308         vasprintf.h.  Add stdio module indicator.
55309
55310         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55311         vasprintf.h.
55312
55313         * lib/vasprintf.h: File removed.
55314
55315         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55316         * lib/vasprintf.c: Ditto.
55317         * lib/xvasprintf.c: Ditto.
55318         * tests/test-vasprintf-posix.c: Ditto.
55319         * tests/test-vasprintf.c: Ditto.
55320
55321 2007-03-27  Bruno Haible  <bruno@clisp.org>
55322
55323         Make vasnprintf multithread-safe.
55324         * lib/vasnprintf.c (decimal_point_char): New function.
55325         (VASNPRINTF): Use it.
55326         Suggested by Simon Josefsson.
55327
55328 2007-03-27  Eric Blake  <ebb9@byu.net>
55329
55330         Support sub-second birthtime on cygwin.
55331         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55332         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55333         (get_stat_birthtime): Also work with st_birthtim.
55334
55335 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55336
55337         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55338         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55339         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55340         (get_stat_birthtime_ns): Simplify compile-time tests.
55341         (get_stat_birthtime): Change the API to look like
55342         get_stat_mtime etc., except return a negative tv_nsec on error.
55343         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55344         Don't check for "spare" fields.
55345         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55346         or for struct stat.st_birthtime, as these tests aren't used.
55347         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55348
55349 2007-03-27  Bruno Haible  <bruno@clisp.org>
55350
55351         * lib/stat-time.h: Include <sys/stat.h>.
55352
55353 2007-03-27  James Youngman  <jay@gnu.org>
55354
55355         * lib/stat-time.h (get_stat_birthtime): New function for
55356           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55357         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55358           and its variants.
55359         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55360         * modules/stat-time-test: New file.
55361         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55362
55363 2007-03-26  Bruno Haible  <bruno@clisp.org>
55364
55365         Better support of signalling NaNs.
55366         * lib/atanl.c: Include isnanl.h.
55367         (atanl): Perform test for NaN at the beginning of the function and
55368         through a call to isnanl.
55369         * lib/cosl.c: Include isnanl.h.
55370         (cosl): Perform test for NaN at the beginning of the function and
55371         through a call to isnanl.
55372         * lib/ldexpl.c: Include isnanl.h.
55373         (ldexpl): Perform test for NaN through a call to isnanl.
55374         * lib/logl.c: Include isnanl.h.
55375         (logl): Perform test for NaN at the beginning of the function and
55376         through a call to isnanl.
55377         * lib/sinl.c: Include isnanl.h.
55378         (sinl): Perform test for NaN at the beginning of the function and
55379         through a call to isnanl.
55380         * lib/sqrtl.c: Include isnanl.h.
55381         (sqrtl): Perform test for NaN at the beginning of the function and
55382         through a call to isnanl.
55383         * lib/tanl.c: Include isnanl.h.
55384         (tanl): Perform test for NaN at the beginning of the function and
55385         through a call to isnanl.
55386         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55387         * modules/mathl (Depends-on): Add isnanl.
55388
55389 2007-03-26  Eric Blake  <ebb9@byu.net>
55390
55391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55392         regression in logic sense of previous patch.
55393
55394 2007-03-26  Bruno Haible  <bruno@clisp.org>
55395
55396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55397         unportable shell command "if ! ...".
55398         Reported by Ralf Wildenhues.
55399
55400 2007-03-25  Bruno Haible  <bruno@clisp.org>
55401
55402         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55403         <sysexits.h> file, and only add EX_CONFIG.
55404         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55405         absolute file name and whether it is sufficient. Substitute also
55406         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55407         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55408         ABSOLUTE_SYSEXITS_H into sysexits.h.
55409
55410 2007-03-25  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55413         hints is NULL.
55414
55415 2007-03-25  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55418         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55419
55420 2007-03-25  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/vasnprintf.c: Include langinfo.h.
55423         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55424         multithread-safe.
55425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55428         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55434         Reported by Simon Josefsson.
55435
55436 2007-03-25  Bruno Haible  <bruno@clisp.org>
55437
55438         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55439         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55440         * modules/vasnprintf (Depends-on): Add stdint.
55441
55442 2007-03-25  Bruno Haible  <bruno@clisp.org>
55443
55444         * modules/fpieee: New file.
55445         * m4/fpieee.m4: New file.
55446         * modules/isnan-nolibm (Depends-on): Add fpieee.
55447         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55448         * modules/isnanl (Depends-on): Add fpieee.
55449
55450 2007-03-25  Bruno Haible  <bruno@clisp.org>
55451
55452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55453
55454 2007-03-25  Bruno Haible  <bruno@clisp.org>
55455
55456         Avoid test failures on IRIX 6.5.
55457         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55458         (main): Use it.
55459         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55460         macros.
55461         (main): Use them.
55462
55463 2007-03-25  Bruno Haible  <bruno@clisp.org>
55464
55465         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55466         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55467         exists but doesn't work.
55468         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55469         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55471         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55472         math.h.
55473
55474 2007-03-25  Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55477         returns inf. Needed on IRIX 6.5.
55478
55479 2007-03-25  Bruno Haible  <bruno@clisp.org>
55480
55481         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55482         (main): Use isnanl instead of x != x idiom.
55483         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55484
55485         * tests/test-frexp.c: Include isnan.h.
55486         (main): Use isnan instead of x != x idiom.
55487         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55488
55489 2007-03-25  Bruno Haible  <bruno@clisp.org>
55490
55491         * tests/test-frexp.c (NaN): New function/macro.
55492         (main): Use it instead of 0.0 / 0.0.
55493         * tests/test-isnan.c (NaN): New function/macro.
55494         (main): Use it instead of 0.0 / 0.0.
55495         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55496         (test_function): Use it instead of 0.0 / 0.0.
55497         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55498         (test_function): Use it instead of 0.0 / 0.0.
55499         * tests/test-snprintf-posix.h (NaN): New function/macro.
55500         (test_function): Use it instead of 0.0 / 0.0.
55501         * tests/test-sprintf-posix.h (NaN): New function/macro.
55502         (test_function): Use it instead of 0.0 / 0.0.
55503         * tests/test-fprintf-posix.h (NaN): New function/macro.
55504         (test_function): Use it instead of 0.0 / 0.0.
55505         * tests/test-printf-posix.h (NaN): New function/macro.
55506         (test_function): Use it instead of 0.0 / 0.0.
55507
55508         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55509
55510 2007-03-25  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55513
55514 2007-03-25  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/regexec.c (merge_state_with_log): Make static.
55517
55518 2007-03-25  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/trigl.c (kernel_rem_pio2): Make static.
55521
55522 2007-03-25  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/sincosl.c (sincosl_table): Make static.
55525
55526 2007-03-25  Bruno Haible  <bruno@clisp.org>
55527
55528         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55529         if the compiler does not support C99.
55530
55531 2007-03-25  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/time (Makefile.am): Ensure all rule action lines start with a
55534         tab.
55535
55536 2007-03-24  Bruno Haible  <bruno@clisp.org>
55537
55538         * modules/tsearch-tests: New file.
55539         * tests/test-tsearch.sh: New file.
55540         * tests/test-tsearch.c: New file, mostly copied from glibc.
55541
55542         * modules/search-tests: New file.
55543         * tests/test-search.c: New file.
55544
55545         * modules/search: New file.
55546         * lib/search_.h: New file, incorporating lib/tsearch.h.
55547         * m4/search_h.m4: New file.
55548         * lib/tsearch.h: Remove file.
55549         * lib/tsearch.c: Include search.h instead of tsearch.h.
55550         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55551         HAVE_TSEARCH.
55552         * modules/tsearch (Files): Remove lib/tsearch.h.
55553         (Depends-on): Add search.
55554         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55555         (Include): Change tsearch.h into search.h.
55556
55557 2007-03-24  Bruno Haible  <bruno@clisp.org>
55558
55559         * modules/fpucw: New file.
55560         * lib/fpucw.h: New file.
55561         * lib/frexp.c: Include fpucw.h.
55562         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55563         (FUNC): Use them.
55564         * lib/printf-frexp.c: Include fpucw.h.
55565         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55566         (FUNC): Use them.
55567         * lib/vasnprintf.c: Include fpucw.h.
55568         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55569         'long double' calculations.
55570         * tests/test-frexpl.c: Include fpucw.h.
55571         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55572         * tests/test-printf-frexpl.c: Include fpucw.h.
55573         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55574         * modules/frexpl (Depends-on): Add fpucw.
55575         * modules/printf-frexpl (Depends-on): Likewise.
55576         * modules/fprintf-posix (Depends-on): Likewise.
55577         * modules/snprintf-posix (Depends-on): Likewise.
55578         * modules/sprintf-posix (Depends-on): Likewise.
55579         * modules/vasnprintf-posix (Depends-on): Likewise.
55580         * modules/vasprintf-posix (Depends-on): Likewise.
55581         * modules/vfprintf-posix (Depends-on): Likewise.
55582         * modules/vsnprintf-posix (Depends-on): Likewise.
55583         * modules/vsprintf-posix (Depends-on): Likewise.
55584         * modules/frexpl-tests (Depends-on): Likewise.
55585         * modules/printf-frexpl-tests (Depends-on): Likewise.
55586
55587 2007-03-24  Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/float+.h: New file.
55590         * lib/isnan.c: Include float+.h.
55591         (SIZE): New macro.
55592         (FUNC): Compare only SIZE bytes of the value.
55593         * lib/vasnprintf.c: Include float+.h.
55594         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55595         SIZEOF_LDBL or SIZEOF_DBL bytes.
55596         * modules/isnan-nolibm (Files): Add lib/float+.h.
55597         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55598         * modules/isnanl (Files): Add lib/float+.h.
55599         * modules/vasnprintf (Files): Add lib/float+.h.
55600
55601 2007-03-24  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55604         include isnanl-nolibm.h.
55605
55606 2007-03-24  Bruno Haible  <bruno@clisp.org>
55607
55608         * tests/test-read-file.c (main): Don't produce spurious output for
55609         expected situations. Make the test fail if it encountered unexpected
55610         results.
55611
55612 2007-03-24  Bruno Haible  <bruno@clisp.org>
55613
55614         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55615         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55616
55617 2007-03-24  Bruno Haible  <bruno@clisp.org>
55618
55619         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55620
55621 2007-03-24  Bruno Haible  <bruno@clisp.org>
55622
55623         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55624         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55625
55626         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55627         * modules/utf8-ucs4: Turn into a symbolic link to module
55628         unistr/u8-mbtouc.
55629
55630         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55631         utf8-ucs4-unsafe.
55632         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55633         unistr/u8-mbtouc-unsafe.
55634
55635         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55636         * modules/utf16-ucs4: Turn into a symbolic link to module
55637         unistr/u16-mbtouc.
55638
55639         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55640         utf16-ucs4-unsafe.
55641         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55642         unistr/u16-mbtouc-unsafe.
55643
55644         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55645         * modules/ucs4-utf8: Turn into a symbolic link to module
55646         unistr/u8-ubtomb.
55647
55648         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55649         * modules/ucs4-utf16: Turn into a symbolic link to module
55650         unistr/u16-ubtomb.
55651
55652 2007-03-24  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55655         Enable the function only if HAVE_INLINE.
55656         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55657         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55658         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55659         Enable the function only if HAVE_INLINE.
55660         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55661         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55662         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55663         Enable the function only if HAVE_INLINE.
55664         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55665         Enable the function only if HAVE_INLINE.
55666         * modules/utf8-ucs4: Update.
55667         * modules/utf8-ucs4-unsafe: Update.
55668         * modules/utf16-ucs4: Update.
55669         * modules/utf16-ucs4-unsafe: Update.
55670         * modules/ucs4-utf8: Update.
55671         * modules/ucs4-utf16: Update.
55672
55673 2007-03-24  Bruno Haible  <bruno@clisp.org>
55674
55675         * lib/utf8-ucs4.h: Remove file.
55676         * lib/utf8-ucs4-unsafe.h: Remove file.
55677         * lib/utf16-ucs4.h: Remove file.
55678         * lib/utf16-ucs4-unsafe.h: Remove file.
55679         * lib/ucs4-utf8.h: Remove file.
55680         * lib/ucs4-utf16.h: Remove file.
55681         * lib/unistr.h: Include their previous contents.
55682         * m4/utf-ucs4.m4: Remove file.
55683         * m4/ucs4-utf.m4: Remove file.
55684         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55685         (Depends-on): Add unistr/base.
55686         (configure.ac): Remove gl_UTF_UCS4.
55687         (Makefile.am): Update.
55688         (Include): Change to unistr.h.
55689         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55690         (Depends-on): Add unistr/base.
55691         (configure.ac): Remove gl_UTF_UCS4.
55692         (Makefile.am): Update.
55693         (Include): Change to unistr.h.
55694         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55695         (Depends-on): Add unistr/base.
55696         (configure.ac): Remove gl_UTF_UCS4.
55697         (Makefile.am): Update.
55698         (Include): Change to unistr.h.
55699         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55700         (Depends-on): Add unistr/base.
55701         (configure.ac): Remove gl_UTF_UCS4.
55702         (Makefile.am): Update.
55703         (Include): Change to unistr.h.
55704         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55705         (Depends-on): Add unistr/base.
55706         (configure.ac): Remove gl_UCS4_UTF.
55707         (Makefile.am): Update.
55708         (Include): Change to unistr.h.
55709         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55710         (Depends-on): Add unistr/base.
55711         (configure.ac): Remove gl_UCS4_UTF.
55712         (Makefile.am): Update.
55713         (Include): Change to unistr.h.
55714         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55715         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55716         utf8-ucs4-unsafe.h.
55717         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55718         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55719         utf16-ucs4-unsafe.h.
55720         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55721         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55722         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55723         * lib/unistr/u8-strchr.c: Likewise.
55724         * lib/unistr/u8-strrchr.c: Likewise.
55725         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55726         * lib/unistr/u16-strchr.c: Likewise.
55727         * lib/unistr/u16-strrchr.c: Likewise.
55728         * lib/striconveh.c: Update.
55729         * lib/linebreak.c: Update.
55730
55731 2007-03-24  Bruno Haible  <bruno@clisp.org>
55732
55733         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55734         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55735
55736 2007-03-22  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55739
55740 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * MODULES.html.sh (File system functions): New module write-any-file.
55743         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55744         * m4/write-any-file.m4: New files.
55745
55746 2007-03-23  Eric Blake  <ebb9@byu.net>
55747
55748         * gnulib-tool: Rearrange space-tab sequences, since some editors
55749         like to eat them.
55750
55751 2007-03-23  Eric Blake  <ebb9@byu.net>
55752
55753         * lib/version-etc.c (version_etc_va): Update license wording to
55754         be more concise.  Recommended by Richard Stallman.
55755
55756 2007-03-22  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/poll.c (MSG_PEEK): New fallback definition.
55759
55760 2007-03-22  Bruno Haible  <bruno@clisp.org>
55761
55762         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55763         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55764         (main): Update.
55765         Fixes a compilation error on BeOS.
55766
55767 2007-03-22  Bruno Haible  <bruno@clisp.org>
55768
55769         * modules/frexpl-tests: New file.
55770         * tests/test-frexpl.c: New file.
55771
55772         * modules/frexpl: New file.
55773         * m4/frexpl.m4: New file.
55774         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55775         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55777         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55778         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55779         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55780
55781 2007-03-22  Bruno Haible  <bruno@clisp.org>
55782
55783         * lib/frexpl.c: Share code with lib/frexp.c.
55784         * modules/mathl (Files): Add lib/frexp.c.
55785         (Depends-on): Add isnanl-nolibm.
55786
55787 2007-03-22  Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/printf-frexp (Files): Add m4/frexp.m4.
55790         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55791         only if the found frexp function actually works.
55792
55793 2007-03-22  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/frexp.c: Remove older implementation that uses divisions.
55796
55797 2007-03-21  Bruno Haible  <bruno@clisp.org>
55798
55799         * modules/frexp-tests: New file.
55800         * tests/test-frexp.c: New file.
55801
55802         * modules/frexp: New file.
55803         * lib/frexp.c: New file.
55804         * m4/frexp.m4: New file.
55805         * lib/math_.h (frexp): New declaration.
55806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55807         REPLACE_FREXP.
55808         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55809
55810 2007-03-21  Bruno Haible  <bruno@clisp.org>
55811
55812         * modules/isnanl-tests: New file.
55813         * tests/test-isnanl.c: New file.
55814
55815         * modules/isnanl: New file.
55816         * lib/isnanl.h: New file.
55817         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55818         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55819         gl_FUNC_ISNANL_WORKS.
55820         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55821         New macros.
55822
55823 2007-03-21  Bruno Haible  <bruno@clisp.org>
55824
55825         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55826         lib/isnanl.h.
55827         (Include): Update.
55828         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55829         * lib/vasnprintf.c: Update.
55830         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55831         tests/test-isnanl.h, remove tests/test-isnanl.c.
55832         (Makefile.am): Update.
55833         * tests/test-isnanl-nolibm.c: New file.
55834         * tests/test-isnanl.h: New file.
55835         * tests/test-isnanl.c: Remove file.
55836
55837 2007-03-21  Jim Meyering  <jim@meyering.net>
55838
55839         When trying to open ".", treat ESTALE like EACCES.
55840         * lib/savewd.c (savewd_save): Resort to forking not just upon
55841         failure with EACCES, but also when errno is ESTALE.
55842
55843 2007-03-20  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55846         Needed on AIX 5.1. Reported by Matthew Woehlke.
55847
55848 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         Suggestions by Bruno Haible:
55851         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55852         our own.
55853         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55854         * modules/acl (Depends-on): Add gettext.
55855
55856 2007-03-19  Bruno Haible  <bruno@clisp.org>
55857
55858         * modules/iconvme: Remove file.
55859         * lib/iconvme.h: Remove file.
55860         * lib/iconvme.c: Remove file.
55861         * m4/iconvme.m4: Remove file.
55862
55863 2007-03-19  Bruno Haible  <bruno@clisp.org>
55864
55865         * doc/relocatable-maint.texi: Break long shell script line.
55866         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55867
55868 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55869
55870         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55871         handle file_has_acl.
55872         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55873         * lib/acl.c: Move header inclusions and related macro defns into
55874         lib/acl-internal.h.
55875         (S_ISLNK): Remove defn, since that's now done for us.
55876         (file_has_acl): Move to lib/file-has-acl.c.
55877         Call acl_trivial if available.  This is the crucial part of the fix.
55878         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55879         shared within the library.  Rewrite a bit, partly to make it compatible
55880         with the GNU coding style.
55881         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55882         Remove unnecessary double-quotes.
55883         Don't test for acl_to_text; the build will catch that.
55884         Replace acl_entries if it doesn't exist and it is needed.
55885         Check for -lsec and acl_trivial (as used on Solaris 10).
55886         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55887         lib/file-has-acl.c.
55888         (Depends-on): Add sys_stat, for S_ISLNK.
55889
55890 2007-03-19  Ben Pfaff  <blp@gnu.org>
55891
55892         * doc/gnulib.texi: Fix typos.
55893         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55894
55895 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55896
55897         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55898         If size is zero here, buf must be zero.
55899
55900 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55901
55902         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55903         <bruno@clisp.org>.
55904
55905 2007-03-18  Bruno Haible  <bruno@clisp.org>
55906
55907         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55908         Suggested by Eric Blake.
55909
55910 2007-03-18  Ben Pfaff  <blp@gnu.org>
55911
55912         * doc/relocatable.texi: Recommend using as prefix a directory
55913         that does not exist and will never be created.  Based on
55914         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55915         and others.
55916
55917 2007-03-17  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/fchownat.c: Include lchown.h.
55920
55921 2007-03-17  Bruno Haible  <bruno@clisp.org>
55922
55923         Fix endless loop when the given allocated size was > INT_MAX.
55924         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55925         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55926         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55927         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55928         * lib/sprintf.c (sprintf): Likewise.
55929
55930 2007-03-17  Bruno Haible  <bruno@clisp.org>
55931
55932         * tests/test-argp-2.sh (func_compare): Output a context diff.
55933
55934 2007-03-17  Bruno Haible  <bruno@clisp.org>
55935
55936         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55937         locale's decimal-point character.
55938
55939 2007-03-17  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55942         before comparing it. Needed because on some platforms (e.g. x86) a
55943         'long double' occupies less bytes than sizeof (long double).
55944
55945 2007-03-17  Bruno Haible  <bruno@clisp.org>
55946
55947         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55948         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55949         * tests/test-getaddrinfo.c (simple): Likewise.
55950         * tests/test-read-file.c (main): Likewise.
55951
55952 2007-03-17  Bruno Haible  <bruno@clisp.org>
55953
55954         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55955
55956 2007-03-17  Bruno Haible  <bruno@clisp.org>
55957
55958         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55959         unused variable.
55960
55961 2007-03-17  Bruno Haible  <bruno@clisp.org>
55962
55963         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55964         * tests/test-c-strncasecmp.c: Likewise.
55965
55966 2007-03-17  Bruno Haible  <bruno@clisp.org>
55967
55968         * modules/stdlib (Depends-on): Add unistd.
55969         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55970         Needed for MacOS X 10.3.
55971
55972 2007-03-17  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55975
55976 2007-03-17  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55979
55980 2007-03-17  Bruno Haible  <bruno@clisp.org>
55981
55982         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55983         to reflect files copied from gnulib (with or without modifications).
55984         Suggested by Jim Meyering.
55985
55986 2007-03-17  Eric Blake  <ebb9@byu.net>
55987
55988         * NEWS: Document stdlib change from 2007-02-18.
55989
55990 2007-03-17  Jim Meyering  <jim@meyering.net>
55991
55992         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55993         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55994         someone uses a name containing shell meta-characters.
55995         Reported by Alfred M. Szmidt.
55996
55997         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55998
55999 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56000
56001         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56002         and copy gettext configuration files only if configure.ac contains
56003         a use of AM_GNU_GETTEXT_VERSION.
56004
56005 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56006
56007         * build-aux/bootstrap (gnulib_name): New variable.
56008         (gnulib_tool_options): Use it.
56009
56010 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56011
56012         * tests/test-des.c: Use new namespace.
56013
56014 2007-03-15  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56017         Reported by James Youngman <jay@gnu.org>.
56018
56019 2007-03-15  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56022         declared prototype. Needed with cc on OSF/1 5.1.
56023
56024 2007-03-15  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56027         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56028         (struct gl_list_implementation): Add dispose_fn argument to the
56029         'create_empty', 'create' methods.
56030         (struct gl_list_impl_base): Add field 'dispose_fn'.
56031         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56032         argument.
56033         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56034         dispose_fn argument.
56035         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56036         dispose_fn on the dropped values.
56037         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56038         dispose_fn argument.
56039         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56040         dropped values.
56041         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56042         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56043         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56044         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56045         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56046         argument.
56047         (gl_tree_list_free): Call dispose_fn on the dropped values.
56048         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56049         the dropped values.
56050         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56051         Add dispose_fn argument.
56052         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56053         Call dispose_fn on the dropped values.
56054         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56055         Add dispose_fn argument.
56056         (gl_sublist_create): Initialize the 'dispose_fn' field.
56057         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56058         * tests/test-array_list.c (main): Update.
56059         * tests/test-carray_list.c (main): Update.
56060         * tests/test-avltree_list.c (main): Update.
56061         * tests/test-rbtree_list.c (main): Update.
56062         * tests/test-avltreehash_list.c (main): Update.
56063         * tests/test-rbtreehash_list.c (main): Update.
56064         * tests/test-linked_list.c (main): Update.
56065         * tests/test-linkedhash_list.c (main): Update.
56066         * tests/test-array_oset.c (main): Update.
56067
56068 2007-03-15  Bruno Haible  <bruno@clisp.org>
56069
56070         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56071         (gl_oset_create_empty): Add dispose_fn argument.
56072         (struct gl_oset_implementation): Add dispose_fn argument to
56073         'create_empty' method.
56074         (struct gl_oset_impl_base): Add dispose_fn field.
56075         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56076         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56077         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56078         values.
56079         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56080         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56081         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56082         dropped value.
56083         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56084         dropped value.
56085         * tests/test-array_oset.c (main): Update.
56086         * tests/test-avltree_oset.c (main): Update.
56087         * tests/test-rbtree_oset.c (main): Update.
56088         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56089
56090 2007-03-13  Bruno Haible  <bruno@clisp.org>
56091
56092         * tests/test-stdbool.c (i): Update after last patch.
56093
56094 2007-03-12  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56097         the iswprint macro. Needed on Solaris 2.5.1.
56098
56099 2007-03-12  Bruno Haible  <bruno@clisp.org>
56100
56101         * tests/test-printf-frexp.c (main): Declare x as volatile.
56102
56103 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56104
56105         * doc/gnulib.texi (Build robot for gnulib): New section.
56106
56107 2007-03-12  Jim Meyering  <jim@meyering.net>
56108
56109         * build-aux/bootstrap: New file.
56110         * build-aux/bootstrap.conf: New file, from coreutils.
56111
56112 2007-03-11  Bruno Haible  <bruno@clisp.org>
56113
56114         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56115
56116 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56117
56118         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56119         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56120         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56121
56122 2007-03-11  Bruno Haible  <bruno@clisp.org>
56123
56124         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56125         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56126
56127 2007-03-11  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56130         formula. Needed for SunPRO C 5.0.
56131
56132 2007-03-11  Bruno Haible  <bruno@clisp.org>
56133
56134         * modules/long-options (Depends-on): Add getopt.
56135
56136 2007-03-11  Bruno Haible  <bruno@clisp.org>
56137
56138         * modules/modechange (Depends-on): Add stdbool.
56139
56140 2007-03-11  Bruno Haible  <bruno@clisp.org>
56141
56142         * modules/i-ring (Depends-on): Add stdbool.
56143
56144 2007-03-11  Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/gc-des (Depends-on): Add stdbool.
56147
56148 2007-03-11  Bruno Haible  <bruno@clisp.org>
56149
56150         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56151
56152 2007-03-11  Bruno Haible  <bruno@clisp.org>
56153
56154         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56155
56156 2007-03-11  Bruno Haible  <bruno@clisp.org>
56157
56158         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56159
56160 2007-03-11  Bruno Haible  <bruno@clisp.org>
56161
56162         * lib/vasnprintf.c (sprintf): Undefine.
56163
56164 2007-03-11  Bruno Haible  <bruno@clisp.org>
56165
56166         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56167         initializers in SunPRO C and Compaq C compilers.
56168
56169 2007-03-11  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56172         decrementing code ANSI C compliant.
56173
56174 2007-03-11  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56177         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56178
56179 2007-03-11  Bruno Haible  <bruno@clisp.org>
56180
56181         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56182         <stdbool.h> substitute doesn't pass.
56183
56184 2007-03-11  Bruno Haible  <bruno@clisp.org>
56185
56186         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56187
56188 2007-03-11  Bruno Haible  <bruno@clisp.org>
56189
56190         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56191         script, for submission to autobuild.josefsson.org.
56192
56193 2007-03-10  Bruno Haible  <bruno@clisp.org>
56194
56195         * modules/canonicalize-lgpl-tests: New file.
56196         * tests/test-canonicalize-lgpl.sh: New file.
56197         * tests/test-canonicalize-lgpl.c: New file.
56198
56199         * modules/c-strcase-tests: New file.
56200         * tests/test-c-strcase.sh: New file.
56201         * tests/test-c-strcasecmp.c: New file.
56202         * tests/test-c-strncasecmp.c: New file.
56203
56204         * modules/atexit-tests: New file.
56205         * tests/test-atexit.sh: New file.
56206         * tests/test-atexit.c: New file.
56207
56208 2007-03-10  Bruno Haible  <bruno@clisp.org>
56209
56210         * tests/test-binary-io.sh: Use temporary filenames that are not so
56211         likely to clash with those of other tests (in a parallel make).
56212         * tests/test-binary-io.c: Likewise.
56213
56214 2007-03-10  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56217         fallback; use #error instead.
56218         Suggested by Simon Josefsson.
56219
56220 2007-03-10  Bruno Haible  <bruno@clisp.org>
56221
56222         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56223         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56224         first and the last.
56225
56226 2007-03-10  Bruno Haible  <bruno@clisp.org>
56227
56228         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56229
56230 2007-03-10  Bruno Haible  <bruno@clisp.org>
56231
56232         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56233         "make distcheck".
56234         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56235         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56236         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56237
56238 2007-03-10  Bruno Haible  <bruno@clisp.org>
56239
56240         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56241         variable.
56242         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56243         variable.
56244
56245 2007-03-09  Eric Blake  <ebb9@byu.net>
56246         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56247
56248         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56249         types are not being provided by gnulib.
56250         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56251         types are supported.
56252
56253 2007-03-10  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/stdio_.h (__attribute__): New macro.
56256         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56257         vsprintf): Specify __attribute__ __format__ for GCC.
56258         Suggested by Eric Blake.
56259
56260 2007-03-09  Bruno Haible  <bruno@clisp.org>
56261
56262         * modules/printf-posix-tests: New file.
56263         * tests/test-printf-posix.sh: New file.
56264         * tests/test-printf-posix.c: New file.
56265
56266         * modules/printf-posix: New file.
56267         * lib/printf.c: New file.
56268         * m4/printf-posix-rpl.m4: New file.
56269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56270         REPLACE_PRINTF.
56271         * lib/stdio_.h (printf): New declaration.
56272         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56273         ____strfmon____): New macros.
56274         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56275         REPLACE_PRINTF.
56276
56277 2007-03-09  Bruno Haible  <bruno@clisp.org>
56278
56279         * tests/test-vasnprintf-posix2.sh: New file.
56280         * tests/test-vasnprintf-posix2.c: New file.
56281         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56282         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56283         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56284
56285         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56286         a locale dependent decimal point, rather than always '.'.
56287
56288 2007-03-09  Eric Blake  <ebb9@byu.net>
56289
56290         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56291         spite of platforms like Tandem/NSK that define it to -1.
56292
56293 2007-03-08  Bruno Haible  <bruno@clisp.org>
56294
56295         * modules/vprintf-posix-tests: New file.
56296         * tests/test-vprintf-posix.sh: New file.
56297         * tests/test-vprintf-posix.c: New file.
56298         * tests/test-printf-posix.h: New file.
56299
56300         * modules/vprintf-posix: New file.
56301         * lib/vprintf.c: New file.
56302         * m4/vprintf-posix.m4: New file.
56303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56304         REPLACE_VPRINTF.
56305         * lib/stdio_.h (vprintf): New declaration.
56306         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56307         REPLACE_VPRINTF.
56308
56309 2007-03-08  Bruno Haible  <bruno@clisp.org>
56310
56311         * modules/fprintf-posix-tests: New file.
56312         * tests/test-fprintf-posix.sh: New file.
56313         * tests/test-fprintf-posix.c: New file.
56314
56315         * modules/fprintf-posix: New file.
56316         * lib/fprintf.c: New file.
56317         * m4/fprintf-posix.m4: New file.
56318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56319         REPLACE_FPRINTF.
56320         * lib/stdio_.h (fprintf): New declaration.
56321         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56322         REPLACE_FPRINTF.
56323
56324 2007-03-08  Bruno Haible  <bruno@clisp.org>
56325
56326         * modules/vfprintf-posix-tests: New file.
56327         * tests/test-vfprintf-posix.sh: New file.
56328         * tests/test-vfprintf-posix.c: New file.
56329         * tests/test-fprintf-posix.h: New file.
56330         * tests/test-fprintf-posix.out: New file.
56331
56332         * modules/vfprintf-posix: New file.
56333         * lib/vfprintf.c: New file.
56334         * m4/vfprintf-posix.m4: New file.
56335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56336         REPLACE_VFPRINTF.
56337         * lib/stdio_.h (vfprintf): New declaration.
56338         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56339         REPLACE_VFPRINTF.
56340
56341 2007-03-08  Bruno Haible  <bruno@clisp.org>
56342
56343         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56344
56345 2007-03-08  Bruno Haible  <bruno@clisp.org>
56346
56347         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56348         instead of 'expr' invocations.
56349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56352         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56353         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56354         Suggested by Paul Eggert.
56355
56356 2007-03-08  Bruno Haible  <bruno@clisp.org>
56357
56358         * modules/fseterr-tests: New file.
56359         * tests/test-fseterr.c: New file.
56360
56361         * modules/fseterr: New file.
56362         * lib/fseterr.h: New file.
56363         * lib/fseterr.c: New file.
56364
56365 2007-03-08  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56368         * lib/getopt_.h: Likewise.
56369         * lib/mbswidth.h: Likewise.
56370         * lib/setenv.h: Likewise.
56371         * lib/vasnprintf.h: Likewise.
56372         * lib/vasprintf.h: Likewise.
56373         * lib/verror.h: Likewise.
56374         * lib/xsetenv.h: Likewise.
56375         * lib/xvasprintf.h: Likewise.
56376
56377 2007-03-08  Jim Meyering  <jim@meyering.net>
56378
56379         * users.txt: Add parted.
56380
56381         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56382
56383 2007-03-07  Bruno Haible  <bruno@clisp.org>
56384
56385         * m4/printf.m4: Make the shell script snippets copy&pastable.
56386
56387 2007-03-02  Bruno Haible  <bruno@clisp.org>
56388
56389         * lib/netinet_in_.h: New file.
56390         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56391         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56392         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56393         (Depends-on): Add absolute-header.
56394         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56395         into netinet/in.h.
56396
56397 2007-03-03  Bruno Haible  <bruno@clisp.org>
56398
56399         * lib/sys_select_.h: New file.
56400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56401         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56402         * modules/sys_select (Files): Add lib/sys_select_.h.
56403         (Depends-on): Add absolute-header.
56404         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56405         into sys/select.h.
56406
56407 2007-03-02  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56410         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56411         values.
56412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56413         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56414         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56415         * modules/sys_socket (Depends-on): Add absolute-header.
56416         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56417         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56418         (Include): Remove requirement of inclusion of <sys/types.h>.
56419
56420 2007-03-02  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/byteswap_.h (bswap_32): Fix formula.
56423
56424 2007-03-06  Bruno Haible  <bruno@clisp.org>
56425
56426         * modules/sprintf-posix-tests: New file.
56427         * tests/test-sprintf-posix.c: New file.
56428
56429         * modules/sprintf-posix: New file.
56430         * lib/sprintf.c: New file.
56431         * m4/sprintf-posix.m4: New file.
56432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56433         REPLACE_SPRINTF.
56434         * lib/stdio_.h (sprintf): New declaration.
56435         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56436         REPLACE_SPRINTF.
56437
56438 2007-03-06  Bruno Haible  <bruno@clisp.org>
56439
56440         * modules/vsprintf-posix-tests: New file.
56441         * tests/test-vsprintf-posix.c: New file.
56442         * tests/test-sprintf-posix.h: New file.
56443
56444         * modules/vsprintf-posix: New file.
56445         * lib/vsprintf.c: New file.
56446         * m4/vsprintf-posix.m4: New file.
56447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56448         REPLACE_VSPRINTF.
56449         * lib/stdio_.h (vsprintf): New declaration.
56450         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56451         REPLACE_VSPRINTF.
56452
56453 2007-03-06  Bruno Haible  <bruno@clisp.org>
56454
56455         * modules/vsnprintf (Depend-on): Remove minmax.
56456
56457 2007-03-06  Bruno Haible  <bruno@clisp.org>
56458
56459         * modules/snprintf-posix-tests: New file.
56460         * tests/test-snprintf-posix.c: New file.
56461
56462         * modules/snprintf-posix: New file.
56463         * m4/snprintf-posix.m4: New file.
56464         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56465         gl_FUNC_SNPRINTF.
56466         (gl_FUNC_SNPRINTF): Invoke it.
56467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56468         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56469         is set.
56470         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56471
56472 2007-03-06  Bruno Haible  <bruno@clisp.org>
56473
56474         * modules/vsnprintf-posix-tests: New file.
56475         * tests/test-vsnprintf-posix.c: New file.
56476         * tests/test-snprintf-posix.h: New file.
56477
56478         * modules/vsnprintf-posix: New file.
56479         * m4/vsnprintf-posix.m4: New file.
56480         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56481         gl_FUNC_VSNPRINTF.
56482         (gl_FUNC_VSNPRINTF): Invoke it.
56483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56484         * lib/stdio_.h (vsnprintf): Define as a replacement if
56485         REPLACE_VSNPRINTF is set.
56486         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56487
56488 2007-03-06  Bruno Haible  <bruno@clisp.org>
56489
56490         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56492
56493 2007-03-06  Bruno Haible  <bruno@clisp.org>
56494
56495         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56496         (asinl): Declare also if HAVE_DECL_ASINL is set.
56497         (atanl): Declare also if HAVE_DECL_ATANL is set.
56498         (ceill): Declare also if HAVE_DECL_CEILL is set.
56499         (cosl): Declare also if HAVE_DECL_COSL is set.
56500         (expl): Declare also if HAVE_DECL_EXPL is set.
56501         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56502         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56503         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56504         (logl): Declare also if HAVE_DECL_LOGL is set.
56505         (sinl): Declare also if HAVE_DECL_SINL is set.
56506         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56507         (tanl): Declare also if HAVE_DECL_TANL is set.
56508         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56510         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56511         declaration of frexpl, ldexpl.
56512         * modules/printf-frexpl (Depends-on): Add math.
56513         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56514
56515 2007-03-05  Bruno Haible  <bruno@clisp.org>
56516
56517         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56518         frexpl and ldexpl are declared.
56519         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56520
56521 2007-03-05  Bruno Haible  <bruno@clisp.org>
56522
56523         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56524         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56525
56526 2007-03-05  Bruno Haible  <bruno@clisp.org>
56527
56528         * lib/stdio_.h: Include <stddef.h>.
56529
56530 2007-03-05  Bruno Haible  <bruno@clisp.org>
56531
56532         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56533
56534 2007-03-05  Bruno Haible  <bruno@clisp.org>
56535
56536         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56537         NetBSD 4, from Ralf Wildenhues.
56538
56539 2007-03-04  Bruno Haible  <bruno@clisp.org>
56540
56541         * lib/vasprintf.h: Update #if logic for the case when the functions
56542         exist but are overridden.
56543
56544 2007-03-04  Bruno Haible  <bruno@clisp.org>
56545
56546         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56547         implementations: glibc-2.4 and MacOS X 10.3.
56548         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56549         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56550         * tests/test-vasprintf-posix.c (test_function): Likewise.
56551
56552 2007-03-04  Bruno Haible  <bruno@clisp.org>
56553
56554         * modules/vasprintf-posix-tests: New file.
56555         * tests/test-vasprintf-posix.c: New file.
56556
56557         * modules/vasprintf-posix: New file.
56558         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56559         defined.
56560         * m4/vasprintf-posix.m4: New file.
56561         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56562         gl_FUNC_VASPRINTF.
56563         (gl_FUNC_VASPRINTF): Invoke it.
56564         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56565         here.
56566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56567
56568 2007-03-04  Bruno Haible  <bruno@clisp.org>
56569
56570         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56571         REPLACE_GETTIMEOFDAY.
56572         * modules/sys_time (Makefile.am): Likewise.
56573         * m4/sys_time_h.m4: Likewise.
56574         * m4/gettimeofday.m4: Likewise.
56575
56576 2007-03-04  Bruno Haible  <bruno@clisp.org>
56577
56578         * modules/vasnprintf-posix-tests: New file.
56579         * tests/test-vasnprintf-posix.c: New file.
56580
56581         * modules/vasnprintf-posix: New file.
56582         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56583         printf-frexpl.h.
56584         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56585         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56586         REPLACE_VASNPRINTF is defined.
56587         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56588         gl_FUNC_VASNPRINTF.
56589         (gl_FUNC_VASNPRINTF): Invoke it.
56590         * m4/vasnprintf-posix.m4: New file.
56591         * m4/printf.m4: New file.
56592
56593 2007-03-04  Bruno Haible  <bruno@clisp.org>
56594
56595         Compile progreloc.c only if --enable-relocatable is specified.
56596         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56597         if --enable-relocatable was specified.
56598         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56599         lib_SOURCES.
56600
56601 2007-03-04  Jim Meyering  <jim@meyering.net>
56602
56603         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56604         Use it consistently, rather than enumerating errno constants.
56605
56606 2007-03-04  Bruno Haible  <bruno@clisp.org>
56607
56608         * modules/xvasprintf-tests: New file.
56609         * tests/test-xvasprintf.c: New file.
56610
56611         * modules/vasprintf-tests: New file.
56612         * tests/test-vasprintf.c: New file.
56613
56614         * modules/vasnprintf-tests: New file.
56615         * tests/test-vasnprintf.c: New file.
56616
56617         * modules/vsnprintf-tests: New file.
56618         * tests/test-vsnprintf.c: New file.
56619
56620         * modules/snprintf-tests: New file.
56621         * tests/test-snprintf.c: New file.
56622
56623 2007-03-04  Bruno Haible  <bruno@clisp.org>
56624
56625         Compile relocatable.c only if --enable-relocatable is specified.
56626         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56627         gl_RELOCATABLE_LIBRARY.
56628         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56629         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56630         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56631         gl_RELOCATABLE_LIBRARY.
56632         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56633         (Makefile.am): Remove lib_SOURCES.
56634         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56635         gl_RELOCATABLE_LIBRARY.
56636         (Makefile.am): Remove lib_SOURCES.
56637         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56638         always.
56639         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56640         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56641
56642 2007-03-04  Bruno Haible  <bruno@clisp.org>
56643
56644         * modules/argmatch-tests: New file.
56645         * tests/test-argmatch.c: New file.
56646
56647         * tests/test-allocsa.c (main): Halve the number of loop runs.
56648
56649         * modules/alloca-opt-tests: New file.
56650         * tests/test-alloca-opt.c: New file.
56651
56652 2007-03-04  Jim Meyering  <jim@meyering.net>
56653
56654         Work around difference between Linux ACLs and Solaris 10 ZFS.
56655         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56656         for EINVAL.
56657
56658 2007-03-03  Bruno Haible  <bruno@clisp.org>
56659
56660         * modules/relocatable-prog (Depends-on): Add back progreloc's
56661         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56662
56663 2007-03-03  Bruno Haible  <bruno@clisp.org>
56664
56665         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56666         * modules/relocatable-lib: New file.
56667
56668 2007-03-03  Bruno Haible  <bruno@clisp.org>
56669
56670         * modules/relocatable-prog: Renamed from modules/relocatable.
56671         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56672
56673 2007-03-03  Bruno Haible  <bruno@clisp.org>
56674
56675         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56676         m4/relocatable-lib.m4.
56677         (Depends-on): Remove 'relocatable'.
56678         (configure.ac): Add gl_RELOCATABLE_NOP.
56679
56680 2007-03-03  Bruno Haible  <bruno@clisp.org>
56681
56682         * modules/relocatable-prog-wrapper: New file.
56683         * modules/relocatable (Depends-on): Add it. Remove all other
56684         dependencies except progname.
56685         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56686
56687         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56688         (gl_FUNC_STRERROR): Nop.
56689         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56690
56691         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56692         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56693
56694         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56695         (gl_FUNC_READLINK): Update.
56696
56697         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56698
56699 2007-03-03  Bruno Haible  <bruno@clisp.org>
56700
56701         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56702         * modules/xreadlink (Depends-on): Add unistd.
56703         * modules/xreadlink-with-size (Depends-on): Likewise.
56704
56705 2007-03-03  Bruno Haible  <bruno@clisp.org>
56706
56707         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56708         extracted from gt_FUNC_SETENV.
56709         (gt_FUNC_SETENV): Remove macro.
56710         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56711         remove gt_FUNC_SETENV.
56712
56713 2007-03-03  Bruno Haible  <bruno@clisp.org>
56714
56715         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56716         ENABLE_RELOCATABLE here.
56717         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56718
56719 2007-03-03  Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56722         * tests/test-rbtreehash_list.c: Include progname.h.
56723         (main): Call set_program_name.
56724
56725         * modules/rbtree-oset-tests (Depends-on): Add progname.
56726         * tests/test-rbtree_oset.c: Include progname.h.
56727         (main): Call set_program_name.
56728
56729         * modules/rbtree-list-tests (Depends-on): Add progname.
56730         * tests/test-rbtree_list.c: Include progname.h.
56731         (main): Call set_program_name.
56732
56733         * modules/linked-list-tests (Depends-on): Add progname.
56734         * tests/test-linked_list.c: Include progname.h.
56735         (main): Call set_program_name.
56736
56737 2007-03-03  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56740         All uses of __restrict changed to _Restrict_.
56741         * lib/glob_.h (__restrict): Remove macro.
56742
56743 2007-03-02  Bruno Haible  <bruno@clisp.org>
56744
56745         * modules/gettext (configure.ac): Require gettext infrastructure
56746         from version 0.16.1.
56747
56748 2007-03-02  Bruno Haible  <bruno@clisp.org>
56749
56750         * modules/linkedhash-list-tests (Depends-on): Add progname.
56751         * tests/test-linkedhash_list.c: Include progname.h.
56752         (main): Call set_program_name.
56753
56754         * modules/carray-list-tests (Depends-on): Add progname.
56755         * tests/test-carray_list.c: Include progname.h.
56756         (main): Call set_program_name.
56757
56758         * modules/avltreehash-list-tests (Depends-on): Add progname.
56759         * tests/test-avltreehash_list.c: Include progname.h.
56760         (main): Call set_program_name.
56761
56762         * modules/avltree-oset-tests (Depends-on): Add progname.
56763         * tests/test-avltree_oset.c: Include progname.h.
56764         (main): Call set_program_name.
56765
56766         * modules/avltree-list-tests (Depends-on): Add progname.
56767         * tests/test-avltree_list.c: Include progname.h.
56768         (main): Call set_program_name.
56769
56770         * modules/array-oset-tests (Depends-on): Add progname.
56771         * tests/test-array_oset.c: Include progname.h.
56772         (main): Call set_program_name.
56773
56774         * modules/array-list-tests (Depends-on): Add progname.
56775         * tests/test-array_list.c: Include progname.h.
56776         (main): Call set_program_name.
56777
56778         * modules/argp-tests (Depends-on): Add progname.
56779         * tests/test-argp.c: Include argp.h first. Include progname.h.
56780         (main): Call set_program_name.
56781
56782 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56783
56784         * doc/gnulib-tool.texi (Initial import): Reword description of
56785         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56786         limited effect even if defined after the first system include.
56787
56788 2007-03-01  Bruno Haible  <bruno@clisp.org>
56789
56790         * build-aux/config.libpath: Update to libtool-1.5.22.
56791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56792
56793 2007-03-01  Bruno Haible  <bruno@clisp.org>
56794
56795         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56796         foo_CFLAGS.
56797         Reported by Ralf Wildenhues.
56798
56799 2007-03-01  Bruno Haible  <bruno@clisp.org>
56800
56801         * build-aux/install-reloc: Remove object files left over by some
56802         compilers.
56803         Reported by Ralf Wildenhues.
56804
56805 2007-03-01  Bruno Haible  <bruno@clisp.org>
56806
56807         * build-aux/install-reloc: Break long lines.
56808
56809 2007-03-01  Bruno Haible  <bruno@clisp.org>
56810
56811         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56812         Reported by Ralf Wildenhues.
56813
56814 2007-03-01  Bruno Haible  <bruno@clisp.org>
56815
56816         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56817         include ordering constraints.
56818
56819 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56820
56821         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56822         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56823         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56824         as another example.
56825         * lib/time_.h: Fix misspelling.
56826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56827         Require gl_HEADER_TIME_H_DEFAULTS.
56828         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56829         * m4/time_r.m4 (gl_TIME_R): Likewise.
56830         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56831
56832 2007-03-01  Bruno Haible  <bruno@clisp.org>
56833
56834         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56835         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56836
56837 2007-03-01  Jim Meyering  <jim@meyering.net>
56838
56839         * modules/xreadlink (Maintainer): Add my name.
56840         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56841
56842 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56843             Bruno Haible  <bruno@clisp.org>
56844
56845         * build-aux/install-reloc: Compile also c-ctype.c.
56846         * build-aux/relocatable.sh.in: New file.
56847         * doc/relocatable.texi: New file.
56848         * doc/relocatable-maint.texi: New file.
56849         * doc/gnulib.texi: Include relocatable-maint.texi.
56850         * lib/progreloc.c: Include unistd.h unconditionally.
56851         * lib/relocwrapper.c: Include unistd.h unconditionally.
56852         Include c-ctype.h.
56853         (add_dotbin): Use c_tolower.
56854         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56855         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56856         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56857         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56858         to m4/relocatable-lib.m4.
56859         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56860         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56861         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56862         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56863         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56864         * modules/relocatable: New file.
56865         * modules/relocatable-lib: New file.
56866         * modules/relocatable-script: New file.
56867
56868 2007-02-28  Bruno Haible  <bruno@clisp.org>
56869
56870         Import --enable-relocatable infrastructure.
56871         * build-aux/config.libpath: New file, from GNU gettext.
56872         * build-aux/install-reloc: New file, from GNU gettext.
56873         * build-aux/reloc-ldflags: New file, from GNU gettext.
56874         * lib/relocatable.h: New file, from GNU gettext.
56875         * lib/relocatable.c: New file, from GNU gettext.
56876         * lib/relocwrapper.c: New file, from GNU gettext.
56877         * m4/relocatable.m4: New file, from GNU gettext.
56878
56879 2007-02-28  Bruno Haible  <bruno@clisp.org>
56880
56881         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56882
56883         * modules/xreadlink: New file, from GNU gettext with modifications.
56884         * lib/xreadlink.c: New file, from GNU gettext.
56885         * lib/xreadlink.h: Add comments.
56886         (xreadlink): New declaration.
56887
56888         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56889         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56890         lib/xreadlink-with-size.c.
56891         (configure.ac): Remove gl_XREADLINK invocation.
56892         (Makefile.am): Augment lib_SOURCES.
56893         * m4/xreadlink.m4: Remove file.
56894         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56895         (xreadlink_with_size): Renamed from xreadink.
56896         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56897         * modules/canonicalize (Depends-on): Replace xreadlink with
56898         xreadlink-with-size.
56899         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56900
56901 2007-02-25  Jim Meyering  <jim@meyering.net>
56902
56903         * build-aux/announce-gen: When complaining about excess arguments,
56904         list them.
56905
56906 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * README: Document signed integer overflow situation more
56909         accurately.
56910
56911 2007-02-25  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56914         'a' or 'A' conversion.
56915
56916 2007-02-25  Bruno Haible  <bruno@clisp.org>
56917
56918         * modules/filename: Renamed from modules/pathname.
56919         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56920         lib/concatpath.c with lib/concat-filename.c.
56921         (Makefile.am): Update.
56922         (Include): Replace pathname.h with filename.h.
56923         * lib/filename.h: Renamed from lib/pathname.h.
56924         (concatenated_filename): Renamed from concatenated_pathname.
56925         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56926         (concatenated_filename): Renamed from concatenated_pathname.
56927         * lib/findprog.c: Include filename.h instead of pathname.h.
56928         (find_in_path): Update.
56929         * lib/javacomp.c: Include filename.h instead of pathname.h.
56930         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56931         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56932         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56933         is_oldgcj_14_13_usable, is_javac_usable): Update.
56934         * lib/javaexec.c: Include filename.h instead of pathname.h.
56935         (execute_java_class): Update.
56936         * modules/findprog: Update.
56937         * modules/javacomp: Update.
56938         * modules/javaexec: Update.
56939         * MODULES.html.sh (File system functions): Add 'filename', remove
56940         'pathname'.
56941
56942 2007-02-25  Bruno Haible  <bruno@clisp.org>
56943
56944         * modules/printf-frexpl-tests: New file.
56945         * tests/test-printf-frexpl.c: New file.
56946
56947         * modules/printf-frexpl: New file.
56948         * lib/printf-frexpl.h: New file.
56949         * lib/printf-frexpl.c: New file.
56950         * m4/printf-frexpl.m4: New file.
56951
56952 2007-02-25  Bruno Haible  <bruno@clisp.org>
56953
56954         * modules/printf-frexp-tests: New file.
56955         * tests/test-printf-frexp.c: New file.
56956
56957         * modules/printf-frexp: New file.
56958         * lib/printf-frexp.h: New file.
56959         * lib/printf-frexp.c: New file.
56960         * m4/printf-frexp.m4: New file.
56961
56962 2007-02-25  Bruno Haible  <bruno@clisp.org>
56963
56964         Assume automake >= 1.10 for the tests.
56965         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56966         * modules/arctwo-tests: Likewise.
56967         * modules/argp-tests: Likewise.
56968         * modules/avltree-list-tests: Likewise.
56969         * modules/avltree-oset-tests: Likewise.
56970         * modules/avltreehash-list-tests: Likewise.
56971         * modules/carray-list-tests: Likewise.
56972         * modules/crc-tests: Likewise.
56973         * modules/des-tests: Likewise.
56974         * modules/gc-arcfour-tests: Likewise.
56975         * modules/gc-arctwo-tests: Likewise.
56976         * modules/gc-des-tests: Likewise.
56977         * modules/gc-hmac-md5-tests: Likewise.
56978         * modules/gc-hmac-sha1-tests: Likewise.
56979         * modules/gc-md2-tests: Likewise.
56980         * modules/gc-md4-tests: Likewise.
56981         * modules/gc-md5-tests: Likewise.
56982         * modules/gc-pbkdf2-sha1-tests: Likewise.
56983         * modules/gc-rijndael-tests: Likewise.
56984         * modules/gc-sha1-tests: Likewise.
56985         * modules/gc-tests: Likewise.
56986         * modules/getaddrinfo-tests: Likewise.
56987         * modules/hmac-md5-tests: Likewise.
56988         * modules/hmac-sha1-tests: Likewise.
56989         * modules/linked-list-tests: Likewise.
56990         * modules/linkedhash-list-tests: Likewise.
56991         * modules/lock-tests: Likewise.
56992         * modules/md2-tests: Likewise.
56993         * modules/md4-tests: Likewise.
56994         * modules/md5-tests: Likewise.
56995         * modules/rbtree-list-tests: Likewise.
56996         * modules/rbtree-oset-tests: Likewise.
56997         * modules/rbtreehash-list-tests: Likewise.
56998         * modules/read-file-tests: Likewise.
56999         * modules/rijndael-tests: Likewise.
57000         * modules/stdint-tests: Likewise.
57001         * modules/tls-tests: Likewise.
57002
57003 2007-02-24  Bruno Haible  <bruno@clisp.org>
57004
57005         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57006         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57007         function; instead check whether isnan with a double argument links.
57008         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57009         function; instead check whether isnan with a 'long double' argument
57010         links.
57011         Reported by Eric Blake <ebb9@byu.net>.
57012
57013 2007-02-24  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57016         defined.
57017         * lib/isnanl.c: Remove all code. Just include isnan.c.
57018         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57019
57020 2007-02-25  Jim Meyering  <jim@meyering.net>
57021
57022         Avoid conflicting types for 'unsetenv' on FreeBSD.
57023         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57024         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57025         in stdlib.h.
57026
57027 2007-02-24  Bruno Haible  <bruno@clisp.org>
57028
57029         * modules/isnanl-nolibm-tests: New file.
57030         * tests/test-isnanl.c: New file.
57031
57032         * modules/isnanl-nolibm: New file.
57033         * lib/isnanl.h: New file.
57034         * lib/isnanl.c: New file.
57035         * m4/isnanl.m4: New file.
57036
57037 2007-02-24  Bruno Haible  <bruno@clisp.org>
57038
57039         * modules/isnan-nolibm-tests: New file.
57040         * tests/test-isnan.c: New file.
57041
57042         * modules/isnan-nolibm: New file.
57043         * lib/isnan.h: New file.
57044         * lib/isnan.c: New file.
57045         * m4/isnan.m4: New file.
57046
57047 2007-02-24  Bruno Haible  <bruno@clisp.org>
57048
57049         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57050         assume that an exponent fits in 20 bits.
57051
57052 2007-02-24  Jim Meyering  <jim@meyering.net>
57053
57054         * m4/regex.m4: Update the description of the configure-time option,
57055         --without-included-regex, to state accurately what the defaults are,
57056         and perhaps to give people an idea why using this option is risky.
57057
57058 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57061         loops on small arguments.  This attempts to avoid the problem
57062         Bruno Haible reported for AIX 4.3.2 in
57063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57064
57065 2007-02-23  Bruno Haible  <bruno@clisp.org>
57066
57067         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57068         Needed for help2man.
57069
57070 2007-02-23  Karl Berry  <karl@gnu.org>
57071
57072         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57073         exists, foo.h should be cvs-ignored, not committed.
57074
57075 2007-02-23  Eric Blake  <ebb9@byu.net>
57076
57077         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57078         * lib/stat-time.h (includes): Likewise.
57079         * lib/utimecmp.c (includes): Likewise.
57080         * lib/utimens.h (includes): Likewise.
57081         * lib/getdate.y (includes): Also include "timespec.h" for use
57082         internal to the module.
57083         * modules/utimens (Depends-on): Revert yesterday's patch.
57084         * modules/nanosleep (Depends-on): Add missing dependency.
57085
57086 2007-02-22  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/glob.c: Don't include getlogin_r.h.
57089
57090 2007-02-22  Jim Meyering  <jim@meyering.net>
57091
57092         * modules/utimens (Depends-on): Add timespec, required for
57093         utimens.h's inclusion of timespec.h.
57094
57095 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57098         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57099         Schwab in
57100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57101         I'll try to think of a better way to fix the Solaris problem.
57102
57103         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57104         like glibc; on Solaris 10, it fails with errno == EINVAL.
57105         POSIX says the behavior is unspecified if the first argument is NULL,
57106         so play it safe and never pass NULL to the system getcwd.
57107
57108 2007-02-21  Jim Meyering  <jim@meyering.net>
57109
57110         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57111         of gettimeofday.  It would conflict with the one now always
57112         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57113         an IRIX 6.5 build failure.
57114
57115 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         Minor fixups to port to Solaris 10 with Sun C 5.8.
57118         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57119         * modules/getcwd (Depends-on): Add dirfd.
57120         * lib/putenv.c (putenv): #undef it.
57121         (rpl_putenv): New decl.
57122         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57123
57124 2007-02-20  Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/stdio-tests: New file.
57127         * tests/test-stdio.c: New file.
57128
57129         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57130         (Depends-on): Add stdio.
57131         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57132         (Include): Use <stdio.h> instead of vsnprintf.h.
57133         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57134         HAVE_DECL_VSNPRINTF.
57135         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57136
57137         * modules/snprintf (Files): Remove lib/snprintf.h.
57138         (Depends-on): Add stdio.
57139         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57140         (Include): Use <stdio.h> instead of snprintf.h.
57141         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57142         HAVE_DECL_SNPRINTF.
57143         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57144         * lib/getaddrinfo.c: Likewise.
57145
57146         * modules/stdio: New file.
57147         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57148         * lib/snprintf.h: Remove file.
57149         * lib/vsnprintf.h: Remove file.
57150         * lib/.cppi-disable: Remove snprintf.h.
57151         * m4/stdio_h.m4: New file.
57152         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57153
57154 2007-02-20  Jim Meyering  <jim@meyering.net>
57155
57156         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57157         used by e.g., mingw.  From Bruno Haible.
57158
57159 2007-02-19  Bruno Haible  <bruno@clisp.org>
57160
57161         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57162         warnings.
57163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57164
57165 2007-02-19  Bruno Haible  <bruno@clisp.org>
57166
57167         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57168         from mingw users.
57169
57170 2007-02-19  Bruno Haible  <bruno@clisp.org>
57171
57172         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57173         warnings.
57174         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57175
57176 2007-02-19  Jim Meyering  <jim@meyering.net>
57177
57178         Don't use FD after a successful "fdopendir (fd)".
57179         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57180         Reset it by calling dirfd on the just-obtained DIR*.
57181
57182         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57183         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57184
57185 2007-02-18  Bruno Haible  <bruno@clisp.org>
57186
57187         * lib/readlink.c: Include <unistd.h>.
57188         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57189         HAVE_READLINK.
57190         * modules/readlink (Depends-on): Add unistd.
57191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57192         (Include): Add <unistd.h>.
57193
57194         * lib/getlogin_r.h: Remove file.
57195         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57196         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57197         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57198         HAVE_DECL_GETLOGIN_R.
57199         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57200         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57201         (Include): Use <unistd.h> instead of getlogin_r.h.
57202
57203         * lib/getcwd.h: Remove file.
57204         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57205         * lib/xgetcwd.c: Likewise.
57206         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57207         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57208         * modules/getcwd (Files): Remove lib/getcwd.h.
57209         (Depends-on): Add unistd.
57210         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57211         (Include): Use <unistd.h> instad of getcwd.h.
57212
57213         * lib/ftruncate.c: Include <unistd.h> first.
57214         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57215         Set HAVE_FTRUNCATE.
57216         * modules/ftruncate (Depends-on): Add unistd.
57217         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57218
57219         * lib/fchdir.c: Include <unistd.h> first.
57220         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57222         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57223         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57224         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57225
57226         * lib/dup2.c: Include <unistd.h> first.
57227         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57228         HAVE_DUP2.
57229         * modules/dup2 (Depends-on): Add unistd.
57230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57231
57232         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57233         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57234         REPLACE_CHOWN. Don't define chown as a macro here.
57235         * modules/chown (Depends-on): Add unistd.
57236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57237
57238         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57239         Add definition for GL_LINK_WARNING.
57240         (chown, dup2): New declarations.
57241         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57242         link warning.
57243         (ftruncate): New declaration.
57244         (getcwd): New declaration, taken from old getcwd.h.
57245         (getlogin_r): New declaration, taken from old getlogin_r.h.
57246         (readlink): New declaration.
57247         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57248         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57249         (gl_PREREQ_UNISTD): Remove macro.
57250         (gl_UNISTD_MODULE_INDICATOR): New macro.
57251         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57252         many new variables. Don't set UNISTD_H.
57253         * modules/unistd (Description): Change.
57254         (Depends-on): Add link-warning.
57255         (configure.ac): Update.
57256         (Makefile.am): Create unistd.h always. Substitute many new variables
57257         into it.
57258
57259 2007-02-18  Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57262         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57263         HAVE_GETSUBOPT.
57264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57265         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57266         * lib/getsubopt.h: Remove file.
57267         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57268         (Depends-on): Add stdlib.
57269         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57270         (Includes): Use <stdlib.h> instead of getsubopt.h.
57271         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57272         Set HAVE_GETSUBOPT.
57273         * lib/getsubopt.c: Don't include getsubopt.h.
57274
57275 2007-02-18  Bruno Haible  <bruno@clisp.org>
57276
57277         * modules/fchdir (Depends-on): Add dup2.
57278
57279 2007-02-18  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/stdlib_.h: Handle glibc's special invocation convention
57282         specially.
57283
57284 2007-02-18  Bruno Haible  <bruno@clisp.org>
57285
57286         * modules/stdlib-tests: New file.
57287         * tests/test-stdlib.c: New file.
57288
57289         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57290         (Depends-on): Add stdlib.
57291         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57292         (Includes): Use <stdlib.h> instead of mkstemp.h.
57293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57294         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57295         * lib/mkstemp.c: Don't include mkstemp.h.
57296         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57297         * lib/stdlib--.h: Don't include mkstemp.h.
57298
57299         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57300         (Depends-on): Add stdlib.
57301         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57302         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57303         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57304         HAVE_MKDTEMP.
57305         * lib/mkdtemp.c: Don't include mkdtemp.h.
57306         * lib/clean-temp.c: Don't include mkdtemp.h.
57307
57308         * modules/exit (Files): Remove lib/exit.h.
57309         (Depends-on): Add stdlib.
57310         (Makefile.am): Remove lib_SOURCES.
57311         (Include): Use <stdlib.h> instead of exit.h.
57312         * lib/argmatch.c: Don't include exit.h.
57313         * lib/execute.c: Likewise.
57314         * lib/pagealign_alloc.c: Likewise.
57315         * lib/pipe.c: Likewise.
57316         * lib/wait-process.c: Likewise.
57317         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57318         * lib/exitfail.c: Likewise.
57319         * lib/savewd.c: Likewise.
57320         * lib/xsetenv.c: Likewise.
57321
57322         * modules/stdlib: New file.
57323         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57324         and extra comments about mkstemp().
57325         * lib/exit.h: Remove file.
57326         * lib/mkdtemp.h: Remove file.
57327         * lib/mkstemp.h: Remove file.
57328         * m4/stdlib_h.m4: New file.
57329         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57330
57331 2007-02-18  Bruno Haible  <bruno@clisp.org>
57332
57333         * modules/math-tests: New file.
57334         * tests/test-math.c: New file.
57335
57336         * modules/math: New file.
57337         * modules/mathl (Files): Remove lib/mathl.h.
57338         (Depends-on): Add math.
57339         (Makefile.am): Don't mention mathl.h.
57340         (Include): Use <math.h> instead of mathl.h.
57341         * lib/math_.h: New file.
57342         * lib/mathl.h: Remove file.
57343         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57344         mathl.h.
57345         * lib/asinl.c: Likewise.
57346         * lib/atanl.c: Likewise.
57347         * lib/ceill.c: Likewise.
57348         * lib/cosl.c: Likewise.
57349         * lib/expl.c: Likewise.
57350         * lib/floorl.c: Likewise.
57351         * lib/frexpl.c: Likewise.
57352         * lib/ldexpl.c: Likewise.
57353         * lib/logl.c: Likewise.
57354         * lib/sincosl.c: Likewise.
57355         * lib/sinl.c: Likewise.
57356         * lib/sqrtl.c: Likewise.
57357         * lib/tanl.c: Likewise.
57358         * lib/trigl.c: Likewise.
57359         * m4/math_h.m4: New file.
57360         * MODULES.html.sh (Mathematics): Add math.
57361
57362 2007-02-17  Bruno Haible  <bruno@clisp.org>
57363
57364         * modules/wctype-tests: New file.
57365         * tests/test-wctype.c: New file.
57366
57367         * modules/wchar-tests: New file.
57368         * tests/test-wchar.c: New file.
57369
57370         * modules/unistd-tests: New file.
57371         * tests/test-unistd.c: New file.
57372
57373         * modules/time-tests: New file.
57374         * tests/test-time.c: New file.
57375
57376         * modules/sysexits-tests: New file.
57377         * tests/test-sysexits.c: New file.
57378
57379         * modules/sys_time-tests: New file.
57380         * tests/test-sys_time.c: New file.
57381
57382         * modules/sys_stat-tests: New file.
57383         * tests/test-sys_stat.c: New file.
57384
57385         * modules/sys_socket-tests: New file.
57386         * tests/test-sys_socket.c: New file.
57387
57388         * modules/sys_select-tests: New file.
57389         * tests/test-sys_select.c: New file.
57390
57391         * modules/string-tests: New file.
57392         * tests/test-string.c: New file.
57393
57394         * modules/stdbool-tests: New file.
57395         * tests/test-stdbool.c: New file.
57396
57397         * modules/netinet_in-tests: New file.
57398         * tests/test-netinet_in.c: New file.
57399
57400         * modules/inttypes-tests: New file.
57401         * tests/test-inttypes.c: New file.
57402
57403         * modules/fcntl-tests: New file.
57404         * tests/test-fcntl.c: New file.
57405
57406         * modules/byteswap-tests: New file.
57407         * tests/test-byteswap.c: New file.
57408
57409         * modules/arpa_inet-tests: New file.
57410         * tests/test-arpa_inet.c: New file.
57411
57412 2007-02-17  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57415         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57416         if the corresponding module is not enabled. Emit link warnings if
57417         the function is used nevertheless.
57418         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57419         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57420         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57421         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57422         * modules/inttypes (Depends-on): Add link-warning.
57423         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57424         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57425         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57426         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57427         * modules/imaxdiv (configure.ac): Likewise.
57428         * modules/strtoimax (configure.ac): Likewise.
57429         * modules/strtoumax (configure.ac): Likewise.
57430
57431 2007-02-17  Bruno Haible  <bruno@clisp.org>
57432
57433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57434         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57435         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57436         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57437
57438 2007-02-17  Bruno Haible  <bruno@clisp.org>
57439
57440         * modules/link-warning: New file.
57441         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57442         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57443         * modules/string (Depends-on): Add link-warning.
57444         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57445         string.h.
57446         * MODULES.html.sh (Support for building libraries and executables): Add
57447         link-warning.
57448
57449 2007-02-17  Bruno Haible  <bruno@clisp.org>
57450
57451         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57452         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57453         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57454         long lines.
57455
57456 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57457             Bruno Haible  <bruno@clisp.org>
57458
57459         * modules/tmpfile: New file.
57460         * lib/tmpfile.c: New file.
57461         * m4/tmpfile.m4: New file.
57462         * MODULES.html.sh (func_all_modules): New section "Input/output".
57463
57464 2007-02-15  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57467         (supports_delete_on_close): New function.
57468         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57469
57470 2007-02-14  Bruno Haible  <bruno@clisp.org>
57471
57472         * modules/mbspcasecmp-tests: New file.
57473         * tests/test-mbspcasecmp.sh: New file.
57474         * tests/test-mbspcasecmp.c: New file.
57475
57476         New module mbspcasecmp.
57477         * modules/mbspcasecmp: New file.
57478         * lib/mbspcasecmp.c: New file.
57479         * lib/string_.h (strncasecmp): Change warning message.
57480         (mbspcasecmp): New declaration.
57481         * m4/mbspcasecmp.m4: New file.
57482         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57483         GNULIB_MBSPCASECMP.
57484         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57485         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57486
57487 2007-02-14  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/mbsncasecmp-tests: New file.
57490         * tests/test-mbsncasecmp.sh: New file.
57491         * tests/test-mbsncasecmp.c: New file.
57492
57493         New module mbsncasecmp.
57494         * modules/mbsncasecmp: New file.
57495         * lib/mbsncasecmp.c: New file.
57496         * lib/string_.h (mbsncasecmp): New declaration.
57497         * m4/mbsncasecmp.m4: New file.
57498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57499         GNULIB_MBSNCASECMP.
57500         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57501         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57502
57503 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57506         Verify that it doesn't overlap with our flags.
57507         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57508         do not have the desired effect in multibyte locales; instead, use
57509         mbscasecmp.
57510         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57511         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57512         we don't require GNU fnmatch ourselves (if our users require it, they
57513         should do so explicitly).
57514
57515         Fix regex code so it doesn't rely on strcasecmp.
57516         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57517         Otherwise, include gnulib's langinfo.h.
57518         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57519         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57520         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57521         * modules/regex (FILES): Remove m4/codeset.m4.
57522         (Depends-on): Add localcharset.  Remove strcase.
57523
57524 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57525
57526         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57527         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57528
57529 2007-02-13  Bruno Haible  <bruno@clisp.org>
57530
57531         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57532         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57533
57534 2007-02-12  Bruno Haible  <bruno@clisp.org>
57535
57536         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57537         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57538         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57539         time warning rather than a link error.
57540
57541 2007-02-12  Bruno Haible  <bruno@clisp.org>
57542
57543         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57544         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57545         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57546
57547 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57550         args, not 2.
57551
57552 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57553
57554         New module 'time', so that apps can include <time.h> as per
57555         POSIX and GNU instead of separate include files like time_r.h
57556         and timegm.h.  This implementation tries out a simpler approach
57557         for replacing decls in standard include files (as compared to
57558         the string module), somewhat as an experiment.
57559
57560         * config/srclist.txt: Comment out mktime.c for now.
57561         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57562         since it doesn't apply any more.  Use generic wording instead.
57563         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57564         'time'.
57565         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57566         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57567         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57568         Don't include <sys/types.h>; no longer needed since we assume C89.
57569         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57570         * lib/strftime.c: Likewise.
57571         * lib/time_r.c: Likewise.
57572         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57573         * lib/nanosleep.c: Include <time.h> first, to check interface.
57574         * lib/strptime.c: Likewise.
57575         * lib/time_r.c: Likewise.
57576         * lib/timegm.c: Likewise.
57577         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57578         needed.
57579         * lib/timegm.c: Don't include timegm.h; no longer needed.
57580         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57581         time.h now handles any problems in that area.
57582         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57583         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57584         that time.h defines struct timespec.
57585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57586         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57587         handles that.
57588         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57589         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57590         needed.  Set REPLACE_LOCALTIME.
57591         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57592         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57593         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57594         nanosleep; time_h.m4 now does that.  Don't require
57595         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57596         module handles this now.
57597         * modules/getdate (Depends-on): Remove timespec.  Add time.
57598         * modules/nanosleep (Depends-on): Likewise.
57599         * modules/stat-time (Depends-on): Likewise.
57600         * modules/nanosleep (Include): Include time.h, not timespec.h.
57601         * modules/strptime (Files): Remove lib/strptime.h.
57602         (Depends-on): Add extensions, time.
57603         (Include): Include time.h, not strptime.h.
57604         * modules/time_r (Files): Remove lib/time_r.h.
57605         (Depends-on): Add time.
57606         (Include): Include time.h, not time_r.h.
57607         * modules/timegm: Likewise.
57608         * modules/timespec (Description): Now does timespec-related decls
57609         of our own, instead of struct timespec itself.
57610         (Depends-on): Add time; remove extensions.
57611         (Maintainer): Add self.
57612         * modules/utimecmp (Depends-on): Add time; remove timespec.
57613         * modules/utimens (Depends-on): Likewise.
57614         * modules/xnanosleep (Depends-on): Likewise.
57615
57616 2007-02-11  Bruno Haible  <bruno@clisp.org>
57617
57618         * lib/c-strstr.c: Include allocsa.h.
57619         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57620         * lib/c-strcasestr.c: Include allocsa.h.
57621         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57622         * lib/strcasestr.c: Include allocsa.h.
57623         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57624         * lib/mbsstr.c: Include allocsa.h.
57625         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57626         allocsa/freesa instead of malloc/free.
57627         * lib/mbscasestr.c: Include allocsa.h.
57628         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57629         allocsa/freesa instead of malloc/free.
57630         * modules/c-strstr (Depends-on): Add allocsa.
57631         * modules/c-strcasestr (Depends-on): Likewise.
57632         * modules/strcasestr (Depends-on): Likewise.
57633         * modules/mbsstr (Depends-on): Likewise.
57634         * modules/mbscasestr (Depends-on): Likewise.
57635
57636 2007-02-11  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57639
57640         * modules/mbsspn-tests: New file.
57641         * tests/test-mbsspn.sh: New file.
57642         * tests/test-mbsspn.c: New file.
57643
57644 2007-02-11  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57647
57648         * modules/mbspbrk-tests: New file.
57649         * tests/test-mbspbrk.sh: New file.
57650         * tests/test-mbspbrk.c: New file.
57651
57652 2007-02-11  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57655         unneeded cast.
57656
57657         * modules/mbscspn-tests: New file.
57658         * tests/test-mbscspn.sh: New file.
57659         * tests/test-mbscspn.c: New file.
57660
57661 2007-02-11  Bruno Haible  <bruno@clisp.org>
57662
57663         * modules/mbscasecmp-tests: New file.
57664         * tests/test-mbscasecmp.sh: New file.
57665         * tests/test-mbscasecmp.c: New file.
57666
57667 2007-02-11  Bruno Haible  <bruno@clisp.org>
57668
57669         Ensure O(n) worst-case complexity of mbscasestr.
57670         * lib/mbscasestr.c: Include stdbool.h.
57671         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57672         functions.
57673         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57674         the bookkeeping indicates that it's worth it.
57675         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57676
57677         * modules/mbscasestr-tests: New file.
57678         * tests/test-mbscasestr1.c: New file.
57679         * tests/test-mbscasestr2.sh: New file.
57680         * tests/test-mbscasestr2.c: New file.
57681         * tests/test-mbscasestr3.sh: New file.
57682         * tests/test-mbscasestr3.c: New file.
57683         * tests/test-mbscasestr4.sh: New file.
57684         * tests/test-mbscasestr4.c: New file.
57685         * m4/locale-tr.m4: New file.
57686
57687 2007-02-11  Bruno Haible  <bruno@clisp.org>
57688
57689         Ensure O(n) worst-case complexity of mbsstr.
57690         * lib/mbsstr.c: Include stdbool.h.
57691         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57692         functions.
57693         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57694         bookkeeping indicates that it's worth it.
57695         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57696
57697         * modules/mbsstr-tests: New file.
57698         * tests/test-mbsstr1.c: New file.
57699         * tests/test-mbsstr2.sh: New file.
57700         * tests/test-mbsstr2.c: New file.
57701         * tests/test-mbsstr3.sh: New file.
57702         * tests/test-mbsstr3.c: New file.
57703         * m4/locale-fr.m4: New file.
57704
57705 2007-02-11  Bruno Haible  <bruno@clisp.org>
57706
57707         * lib/mbsrchr.c (mbsrchr): Fix bug.
57708
57709         * modules/mbsrchr-tests: New file.
57710         * tests/test-mbsrchr.sh: New file.
57711         * tests/test-mbsrchr.c: New file.
57712
57713 2007-02-11  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/mbschr.c (mbschr): Fix bug.
57716
57717         * modules/mbschr-tests: New file.
57718         * tests/test-mbschr.sh: New file.
57719         * tests/test-mbschr.c: New file.
57720         * m4/locale-zh.m4: New file.
57721
57722 2007-02-11  Bruno Haible  <bruno@clisp.org>
57723
57724         Support for copying multibyte string iterators.
57725         * lib/mbiter.h: Include <string.h>.
57726         (mbiter_multi_copy): New function.
57727         (mbi_copy): New macro.
57728         * lib/mbuiter.h: Include <string.h>.
57729         (mbuiter_multi_copy): New function.
57730         (mbui_copy): New macro.
57731
57732 2007-02-11  Bruno Haible  <bruno@clisp.org>
57733
57734         New module mbslen.
57735         * modules/mbslen: New file.
57736         * lib/mbslen.c: New file.
57737         * lib/string_.h (mbslen): New declaration.
57738         * m4/mbslen.m4: New file.
57739         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57740         GNULIB_MBSLEN.
57741         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57742         * MODULES.html.sh (Internationalization functions): Add mbslen.
57743
57744 2007-02-11  Bruno Haible  <bruno@clisp.org>
57745
57746         Ensure O(n) worst-case complexity of strcasestr substitute.
57747         * lib/strcasestr.c: Include stdbool.h.
57748         (knuth_morris_pratt): New function.
57749         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57750         bookkeeping indicates that it's worth it.
57751         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57752
57753         * modules/strcasestr-tests: New file.
57754         * tests/test-strcasestr.c: New file.
57755
57756 2007-02-11  Bruno Haible  <bruno@clisp.org>
57757
57758         Ensure O(n) worst-case complexity of c_strcasestr.
57759         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57760         (knuth_morris_pratt): New function.
57761         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57762         the bookkeeping indicates that it's worth it.
57763         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57764
57765         * modules/c-strcasestr-tests: New file.
57766         * tests/test-c-strcasestr.c: New file.
57767
57768 2007-02-11  Bruno Haible  <bruno@clisp.org>
57769
57770         Ensure O(n) worst-case complexity of c_strstr.
57771         * lib/c-strstr.c: Include stdbool.h, string.h.
57772         (knuth_morris_pratt): New function.
57773         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57774         bookkeeping indicates that it's worth it.
57775         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57776
57777         * lib/c-strstr.c: Complete rewrite for maintainability.
57778
57779         * modules/c-strstr-tests: New file.
57780         * tests/test-c-strstr.c: New file.
57781
57782 2007-02-11  Bruno Haible  <bruno@clisp.org>
57783
57784         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57785         5.2.1 and earlier, whereby \055 was treated just like the range
57786         delimiter '-'.
57787         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57788
57789 2007-02-08  Bruno Haible  <bruno@clisp.org>
57790
57791         * modules/regex (Depends-on): Add stdbool.
57792         Reported by Dalibor Topic <robilad@kaffe.org>.
57793
57794 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57795
57796         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57797         Prefer returning from main to exiting from it.
57798         Remove unnecessary parens after sizeof.
57799
57800 2007-02-05  Bruno Haible  <bruno@clisp.org>
57801
57802         New module mbssep.
57803         * modules/mbssep: New file.
57804         * lib/mbssep.c: New file.
57805         * lib/string_.h (strsep): Add a conditional link warning.
57806         (mbssep): New declaration.
57807         * m4/mbssep.m4: New file.
57808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57809         GNULIB_MBSSEP.
57810         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57811         * MODULES.html.sh (Internationalization functions): Add mbssep.
57812
57813 2007-02-05  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57816         Optimize search in case of 1 delimiter.
57817
57818 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57819
57820         * lib/acl.h: Include sys/types.h before sys/acl.h.
57821
57822 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57823
57824         Merge upstream fix for glibc bugzilla #3957:
57825
57826         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57827
57828         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57829         bit for RE_HAT_LISTS_NOT_NEWLINE.
57830         (build_charclass_op): Remove bogus comment.
57831
57832 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57833
57834         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57835
57836 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57839         * lib/memmem.c [!defined _LIBC]: Include config.h.
57840
57841 2007-02-04  Bruno Haible  <bruno@clisp.org>
57842
57843         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57844         warning message.
57845
57846 2007-02-04  Bruno Haible  <bruno@clisp.org>
57847
57848         New module mbstok_r.
57849         * modules/mbstok_r: New file.
57850         * lib/mbstok_r.c: New file.
57851         * lib/string_.h (strtok_r): Change argument names to match the
57852         comments. Add a conditional link warning.
57853         (mbstok_r): New declaration.
57854         * m4/mbstok_r.m4: New file.
57855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57856         GNULIB_MBSTOK_R.
57857         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57858         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57859
57860 2007-02-04  Bruno Haible  <bruno@clisp.org>
57861
57862         New module mbsspn.
57863         * modules/mbsspn: New file.
57864         * lib/mbsspn.c: New file.
57865         * lib/string_.h (strspn): Add a conditional link warning.
57866         (mbsspn): New declaration.
57867         * m4/mbsspn.m4: New file.
57868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57869         GNULIB_MBSSPN.
57870         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57871         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57872
57873 2007-02-04  Bruno Haible  <bruno@clisp.org>
57874
57875         New module mbspbrk.
57876         * modules/mbspbrk: New file.
57877         * lib/mbspbrk.c: New file.
57878         * lib/string_.h (strpbrk): Add a conditional link warning.
57879         (mbspbrk): New declaration.
57880         * m4/mbspbrk.m4: New file.
57881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57882         GNULIB_MBSPBRK.
57883         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57884         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57885
57886 2007-02-04  Bruno Haible  <bruno@clisp.org>
57887
57888         New module mbscspn.
57889         * modules/mbscspn: New file.
57890         * lib/mbscspn.c: New file.
57891         * lib/string_.h (strcspn): Add a conditional link warning.
57892         (mbscspn): New declaration.
57893         * m4/mbscspn.m4: New file.
57894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57895         GNULIB_MBSCSPN.
57896         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57897         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57898
57899 2007-02-04  Bruno Haible  <bruno@clisp.org>
57900
57901         New module mbscasestr, reduced goal of strcasestr.
57902         * modules/mbscasestr: New file.
57903         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57904         (mbscasestr): Renamed from strcasestr.
57905         * lib/strcasestr.c: Don't include mbuiter.h.
57906         (strcasestr): Remove support for multibyte locales.
57907         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57908         Change the conditional link warning.
57909         (mbscasestr): New declaration.
57910         * m4/mbscasestr.m4: New file.
57911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57912         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57913         REPLACE_STRCASESTR.
57914         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57916         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57917         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57918         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57919         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57920         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57921         (Depends-on): Remove mbuiter.
57922         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57923
57924 2007-02-04  Bruno Haible  <bruno@clisp.org>
57925
57926         Simplify handling of strncasecmp.
57927         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57928         the conditional link warning.
57929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57930         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57931         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57932         * modules/strcase (configure.ac): Don't invoke
57933         gl_STRING_MODULE_INDICATOR.
57934         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57935
57936 2007-02-04  Bruno Haible  <bruno@clisp.org>
57937
57938         New module mbscasecmp, reduced goal of strcasecmp.
57939         * modules/mbscasecmp: New file.
57940         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57941         (mbscasecmp): Renamed from strcasecmp.
57942         * lib/strcasecmp.c: Don't include mbuiter.h.
57943         (strcasecmp): Remove support for multibyte locales.
57944         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57945         Change the conditional link warning.
57946         (mbscasecmp): New declaration.
57947         * m4/mbscasecmp.m4: New file.
57948         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57949         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57950         REPLACE_STRCASECMP.
57951         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57953         GNULIB_MBSCASECMP.
57954         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57955         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57956         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57957         (Depends-on): Remove mbuiter.
57958         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57959
57960 2007-02-04  Bruno Haible  <bruno@clisp.org>
57961
57962         New module mbsstr. Remove module strstr.
57963         * modules/mbsstr: New file.
57964         * modules/strstr: Remove file.
57965         * lib/mbsstr.c: Renamed from lib/strstr.c.
57966         (mbsstr): Renamed from strstr.
57967         * lib/string_.h (strstr): Remove declaration. Change the conditional
57968         link warning.
57969         (mbsstr): New declaration.
57970         * m4/mbsstr.m4: New file.
57971         * m4/strstr.m4: Remove file.
57972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57973         REPLACE_STRSTR.
57974         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57975         Don't initialize GNULIB_STRSTR.
57976         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57977         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57978         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57979         (Support for systems lacking ANSI C 89): Remove strstr.
57980
57981 2007-02-04  Bruno Haible  <bruno@clisp.org>
57982
57983         New module mbsrchr.
57984         * modules/mbsrchr: New file.
57985         * lib/mbsrchr.c: New file.
57986         * lib/string_.h (strrchr): Add a conditional link warning.
57987         (mbsrchr): New declaration.
57988         * m4/mbsrchr.m4: New file.
57989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57990         GNULIB_MBSRCHR.
57991         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57992         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57993
57994 2007-02-04  Bruno Haible  <bruno@clisp.org>
57995
57996         New module mbschr.
57997         * modules/mbschr: New file.
57998         * lib/mbschr.c: New file.
57999         * lib/string_.h (strchr): Add a conditional link warning.
58000         (mbschr): New declaration.
58001         * m4/mbschr.m4: New file.
58002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58003         GNULIB_MBSCHR.
58004         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58005         * MODULES.html.sh (Internationalization functions): Add mbschr.
58006
58007 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58008
58009         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58010
58011         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58012
58013 2007-02-04  Bruno Haible  <bruno@clisp.org>
58014
58015         New module description section 'configure.ac-early'.
58016         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58017         (func_get_autoconf_early_snippet): New function.
58018         (func_import, func_create_testdir): Use it. Remove special cases for
58019         modules 'extensions' and 'lock'.
58020         * modules/extensions (configure.ac-early): Require
58021         gl_USE_SYSTEM_EXTENSIONS.
58022         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58023
58024 2007-02-04  Bruno Haible  <bruno@clisp.org>
58025
58026         Make use of gcj-4.3's -fsource and -ftarget option.
58027         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58028         and if so try the options -fsource and -ftarget.
58029         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58030         source_version, ftarget_option, target_version arguments.
58031         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58032         (is_envjavac_oldgcj_14_14_usable): Renamed from
58033         is_envjavac_gcj_14_14_usable.
58034         (is_envjavac_oldgcj_14_13_usable): Renamed from
58035         is_envjavac_gcj_14_13_usable.
58036         (is_gcj_present): Update.
58037         (is_gcj_43, is_gcj43_usable): New functions.
58038         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58039         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58040         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58041         try the options -fsource and -ftarget.
58042
58043 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58044
58045         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58046         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58047         larger value.
58048
58049 2007-02-03  Jim Meyering  <jim@meyering.net>
58050
58051         Give tools a better chance to allocate space for very large buffers.
58052         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58053
58054         Make pwd and readlink work also when run with an unreadable parent dir
58055         on systems with openat support.
58056         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58057         provided getcwd function, even when we have openat support.
58058         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58059
58060 2007-02-02  Bruno Haible  <bruno@clisp.org>
58061
58062         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58063         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58064         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58065         portability problems if one of these functions is only used on specific
58066         platforms.
58067         Reported by Paul Eggert.
58068
58069 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58072         is causing more trouble than it's curing.
58073         * lib/regex_internal.h (__mempcpy): Remove.
58074         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58075         (and make the code a tad smaller to boot).
58076         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58077
58078 2007-02-02  Jim Meyering  <jim@meyering.net>
58079
58080         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58081         section, not in the Makefile.am: one.
58082
58083 2007-02-02  Eric Blake  <ebb9@byu.net>
58084
58085         * lib/strchrnul.c: Always include config.h first.
58086
58087         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58088         gnulib strstr is not necessary here.
58089
58090 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58091
58092         * m4/socklen.m4: Fix typo.
58093
58094 2007-02-02  Eric Blake  <ebb9@byu.net>
58095
58096         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58097         * modules/netinet_in (Makefile.am): Likewise.
58098
58099 2007-02-01  Bruno Haible  <bruno@clisp.org>
58100
58101         * lib/string_.h (GL_LINK_WARNING): New macro.
58102         (strcasecmp, strstr, strcasestr): If provided by the system,
58103         conditionally define as a macro that leads to a warning instead of to
58104         an error.
58105         (strncasecmp): Conditionally define as a macro that leads to a warning.
58106
58107 2007-02-01  Karl Berry  <karl@gnu.org>
58108
58109         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58110
58111 2007-02-01  Bruno Haible  <bruno@clisp.org>
58112
58113         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58114         renamings.
58115
58116 2007-02-01  Eric Blake  <ebb9@byu.net>
58117
58118         * modules/regex (Depends-on): Revert dependence on mempcpy.
58119         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58120         module's definition of mempcpy.
58121         Reported by Paul Eggert.
58122
58123 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58124
58125         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58126         the symbol XYZ before redefining it.  This fixes a problem with
58127         programs that don't use XYZ, when compiled on systems that define
58128         XYZ to something else.
58129
58130 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58133         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58134         writeable to group or other and (2) is intended to have a special
58135         mode bit that is set or cleared.  In such a case, the directory
58136         should be neither group- nor other-writeable until the special
58137         mode bits are right.
58138
58139 2007-01-31  Eric Blake  <ebb9@byu.net>
58140
58141         * modules/mountlist (Depends-on): Add strstr.
58142
58143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58144         bug.
58145         * modules/string (Makefile.am): Remove redundant replacement.
58146         * modules/regex (Depends-on): Add mempcpy.
58147
58148 2007-01-31  Bruno Haible  <bruno@clisp.org>
58149
58150         New module description field 'Link'.
58151         * gnulib-tool (func_usage): Document --extract-link-directive.
58152         (sed_extract_prog): Recognize 'Link' directive.
58153         (func_get_link_directive): New function.
58154         (func_import): Show summary of link directives.
58155         Handle --extract-link-directive option.
58156         * modules/acl (Link): New section.
58157         * modules/clock-time (Link): New section.
58158         * modules/euidaccess (Link): New section.
58159         * modules/gettext (Link): New section.
58160         * modules/iconv (Link): New section.
58161         * modules/lock (Link): New section.
58162         * modules/nanosleep (Link): New section.
58163         * modules/readline (Link): New section.
58164
58165 2007-01-27  Bruno Haible  <bruno@clisp.org>
58166
58167         Enforce the use of gnulib modules for unportable <string.h> functions.
58168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58169         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58170         (gl_HEADER_STRING_H_BODY): Require it.
58171         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58172         the symbol XYZ to one that gives a link error.
58173         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58174         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58175         * modules/mempcpy (configure.ac): Likewise.
58176         * modules/memrchr (configure.ac): Likewise.
58177         * modules/stpcpy (configure.ac): Likewise.
58178         * modules/stpncpy (configure.ac): Likewise.
58179         * modules/strcase (configure.ac): Likewise.
58180         * modules/strcasestr (configure.ac): Likewise.
58181         * modules/strchrnul (configure.ac): Likewise.
58182         * modules/strdup (configure.ac): Likewise.
58183         * modules/strndup (configure.ac): Likewise.
58184         * modules/strnlen (configure.ac): Likewise.
58185         * modules/strpbrk (configure.ac): Likewise.
58186         * modules/strsep (configure.ac): Likewise.
58187         * modules/strstr (configure.ac): Likewise.
58188         * modules/strtok_r (configure.ac): Likewise.
58189
58190 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58191
58192         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58193
58194 2007-01-30  Jim Meyering  <jim@meyering.net>
58195
58196         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58197
58198 2007-01-29  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58201         * lib/execute.c: Likewise.
58202         * lib/pipe.c: Likewise.
58203         * lib/printf-args.h: Likewise.
58204         * lib/printf-args.c: Likewise.
58205         * lib/printf-parse.c: Likewise.
58206         * lib/vasnprintf.c: Likewise.
58207
58208 2007-01-29  Eric Blake  <ebb9@byu.net>
58209
58210         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58211         declaration.
58212
58213 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58214
58215         * lib/strptime.h (strptime): Use 'restrict' for args where
58216         POSIX requires this.
58217         * lib/strptime.c (strptime): Likewise.
58218         Change license notice from LGPL to GPL, since gnulib-tool will
58219         change this as needed.
58220         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58221         defined.
58222         Include "strptime.h" first, to check interface.
58223         Do not #undef _LIBC and _NL_CURRENT.
58224         Do not include <stdlib.h>; no longer needed.
58225         Include "time_r.h" and declare ptime_locale_status
58226         only if _LIBC is not defined.
58227         (__P): Remove unused macro.
58228         (match_string): Bring back glibc version, but use it only if _LIBC
58229         is defined.
58230         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58231         Remove unnecessary assertion and abort() call.
58232         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58233         * m4/strptime.m4: Fix serial number comment.
58234         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58235         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58236         (Depends-on): Add time_r.
58237
58238 2007-01-29  Bruno Haible  <bruno@clisp.org>
58239
58240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58241         strptime.
58242         * modules/strptime (Depends-on): Add stdbool.
58243         * lib/strptime.h: Include <time.h> always. Add comments.
58244
58245 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58246
58247         * modules/strptime: New file.
58248         * lib/strptime.h: New file.
58249         * lib/strptime.c: New file.
58250         * m4/strptime.m4: New file.
58251
58252 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58253
58254         * MODULES.html.sh: New module mpsort.
58255         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58256
58257         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58258         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58260         All uses changed.
58261         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58262         All uses changed.
58263         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58264         to _Restrict_.
58265         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58266         the parameter matches the prototype.
58267
58268 2007-01-28  Jim Meyering  <jim@meyering.net>
58269
58270         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58271         sys/time.h here, reverting that part of the previous patch:
58272         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58273
58274 2007-01-28  Bruno Haible  <bruno@clisp.org>
58275
58276         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58277         value of $(SYS_TIME_H).
58278         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58279         remove it conditionally, too. [added by Jim Meyering]
58280         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58281         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58282         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58283         GETTIMEOFDAY_REPLACEMENT to 1.
58284
58285 2007-01-28  Bruno Haible  <bruno@clisp.org>
58286
58287         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58288         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58290         Set UNISTD_H instead of UNISTD_H2.
58291         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58292
58293 2007-01-28  Bruno Haible  <bruno@clisp.org>
58294
58295         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58296         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58297
58298 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58299
58300         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58301         (func_create_testdir): Ensure C locale for `grep' and `tr'
58302         character ranges.
58303         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58304         ACLOCAL_AMFLAGS parsing state machine.
58305
58306 2007-01-27  Bruno Haible  <bruno@clisp.org>
58307
58308         * modules/unistr/base: Update.
58309
58310 2007-01-27  Bruno Haible  <bruno@clisp.org>
58311
58312         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58313         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58314         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58315         modules/unistr/u32-mbtouc.
58316         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58317         * lib/unistr.h: Update.
58318         * lib/linebreak.c: Update.
58319         * modules/unistr/u32-mbtouc: Renamed from
58320         modules/unistr/u32-mbtouc-safe.
58321         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58322         * lib/unistr.h: Update.
58323         * lib/unistr/u32-to-u8.c: Update.
58324         * lib/unistr/u32-to-u16.c: Update.
58325
58326 2007-01-27  Bruno Haible  <bruno@clisp.org>
58327
58328         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58329         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58330         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58331         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58332         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58333         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58334         modules/unistr/u16-mbtouc.
58335         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58336         * lib/unistr.h: Update.
58337         * lib/linebreak.c: Update.
58338         * modules/linebreak: Update.
58339         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58340         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58341         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58342         * modules/unistr/u16-mbtouc: Renamed from
58343         modules/unistr/u16-mbtouc-safe.
58344         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58345         * lib/unistr.h: Update.
58346         * lib/unistr/u16-to-u8.c: Update.
58347         * modules/unistr/u16-to-u8: Update.
58348         * lib/unistr/u16-to-u32.c: Update.
58349         * modules/unistr/u16-to-u32: Update.
58350
58351 2007-01-27  Bruno Haible  <bruno@clisp.org>
58352
58353         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58354         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58355         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58356         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58357         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58358         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58359         modules/unistr/u8-mbtouc.
58360         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58361         * lib/unistr.h: Update.
58362         * lib/striconveh.c: Update.
58363         * modules/striconveh: Update.
58364         * lib/linebreak.c: Update.
58365         * modules/linebreak: Update.
58366         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58367         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58368         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58369         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58370         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58371         * lib/unistr.h: Update.
58372         * lib/striconveh.c: Update.
58373         * modules/striconveh: Update.
58374         * lib/unistr/u8-to-u16.c: Update.
58375         * modules/unistr/u8-to-u16: Update.
58376         * lib/unistr/u8-to-u32.c: Update.
58377         * modules/unistr/u8-to-u32: Update.
58378
58379 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58380
58381         Sync from Libtool.
58382         * lib/argz.c: Do not include strings.h nor memory.h, include
58383         string.h unconditionally.  Patch by Simon Josefsson.
58384
58385 2007-01-27  Bruno Haible  <bruno@clisp.org>
58386
58387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58388         from gl_HEADER_STRING_H_BODY.
58389         (gl_HEADER_STRING_H_BODY): Require it.
58390         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58391         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58392         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58393         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58394         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58395         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58397         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58398         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58399         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58400         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58401         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58402         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58403         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58404         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58405
58406 2007-01-27  Bruno Haible  <bruno@clisp.org>
58407
58408         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58409         check_PROGRAMS into noinst_PROGRAMS.
58410         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58411         check_PROGRAMS in this case.
58412         (func_import): Set for_test to false.
58413         (func_create_testdir): Set for_test to true.
58414
58415 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58416             Bruno Haible  <bruno@clisp.org>
58417
58418         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58419         (Depends-on): Add string.
58420         (Includes): Use <string.h> instead of strcasestr.h.
58421         * modules/string (Makefile.am): Also substitute the value of
58422         REPLACE_STRCASESTR.
58423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58424         assume strcasestr is declared in <string.h> not <strings.h>. Also
58425         set REPLACE_STRCASESTR.
58426         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58427         REPLACE_STRCASESTR.
58428         * lib/strcasestr.h: Remove file.
58429         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58430         * lib/string_.h (strcasestr): New declaration.
58431
58432 2007-01-27  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/string_.h: Use 'extern'.
58435
58436 2007-01-27  Jim Meyering  <jim@meyering.net>
58437
58438         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58439         of set-but-not-used local, "q".
58440
58441         * lib/mempcpy.c: Include <config.h> before <string.h>.
58442         This fixes a compilation error on HP-UX, due to the system's
58443         "restrict"-using mempcpy prototype.
58444
58445 2007-01-26  Bruno Haible  <bruno@clisp.org>
58446
58447         Small optimization.
58448         * lib/javacomp.c: Include c-strstr.h.
58449          (is_envjavac_gcj): Use c_strstr instead of strstr.
58450         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58451
58452 2007-01-26  Bruno Haible  <bruno@clisp.org>
58453
58454         * MODULES.html.sh (Unicode string functions): Add the new modules.
58455
58456         * modules/uniconv/u32-strconv-to-locale: New file.
58457         * lib/uniconv/u32-strconv-to-locale.c: New file.
58458
58459         * modules/uniconv/u16-strconv-to-locale: New file.
58460         * lib/uniconv/u16-strconv-to-locale.c: New file.
58461
58462         * modules/uniconv/u8-strconv-to-locale: New file.
58463         * lib/uniconv/u8-strconv-to-locale.c: New file.
58464
58465         * modules/uniconv/u32-strconv-from-locale: New file.
58466         * lib/uniconv/u32-strconv-from-locale.c: New file.
58467
58468         * modules/uniconv/u16-strconv-from-locale: New file.
58469         * lib/uniconv/u16-strconv-from-locale.c: New file.
58470
58471         * modules/uniconv/u8-strconv-from-locale: New file.
58472         * lib/uniconv/u8-strconv-from-locale.c: New file.
58473
58474         * modules/uniconv/u32-strconv-to-enc: New file.
58475         * lib/uniconv/u32-strconv-to-enc.c: New file.
58476         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58477         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58478
58479         * modules/uniconv/u16-strconv-to-enc: New file.
58480         * lib/uniconv/u16-strconv-to-enc.c: New file.
58481         * lib/uniconv/u-strconv-to-enc.h: New file.
58482         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58483         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58484
58485         * modules/uniconv/u8-strconv-to-enc: New file.
58486         * lib/uniconv/u8-strconv-to-enc.c: New file.
58487         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58488         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58489
58490         * modules/uniconv/u32-strconv-from-enc: New file.
58491         * lib/uniconv/u32-strconv-from-enc.c: New file.
58492         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58493         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58494
58495         * modules/uniconv/u16-strconv-from-enc: New file.
58496         * lib/uniconv/u16-strconv-from-enc.c: New file.
58497         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58498         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58499
58500         * modules/uniconv/u8-strconv-from-enc: New file.
58501         * lib/uniconv/u8-strconv-from-enc.c: New file.
58502         * lib/uniconv/u-strconv-from-enc.h: New file.
58503         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58504         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58505
58506         * modules/uniconv/u32-conv-from-enc: New file.
58507         * lib/uniconv/u32-conv-from-enc.c: New file.
58508         * modules/uniconv/u32-conv-from-enc-tests: New file.
58509         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58510
58511         * modules/uniconv/u16-conv-from-enc: New file.
58512         * lib/uniconv/u16-conv-from-enc.c: New file.
58513         * lib/uniconv/u-conv-from-enc.h: New file.
58514         * modules/uniconv/u16-conv-from-enc-tests: New file.
58515         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58516
58517         * modules/uniconv/u8-conv-from-enc: New file.
58518         * lib/uniconv/u8-conv-from-enc.c: New file.
58519         * modules/uniconv/u8-conv-from-enc-tests: New file.
58520         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58521
58522         * modules/uniconv/base: New file.
58523         * lib/uniconv.h: New file.
58524
58525 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * doc/gnulib-tool.texi (Initial import): Update to match current
58528         behavior with strdup module.
58529         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58530         * lib/memmem.h: Remove; all uses removed.  This is now done
58531         by <string.h>.
58532         * lib/mempcpy.h: Likewise.
58533         * lib/memrchr.h: Likewise.
58534         * lib/stpcpy.h: Likewise.
58535         * lib/stpncpy.h: Likewise.
58536         * lib/strcase.h: Likewise.
58537         * lib/strchrnul.h: Likewise.
58538         * lib/strdup.h: Likewise.
58539         * lib/strndup.h: Likewise.
58540         * lib/strnlen.h: Likewise.
58541         * lib/strpbrk.h: Likewise.
58542         * lib/strsep.h: Likewise.
58543         * lib/strstr.h: Likewise.
58544         * lib/strtok_r.h: Likewise.
58545         * lib/string_.h: New file.
58546         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58547         Rely on <string.h> instead.
58548         * lib/canon-host.c: Likewise.
58549         * lib/chdir-long.c: Likewise.
58550         * lib/concatpath.c: Likewise.
58551         * lib/exclude.c: Likewise.
58552         * lib/fchdir.c: Likewise.
58553         * lib/getaddrinfo.c: Likewise.
58554         * lib/getcwd.c: Likewise.
58555         * lib/getsubopt.c: Likewise.
58556         * lib/glob.c: Likewise.
58557         * lib/hard-locale.c: Likewise.
58558         * lib/iconvme.c: Likewise.
58559         * lib/javacomp.c: Likewise.
58560         * lib/mempcpy.c: Likewise.
58561         * lib/memrchr.c: Likewise.
58562         * lib/regex_internal.h: Likewise.
58563         * lib/stpncpy.c: Likewise.
58564         * lib/strcasecmp.c: Likewise.
58565         * lib/strchrnul.c: Likewise.
58566         * lib/strdup.c: Likewise.
58567         * lib/striconv.c: Likewise.
58568         * lib/striconveh.c: Likewise.
58569         * lib/striconveha.c: Likewise.
58570         * lib/strncasecmp.c: Likewise.
58571         * lib/strndup.c: Likewise.
58572         * lib/strnlen.c: Likewise.
58573         * lib/strsep.c: Likewise.
58574         * lib/strstr.c: Likewise.
58575         * lib/strtok_r.c: Likewise.
58576         * lib/userspec.c: Likewise.
58577         * lib/w32spawn.h: Likewise.
58578         * lib/xstrndup.c: Likewise.
58579         * lib/mountlist.c (strstr): Remove decl.
58580         * m4/string_h.m4: New file.
58581         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58582         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58583         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58584         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58585         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58586         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58587         Set REPLACE_STRCASECMP if necessary.
58588         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58589         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58590         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58591         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58592         HAVE_DECL_STRDUP if necessary.
58593         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58594         since gl_FUNC_STRNDUP does that now.
58595         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58596         Check for decl here...
58597         (gl_PREREQ_STRNLEN): ... not here.
58598         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58599         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58600         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58601         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58602         necessary.
58603         * modules/string: New file.
58604         * modules/memmem (Files): Remove special-purpose include file.
58605         (Depends-on): Add string.
58606         (Include): Include <string.h>, not the removed file.
58607         * modules/mempcpy: Likewise.
58608         * modules/memrchr: Likewise.
58609         * modules/stpcpy: Likewise.
58610         * modules/stpncpy: Likewise.
58611         * modules/strcase: Likewise.
58612         * modules/strchrnul: Likewise.
58613         * modules/strdup: Likewise.
58614         * modules/strndup: Likewise.
58615         * modules/strnlen: Likewise.
58616         * modules/strpbrk: Likewise.
58617         * modules/strsep: Likewise.
58618         * modules/strstr: Likewise.
58619         * modules/strtok_r: Likewise.
58620         * tests/test-dirname.c: Don't include "strdup.h", since
58621         <string.h> now suffices.
58622         * tests/test-memmem.c: Don't include "memmem.h", since
58623         <string.h> now suffices.
58624
58625 2007-01-25  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58628         *resultp is 0.
58629
58630         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58631         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58632         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58633         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58634
58635         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58636         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58637         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58638         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58639         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58640         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58641
58642 2007-01-24  Bruno Haible  <bruno@clisp.org>
58643
58644         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58645         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58646         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58647         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58648         gl_FUNC_FTS_CORE.
58649         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58650         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58651         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58652         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58653         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58654         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58655         gl_FUNC_FCHOWNAT.
58656         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58657         gl_FUNC_STRFTIME.
58658         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58659         Reported by Ralf Wildenhues.
58660
58661 2007-01-24  Bruno Haible  <bruno@clisp.org>
58662
58663         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58664         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58665         gl_GETADDRINFO.
58666         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58667         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58668         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58669
58670 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58671
58672         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58673         Don't use 'exit'; just return from 'main'.
58674         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58675
58676         * lib/fnmatch_.h: Readjust white space and comments to match
58677         glibc, to avoid spurious diffs.
58678
58679 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58680
58681         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58682         2004-12-01 change by Jakub Jelinek, since this code won't compile
58683         if !LIBC.  Problem reported by Bob Proulx.
58684
58685 2007-01-23  Bruno Haible  <bruno@clisp.org>
58686
58687         * lib/striconveh.c: Include c-strcaseeq.h.
58688         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58689         * modules/striconveh (Depends-on): Add c-strcaseeq.
58690
58691 2007-01-23  Bruno Haible  <bruno@clisp.org>
58692
58693         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58694
58695         * modules/c-strcaseeq: New file.
58696         * lib/c-strcaseeq.h: New file.
58697
58698         * modules/streq: New file.
58699         * lib/streq.h: New file.
58700
58701 2007-01-23  Bruno Haible  <bruno@clisp.org>
58702
58703         * modules/striconveha-tests: New file.
58704         * tests/test-striconveha.c: New file.
58705
58706         * lib/striconveha.h: Include <stdbool.h>.
58707         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58708         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58709         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58710         (mem_iconveha): New function.
58711         (str_iconveha_notranslit): Renamed from str_iconveha.
58712         (str_iconveha): New function.
58713         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58714         c-strcase.
58715
58716 2007-01-23  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58719         encodings without forgiving before trying any encoding with handler.
58720         (str_iconveha): Try all encodings without forgiving before trying any
58721         encoding with handler.
58722
58723 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58724
58725         Import the following changes from libc.
58726
58727         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58728
58729         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58730
58731         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58732
58733         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58734         normal_bracket label.
58735
58736         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58737
58738         [BZ #361]
58739         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58740         to normal_bracket after fetching the next character.
58741
58742 2007-01-22  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58745         argument.
58746         * lib/striconveh.c (iconv_carefully_1): New function.
58747         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58748         argument.
58749         (str_cd_iconveh): Update.
58750         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58751         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58752         * tests/test-striconveh.c (MAGIC): New macro.
58753         (new_offsets): New function.
58754         (main): Test call with and without offsets.
58755
58756 2007-01-22  Bruno Haible  <bruno@clisp.org>
58757
58758         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58759         * modules/sys_select (Makefile.am): Likewise.
58760         * modules/sys_socket (Makefile.am): Likewise.
58761         * modules/sys_time (Makefile.am): Likewise.
58762
58763 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58764
58765         * modules/gettimeofday (License): Change from GPL to LGPL, since
58766         gettimeofday is a library function.
58767
58768 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58769
58770         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58771
58772 2007-01-21  Bruno Haible  <bruno@clisp.org>
58773
58774         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58775
58776 2007-01-21  Bruno Haible  <bruno@clisp.org>
58777
58778         * modules/striconveha: New file.
58779         * lib/striconveha.h: New file.
58780         * lib/striconveha.c: New file.
58781         * MODULES.html.sh (Internationalization functions): Add striconveha.
58782         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58783         string.
58784         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58785
58786 2007-01-21  Bruno Haible  <bruno@clisp.org>
58787
58788         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58789         * lib/striconveh.c (str_iconveh): Likewise.
58790
58791 2007-01-21  Bruno Haible  <bruno@clisp.org>
58792
58793         * lib/striconveh.h (mem_iconveh): New declaration.
58794         * lib/striconveh.c (mem_iconveh): New function.
58795         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58796
58797 2007-01-21  Bruno Haible  <bruno@clisp.org>
58798
58799         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58800
58801         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58802         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58803         original result buffer.
58804         (str_cd_iconveh): Update.
58805         * tests/test-striconveh.c (main): Update.
58806
58807         * lib/striconv.h (mem_cd_iconv): Change specification.
58808         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58809         result buffer.
58810         (str_cd_iconv): Update.
58811         * tests/test-striconv.c (main): Update.
58812
58813 2007-01-21  Bruno Haible  <bruno@clisp.org>
58814
58815         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58816
58817 2007-01-20  Jim Meyering  <jim@meyering.net>
58818
58819         * lib/userspec.c (parse_with_separator): If a user or group string
58820         starts with "+", skip the corresponding name-to-ID look-up, since
58821         such a look-up must fail: user and group names may not include "+".
58822
58823 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58824
58825         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58826         since we now assume the sys_time module.
58827         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58828         check for sys/time.h; no longer needed.
58829         * modules/poll (Depends-on): Depend on sys_time.
58830
58831 2007-01-18  Bruno Haible  <bruno@clisp.org>
58832
58833         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58834         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58835
58836         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58837         gettimeofday.
58838
58839         * tests/test-gettimeofday.c: Include <time.h>.
58840         (dummy): Remove variable.
58841
58842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58843         gl_HEADER_SYS_TIME_H.
58844         (gl_HEADER_SYS_TIME_H): New macro.
58845
58846         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58847         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58849         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58850         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58851         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58852         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58853         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58854         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58855         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58856         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58857
58858         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58859         last change; it caused a compilation error when cross-compiling to
58860         Cygwin.
58861
58862 2007-01-18  Jim Meyering  <jim@meyering.net>
58863
58864         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58865         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58866         than the race-prone "test -d sys || mkdir sys".
58867         (configure.ac): Use AC_PROG_MKDIR_P.
58868         * modules/sys_select: Likewise.
58869         * modules/sys_socket: Likewise.
58870         * modules/sys_time: Likewise.
58871
58872 2007-01-18  Eric Blake  <ebb9@byu.net>
58873
58874         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58875         replace gettimeofday.
58876         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58877         name, to avoid infinite recursion.
58878
58879 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58882         module sys_time.
58883         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58884         assume timespec.h defines struct timeval.
58885         * lib/settime.c: Likewise.
58886         * lib/utimens.c: Likewise.
58887         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58888         since we now assume the gettimeofday module.
58889         * lib/tempname.c (__gen_tempname): Likewise.
58890         * lib/gettimeofday.h: Remove.
58891         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58892         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58893         Include <time.h>, for 'time()'.
58894         (localtime_buffer_addr): Also use this workaround if
58895         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58896         to simplify the uses.  All uses changed.
58897         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58898         that #undef is inside {}, and 'const' follows type name consistently.
58899         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58900         (gettimeofday): Do not use the maximum possible value for
58901         tv->tv_usec, since that might break usages other than ls.c.
58902         Instead, we'll leave ls.c alone.  This undoes today's patch
58903         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58904         we've never observed the problem but might as well keep the
58905         canary.
58906         * lib/nanosleep.c: Include timespec.h first, for interface check.
58907         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58908         now assume the sys_time module.
58909         * lib/tempname.c: Likewise.
58910         * lib/timespec.h: Likewise.
58911         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58912         needed.
58913         * lib/strftime.c: Likewise.
58914         * lib/timespec.h: Likewise.
58915         * lib/posixtm.c: Include posixtm.h first, for interface check.
58916         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58917         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58918         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58919         * lib/sys_time_.h: New file.
58920         * lib/timespec.h (struct timespec): Use long int, not long.
58921         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58922         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58923         Remove obsolescent call to AC_HEADER_TIME.
58924         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58926         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58927         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58928         Likewise.
58929         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58930         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58932         into the sys_time module.  Check for gettimeofday just once.
58933         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58934         for gettimeofday signature to just check the signature.  Merely
58935         compile it, since linking doesn't test signature.  Improve test for
58936         whether gettimeofday.o is actually needed.
58937         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58938         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58939         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58940         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58941         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58942         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58943         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58944         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58945         than worrying about sys/time.h.
58946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58947         Don't bother worrying about TIME_WITH_SYS_TIME.
58948         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58949         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58950         * m4/sys_time_h.m4: New file.
58951         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58952         Don't include sys/time.h.  Return from main rather than exiting.
58953         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58954         all uses changed.
58955         * modules/gethrxtime (Depends-on): Add sys_time.
58956         * modules/gettime (Depends-on): Likewise.
58957         * modules/gettimeofday (Depends-on): Likewise.
58958         * modules/nanosleep (Depends-on): Likewise.
58959         * modules/settime (Depends-on): Likewise.
58960         * modules/tempname (Depends-on): Likewise.
58961         * modules/utimens (Depends-on): Likewise.
58962         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58963         (Include): Change back to <sys/time.h>.
58964         (Maintainer): Add self.
58965         * modules/sys_time: New file.
58966         * modules/tempname (Depends-on): Add gettimeofday.
58967         * tests/test-gettimeofday.c: Include <sys/time.h>
58968         rather than gettimeofday.h.
58969
58970 2007-01-17  Bruno Haible  <bruno@clisp.org>
58971
58972         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58973         the license default to GPL.
58974         (func_create_testdir): Don't complain if a module is LGPL and its
58975         tests module depends on GPLed modules.
58976
58977 2007-01-17  Bruno Haible  <bruno@clisp.org>
58978
58979         * lib/gettimeofday.c (gettimeofday): Add code for the case
58980         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58981         maximum possible value for tv->tv_usec, rather than the minimum one.
58982
58983 2005-10-08  Martin Lambers  <marlam@marlam.de>
58984 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58985 2007-01-16  Bruno Haible  <bruno@clisp.org>
58986
58987         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58988         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58989         gl_FUNC_GETTIMEOFDAY.
58990         (Include): Add gettimeofday.h.
58991         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58992         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58993         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58994         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58995         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58996         * lib/gettimeofday.h: New file.
58997         * lib/gettimeofday.c: Include <sys/timeb.h>.
58998         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58999         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59000         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59001         fall back on time().
59002
59003         * tests/test-gettimeofday.c: New file.
59004         * modules/gettimeofday-tests: New file.
59005
59006 2007-01-16  Eric Blake  <ebb9@byu.net>
59007
59008         * modules/fnmatch (Depends-on): Depend on wchar.
59009         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59010         * m4/fnmatch.m4: Likewise.
59011         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59012         * m4/mbchar.m4: Likewise.
59013         * modules/mbswidth (Depends-on): Depend on wchar.
59014         * lib/mbswidth.c: Assume <wchar.h>.
59015         * m4/mbswidth.m4: Likewise.
59016         * modules/quotearg (Depends-on): Depend on wchar.
59017         * lib/quotearg.c: Assume <wchar.h>.
59018         * m4/quotearg.m4: Likewise.
59019         * modules/regex (Depends-on): Depend on wchar.
59020         * lib/regex_internal.h: Assume <wchar.h>.
59021         * m4/regex.m4: Likewise.
59022         * modules/stdint (Depends-on): Depend on wchar.
59023         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59024         * m4/stdint.m4: Likewise.
59025         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59026         * modules/strftime (Depends-on): Depend on wchar.
59027         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59028         * modules/strtol (Depends-on): Depend on wchar.
59029         * lib/strtol.c: Assume <wchar.h>.
59030         * modules/wcwidth (Depends-on): Depend on wchar.
59031         * lib/wcwidth.h: Assume <wchar.h>.
59032         * m4/wcwidth.m4: Likewise.
59033
59034 2007-01-16  Bruno Haible  <bruno@clisp.org>
59035
59036         * modules/csharpexec-script: New, created from...
59037         * modules/csharpexec: ... this.
59038
59039 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59040
59041         * modules/javaexec-script: New, created from...
59042         * modules/javaexec: ... this.
59043
59044 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59045
59046         * modules/poll (Dependencies): Add sys_select.
59047
59048 2007-01-15  Jim Meyering  <jim@meyering.net>
59049
59050         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59051         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59052         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59053         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59054
59055 2007-01-15  Bruno Haible  <bruno@clisp.org>
59056
59057         * modules/striconveh: New file.
59058         * lib/striconveh.h: New file.
59059         * lib/striconveh.c: New file.
59060         * MODULES.html.sh (Internationalization functions): Add striconveh.
59061
59062         * modules/striconveh-tests: New file.
59063         * tests/test-striconveh.c: New file.
59064
59065 2007-01-15  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59068         not from GNU libiconv or GNU libc.
59069
59070 2007-01-15  Bruno Haible  <bruno@clisp.org>
59071
59072         * doc/gnulib-intro.texi (Copyright): Explain the different license
59073         terms for module descriptions, autoconf macros, tests, documentation.
59074
59075 2007-01-14  Bruno Haible  <bruno@clisp.org>
59076
59077         * modules/striconv-tests: New file.
59078         * tests/test-striconv.c: New file.
59079
59080 2007-01-14  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/iconv-tests: New file.
59083         * tests/test-iconv.c: New file.
59084
59085 2007-01-14  Bruno Haible  <bruno@clisp.org>
59086
59087         * gnulib-tool (func_get_license): For test modules, use the license of
59088         the main module.
59089
59090 2007-01-14  Bruno Haible  <bruno@clisp.org>
59091
59092         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59093         if iconv is found to exist.
59094
59095 2007-01-14  Bruno Haible  <bruno@clisp.org>
59096
59097         * modules/c-ctype-tests: New file.
59098         * tests/test-c-ctype.c: New file.
59099
59100 2007-01-14  Bruno Haible  <bruno@clisp.org>
59101
59102         * modules/binary-io-tests: New file.
59103         * tests/test-binary-io.sh: New file.
59104         * tests/test-binary-io.c: New file.
59105
59106 2007-01-14  Bruno Haible  <bruno@clisp.org>
59107
59108         * modules/array-oset-tests: New file.
59109         * tests/test-array_oset.c: New file.
59110
59111 2007-01-14  Bruno Haible  <bruno@clisp.org>
59112
59113         * modules/array-list-tests: New file.
59114         * tests/test-array_list.c: New file.
59115
59116 2007-01-14  Bruno Haible  <bruno@clisp.org>
59117
59118         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59119         and make.
59120         Reported by Simon Josefsson in
59121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59122
59123 2007-01-14  Bruno Haible  <bruno@clisp.org>
59124
59125         * modules/allocsa-tests: New file.
59126         * tests/test-allocsa.c: New file.
59127
59128 2007-01-14  Bruno Haible  <bruno@clisp.org>
59129
59130         * modules/fchdir (Depends-on): Add absolute-header.
59131         * modules/unistd (Depends-on): Likewise.
59132
59133 2006-12-30  Bruno Haible  <bruno@clisp.org>
59134
59135         * modules/fchdir: New file.
59136         * modules/unistd (Files): Add lib/unistd_.h.
59137         (Makefile.am): Generate unistd.h from unistd_.h.
59138         * lib/fchdir.c: New file.
59139         * lib/dirent_.h: New file.
59140         * lib/unistd_.h: New file.
59141         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59142         * m4/fchdir.m4: New file.
59143         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59144         (gl_HEADER_UNISTD): Invoke it.
59145         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59146         function.
59147         * lib/backupfile.c (opendir, closedir): Undefine.
59148         * lib/chown.c (open, close): Undefine.
59149         * lib/clean-temp.c (open, close): Undefine.
59150         * lib/copy-file.c (open, close): Undefine.
59151         * lib/execute.c (open, close): Undefine.
59152         * lib/fsusage.c (open, close): Undefine.
59153         * lib/gc-gnulib.c (open, close): Undefine.
59154         * lib/getcwd.c (opendir, closedir): Undefine.
59155         * lib/glob.c (opendir, closedir): Undefine.
59156         * lib/javacomp.c (open, close): Undefine.
59157         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59158         * lib/openat-proc.c (open, close): Undefine.
59159         * lib/pagealign_alloc.c (open, close): Undefine.
59160         * lib/pipe.c (open, close): Undefine.
59161         * lib/progreloc.c (open, close): Undefine.
59162         * lib/savedir.c (opendir, closedir): Undefine.
59163         * lib/utime.c (open, close): Undefine.
59164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59165
59166 2007-01-10  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59169
59170 2007-01-12  Eric Blake  <ebb9@byu.net>
59171
59172         Provide a robust <wchar.h>.  Further simplifications are now
59173         possible in other modules, but not included here.
59174         * modules/wchar: New module.
59175         * m4/wchar.m4: New file.
59176         * lib/wchar_.h: Likewise.
59177         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59178         of the new module.
59179         * MODULES.html.sh (Extended multibyte and wide character utilities):
59180         New section.
59181
59182 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59183
59184         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59185         to a reasonable default for memory allocation.
59186         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59187         file system that reports garbage st_size values for symlinks.
59188         Problem reported by Liyang Hu.
59189
59190 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59191
59192         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59193         Emacs .#* auto-save files).
59194
59195 2007-01-11  Bruno Haible  <bruno@clisp.org>
59196
59197         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59198         directory.
59199
59200 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59201
59202         Use @...@ consistently in lib/wctype_.h.
59203         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59204         on it being set to 1 or 0.
59205         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59206         go back to AC_SUBSTing it.
59207         * modules/wctype (Makefile.am): Undo previous change.
59208
59209 2007-01-10  Eric Blake  <ebb9@byu.net>
59210
59211         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59212         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59213         * modules/wctype (Makefile.am): Likewise.
59214         Reported by Chris McGuire.
59215
59216 2007-01-10  Jim Meyering  <jim@meyering.net>
59217
59218         fts.c: a small readability/maintainability improvement
59219         * lib/fts.c (fts_read): Make this code slightly more readable and
59220         maintainable by hoisting the "sp->fts_cur = p" assignments to
59221         immediately follow the statements that set P.  Derived from
59222         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59223
59224 2007-01-10  Eric Blake  <ebb9@byu.net>
59225
59226         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59227         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59229         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59230         Reported by Chris McGuire.
59231
59232 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59233
59234         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59235         in sed script.
59236
59237 2007-01-09  Bruno Haible  <bruno@clisp.org>
59238
59239         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59240         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59241         variables.
59242         (func_module): Use them.
59243
59244 2007-01-09  Bruno Haible  <bruno@clisp.org>
59245
59246         * modules/unistr/base: New file.
59247         * lib/unistr.h: New file.
59248
59249         * modules/unistr/u8-to-u16: New file.
59250         * lib/unistr/u8-to-u16.c: New file.
59251
59252         * modules/unistr/u8-to-u32: New file.
59253         * lib/unistr/u8-to-u32.c: New file.
59254
59255         * modules/unistr/u16-to-u8: New file.
59256         * lib/unistr/u16-to-u8.c: New file.
59257
59258         * modules/unistr/u16-to-u32: New file.
59259         * lib/unistr/u16-to-u32.c: New file.
59260
59261         * modules/unistr/u32-to-u8: New file.
59262         * lib/unistr/u32-to-u8.c: New file.
59263
59264         * modules/unistr/u32-to-u16: New file.
59265         * lib/unistr/u32-to-u16.c: New file.
59266
59267         * modules/unistr/u8-check: New file.
59268         * modules/unistr/u16-check: New file.
59269         * modules/unistr/u32-check: New file.
59270         * lib/unistr/u8-check.c: New file.
59271         * lib/unistr/u16-check.c: New file.
59272         * lib/unistr/u32-check.c: New file.
59273
59274         * modules/unistr/u8-chr: New file.
59275         * modules/unistr/u16-chr: New file.
59276         * modules/unistr/u32-chr: New file.
59277         * lib/unistr/u8-chr.c: New file.
59278         * lib/unistr/u16-chr.c: New file.
59279         * lib/unistr/u32-chr.c: New file.
59280
59281         * modules/unistr/u8-cmp: New file.
59282         * modules/unistr/u16-cmp: New file.
59283         * modules/unistr/u32-cmp: New file.
59284         * lib/unistr/u8-cmp.c: New file.
59285         * lib/unistr/u16-cmp.c: New file.
59286         * lib/unistr/u32-cmp.c: New file.
59287
59288         * modules/unistr/u8-cpy: New file.
59289         * modules/unistr/u16-cpy: New file.
59290         * modules/unistr/u32-cpy: New file.
59291         * lib/unistr/u8-cpy.c: New file.
59292         * lib/unistr/u16-cpy.c: New file.
59293         * lib/unistr/u32-cpy.c: New file.
59294         * lib/unistr/u-cpy.h: New file.
59295
59296         * modules/unistr/u8-cpy-alloc: New file.
59297         * modules/unistr/u16-cpy-alloc: New file.
59298         * modules/unistr/u32-cpy-alloc: New file.
59299         * lib/unistr/u8-cpy-alloc.c: New file.
59300         * lib/unistr/u16-cpy-alloc.c: New file.
59301         * lib/unistr/u32-cpy-alloc.c: New file.
59302         * lib/unistr/u-cpy-alloc.h: New file.
59303
59304         * modules/unistr/u8-endswith: New file.
59305         * modules/unistr/u16-endswith: New file.
59306         * modules/unistr/u32-endswith: New file.
59307         * lib/unistr/u8-endswith.c: New file.
59308         * lib/unistr/u16-endswith.c: New file.
59309         * lib/unistr/u32-endswith.c: New file.
59310         * lib/unistr/u-endswith.h: New file.
59311
59312         * modules/unistr/u8-mblen: New file.
59313         * modules/unistr/u16-mblen: New file.
59314         * modules/unistr/u32-mblen: New file.
59315         * lib/unistr/u8-mblen.c: New file.
59316         * lib/unistr/u16-mblen.c: New file.
59317         * lib/unistr/u32-mblen.c: New file.
59318
59319         * modules/unistr/u8-mbtouc: New file.
59320         * modules/unistr/u16-mbtouc: New file.
59321         * modules/unistr/u32-mbtouc: New file.
59322         * lib/unistr/u8-mbtouc.c: New file.
59323         * lib/unistr/u16-mbtouc.c: New file.
59324         * lib/unistr/u32-mbtouc.c: New file.
59325
59326         * modules/unistr/u8-mbtouc-safe: New file.
59327         * modules/unistr/u16-mbtouc-safe: New file.
59328         * modules/unistr/u32-mbtouc-safe: New file.
59329         * lib/unistr/u8-mbtouc-safe.c: New file.
59330         * lib/unistr/u16-mbtouc-safe.c: New file.
59331         * lib/unistr/u32-mbtouc-safe.c: New file.
59332
59333         * modules/unistr/u8-move: New file.
59334         * modules/unistr/u16-move: New file.
59335         * modules/unistr/u32-move: New file.
59336         * lib/unistr/u8-move.c: New file.
59337         * lib/unistr/u16-move.c: New file.
59338         * lib/unistr/u32-move.c: New file.
59339         * lib/unistr/u-move.h: New file.
59340
59341         * modules/unistr/u8-next: New file.
59342         * modules/unistr/u16-next: New file.
59343         * modules/unistr/u32-next: New file.
59344         * lib/unistr/u8-next.c: New file.
59345         * lib/unistr/u16-next.c: New file.
59346         * lib/unistr/u32-next.c: New file.
59347
59348         * modules/unistr/u8-prev: New file.
59349         * modules/unistr/u16-prev: New file.
59350         * modules/unistr/u32-prev: New file.
59351         * lib/unistr/u8-prev.c: New file.
59352         * lib/unistr/u16-prev.c: New file.
59353         * lib/unistr/u32-prev.c: New file.
59354
59355         * modules/unistr/u8-set: New file.
59356         * modules/unistr/u16-set: New file.
59357         * modules/unistr/u32-set: New file.
59358         * lib/unistr/u8-set.c: New file.
59359         * lib/unistr/u16-set.c: New file.
59360         * lib/unistr/u32-set.c: New file.
59361         * lib/unistr/u-set.h: New file.
59362
59363         * modules/unistr/u8-startswith: New file.
59364         * modules/unistr/u16-startswith: New file.
59365         * modules/unistr/u32-startswith: New file.
59366         * lib/unistr/u8-startswith.c: New file.
59367         * lib/unistr/u16-startswith.c: New file.
59368         * lib/unistr/u32-startswith.c: New file.
59369         * lib/unistr/u-startswith.h: New file.
59370
59371         * modules/unistr/u8-stpcpy: New file.
59372         * modules/unistr/u16-stpcpy: New file.
59373         * modules/unistr/u32-stpcpy: New file.
59374         * lib/unistr/u8-stpcpy.c: New file.
59375         * lib/unistr/u16-stpcpy.c: New file.
59376         * lib/unistr/u32-stpcpy.c: New file.
59377         * lib/unistr/u-stpcpy.h: New file.
59378
59379         * modules/unistr/u8-stpncpy: New file.
59380         * modules/unistr/u16-stpncpy: New file.
59381         * modules/unistr/u32-stpncpy: New file.
59382         * lib/unistr/u8-stpncpy.c: New file.
59383         * lib/unistr/u16-stpncpy.c: New file.
59384         * lib/unistr/u32-stpncpy.c: New file.
59385         * lib/unistr/u-stpncpy.h: New file.
59386
59387         * modules/unistr/u8-strcat: New file.
59388         * modules/unistr/u16-strcat: New file.
59389         * modules/unistr/u32-strcat: New file.
59390         * lib/unistr/u8-strcat.c: New file.
59391         * lib/unistr/u16-strcat.c: New file.
59392         * lib/unistr/u32-strcat.c: New file.
59393         * lib/unistr/u-strcat.h: New file.
59394
59395         * modules/unistr/u8-strchr: New file.
59396         * modules/unistr/u16-strchr: New file.
59397         * modules/unistr/u32-strchr: New file.
59398         * lib/unistr/u8-strchr.c: New file.
59399         * lib/unistr/u16-strchr.c: New file.
59400         * lib/unistr/u32-strchr.c: New file.
59401
59402         * modules/unistr/u8-strcmp: New file.
59403         * modules/unistr/u16-strcmp: New file.
59404         * modules/unistr/u32-strcmp: New file.
59405         * lib/unistr/u8-strcmp.c: New file.
59406         * lib/unistr/u16-strcmp.c: New file.
59407         * lib/unistr/u32-strcmp.c: New file.
59408
59409         * modules/unistr/u8-strcpy: New file.
59410         * modules/unistr/u16-strcpy: New file.
59411         * modules/unistr/u32-strcpy: New file.
59412         * lib/unistr/u8-strcpy.c: New file.
59413         * lib/unistr/u16-strcpy.c: New file.
59414         * lib/unistr/u32-strcpy.c: New file.
59415         * lib/unistr/u-strcpy.h: New file.
59416
59417         * modules/unistr/u8-strcspn: New file.
59418         * modules/unistr/u16-strcspn: New file.
59419         * modules/unistr/u32-strcspn: New file.
59420         * lib/unistr/u8-strcspn.c: New file.
59421         * lib/unistr/u16-strcspn.c: New file.
59422         * lib/unistr/u32-strcspn.c: New file.
59423         * lib/unistr/u-strcspn.h: New file.
59424
59425         * modules/unistr/u8-strdup: New file.
59426         * modules/unistr/u16-strdup: New file.
59427         * modules/unistr/u32-strdup: New file.
59428         * lib/unistr/u8-strdup.c: New file.
59429         * lib/unistr/u16-strdup.c: New file.
59430         * lib/unistr/u32-strdup.c: New file.
59431         * lib/unistr/u-strdup.h: New file.
59432
59433         * modules/unistr/u8-strlen: New file.
59434         * modules/unistr/u16-strlen: New file.
59435         * modules/unistr/u32-strlen: New file.
59436         * lib/unistr/u8-strlen.c: New file.
59437         * lib/unistr/u16-strlen.c: New file.
59438         * lib/unistr/u32-strlen.c: New file.
59439         * lib/unistr/u-strlen.h: New file.
59440
59441         * modules/unistr/u8-strmblen: New file.
59442         * modules/unistr/u16-strmblen: New file.
59443         * modules/unistr/u32-strmblen: New file.
59444         * lib/unistr/u8-strmblen.c: New file.
59445         * lib/unistr/u16-strmblen.c: New file.
59446         * lib/unistr/u32-strmblen.c: New file.
59447
59448         * modules/unistr/u8-strmbtouc: New file.
59449         * modules/unistr/u16-strmbtouc: New file.
59450         * modules/unistr/u32-strmbtouc: New file.
59451         * lib/unistr/u8-strmbtouc.c: New file.
59452         * lib/unistr/u16-strmbtouc.c: New file.
59453         * lib/unistr/u32-strmbtouc.c: New file.
59454
59455         * modules/unistr/u8-strncat: New file.
59456         * modules/unistr/u16-strncat: New file.
59457         * modules/unistr/u32-strncat: New file.
59458         * lib/unistr/u8-strncat.c: New file.
59459         * lib/unistr/u16-strncat.c: New file.
59460         * lib/unistr/u32-strncat.c: New file.
59461         * lib/unistr/u-strncat.h: New file.
59462
59463         * modules/unistr/u8-strncmp: New file.
59464         * modules/unistr/u16-strncmp: New file.
59465         * modules/unistr/u32-strncmp: New file.
59466         * lib/unistr/u8-strncmp.c: New file.
59467         * lib/unistr/u16-strncmp.c: New file.
59468         * lib/unistr/u32-strncmp.c: New file.
59469
59470         * modules/unistr/u8-strncpy: New file.
59471         * modules/unistr/u16-strncpy: New file.
59472         * modules/unistr/u32-strncpy: New file.
59473         * lib/unistr/u8-strncpy.c: New file.
59474         * lib/unistr/u16-strncpy.c: New file.
59475         * lib/unistr/u32-strncpy.c: New file.
59476         * lib/unistr/u-strncpy.h: New file.
59477
59478         * modules/unistr/u8-strnlen: New file.
59479         * modules/unistr/u16-strnlen: New file.
59480         * modules/unistr/u32-strnlen: New file.
59481         * lib/unistr/u8-strnlen.c: New file.
59482         * lib/unistr/u16-strnlen.c: New file.
59483         * lib/unistr/u32-strnlen.c: New file.
59484         * lib/unistr/u-strnlen.h: New file.
59485
59486         * modules/unistr/u8-strpbrk: New file.
59487         * modules/unistr/u16-strpbrk: New file.
59488         * modules/unistr/u32-strpbrk: New file.
59489         * lib/unistr/u8-strpbrk.c: New file.
59490         * lib/unistr/u16-strpbrk.c: New file.
59491         * lib/unistr/u32-strpbrk.c: New file.
59492         * lib/unistr/u-strpbrk.h: New file.
59493
59494         * modules/unistr/u8-strrchr: New file.
59495         * modules/unistr/u16-strrchr: New file.
59496         * modules/unistr/u32-strrchr: New file.
59497         * lib/unistr/u8-strrchr.c: New file.
59498         * lib/unistr/u16-strrchr.c: New file.
59499         * lib/unistr/u32-strrchr.c: New file.
59500
59501         * modules/unistr/u8-strspn: New file.
59502         * modules/unistr/u16-strspn: New file.
59503         * modules/unistr/u32-strspn: New file.
59504         * lib/unistr/u8-strspn.c: New file.
59505         * lib/unistr/u16-strspn.c: New file.
59506         * lib/unistr/u32-strspn.c: New file.
59507         * lib/unistr/u-strspn.h: New file.
59508
59509         * modules/unistr/u8-strstr: New file.
59510         * modules/unistr/u16-strstr: New file.
59511         * modules/unistr/u32-strstr: New file.
59512         * lib/unistr/u8-strstr.c: New file.
59513         * lib/unistr/u16-strstr.c: New file.
59514         * lib/unistr/u32-strstr.c: New file.
59515         * lib/unistr/u-strstr.h: New file.
59516
59517         * modules/unistr/u8-strtok: New file.
59518         * modules/unistr/u16-strtok: New file.
59519         * modules/unistr/u32-strtok: New file.
59520         * lib/unistr/u8-strtok.c: New file.
59521         * lib/unistr/u16-strtok.c: New file.
59522         * lib/unistr/u32-strtok.c: New file.
59523         * lib/unistr/u-strtok.h: New file.
59524
59525         * modules/unistr/u8-uctomb: New file.
59526         * modules/unistr/u16-uctomb: New file.
59527         * modules/unistr/u32-uctomb: New file.
59528         * lib/unistr/u8-uctomb.c: New file.
59529         * lib/unistr/u16-uctomb.c: New file.
59530         * lib/unistr/u32-uctomb.c: New file.
59531
59532         * MODULES.html.sh (Unicode string functions): Add the new modules.
59533
59534 2007-01-08  Bruno Haible  <bruno@clisp.org>
59535
59536         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59537         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59538         subdirectories.
59539
59540 2007-01-08  Karl Berry  <karl@gnu.org>
59541
59542         * doc/error.texi: mention that main() fns must set program_name
59543         when progname is used.
59544
59545 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59548         WCTYPE_H is empty, for the benefit of builds from non-distclean
59549         directories.  Problem reported by Eric Blake in
59550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59551
59552 2007-01-08  Bruno Haible  <bruno@clisp.org>
59553
59554         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59555         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59556         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59557         PROVIDE_CANONICALIZE_FILENAME_MODE.
59558         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59559
59560 2007-01-08  Bruno Haible  <bruno@clisp.org>
59561
59562         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59563         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59564         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59565         * lib/fts.c: Likewise.
59566         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59567
59568 2006-12-25  Bruno Haible  <bruno@clisp.org>
59569
59570         * modules/utf8-ucs4-safe: New file.
59571         * lib/utf8-ucs4-safe.h: New file.
59572         * lib/unistr/utf8-ucs4-safe.c: New file.
59573
59574         * modules/utf16-ucs4-safe: New file.
59575         * lib/utf16-ucs4-safe.h: New file.
59576         * lib/unistr/utf16-ucs4-safe.c: New file.
59577
59578         * MODULES.html.sh (Unicode string functions): Add the new modules.
59579
59580 2007-01-08  Bruno Haible  <bruno@clisp.org>
59581
59582         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59583         (Depends-on): Add unitypes.
59584         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59585         (u8_mbtouc_aux): Move out to separate file.
59586         (u8_mbtouc): Use ucs4_t, uint8_t types.
59587         * lib/unistr/utf8-ucs4.c: New file.
59588
59589         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59590         (Depends-on): Add unitypes.
59591         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59592         (u16_mbtouc_aux): Move out to separate file.
59593         (u16_mbtouc): Use ucs4_t, uint16_t types.
59594         * lib/unistr/utf16-ucs4.c: New file.
59595
59596         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59597         (Depends-on): Add unitypes.
59598         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59599         (u8_uctomb_aux): Move out to separate file.
59600         (u8_uctomb): Use ucs4_t, uint8_t types.
59601         * lib/unistr/ucs4-utf8.c: New file.
59602
59603         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59604         (Depends-on): Add unitypes.
59605         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59606         (u16_uctomb_aux): Move out to separate file.
59607         (u16_uctomb): Use ucs4_t, uint16_t types.
59608         * lib/unistr/ucs4-utf16.c: New file.
59609
59610 2006-12-25  Bruno Haible  <bruno@clisp.org>
59611
59612         * modules/unitypes: New file.
59613         * lib/unitypes.h: New file.
59614         * MODULES.html.sh (func_all_modules): New section "Unicode string
59615         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59616         this section. Add unitypes.
59617
59618 2007-01-08  Bruno Haible  <bruno@clisp.org>
59619
59620         Avoid variable names that conflict with those from libtool.
59621         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59622         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59623         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59624         library_names_spec to acl_library_names_spec, hardcode_* to
59625         acl_hardcode_*.
59626         Reported by Ralf Wildenhues.
59627
59628 2007-01-08  Bruno Haible  <bruno@clisp.org>
59629
59630         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59631         definition.
59632         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59633         definition.
59634         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59635         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59636         definition.
59637         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59638         definition.
59639         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59640         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59641         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59642         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59643         definition.
59644         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59645         definition.
59646         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59647         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59648         GC_USE_<algorithm>.
59649         * lib/gc-libgcrypt.c: Likewise.
59650         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59651         * modules/gc-arctwo (configure.ac): Likewise.
59652         * modules/gc-des (configure.ac): Likewise.
59653         * modules/gc-hmac-md5 (configure.ac): Likewise.
59654         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59655         * modules/gc-md2 (configure.ac): Likewise.
59656         * modules/gc-md4 (configure.ac): Likewise.
59657         * modules/gc-md5 (configure.ac): Likewise.
59658         * modules/gc-random (configure.ac): Likewise.
59659         * modules/gc-rijndael (configure.ac): Likewise.
59660         * modules/gc-sha1 (configure.ac): Likewise.
59661
59662 2007-01-08  Bruno Haible  <bruno@clisp.org>
59663
59664         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59665         macro definition.
59666         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59667         definition.
59668         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59669         definition.
59670         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59671         * modules/fcntl-safer (configure.ac): Likewise.
59672         * modules/fopen-safer (configure.ac): Likewise.
59673         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59674         GNULIB_FWRITEERROR macro definition.
59675
59676 2007-01-08  Bruno Haible  <bruno@clisp.org>
59677
59678         * m4/gnulib-common.m4: New file.
59679         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59680         (func_get_filelist): Add m4/gnulib-common.m4.
59681
59682 2007-01-08  Bruno Haible  <bruno@clisp.org>
59683
59684         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59685         command.
59686
59687 2007-01-08  Jim Meyering  <jim@meyering.net>
59688
59689         Use a more robust test for a "can't happen" condition.
59690         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59691         narrowed the st_size value.  Presuming the "can't happen" condition
59692         is true, that narrowing could conceivably convert an invalid st_size
59693         value into a valid one.  Instead, use a change based on Matthew
59694         Woehlke's original patch.
59695
59696         Slight readability improvement: use an assert-like macro
59697         in place of literal "abort ()" uses.
59698         * lib/fts.c (fts_assert): Define.
59699         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59700         Use this macro instead of a bare 'abort'.
59701
59702 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59703
59704         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59705         simply work around them.
59706         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59707         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59708         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59709         declaring.
59710         Don't bother to define as macros, since the standard doesn't require it.
59711         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59712         longer worry about IRIX 5.3.
59713         (HAVE_WCTYPE_CTMP_BUG): Remove.
59714
59715 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59716
59717         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59718         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59719         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59720         Problems reported by Georg Schwarz for IRIX 5.3.
59721
59722         * gnulib-tool (autoconf_minversion): Take the maximum version number
59723         found, not the minimum.  Problem reported by James Youngman.
59724
59725 2007-01-03  Karl Berry  <karl@gnu.org>
59726
59727         * doc/error.texi: new file, explaining interaction with progname.
59728         * doc/gnulib.texi: include it.  Update copyright.
59729
59730 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59731
59732         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59733         AC_CANONICAL_HOST, to improve autobuild outputs.
59734
59735 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59736             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59737
59738         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59739         sockets, server sockets, and other file descriptors.  Count errors
59740         to compute the return value.  Reorder the code a bit to be easier
59741         to follow.  Don't set event bits that were not requested (except
59742         POLLERR and POLLHUP).
59743
59744 2007-01-01  Bruno Haible  <bruno@clisp.org>
59745
59746         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59747
59748 2007-01-03  Jim Meyering  <jim@meyering.net>
59749
59750         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59751
59752 2007-01-02  Bruno Haible  <bruno@clisp.org>
59753
59754         * modules/settime (Include): Require timespec.h.
59755         * modules/nanosleep (Include): Likewise.
59756
59757 2007-01-01  Bruno Haible  <bruno@clisp.org>
59758
59759         * gnulib-tool (func_emit_copyright_notice): Bump year.
59760         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59761
59762 2007-01-01  Bruno Haible  <bruno@clisp.org>
59763
59764         Improve support for OpenBSD.
59765         * build-aux/config.rpath (libname_spec): Export.
59766         (library_names_spec): New variable. Export.
59767         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59768         library_names_spec from the config.rpath output. Locate shared library
59769         through the name pattern in library_names_spec.
59770
59771 2007-01-01  Eric Blake  <ebb9@byu.net>
59772
59773         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59774
59775 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59776
59777         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59778         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59779         assume the C locale, and avoid an "eval" that could cause trouble.
59780         Problem with SORT reported by Bob Proulx.
59781
59782         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59783         Define.  Trivial patch from Henning Nielsen Lund, originally
59784         sent to bug-grep@gnu.org today.
59785
59786 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59789         struct stat.  Problem reported by Henning Nielsen Lund.
59790         * lib/acl.c: Include acl.h first, to check interface.  Don't
59791         bother to include sys/types.h and sys/stat.h again.
59792
59793 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59794
59795         Import the following change from libc; problem reported by
59796         Sven Verdoolaege.
59797
59798         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59799
59800         [BZ #1373]
59801         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59802
59803 2006-12-28  Jim Meyering  <jim@meyering.net>
59804
59805         * build-aux/announce-gen: Do not assume that the package
59806         builds any of tar.gz, tar.bz2, and .xdelta files.
59807         Suggestion from Simon Josefsson.
59808
59809 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59810
59811         * modules/announce-gen: New file.
59812
59813 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59814
59815         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59816         handles its gotchas now.
59817         * lib/mbswidth.c: Likewise.
59818         * lib/wcwidth.h: Likewise.
59819         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59820         and iswcntrl; the wctype module does this stuff now.
59821         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59823         * modules/mbchar (Depends-on): Add wctype.
59824         * modules/mbswidth (Depends-on): Likewise.
59825         * modules/wcwidth (Depends-on): Likewise.
59826
59827 2006-12-27  Eric Blake  <ebb9@byu.net>
59828
59829         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59830         module uses more than what <wctype.h> is required to provide.
59831
59832 2006-12-26  Eric Blake  <ebb9@byu.net>
59833
59834         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59835
59836 2006-12-26  Eric Blake  <ebb9@byu.net>
59837
59838         * modules/absolute-header: New module.
59839         * modules/fcntl (Depends-on): Depend on it.
59840         * modules/inttypes (Depends-on): Likewise.
59841         * modules/stdint (Depends-on): Likewise.
59842         * modules/sys_stat (Depends-on): Likewise.
59843         * modules/wctype (Depends-on): Likewise.
59844         * MODULES.html.sh (Support for building libraries and
59845         executables): Document it.
59846
59847 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59848
59849         * gnulib-tool (SED): Remove, undoing previous change.
59850         The problem was that it broke coreutils on Solaris, because
59851         "sed --posix" leaked into a makefile.
59852         (sed): New alias, if 'alias' and GNU sed.
59853
59854 2006-12-24  Jim Meyering  <jim@meyering.net>
59855
59856         Work around an fchownat bug in glibc-2.4:
59857         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59858         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59859         in spite of the -P option.
59860         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59861         New macros.
59862         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59863         * modules/openat (Files): Add lib/fchownat.c.
59864         * lib/openat.c (fchownat): Don't define here.  Move to...
59865         * lib/fchownat.c: ...this new file.
59866
59867 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         Fix bug reported by Bruno Haible in
59870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59871         where quotearg.c didn't compile on Mac OS X 10.2 because it
59872         lacks <wchar.h> and wint_t.
59873         * lib/wctype_.h (__wctype_wint_t): New type.
59874         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59875         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59876         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59877         Arg is now of type __wctype_wint_t, not wint_t.
59878         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59879         substitute HAVE_WINT_T.
59880         * modules/wctype (Files): Add m4/wint_t.m4.
59881         (wctype.h): Substitute HAVE_WINT_T.
59882
59883 2006-12-23  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59886
59887 2006-12-23  Bruno Haible  <bruno@clisp.org>
59888
59889         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59890         S_ISLNK.
59891         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59892         mingw.
59893
59894 2006-12-22  Bruno Haible  <bruno@clisp.org>
59895
59896         * lib/copy-file.c: Include acl.h.
59897         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59898         Close the file descriptors only after being done with copy_acl.
59899         * modules/copy-file (Depends-on): Add acl.
59900
59901 2006-12-22  Bruno Haible  <bruno@clisp.org>
59902
59903         * gnulib-tool (SED): New variable.
59904         Use $SED instead of sed everywhere.
59905
59906 2006-12-22  Bruno Haible  <bruno@clisp.org>
59907
59908         * modules/no-c++: New file.
59909         * m4/no-c++.m4: New file.
59910         * MODULES.html.sh (Support for building libraries and executables):
59911         Add no-c++.
59912
59913 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59914
59915         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59916         Include <limits.h>, and use its INT_MAX to rewrite the
59917         j loop so that it does not overflow 'int'.  Problem reported by
59918         Ralf Wildenhues in
59919         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59920         Play it safe by shifting left by 1 rather than multiplying by 2,
59921         as GCC is less likely to optimize this away when the value
59922         is signed (when it assumes overflow leads to undefined behavior).
59923         Also, don't assume time_t uses two's complement.
59924
59925 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         * MODULES.html.sh: New module wctype.
59928         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59929         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59930         <wctype.h>, since the new wctype module should fix this.
59931         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59932         the wctype module should arrange for it.
59933         * lib/regex_internal.h: Likewise.
59934         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59935         since the wctype module should handle this now.
59936         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59937         * modules/fnmatch (Depends-on): Add wctype.
59938         * modules/quotearg (Depends-on): Likewise.
59939         * modules/regex (Depends-on): Likewise.
59940
59941 2006-12-19  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59944         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59945
59946 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59947
59948         * modules/savewd (Depends-on): Fix dependency on fcntl.
59949
59950 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59953         conforms to C99, rather than relying on the user's environment
59954         setting of STDINT_H.
59955
59956 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59957         and Eric Blake  <ebb9@byu.net>
59958
59959         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59960         This is more consistent with the other defines here.
59961         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59962         Port to z/OS.  Problem reported by Paul Gilmartin.
59963         Change local vars to use gl_ prefix rather than ac_.
59964         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59965         with other defines.
59966         * modules/double-slash-root: New module.
59967         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59968         (Depends-on): Add double-slash-root.
59969         * MODULES.html.sh (File system functions): Mention new module.
59970
59971 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59972
59973         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59974         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59975         This is for the benefit of gzip, which doesn't do i18n.
59976
59977 2006-12-12  Jim Meyering  <jim@meyering.net>
59978
59979         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59980         Reported by Andreas Schwab <schwab@suse.de>.
59981
59982 2006-12-12  Bruno Haible  <bruno@clisp.org>
59983
59984         Merge these changes.
59985         2006-09-05  Bruno Haible  <bruno@clisp.org>
59986         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59987         iconv_alloc succeeded.
59988         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59989         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59990         test for " && dest " at the end - dest is always != NULL there. Call
59991         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59992         with 2xNULL arguments, also to flush the state storage. Handle the
59993         IRIX iconv behaviour. Realloc the final result, to throw away unused
59994         memory.
59995
59996 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59997
59998         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59999         and fchmodat unconditionally, since glibc 2.4 has them.
60000         Problem reported by Arkadiusz Miskiewicz.
60001
60002 2006-12-10  Bruno Haible  <bruno@clisp.org>
60003
60004         * gnulib-tool (func_import): Show the include files only for those
60005         modules that are copied and specified.
60006         Reported by Karl Berry.
60007
60008 2006-12-08  Jim Meyering  <jim@meyering.net>
60009
60010         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60011         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60012
60013         * build-aux/announce-gen: Add two new options, both optional:
60014         --bootstrap-tools=TOOL_LIST
60015               a comma-separated list of tools, e.g.,
60016               autoconf,automake,bison,gnulib
60017         --gnulib-snapshot-date=DATE
60018               if gnulib is in the bootstrap tool list,
60019               then report this as the snapshot date.
60020               If not specified, use the current date/time.
60021               If you specify a date here, be sure it's UTC.
60022
60023 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60024
60025         * tests/test-argp-2.sh: Fix test to match actual output.
60026         (func_compare): Fix sed script to be portable.
60027
60028 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60029
60030         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60031         workaround for this case.  It is not autoconfigured now; offhand
60032         it's hard to see how to autoconfigure it.
60033
60034 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60035
60036         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60037         a directory that is about to be chowned.  Such a directory's
60038         initial file permissions should permit the owner only and this
60039         should not be changed until after the chown, since the group and
60040         other bits would be incorrect if they granted permission before
60041         the chown.
60042
60043         Fix porting problem for iswctype reported by Georg Schwarz in:
60044         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60045         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60046         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60047         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60048         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60049
60050 2006-12-03  Jim Meyering  <jim@meyering.net>
60051
60052         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60053         p->fts_statp may not yet be defined.
60054         (fts_read): Instead, set it in the caller, once p->fts_statp is
60055         sure to be defined, and corresponds to a top-level directory.
60056         This bug made du -x fail.  Here's the coreutils test case:
60057         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60058         Reported by Mike Frysinger.
60059
60060 2006-12-01  Jim Meyering  <jim@meyering.net>
60061
60062         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60063         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60064         Reported by Simon Josefsson.
60065
60066 2006-11-30  Jim Meyering  <jim@meyering.net>
60067
60068         * m4/warning.m4: Use the all-permissive copyright notice
60069         recommended by RMS (rather than LGPL).
60070         * m4/vararrays.m4: Likewise.
60071         * m4/flexmember.m4: Likewise.
60072
60073 2006-11-29  Bruno Haible  <bruno@clisp.org>
60074
60075         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60076         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60077         using +=.
60078         Reported by Simon Josefsson <simon@josefsson.org>.
60079
60080 2006-11-28  James Youngman <jay@gnu.org>
60081
60082         * README: Advise users that they might find the bug-gnulib@gnu.org
60083         and autotools-announce@gnu.org mailing lists useful.
60084
60085 2006-11-28  Bruno Haible  <bruno@clisp.org>
60086
60087         * m4/ptrdiff_max.m4: Remove file.
60088
60089 2006-11-21  Bruno Haible  <bruno@clisp.org>
60090
60091         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60092         _AC_COMPUTE_INT.
60093         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60094         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60095         _AC_COMPUTE_INT.
60096         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60097         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60098         _AC_COMPUTE_INT.
60099         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60100
60101 2006-11-28  Jim Meyering  <jim@meyering.net>
60102
60103         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60104         warning from "gcc -Wshadow" about shadowing the builtin.
60105
60106 2006-11-27  Bruno Haible  <bruno@clisp.org>
60107
60108         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60109         _AC_COMPUTE_INT.
60110         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60111
60112 2006-11-27  Bruno Haible  <bruno@clisp.org>
60113             Paul Eggert  <eggert@cs.ucla.edu>
60114
60115         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60116
60117 2006-11-26  Bruno Haible  <bruno@clisp.org>
60118
60119         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60120         noinst_LTLIBRARIES.
60121
60122 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60123             Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60126         if compiling with "gcc -ansi".
60127
60128 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60129
60130         Fix some incompatibilities with gcc -ansi -pedantic.
60131         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60132         if compiling pedantically with GCC, unless it's C99 or later.
60133         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60134         it mishandles gcc -ansi -pedantic as well.
60135         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60136         if gcc -pedantic.
60137         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60138         initializers for struct if -pedantic, unless it's C99 or later.
60139
60140 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60141
60142         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60143         Don't close an fd more than once. Identical atimes indicate
60144         success, not failure.
60145
60146 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60147
60148         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60149
60150 2006-11-23  Jim Meyering  <jim@meyering.net>
60151
60152         * build-aux/announce-gen: New file.  From coreutils.
60153
60154 2006-11-22  Jim Meyering  <jim@meyering.net>
60155
60156         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60157         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60158         (fts_read): Use a temporary to narrow the overused st_size member
60159         before using it in a switch statement.  Reported by Matthew Woehlke.
60160
60161         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60162         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60163
60164 2006-11-20  Bruno Haible  <bruno@clisp.org>
60165
60166         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60167         changequote instead of pairs of brackets.
60168         Reported by Andreas Schwab <schwab@suse.de>.
60169
60170 2006-11-21  Jim Meyering  <jim@meyering.net>
60171
60172         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60173         so as to remain compatible with older compilers.
60174         Patch from Michael Deutschmann.
60175
60176 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60177
60178         * MODULES.html.sh (File system functions): Add openat.
60179
60180         * lib/openat.h (rpl_fstatat): New macro, if
60181         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60182         (fstatat): Define to rpl_fstatat under the same conditions,
60183         unless COMPILING_FSTATAT.
60184         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60185         seems to have the bug.
60186         * lib/fstatat.c: New file.
60187         * modules/openat (Files): Add it.
60188
60189 2006-11-20  Bruno Haible  <bruno@clisp.org>
60190
60191         * Makefile: New file.
60192
60193 2006-11-20  Jim Meyering  <jim@meyering.net>
60194
60195         The beginnings of syntax-related checks for gnulib.
60196         * lib/Makefile: New file.
60197         * lib/t-idcache: New script.  Ensure that the two halves of
60198         idcache.c stay in sync.
60199
60200         * lib/idcache.c: Adjust comments in user- and group- portions to
60201         be more accurate, and to be consistent with one another.
60202
60203 2006-11-20  Jim Meyering  <jim@meyering.net>
60204
60205         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60206         continue using the flexible array member (thus, this module performs
60207         half as many malloc calls), with the addition that...
60208         (getgroup, getuser): Consistently record a non-match via an empty
60209         "name" string, and map an empty string match to a NULL return value.
60210         * modules/idcache (Depends-on): Re-add flexmember.
60211
60212         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60213         (getuidbyname, getgroup, getgidbyname): Likewise.
60214
60215         Use cleaner syntax: NULL rather than 0.
60216         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60217
60218 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60221         It mishandled the case where the group was missing.
60222         Problem reported by Greg Schafer.
60223         * modules/idcache: Likewise.
60224
60225 2006-11-18  Jim Meyering  <jim@meyering.net>
60226
60227         * check-module (%exempt_header): Add exception for some
60228         conditionally-included headers.
60229
60230         * modules/i-ring (Depends-on): Add verify.
60231         (License): Change to LGPL.
60232
60233 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60234
60235         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60236         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60237         and inttostr.h.  Use snprintf rather than uinttostr, so that
60238         LGPLed code doesn't depend on GPLed.
60239
60240 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         * modules/inline (License): Change from GPL to LGPL.
60243
60244 2006-11-17  Jim Meyering  <jim@meyering.net>
60245
60246         * modules/d-type (License): Switch to LGPL.
60247
60248 2006-11-15  Bruno Haible  <bruno@clisp.org>
60249
60250         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60251
60252 2006-11-15  Eric Blake  <ebb9@byu.net>
60253
60254         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60255         the module dependency.
60256
60257 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60258             Bruno Haible  <bruno@clisp.org>
60259
60260         * gnulib-tool (func_create_testdir): Add license consistency check.
60261
60262 2006-11-15  Eric Blake  <ebb9@byu.net>
60263
60264         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60265         random "(cached)" in configure output.
60266
60267 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60268
60269         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60270         test for conforming inttypes.h is both announced and cached.
60271
60272         * MODULES.html.sh (seen_modules, seen_files): New variables.
60273         (func_module): Rewrite to use a few less gnulib-tool and sed
60274         invocations.  Avoid a couple of quadratic algorithms for ...
60275         (missed_modules, missed_files): ... these, with ...
60276         (func_append, func_tmpdir): ... these new functions, from
60277         gnulib-tool.  Analogously, install traps for cleanup.
60278
60279         * tests/test-gc.c (main): Remove unused variables.
60280         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60281
60282 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60283
60284         * modules/inttostr (License): Change to LGPL.
60285
60286 2006-11-14  Eric Blake  <ebb9@byu.net>
60287
60288         * modules/tempname (License): Change to LGPL.
60289
60290 2006-11-14  Eric Blake  <ebb9@byu.net>
60291
60292         * doc/functions.texi (Function Portability): *printf functions on
60293         Cygwin now understand all POSIX size specifiers.
60294
60295 2006-11-14  Bruno Haible  <bruno@clisp.org>
60296
60297         * modules/c-ctype (License): Change to LGPL.
60298
60299 2006-11-12  Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60302         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60303         for GNOME libraries, for which the include files are installed in
60304         subdirectories of $prefix/include.
60305
60306 2006-11-12  Bruno Haible  <bruno@clisp.org>
60307
60308         * m4/lib-link.m4: Require at least autoconf-2.54.
60309         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60310         name to underscores for the --with option.
60311
60312 2006-11-13  Bruno Haible  <bruno@clisp.org>
60313
60314         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60315         the tests directory.
60316         Reported by Ralf Wildenhues.
60317
60318 2006-11-13  Bruno Haible  <bruno@clisp.org>
60319
60320         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60321         (func_emit_initmacro_end): Undo the override here.
60322         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60323         Works around the famous automake error in coreutils.
60324
60325 2006-11-13  Eric Blake  <ebb9@byu.net>
60326
60327         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60328         element, not its node.
60329
60330 2006-11-12  Bruno Haible  <bruno@clisp.org>
60331
60332         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60333         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60334
60335 2006-11-12  Bruno Haible  <bruno@clisp.org>
60336
60337         * gnulib-tool: New option --local-symlink.
60338         (func_usage): Document it.
60339         (lsymbolic): New variable.
60340         (func_import, func_create_testdir): If --symlink was not specified,
60341         test whether --local-symlink was specified and the file comes from
60342         the local_gnulib_dir.
60343
60344 2006-11-12  Bruno Haible  <bruno@clisp.org>
60345
60346         * gnulib-tool (func_ln): New function.
60347         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60348
60349 2006-11-12  Bruno Haible  <bruno@clisp.org>
60350
60351         Finish support for source files in subdirectories.
60352         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60353         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60354         AUTOMAKE_OPTIONS.
60355         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60356
60357 2006-11-12  Bruno Haible  <bruno@clisp.org>
60358
60359         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60360         EXTRA_lib_SOURCES augmentation.
60361         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60362
60363 2006-11-12  Jim Meyering  <jim@meyering.net>
60364
60365         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60366         file descriptors.  This also averts a failure on systems with
60367         native openat support when a traversed directory lacks "x" access.
60368         * lib/fts_.h: Include "i-ring.h"
60369         (struct FTS) [fts_fd_ring]: New member.
60370         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60371         (FCHDIR): Add parentheses.
60372         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60373         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60374         When descending, rather than simply closing the previous
60375         fts_cwd_fd value, push that file descriptor onto the ring.
60376         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60377         (fts_open): Initialize the new fd_ring member.
60378         (fts_close): Clear the ring.
60379         (fts_safe_changedir): When possible, use our new fd_ring to skip
60380         the diropen and fstat and dev/ino comparison that would normally
60381         accompany a virtual `chdir ("..")'.
60382
60383         * modules/fts (Depends-on): Add i-ring.
60384         * modules/i-ring: New module.
60385         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60386         * m4/i-ring.m4: New file.
60387
60388 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60389
60390         * gnulib-tool (func_create_testdir): Fix replacement of
60391         `build-aux' in configure.ac.  Run autotools in gltests
60392         subdirectory.
60393         (func_create_testdir, func_create_megatestdir, test): There is
60394         no need for '--force' in most autotool invocations in a new
60395         tree.  Actually fail the whole test if any of the tools, or the
60396         configure or make stages fail.
60397
60398         Sync from Automake.
60399         * build-aux/gnupload: Revert last change.  Add pointer to upload
60400         instructions of the GNU Maintenance Instructions.
60401         Suggestion by Karl Berry.
60402
60403 2006-11-10  Jim Meyering  <jim@meyering.net>
60404
60405         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60406
60407 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60408
60409         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60410         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60411         (bind_textdomain_codeset) [! ENABLE_NLS]:
60412         Evaluate all the arguments.  That way, callers get compatible behavior
60413         if the arguments have side effects.  Also, it avoids some GCC
60414         diagnostics in some cases; Joel E. Denny reported problems when Bison
60415         was configured with --enable-gcc-warnigs.
60416
60417 2006-11-10  Jim Meyering  <jim@meyering.net>
60418
60419         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60420         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60421         account.
60422
60423 2006-11-10  Jim Meyering  <jim@meyering.net>
60424
60425         * modules/inline: New file/module.
60426         * modules/xalloc (Files): Remove m4/inline.m4.
60427         (Depends-on): Add inline, instead.
60428         * modules/oset: Likewise.
60429         * modules/list: Likewise.
60430
60431 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60434         Problem reported by Matthew Woehlke.
60435
60436 2006-11-09  Bruno Haible  <bruno@clisp.org>
60437
60438         * lib/tempname.c (gen_tempname): Remove variant that invokes
60439         __gen_tempname.
60440         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60441         __gen_tempname.
60442
60443 2006-11-08  Bruno Haible  <bruno@clisp.org>
60444
60445         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60446         to 'yes' instead of 'cross-compiling'.
60447
60448 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60449
60450         * lib/quotearg.h (quotearg_free): New decl.
60451         * lib/quotearg.c (quotearg_free): New function.
60452         (slot0, nslots, slotvec0, slotvec):
60453         Now file-scope so that quotearg_free can get at them.
60454
60455 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60456
60457         Sync from Automake.
60458         * build-aux/gnupload: Add missing 'gnu' to example URL.
60459         Report by Karl Berry.
60460
60461 2006-11-08  Bruno Haible  <bruno@clisp.org>
60462
60463         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60464         Suggested by Paul Eggert.
60465
60466 2006-11-08  Jim Meyering  <jim@meyering.net>
60467
60468         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60469         It's already included if !_LIBC.
60470         (fts_safe_changedir): Add a comment.
60471
60472 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60475         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60476         Matthew Woehlke.
60477
60478         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60479         definitions up, to avoid colliding with change below.
60480         (static_inline) [HAVE_INLINE]: New macro.
60481         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60482         Provide extern decls when !HAVE_INLINE.  Do not define unless
60483         static_inline is defined, either by us or by xmalloc.c.  Use
60484         static_inline rather than static inline.
60485         (XCALLOC): Optimize sizeof(T) = 1 case.
60486         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60487
60488 2006-11-07  Bruno Haible  <bruno@clisp.org>
60489
60490         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60491         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60492         AC_C_INLINE.
60493         * modules/xalloc (Files): Add m4/inline.m4.
60494
60495 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60496
60497         * README: Fix typo.
60498         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60499         (Miscellanous Notes): ...from this.
60500
60501 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60502
60503         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60504         Mention that offsetof should be used instead of sizeof.
60505         From Bruno Haible.
60506
60507 2006-11-07  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60510
60511 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60512
60513         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60514         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60515         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60516         (gl_tree_add_before, gl_tree_add_after):
60517         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60518         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60519         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60520         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60521         (gl_linked_add_after, gl_linked_add_at): Likewise.
60522         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60523         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60524         (gl_tree_add_before, gl_tree_add_after): Likewise.
60525         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60526         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60527         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60528
60529 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60530
60531         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60532
60533 2006-11-06  Bruno Haible  <bruno@clisp.org>
60534
60535         * m4/inline.m4: New file.
60536         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60537         * modules/list (Files): Add m4/inline.m4.
60538         * modules/oset (Files): Likewise.
60539
60540 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60541
60542         * lib/idcache.c: Include <stddef.h>, for offsetof.
60543         (struct userid.name): Change from char * to a flexible array member.
60544         All uses changed.
60545         * modules/idcache (Depends-on): Add flexmember.
60546
60547         * MODULES.html.sh (Core language properties): New module flexmember.
60548         * modules/flexmember, m4/flexmember.m4: New files.
60549
60550         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60551         inline functions that are identical with the old xnmalloc_inline,
60552         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60553         that we can avoid some unnecessary integer multiplications and
60554         divisions in the common case where the element size is known at
60555         compile time.
60556         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60557         needed.
60558         (xnboundedmalloc): Remove.
60559         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60560         arguments, for consistency with rest of this header.
60561         (xcharalloc): Rewrite using XNMALLOC.
60562         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60563         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60564         versions have been moved to lib/xalloc.h and renamed to be the
60565         non-*_inline versions.
60566         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60567         and xnrealloc functions, since those functions are now inline and
60568         now call us.
60569         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60570         renaming described above.
60571         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60572         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60573         captures the dependency in AC_C_INLINE.
60574
60575         New module canonicalize-lgpl, proposed by Charles Wilson in
60576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60577         with a few small changes afterwards.
60578         * MODULES.html.sh (File system functions): New module
60579         canonicalize-lgpl.
60580         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60581         and canonicalize_file_name.
60582         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60583         * modules/canonicalize-lgpl: New files.
60584
60585 2006-11-05  Bruno Haible  <bruno@clisp.org>
60586
60587         * gnulib-tool (func_import, func_create_testdir): Create directories
60588         also for files in subdirectories of lib/.
60589
60590 2006-11-05  Bruno Haible  <bruno@clisp.org>
60591
60592         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60593         ANSI C compliant.
60594
60595 2006-11-03  Bruno Haible  <bruno@clisp.org>
60596
60597         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60598         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60599         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60600         (xnboundedmalloc): New inline function.
60601         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60602         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60603         xmalloc.
60604         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60605         xmalloc.
60606         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60607         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60608         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60609         xmalloc.
60610         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60611         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60612         xmalloc.
60613         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60614         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60615         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60616         xmalloc.
60617         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60618         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60619         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60620         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60621         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60622         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60623         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60624
60625 2006-11-03  Bruno Haible  <bruno@clisp.org>
60626
60627         * lib/c-ctype.h [C++]: Define functions without name mangling.
60628         * lib/fwriteerror.h [C++]: Likewise.
60629         * lib/gcd.h [C++]: Likewise.
60630         * lib/linebreak.h [C++]: Likewise.
60631
60632 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60633
60634         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60635         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60636         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60637         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60638         Check for functions and headers just once.
60639         Check for declaration of canonicalize_file_name.
60640         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60641
60642 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60643
60644         * gnulib-tool (func_import): Fix typo in actioncmd.
60645
60646 2006-11-02  Bruno Haible  <bruno@clisp.org>
60647
60648         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60649         newline sequence in the Makefile.am snippet as a space, like "make"
60650         does.
60651         Reported by Roger Persson <perrog@gmail.com>.
60652
60653 2006-11-01  Bruno Haible  <bruno@clisp.org>
60654
60655         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60656         already declared in <string.h>.
60657         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60658
60659 2006-11-01  Bruno Haible  <bruno@clisp.org>
60660
60661         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60662         * lib/strcase.h: Include <string.h>.
60663         (strcasecmp): Define to rpl_strcasecmp here.
60664
60665 2006-11-01  Bruno Haible  <bruno@clisp.org>
60666
60667         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60668
60669 2006-11-01  Eric Blake  <ebb9@byu.net>
60670
60671         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60672
60673         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60674
60675 2006-10-29  Bruno Haible  <bruno@clisp.org>
60676
60677         Make it compile in C++ mode.
60678         * lib/full-write.c (full_rw): Add a cast.
60679
60680 2006-11-01  Bruno Haible  <bruno@clisp.org>
60681
60682         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60683         be POSIX compliant.
60684         Reported by Roger Persson <perrog@gmail.com>.
60685
60686 2006-11-01  Eric Blake  <ebb9@byu.net>
60687
60688         * lib/getopt_.h: Fix comments.
60689
60690 2006-10-31  Eric Blake  <ebb9@byu.net>
60691
60692         * modules/tmpdir (Depends-on): Add sys_stat.
60693         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60694         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60695         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60696         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60697         tempname.
60698
60699 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60700
60701         Avoid some C++ diagnostics reported by Bruno Haible.
60702         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60703         xmalloc.
60704         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60705         (struct slotvec): Move to top level.
60706         (quotearg_n_options): Rewrite to avoid xmalloc.
60707         * lib/xalloc.h (xcharalloc): New function.
60708         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60709         [defined __cplusplus]: Add function template that provides result
60710         type propagation.  This part of the change is from Bruno Haible.
60711
60712 2006-10-29  Bruno Haible  <bruno@clisp.org>
60713
60714         Make it compile in C++ mode.
60715         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60716         * lib/strnlen1.c (strnlen1): Cast memchr result.
60717         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60718         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60719         (create_temp_dir): Rename local variable 'template'.
60720         (compile_csharp_using_sscli): Add cast.
60721         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60722         * lib/findprog.c (find_in_path): Likewise.
60723         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60724         * lib/wait-process.c (register_slave_subprocess): Likewise.
60725
60726 2006-10-22  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/tsearch: New file.
60729         * lib/tsearch.h: New file.
60730         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60731         * m4/tsearch.m4: New file.
60732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60733
60734 2006-10-29  Eric Blake  <ebb9@byu.net>
60735
60736         * lib/arcfour.c: Assume config.h.
60737         * lib/arctwo.c: Likewise.
60738         * lib/base64.c: Likewise.
60739         * lib/check-version.c: Likewise.
60740         * lib/crc.c: Likewise.
60741         * lib/des.c: Likewise.
60742         * lib/gc-gnulib.c: Likewise.
60743         * lib/gc-libgcrypt.c: Likewise.
60744         * lib/gc-pbkdf2-sha1.c: Likewise.
60745         * lib/getaddrinfo.c: Likewise.
60746         * lib/getdelim.c: Likewise.
60747         * lib/getline.c: Likewise.
60748         * lib/hmac-md5.c: Likewise.
60749         * lib/hmac-sha1.c: Likewise.
60750         * lib/iconvme.c: Likewise.
60751         * lib/md2.c: Likewise.
60752         * lib/md4.c: Likewise.
60753         * lib/memxor.c: Likewise.
60754         * lib/read-file.c: Likewise.
60755         * lib/readline.c: Likewise.
60756         * lib/rijndael-alg-fst.c: Likewise.
60757         * lib/rijndael-api-fst.c: Likewise.
60758         * lib/xgetdomainname.c: Likewise.
60759
60760 2006-10-28  Eric Blake  <ebb9@byu.net>
60761
60762         * lib/xstrndup.c: Assume config.h.
60763
60764 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60765
60766         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60767         stat-macros.h is now for our own macros, whereas stat_h is for
60768         macros in the <sys/stat.h> name space.
60769         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60770         (STAT_MACROS_H): Remove.
60771         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60772         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60773         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60774         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60775         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60776         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60777         Move these macros to ...
60778         * lib/stat_.h: here.  Don't include stat-macros.h.
60779         * lib/canonicalize.c: Don't include stat-macros.h.
60780         * lib/chown.c: Likewise.
60781         * lib/euidaccess.c: Likewise.
60782         * lib/file-type.c: Likewise.
60783         * lib/filemode.c: Likewise.
60784         * lib/glob.c: Likewise.
60785         * lib/isapipe.c: Likewise.
60786         * lib/lchown.c: Likewise.
60787         * lib/lstat.c: Likewise.
60788         * lib/mkdir-p.c: Likewise.
60789         * lib/rmdir.c: Likewise.
60790         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60791         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60792         unless mkdir isn't declared, to speed up 'configure'.
60793         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60794         would define all the S_* symbols.
60795         * modules/canonicalize (Depends-on):
60796         Depend on sys_stat, not stat-macros.
60797         * modules/chown: Likewise.
60798         * modules/euidaccess: Likewise.
60799         * modules/filemode: Likewise.
60800         * modules/file-type: Likewise.
60801         * modules/glob: Likewise.
60802         * modules/isapipe: Likewise.
60803         * modules/lchown: Likewise.
60804         * modules/lstat: Likewise.
60805         * modules/mkancesdirs: Likewise.
60806         * modules/rmdir: Likewise.
60807         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60808         * modules/modechange: Likewise.
60809         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60810         (configure.ac): Remove gl_STAT_MACROS.
60811         * modules/sys_stat (Depends-on): Remove stat-macros.
60812
60813 2006-10-27  Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/signed.m4: Remove file.
60816         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60817         invocation.
60818         * modules/vasnprintf (Files): Remove m4/signed.m4.
60819
60820 2006-10-27  Bruno Haible  <bruno@clisp.org>
60821
60822         Update to GNU gettext 0.16.
60823         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60824         m4/inttypes-h.m4, m4/signed.m4.
60825         * m4/gettext.m4: Update to GNU gettext 0.16.
60826         * m4/intl.m4: New file, from GNU gettext.
60827         * m4/intldir.m4: New file, from GNU gettext.
60828         * config/srclist.txt: Update
60829
60830 2006-10-27  Eric Blake  <ebb9@byu.net>
60831
60832         * MODULES.html.sh: Document tempname.
60833         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60834         dependencies.
60835         (Files): Move lib/tempname.c...
60836         * modules/tempname: ...to this new module.
60837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60838         (gl_PREREQ_TEMPNAME): Move...
60839         * m4/tempname.m4: ...to this new file.
60840         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60841         * modules/sys_stat (Depends-on): Add stat-macros.
60842         * lib/stat_.h (includes): Pick up stat macros.
60843         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60844         if stat macros are broken.
60845         * lib/tempname.c (includes): No need to include "stat-macros.h".
60846         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60847         (direxists, __path_search) [!_LIBC]: Don't compile these in
60848         gnulib; the tmpdir module covers that.
60849         * lib/tempname.h: New file.
60850
60851 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         * COPYING: Explain how gnulib-tool converts licence headers.
60854         Almost all wording by Eric Blake.
60855
60856 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60857
60858         * lib/mbchar.h (is_basic_table): Make read-only.
60859         * lib/mbchar.c (is_basic_table): Likewise.
60860         Reported by John Darrington.
60861
60862 2006-10-25  Bruno Haible  <bruno@clisp.org>
60863
60864         * lib/progname.h (set_program_name): Undefine before defining.
60865
60866 2006-10-25  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60869         false for non-gcc C++ compilers.
60870         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60871
60872 2006-10-24  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60875         iconv implementations like Irix iconv.
60876
60877 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60878
60879         * modules/vararrays: New file.
60880         * m4/vararrays.m4: New file, taken from diffutils.
60881         * MODULES.html.sh: New module vararrays.
60882
60883 2006-10-24  Karl Berry  <karl@gnu.org>
60884
60885         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60886         Don't call GNU Unix.
60887
60888 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60889
60890         * users.txt: Add Libtool.
60891
60892         Sync from Libtool:
60893
60894         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60895
60896         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60897         to gnulib's policy of including config.h unconditionally.
60898
60899 2006-10-24  Bruno Haible  <bruno@clisp.org>
60900
60901         * modules/wcwidth (Files): Add m4/wint_t.m4.
60902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60903         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60904
60905 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60906
60907         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60908         to pacify GCC with some -W flags enabled.  Problem reported by
60909         Bruno Haible.
60910
60911 2006-10-24  Jim Meyering  <jim@meyering.net>
60912
60913         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60914         Reported by Karl Berry.
60915
60916 2006-10-23  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60919
60920 2006-10-24  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/gl_list.h: Use C comment style, not C++ comment style.
60923
60924 2006-10-23  Eric Blake  <ebb9@byu.net>
60925
60926         * lib/getaddrinfo.c (includes): Add missing include.
60927
60928 2006-10-23  Bruno Haible  <bruno@clisp.org>
60929             Paul Eggert  <eggert@cs.ucla.edu>
60930
60931         Ability to rename obstack_free.
60932         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60933         obstack_free.
60934         (obstack_free): Invoke the __obstack_free macro.
60935         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60936
60937 2006-10-23  Bruno Haible  <bruno@clisp.org>
60938             Paul Eggert  <eggert@cs.ucla.edu>
60939
60940         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60941         __argc, __argv from the declaration. (They are defined as macros on
60942         mingw.)
60943
60944 2006-10-22  Bruno Haible  <bruno@clisp.org>
60945
60946         * doc/gnulib-intro.texi: New file.
60947         * doc/gnulib.texi: Include it.
60948
60949 2006-10-21  Bruno Haible  <bruno@clisp.org>
60950
60951         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60952         "Introduction", "Miscellanous Notes", "Particular Modules".
60953
60954 2006-10-21  Bruno Haible  <bruno@clisp.org>
60955
60956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60957         Change mostlyclean-local rule to avoid sh syntax error from bash
60958         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60959
60960 2006-10-23  Jim Meyering  <jim@meyering.net>
60961
60962         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60963         in place of snprintf.
60964
60965         * modules/inttostr (Files): Add lib/uinttostr.c.
60966         * lib/uinttostr.c (inttostr): New file/function.
60967         * lib/inttostr.h (uinttostr): Declare.
60968         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60969         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60970         Add uinttostr.
60971         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60972
60973 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60974
60975         * lib/canonicalize.c (ELOOP): Define if not already defined.
60976         Problem reported by Bruno Haible in
60977         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60978
60979 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60982         Problem reported by Perry Smith and Ville Laurikari.
60983
60984         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60985         uses.
60986
60987 2006-10-19  Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60990         for mingw.
60991
60992 2006-10-19  Bruno Haible  <bruno@clisp.org>
60993
60994         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60995         Needed for mingw.
60996
60997 2006-10-19  Bruno Haible  <bruno@clisp.org>
60998
60999         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61000
61001 2006-10-19  Bruno Haible  <bruno@clisp.org>
61002
61003         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61004         it.
61005
61006 2006-10-19  Bruno Haible  <bruno@clisp.org>
61007
61008         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61009         invocation.
61010
61011 2006-10-19  Bruno Haible  <bruno@clisp.org>
61012
61013         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61014         mountlist by default.
61015
61016 2006-10-16  Bruno Haible  <bruno@clisp.org>
61017
61018         * lib/c-strstr.c: Include c-strstr.h.
61019
61020 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61021
61022         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61023         in a slash.
61024
61025 2006-10-18  Bruno Haible  <bruno@clisp.org>
61026
61027         * lib/lock.h [C++]: Wrap definitions in extern "C".
61028
61029 2006-10-18  Bruno Haible  <bruno@clisp.org>
61030
61031         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61032         gl_LIBOBJS list.
61033
61034 2006-10-18  Bruno Haible  <bruno@clisp.org>
61035
61036         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61037
61038 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * lib/xstrtol.h: Include gettext.h.
61041         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61042         Problem reported by Eric Blake.
61043         * modules/xstrtol (Depends-on): Add gettext-h.
61044
61045 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61046
61047         * lib/strftime.c (advance): New macro.
61048         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61049         incomplete type, so you can't add 0 to it.  Problem and patch
61050         reported by Eelco Dolstra for dietlibc.
61051
61052 2006-10-18  Jim Meyering  <jim@meyering.net>
61053
61054         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61055         type for a local, and rename it: s/up/user_proc/.
61056
61057 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61058
61059         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61060         READ_UTMP_USER_PROCESS.
61061         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61062
61063 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61064
61065         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61066         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61067
61068 2006-10-17  Eric Blake  <ebb9@byu.net>
61069
61070         * lib/sigprocmask.c (sigprocmask): Fix typo.
61071
61072         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61073
61074         * modules/clean-temp (Makefile.am): Don't add to make output...
61075         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61076         config.h.
61077
61078 2006-10-17  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61081         differently if DEFAULT_TEXT_DOMAIN is set.
61082
61083 2006-10-16  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/clean-temp.c: Include fwriteerror.h.
61086
61087 2006-10-16  Bruno Haible  <bruno@clisp.org>
61088
61089         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61090
61091 2006-10-16  Bruno Haible  <bruno@clisp.org>
61092
61093         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61094         * lib/sigprocmask.h: Include <sys/types.h>.
61095         (sigset_t): Use the system's definition if present.
61096
61097 2006-10-17  Eric Blake  <ebb9@byu.net>
61098
61099         * lib/xvasprintf.c (includes): Assume config.h.
61100         * lib/xasprintf.c (includes): Likewise.
61101
61102 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61103
61104         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61105         at least as wide as intmax_t.
61106
61107 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61108
61109         (Imported from Automake.)
61110         * build-aux/gnupload: Update to version 1.1 of directive file.
61111
61112 2006-10-16  Eric Blake  <ebb9@byu.net>
61113
61114         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61115         match Automake 1.10a.
61116
61117 2006-10-14  Bruno Haible  <bruno@clisp.org>
61118
61119         * modules/sigprocmask: New file.
61120         * lib/sigprocmask.h: New file.
61121         * lib/sigprocmask.c: New file.
61122         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61123         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61124         request sigprocmask.o.
61125         (gl_PREREQ_SIGPROCMASK): New macro.
61126         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61127         (Depends-on): Add sigprocmask.
61128         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61129         gt_SIGNALBLOCKING. Test for 'raise' only once.
61130         * lib/fatal-signal.c: Include sigprocmask.h.
61131         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61132         unblock_fatal_signals): Define always.
61133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61134         sigprocmask.
61135
61136 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         Sync from Automake.
61139         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61140         which incorrectly sets the mode of an existing destination
61141         directory.  In some cases the unpatched install-sh could do the
61142         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61143         system.  We hope this is rare in practice, but it's clearly worth
61144         fixing.  Problem reported by Alex Unleashed in
61145         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61146         Also, don't bother to check for -m bugs unless we're using -m;
61147         suggested by Stepan Kasal.
61148
61149 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61150
61151         Sync from Automake.
61152         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61153         `-c' flag, so they appear at the same position as in %FASTDEP%
61154         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61155         which ignores unknown options only after the first non-option.
61156         Bug report against M4 by Nelson H. F. Beebe.
61157
61158 2006-10-13  Jim Meyering  <jim@meyering.net>
61159
61160         Fix a bug in yesterday's change.
61161         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61162         p->fts_statp->st_dev would be used uninitialized.
61163         Ensures that we always call fts_stat on the very first entry.
61164         Miklos Szeredi reported that find -xdev stopped working.
61165
61166 2006-10-12  Bruno Haible  <bruno@clisp.org>
61167
61168         * gnulib-tool (func_get_automake_snippet): Append an automatically
61169         computed EXTRA_DIST augmentation.
61170         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61171         * modules/alloca-opt (Makefile.am): Likewise.
61172         * modules/allocsa (Makefile.am): Likewise.
61173         * modules/arcfour (Makefile.am): Likewise.
61174         * modules/arctwo (Makefile.am): Likewise.
61175         * modules/argmatch (Makefile.am): Likewise.
61176         * modules/argz (Makefile.am): Likewise.
61177         * modules/atexit (Makefile.am): Likewise.
61178         * modules/backupfile (Makefile.am): Likewise.
61179         * modules/byteswap (Makefile.am): Likewise.
61180         * modules/c-strtod (Makefile.am): Likewise.
61181         * modules/c-strtold (Makefile.am): Likewise.
61182         * modules/calloc (Makefile.am): Likewise.
61183         * modules/canon-host (Makefile.am): Likewise.
61184         * modules/canonicalize (Makefile.am): Likewise.
61185         * modules/chdir-long (Makefile.am): Likewise.
61186         * modules/chdir-safer (Makefile.am): Likewise.
61187         * modules/check-version (Makefile.am): Likewise.
61188         * modules/chown (Makefile.am): Likewise.
61189         * modules/cloexec (Makefile.am): Likewise.
61190         * modules/close-stream (Makefile.am): Likewise.
61191         * modules/closeout (Makefile.am): Likewise.
61192         * modules/crc (Makefile.am): Likewise.
61193         * modules/csharpexec (Makefile.am): Likewise.
61194         * modules/cycle-check (Makefile.am): Likewise.
61195         * modules/des (Makefile.am): Likewise.
61196         * modules/dev-ino (Makefile.am): Likewise.
61197         * modules/dirfd (Makefile.am): Likewise.
61198         * modules/dirname (Makefile.am): Likewise.
61199         * modules/dup2 (Makefile.am): Likewise.
61200         * modules/eealloc (Makefile.am): Likewise.
61201         * modules/error (Makefile.am): Likewise.
61202         * modules/euidaccess (Makefile.am): Likewise.
61203         * modules/exclude (Makefile.am): Likewise.
61204         * modules/exitfail (Makefile.am): Likewise.
61205         * modules/fcntl-safer (Makefile.am): Likewise.
61206         * modules/fcntl (Makefile.am): Likewise.
61207         * modules/file-type (Makefile.am): Likewise.
61208         * modules/fileblocks (Makefile.am): Likewise.
61209         * modules/filemode (Makefile.am): Likewise.
61210         * modules/filenamecat (Makefile.am): Likewise.
61211         * modules/fnmatch (Makefile.am): Likewise.
61212         * modules/fopen-safer (Makefile.am): Likewise.
61213         * modules/fpending (Makefile.am): Likewise.
61214         * modules/fprintftime (Makefile.am): Likewise.
61215         * modules/free (Makefile.am): Likewise.
61216         * modules/fsusage (Makefile.am): Likewise.
61217         * modules/ftruncate (Makefile.am): Likewise.
61218         * modules/fts (Makefile.am): Likewise.
61219         * modules/gc-arcfour (Makefile.am): Likewise.
61220         * modules/gc-des (Makefile.am): Likewise.
61221         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61222         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61223         * modules/gc-md4 (Makefile.am): Likewise.
61224         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61225         * modules/gc-sha1 (Makefile.am): Likewise.
61226         * modules/gc (Makefile.am): Likewise.
61227         * modules/getaddrinfo (Makefile.am): Likewise.
61228         * modules/getcwd (Makefile.am): Likewise.
61229         * modules/getdelim (Makefile.am): Likewise.
61230         * modules/getdomainname (Makefile.am): Likewise.
61231         * modules/getgroups (Makefile.am): Likewise.
61232         * modules/gethostname (Makefile.am): Likewise.
61233         * modules/gethrxtime (Makefile.am): Likewise.
61234         * modules/getline (Makefile.am): Likewise.
61235         * modules/getloadavg (Makefile.am): Likewise.
61236         * modules/getlogin_r (Makefile.am): Likewise.
61237         * modules/getndelim2 (Makefile.am): Likewise.
61238         * modules/getopt (Makefile.am): Likewise.
61239         * modules/getpagesize (Makefile.am): Likewise.
61240         * modules/getpass-gnu (Makefile.am): Likewise.
61241         * modules/getpass (Makefile.am): Likewise.
61242         * modules/getsubopt (Makefile.am): Likewise.
61243         * modules/gettime (Makefile.am): Likewise.
61244         * modules/gettimeofday (Makefile.am): Likewise.
61245         * modules/getugroups (Makefile.am): Likewise.
61246         * modules/getusershell (Makefile.am): Likewise.
61247         * modules/glob (Makefile.am): Likewise.
61248         * modules/group-member (Makefile.am): Likewise.
61249         * modules/hard-locale (Makefile.am): Likewise.
61250         * modules/hash (Makefile.am): Likewise.
61251         * modules/hmac-md5 (Makefile.am): Likewise.
61252         * modules/hmac-sha1 (Makefile.am): Likewise.
61253         * modules/human (Makefile.am): Likewise.
61254         * modules/idcache (Makefile.am): Likewise.
61255         * modules/imaxabs (Makefile.am): Likewise.
61256         * modules/imaxdiv (Makefile.am): Likewise.
61257         * modules/inet_ntop (Makefile.am): Likewise.
61258         * modules/inet_pton (Makefile.am): Likewise.
61259         * modules/intprops (Makefile.am): Likewise.
61260         * modules/inttostr (Makefile.am): Likewise.
61261         * modules/inttypes (Makefile.am): Likewise.
61262         * modules/isapipe (Makefile.am): Likewise.
61263         * modules/javaversion (Makefile.am): Likewise.
61264         * modules/lchmod (Makefile.am): Likewise.
61265         * modules/lchown (Makefile.am): Likewise.
61266         * modules/localcharset (Makefile.am): Likewise.
61267         * modules/long-options (Makefile.am): Likewise.
61268         * modules/lstat (Makefile.am): Likewise.
61269         * modules/malloc (Makefile.am): Likewise.
61270         * modules/mathl (Makefile.am): Likewise.
61271         * modules/mbchar (Makefile.am): Likewise.
61272         * modules/md2 (Makefile.am): Likewise.
61273         * modules/md4 (Makefile.am): Likewise.
61274         * modules/md5 (Makefile.am): Likewise.
61275         * modules/memcasecmp (Makefile.am): Likewise.
61276         * modules/memchr (Makefile.am): Likewise.
61277         * modules/memcmp (Makefile.am): Likewise.
61278         * modules/memcoll (Makefile.am): Likewise.
61279         * modules/memcpy (Makefile.am): Likewise.
61280         * modules/memmem (Makefile.am): Likewise.
61281         * modules/memmove (Makefile.am): Likewise.
61282         * modules/mempcpy (Makefile.am): Likewise.
61283         * modules/memrchr (Makefile.am): Likewise.
61284         * modules/memset (Makefile.am): Likewise.
61285         * modules/memxor (Makefile.am): Likewise.
61286         * modules/mkancesdirs (Makefile.am): Likewise.
61287         * modules/mkdir-p (Makefile.am): Likewise.
61288         * modules/mkdir (Makefile.am): Likewise.
61289         * modules/mkdtemp (Makefile.am): Likewise.
61290         * modules/mkstemp (Makefile.am): Likewise.
61291         * modules/mktime (Makefile.am): Likewise.
61292         * modules/modechange (Makefile.am): Likewise.
61293         * modules/mountlist (Makefile.am): Likewise.
61294         * modules/nanosleep (Makefile.am): Likewise.
61295         * modules/obstack (Makefile.am): Likewise.
61296         * modules/openat (Makefile.am): Likewise.
61297         * modules/pagealign_alloc (Makefile.am): Likewise.
61298         * modules/pathmax (Makefile.am): Likewise.
61299         * modules/physmem (Makefile.am): Likewise.
61300         * modules/poll (Makefile.am): Likewise.
61301         * modules/posixtm (Makefile.am): Likewise.
61302         * modules/posixver (Makefile.am): Likewise.
61303         * modules/putenv (Makefile.am): Likewise.
61304         * modules/quote (Makefile.am): Likewise.
61305         * modules/quotearg (Makefile.am): Likewise.
61306         * modules/raise (Makefile.am): Likewise.
61307         * modules/read-file (Makefile.am): Likewise.
61308         * modules/readline (Makefile.am): Likewise.
61309         * modules/readlink (Makefile.am): Likewise.
61310         * modules/readtokens (Makefile.am): Likewise.
61311         * modules/readutmp (Makefile.am): Likewise.
61312         * modules/realloc (Makefile.am): Likewise.
61313         * modules/regex (Makefile.am): Likewise.
61314         * modules/rename-dest-slash (Makefile.am): Likewise.
61315         * modules/rename (Makefile.am): Likewise.
61316         * modules/rijndael (Makefile.am): Likewise.
61317         * modules/rmdir (Makefile.am): Likewise.
61318         * modules/rpmatch (Makefile.am): Likewise.
61319         * modules/safe-read (Makefile.am): Likewise.
61320         * modules/safe-write (Makefile.am): Likewise.
61321         * modules/same-inode (Makefile.am): Likewise.
61322         * modules/same (Makefile.am): Likewise.
61323         * modules/save-cwd (Makefile.am): Likewise.
61324         * modules/savedir (Makefile.am): Likewise.
61325         * modules/setenv (Makefile.am): Likewise.
61326         * modules/settime (Makefile.am): Likewise.
61327         * modules/sha1 (Makefile.am): Likewise.
61328         * modules/sig2str (Makefile.am): Likewise.
61329         * modules/snprintf (Makefile.am): Likewise.
61330         * modules/stat-macros (Makefile.am): Likewise.
61331         * modules/stat-time (Makefile.am): Likewise.
61332         * modules/stdbool (Makefile.am): Likewise.
61333         * modules/stdint (Makefile.am): Likewise.
61334         * modules/stdlib-safer (Makefile.am): Likewise.
61335         * modules/stpcpy (Makefile.am): Likewise.
61336         * modules/stpncpy (Makefile.am): Likewise.
61337         * modules/strcase (Makefile.am): Likewise.
61338         * modules/strcasestr (Makefile.am): Likewise.
61339         * modules/strchrnul (Makefile.am): Likewise.
61340         * modules/strcspn (Makefile.am): Likewise.
61341         * modules/strdup (Makefile.am): Likewise.
61342         * modules/strerror (Makefile.am): Likewise.
61343         * modules/strftime (Makefile.am): Likewise.
61344         * modules/strndup (Makefile.am): Likewise.
61345         * modules/strnlen (Makefile.am): Likewise.
61346         * modules/strpbrk (Makefile.am): Likewise.
61347         * modules/strsep (Makefile.am): Likewise.
61348         * modules/strstr (Makefile.am): Likewise.
61349         * modules/strtod (Makefile.am): Likewise.
61350         * modules/strtoimax (Makefile.am): Likewise.
61351         * modules/strtok_r (Makefile.am): Likewise.
61352         * modules/strtol (Makefile.am): Likewise.
61353         * modules/strtoll (Makefile.am): Likewise.
61354         * modules/strtoul (Makefile.am): Likewise.
61355         * modules/strtoull (Makefile.am): Likewise.
61356         * modules/strtoumax (Makefile.am): Likewise.
61357         * modules/strverscmp (Makefile.am): Likewise.
61358         * modules/sys_socket (Makefile.am): Likewise.
61359         * modules/sys_stat (Makefile.am): Likewise.
61360         * modules/sysexits (Makefile.am): Likewise.
61361         * modules/time_r (Makefile.am): Likewise.
61362         * modules/timegm (Makefile.am): Likewise.
61363         * modules/timespec (Makefile.am): Likewise.
61364         * modules/tmpfile-safer (Makefile.am): Likewise.
61365         * modules/trim (Makefile.am): Likewise.
61366         * modules/unistd-safer (Makefile.am): Likewise.
61367         * modules/unlinkdir (Makefile.am): Likewise.
61368         * modules/unlocked-io (Makefile.am): Likewise.
61369         * modules/userspec (Makefile.am): Likewise.
61370         * modules/utime (Makefile.am): Likewise.
61371         * modules/utimecmp (Makefile.am): Likewise.
61372         * modules/utimens (Makefile.am): Likewise.
61373         * modules/vasnprintf (Makefile.am): Likewise.
61374         * modules/vasprintf (Makefile.am): Likewise.
61375         * modules/vsnprintf (Makefile.am): Likewise.
61376         * modules/xalloc (Makefile.am): Likewise.
61377         * modules/xgetcwd (Makefile.am): Likewise.
61378         * modules/xnanosleep (Makefile.am): Likewise.
61379         * modules/xreadlink (Makefile.am): Likewise.
61380         * modules/xstrtod (Makefile.am): Likewise.
61381         * modules/xstrtol (Makefile.am): Likewise.
61382         * modules/xstrtold (Makefile.am): Likewise.
61383         * modules/yesno (Makefile.am): Likewise.
61384         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61385
61386 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         * modules/error (Makefile.am): Distribute files through
61389         EXTRA_DIST, not lib_SOURCES.
61390
61391 2006-10-12  Eric Blake  <ebb9@byu.net>
61392
61393         * modules/error (Makefile.am): Distribute files in /lib.
61394         * modules/obstack (Makefile.am): Likewise.
61395
61396 2006-10-12  Bruno Haible  <bruno@clisp.org>
61397
61398         * modules/acl (Makefile.am): Distribute all files in lib/ through
61399         EXTRA_DIST.
61400         * modules/arcfour (Makefile.am): Likewise.
61401         * modules/arctwo (Makefile.am): Likewise.
61402         * modules/argmatch (Makefile.am): Likewise.
61403         * modules/argz (Makefile.am): Likewise.
61404         * modules/atexit (Makefile.am): Likewise.
61405         * modules/backupfile (Makefile.am): Likewise.
61406         * modules/c-strtod (Makefile.am): Likewise.
61407         * modules/c-strtold (Makefile.am): Likewise.
61408         * modules/calloc (Makefile.am): Likewise.
61409         * modules/canon-host (Makefile.am): Likewise.
61410         * modules/canonicalize (Makefile.am): Likewise.
61411         * modules/chdir-long (Makefile.am): Likewise.
61412         * modules/chdir-safer (Makefile.am): Likewise.
61413         * modules/check-version (Makefile.am): Likewise.
61414         * modules/chown (Makefile.am): Likewise.
61415         * modules/cloexec (Makefile.am): Likewise.
61416         * modules/close-stream (Makefile.am): Likewise.
61417         * modules/closeout (Makefile.am): Likewise.
61418         * modules/crc (Makefile.am): Likewise.
61419         * modules/cycle-check (Makefile.am): Likewise.
61420         * modules/des (Makefile.am): Likewise.
61421         * modules/dirfd (Makefile.am): Likewise.
61422         * modules/dirname (Makefile.am): Likewise.
61423         * modules/dup2 (Makefile.am): Likewise.
61424         * modules/euidaccess (Makefile.am): Likewise.
61425         * modules/exclude (Makefile.am): Likewise.
61426         * modules/exitfail (Makefile.am): Likewise.
61427         * modules/fcntl-safer (Makefile.am): Likewise.
61428         * modules/file-type (Makefile.am): Likewise.
61429         * modules/fileblocks (Makefile.am): Likewise.
61430         * modules/filemode (Makefile.am): Likewise.
61431         * modules/filenamecat (Makefile.am): Likewise.
61432         * modules/fnmatch (Makefile.am): Likewise.
61433         * modules/fopen-safer (Makefile.am): Likewise.
61434         * modules/fpending (Makefile.am): Likewise.
61435         * modules/fprintftime (Makefile.am): Likewise.
61436         * modules/free (Makefile.am): Likewise.
61437         * modules/fsusage (Makefile.am): Likewise.
61438         * modules/ftruncate (Makefile.am): Likewise.
61439         * modules/fts (Makefile.am): Likewise.
61440         * modules/gc (Makefile.am): Likewise.
61441         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61442         * modules/getaddrinfo (Makefile.am): Likewise.
61443         * modules/getcwd (Makefile.am): Likewise.
61444         * modules/getdelim (Makefile.am): Likewise.
61445         * modules/getdomainname (Makefile.am): Likewise.
61446         * modules/getgroups (Makefile.am): Likewise.
61447         * modules/gethostname (Makefile.am): Likewise.
61448         * modules/gethrxtime (Makefile.am): Likewise.
61449         * modules/getline (Makefile.am): Likewise.
61450         * modules/getloadavg (Makefile.am): Likewise.
61451         * modules/getlogin_r (Makefile.am): Likewise.
61452         * modules/getopt (Makefile.am): Likewise.
61453         * modules/getpass (Makefile.am): Likewise.
61454         * modules/getpass-gnu (Makefile.am): Likewise.
61455         * modules/getsubopt (Makefile.am): Likewise.
61456         * modules/gettime (Makefile.am): Likewise.
61457         * modules/gettimeofday (Makefile.am): Likewise.
61458         * modules/getugroups (Makefile.am): Likewise.
61459         * modules/getusershell (Makefile.am): Likewise.
61460         * modules/glob (Makefile.am): Likewise.
61461         * modules/group-member (Makefile.am): Likewise.
61462         * modules/hard-locale (Makefile.am): Likewise.
61463         * modules/hash (Makefile.am): Likewise.
61464         * modules/hmac-md5 (Makefile.am): Likewise.
61465         * modules/hmac-sha1 (Makefile.am): Likewise.
61466         * modules/human (Makefile.am): Likewise.
61467         * modules/idcache (Makefile.am): Likewise.
61468         * modules/imaxabs (Makefile.am): Likewise.
61469         * modules/imaxdiv (Makefile.am): Likewise.
61470         * modules/inet_ntop (Makefile.am): Likewise.
61471         * modules/inet_pton (Makefile.am): Likewise.
61472         * modules/inttostr (Makefile.am): Likewise.
61473         * modules/isapipe (Makefile.am): Likewise.
61474         * modules/lchown (Makefile.am): Likewise.
61475         * modules/long-options (Makefile.am): Likewise.
61476         * modules/lstat (Makefile.am): Likewise.
61477         * modules/malloc (Makefile.am): Likewise.
61478         * modules/mathl (Makefile.am): Likewise.
61479         * modules/mbchar (Makefile.am): Likewise.
61480         * modules/md2 (Makefile.am): Likewise.
61481         * modules/md4 (Makefile.am): Likewise.
61482         * modules/md5 (Makefile.am): Likewise.
61483         * modules/memcasecmp (Makefile.am): Likewise.
61484         * modules/memchr (Makefile.am): Likewise.
61485         * modules/memcmp (Makefile.am): Likewise.
61486         * modules/memcoll (Makefile.am): Likewise.
61487         * modules/memcpy (Makefile.am): Likewise.
61488         * modules/memmem (Makefile.am): Likewise.
61489         * modules/memmove (Makefile.am): Likewise.
61490         * modules/mempcpy (Makefile.am): Likewise.
61491         * modules/memrchr (Makefile.am): Likewise.
61492         * modules/memset (Makefile.am): Likewise.
61493         * modules/memxor (Makefile.am): Likewise.
61494         * modules/mkancesdirs (Makefile.am): Likewise.
61495         * modules/mkdir (Makefile.am): Likewise.
61496         * modules/mkdir-p (Makefile.am): Likewise.
61497         * modules/mkdtemp (Makefile.am): Likewise.
61498         * modules/mkstemp (Makefile.am): Likewise.
61499         * modules/mktime (Makefile.am): Likewise.
61500         * modules/modechange (Makefile.am): Likewise.
61501         * modules/mountlist (Makefile.am): Likewise.
61502         * modules/nanosleep (Makefile.am): Likewise.
61503         * modules/openat (Makefile.am): Likewise.
61504         * modules/pagealign_alloc (Makefile.am): Likewise.
61505         * modules/physmem (Makefile.am): Likewise.
61506         * modules/poll (Makefile.am): Likewise.
61507         * modules/posixtm (Makefile.am): Likewise.
61508         * modules/posixver (Makefile.am): Likewise.
61509         * modules/putenv (Makefile.am): Likewise.
61510         * modules/quote (Makefile.am): Likewise.
61511         * modules/quotearg (Makefile.am): Likewise.
61512         * modules/raise (Makefile.am): Likewise.
61513         * modules/read-file (Makefile.am): Likewise.
61514         * modules/readline (Makefile.am): Likewise.
61515         * modules/readlink (Makefile.am): Likewise.
61516         * modules/readtokens (Makefile.am): Likewise.
61517         * modules/readutmp (Makefile.am): Likewise.
61518         * modules/realloc (Makefile.am): Likewise.
61519         * modules/regex (Makefile.am): Likewise.
61520         * modules/rename (Makefile.am): Likewise.
61521         * modules/rename-dest-slash (Makefile.am): Likewise.
61522         * modules/rijndael (Makefile.am): Likewise.
61523         * modules/rmdir (Makefile.am): Likewise.
61524         * modules/rpmatch (Makefile.am): Likewise.
61525         * modules/safe-read (Makefile.am): Likewise.
61526         * modules/safe-write (Makefile.am): Likewise.
61527         * modules/same (Makefile.am): Likewise.
61528         * modules/save-cwd (Makefile.am): Likewise.
61529         * modules/savedir (Makefile.am): Likewise.
61530         * modules/setenv (Makefile.am): Likewise.
61531         * modules/settime (Makefile.am): Likewise.
61532         * modules/sha1 (Makefile.am): Likewise.
61533         * modules/sig2str (Makefile.am): Likewise.
61534         * modules/snprintf (Makefile.am): Likewise.
61535         * modules/stdlib-safer (Makefile.am): Likewise.
61536         * modules/stpcpy (Makefile.am): Likewise.
61537         * modules/stpncpy (Makefile.am): Likewise.
61538         * modules/strcase (Makefile.am): Likewise.
61539         * modules/strcasestr (Makefile.am): Likewise.
61540         * modules/strchrnul (Makefile.am): Likewise.
61541         * modules/strcspn (Makefile.am): Likewise.
61542         * modules/strdup (Makefile.am): Likewise.
61543         * modules/strerror (Makefile.am): Likewise.
61544         * modules/strftime (Makefile.am): Likewise.
61545         * modules/strndup (Makefile.am): Likewise.
61546         * modules/strnlen (Makefile.am): Likewise.
61547         * modules/strpbrk (Makefile.am): Likewise.
61548         * modules/strsep (Makefile.am): Likewise.
61549         * modules/strstr (Makefile.am): Likewise.
61550         * modules/strtod (Makefile.am): Likewise.
61551         * modules/strtoimax (Makefile.am): Likewise.
61552         * modules/strtok_r (Makefile.am): Likewise.
61553         * modules/strtol (Makefile.am): Likewise.
61554         * modules/strtoll (Makefile.am): Likewise.
61555         * modules/strtoul (Makefile.am): Likewise.
61556         * modules/strtoull (Makefile.am): Likewise.
61557         * modules/strtoumax (Makefile.am): Likewise.
61558         * modules/strverscmp (Makefile.am): Likewise.
61559         * modules/time_r (Makefile.am): Likewise.
61560         * modules/timegm (Makefile.am): Likewise.
61561         * modules/tmpfile-safer (Makefile.am): Likewise.
61562         * modules/unistd-safer (Makefile.am): Likewise.
61563         * modules/unlinkdir (Makefile.am): Likewise.
61564         * modules/userspec (Makefile.am): Likewise.
61565         * modules/utime (Makefile.am): Likewise.
61566         * modules/utimecmp (Makefile.am): Likewise.
61567         * modules/utimens (Makefile.am): Likewise.
61568         * modules/vasnprintf (Makefile.am): Likewise.
61569         * modules/vasprintf (Makefile.am): Likewise.
61570         * modules/vsnprintf (Makefile.am): Likewise.
61571         * modules/xalloc (Makefile.am): Likewise.
61572         * modules/xgetcwd (Makefile.am): Likewise.
61573         * modules/xnanosleep (Makefile.am): Likewise.
61574         * modules/xreadlink (Makefile.am): Likewise.
61575         * modules/xstrtod (Makefile.am): Likewise.
61576         * modules/xstrtol (Makefile.am): Likewise.
61577         * modules/xstrtold (Makefile.am): Likewise.
61578         * modules/yesno (Makefile.am): Likewise.
61579
61580 2006-10-12  Jim Meyering  <jim@meyering.net>
61581
61582         * m4/getloadavg.m4: Revert the change below.
61583
61584         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61585         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61586         fail with a symlink, which is what coreutils' ./bootstrap now
61587         creates by default.
61588
61589 2006-10-12  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61592         mingw.
61593         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61594         MSVC and mingw explicitly.
61595
61596 2006-10-11  Simon Josefsson  <jas@extundo.com>
61597             Bruno Haible  <bruno@clisp.org>
61598
61599         Add support for multiple gnulib-tool invocations in the scope of a
61600         single configure.ac file.
61601         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61602         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61603         with the same contents as the _LIBADD variable.
61604         (func_emit_initmacro_start, func_emit_initmacro_end,
61605         func_emit_initmacro_done): New functions.
61606         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61607         gl_LIBOBJS and gl_LTLIBOBJS.
61608
61609 2006-10-11  Bruno Haible  <bruno@clisp.org>
61610
61611         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61612         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61613         autoreconf. Instead, invoke autopoint explicitly but move back the
61614         *.m4 files from gnulib.
61615
61616 2006-10-11  Bruno Haible  <bruno@clisp.org>
61617
61618         * gnulib-tool (func_usage): Make module names after --create-testdir
61619         optional.
61620         (func_create_testdir): If no module was specified, use nearly all
61621         modules.
61622
61623 2006-10-12  Jim Meyering  <jim@meyering.net>
61624
61625         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61626         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61627         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61628         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61629         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61630         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61631         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61632         (fts_set_stat_required): New function.
61633         (fts_open): Defer the calls to fts_stat, if possible or requested.
61634         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61635         into fts_stat itself.
61636         (fts_read): Perform any required (deferred) fts_stat call.
61637         (fts_build): Likewise, for the directory we're about to open and read.
61638         In the readdir loop, carefully decide whether each entry will require
61639         an eventual call to fts_stat, using dirent.d_type info if available.
61640         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61641         a command line argument into this function.  Update all callers.
61642         Map a return value of FTS_DOT to FTS_D for a command line argument.
61643         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61644         Thanks to Miklos Szeredi for his tenacity and for the initial
61645         bug report about "find" failing on a FUSE-based file system.
61646
61647         * lib/fts.c (fts_open): Use consistent indentation.
61648
61649 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61650
61651         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61652         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61653         reported by Jim Meyering.  All uses of cache variables renamed
61654         to match Autoconf's.
61655         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61656         the other one.
61657
61658         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61659         Fix misspelling in diagnostic.
61660
61661 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61662
61663         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61664         defined.  Problem reported by Matthew Woehlke.
61665
61666         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61667         Add support for Tandem NonStop R series.
61668         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61669         Use new macro.
61670
61671         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61672         (has_trailing_slash): Omit size arg; all callers changed.
61673         Omit 'inline', since it doesn't help performance and we'd
61674         need to configure it.
61675         Don't count //, ///, etc. as having a trailing slash.
61676         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61677         (rpl_rename_dest_slash): On failure, use rename's errno rather
61678         than (in some cases) an incorrect or junk errno.
61679         Simplify code by removing need to compute length; this does
61680         cause it to make two passes instead of one over the file name,
61681         but it's worth it.
61682
61683         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61684         change, since Autoconf's version may no longer be appropriate now
61685         that we are using CVS Autoconf's version.  Add support for Tandem.
61686
61687 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61688             Bruno Haible  <bruno@clisp.org>
61689
61690         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61691         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61692         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61693         gl_AC_TYPE_LONG_LONG.
61694
61695         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61696         instead of HAVE_LONG_LONG.
61697         * lib/printf-args.c (printf_fetchargs): Likewise.
61698         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61699         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61700         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61701         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61702         gl_AC_TYPE_LONG_LONG.
61703
61704 2006-10-11  Bruno Haible  <bruno@clisp.org>
61705
61706         * m4/longlong.m4: Add comments.
61707         * m4/ulonglong.m4: Likewise.
61708
61709 2006-10-10  Bruno Haible  <bruno@clisp.org>
61710
61711         Make it possible to #define stpcpy, strdup to aliases.
61712         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61713         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61714
61715 2006-10-10  Bruno Haible  <bruno@clisp.org>
61716
61717         Make it possible to #define gcd to an alias.
61718         * lib/gcd.c: Include config.h.
61719
61720 2006-10-10  Bruno Haible  <bruno@clisp.org>
61721
61722         Make it possible to #define c_isascii to an alias.
61723         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61724         defined. Undefine the macros before defining them, to avoid gcc
61725         warnings.
61726         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61727         define NO_C_CTYPE_MACROS early.
61728
61729 2006-10-10  Bruno Haible  <bruno@clisp.org>
61730
61731         Make it possible to #define set_program_name to an alias.
61732         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61733         ENABLE_RELOCATABLE early.
61734
61735 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61738         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61739         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61740         More generally, don't assume that 64-bit signed int is available
61741         if unsigned int is, and vice versa.
61742         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61743         unsigned symbols, not on their signed counterparts.
61744         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61745         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61746         (UINT64_C, UINTMAX_C):
61747         Likewise.
61748         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61749         unsigned counterparts.
61750         (Have_long_long, Unsigned): New macros.
61751         (Int): Renamed from INT.
61752         (strtoimax): Use the new macros.
61753         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61754         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61755         * modules/inttypes (inttypes.h): Substitute
61756         HAVE_UNSIGNED_LONG_LONG_INT.
61757         * modules/stdint (stdint.h): Likewise.
61758         (Files): Add m4/ulonglong.m4.
61759
61760 2006-10-10  Bruno Haible  <bruno@clisp.org>
61761
61762         Fix a gcc -Wshadow warning.
61763         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61764         to 'bucket'.
61765         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61766         gl_linked_indexof_from_to): Likewise.
61767         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61768         Likewise.
61769         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61770         Likewise.
61771         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61772         Reported by Eric Blake.
61773
61774 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61775
61776         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61777         for NetBSD.  Problem reported by Bruno Haible.
61778
61779 2006-10-09  Jim Meyering  <jim@meyering.net>
61780
61781         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61782         Patch from Bruno Haible.
61783
61784 2006-10-09  Jim Meyering  <jim@meyering.net>
61785
61786         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61787         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61788         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61789
61790 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61791
61792         Don't include <config.h> twice; this doesn't work in some cases,
61793         e.g., when config.h has "#define intmax_t long long int" and
61794         we include <config.h>, <inttypes.h>, <config.h> in that order.
61795         Problem reported by Matthew Woehlke in:
61796         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61797         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61798         * lib/fts-cycle.c: Don't include config.h.
61799         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61800         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61801         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61802         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61803         inttypes.h.
61804         * lib/xstrtoumax.c: Likewise.
61805         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61806         __strtol and the like, so that this module is more like its siblings.
61807         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61808         Remove; no longer needed now that we assume gnulib inttypes.h.
61809
61810 2006-10-08  Bruno Haible  <bruno@clisp.org>
61811
61812         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61813         option.
61814
61815 2006-10-07  Jim Meyering  <jim@meyering.net>
61816
61817         * modules/inttypes (inttypes.h): Revert what seems to have been
61818         an inadvertent part of today's change: use "|", not "/" in the
61819         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61820
61821 2006-10-07  Bruno Haible  <bruno@clisp.org>
61822
61823         * modules/sublist: New file.
61824
61825 2006-10-07  Bruno Haible  <bruno@clisp.org>
61826
61827         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61828         * modules/argz (argz.h): Likewise.
61829         * modules/arpa_inet (arpa/inet.h): Likewise.
61830         * modules/byteswap (byteswap.h): Likewise.
61831         * modules/configmake (configmake.h): Likewise.
61832         * modules/fcntl (fcntl.h): Likewise.
61833         * modules/fnmatch (fnmatch.h): Likewise.
61834         * modules/getopt (getopt.h): Likewise.
61835         * modules/glob (glob.h): Likewise.
61836         * modules/inttypes (inttypes.h): Likewise.
61837         * modules/netinet_in (netinet/in.h): Likewise.
61838         * modules/poll (poll.h): Likewise.
61839         * modules/stdbool (stdbool.h): Likewise.
61840         * modules/stdint (stdint.h): Likewise.
61841         * modules/sys_select (sys/select.h): Likewise.
61842         * modules/sys_socket (sys/socket.h): Likewise.
61843         * modules/sys_stat (sys/stat.h): Likewise.
61844         * modules/sysexits (sysexits.h): Likewise.
61845         * modules/unistd (unistd.h): Likewise.
61846         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61847         Add a "DO NOT EDIT" comment to the generated file.
61848         (func_import): Likewise for gnulib-comp.m4.
61849
61850 2006-10-07  Bruno Haible  <bruno@clisp.org>
61851
61852         * lib/gl_sublist.h: New file.
61853         * lib/gl_sublist.c: New file.
61854
61855 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61856
61857         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61858         name (relative to the original working directory) and the file
61859         name component (relative to the temporary working directory).  All
61860         callers changed.
61861         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61862         * lib/mkdir-p.c (make_dir_parents): Likewise.
61863         * lib/mkdir-p.h (make_dir_parents): Likewise.
61864
61865 2006-10-06  Eric Blake  <ebb9@byu.net>
61866
61867         Define several macros for use by the clean-temp module.
61868         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61869         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61870         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61871
61872         * lib/clean-temp.h (close_stream_temp): New declaration.
61873         * lib/clean-temp.c (includes): Pull in headers according to what
61874         other modules are in use.
61875         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61876
61877 2006-10-06  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61880         instead of fopen, fwriteerror.
61881
61882 2006-10-06  Bruno Haible  <bruno@clisp.org>
61883
61884         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61885         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61886         int.
61887         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61888         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61889         Return an error indicator.
61890         Suggested by Eric Blake.
61891
61892 2006-10-06  Bruno Haible  <bruno@clisp.org>
61893
61894         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61895         Reported by Eric Blake.
61896
61897 2006-10-06  Bruno Haible  <bruno@clisp.org>
61898
61899         * modules/closeout (Description): Mention stderr too.
61900
61901 2006-10-06  Bruno Haible  <bruno@clisp.org>
61902         and Paul Eggert  <eggert@cs.ucla.edu>
61903
61904         * lib/closeout.c (close_stdout): Also close stderr.
61905         * lib/closeout.h: Update comment.
61906
61907 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61908
61909         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61910         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61911         * lib/dirchownmod.c: Include lchown.h.
61912         * lib/lchown.c: Don't include files that lchown.h now includes.
61913         Don't declare chown, since lchown.h now does that.
61914         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61915         (lchown): Define to rpl_chown if lchown is declared but
61916         does not exist.  Declare using a prototype if lchown is not
61917         declared.  Add a copyright notice.
61918         * lib/mkstemp.h: Include <unistd.h>.
61919         * lib/openat.c: Include lchown.h.
61920
61921         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61922         we now test for that separately.
61923         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61924         rather than O_NOFOLLOW, when testing whether it's possible to
61925         avoid a race condition reliably.
61926         * lib/savewd.c (savewd_chdir): Likewise.
61927
61928         Remove macros that are no longer needed now that stdint.h is
61929         reliable.
61930         * lib/fsusage.c (UINTMAX_MAX): Remove.
61931         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61932         * lib/utimecmp.c (SIZE_MAX): Remove.
61933
61934         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61935
61936         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61937         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61938         O_NOATIME works.
61939
61940 2006-10-05  Bruno Haible  <bruno@clisp.org>
61941
61942         * lib/gl_list.h (gl_sortedlist_search_from_to,
61943         gl_sortedlist_indexof_from_to): New declarations.
61944         (gl_list_implementation): New fields sortedlist_search_from_to,
61945         sortedlist_indexof_from_to.
61946         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61947         inline functions.
61948         * lib/gl_list.c (gl_sortedlist_search_from_to,
61949         gl_sortedlist_indexof_from_to): New functions.
61950         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61951         function.
61952         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61953         (gl_array_sortedlist_search_from_to): New function.
61954         (gl_array_list_implementation): Update.
61955         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61956         function.
61957         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61958         (gl_carray_sortedlist_search_from_to): New function.
61959         (gl_carray_list_implementation): Update.
61960         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61961         gl_linked_sortedlist_indexof_from_to): New functions.
61962         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61963         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61964         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61965         gl_tree_sortedlist_indexof_from_to): New functions.
61966         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61967         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61968         Update.
61969         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61970         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61971         Update.
61972
61973 2006-10-05  Bruno Haible  <bruno@clisp.org>
61974
61975         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61976         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61977         (struct gl_list_implementation): Add fields search_from_to,
61978         indexof_from_to. Remove fields search, indexof.
61979         (gl_list_search): Use the search_from_to method.
61980         (gl_list_search_from, gl_list_search_from_to): New functions.
61981         (gl_list_indexof): Use the indexof_from_to method.
61982         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61983         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61984         (gl_list_search_from, gl_list_search_from_to): New functions.
61985         (gl_list_indexof): Use the indexof_from_to method.
61986         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61987         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61988         gl_array_indexof. Add start_index, end_index arguments.
61989         (gl_array_search_from_to): Renamed from gl_array_search. Add
61990         start_index, end_index arguments.
61991         (gl_array_remove, gl_array_list_implementation): Update.
61992         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61993         gl_carray_indexof. Add start_index, end_index arguments.
61994         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61995         start_index, end_index arguments.
61996         (gl_carray_remove, gl_carray_list_implementation): Update.
61997         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61998         gl_linked_search. Add start_index, end_index arguments.
61999         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62000         start_index, end_index arguments.
62001         (gl_linked_remove): Update.
62002         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62003         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62004         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62005         field to 'size_t'.
62006         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62007         gl_tree_search. Add start_index, end_index arguments.
62008         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62009         start_index, end_index arguments.
62010         (gl_tree_remove): Update.
62011         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62012         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62013         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62014         function.
62015         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62016         gl_tree_search. Add start_index, end_index arguments.
62017         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62018         start_index, end_index arguments.
62019         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62020         Update.
62021         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62022
62023 2006-10-05  Bruno Haible  <bruno@clisp.org>
62024
62025         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62026
62027         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62028         fwriteerror_temp): New declarations.
62029         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62030         (descriptors): New variable.
62031         (cleanup): First, close the descriptors.
62032         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62033         fclose_temp, fwriteerror_temp): New functions.
62034
62035 2006-10-04  Jim Meyering  <jim@meyering.net>
62036
62037         * lib/fts.c (fts_open): Tiny comment change.
62038
62039 2006-10-04  Bruno Haible  <bruno@clisp.org>
62040
62041         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62042         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62043         gl_LOCK_BODY.
62044         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62045         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62046         gl_LOCK_EARLY_BODY.
62047         (gl_LOCK): Require gl_LOCK_BODY.
62048
62049 2006-10-04  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62052         (gl_oset_search_atleast): New declaration.
62053         (struct gl_oset_implementation): Add field 'search_atleast'.
62054         (gl_oset_search_atleast): New inline function.
62055         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62056         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62057         (gl_array_oset_implementation): Update.
62058         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62059         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62060         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62061
62062 2006-10-04  Bruno Haible  <bruno@clisp.org>
62063
62064         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62065
62066 2006-10-03  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62069         from gl_avltreehash_list_implementation.
62070
62071 2006-10-03  Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/gl_oset.c (gl_oset_add): Fix return type.
62074
62075 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62076
62077         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62078
62079 2006-10-02  Eric Blake  <ebb9@byu.net>
62080
62081         * modules/strnlen (Depends-on): Add extensions.
62082
62083 2006-10-02  Eric Blake  <ebb9@byu.net>
62084
62085         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62086         definition in 2.60+.
62087
62088 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62089
62090         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62091         checks.
62092
62093 2006-10-02  Bruno Haible  <bruno@clisp.org>
62094
62095         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62096         to the AUTOMAKE_OPTIONS.
62097         Reported by Jim Meyering.
62098
62099 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         Work around bug in Solaris 10 /proc file system:
62102         /proc/self/fd/NNN/.. isn't the parent directory of
62103         the directory whose file descriptor is NNN.  This needs to
62104         be worked around at run time, not compile time, since a
62105         program might be built on Solaris 8, where things work, and
62106         run on Solaris 10.
62107         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62108         to use the following interface instead:
62109         (OPENAT_BUFFER_SIZE): New macro.
62110         (openat_proc_name): New function.
62111         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62112         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62113         Likewise.
62114         * lib/openat-proc.c: New file.
62115         * modules/openat (Files): Add lib/openat-proc.c.
62116         (Depends-on): Add same-inode, stdbool.
62117         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62118
62119 2006-09-29  Bruno Haible  <bruno@clisp.org>
62120
62121         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62122         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62123         argument. Set stdout_closed before testing for ferror, not after.
62124         (fwriteerror, fwriteerror_no_ebadf): New functions.
62125
62126 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62127
62128         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62129
62130 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62131
62132         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62133         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62134
62135 2006-09-28  Jim Meyering  <jim@meyering.net>
62136
62137         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62138         Include <unistd.h>.
62139
62140 2006-09-28  Bruno Haible  <bruno@clisp.org>
62141
62142         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62143         * modules/linkedhash-list (Depends-on): Likewise.
62144         * modules/rbtreehash-list (Depends-on): Likewise.
62145
62146 2006-09-28  Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/strndup.h: Simplify the redefinition of strndup.
62149         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62151
62152 2006-09-28  Bruno Haible  <bruno@clisp.org>
62153
62154         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62155         * lib/gl_linkedhash_list.c: Likewise.
62156         * lib/gl_rbtreehash_list.c: Likewise.
62157
62158 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62161         getaddrinfo.
62162
62163         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62164         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62165         it causes <stdio_ext.h> to cause a compile-time error.
62166         Problem reported by Nelson H. F. Beebe.
62167         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62168         of HAVE_DECL___PENDING.
62169
62170         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62171         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62172         declaration.
62173
62174 2006-09-27  Jim Meyering  <jim@meyering.net>
62175
62176         This file could end up with a definition for a function
62177         named __strndup, rather than rpl_strndup on a system with
62178         incomplete weak_alias support.
62179         * lib/strndup.c (strndup): Rename from __strndup.
62180         Remove #defines that used to map __strndup to strndup.
62181         Don't use K&R prototypes.
62182         Remove LIBC-related code, since this file is not sync'd with glibc.
62183         * lib/strndup.h: Revamp, accordingly.
62184         * m4/strndup.m4: Modernize.
62185
62186 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62187
62188         * modules/savewd (Depends-on): Add 'raise'.
62189         * lib/savewd.c: Include <signal.h>, for 'raise'.
62190
62191 2006-09-26  Jim Meyering  <jim@meyering.net>
62192
62193         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62194         when we detect Darwin 8.7.0's acl_get_file bug.
62195         Rearrange to perform the new (below) run-test while $LIBS
62196         contains any acl-related library.  Set USE_ACL at the end.
62197         (gl_ACL_GET_FILE): New function.
62198
62199 2006-09-26  Eric Blake  <ebb9@byu.net>
62200
62201         * lib/verror.c: Include <config.h> unconditionally.
62202
62203 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62204
62205         * modules/clock-time (Maintainer): Add self.
62206         * modules/getlogin_r (Depends-on): Add extensions.
62207
62208 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62209
62210         * modules/clock-time: New module.
62211         * modules/nanosleep (Depends-on): Add clock-time.
62212         * modules/gethrxtime (Depends-on): Likewise.
62213         * modules/gettime (Depends-on): Likewise.
62214         * modules/settime (Depends-on): Likewise.
62215
62216         * modules/fts-lgpl: Depend on openat.
62217         * modules/mkancesdirs: Depend on savewd.
62218         * modules/mkdir-p: Likewise.
62219
62220 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62221
62222         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62223
62224         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62225         `gl_have_arbitrary_file_name_length_limit' to
62226         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62227         actually works between configure runs.
62228
62229 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62230             Bruno Haible  <bruno@clisp.org>
62231
62232         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62233
62234 2006-09-25  Jim Meyering  <jim@meyering.net>
62235
62236         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62237         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62238
62239 2006-09-25  Eric Blake  <ebb9@byu.net>
62240
62241         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62242         exec's in 2006-09-18 patch when shuffling fds.
62243
62244 2006-09-25  Bruno Haible  <bruno@clisp.org>
62245
62246         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62247         Reported by Jim Meyering.
62248
62249 2006-09-24  Jim Meyering  <jim@meyering.net>
62250
62251         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62252         compare a pointer against a literal "0".  That caused failures with
62253         at least HP-UX's hpcc.
62254
62255 2006-09-22  Simon Josefsson  <jas@extundo.com>
62256
62257         * modules/gc-sha1:
62258         * modules/gc-md4:
62259         * modules/gc-hmac-sha1:
62260         * modules/gc-hmac-md5:
62261         * modules/gc-des:
62262         * modules/gc-arcfour: Distribute more files.
62263
62264 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62265
62266         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62267         (gl_linked_iterator_from_to): Initialize struct completely.
62268         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62269         (gl_tree_iterator_from_to): Likewise
62270         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62271         * lib/gl_array_list.c [lint] (gl_array_iterator)
62272         (gl_array_iterator_from_to): Likewise.
62273         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62274         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62275         (gl_carray_iterator_from_to): Likewise.
62276
62277         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62278         * lib/md4.c (md4_process_block): Remove unused variable.
62279         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62280         parentheses for clarity.
62281
62282 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62283
62284         * modules/bison-i18n (Depends-on): Add gettext.
62285
62286 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62287
62288         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62289         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62290         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62291         also add missing comma that caused broken test.
62292         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62293         stdlib.h, for `abort'.
62294         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62295         variables.
62296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62297         include unistd.h if present, for `rmdir'.
62298         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62299         variables.
62300         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62301         in the process include standard headers for prototypes.
62302         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62303         gets declared on GNU/Linux.
62304         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62305         unistd.h, for `rmdir'.
62306         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62307
62308         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62309         always true.
62310         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62311
62312         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62313
62314 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62315
62316         * gnulib-tool (func_version): Create output all at once.  This
62317         may help avoid triggering unnecessary SIGPIPEs, and at any
62318         rate it doesn't hurt.
62319
62320 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62321             Bruno Haible  <bruno@clisp.org>
62322
62323         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62324         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62325         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62326
62327         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62328         (gl_FUNC_VASPRINTF): Invoke it.
62329
62330 2006-09-22  Bruno Haible  <bruno@clisp.org>
62331
62332         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62333         getloadavg.c as first argument.
62334
62335 2006-09-22  Bruno Haible  <bruno@clisp.org>
62336
62337         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62338         at the beginning of the gl_INIT macro.
62339         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62340         gl_GETLOADAVG.
62341
62342 2006-09-22  Bruno Haible  <bruno@clisp.org>
62343
62344         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62345         module.
62346         Suggested by Ralf Wildenhues.
62347
62348 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62349
62350         Import this patch from libc:
62351
62352         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62353
62354         * lib/regex_internal.c (re_string_reconstruct): Handle
62355         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62356         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62357         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62358         re_string_context_at.
62359
62360         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62361         now requires it.
62362         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62363         gl_REGEX now does it for us.
62364         (gl_REGEX): Add test taken from
62365         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62366
62367         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62368         Check that large offsets work.  Modernize Autoconf usages.
62369         Prefer "yes" to mean a good thing rather than a bad.
62370         Don't put "#define mkstemp" in config.h, as this might interfere
62371         with standard system headers that "#define mkstemp mkstemp64".
62372
62373         * modules/mkstemp (Depends-on): Add extensions, so that
62374         mkstemp is visible on some platforms.
62375         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62376         (Include): Change to "mkstemp.h" from <stdlib.h>.
62377         (Files): Add mkstemp.h.
62378
62379         * lib/mkstemp.h: New file, since some standard headers
62380         #define mkstemp.
62381         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62382         Include "mkstemp.h".
62383         Make the _LIBC code resemble glibc original more,
62384         e.g., use K&R style.
62385         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62386         (mkstemp): Remove, since mkstemp.h does this for us.
62387         * lib/stdlib--.h: Include mkstemp.h.
62388
62389         Import this patch from libc:
62390
62391         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62392
62393         * lib/tempname.c (__gen_tempname): Change attempts_min
62394         into a macro.  Use preprocessor to decide how to initialize
62395         attempts [Coverity CID 67].
62396
62397 2006-09-20  Bruno Haible  <bruno@clisp.org>
62398
62399         * lib/mkdtemp.c: Import from libc.
62400         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62401                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62402                 attempts_min into a macro.  Use preprocessor to decide how to
62403                 initialize attempts [Coverity CID 67].
62404         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62405                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62406                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62407
62408 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62409
62410         * gnulib-tool (func_exit): New function, to allow to pass the
62411         exit status portably through the trap.  Use everywhere.
62412         (--help, --version): Signal a write error.
62413         (trap): catch SIGPIPE, for write errors.
62414         Exit at the end of the trap, with the correct exit status.
62415
62416 2006-09-19  Karl Berry  <karl@gnu.org>
62417
62418         * doc/gnulib.texi: note about the license texinfo files.
62419
62420 2006-09-19  Eric Blake  <ebb9@byu.net>
62421
62422         * gnulib-tool: Avoid space-tab.
62423
62424 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62425
62426         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62427         that prevented coreutils 6.1 from building.  Problem reported
62428         by Petter Reinholdtsen.
62429
62430 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * gnulib-tool (avoidlist): Fix typo that broke options like
62433         --avoid=lock that are used by coreutils bootstrap.
62434
62435 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62436
62437         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62438         more systematically.
62439
62440 2006-09-18  Jim Meyering  <jim@meyering.net>
62441
62442         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62443
62444 2006-09-18  Bruno Haible  <bruno@clisp.org>
62445
62446         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62447
62448 2006-09-18  Bruno Haible  <bruno@clisp.org>
62449
62450         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62451         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62452         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62453         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62454         * m4/gettext.m4: Require autoconf >= 2.52.
62455         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62456         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62457         of gl_cv_header_inttypes_h.
62458
62459 2006-09-18  Bruno Haible  <bruno@clisp.org>
62460
62461         * lib/javaversion.c: Include configmake.h.
62462
62463 2006-09-18  Bruno Haible  <bruno@clisp.org>
62464
62465         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62466         avoid that the while loops be executed in a subshell.
62467
62468 2006-09-18  Bruno Haible  <bruno@clisp.org>
62469
62470         * MODULES.html.sh (func_module): Break long lines.
62471         Suggested by Bruce Korb <bkorb@gnu.org>.
62472
62473 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62474
62475         Speed up by a factor of 1.12.
62476         * gnulib-tool (nl): New variable.
62477         (func_import): Rewrite include directive extraction to only read each
62478         directive once.
62479
62480 2006-09-17  Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/javaversion (Makefile.am): Remove DEFS setting.
62483         (Depends-on): Add configmake, for PKGDATADIR definition.
62484
62485 2006-09-17  Bruno Haible  <bruno@clisp.org>
62486
62487         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62488
62489 2006-09-17  Bruno Haible  <bruno@clisp.org>
62490
62491         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62492         (func_modules_transitive_closure, func_modules_add_dummy,
62493         func_modules_to_filelist, func_import, func_create_testdir,
62494         func_create_megatestdir, ...): Use it wherever possible.
62495         Suggested by Ralf Wildenhues.
62496
62497 2006-09-16  Karl Berry  <karl@gnu.org>
62498
62499         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62500         to avoid sectioning errors.
62501         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62502         [ifinfo]: blank line after @center-ed titles.
62503         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62504         Spell FSF address consistently with others.
62505         (These changes approved by rms.)
62506
62507 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62508
62509         Speed up by a factor of 1.61.
62510         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62511         already checked module names again.
62512
62513 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62514
62515         Speed up by a factor of 1.13.
62516         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62517         for new_files, and the input to func_add_or_update.
62518
62519 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62520
62521         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62522         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62523
62524 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62525
62526         * modules/mkancesdirs (Depends-on): Add fcntl.
62527         * modules/savewd: New file.
62528         * MODULES.html.sh (File system functions): Add savewd.
62529
62530         * modules/configmake (Makefile.am): Add support for the
62531         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62532
62533 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62534
62535         * m4/savewd.m4: New file.
62536
62537 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62538
62539         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62540         (dirchownmod): New arg FD.  All callers changed.
62541         Use FD rather than opening the directory ourself, as opening is
62542         now the caller's responsibility.
62543         * lib/dirchownmod.h: Likewise.
62544         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62545         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62546         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62547         (test_dir): Remove.
62548         (mkancesdirs): Return length of prefix of FILE that has already
62549         been made, or -2 if there is a child doing the work.  Redo
62550         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62551         ".", and treat ".." specially since it might stray back into
62552         already-created areas.  Use a subprocess if necessary.  New arg
62553         WD; all users changed.  MAKE_DIR function should now return 1
62554         if it creates a directory that is not readable.  Return -2 if
62555         a child process is spun off.
62556         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62557         Adjust signature to match code.
62558         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62559         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62560         all users changed.
62561         * lib/savewd.c, lib/savewd.h: New files.
62562
62563 2006-09-15  Jim Meyering  <jim@meyering.net>
62564
62565         * modules/rename-dest-slash: New module.
62566         * MODULES.html.sh (posix_compat): Add it here.
62567
62568         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62569
62570 2006-09-15  Jim Meyering  <jim@meyering.net>
62571
62572         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62573         file.
62574
62575         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62576
62577 2006-09-15  Jim Meyering  <jim@meyering.net>
62578
62579         * lib/rename-dest-slash.c (has_trailing_slash): Use
62580         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62581         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62582         test before testing whether SRC is a directory.
62583         Suggestions from Bruno Haible.
62584
62585         Avoid a warning about an unused variable.
62586         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62587         into the #ifdef block where it's used.
62588
62589         * lib/rename-dest-slash.c: New file.
62590
62591 2006-09-14  Bruno Haible  <bruno@clisp.org>
62592
62593         * lib/allocsa.c: Include <config.h> unconditionally.
62594         * lib/asnprintf.c: Likewise.
62595         * lib/asprintf.c: Likewise.
62596         * lib/c-strcasecmp.c: Likewise.
62597         * lib/c-strcasestr.c: Likewise.
62598         * lib/c-strncasecmp.c: Likewise.
62599         * lib/c-strstr.c: Likewise.
62600         * lib/classpath.c: Likewise.
62601         * lib/clean-temp.c: Likewise.
62602         * lib/concatpath.c: Likewise.
62603         * lib/copy-file.c: Likewise.
62604         * lib/csharpcomp.c: Likewise.
62605         * lib/csharpexec.c: Likewise.
62606         * lib/execute.c: Likewise.
62607         * lib/fatal-signal.c: Likewise.
62608         * lib/findprog.c: Likewise.
62609         * lib/fwriteerror.c: Likewise.
62610         * lib/gl_array_list.c: Likewise.
62611         * lib/gl_array_oset.c: Likewise.
62612         * lib/gl_avltree_list.c: Likewise.
62613         * lib/gl_avltree_oset.c: Likewise.
62614         * lib/gl_avltreehash_list.c: Likewise.
62615         * lib/gl_carray_list.c: Likewise.
62616         * lib/gl_linked_list.c: Likewise.
62617         * lib/gl_linkedhash_list.c: Likewise.
62618         * lib/gl_list.c: Likewise.
62619         * lib/gl_oset.c: Likewise.
62620         * lib/gl_rbtree_list.c: Likewise.
62621         * lib/gl_rbtree_oset.c: Likewise.
62622         * lib/gl_rbtreehash_list.c: Likewise.
62623         * lib/imaxabs.c: Likewise.
62624         * lib/imaxdiv.c: Likewise.
62625         * lib/javacomp.c: Likewise.
62626         * lib/javaexec.c: Likewise.
62627         * lib/javaversion.c: Likewise.
62628         * lib/linebreak.c: Likewise.
62629         * lib/localcharset.c: Likewise.
62630         * lib/lock.c: Likewise.
62631         * lib/mbchar.c: Likewise.
62632         * lib/mbswidth.c: Likewise.
62633         * lib/mkdtemp.c: Likewise.
62634         * lib/pipe.c: Likewise.
62635         * lib/printf-args.c: Likewise.
62636         * lib/printf-parse.c: Likewise.
62637         * lib/progname.c: Likewise.
62638         * lib/progreloc.c: Likewise.
62639         * lib/readlink.c: Likewise.
62640         * lib/sh-quote.c: Likewise.
62641         * lib/stpcpy.c: Likewise.
62642         * lib/stpncpy.c: Likewise.
62643         * lib/strcasecmp.c: Likewise.
62644         * lib/strcasestr.c: Likewise.
62645         * lib/strcspn.c: Likewise.
62646         * lib/striconv.c: Likewise.
62647         * lib/strncasecmp.c: Likewise.
62648         * lib/strnlen1.c: Likewise.
62649         * lib/strstr.c: Likewise.
62650         * lib/strtok_r.c: Likewise.
62651         * lib/tls.c: Likewise.
62652         * lib/tmpdir.c: Likewise.
62653         * lib/unicodeio.c: Likewise.
62654         * lib/unsetenv.c: Likewise.
62655         * lib/vasnprintf.c: Likewise.
62656         * lib/vasprintf.c: Likewise.
62657         * lib/wait-process.c: Likewise.
62658         * lib/xallocsa.c: Likewise.
62659         * lib/xsetenv.c: Likewise.
62660         * lib/xstriconv.c: Likewise.
62661
62662 2006-09-13  Simon Josefsson  <jas@extundo.com>
62663
62664         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62665         that internally, suggested by Ralf Wildenhues
62666         <Ralf.Wildenhues@gmx.de>.
62667
62668 2006-09-13  Simon Josefsson  <jas@extundo.com>
62669
62670         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62671         @LIBOBJS@.
62672         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62673
62674 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62675
62676         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62677         longer worry about uses that don't define HAVE_CONFIG_H.
62678         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62679         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62680         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62681         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62682         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62683         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62684         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62685         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62686         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62687         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62688         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62689         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62690         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62691         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62692         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62693         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62694         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62695         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62696         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62697         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62698         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62699         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62700         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62701         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62702         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62703         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62704         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62705         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62706         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62707         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62708         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62709         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62710         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62711         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62712         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62713         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62714         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62715         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62716         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62717         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62718         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62719         Likewise.
62720
62721 2006-09-13  Eric Blake  <ebb9@byu.net>
62722
62723         * lib/getopt.c: Fix typo in last commit.
62724
62725 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62726
62727         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62728         dgettext.
62729
62730 2006-09-12  Jim Meyering  <jim@meyering.net>
62731
62732         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62733         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62734         Reported by Nelson H. F. Beebe.
62735
62736 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62737
62738         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62739         program_invocation_name and program_invocation_short_name are
62740         initialized.
62741         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62742         and program_invocation_short_name to argp.h, so they are visible
62743         to user programs.
62744         * lib/argp.h: Likewise
62745
62746 2006-09-10  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62749         m4/inttypes_h.m4, m4/uintmax_t.m4.
62750
62751 2006-09-10  Bruno Haible  <bruno@clisp.org>
62752
62753         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62754         gl_AC_TYPE_UINTMAX_T.
62755
62756 2006-09-10  Bruno Haible  <bruno@clisp.org>
62757
62758         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62759
62760 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62761
62762         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62763         convention.  Text proposed by Bruno Haible.
62764         (struct argp_option): Document the use of N_() wrappers.
62765
62766         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62767         '\v', and translate the two parts separately, instead of feeding
62768         the whole string to gettext.  This allows to exclude
62769         '\v' from the strings visible to the translator by writing doc
62770         strings as N_("..") "\v" N_("..").
62771
62772 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62773
62774         * config/srclist.txt: Undo latest change; the bug was fixed.
62775
62776 2006-09-09  Bruno Haible  <bruno@clisp.org>
62777
62778         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62779         assignments if building a library without libtool.
62780         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62781         in func_emit_lib_Makefile_am.
62782         (func_import): When building a static library libfoo.a, arrange to
62783         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62784         (func_create_testdir): Likewise.
62785         * modules/gc (configure.ac, Makefile.am): If building statically,
62786         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62787         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62788         * modules/striconv (configure.ac, Makefile.am): Likewise.
62789         Based on a suggestion by Ralf Wildenhues.
62790
62791 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62792
62793         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62794         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62795         Also:
62796
62797         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62798         Add year_2050_test to catch glibc bug 2821
62799         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62800
62801         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62802         Prefer #ifdef to #if.
62803
62804         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62805         Return from 'main' instead of calling 'exit'.
62806
62807 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62810         returned the maximum time_t value rather than (time_t) -1.
62811         Problem originally reported by William Bardwell
62812         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62813
62814         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62815         Moved to here ...
62816         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62817         ... from here.
62818
62819 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62822         2821 is fixed.
62823
62824 2006-09-08  Jim Meyering  <jim@meyering.net>
62825
62826         Don't make generated files read-only.  That would bother too many
62827         people.  However, do retain the ability to work when targets are
62828         read-only: remove the destination and temporary files before writing
62829         them (when generated via sed or echo), or by using the -f option for
62830         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62831         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62832         * modules/byteswap, modules/configmake, modules/fcntl:
62833         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62834         * modules/localcharset, modules/netinet_in, modules/poll:
62835         * modules/stdbool, modules/stdint, modules/sys_select:
62836         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62837
62838 2006-09-08  Jim Meyering  <jim@meyering.net>
62839
62840         Avoid new build failure on FreeBSD 6.0.
62841         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62842         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62843         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62844
62845 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62846
62847         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62848
62849 2006-09-07  Jim Meyering  <jim@meyering.net>
62850
62851         Fix global typo in last change: use chmod u-w, not chmod u-x.
62852         Spotted by Paul Eggert and Bruce Korb.
62853         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62854         * modules/byteswap, modules/configmake, modules/fcntl:
62855         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62856         * modules/localcharset, modules/netinet_in, modules/poll:
62857         * modules/stdbool, modules/stdint, modules/sys_select:
62858         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62859
62860 2006-09-06  Jim Meyering  <jim@meyering.net>
62861
62862         Make generated files be read-only.
62863         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62864         Ensure that each generated file is now read-only.
62865         * modules/argz: Likewise.
62866         * modules/arpa_inet: Likewise.
62867         * modules/byteswap: Likewise.
62868         * modules/configmake: Likewise.
62869         * modules/fcntl: Likewise.
62870         * modules/fnmatch: Likewise.
62871         * modules/getopt: Likewise.
62872         * modules/glob: Likewise.
62873         * modules/inttypes: Likewise.
62874         * modules/netinet_in: Likewise.
62875         * modules/poll: Likewise.
62876         * modules/stdbool: Likewise.
62877         * modules/stdint: Likewise.
62878         * modules/sys_select: Likewise.
62879         * modules/sys_socket: Likewise.
62880         * modules/sys_stat: Likewise.
62881         * modules/sysexits: Likewise.
62882         * modules/localcharset: Same as above, but continue using temporary
62883         file named "t-$@" (why different?) rather than the "$@-t" used
62884         everywhere else.
62885
62886         * modules/sysexits (Makefile.am): Replace literal occurrences
62887         of "sysexit.h" more readable, and more consistent, "$@".
62888
62889 2006-09-06  Bruno Haible  <bruno@clisp.org>
62890
62891         * modules/striconv: New file.
62892         * modules/xstriconv: New file.
62893         * MODULES.html.sh (Internationalization functions): Add striconv,
62894         xstriconv.
62895
62896 2006-09-06  Bruno Haible  <bruno@clisp.org>
62897
62898         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62899         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62900         not using libtool correctly.
62901
62902 2006-09-06  Bruno Haible  <bruno@clisp.org>
62903
62904         * lib/striconv.h: New file.
62905         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62906         iconvstring.c.
62907         * lib/xstriconv.h: New file.
62908         * lib/xstriconv.c: New file.
62909
62910 2006-09-06  Bruno Haible  <bruno@clisp.org>
62911
62912         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62913         lib_..._LDFLAGS.
62914
62915 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62916
62917         * lib/argz_.h: Sync from Libtool.
62918
62919         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62920                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62921
62922         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62923
62924 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62925
62926         * modules/trim: New file.
62927
62928 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62929
62930         * lib/trim.h: New file.
62931         * lib/trim.c: New file.
62932
62933 2006-09-05  Bruno Haible  <bruno@clisp.org>
62934
62935         * MODULES.html.sh (String handling): Add trim.
62936
62937 2006-09-04  Karl Berry  <karl@gnu.org>
62938
62939         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62940         until next release.
62941
62942 2006-09-03  Bruno Haible  <bruno@clisp.org>
62943
62944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62945         correctly.
62946
62947 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62950         not gl_GETLOADAVG.  Omit unneeded semicolons.
62951         Problems reported by Ralf Wildenhues in
62952         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62953         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62954         at the end, which is the usual gnulib style.
62955
62956         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62957         of doing all the work ourselves.
62958         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62959         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62960
62961 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62962
62963         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62964         Problem reported by Ralf Wildenhues in
62965         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62966
62967         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62968         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62969
62970 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62971
62972         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62973         yesterday's patch by changing test -n to test -z.
62974
62975 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62976
62977         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62978         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62979         the former is now obsolescent.
62980
62981         * modules/chdir-long (Depends-on): Add fcntl.
62982
62983 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62986         obsolescent, and programs should use gnulib instead.
62987         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62988         but with prefixes changed.
62989
62990 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62991
62992         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62993         or stdbool.h, because they might not exist while configuring.
62994
62995         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62996         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62997         does that for us.
62998         (O_DIRECTORY): Remove.
62999
63000 2006-08-31  Eric Blake  <ebb9@byu.net>
63001
63002         * gnulib-tool: Don't let emacs change spaces to TAB.
63003
63004 2006-08-31  Bruno Haible  <bruno@clisp.org>
63005
63006         * gnulib-tool: When calling func_import more than once, do it in a
63007         subshell.
63008         Reported by Eric Blake <ebb9@byu.net>.
63009
63010 2006-08-31  Bruno Haible  <bruno@clisp.org>
63011
63012         * gnulib-tool (nl): Remove variable.
63013         (sed_transform_lib_file): Use more robust test for config-h module.
63014         (func_import): Fix typo in 2006-08-25 patch.
63015
63016 2006-08-31  Bruno Haible  <bruno@clisp.org>
63017
63018         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63019         specified, augment Makefile.am variables instead of assigning them.
63020
63021 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63022
63023         Work around a bug in both the Linux and SunOS 64-bit kernels:
63024         nanosleep mishandles sleeps for longer than 2**31 seconds.
63025         Problem reported by Frank v Waveren in
63026         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63028         Check for nanosleep bug.
63029         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63030
63031 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         Work around a bug in both the Linux and SunOS 64-bit kernels:
63034         nanosleep mishandles sleeps for longer than 2**31 seconds.
63035         Problem reported by Frank v Waveren in
63036         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63037         * lib/nanosleep.c (BILLION): New constant.
63038         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63039         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63040         implementation.
63041
63042 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63043
63044         * modules/nanosleep (Depends-on): Add gettime.
63045
63046 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63047         and Simon Josefsson  <jas@extundo.com>
63048         and Oskar Liljeblad  <oskar@osk.mine.nu>
63049
63050         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63051         * gnulib-tool (func_import): New license type 'unmodifiable license
63052         text'.
63053         * modules/fdl: Use it.  Longer description.
63054         * module/gpl, module/lgpl: New files.
63055
63056 2006-08-30  Jim Meyering  <jim@meyering.net>
63057
63058         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63059         shadowing the parameter.
63060
63061 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63062
63063         Sync from Libtool:
63064
63065         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63066
63067         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63068         sharing with gnulib.  Report by Eric Blake.
63069
63070 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63071
63072         * modules/isapipe: New file.
63073         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63074
63075 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63076
63077         * modules/configmake (Makefile.am): Add a comment, and omit
63078         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63079         by Bruno Haible.
63080
63081 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63082
63083         * m4/isapipe.m4: New file.
63084
63085 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         * lib/isapipe.c, lib/isapipe.h: New files.
63088
63089 2006-08-29  Jim Meyering  <jim@meyering.net>
63090
63091         * modules/configmake (Makefile.am): Make configmake.h depend on
63092         Makefile.  Otherwise, a stale configmake.h could hang around.
63093
63094 2006-08-29  Eric Blake  <ebb9@byu.net>
63095
63096         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63097         resolution of upstream bug 3044.
63098
63099 2006-08-29  Bruno Haible  <bruno@clisp.org>
63100
63101         * modules/localcharset (Depends-on): Add configmake.
63102         (Makefile.am): Remove setting of LIBDIR through DEFS.
63103
63104 2006-08-29  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63107         defined.
63108
63109 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63110
63111         * modules/fcntl: New file.
63112         * modules/chdir-safer (Depends-on): Add fcntl.
63113         * modules/fts: Likewise.
63114         * modules/mkdir-p: Likewise.
63115
63116         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63117         This undoes the most recent change, since we're now addressing the
63118         problem in a different way.
63119
63120         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63121         into output, since the output might be called Makefile.am even
63122         if $makefile_name is something different.
63123         (func_import): Use $makefile_am rather than
63124         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63125         empty.
63126
63127         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63128
63129 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63132         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63133         recent change to stdint.m4, since we're now addressing the problem in a
63134         different way.
63135
63136 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         * m4/fcntl_h.m4: New file.
63139
63140 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         * lib/fcntl_.h: New file.
63143         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63144         the fcntl module.
63145         * lib/dirchownmod.c: Likewise.
63146         * lib/fts.c: Likewise.
63147
63148         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63149         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63150         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63151         just before including <inttypes.h>, to avoid circular inclusion.
63152
63153 2006-08-28  Jim Meyering  <jim@meyering.net>
63154
63155         * doc/visibility.texi: Actually read and correct the grammar of the
63156         sentence affected by yesterday's change.
63157
63158 2006-08-28  Eric Blake  <ebb9@byu.net>
63159
63160         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63161         needs wrapper.
63162
63163 2006-08-28  Eric Blake  <ebb9@byu.net>
63164
63165         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63166
63167 2006-08-28  Eric Blake  <ebb9@byu.net>
63168
63169         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63170
63171 2006-08-28  Bruno Haible  <bruno@clisp.org>
63172
63173         * modules/c-strstr: New file, from GNU gettext.
63174         * MODULES.html.sh (String handling): Add c-strstr.
63175
63176 2006-08-28  Bruno Haible  <bruno@clisp.org>
63177
63178         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63179         macros.
63180         Reported by Eric Blake.
63181
63182 2006-08-28  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63185         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63186         * lib/vasprintf.c: Include errno.h, limits.h.
63187         (EOVERFLOW): New fallback definition.
63188         (vasprintf): Test here whether the string length is > INT_MAX.
63189         * lib/vsnprintf.c: Include errno.h, limits.h.
63190         (EOVERFLOW): New fallback definition.
63191         (vsnprintf): Fix bug when generated string was too long for the buffer.
63192         Test here whether the string length is > INT_MAX.
63193
63194 2006-08-28  Bruno Haible  <bruno@clisp.org>
63195
63196         * lib/inttypes_.h (SCNX*): Remove definitions.
63197         Reported by Eric Blake.
63198
63199 2006-08-28  Bruno Haible  <bruno@clisp.org>
63200
63201         * lib/c-strstr.h: New file, from GNU gettext.
63202         * lib/c-strstr.c: New file, from GNU gettext.
63203
63204 2006-08-28  Bruno Haible  <bruno@clisp.org>
63205
63206         * gnulib-tool: Reorder some statements.
63207
63208 2006-08-28  Bruno Haible  <bruno@clisp.org>
63209
63210         * gnulib-tool: New option --makefile-name.
63211         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63212         $makefile_name.
63213         (func_import): Write $makefile_name to the cache file, and read it from
63214         there unless explicitly specified. Use $makefile_name as file name
63215         instead of Makefile.am. Adjust the recommendations accordingly.
63216
63217 2006-08-28  Bruno Haible  <bruno@clisp.org>
63218
63219         * gnulib-tool (func_verify_module): Check against misapplying patch.
63220
63221 2006-08-28  Bruno Haible  <bruno@clisp.org>
63222
63223         * gnulib-tool (func_relativize, func_relconcat): New functions.
63224         Give an error if --local-dir is given with --update.
63225         Remove trailing slashes from $local_gnulib_dir.
63226         (func_import): Store the relativized $local_gnulib_dir in
63227         gnulib-cache.m4, and read it from there if not specified explicitly.
63228
63229 2006-08-28  Bruno Haible  <bruno@clisp.org>
63230
63231         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63232         is the current directory. Respect also $local_gnulib_dir.
63233
63234 2006-08-28  Bruno Haible  <bruno@clisp.org>
63235             Simon Josefsson  <jas@extundo.com>
63236
63237         BeOS portability.
63238         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63239
63240 2006-08-27  Jim Meyering  <jim@meyering.net>
63241
63242         * doc/visibility.texi: Remove duplicate word: "pointer".
63243
63244 2006-08-26  Bruno Haible  <bruno@clisp.org>
63245
63246         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63247         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63248         (Makefile.am): Create inttypes.h from inttypes_.h.
63249         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63250
63251         * modules/imaxabs: New file.
63252
63253         * modules/imaxdiv: New file.
63254
63255 2006-08-26  Bruno Haible  <bruno@clisp.org>
63256
63257         * m4/inttypes.m4: New file.
63258         * m4/_inttypes_h.m4: Remove file.
63259         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63260         PRI_MACROS_BROKEN.
63261         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63262
63263         * m4/imaxabs.m4: New file.
63264
63265         * m4/imaxdiv.m4: New file.
63266
63267 2006-08-26  Bruno Haible  <bruno@clisp.org>
63268
63269         * lib/inttypes_.h: New file.
63270         * lib/inttypes.h: Remove file.
63271         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63272
63273         * lib/imaxabs.c: New file.
63274
63275         * lib/imaxdiv.c: New file.
63276
63277 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         New config-h module, so that "make" output needn't be cluttered
63280         by -DHAVE_CONFIG_H.
63281         * MODULES.html.sh (Support for building libraries and executables):
63282         Add config-h.
63283         * modules/config-h: New file.
63284         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63285         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63286         the config-h module is used.
63287
63288         New configmake module, so that "make" output needn't be cluttered
63289         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63290         * MODULES.html.sh (Support for building libraries and executables):
63291         Add configmake.
63292         * modules/configmake: New file.
63293
63294 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63295
63296         * m4/config-h.m4: New file.
63297
63298 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63299
63300         * config/srclist.txt: Add elisp-comp.
63301
63302 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         * MODULES.html.sh (Support for building libraries and executables):
63305         Add elisp-comp.
63306         * build-aux/elisp-comp: New file.
63307         * modules/elisp-comp: New file.
63308
63309 2006-08-24  Bruno Haible  <bruno@clisp.org>
63310
63311         * gnulib-tool (func_create_testdir): Use non-default values of
63312         sourcebase and m4base.
63313
63314 2006-08-24  Bruno Haible  <bruno@clisp.org>
63315
63316         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63317         HTML structure.
63318
63319 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * modules/openat (Depends-on): Add lchown.
63322
63323 2006-08-23  Bruno Haible  <bruno@clisp.org>
63324
63325         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63326         of gl_LOCK_EARLY instead of gl_LOCK.
63327
63328 2006-08-23  Bruno Haible  <bruno@clisp.org>
63329
63330         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63331         on OSF/1 to no.
63332         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63333
63334 2006-08-23  Bruno Haible  <bruno@clisp.org>
63335
63336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63337         as unusable.
63338
63339         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63340         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63341         (gl_LOCK): New macro.
63342
63343 2006-08-22  Simon Josefsson  <jas@extundo.com>
63344
63345         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63346         to md5 module.
63347
63348 2006-08-22  Simon Josefsson  <jas@extundo.com>
63349
63350         * MODULES.html.sh: Add "Support for maintaining and release
63351         projects".
63352
63353         * build-aux/gnupload: New file, from coreutils.
63354
63355 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63356
63357         Avoid the need for AC_LIBSOURCES in m4 macros.
63358         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63359         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63360         * modules/check-version (EXTRA_DIST): Add check-version.h.
63361         * modules/crc (EXTRA_DIST): Add crc.h.
63362         * modules/des (EXTRA_DIST): Add des.h.
63363         * modules/gc (EXTRA_DIST): Add gc.h.
63364         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63365         * modules/getline (EXTRA_DIST): Add getline.h.
63366         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63367         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63368         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63369         * modules/md2 (EXTRA_DIST): Add md2.h.
63370         * modules/md4 (EXTRA_DIST): Add md4.h.
63371         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63372         * modules/read-file (EXTRA_DIST): Add read-file.h.
63373         * modules/readline (EXTRA_DIST): Add readline.h.
63374         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63375         rijndael-api-fst.h.
63376
63377 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63378
63379         * m4/rijndael.m4 (gl_ARCFOUR):
63380         * m4/arctwo.m4 (gl_ARCTWO):
63381         * m4/check-version.m4 (gl_CHECK_VERSION):
63382         * m4/crc.m4 (gl_CRC):
63383         * m4/des.m4 (gl_DES):
63384         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63385         * m4/gc.m4 (gl_GC):
63386         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63387         * m4/getline.m4 (gl_FUNC_GETLINE):
63388         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63389         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63390         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63391         * m4/md2.m4 (gl_MD2):
63392         * m4/md4.m4 (gl_MD4):
63393         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63394         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63395         * m4/readline.m4 (gl_FUNC_READLINE):
63396         * m4/rijndael.m4 (gl_RIJNDAEL):
63397         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63398         to get the necessary .h files and whatnot.
63399
63400 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63403         gnulib rather than the other way around.
63404         * config/srclistvars.sh (COREUTILS): Remove.
63405
63406 2006-08-22  Jim Meyering  <jim@meyering.net>
63407
63408         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63409
63410         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63411
63412 2006-08-22  Eric Blake  <ebb9@byu.net>
63413
63414         * modules/regexprops-generic: New file.
63415         * MODULES.html.sh (Support for building documentation): List it.
63416
63417 2006-08-22  Eric Blake  <ebb9@byu.net>
63418
63419         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63420         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63421         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63422         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63423
63424 2006-08-22  Bruno Haible  <bruno@clisp.org>
63425
63426         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63427         and lib_LTLIBRARIES like the other lib_* variables.
63428
63429 2006-08-22  Bruno Haible  <bruno@clisp.org>
63430
63431         * build-aux/x-to-1.in: New file, from GNU gettext.
63432
63433 2006-08-22  Bruno Haible  <bruno@clisp.org>
63434
63435         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63436         <utmpx.h> exists.
63437
63438 2006-08-22  Bruno Haible  <bruno@clisp.org>
63439
63440         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63441         <utmpx.h> exists.
63442
63443 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         BeOS portability.
63446         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63447         exist.
63448         Problem reported by Bruno Haible.
63449
63450 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63451
63452         Avoid the need for AC_LIBSOURCES in m4 macros.
63453         * modules/acl (EXTRA_DIST): Add acl.h.
63454         * modules/argmatch (Files): Add m4/argmatch.m4.
63455         (configure.ac): Add gl_ARGMATCH.
63456         (EXTRA_DIST): Renamed from lib_SOURCES, for
63457         consistency with the other modules.  Remove argmatch.c.
63458         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63459         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63460         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63461         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63462         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63463         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63464         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63465         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63466         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63467         * modules/closeout (EXTRA_DIST): Add closeout.h.
63468         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63469         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63470         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63471         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63472         dirname.h; remove basename.c and stripslash.c.
63473         * modules/exclude (EXTRA_DIST): Add exclude.h.
63474         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63475         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63476         * modules/file-type (EXTRA_DIST): Add file-type.h.
63477         * modules/filemode (EXTRA_DIST): Add filemode.h.
63478         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63479         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63480         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63481         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63482         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63483         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63484         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63485         * modules/getdate (EXTRA_DIST): Add getdate.c.
63486         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63487         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63488         * modules/getpass (EXTRA_DIST): Add getpass.h.
63489         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63490         * modules/group-member (EXTRA_DIST): Add group-member.h.
63491         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63492         * modules/hash (EXTRA_DIST): Add hash.h.
63493         * modules/human (EXTRA_DIST): Add human.h.
63494         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63495         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63496         * modules/lchown (EXTRA_DIST): Add lchown.h.
63497         * modules/long-options (EXTRA_DIST): Add long-options.h.
63498         * modules/lstat (EXTRA_DIST): Add lstat.h.
63499         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63500         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63501         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63502         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63503         * modules/memxor (EXTRA_DIST): Add memxor.h.
63504         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63505         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63506         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63507         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63508         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63509         * modules/physmem (EXTRA_DIST): Add physmem.h.
63510         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63511         * modules/posixver (EXTRA_DIST): Add posixver.h.
63512         * modules/quote (EXTRA_DIST): Add quote.h.
63513         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63514         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63515         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63516         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63517         regex_internal.h regexec.c.
63518         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63519         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63520         * modules/same (EXTRA_DIST): Add same.h.
63521         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63522         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63523         * modules/savedir (EXTRA_DIST): Add savedir.h.
63524         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63525         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63526         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63527         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63528         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63529         * modules/strdup (EXTRA_DIST): Add strdup.h.
63530         * modules/strftime (EXTRA_DIST): Add strftime.h.
63531         * modules/strndup (EXTRA_DIST): Add strndup.h.
63532         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63533         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63534         * modules/time_r (EXTRA_DIST): Add time_r.h.
63535         * modules/timespec (EXTRA_DIST): Add timespec.h.
63536         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63537         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63538         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63539         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63540         * modules/userspec (EXTRA_DIST): Add userspec.h.
63541         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63542         * modules/utimens (EXTRA_DIST): Add utimens.h.
63543         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63544         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63545         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63546         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63547         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63548         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63549         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63550         * modules/yesno (EXTRA_DIST): Add yesno.h.
63551
63552 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63555
63556         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63557         * m4/dev-ino.m4, same-inode.m4: Remove.
63558
63559         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63560         * m4/acl.m4 (AC_FUNC_ACL):
63561         * m4/backupfile.m4 (gl_BACKUPFILE):
63562         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63563         * m4/canon-host.m4 (gl_CANON_HOST):
63564         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63565         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63566         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63567         * m4/cloexec.m4 (gl_CLOEXEC):
63568         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63569         * m4/closeout.m4 (gl_CLOSEOUT):
63570         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63571         * m4/dirname.m4 (gl_DIRNAME):
63572         * m4/exclude.m4 (gl_EXCLUDE):
63573         * m4/exitfail.m4 (gl_EXITFAIL):
63574         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63575         * m4/file-type.m4 (gl_FILE_TYPE):
63576         * m4/filemode.m4 (gl_FILEMODE):
63577         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63578         * m4/fpending.m4 (gl_FUNC_FPENDING):
63579         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63580         * m4/fts.m4 (gl_FUNC_FTS):
63581         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63582         * m4/getdate.m4 (gl_GETDATE):
63583         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63584         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63585         * m4/getpass.m4 (gl_FUNC_GETPASS):
63586         * m4/gettime.m4 (gl_GETTIME):
63587         * m4/getugroups.m4 (gl_GETUGROUPS):
63588         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63589         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63590         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63591         * m4/hash.m4 (gl_HASH):
63592         * m4/idcache.m4 (gl_IDCACHE):
63593         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63594         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63595         * m4/long-options.m4 (gl_LONG_OPTIONS):
63596         * m4/lstat.m4 (gl_FUNC_LSTAT):
63597         * m4/md5.m4 (gl_MD5):
63598         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63599         * m4/memcoll.m4 (gl_MEMCOLL):
63600         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63601         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63602         * m4/memxor.m4 (gl_MEMXOR):
63603         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63604         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63605         * m4/modechange.m4 (gl_MODECHANGE):
63606         * m4/mountlist.m4 (gl_MOUNTLIST):
63607         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63608         * m4/openat.m4 (gl_FUNC_OPENAT):
63609         * m4/pathmax.m4 (gl_PATHMAX):
63610         * m4/physmem.m4 (gl_PHYSMEM):
63611         * m4/posixtm.m4 (gl_POSIXTM):
63612         * m4/posixver.m4 (gl_POSIXVER):
63613         * m4/quote.m4 (gl_QUOTE):
63614         * m4/quotearg.m4 (gl_QUOTEARG):
63615         * m4/readtokens.m4 (gl_READTOKENS):
63616         * m4/readutmp.m4 (gl_READUTMP):
63617         * m4/regex.m4 (gl_REGEX):
63618         * m4/safe-read.m4 (gl_SAFE_READ):
63619         * m4/safe-write.m4 (gl_SAFE_WRITE):
63620         * m4/same.m4 (gl_SAME):
63621         * m4/save-cwd.m4 (gl_SAVE_CWD):
63622         * m4/savedir.m4 (gl_SAVEDIR):
63623         * m4/settime.m4 (gl_SETTIME):
63624         * m4/sha1.m4 (gl_SHA1):
63625         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63626         * m4/stat-macros.m4 (gl_STAT_MACROS):
63627         * m4/stat-time.m4 (gl_STAT_TIME):
63628         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63629         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63630         * m4/strdup.m4 (gl_FUNC_STRDUP):
63631         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63632         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63633         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63634         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63635         * m4/time_r.m4 (gl_TIME_R):
63636         * m4/timespec.m4 (gl_TIMESPEC):
63637         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63638         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63639         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63640         * m4/userspec.m4 (gl_USERSPEC):
63641         * m4/utimecmp.m4 (gl_UTIMECMP):
63642         * m4/utimens.m4 (gl_UTIMENS):
63643         * m4/xalloc.m4 (gl_XALLOC):
63644         * m4/xgetcwd.m4 (gl_XGETCWD):
63645         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63646         * m4/xreadlink.m4 (gl_XREADLINK):
63647         * m4/xstrtod.m4 (gl_XSTRTOD):
63648         * m4/yesno.m4 (gl_YESNO):
63649         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63650         to get the necessary .h files and whatnot.
63651
63652 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63653             Bruno Haible  <bruno@clisp.org>
63654
63655         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63656         /bin/sh understanding of '!' conditional negation.
63657
63658 2006-08-21  Jim Meyering  <jim@meyering.net>
63659
63660         * modules/openat (Depends-on): Really alphabetize.
63661
63662         * modules/acl (Depends-on): Add error and quote.
63663
63664         * check-module (find_included_lib_files): Add at-func.c to the
63665         ok-to-include-more-than-once white list.
63666
63667         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63668
63669 2006-08-21  Bruno Haible  <bruno@clisp.org>
63670
63671         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63672         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63673         Reported by Martin Lambers <marlam@marlam.de>.
63674
63675 2006-08-21  Bruno Haible  <bruno@clisp.org>
63676
63677         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63678         specify an installation location, don't emit a noinst_LIBRARIES or
63679         noinst_LTLIBRARIES assignment.
63680
63681 2006-08-21  Bruno Haible  <bruno@clisp.org>
63682
63683         BeOS portability.
63684         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63685         BeOS has mbrtowc() but no <wctype.h>.
63686
63687 2006-08-21  Bruno Haible  <bruno@clisp.org>
63688
63689         BeOS portability.
63690         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63691         exist.
63692
63693 2006-08-21  Bruno Haible  <bruno@clisp.org>
63694
63695         BeOS portability.
63696         * lib/mbchar.h: Include <wctype.h> only if it exists.
63697
63698 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63699
63700         Remove files that are no longer needed by their respective modules.
63701         * m4/obstack.m4: Remove.
63702         * m4/strerror_r.m4: Remove.
63703         * m4/uint32_t.m4: Remove.
63704         * m4/uintptr_t.m4: Remove.
63705         * m4/ullong_max.m4: Remove.
63706         * m4/xstrtoimax.m4: Remove.
63707         * m4/xstrtoumax.m4: Remove.
63708
63709         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63710         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63711         dependencies now capture this.
63712
63713         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63714         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63715         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63716         * m4/human.m4 (gl_HUMAN): Likewise.
63717         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63718         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63719
63720         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63721
63722         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63723         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63724         stdint.
63725         * m4/human.m4 (gl_HUMAN): Likewise.
63726         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63727         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63728         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63729         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63730         * m4/xstrtol (gl_XSTRTOL): Likewise.
63731
63732         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63733         AC_TYPE_LONG_LONG_INT.
63734         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63735         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63736         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63737         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63738
63739         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63740         on stdbool.
63741
63742         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63743         (gl_PREREQ_XSTRTOUL): Remove.
63744
63745         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63746
63747         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63748         mode.
63749
63750 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         Add and change modules to make it easier for coreutils to use
63753         gnulib-tool.
63754         * modules/backupfile (Files): Remove m4/d-ino.m4.
63755         (Depends-on): Add d-ino.
63756         * modules/cycle-check (Depends-on): Add stdint.
63757         (lib_SOURCES): Add cycle-check.h.
63758         * modules/d-ino: New module.
63759         * modules/d-type: New module.
63760         * modules/error (Files): Remove m4/strerror_r.m4.
63761         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63762         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63763         m4/inttypes_h.m4, m4/uintmax_t.m4.
63764         (Depends-on): Add stdint.
63765         (lib_SOURCES): Add fsusage.h.
63766         * modules/getcwd (Files): Remove d-ino.m4.
63767         (Depends-on): Add d-ino.
63768         * modules/getndelim2 (Depends-on): Add stdint.
63769         * modules/glob (Files): Remove m4/d-type.m4.
63770         (Depends-on): Add d-type.
63771         * modules/host-os: New module.
63772         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63773         m4/inttypes_h.m4, m4/uintmax_t.m4.
63774         * Depends-on: Add stdint.
63775         (lib_SOURCES): Add human.h.
63776         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63777         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63778         m4/uintmax_t.m4, m4/ulonglong.m4.
63779         (Depends-on): Add stdint.
63780         (EXTRA_DIST): Add inttostr.h.
63781         * modules/lchmod: New module.
63782         * modules/link-follow: New module.
63783         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63784         (Depends-on): Add lchmod.
63785         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63786         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63787         (Depends-on): Add stdint.
63788         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63789         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63790         (Depends-on): Add stdint.
63791         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63792         * modules/perl: New module.
63793         * modules/regex (Depends-on): Add stdint.
63794         * modules/rmdir-errno: New module.
63795         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63796         m4/intmax_t.m4.
63797         (Depends-on): Add stdint.
63798         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63799         m4/uintmax_t.m4.
63800         (Depends-on): Add stdint.
63801         * modules/unlink-busy: New module.
63802         * modules/utimecmp (Depends-on): Add stdint.
63803         * modules/uptime: New module.
63804         * modules/winsz-ioctl: New module.
63805         * modules/winsz-termios: New module.
63806         * modules/xnanosleep (Depends-on): Add nanosleep.
63807         * modules/ullong_max: Remove.
63808         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63809         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63810         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63811         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63812         (Depends-on): Add inttypes.
63813         (lib_SOURCES): Add xstrtol.h.
63814         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63815         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63816         * MODULES.html.sh: Move 'assert' into the assert section.
63817         Move 'dummy' into the linking section.
63818         Remove ullong_max.
63819         Add section for compatibility checks for POSIX:2001 functions,
63820         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63821         winsz-ioctl, and winsz-termios into it.
63822         Add lchmod.
63823         Add top-level Misc section and put host-os, perl, and uptime
63824         into it.
63825
63826 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63827
63828         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63829         now assume the stdint module.  Do not include inttypes.h.
63830         * lib/fsusage.h: Likewise.
63831         * lib/getndelim2.c: Likewise.
63832         * lib/human.h: Likewise.
63833         * lib/inttostr.h: Likewise.
63834         * lib/obstack.c: Likewise.
63835         * lib/regex_internal.h: Likewise.
63836         * lib/tempname.c: Likewise.
63837         * lib/utimecmp.c: Likewise.
63838         * lib/xstrtol.h: Likewise.
63839
63840         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63841
63842         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63843         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63844         * lib/xtime.h: Likewise.
63845
63846 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63847
63848         * modules/openat (Files): Add lib/fchmodat.c.
63849         Fixes problem reported by Jay Youngman.
63850
63851 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63852
63853         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63854         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63855
63856 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63857             Bruno Haible  <bruno@clisp.org>
63858
63859         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63860         and is a script that invokes bison. Tighten the code. Add comments.
63861
63862 2006-08-18  Jim Meyering  <jim@meyering.net>
63863
63864         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63865         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63866         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63867         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63868
63869 2006-08-18  Bruno Haible  <bruno@clisp.org>
63870
63871         * modules/bison-i18n: New file.
63872         * MODULES.html.sh (Internationalization functions): Add it.
63873
63874 2006-08-18  Bruno Haible  <bruno@clisp.org>
63875
63876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63877         sys/statvfs.h. When getmntinfo was found, check its declaration and
63878         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63879
63880 2006-08-18  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/bison-i18n.m4: New file, from bison.
63883
63884 2006-08-18  Bruno Haible  <bruno@clisp.org>
63885
63886         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63887         (ME_DUMMY): Treat "kernfs" as a dummy.
63888         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63889
63890 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63891
63892         Update from coreutils.
63893
63894         2006-08-15  Jim Meyering  <jim@meyering.net>
63895
63896         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63897
63898         2006-01-17  Jim Meyering  <jim@meyering.net>
63899
63900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63901
63902         2006-01-11  Jim Meyering  <jim@meyering.net>
63903
63904         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63905         Check for the lchmod function.
63906
63907 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         Update from coreutils.
63910
63911         * lib/__fpending.h: Add copyright notice.
63912         * lib/fprintftime.h: Likewise.
63913         * lib/savedir.c: Use (C) in copyright notice.
63914         * lib/savedir.h: Likewise.
63915
63916         2006-08-15  Jim Meyering  <jim@meyering.net>
63917
63918         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63919         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63920         in support of the EXPECTED_ERRNO macro.
63921         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63922         definitions.  Instead, define the appropriate symbols and include
63923         "at-func.c".
63924         * lib/mkdirat.c (mkdirat): Likewise.
63925         * lib/fchmodat.c (fchmodat): Likewise.
63926         (ENOSYS): Remove definition.
63927         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63928         it.  Don't include "unistd--.h" -- it wasn't ever used.
63929
63930         2006-01-17  Jim Meyering  <jim@meyering.net>
63931
63932         Rewrite fts.c not to change the current working directory,
63933         by using openat, fstatat, fdopendir, etc..
63934
63935         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63936         (HAVE_OPENAT_SUPPORT): Define.
63937         [_LIBC] (fchdir): Don't undef or define; no longer used.
63938         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63939         Now, this `function' always succeeds, and consumes its file descriptor
63940         parameter -- so callers must not close such FDs.  Update callers.
63941         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63942         (diropen): Add parameter, SP.  Adjust all callers.
63943         Implement using diropen_fd, rather than open.
63944         (fts_open): Initialize new member, fts_cwd_fd.
63945         Remove fts_rft-setting code.
63946         (fts_close): Close fts_cwd_fd, if necessary.
63947         (__opendir2): Define in terms of opendir or opendirat,
63948         depending on whether the FST_NOCHDIR flag is set.
63949         (fts_build): Since fts_safe_changedir consumes its FD, and since
63950         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63951         and close the dup'd file descriptor upon failure.
63952         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63953         (fts_safe_changedir): Tweak semantics to reflect that this function
63954         now calls cwd_advance_fd and hence consumes its FD argument.
63955         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63956         [struct FTS] (fts_rft): Remove now-unused member.
63957         [struct FTS] (fts_cycle.state): Improve comment.
63958
63959         * lib/openat.c (openat_needs_fchdir): New function.
63960         * lib/openat.h (openat_needs_fchdir): Declare it.
63961
63962 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63963
63964         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63965         Problem and fix reported by Pádraig Brady in
63966         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63967
63968 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63971
63972 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63973
63974         * lib/memcoll.c (memcoll): Optimize for the common case where the
63975         arguments are bytewise equal.
63976
63977 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * doc/regexprops-generic.texi: Add a copyright notice.
63980
63981 2006-08-15  Bruno Haible  <bruno@clisp.org>
63982
63983         * modules/tmpdir (License): Change to LGPL.
63984
63985 2006-08-15  Bruno Haible  <bruno@clisp.org>
63986
63987         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63988         module.
63989
63990 2006-08-14  Simon Josefsson  <jas@extundo.com>
63991
63992         * config/srclist.txt: Add gnupload.
63993
63994 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63995
63996         Change copyright notice from LGPL 2 to GPL 2, since that's the
63997         standard form used in the gnulib repository.
63998         * tests/test-lock.c: Likewise.
63999         * tests/test-stdint.c: Likewise.
64000         * tests/test-tls.c: Likewise.
64001
64002         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64003         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64004         Add copyright notice.
64005
64006         * check-module: Add copyright notice.  Output a copyright
64007         notice if "--version" is specified.
64008         * modules/COPYING: New file.
64009         * tests/test-getaddrinfo.c: Add copyright notice.
64010         * tests/test-verify.c: Likewise.
64011
64012 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         Change copyright notice from LGPL 2 to GPL 2, since that's the
64015         standard form used in the gnulib repository.
64016         * lib/lock.c: LGPL -> GPL.
64017         * lib/lock.h: Likewise.
64018         * lib/strnlen1.c: Likewise.
64019         * lib/strnlen1.h: Likewise.
64020         * lib/tls.c: Likewise.
64021         * lib/tls.h: Likewise.
64022         * lib/tmpdir.c: Likewise.
64023
64024         * lib/TODO: Remove; this belongs only in coreutils.
64025
64026 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64027
64028         Add copyright notices to long-enough files that lack them, since
64029         otherwise the files aren't clearly free.  Use the same notice that
64030         getdate.texi already uses.
64031         * doc/alloca-opt.texi: Add copyright notice.
64032         * doc/alloca.texi: Likewise.
64033         * doc/ctime.texi: Likewise.
64034         * doc/functions.texi: Likewise.
64035         * doc/gcd.texi: Likewise.
64036         * doc/gnulib-tool.texi: Likewise.
64037         * doc/inet_ntoa.texi: Likewise.
64038         * doc/visibility.texi: Likewise.
64039
64040         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64041         * doc/quote.texi: Add copyright notice.
64042
64043         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64044         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64045         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64046         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64047         is now obsolete, and give a pointer to the Sun list.
64048         Add copyright notice.
64049
64050 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * config/srclistvars.sh: Add copyright notice.
64053
64054 2006-08-14  Eric Blake  <ebb9@byu.net>
64055
64056         Import the following change from libc:
64057
64058         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64059
64060         Upstream bug 2997.
64061         * lib/misc/error.c: Add space between program name and message if file
64062         name is missing.
64063
64064 2006-08-12  Karl Berry  <karl@gnu.org>
64065
64066         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64067         remove, these originate in gnulib now.
64068
64069 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64070
64071         * doc/Makefile (standards.info standards.html standards.dvi):
64072         Also depend on make-stds.texi.
64073
64074 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64077         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64078
64079         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64080         in wchar_t.  Problem reported by Eric Blake.
64081
64082         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64083         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64084         Also, help the compiler to keep LEN in a register.
64085
64086 2006-08-11  Eric Blake  <ebb9@byu.net>
64087
64088         * users.txt: Sort.  Add tar.
64089
64090 2006-08-11  Bruno Haible  <bruno@clisp.org>
64091
64092         * users.txt: New file.
64093
64094 2006-08-11  Bruno Haible  <bruno@clisp.org>
64095
64096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64097         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64098
64099 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64100
64101         * modules/snprintf (Depends-on): Remove minmax.
64102         (Maintainer): Add self and Bruno.
64103
64104 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64105
64106         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64107         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64108         (EOVERFLOW): Define if the system does not.
64109         Do not include "minmax.h"; it wasn't used.
64110         (snprintf): Don't assume size_t promotes to an unsigned type.
64111         Fix bug when generated string was too long for the buffer: the
64112         buffer's contents are supposed to be the initial prefix of the
64113         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64114         exceeds INT_MAX; do the check ourselves.
64115
64116         Import the following changes from libc:
64117
64118         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64119
64120         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64121         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64122         set wc to the byte which couldn't be converted.
64123         (re_string_reconstruct): Don't clear valid_raw_len before calling
64124         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64125         tip_context using re_string_context_at.
64126
64127         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64128
64129         * lib/posix/regex.h: g++ still cannot handled [restrict].
64130
64131         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64132
64133         * lib/posix/regex.h: Remove special handling for VMS.
64134
64135 2006-08-10  Jim Meyering  <jim@meyering.net>
64136
64137         * modules/same-inode: New module.
64138         * modules/dev-ino: New module.
64139         * modules/cycle-check: Depend on these modules, rather than simply
64140         including their .h files.
64141         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64142         required via m4/cycle-check.m4.
64143         * modules/same: Depend on new same-inode module, rather than
64144         including same-inode.h.
64145         * modules/chdir-safer: New file.
64146
64147         * modules/chown (Depends-on): Add stat-macros.
64148
64149 2006-08-10  Jim Meyering  <jim@meyering.net>
64150
64151         * m4/cycle-check.m4: New file.
64152         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64153         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64154
64155 2006-08-10  Eric Blake  <ebb9@byu.net>
64156
64157         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64158         in from original proposal.
64159
64160 2006-08-10  Eric Blake  <ebb9@byu.net>
64161         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64162
64163         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64164         namespace.
64165
64166 2006-08-10  Bruno Haible  <bruno@clisp.org>
64167
64168         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64169         as well.
64170
64171 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         Sync from coreutils.
64174
64175         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64176
64177         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64178         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64179
64180 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * modules/restrict: Remove; no longer needed now that we assume
64183         Autoconf 2.59 or later.
64184         * MODULES.html.sh: Remove 'restrict'.
64185         * modules/argp (Depends-on): Remove 'restrict'.
64186         * modules/base64 (Depends-on): Likewise.
64187         * modules/gc (Depends-on): Likewise.
64188         * modules/getaddrinfo (Depends-on): Likewise.
64189         * modules/glob (Depends-on): Likewise.
64190         * modules/inet_ntop (Depends-on): Likewise.
64191         * modules/inet_pton (Depends-on): Likewise.
64192         * modules/memxor (Depends-on): Likewise.
64193         * modules/regex (Depends-on): Likewise.
64194         * modules/strtok_r (Depends-on): Likewise.
64195         * modules/time_r (Depends-on): Likewise.
64196
64197 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64198
64199         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64200         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64201         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64202         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64203         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64204         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64205         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64206         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64207
64208         Merge from coreutils.
64209         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64210         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64211         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64212         * m4/time_r.m4 (gl_TIME_R): Likewise.
64213
64214 2006-08-09  Karl Berry  <karl@gnu.org>
64215
64216         * config/srclist.txt: no more gettext-tools, per Bruno.
64217
64218 2006-08-08  Eric Blake  <ebb9@byu.net>
64219
64220         * modules/verror: New module.
64221         * MODULES.html.sh: Document it.
64222
64223 2006-08-08  Eric Blake  <ebb9@byu.net>
64224
64225         * lib/verror.h, lib/verror.c: New files.
64226
64227 2006-08-08  Eric Blake  <ebb9@byu.net>
64228
64229         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64230         verror_at_line output complies with GNU Coding Standards even when
64231         file is NULL.
64232
64233 2006-08-07  Bruno Haible  <bruno@clisp.org>
64234
64235         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64236         versions of AIX.
64237         Reported by Ralf Wildenhues.
64238
64239 2006-08-07  Bruno Haible  <bruno@clisp.org>
64240
64241         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64242         in an AC_DEFUN. Needed so that the autoconf snippets can use
64243         AC_REQUIRE.
64244
64245 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64246
64247         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64248         Initialize pkgdata_DATA.
64249         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64250         overriding it.
64251
64252 2006-08-06  Eric Blake  <ebb9@byu.net>
64253
64254         * lib/error.h: Fold in some upstream changes from glibc.
64255         * lib/error.c: Likewise.
64256
64257 2006-08-04  Bruno Haible  <bruno@clisp.org>
64258
64259         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64260         Make the mostlyclean-local rule depend on mostlyclean-generic.
64261         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64262
64263 2006-07-31  Bruno Haible  <bruno@clisp.org>
64264
64265         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64266         <stdlib.h>, <string.h>.
64267
64268 2006-07-30  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/readlink (License): Change to LGPL.
64271
64272 2006-07-30  Bruno Haible  <bruno@clisp.org>
64273
64274         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64275         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64276         set PKGDATADIR to point to it.
64277
64278 2006-07-30  Bruno Haible  <bruno@clisp.org>
64279
64280         * modules/csharpexec (configure.ac): Comment out macro invocation.
64281         * modules/javaexec (configure.ac): Likewise.
64282         * modules/javacomp-script (configure.ac): Likewise.
64283
64284         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64285
64286 2006-07-30  Bruno Haible  <bruno@clisp.org>
64287
64288         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64289         linked-list.
64290
64291 2006-07-30  Bruno Haible  <bruno@clisp.org>
64292
64293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64294
64295 2006-07-30  Bruno Haible  <bruno@clisp.org>
64296
64297         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64298         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64299         get removed.
64300
64301 2006-07-29  Bruno Haible  <bruno@clisp.org>
64302
64303         Make it possible for gnulib-tool to work with locally modified or
64304         augmented gnulib repositories.
64305         * gnulib-tool (func_usage): Document --local-dir option.
64306         (local_gnulib_dir): New variable.
64307         Handle --local-dir option.
64308         (func_lookup_file): New function.
64309         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64310         (func_get_description, func_get_filelist, func_get_description,
64311         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64312         func_get_automake_snippet, func_get_include_directive,
64313         func_get_license, func_get_maintainer): Use func_lookup_file.
64314         (func_import, func_create_testdir): Use func_lookup_file.
64315
64316 2006-07-29  Bruno Haible  <bruno@clisp.org>
64317
64318         * modules/setenv (Depends-on): Add unistd.
64319
64320 2006-07-29  Bruno Haible  <bruno@clisp.org>
64321
64322         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64323
64324 2006-07-29  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64327
64328 2006-07-29  Bruno Haible  <bruno@clisp.org>
64329
64330         * gnulib-tool (import, update): If there is no Makefile.am, look at
64331         aclocal.m4, instead of bailing out.
64332
64333 2006-07-29  Bruno Haible  <bruno@clisp.org>
64334
64335         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64336         Categorize the options by when they are useful.
64337
64338 2006-07-29  Bruno Haible  <bruno@clisp.org>
64339
64340         * gnulib-tool (func_usage): Document option --no-libtool.
64341         Handle option --no-libtool.
64342         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64343         for changed semantics of $libtool variable.
64344         (func_import): Likewise. If libtool is not used, show this through
64345         an option --no-libtool.
64346         (func_create_testdir): Update.
64347
64348 2006-07-29  Bruno Haible  <bruno@clisp.org>
64349
64350         * gnulib-tool (func_import): Extend error message about missing
64351         --doc-base.
64352
64353 2006-07-29  Bruno Haible  <bruno@clisp.org>
64354
64355         * gnulib-tool (func_import): Don't create the $docbase directory if
64356         there is no file to store there.
64357
64358 2006-07-29  Bruno Haible  <bruno@clisp.org>
64359
64360         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64361         relevant, look for configure.ac there, not in the current directory.
64362         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64363
64364 2006-07-29  Bruno Haible  <bruno@clisp.org>
64365
64366         * gnulib-tool (SORT): New variable.
64367         (func_usage): Undocument --assume-autoconf option.
64368         Remove --assume-autoconf option handling.
64369         (autoconf_minversion): Determine from the contents of configure.ac.
64370         (func_import): Remove autoconf_minversion handling.
64371         Suggested by Eric Blake.
64372
64373 2006-07-29  Bruno Haible  <bruno@clisp.org>
64374
64375         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64376
64377 2006-07-29  Bruno Haible  <bruno@clisp.org>
64378
64379         * config/srclist.txt (*setenv.[ch]): Remove rules.
64380
64381 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64382
64383         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64384
64385 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64386
64387         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64388         arpa/inet.h.
64389
64390 2006-07-28  Simon Josefsson  <jas@extundo.com>
64391
64392         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64393         * modules/inet_pton (Depends-on): Likewise.
64394
64395 2006-07-28  Simon Josefsson  <jas@extundo.com>
64396
64397         * m4/netinet_in_h.m4: New file.
64398
64399 2006-07-28  Simon Josefsson  <jas@extundo.com>
64400
64401         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64402         #include's.
64403
64404 2006-07-28  Simon Josefsson  <jas@extundo.com>
64405
64406         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64407         #include's.
64408
64409 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64410
64411         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64412         setgid on directories only if they set these bits.
64413         * lib/modechange.h: Remove obsolete comment about masks.
64414
64415 2006-07-28  Eric Blake  <ebb9@byu.net>
64416
64417         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64418         macro expansion.
64419
64420 2006-07-28  Bruno Haible  <bruno@clisp.org>
64421
64422         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64423
64424 2006-07-28  Bruno Haible  <bruno@clisp.org>
64425
64426         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64427
64428 2006-07-28  Bruno Haible  <bruno@clisp.org>
64429
64430         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64431         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64432         Define fallbacks.
64433         Avoids link error on FreeBSD 4.x.
64434         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64435
64436         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64437         encoding.
64438         * lib/mbswidth.c (iswcntrl): Likewise.
64439
64440 2006-07-27  Bruno Haible  <bruno@clisp.org>
64441
64442         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64443         test.
64444
64445 2006-07-27  Bruno Haible  <bruno@clisp.org>
64446
64447         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64448         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64449         defined.
64450
64451 2006-07-26  Eric Blake  <ebb9@byu.net>
64452
64453         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64454
64455 2006-07-26  Eric Blake  <ebb9@byu.net>
64456
64457         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64458         like mingw that lack mkstemp.
64459         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64460         avoid compilation warning on mingw.
64461
64462 2006-07-26  Bruno Haible  <bruno@clisp.org>
64463
64464         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64465         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64466         INT_FAST*_MIN, INTPTR_MIN.
64467
64468 2006-07-25  Bruno Haible  <bruno@clisp.org>
64469
64470         * modules/version-etc (Depends-on): Add stdarg.
64471
64472 2006-07-25  Bruno Haible  <bruno@clisp.org>
64473
64474         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64475         complex commands.
64476
64477 2006-07-25  Bruno Haible  <bruno@clisp.org>
64478
64479         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64480         defined in <stdarg.h> or config.h.
64481
64482 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64485         (gl_STDIO_SAFER): Remove.
64486
64487 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * MODULES.html.sh (File stream based Input/Output):
64490         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64491         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64492         * modules/fopen-safer, modules/tmpfile-safer: New files.
64493         * modules/stdio-safer: Remove.
64494
64495 2006-07-24  Bruno Haible  <bruno@clisp.org>
64496
64497         * modules/tmpdir: New file.
64498         * MODULES.html.sh (File system functions): Add it.
64499
64500 2006-07-24  Bruno Haible  <bruno@clisp.org>
64501
64502         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64503         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64504
64505 2006-07-24  Bruno Haible  <bruno@clisp.org>
64506
64507         * modules/clean-temp: New file.
64508
64509 2006-07-24  Bruno Haible  <bruno@clisp.org>
64510
64511         * m4/tmpdir.m4: New file, from GNU gettext.
64512
64513 2006-07-24  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/tmpdir.h: New file, from GNU gettext.
64516         * lib/tmpdir.c: New file, from GNU gettext.
64517
64518 2006-07-24  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/clean-temp.h: New file, from GNU gettext.
64521         * lib/clean-temp.c: New file, from GNU gettext.
64522
64523 2006-07-23  Eric Blake  <ebb9@byu.net>
64524
64525         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64526         (Depends-on): Add binary-io.
64527
64528 2006-07-23  Eric Blake  <ebb9@byu.net>
64529
64530         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64531
64532 2006-07-23  Eric Blake  <ebb9@byu.net>
64533
64534         * lib/tmpfile-safer.c: New file.
64535         * lib/stdio-safer.h (fopen_safer): Add prototype.
64536         * lib/stdio--.h (tmpfile): Make safer.
64537
64538 2006-07-23  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64541         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64542         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64543         gl_linked_remove_at): Use it.
64544
64545 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64546         and Simon Josefsson <jas@extundo.com>
64547
64548         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64549
64550         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64551
64552 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * modules/close-stream: New file.
64555         * modules/closeout (Description): Make it clear that it exits
64556         with a diagnostic on error.
64557         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64558         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64559
64560 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * m4/close-stream.m4: New file.
64563
64564 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64565
64566         * lib/close-stream.c, lib/close-stream.h: New files.
64567
64568 2006-07-22  Bruno Haible  <bruno@clisp.org>
64569
64570         Merge from GNU gettext 0.15.
64571
64572         2006-05-01  Bruno Haible  <bruno@clisp.org>
64573
64574                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64575
64576         2006-07-22  Bruno Haible  <bruno@clisp.org>
64577
64578                 * modules/javaversion: New file.
64579                 * MODULES.html.sh (Java): Add javaversion.
64580
64581         2006-03-12  Bruno Haible  <bruno@clisp.org>
64582
64583                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64584
64585         2005-12-04  Bruno Haible  <bruno@clisp.org>
64586
64587                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64588                 (untested).
64589
64590         2006-06-21  Bruno Haible  <bruno@clisp.org>
64591
64592                 Avoid warnings from recent versions of mcs.
64593                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64594                 -o, -L, -r any more. Use options documented since mcs-1.0
64595                 instead. Similarly for -g.
64596
64597         2005-12-04  Bruno Haible  <bruno@clisp.org>
64598
64599                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64600                 .resources, not .resource.
64601
64602         2005-07-09  Bruno Haible  <bruno@clisp.org>
64603
64604                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64605                 add a .dll suffix.
64606                 Reported by Mark Junker <mjscod@gmx.de>.
64607
64608         2006-07-22  Bruno Haible  <bruno@clisp.org>
64609
64610                 * modules/gettext: Upgrade to gettext-0.15.
64611                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64612                 m4/visibility.m4.
64613                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64614
64615 2006-07-22  Bruno Haible  <bruno@clisp.org>
64616
64617         Merge from GNU gettext 0.15.
64618
64619         2006-03-25  Bruno Haible  <bruno@clisp.org>
64620
64621                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64622
64623         2006-07-21  Bruno Haible  <bruno@clisp.org>
64624
64625                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64626                 "1.1".
64627
64628         2006-05-09  Bruno Haible  <bruno@clisp.org>
64629
64630                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64631                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64632                 for the conftestver execution.
64633
64634         2006-05-01  Bruno Haible  <bruno@clisp.org>
64635
64636                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64637                 optional target-version argument. Verify that the compiler
64638                 groks source of the specified source-version, or add -source
64639                 option as necessary. Verify that the compiler produces
64640                 bytecode in the specified target-version, or add -target and
64641                 -source options as necessary. Make the result of the test
64642                 available as variable CONF_JAVAC. Also log error output in
64643                 config.log.
64644
64645         2006-03-11  Bruno Haible  <bruno@clisp.org>
64646
64647                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64648
64649         2006-05-09  Bruno Haible  <bruno@clisp.org>
64650
64651                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64652                 CLASSPATH_SEPARATOR to a semicolon.
64653
64654         2006-03-12  Bruno Haible  <bruno@clisp.org>
64655
64656                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64657                 available as variable CONF_JAVA, for subsequent autoconf
64658                 tests. Also log error output in config.log.
64659
64660         2006-07-19  Bruno Haible  <bruno@clisp.org>
64661
64662                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64663                 that getline works on glibc2 systems. Needed to avoid trouble
64664                 in relocatable.c.
64665                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64666
64667         2005-12-04  Bruno Haible  <bruno@clisp.org>
64668
64669                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64670                 launcher (untested).
64671
64672         2005-12-04  Bruno Haible  <bruno@clisp.org>
64673
64674                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64675
64676         2006-07-22  Bruno Haible  <bruno@clisp.org>
64677
64678                 * gettext.m4: Update from GNU gettext-0.15.
64679                 * nls.m4: Likewise.
64680                 * po.m4: Likewise.
64681                 * inttypes-pri.m4: Likewise.
64682                 * inttypes-h.m4: Renamed from inttypes.m4.
64683                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64684
64685 2006-07-22  Bruno Haible  <bruno@clisp.org>
64686
64687         Merge from GNU gettext 0.15.
64688
64689         2005-07-05  Bruno Haible  <bruno@clisp.org>
64690
64691                 * printf-args.c (printf_fetchargs): Work around broken
64692                 definition of wint_t on mingw.
64693
64694         2005-02-12  Bruno Haible  <bruno@clisp.org>
64695
64696                 * xallocsa.h: Add extern "C" for C++.
64697
64698         2006-05-17  Bruno Haible  <bruno@clisp.org>
64699
64700                 Cygwin portability.
64701                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64702
64703         2006-04-30  Bruno Haible  <bruno@clisp.org>
64704
64705                 * progreloc.c: Include <mach-o/dyld.h> if available.
64706                 (find_executable): Use _NSGetExecutablePath when possible.
64707
64708         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64709
64710                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64711                 function.
64712
64713         2005-12-29  Bruno Haible  <bruno@clisp.org>
64714
64715                 * progreloc.c (set_program_name_and_installdir): Fix
64716                 compilation error.
64717
64718         2005-12-04  Bruno Haible  <bruno@clisp.org>
64719
64720                 Cygwin portability.
64721                 * progreloc.c: Include <windows.h> also on Cygwin.
64722                 (find_executable): Add support for Cygwin.
64723                 (set_program_name_and_installdir): Handle also platforms with
64724                 nonempty EXEEXT.
64725
64726         2006-07-11  Bruno Haible  <bruno@clisp.org>
64727
64728                 * javacomp.c: Fix a comment.
64729                 Reported by Jim Meyering.
64730
64731         2006-04-30  Bruno Haible  <bruno@clisp.org>
64732
64733                 * javacomp.h (compile_java_class): Add source_version,
64734                 target_version arguments.
64735                 * javacomp.c: Rewritten to choose only a compiler that
64736                 respects the specified source_version and target_version.
64737
64738         2006-06-27  Bruno Haible  <bruno@clisp.org>
64739
64740                 Assume correct S_ISDIR macro.
64741                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64742
64743         2006-07-22  Bruno Haible  <bruno@clisp.org>
64744
64745                 * javaversion.h: New file, from GNU gettext.
64746                 * javaversion.c: New file, from GNU gettext.
64747                 * javaversion.java: New file, from GNU gettext.
64748                 * javaversion.class: New file, from GNU gettext.
64749
64750         2006-05-17  Bruno Haible  <bruno@clisp.org>
64751
64752                 Cygwin portability.
64753                 * javaexec.c (execute_java_class): Test for jview program
64754                 also on Cygwin.
64755
64756         2006-04-09  Bruno Haible  <bruno@clisp.org>
64757
64758                 * fatal-signal.c: Don't include string.h.
64759                 (at_fatal_signal): Use a copying loop instead of memcpy.
64760
64761         2005-12-04  Bruno Haible  <bruno@clisp.org>
64762
64763                 * csharpexec.c: Add support for 'clix' launcher (untested).
64764                 (execute_csharp_using_sscli): New function.
64765                 (execute_csharp_program): Call it.
64766
64767         2006-06-21  Bruno Haible  <bruno@clisp.org>
64768
64769                 Avoid warnings from recent versions of mcs.
64770                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64771                 -o, -L, -r any more. Use options documented since mcs-1.0
64772                 instead. Similarly for -g.
64773
64774         2005-07-09  Bruno Haible  <bruno@clisp.org>
64775
64776                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64777                 add a .dll suffix.
64778                 Reported by Mark Junker <mjscod@gmx.de>.
64779
64780         2006-06-17  Bruno Haible  <bruno@clisp.org>
64781
64782                 * config.charset: Update for NetBSD 3.0.
64783
64784         2006-05-17  Bruno Haible  <bruno@clisp.org>
64785
64786                 Cygwin portability.
64787                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64788
64789         2006-05-16  Bruno Haible  <bruno@clisp.org>
64790
64791                 * localcharset.c [CYGWIN]: Include <windows.h>.
64792                 (get_charset_aliases): For Cygwin, return the same CPxxx
64793                 aliases list as under WIN32.
64794                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64795                 the environment variables. Fall back to GetACP().
64796
64797         2006-04-05  Bruno Haible  <bruno@clisp.org>
64798
64799                 * config.charset: Update Juan Manuel Guerrero's address.
64800
64801         2005-02-12  Bruno Haible  <bruno@clisp.org>
64802
64803                 * allocsa.h: Add extern "C" for C++.
64804
64805         2005-02-10  Bruno Haible  <bruno@clisp.org>
64806
64807                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64808                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64809
64810         2006-07-22  Bruno Haible  <bruno@clisp.org>
64811
64812                 * gettext.h: Update to GNU gettext-0.15.
64813
64814 2006-07-22  Bruno Haible  <bruno@clisp.org>
64815
64816         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64817         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64818         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64819
64820 2006-07-21  Eric Blake  <ebb9@byu.net>
64821
64822         * modules/stdlib-safer: New file.
64823         * MODULES.html.sh (File stream based Input/Output): Add
64824         stdlib-safer.
64825
64826 2006-07-21  Eric Blake  <ebb9@byu.net>
64827
64828         * lib/stdlib-safer.h: New file from coreutils, required by
64829         stdlib--.h.
64830
64831 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64834
64835 2006-07-20  Bruno Haible  <bruno@clisp.org>
64836
64837         * gnulib-tool: Recognize new option --assume-autoconf.
64838         (autoconf_minversion): New variable.
64839         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64840
64841 2006-07-20  Bruno Haible  <bruno@clisp.org>
64842
64843         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64844
64845 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64846
64847         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64848         Reindent and repaginate.
64849
64850 2006-07-19  Derek Price  <derek@ximbiot.com>
64851
64852         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64853         Correct grammar.
64854
64855 2006-07-17  Bruno Haible  <bruno@clisp.org>
64856
64857         * modules/list: New file.
64858         * modules/array-list: New file.
64859         * modules/carray-list, modules/carray-list-tests: New files.
64860         * modules/linked-list, modules/linked-list-tests: New files.
64861         * modules/avltree-list, modules/avltree-list-tests: New files.
64862         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64863         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64864         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64865         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64866         * modules/oset: New file.
64867         * modules/array-oset: New file.
64868         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64869         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64870         * tests/test-carray_list.c: New file.
64871         * tests/test-linked_list.c: New file.
64872         * tests/test-avltree_list.c: New file.
64873         * tests/test-rbtree_list.c: New file.
64874         * tests/test-linkedhash_list.c: New file.
64875         * tests/test-avltreehash_list.c: New file.
64876         * tests/test-rbtreehash_list.c: New file.
64877         * tests/test-avltree_oset.c: New file.
64878         * tests/test-rbtree_oset.c: New file.
64879         * MODULES.html.sh (Container data structures): New section.
64880
64881 2006-07-17  Bruno Haible  <bruno@clisp.org>
64882
64883         * m4/gl_list.m4: New file.
64884
64885 2006-07-17  Bruno Haible  <bruno@clisp.org>
64886
64887         * lib/gl_list.h: New file.
64888         * lib/gl_list.c: New file.
64889         * lib/gl_array_list.h: New file.
64890         * lib/gl_array_list.c: New file.
64891         * lib/gl_carray_list.h: New file.
64892         * lib/gl_carray_list.c: New file.
64893         * lib/gl_linked_list.h: New file.
64894         * lib/gl_linked_list.c: New file.
64895         * lib/gl_anylinked_list1.h: New file.
64896         * lib/gl_anylinked_list2.h: New file.
64897         * lib/gl_avltree_list.h: New file.
64898         * lib/gl_avltree_list.c: New file.
64899         * lib/gl_anyavltree_list1.h: New file.
64900         * lib/gl_anyavltree_list2.h: New file.
64901         * lib/gl_rbtree_list.h: New file.
64902         * lib/gl_rbtree_list.c: New file.
64903         * lib/gl_anyrbtree_list1.h: New file.
64904         * lib/gl_anyrbtree_list2.h: New file.
64905         * lib/gl_anytree_list1.h: New file.
64906         * lib/gl_anytree_list2.h: New file.
64907         * lib/gl_linkedhash_list.h: New file.
64908         * lib/gl_linkedhash_list.c: New file.
64909         * lib/gl_anyhash_list1.h: New file.
64910         * lib/gl_anyhash_list2.h: New file.
64911         * lib/gl_avltreehash_list.h: New file.
64912         * lib/gl_avltreehash_list.c: New file.
64913         * lib/gl_rbtreehash_list.h: New file.
64914         * lib/gl_rbtreehash_list.c: New file.
64915         * lib/gl_anytreehash_list1.h: New file.
64916         * lib/gl_anytreehash_list2.h: New file.
64917
64918         * lib/gl_oset.h: New file.
64919         * lib/gl_oset.c: New file.
64920         * lib/gl_array_oset.h: New file.
64921         * lib/gl_array_oset.c: New file.
64922         * lib/gl_avltree_oset.h: New file.
64923         * lib/gl_avltree_oset.c: New file.
64924         * lib/gl_rbtree_oset.h: New file.
64925         * lib/gl_rbtree_oset.c: New file.
64926         * lib/gl_anytree_oset.h: New file.
64927
64928 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * m4/mkancesdirs.m4: New file.
64931         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64932         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64933         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64934         it.
64935
64936 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64937
64938         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64939         * lib/mkancesdirs.h: New files.
64940         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64941         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64942         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64943         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64944         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64945         callers changed.  Revamp internals significantly, by not
64946         attempting to create directories that are temporarily more
64947         permissive than the final results.  Do not attempt to use
64948         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64949         This removes some race conditions, fixes some bugs, and simplifies
64950         things.  Use new dirchownmod function to do owner and mode changes.
64951         * lib/mkdir-p.h: Likewise.
64952         * lib/modechange.c (octal_to_mode): New function.
64953         (struct mode_change): New member mentioned.
64954         (make_node_op_equals): New arg mentioned.  All callers changed.
64955         (mode_compile): Keep track of which mode bits the user has explicitly
64956         mentioned.
64957         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64958         New arg PMODE_BITS, to keep track of which mode bits the user
64959         mentioned; it treats S_ISUID and S_ISGID speciall.
64960         All callers changed.
64961         * lib/modechange.h: Likewise.
64962
64963 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * MODULES.html.sh: Add mkancestors.
64966         * modules/mkancesdirs: New module.
64967         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64968         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64969         The chdir-safer and afs files are now orphans; I'll remove them
64970         unless someone speaks up.
64971         Add lib/dirchownmod.c, lib/dirchownmod.h.
64972         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64973         Add lchown, mkancesdirs.
64974         (Maintainer): Add self.
64975
64976 2006-07-15  Karl Berry  <karl@gnu.org>
64977
64978         * gnulib-tool: help message wording/arrangement.
64979
64980 2006-07-14  Simon Josefsson  <jas@extundo.com>
64981
64982         * doc/gnulib.texi (Libtool and Windows): New section.
64983
64984 2006-07-12  Simon Josefsson  <jas@extundo.com>
64985
64986         * modules/gendocs (License): Fix license, approved by Karl.
64987
64988 2006-07-12  Eric Blake  <ebb9@byu.net>
64989
64990         * MODULES.html.sh: Add gendocs.
64991
64992 2006-07-11  Eric Blake  <ebb9@byu.net>
64993
64994         * modules/fdl: New module, to install doc/fdl.texi.
64995         * MODULES.html.sh: Add new section for documentation modules.
64996         * gnulib-tool: Avoid space-tab.
64997         (--doc-base): New option, to manage files from doc.
64998
64999 2006-07-11  Eric Blake  <ebb9@byu.net>
65000
65001         * m4/absolute-header.m4: Fix comments to match recent change.
65002
65003 2006-07-11  Eric Blake  <ebb9@byu.net>
65004
65005         * gnulib-tool: List --doc-base before --tests-base.
65006
65007 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65008
65009         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65010
65011 2006-07-11  Bruno Haible  <bruno@clisp.org>
65012
65013         * README: Mention where to put documentation.
65014
65015 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65016
65017         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65018
65019 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65022         to stdint.m4.
65023
65024 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65025
65026         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65027         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65028         "no/such/file/stdint.h" when there is no such file, so that
65029         the resulting C code can be parsed by dodgy compilers.
65030         Problems reported by Bob Proulx.
65031
65032 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65033
65034         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65035         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65036         macros into the GNU _D_EXACT_NAMLEN.
65037         * lib/savedir.c:  Likewise.
65038         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65039
65040 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65041         and Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65044         * m4/savedir.m4:
65045         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65046         macros into the GNU _D_EXACT_NAMLEN.
65047
65048 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65051         around the absolute name, to work around a problem with the HP-UX
65052         11.23 native C compiler, reported by Bob Proulx.
65053
65054 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65055
65056         * doc/maintain.texi, make-stds.texi: Sync from
65057         <http://savannah.gnu.org/projects/gnustandards>.
65058
65059 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65062
65063 2006-07-09  Jim Meyering  <jim@meyering.net>
65064
65065         * m4/glob.m4: Remove a doubled word in a comment.
65066
65067 2006-07-09  Jim Meyering  <jim@meyering.net>
65068
65069         * lib/argp-pv.c: Remove a doubled word in a comment.
65070         * lib/check-version.c (check_version): Likewise.
65071         * lib/javacomp.c (compile_java_class): Likewise.
65072
65073 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65074
65075         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65076         for the benefit of people using Autoconf 2.60.  If you want to
65077         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65078         (or m4/onceonly.m4, if pre-2.57) manually.
65079
65080 2006-07-08  Jim Meyering  <jim@meyering.net>
65081
65082         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65083         comment.
65084         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65085         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65086         comment.
65087
65088 2006-07-08  Jim Meyering  <jim@meyering.net>
65089
65090         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65091
65092 2006-07-07  Simon Josefsson  <jas@extundo.com>
65093
65094         * tests/test-crc.c: Change expected crc value, the test vector
65095         were probably computed using the old broken crc.c?
65096
65097 2006-07-06  Simon Josefsson  <jas@extundo.com>
65098
65099         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65100         now the canonical place for the M4 file).
65101
65102         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65103         from the sys_socket dependency now.
65104
65105         * modules/inet_pton (Files): Ditto.
65106
65107         * modules/inet_ntop (Files): Ditto.
65108
65109 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65110
65111         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65112         not gl_PREREQ_GETUSERSHELL.
65113
65114 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65115
65116         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65117         with only one argument, for Autoconf 2.60.
65118         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65119         expand to nothing, so add a shell command to avoid syntax error.
65120         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65121
65122 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65123
65124         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65125
65126 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65127
65128         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65129         no longer needed.  Check for isblank decl.
65130         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65131         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65132         of existence.
65133
65134 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * lib/getloadavg.c: Use __VMS, not VMS.
65137         * lib/getopt.c: Likewise.
65138         * lib/getpagesize.h: Likewise.
65139         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65140         and probably does not work.
65141
65142 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * lib/.cppi-disable: Add wcwidth.
65145         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65146         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65147         (ISGRAPH): Remove.  All uses changed to isgraph.
65148         (FOLD) [!defined _LIBC]: Remove special case.
65149         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65150         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65151         HAVE_ISBLANK.
65152         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65153         case.
65154
65155 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65156
65157         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65158         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65159         brackets.  Other minor changes to suppress some compiler
65160         warnings.
65161
65162 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65163         and Paul Eggert  <eggert@cs.ucla.edu>
65164
65165         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65166         of invoking obsolescent AC_HEADER_DIRENT macro.
65167         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65168         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65169         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65171         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65172         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65173         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65174         * m4/readdir.m4: Remove; no longer needed.
65175
65176 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65177         and Paul Eggert  <eggert@cs.ucla.edu>
65178
65179         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65180         Don't worry about this obsolete case any more.
65181         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65182         directories.
65183         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65184         worry about this obsolete case any more.
65185         * lib/fts.c: Likewise.
65186         * lib/getcwd.c: Likewise.
65187         * lib/glob.h: Likewise.
65188         * lib/savedir.c: Likewise.
65189
65190 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65193         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65194         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65195         needed.
65196         All uses removed.
65197         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65198         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65199         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65200         needed.
65201         * m4/getdate.m4 (gl_GETDATE): Likewise.
65202         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65203         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65204         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65205         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65206         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65207         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65208         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65209         needed.
65210
65211 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         * lib/memcasecmp.c: Include <limits.h>.
65214         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65215         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65216         Don't assume isdigit succeeds only on '0' through '9'.
65217
65218 2006-07-05  Eric Blake  <ebb9@byu.net>
65219
65220         * modules/getaddrinfo (Depends-on): Add snprintf.
65221
65222 2006-07-05  Eric Blake  <ebb9@byu.net>
65223
65224         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65225         to avoid 'header present but could not be compiled' on cygwin.
65226
65227 2006-07-05  Eric Blake  <ebb9@byu.net>
65228
65229         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65230         missing from netdb.h.
65231         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65232
65233 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65234
65235         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65236         no longer needed.
65237         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65238         * m4/getdate.m4 (gl_GETDATE): Likewise.
65239         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65240         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65241         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65242         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65243         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65244
65245 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65246
65247         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65248         All uses of is_space replaced by isspace.
65249         * lib/exit.h: Don't talk about STDC_HEADERS.
65250         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65251         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65252         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65253         replaced by isprint etc.
65254         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65255         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65256         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65257         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65258         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65259         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65260
65261 2006-07-05  Bruno Haible  <bruno@clisp.org>
65262
65263         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65264         the function exists, before testing against AIX.
65265         Reported by Martin Lambers <marlam@marlam.de>.
65266
65267 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65270         From Mark D. Baushke.
65271
65272 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65275         to the absolute name, not just one, to bypass Sun C 5.8's
65276         "warning: #include of /usr/include/... may be non-portable".
65277
65278 2006-07-04  Eric Blake  <ebb9@byu.net>
65279
65280         * modules/dirname-tests: New test module.
65281         * tests/test-dirname.c: New file, replacing dirname.c
65282         TEST_DIRNAME section that was recently deleted.
65283
65284 2006-07-04  Bruno Haible  <bruno@clisp.org>
65285
65286         Assume ANSI C header files and <ctype.h> functions.
65287         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65288         (mbsnwidth): Use isprint, iscntrl instead.
65289
65290 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         Merge from coreutils.
65293         * MODULES.html.sh: Add xstrtold.
65294         * modules/xstrtold: New file.
65295         * modules/cycle-check (Files): Add lib/same-inode.h.
65296         * modules/dirname (Files): Add m4/double-slash-root.m4.
65297         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65298         * modules/mkdir-p (Files): Add lib/same-inode.h.
65299         * modules/same (Files): Add lib/same-inode.h.
65300
65301 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65302
65303         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65304         This is to keep the terminology clean; POSIX talks about
65305         "absolute pathnames", not "full pathnames", but the GNU
65306         Coding Standards say to use "path" for something else;
65307         so use "absolute" to keep both sides happy.
65308         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65309         Set gl_absolute_header, not gl_full_header_path.
65310         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65311         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65312         All uses changed.
65313
65314         Merge from coreutils.
65315
65316         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65319         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65320         want to require the building of c-strtod.o.
65321         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65322         needs -lm directly.
65323         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65324
65325         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65326
65327         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65328         --as-needed option if available.  Problem reported by Albert Chin in
65329         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65330         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65331         cc merely issues a bunch of annoying warnings for --as-needed
65332         (this problem was reported by Bob Proulx).  Also, try linking with
65333         -lm to detect a bug in binutils 2.16 (this problem was reported
65334         by Ralf Wildenhues).
65335
65336         2006-06-18  Jim Meyering  <jim@meyering.net>
65337
65338         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65339         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65340         macro.
65341         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65342         also check for glibc-2.4's abort-inducing bug.
65343
65344         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65345         Low-probability clean-up should be to use rmdir to get rid of
65346         the just-created directory, not unlink.
65347
65348         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65349         configure fail, and request a bug report to inform us about it.
65350         Add a comment that, barring reports to the contrary, in 2007 we'll
65351         assume ftruncate is universally available.
65352
65353         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65356
65357         2006-03-12  Jim Meyering  <jim@meyering.net>
65358
65359         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65360         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65361         * m4/same.m4 (gl_SAME): Likewise.
65362         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65363
65364         2006-03-11  Eric Blake  <ebb9@byu.net>
65365
65366         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65367         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65368         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65369         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65370
65371 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65374         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65375         reported by Mark D. Baushke, one in
65376         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65377
65378         Merge from coreutils.
65379
65380         * lib/.cppi-disable: Add stdint_.h.
65381         * lib/.cvsignore: Add stdint.h.
65382
65383         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65386         both double and long double versions.
65387         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65388         * lib/xstrtold.c: New file.
65389         * lib/xstrtod.h (xstrtold): New decl.
65390
65391         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         * lib/filemode.c (setst): Remove.
65394         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65395         (arguably) clearer, and the generated code is a bit smaller on my
65396         Debian GNU/Linux stable x86 host.
65397
65398         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65401         Assume that filemode.h includes sys/types.h and sys/stat.h.
65402         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65403         (ftypelet): Reorder to put common cases first, for efficiency.
65404         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65405         to do 'M'.
65406         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65407         of 10, for compatibility with FreeBSD.  All callers changed.
65408         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65409         types that can't be deduced solely from st_mode.  First arg is now a
65410         const pointer.
65411         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65412         (strmode): Renamed from mode_string.
65413         (filemodestring): New decl.
65414         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65415         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65416         needed.
65417         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65418
65419         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65420
65421         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65422         fsusage.h now does that.  Include fsusage.h first, to test interface.
65423         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65424         at most one method (the old code could have generated decls that
65425         didn't conform to C89, not that this was ever exercised).
65426         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65427
65428         2006-03-19  Jim Meyering  <jim@meyering.net>
65429
65430         Work even in a chroot where d_ino values for entries in "/"
65431         don't match the stat.st_ino values for the same names.
65432         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65433         number, iterate through all entries again, using lstat instead.
65434         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65435         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65436
65437         * lib/getcwd.c (__getcwd): Clarify a comment.
65438         Use memcpy in place of a call to strcpy.
65439
65440         2006-03-12  Jim Meyering  <jim@meyering.net>
65441
65442         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65443         matches that of the current directory (which we're about to chdir ".."
65444         out of), then save the dev-ino of the parent, instead.
65445
65446         * lib/same-inode.h (SAME_INODE): New file/macro.
65447         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65448         Include "same-inode.h", instead.
65449         * lib/same.c: Likewise.
65450         * lib/cycle-check.h: Include "same-inode.h".
65451         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65452         * lib/cycle-check.c (SAME_INODE): Remove definition.
65453         * lib/root-dev-ino.h: Include "same-inode.h".
65454
65455         2006-03-11  Eric Blake  <ebb9@byu.net>
65456
65457         * lib/same.c (same_name): s/base_name/last_component/
65458         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65459         * lib/filenamecat.c (file_name_concat): Likewise.
65460
65461         2006-03-11  Eric Blake  <ebb9@byu.net>,
65462                     Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65465         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65466         drive prefix.
65467         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65468         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65469         (last_component): New method.
65470         * lib/dirname.c (dir_len): Determine when drive letters need a
65471         subsequent slash.  Preserve // when it is special.
65472         (dir_name): Don't append dot when drive letter is absolute.
65473         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65474         * lib/basename.c (base_name): New semantics - malloc the result.
65475         Preserve // when it is special.  Preserve relative files that look
65476         like drive letters.
65477         (base_len): Preserve // when it is special.
65478         (last_component): New method, similar to old base_name semantics.
65479         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65480         base_name.  Strip redundant slashes from ///.
65481
65482 2006-07-03  Jim Meyering  <jim@meyering.net>
65483
65484         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65485         macro is used before the first cycle_check call.
65486
65487 2006-07-03  Eric Blake  <ebb9@byu.net>
65488
65489         * modules/dirname (Depends-on): Add xstrndup.
65490
65491 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65492
65493         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65494         test cases, so that config.log is a bit easier to follow.
65495
65496 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65499         both are 64 bits, since this seems to be the tradition, and this
65500         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65501         we ever run into a host that prefers long long to long in this
65502         case, we'll need another configure-time test.  Problem reported by
65503         Jim Meyering.
65504
65505 2006-07-02  Eric Blake  <ebb9@byu.net>
65506
65507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65508
65509 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * modules/inttypes (Depends-on): No longer depends on stdint.
65512         * modules/stdint (Description): Say more about assumptions.
65513         Say that the fast types might differ.  Say macros are used.
65514         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65515         (Makefile.am): Revise list of substituted symbols to match
65516         new stdint.m4.
65517         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65518         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65519         * tests/test-stdint.c (verify_same_types)
65520         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65521         the code conforms to C99/C89.
65522         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65523         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65524
65525 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65526
65527         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65528         but fix a bug, by requiring at least 64 bits.
65529         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65530         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65531         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65532         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65533
65534         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65535         changes.  Make 2.59 a prerequisite.  Check and substitute for
65536         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65537         inttypes.h.  Do not use special include files; just use the
65538         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65539         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65540         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65541         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65542         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65543         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65544         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65545         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65546         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65547         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65548         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65549         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65550         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65551         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65552         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65553         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65554         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65555         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65556         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65557         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65558         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65559         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65560         not check for things that C99 does not require, e.g., int8_t.  If
65561         a test isn't needed unless <stdint.h> isn't working, and is
65562         unlikely to be needed for any other reason, then don't do it
65563         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65564         size_t, since we assume C89 freestanding at least.  Do not check
65565         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65566         the right thing even if the types are not defined.  Instead use:
65567         (gl_STDINT_TYPE_PROPERTIES): New macro.
65568         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65569         testing whether <sys/types.h> clashes, as Autoconf does this for
65570         us now.  All uses removed.
65571         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65572         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65573         (gl_CHECK_TYPE_SAME):
65574         Remove; no longer needed.
65575         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65576         exists, since we'll return 0 anyway in that case.
65577         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65578
65579 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65580
65581         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65582         possible collision with system files.
65583         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65584         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65585         WCHAR_MIN and WCHAR_MAX in this case.
65586         (<stddef.h>): Do not include; no longer needed.
65587         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65588         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65589         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65590         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65591         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65592         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65593         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65594         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65595         !defined(__c99))]: Include in this case too, since it's harmless
65596         now.
65597         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65598         dangerous to do so.
65599         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65600         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65601         (_STDINT_MIN, _STDINT_MAX): New macros.
65602         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65603         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65604         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65605         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65606         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65607         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65608         macros, not typedefs; this simplifies things quite a bit.
65609         Use long int for all types narrower than int64_t.
65610         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65611         Define in terms of long long int or int64_t or long int,
65612         not int64_t or int32_t.  This saves some compile-time testing.
65613         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65614         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65615         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65616         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65617         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65618         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65619         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65620         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65621         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65622         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65623         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65624         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65625         undef any previous version and define our own version, for
65626         simplicity and consistency with the new macros for types.
65627         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65628         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65629         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65630         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65631         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65632         @WINT_T_SUFFIX@ to keep things simple here.
65633         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65634         Simplify by assuming typical 8/16/32/64 host, since we're
65635         already doing that elsewhere anyway.
65636         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65637         and assume long long int is 64 bits if available.  This
65638         speeds up 'configure'.
65639
65640 2006-07-01  Eric Blake  <ebb9@byu.net>
65641
65642         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65643         Reported by Andreas Buening.
65644
65645 2006-07-01  Eric Blake  <ebb9@byu.net>
65646
65647         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65648
65649 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65650
65651         * lib/getaddrinfo.c: fixed typo
65652
65653 2006-06-29  Jim Meyering  <jim@meyering.net>
65654
65655         * modules/strftime (Maintainer): Add my name, since with the
65656         FPRINTFTIME changes strftime.c has forked from glibc.
65657
65658 2006-06-29  Eric Blake  <ebb9@byu.net>
65659
65660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65661
65662 2006-06-29  Eric Blake  <ebb9@byu.net>
65663
65664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65665
65666 2006-06-29  Eric Blake  <ebb9@byu.net>
65667
65668         * lib/stat_.h: New file.
65669
65670 2006-06-29  Eric Blake  <ebb9@byu.net>
65671
65672         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65673         unused static function.
65674
65675 2006-06-29  Eric Blake  <ebb9@byu.net>
65676
65677         * doc/functions.texi (Function Portability): Document missing lstat
65678         on mingw.
65679
65680 2006-06-29  Eric Blake  <ebb9@byu.net>
65681
65682         * MODULES.html.sh: Add sys_stat.
65683         * modules/sys_stat: New module.
65684         * modules/mkstemp (Depends-on): Add sys_stat.
65685
65686 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65687
65688         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65689
65690 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65691
65692         * m4/c-bs-a.m4: Removed.
65693
65694 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65695
65696         * lib/strftime.c: Assume strftime() exists.
65697
65698 2006-06-29  Derek Price  <derek@ximbiot.com>
65699
65700         * modules/c-bs-a: Removed - \a is C89.
65701         * MODULES.html.sh: Remove c-bs-a.
65702
65703 2006-06-29  Bruno Haible  <bruno@clisp.org>
65704
65705         * modules/wcwidth (License): Change to LGPL.
65706
65707 2006-06-28  Simon Josefsson  <jas@extundo.com>
65708
65709         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65710         on _WIN32.
65711
65712         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65713         getnameinfo.
65714
65715 2006-06-28  Simon Josefsson  <jas@extundo.com>
65716
65717         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65718
65719 2006-06-28  Simon Josefsson  <jas@extundo.com>
65720
65721         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65722         functions there.  It will succeed on Windows XP, but on Windows
65723         2000 and (presumably) earlier, it will fail, and use the internal
65724         re-implementation.
65725         (use_win32_p): New function.
65726         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65727         Support AI_NUMERICSERV to disable getservbyname.
65728         (getnameinfo): New function, only supports
65729         NI_NUMERICHOST|NI_NUMERICSERV for now.
65730
65731         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65732         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65733         getnameinfo.
65734
65735 2006-06-28  Eric Blake  <ebb9@byu.net>
65736
65737         * modules/wcwidth: New file.
65738         * modules/mbchar (Depends-on): Add wcwidth.
65739         * modules/mbswidth (Depends-on): Add wcwidth.
65740         * MODULES.html.sh: Add wcwidth.
65741
65742 2006-06-28  Eric Blake  <ebb9@byu.net>
65743
65744         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65745         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65746
65747 2006-06-28  Eric Blake  <ebb9@byu.net>
65748
65749         * lib/xvasprintf.h: Fix comments.
65750
65751 2006-06-28  Eric Blake  <ebb9@byu.net>
65752
65753         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65754         * lib/mbswidth.c (wcwidth): Move from here...
65755         * lib/wcwidth.h: ...to this new file.
65756
65757 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65758
65759         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65760
65761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65762         it's obsolete.
65763         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65764
65765 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65766
65767         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65768         Autoconf 2.60 says this stuff was obsolete.
65769
65770 2006-06-28  Bruno Haible  <bruno@clisp.org>
65771
65772         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65773
65774 2006-06-28  Bruno Haible  <bruno@clisp.org>
65775
65776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65777         gt_TYPE_WCHAR_T.
65778
65779 2006-06-28  Bruno Haible  <bruno@clisp.org>
65780
65781         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65782         declaration for wcwidth.
65783         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65784
65785 2006-06-28  Bruno Haible  <bruno@clisp.org>
65786
65787         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65788         (mkdir): Define using _mkdir.
65789
65790 2006-06-28  Bruno Haible  <bruno@clisp.org>
65791
65792         * lib/getaddrinfo.h: Fix POSIX URL.
65793         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65794         _WIN32.
65795         (use_win32_p): Make static.
65796         (getaddrinfo): Reject service name if it is empty or does not consist
65797         solely of decimal digits, or if its value is > 65535.
65798         (getnameinfo): Remove useless casts.
65799
65800 2006-06-27  Simon Josefsson  <jas@extundo.com>
65801
65802         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65803         Eggert and Martin Lambers.
65804
65805 2006-06-27  Simon Josefsson  <jas@extundo.com>
65806
65807         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65808         Eggert and Martin Lambers.
65809
65810 2006-06-27  Bruno Haible  <bruno@clisp.org>
65811
65812         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65813         result to 0, not to empty.
65814         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65815
65816 2006-06-27  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65819
65820 2006-06-26  Simon Josefsson  <jas@extundo.com>
65821
65822         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65823         present.
65824
65825 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65826
65827         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65828         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65830
65831 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65832
65833         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65834
65835 2006-06-26  Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65838
65839 2006-06-26  Bruno Haible  <bruno@clisp.org>
65840
65841         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65842
65843 2006-06-26  Bruno Haible  <bruno@clisp.org>
65844
65845         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65846         SGI C compiler in pre-C99 mode.
65847         Suggested by Mark D. Baushke and Larry Jones.
65848
65849 2006-06-26  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65852         WCHAR_MAX.
65853         Reported by Mark D. Baushke and Larry Jones.
65854
65855 2006-06-26  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65858         in pre-C99 mode.
65859         Suggested by Mark D. Baushke and Larry Jones.
65860
65861 2006-06-23  Simon Josefsson  <jas@extundo.com>
65862             Bruno Haible  <bruno@clisp.org>
65863
65864         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65865         Emit mostlyclean-local rule.
65866         (func_emit_tests_Makefile_am): Likewise.
65867         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65868
65869 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65870
65871         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65872
65873 2006-06-23  Bruno Haible  <bruno@clisp.org>
65874
65875         * tests/test-stdint.c: Update to match ISO C 99 Technical
65876         Corrigendum 1.
65877
65878 2006-06-23  Bruno Haible  <bruno@clisp.org>
65879
65880         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65881
65882 2006-06-23  Bruno Haible  <bruno@clisp.org>
65883
65884         * lib/stdint_.h: Treat IRIX like OpenBSD.
65885
65886 2006-06-23  Bruno Haible  <bruno@clisp.org>
65887
65888         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65889         ISO C 99 Technical Corrigendum 1.
65890
65891 2006-06-22  Simon Josefsson  <jas@extundo.com>
65892
65893         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65894         MinGW.
65895
65896 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65899         needed.  Some compiler complained about some of them.  Problem reported
65900         by Larry Jones in
65901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65902
65903 2006-06-21  Simon Josefsson  <jas@extundo.com>
65904
65905         * tests/test-getaddrinfo.c: New file.
65906
65907         * modules/getaddrinfo-tests: New file.
65908
65909         * MODULES.html.sh: Add inet_pton.
65910
65911         * modules/inet_pton: New file.
65912
65913 2006-06-21  Simon Josefsson  <jas@extundo.com>
65914
65915         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65916         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65917         of using the (limited) gnulib implementation on Windows XP.
65918
65919         * m4/inet_pton.m4: New file.
65920
65921 2006-06-21  Simon Josefsson  <jas@extundo.com>
65922
65923         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65924         variable.
65925
65926         * lib/socket_.h: Don't define WINVER.
65927
65928         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65929         slightly modified to work in gnulib.
65930
65931 2006-06-21  Simon Josefsson  <jas@extundo.com>
65932
65933         * doc/gnulib.texi (Windows sockets): Add.
65934
65935 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65936
65937         * lib/read-file.c (fread_file): Start with buffer allocation of
65938         0 bytes rather than 1 byte; this simplifies the code.
65939         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65940         code to free buffer and save/restore errno.
65941         (internal_read_file): Remove unused local.
65942
65943 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65946         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65947         Problem reported by Denis Excoffier in
65948         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65949
65950 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65951
65952         * modules/sys_socket, modules/socklen: Include sys/types since
65953         FreeBSD 4.x's sys/socket.h needs it.
65954
65955 2006-06-19  Simon Josefsson  <jas@extundo.com>
65956
65957         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65958
65959 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65962
65963 2006-06-19  Bruno Haible  <bruno@clisp.org>
65964
65965         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65966         and FULL_PATH_INTTYPES_H in angle brackets.
65967         Reported by Mark D. Baushke <mdb@gnu.org>.
65968
65969 2006-06-17  Eric Blake  <ebb9@byu.net>
65970
65971         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65972         errno.
65973
65974 2006-06-17  Bruno Haible  <bruno@clisp.org>
65975
65976         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65977         <sys/inttypes.h>.
65978
65979 2006-06-17  Bruno Haible  <bruno@clisp.org>
65980
65981         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65982         whether errno is declared. Assume <errno.h> declares errno.
65983
65984 2006-06-17  Bruno Haible  <bruno@clisp.org>
65985
65986         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65987
65988 2006-06-17  Bruno Haible  <bruno@clisp.org>
65989
65990         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65991         problem on Solaris 2.5.1.
65992
65993 2006-06-16  Eric Blake  <ebb9@byu.net>
65994
65995         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65996         * lib/unicodeio.c [!defined errno]: Likewise.
65997         * lib/strtol.c [!defined errno]: Likewise.
65998         * lib/strtod.c [!defined errno]: Likewise.
65999
66000 2006-06-15  Eric Blake  <ebb9@byu.net>
66001
66002         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66003
66004 2006-06-15  Eric Blake  <ebb9@byu.net>
66005
66006         * config/srclist.txt (ssize_t.m4): Lose sync.
66007
66008 2006-06-15  Bruno Haible  <bruno@clisp.org>
66009
66010         * modules/stdint (Files): Include m4/full-header-path.m4,
66011         m4/size_max.m4, m4/wchar_t.m4.
66012         (Makefile.am): Many more substitutions.
66013         * modules/stdint-tests: New file.
66014         * tests/test-stdint.c: New file.
66015
66016 2006-06-15  Bruno Haible  <bruno@clisp.org>
66017
66018         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66019         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66020         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66021         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66022         gl_CHECK_TYPE_SAME): New macros.
66023
66024 2006-06-15  Bruno Haible  <bruno@clisp.org>
66025
66026         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66027
66028 2006-06-15  Bruno Haible  <bruno@clisp.org>
66029
66030         * lib/stdint_.h: Rewritten to be fully auto-configured.
66031         Fixes bug on HP-UX/IA64.
66032
66033 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * lib/getdate.y (__attribute__): Don't define if already defined.
66036         Problem reported by Larry Jones.
66037         * lib/utimens.c (__attribute__): Likewise.
66038
66039 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66042         reported by Andreas Schwab.
66043
66044 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66045             Bruno Haible  <bruno@clisp.org>
66046
66047         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66048         check for the declaration of strnlen and a run test that exposes the
66049         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66050         rpl_strndup.
66051
66052 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66053             Bruno Haible  <bruno@clisp.org>
66054
66055         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66056
66057 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66058
66059         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66060         compile test, for Tru64 4.0D.
66061
66062 2006-05-28  Karl Berry  <karl@gnu.org>
66063
66064         * config/srclist.txt (printf-args.c): lose sync.
66065
66066 2006-05-26  Martin Lambers  <marlam@marlam.de>
66067
66068         * lib/getpass.c: Updates the test for the native W32 API, and adds
66069         missing includes, thus fixing compilation warnings.
66070
66071 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66072
66073         * lib/exclude.c (exclude_fnmatch): New function.
66074         (excluded_file_name): Call exclude_fnmatch.
66075         * lib/exclude.h (excluded_file_name): New prototype
66076
66077 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66078
66079         * lib/tempname.c (small_open, large_open): New macros.
66080         (__open, __open64) [!_LIBC]: Remove.
66081         (__gen_tempname): Use small_open and large_open instead of __open
66082         and __open64.  This fixes a portability bug on HP-UX 11.11i
66083         reported by Simon Wing-Tang in
66084         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66085
66086 2006-05-24  Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66089         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66090         Reported by Thorsten Maerz <torte@netztorte.de> via
66091         Aaron Stone <aaron@serendipity.cx>.
66092
66093 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66096         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66097         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66098         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66099         not really conditional on the cache.
66100         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66101
66102 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66103
66104         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66105         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66106         (my_usleep): Don't mishandle maximum value.
66107
66108 2006-05-19  Jim Meyering  <jim@meyering.net>
66109
66110         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66111
66112 2006-05-17  Bruno Haible  <bruno@clisp.org>
66113
66114         Cygwin portability.
66115         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66116
66117 2006-05-17  Bruno Haible  <bruno@clisp.org>
66118
66119         * lib/stdint_.h: Fix recognition of Cygwin.
66120
66121 2006-05-15  Bruno Haible  <bruno@clisp.org>
66122
66123         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66124         on libtool patch by Ralf Wildenhues.
66125
66126 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66129         test for C99 conformance; (bool) 0.5 is an integer constant
66130         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66131         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66132
66133 2006-05-11  Simon Josefsson  <jas@extundo.com>
66134
66135         * m4/xvasprintf.m4: Fix obvious typo.
66136
66137 2006-05-11  Jim Meyering  <jim@meyering.net>
66138
66139         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66140         James Lemley.
66141
66142 2006-05-10  Simon Josefsson  <jas@extundo.com>
66143
66144         * lib/md4.c: Typo fix, update copyright years.
66145         (K1, K2): Don't use L because it turn computations into 64-bit on
66146         64-bit platforms.
66147
66148 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66149
66150         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66151         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66152         unwanted sign propagation, e.g., on hosts with 64-bit int.
66153         There still are some problems with reeelly weird theoretical hosts
66154         (e.g., 33-bit int) but it's not worth worrying about now.
66155         * lib/sha1.c (rol): Likewise.
66156         (K1, K2, K3, K4): Remove unnecessary L suffix.
66157
66158 2006-05-10  Bruno Haible  <bruno@clisp.org>
66159
66160         * lib/des.c: Cast to avoid warnings.
66161
66162 2006-05-09  Bruno Haible  <bruno@clisp.org>
66163
66164         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66165         (Depends-on): Depend also on xsize, stdarg.
66166         (configure.ac): Add gl_XVASPRINTF.
66167
66168 2006-05-09  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/xvasprintf.m4: New file.
66171
66172 2006-05-09  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66175         (EOVERFLOW): Define fallback value.
66176         (xstrcat): New function.
66177         (xvasprintf): Recognize the special case of a string concatenation.
66178
66179 2006-05-08  Eric Blake  <ebb9@byu.net>
66180
66181         * gnulib-tool (func_version): Base copyright year on CVS date.
66182         (func_emit_copyright_notice): New function.
66183         (func_emit_lib_Makefile_am): Use it.
66184         (func_emit_tests_Makefile_am): Likewise.
66185         (func_import): Likewise.
66186
66187 2006-05-08  Bruno Haible  <bruno@clisp.org>
66188
66189         * modules/stdarg: New file.
66190         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66191
66192 2006-05-08  Bruno Haible  <bruno@clisp.org>
66193
66194         * m4/stdarg.m4: New file, from GNU gettext.
66195
66196 2006-05-08  Bruno Haible  <bruno@clisp.org>
66197
66198         * config/srclist.txt (build-aux/config.rpath): different from latest
66199         release.
66200
66201 2006-05-08  Bruno Haible  <bruno@clisp.org>
66202
66203         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66204
66205 2006-05-05  Jim Meyering  <jim@meyering.net>
66206
66207         * m4/warning.m4: New file, derived from bison's file by the same name.
66208
66209 2006-05-03  Bruno Haible  <bruno@clisp.org>
66210
66211         * lib/stdint_.h: Shorter URL.
66212         * lib/inttypes.h: Likewise.
66213
66214 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66215
66216         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66217
66218 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66219
66220         * lib/verify.h: Document the internals better.  Most of this change
66221         was written by Bruno Haible.
66222
66223 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * doc/verify.texi: New file, partly based on a proposal by
66226         Bruno Haible.
66227
66228 2006-05-02  Bruno Haible  <bruno@clisp.org>
66229
66230         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66231         test from here...
66232         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66233
66234 2006-04-29  Bruno Haible  <bruno@clisp.org>
66235
66236         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66237         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66238
66239 2006-04-29  Bruno Haible  <bruno@clisp.org>
66240
66241         * gnulib-tool: Make --update option actually work.
66242
66243 2006-04-29  Bruno Haible  <bruno@clisp.org>
66244
66245         * doc/gcd.texi: New file.
66246         * doc/gnulib.texi: Include it.
66247
66248 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66249
66250         * lib/getdate.y (get_date): When adding relative date, start with the
66251         initial time, not with the result of the first mktime call.
66252
66253 2006-04-25  Bruno Haible  <bruno@clisp.org>
66254
66255         * gnulib-tool (func_import): Output the include directives in three
66256         blocks, sorted separately.
66257         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66258
66259 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66260
66261         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66262         to define main with arguments, for C++.  Reported by Eric Blake.
66263         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66264         Prefer 'int main ()' to 'int main (void)', for C++.
66265         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66266         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66267         for 'main', for C99 and C++.
66268
66269 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66272         Don't assume that exit status -1 is valid.
66273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66274         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66275         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66276         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66277         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66278         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66279         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66280         functions can be used without declaring them, or that you can
66281         exit with status -1.
66282         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66283
66284 2006-04-24  Karl Berry  <karl@gnu.org>
66285
66286         * config/srclist.txt (longdouble.m4): sync lost.
66287
66288 2006-04-24  Eric Blake  <ebb9@byu.net>
66289
66290         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66291
66292 2006-04-24  Bruno Haible  <bruno@clisp.org>
66293
66294         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66295         poll() implementation in AIX.
66296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66297
66298 2006-04-24  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66301         assigned exactly once.
66302
66303 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66304             Bruno Haible  <bruno@clisp.org>
66305
66306         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66307         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66308         for AM_CPPFLAGS.
66309
66310 2006-04-23  Bruno Haible  <bruno@clisp.org>
66311
66312         * modules/copy-file: Depend on unistd.
66313         * modules/execute: Likewise.
66314         * modules/fatal-signal: Likewise.
66315         * modules/findprog: Likewise.
66316         * modules/mkdtemp : Likewise.
66317         * modules/pipe: Likewise.
66318         * modules/wait-process: Likewise.
66319
66320 2006-04-23  Bruno Haible  <bruno@clisp.org>
66321
66322         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66323         condition was already detected.
66324         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66325
66326 2006-04-23  Bruno Haible  <bruno@clisp.org>
66327
66328         * lib/copy-file.c: Include <unistd.h> unconditionally.
66329         * lib/execute.c: Likewise.
66330         * lib/fatal-signal.c: Likewise.
66331         * lib/findprog.c: Likewise.
66332         * lib/mkdtemp.c: Likewise.
66333         * lib/pipe.h: Likewise.
66334         * lib/pipe.c: Likewise.
66335         * lib/wait-process.h: Likewise.
66336
66337 2006-04-23  Bruno Haible  <bruno@clisp.org>
66338
66339         * gnulib-tool (func_usage): Fix --import description. Document
66340         --update.
66341         (func_import): Create temporary file in a temporary directory, if
66342         --dry-run is specified. Silence errors from 'grep' when there are no
66343         m4 files in $m4dir.
66344         (func_create_testdir): Silence errors from 'grep' when there are no
66345         m4 files in $m4dir.
66346         Reported by Karl Berry <karl@freefriends.org>.
66347
66348 2006-04-20  Bruno Haible  <bruno@clisp.org>
66349
66350         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66351         one argument, so that the code will be portable to Autoconf 2.60.
66352         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66353         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66354         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66355
66356 2006-04-19  Derek Price  <derek@ximbiot.com>
66357             Eric Blake  <ebb9@byu.net>
66358
66359         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66360         rather than "/full/path.h".  Update comment to match.  Shorten &
66361         generalize m4_translit call via AS_TR_CPP.
66362
66363 2006-04-19  Derek Price  <derek@ximbiot.com>
66364             Eric Blake  <ebb9@byu.net>
66365
66366         * lib/inttypes.h: Correct grammar in comment.
66367
66368 2006-04-18  Derek Price  <derek@ximbiot.com>
66369             Paul Eggert  <eggert@cs.ucla.edu>
66370
66371         * modules/inttypes: New file.
66372         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66373
66374 2006-04-18  Derek Price  <derek@ximbiot.com>
66375             Paul Eggert  <eggert@cs.ucla.edu>
66376
66377         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66378         New files.
66379
66380 2006-04-18  Derek Price  <derek@ximbiot.com>
66381             Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * lib/inttypes.h: New file.
66384         * lib/strtoimax.c: Assume <inttypes.h>.
66385
66386 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66389         isn't mounted.  Problem reported by Kir Kolyshkin.
66390
66391 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66394         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66395         Derek R. Price.
66396         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66397         implementation.
66398
66399 2006-04-12  Eric Blake  <ebb9@byu.net>
66400
66401         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66402         is now done automatically by the corresponding Autoconf macro.
66403
66404 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66405
66406         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66407         time_r.h.
66408
66409 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         Merge regex changes from libc, removing some of our
66412         POSIX-conformance changes that were rejected and redoing them in a
66413         less-intrusive way.
66414
66415         * lib/regcomp.c (re_compile_internal, init_dfa):
66416         Length arg is now size_t, not Idx.  All uses changed.
66417         (peek_token): Forward decl now says internal_function.
66418         (__re_error_msgid, __re_error_msgid_idx):
66419         Now static rather than extern with attribute_hidden.
66420         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66421         For some reason libc prefers K&R style defns for external functions.
66422         (regerror) [!defined _LIBC]: Likewise.
66423         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66424         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66425         (build_range_exp, build_collating_symbol):
66426         Use K&R-style defn.
66427         (re_compile_fastmap): Use '\0' to memset, not 0.
66428         (utf8_sb_map): Make the calculations more obvious.
66429         (init_dfa, parse_bracket_exp, build_charclass_op):
66430         Call calloc and cast result, as glibc does.
66431         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66432         (build_range_exp, build_collating_symbol):
66433         Now internal functions.
66434
66435         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66436
66437         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66438         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66439         Don't depend on VMS; depend on __VMS instead, for POSIX
66440         namespace cleanness.
66441         (regoff_t): Define to ssize_t, not long int.
66442
66443         Remove the REG_ macros named below.  Instead, make the old names
66444         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66445         __USE_GNU_REGEX.
66446         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66447         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66448         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66449         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66450         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66451         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66452         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66453         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66454         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66455         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66456         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66457         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66458         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66459         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66460         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66461         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66462         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66463         (REG_NREGS):
66464         Remove.  All uses replaced by the old RE_* names.
66465         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66466         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66467         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66468         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66469         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66470         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66471         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66472         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66473         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66474         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66475         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66476         Don't bother having these macros be independent of each others'
66477         values, since they no longer exist in the POSIX name space.
66478
66479         Rename the following member names back to their old names,
66480         unless !__USE_GNU_REGEX.  All uses changed back.
66481         (buffer): Renamed from re_buffer.
66482         (allocated): Renamed from re_allocated.
66483         (used): Renamed from re_used.
66484         (syntax): Renamed from re_syntax.
66485         (fastmap): Renamed from re_fastmap.
66486         (translate): Renamed from re_translate.
66487         (can_be_null): Renamed from re_can_be_null.
66488         (regs_allocated): Renamed from re_regs_allocated.
66489         (fastmap_accurate): Renamed from re_fastmap_accurate.
66490         (no_sub): Renamed from re_no_sub.
66491         (not_bol): Renamed from re_not_bol.
66492         (not_eol): Renamed from re_not_eol.
66493         (newline_anchor): Renamed from re_newline_anchor.
66494         (num_regs): Renamed from rm_num_regs.
66495         (start): Renamed from rm_start.
66496         (end): Renamed from rm_end.
66497
66498         (free_state): Move up a bit.
66499
66500         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66501         #define to be empty.
66502         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66503         when that is what is intended.
66504         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66505         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66506         (MAX): New macro.
66507         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66508         All uses changed back to re_malloc, etc.  It's now the caller's
66509         responsibility to check for overflow; all callers changed.
66510         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66511         (re_x2nrealloc): Remove.
66512         (free_state): Remove decl.
66513
66514         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66515         (re_set_registers, re_exec):
66516         Use K&R-style defn.
66517
66518         2006-01-31  Roland McGrath  <roland@redhat.com>
66519
66520         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66521         Reported by Mike Frysinger <vapier@gentoo.org>.
66522
66523         2006-01-15  Andreas Jaeger  <aj@suse.de>
66524
66525         [BZ #1950]
66526         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66527         build_wcs_upper_buffer change.
66528         (build_wcs_upper_buffer): Change return type.
66529
66530         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66531
66532         * lib/regex_internal.h: Include <stdint.h> if available.
66533
66534         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66535
66536         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66537
66538         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66539
66540         * lib/regcomp.c: Adjust for changed secondary hash function.
66541
66542         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66543
66544         * lib/regex.h: Pretty printing.
66545         Clean up namespace a bit.
66546
66547         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66548
66549         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66550         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66551
66552         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66553                     Ulrich Drepper  <drepper@redhat.com>
66554
66555         [BZ #1302]
66556         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66557         changed.
66558         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66559
66560         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66561
66562         [BZ #281]
66563         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66564         * lib/regcomp.c: Remove unnecessary uses of
66565         unsigned RE_TRANSLATE_TYPE.
66566         * lib/regex_internal.h: Likewise.
66567         * lib/regex_internal.c: Likewise.
66568         * lib/regexec.c: Likewise.
66569         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66570
66571         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66572
66573         * lib/regexec.c (find_recover_state): Remove unnecessary
66574         initialization.
66575         (transit_state_bkref): Make DFA a const pointer.
66576         (get_subexp): Likewise.
66577         (check_arrival): Likewise.
66578         (update_cur_sifted_state): Likewise.
66579         (re_search_internal): Likewise.
66580         (prune_impossible_nodes): Likewise.
66581         (acquire_init_state_context): Likewise.
66582         (proceed_next_node): Likewise.
66583         (set_regs): Likewise.
66584         (free_fail_stack_return): Likewise.
66585         (check_arrival_expand_ecl): Mark DFA parameter as const.
66586         (check_arrival_expand_ecl_sub): Likewise.
66587         (check_subexp_limits): Likewise.
66588         (sub_epsilon_src_nodes):  Likewise.
66589         (add_epsilon_src_nodes):  Likewise.
66590         (merge_state_array): Likewise.
66591         (update_regs): Likewise.
66592         (build_trtable): Likewise.
66593         (sift_states_backward): Mark MCTX parameter as const.
66594         (build_sifted_states): Likewise.
66595         (update_cur_sifted_state): Likewise.
66596         (sift_states_mkref): Likewise.
66597         (check_arrival_expand_ecl): Mark eclosure as const.
66598         (check_dst_limits_calc_pos_1): Likewise.
66599         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66600         pointer.
66601
66602         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66603
66604         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66605         (transit_state_sb): Likewise.
66606         (transit_state_mb): Likewise.
66607         (sift_states_iter_mb): Likewise.
66608         (check_arrival_add_next_nodes): Likewise.
66609         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66610         [_LIBC] (re_search_2_stub): Use mempcpy.
66611
66612         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66613         mbrtowc for very simple UTF-8 case.
66614
66615         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66616         a pointer-to-const.
66617         (re_acquire_state_context): Likewise.
66618         * lib/regex_internal.h: Adjust prototypes.
66619
66620         * lib/regex.c: Prevent using C++ compilers.
66621
66622         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66623         (re_acquire_state_context): Likewise.
66624
66625 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * modules/regex (Depends-on): Add ssize_t.
66628
66629 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66632         translation table.
66633
66634 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66637
66638 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66639             Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66642         <sys/types.h> and <inttypes.h>.
66643
66644 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66645
66646         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66647         `__error_t_defined', so argp.h will not typedef the former.
66648
66649 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66652         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66653         glibc names.  Even if glibc is changed to conform to POSIX, the
66654         traditional names will be available anyway, since regex depends on
66655         the extensions module.  Also, fix a longstanding typo in the
66656         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66657         reported by Emanuele Giaquinta.  Also, change sense of cached
66658         variable, so that the message makes sense.
66659
66660 2006-03-24  Simon Josefsson  <jas@extundo.com>
66661
66662         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66663         including some doc fixes.
66664         (base64_encode_alloc): Fix +1 bug on allocation failures.
66665
66666 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66667
66668         * lib/base64.c (base64_encode): Do not read past end of array with
66669         unsanitized input on systems with CHAR_BIT > 8.
66670
66671 2006-03-24  Eric Blake  <ebb9@byu.net>
66672
66673         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66674
66675 2006-03-22  Karl Berry  <karl@gnu.org>
66676
66677         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66678         * config/srclistvars.sh (COREUTILS): new var.
66679
66680 2006-03-17  Jim Meyering  <jim@meyering.net>
66681
66682         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66683         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66684
66685 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66686
66687         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66688         no longer needs it.  Instead, check that regoff_t is as least
66689         as wide as ptrdiff_t.
66690
66691         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66692         so that our regex.h stays compatible with the installed regex.
66693         This is helpful for installers who configure --without-included-regex.
66694         Problem reported by Emanuele Giaquinta.
66695
66696 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66699         Typedef to long int, not to off_, as POSIX will likely change
66700         in that direction.
66701
66702 2006-03-15  Eric Blake  <ebb9@byu.net>
66703
66704         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66705
66706 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66707
66708         * lib/argp-help.c (validate_uparams): Fix typo
66709         * lib/argp-parse.c (argp_default_options): Consistently begin help
66710         messages with a lowercase letter.
66711
66712 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66715         overrun buffers and shouldn't be used (much as gets shouldn't be
66716         used).
66717         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66718
66719 2006-03-08  Simon Josefsson  <jas@extundo.com>
66720
66721         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66722         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66723
66724 2006-03-08  Simon Josefsson  <jas@extundo.com>
66725
66726         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66727         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66728
66729 2006-03-08  Simon Josefsson  <jas@extundo.com>
66730
66731         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66732         signal that configure disabled the device.
66733
66734 2006-03-08  Simon Josefsson  <jas@extundo.com>
66735
66736         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66737         languages.
66738
66739 2006-03-07  Simon Josefsson  <jas@extundo.com>
66740
66741         * modules/getopt (Depends-on): Add unistd.
66742
66743         * modules/unistd: New file.
66744
66745 2006-03-07  Simon Josefsson  <jas@extundo.com>
66746
66747         * modules/gc-random: New file.
66748
66749 2006-03-07  Simon Josefsson  <jas@extundo.com>
66750
66751         * m4/unistd_h.m4: New file.
66752
66753 2006-03-07  Simon Josefsson  <jas@extundo.com>
66754
66755         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66756         test to be side-effect free by storing the result in the cache
66757         variable gl_cv_lib_readline, and moving the assignment of
66758         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66759         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66760
66761 2006-03-07  Simon Josefsson  <jas@extundo.com>
66762
66763         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66764         error on missing devices (the functions will return an error).
66765
66766         * m4/gc.m4: Move random stuff to gc-random.m4
66767
66768 2006-03-07  Simon Josefsson  <jas@extundo.com>
66769
66770         * lib/unistd_.h: New file.
66771
66772 2006-03-07  Simon Josefsson  <jas@extundo.com>
66773
66774         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66775
66776 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66779         Problem reported by Juan Manuel Guerrero.
66780
66781 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66782
66783         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66784         the unistd module.
66785         * lib/getlogin_r.c: Likewise.
66786         * lib/getlogin_r.h: Likewise.
66787         * lib/glob.c: Likewise.
66788         * lib/pagealign_alloc.c: Likewise.
66789         * lib/unistd_.h: Remove; no longer needed.
66790
66791 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66794         Add unistd.
66795         * modules/c-stack (Depends-on): Add unistd.
66796         * modules/getlogin_r: Likewise.
66797         * modules/glob: Likewise.
66798         * modules/pagealign_alloc: Likewise.
66799         * modules/unistd (Files): Remove lib/unistd_.h.
66800         (EXTRA_DIST): Remove.
66801         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66802         need unistd_.h.
66803         (MOSTLYCLEANFILES): Remove unistd.h-t.
66804
66805 2006-03-03  Simon Josefsson  <jas@extundo.com>
66806
66807         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66808
66809 2006-03-03  Simon Josefsson  <jas@extundo.com>
66810
66811         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66812         libidn and bison.
66813
66814 2006-03-03  Simon Josefsson  <jas@extundo.com>
66815
66816         * build-aux/maint.mk: Add indent target.
66817
66818 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66819
66820         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66821         our replacement poll.h in any case, to avoid a differing
66822         declaration from a system header.  Seen on AIX.
66823
66824 2006-03-01  Simon Josefsson  <jas@extundo.com>
66825
66826         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66827         <kasal@ucw.cz>.
66828
66829 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * modules/gettime (Depends-on): Add extensions module.
66832         * modules/nanosleep (Depends-on): Likewise.
66833         * modules/settime (Depends-on): Likewise.
66834
66835 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66838         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66839         pedantically.
66840         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66841         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66842
66843         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66844         not "==".  Reported by Ralf Wildenhues.
66845
66846 2006-03-01  Karl Berry  <karl@gnu.org>
66847
66848         * doc/Copyright/request-*: new files, synced from gnuorg.
66849
66850 2006-03-01  Karl Berry  <karl@gnu.org>
66851
66852         * config/srclist.txt (Copyright/*): new entries.
66853
66854 2006-02-28  Simon Josefsson  <jas@extundo.com>
66855
66856         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66857
66858 2006-02-27  Simon Josefsson  <jas@extundo.com>
66859
66860         * lib/base64.h: Indent #define's.  From Jim Meyering
66861         <jim@meyering.net>.
66862
66863 2006-02-27  Jim Meyering  <jim@meyering.net>
66864
66865         Revert the change of 2006-02-24, so these files can continue
66866         to be sync'd from gettext.
66867         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66868         of `config.h'.
66869
66870 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66871
66872         * modules/intprops: New file.
66873         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66874         Add intprops.
66875         * modules/getloadavg (Files): Remove lib/intprops.h.
66876         (Depends-on): Add intprops.
66877         * modules/human: Likewise.
66878         * modules/inttostr: Likewise.
66879         * modules/openat: Likewise.
66880         * modules/sig2str: Likewise.
66881         * modules/userspec: Likewise.
66882         * modules/utimecmp: Likewise.
66883         * modules/xnanosleep: Likewise.
66884         * modules/xstrtol: Likewise.
66885
66886 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66887
66888         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66889         * modules/lock-tests (TESTS): Use $(EXEEXT).
66890         * modules/tls-tests: Likewise.
66891         * modules/argp-tests: Likewise.
66892         (check_PROGRAMS): New var, replacing...
66893         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66894
66895 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66896
66897         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66898         `config.h'.
66899
66900 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66901
66902         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66903
66904 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66905
66906         Sync from coreutils.
66907         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66908         gl_CHDIR_SAFER.
66909
66910 2006-02-22  Jim Meyering  <jim@meyering.net>
66911
66912         Sync from coreutils.
66913         * m4/chdir-safer.m4: New file.
66914
66915 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66916
66917         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66918         AT_FDCWD exceeds INT_MAX.
66919         * lib/openat.h (AT_FDCWD): Likewise.
66920
66921 2006-02-17  Eric Blake  <address@hidden>
66922
66923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66924
66925 2006-02-16  Simon Josefsson  <jas@extundo.com>
66926
66927         * modules/getaddrinfo (Depends-on): Add sys_socket.
66928
66929 2006-02-15  Simon Josefsson  <jas@extundo.com>
66930
66931         * build-aux/maint.mk: Add dsyntax-check rule.
66932
66933 2006-02-15  Eric Blake  <ebb9@byu.net>
66934
66935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66936         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66937         'present but cannot compile' warnings on cygwin.
66938         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66939         use ws2tcpip.h if sys/socket.h works.
66940         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66941         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66942
66943 2006-02-14  Simon Josefsson  <jas@extundo.com>
66944
66945         * modules/maintainer-makefile (Files): Rename.
66946
66947         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66948         and (the local) Makefile.cfg to maint-cfg.mk.
66949
66950         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66951         to the latter.
66952
66953         * modules/maintainer-makefile: New module.
66954
66955         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66956         severaly stripped to make it possible to build it up from scratch
66957         with reliable tests.
66958
66959         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66960         fixes to permit overriding the default actions when configure and
66961         makefile are not available.
66962
66963 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66964
66965         Sync from coreutils.
66966         * modules/lstat (Depends-on): Don't depend on xalloc.
66967         (License): Change from GPL to LGPL, since this is now simply a
66968         replacement for a libc function.
66969
66970 2006-02-14  Jim Meyering  <jim@meyering.net>
66971
66972         Sync from coreutils.
66973
66974         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66975         failure on deficient systems, and simplify gnulib lgpl dependencies.
66976         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66977         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66978
66979         * lib/xalloc-die.c: Remove unused definition of N_.
66980
66981 2006-02-14  Jim Meyering  <jim@meyering.net>
66982
66983         Sync from coreutils.
66984         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66985         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66986         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66987         double-quote uses of that variable, to accommodate the rare case in
66988         which getmntent is available in none of the libraries checked.  This
66989         happens at least on FreeBSD 5.0.
66990
66991 2006-02-13  Simon Josefsson  <jas@extundo.com>
66992
66993         * gnulib-tool (Usage): Fix --import, from
66994         karl@freefriends.org (Karl Berry).
66995
66996 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66997
66998         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66999
67000 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67001
67002         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67003         "autoupdate" on 2005-12-12.
67004
67005 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * modules/closeout (Depends-on): Remove atexit.
67008
67009 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67010
67011         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67012         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67013
67014 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67017         __EXTENSIONS__ if this causes compilation to fail.  Problem
67018         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67019         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67020
67021 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67024         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67026         All uses changed.
67027
67028 2006-01-26  Simon Josefsson  <jas@extundo.com>
67029
67030         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67031         prototype is visible on mingw32.
67032
67033         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67034         for mingw32.
67035
67036         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67037         mingw32).
67038
67039 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67040
67041         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67042         attempt to open for write; this always fails, at least on POSIX
67043         hosts.  This reinstates the 2006-01-09 change, which was
67044         inadvertently removed.
67045
67046 2006-01-26  Bruno Haible  <bruno@clisp.org>
67047
67048         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67049         Reported by Paul Eggert.
67050
67051 2006-01-26  Bruno Haible  <bruno@clisp.org>
67052             Paul Eggert  <eggert@cs.ucla.edu>
67053
67054         * lib/stdbool_.h (_Bool)
67055         [(! (defined __cplusplus || defined __BEOS__)
67056           && !defined __GNUC__
67057           && !(defined __HP_cc || defined __xlc__
67058                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67059                || defined __sgi))]:
67060         #define to signed char in these cases too; this simplifies
67061         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67062         etc., separately) and makes it more conservative.
67063
67064 2006-01-25  Simon Josefsson  <jas@extundo.com>
67065
67066         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67067         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67068         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67069
67070 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67071
67072         * lib/argp-namefrob.h: Bugfix. Remove stray #
67073
67074 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67075
67076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67077         so that we test the test.
67078         Check for yet another HP-UX cc bug involving *bool |= bool.
67079
67080 2006-01-25  Karl Berry  <karl@gnu.org>
67081
67082         * config/srclist.txt (vasnprintf.c): sync lost.
67083
67084 2006-01-25  Jim Meyering  <jim@meyering.net>
67085
67086         Sync from the stable (b5) branch of coreutils:
67087
67088         * lib/fts.c (fts_children): Don't let close() clobber errno from
67089         failed fchdir().
67090
67091         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67092         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67093         a dangling symlink.  That can also happen at least for ELOOP.
67094         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67095         FYI, this bug predates the inclusion of fts.c in coreutils.
67096
67097         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67098         in their own block, so pre-c99 compilers don't object.
67099
67100         Avoid the double-free (first in fts_read, second in fts_close) that
67101         would occur when an `active' directory is made inaccessible (e.g.,
67102         via chmod a-x) during a traversal.
67103         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67104         before returning.  Reproduce this failure by
67105         mkdir -p a/b; cd a; chmod a-x . b
67106         Reported by Stavros Passas.
67107
67108 2006-01-25  Jim Meyering  <jim@meyering.net>
67109
67110         * lib/fileblocks.c: Remove more useless parentheses.
67111         * lib/readutmp.h: Likewise.
67112
67113 2006-01-25  Bruno Haible  <bruno@clisp.org>
67114
67115         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67116         warnings.
67117         Reported by Paul Eggert.
67118
67119 2006-01-25  Bruno Haible  <bruno@clisp.org>
67120
67121         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67122         rid of a trap command. For Solaris sh.
67123         Reported by Mark D. Baushke <mdb@gnu.org>.
67124
67125 2006-01-24  Simon Josefsson  <jas@extundo.com>
67126
67127         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67128         Bruno.
67129
67130 2006-01-24  Karl Berry  <karl@gnu.org>
67131
67132         * config/srclist.txt (argp-namefrob.h): sync lost.
67133
67134 2006-01-24  Jim Meyering  <jim@meyering.net>
67135
67136         * modules/openat (Files): Add lib/intprops.h.
67137         From Mark D. Baushke.
67138
67139 2006-01-24  Jim Meyering  <jim@meyering.net>
67140
67141         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67142         Reported by Mark D. Baushke.
67143
67144 2006-01-24  Jim Meyering  <jim@meyering.net>
67145
67146         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67147
67148 2006-01-24  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/strnlen (Maintainer): Change from glibc to all.
67151
67152 2006-01-24  Bruno Haible  <bruno@clisp.org>
67153
67154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67155         Patch by Paul Eggert.
67156
67157 2006-01-24  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67160         already has it.
67161         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67162         2005-11-26.
67163
67164         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67165         'signed char' to avoid problems with the built-in _Bool type.
67166         Reported by Paul Eggert on 2005-11-26.
67167
67168 2006-01-24  Bruno Haible  <bruno@clisp.org>
67169
67170         * gnulib-tool (func_import): Avoid constructing complicated sed
67171         expressions inside backquote.
67172         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67173
67174 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67175
67176         These changes imported from libc.
67177         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67178         test and two separate function calls.
67179         * lib/strndup.c (__strndup): Add libc_hidden_def.
67180
67181 2006-01-23  Simon Josefsson  <jas@extundo.com>
67182
67183         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67184         Remove the test_*_SOURCES variable: automake infers it by default.
67185         * modules/tls-tests: Likewise.
67186
67187 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         Work around porting bugs reported by Dieter in
67190         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67191         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67192         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67193         Include "getopt.h" first, to check interface.
67194         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67195         !HAVE_DECL_GETENV.
67196         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67197         (__strndup): Revert to K&R-style function dfns, the glibc style.
67198         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67199         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67200         Include strnlen.h first, to get prototype properly.
67201         (strnlen): Renamed from __strnlen.
67202         Remove weak alias.
67203
67204 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67207
67208 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67209
67210         * config/srclist.txt: Adjust to reflect glibc reorganization.
67211         This affects only comments.
67212
67213 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67214
67215          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67216          Reported by Bruce Korb <bkorb@gnu.org>.
67217
67218 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67221         to pacify gcc -Wswitch-default.
67222
67223 2006-01-22  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67226         temporary buffer for sprintf, take into account the precision also
67227         for 'd', 'i', 'u', 'o', 'x', 'X'.
67228
67229 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67230
67231         * modules/argp-tests: New module
67232         * tests/test-argp.c: New file
67233         * tests/test-argp-2.sh: New file
67234
67235 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67236
67237         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67238         (__argp_base_name): Removed
67239         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67240         typo.
67241         (__argp_base_name): Provide macro definition or extern declaration
67242         depending on the configuration
67243
67244 2006-01-20  Simon Josefsson  <jas@extundo.com>
67245
67246         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67247
67248 2006-01-20  Simon Josefsson  <jas@extundo.com>
67249
67250         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67251
67252 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67253
67254         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67255         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67256         Suggested by Bruno Haible.
67257
67258 2006-01-20  Karl Berry  <karl@gnu.org>
67259
67260         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67261         until changes propagate, I guess.
67262
67263 2006-01-19  Simon Josefsson  <jas@extundo.com>
67264
67265         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67266
67267 2006-01-19  Simon Josefsson  <jas@extundo.com>
67268
67269         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67270
67271 2006-01-19  Simon Josefsson  <jas@extundo.com>
67272
67273         * gnulib-tool: Set check_PROGRAMS.
67274
67275         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67276         modules/des-tests, modules/gc-arcfour-tests,
67277         modules/gc-arctwo-tests, modules/gc-des-tests,
67278         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67279         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67280         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67281         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67282         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67283         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67284         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67285         test_*_SOURCES.
67286
67287 2006-01-18  Simon Josefsson  <jas@extundo.com>
67288
67289         * modules/socklen (Depends-on): Depend on sys_socket.
67290
67291 2006-01-18  Simon Josefsson  <jas@extundo.com>
67292
67293         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67294         modules/des-tests, modules/gc-arcfour-tests,
67295         modules/gc-arctwo-tests, modules/gc-des-tests,
67296         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67297         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67298         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67299         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67300         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67301         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67302         $(EXEEXT) to automake TESTS variable, for mingw32.
67303
67304 2006-01-17  Simon Josefsson  <jas@extundo.com>
67305
67306         * modules/socklen (Include): Need sys/socket.h.
67307
67308 2006-01-17  Bruno Haible  <bruno@clisp.org>
67309
67310         * modules/ssize_t (Include): Add <sys/types.h>.
67311
67312 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67313
67314         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67315         it's not portable and it doesn't work with cross-compiles.
67316         Problem reported by Bruno Haible.  Fix missing-$ typo in
67317         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67318         -zignore from being used with Sun's C compiler.
67319
67320 2006-01-12  Simon Josefsson  <jas@extundo.com>
67321
67322         * lib/base64.c: Fix warning, reported by Bruno Haible
67323         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67324
67325 2006-01-12  Bruno Haible  <bruno@clisp.org>
67326
67327         * modules/ldd: New file.
67328         * build-aux/ldd.sh.in: New file.
67329         * MODULES.html.sh (Support for building libraries and executables): Add
67330         ldd.
67331
67332 2006-01-12  Bruno Haible  <bruno@clisp.org>
67333
67334         * m4/ldd.m4: New file.
67335
67336 2006-01-12  Bruno Haible  <bruno@clisp.org>
67337
67338         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67339         endless loop while replacing $auxdir with build-aux.
67340
67341 2006-01-11  Simon Josefsson  <jas@extundo.com>
67342
67343         * lib/stdint_.h (SIZE_MAX): Add missing (.
67344
67345 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         Sync from coreutils.
67348         * lib/md5.c: Fix commentary typos.
67349         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67350         * lib/md5.h (__attribute__): Remove; unused.
67351         * lib/sha1.c: Fix commentary to match md5 better.
67352         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67353         so that we don't need to worry about alignment.  All uses changed.
67354         This merges the 2005-10-28 md5 change into sha1.
67355
67356 2006-01-11  Jim Meyering  <jim@meyering.net>
67357
67358         Sync from coreutils.
67359         * lib/md5.c (OP): Fix spacing.
67360
67361 2006-01-11  Bruno Haible  <bruno@clisp.org>
67362
67363         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67364         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67365         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67366
67367 2006-01-11  Bruno Haible  <bruno@clisp.org>
67368
67369         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67370         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67371         the "early" section as well.
67372
67373 2006-01-11  Bruno Haible  <bruno@clisp.org>
67374
67375         Avoid "ar: no archive members specified" error on MacOS X.
67376         * gnulib-tool (func_modules_add_dummy): New function.
67377         (func_import, func_create_testdir): Invoke it.
67378
67379 2006-01-11  Bruno Haible  <bruno@clisp.org>
67380
67381         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67382         with $auxdir in AC_CONFIG_FILES statements.
67383
67384 2006-01-11  Bruno Haible  <bruno@clisp.org>
67385
67386         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67387         Initialize also noinst_HEADERS to empty.
67388
67389 2006-01-11  Bruno Haible  <bruno@clisp.org>
67390
67391         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67392         variables.
67393         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67394         autoreconf.
67395
67396 2006-01-11  Bruno Haible  <bruno@clisp.org>
67397
67398         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67399         overridable by the user.
67400         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67401
67402 2006-01-10  Simon Josefsson  <jas@extundo.com>
67403
67404         * modules/sys_socket: New file.
67405
67406 2006-01-10  Simon Josefsson  <jas@extundo.com>
67407
67408         * m4/sys_socket_h.m4: New file.
67409
67410 2006-01-10  Simon Josefsson  <jas@extundo.com>
67411
67412         * lib/socket_.h: New file.
67413
67414 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67415
67416         * modules/readutmp (Maintainer): Add myself.
67417
67418 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67419
67420         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67421         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67422         People who are still concerned with buggy memcmp implementations
67423         can invoke gl_FUNC_MEMCMP themselves.
67424
67425 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67426
67427         * lib/regex_internal.h (BITSET_WORD_BITS):
67428         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67429         preprocessor mishandles large unsigned values as if they were signed.
67430         Problem reported by Claudio Fontana in
67431         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67432
67433 2006-01-10  Jim Meyering  <jim@meyering.net>
67434
67435         Avoid the double-free (first in fts_read, second in fts_close) that
67436         would occur when an `active' directory is made inaccessible (e.g.,
67437         via chmod a-x) during a traversal.
67438         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67439         before returning.  Reproduce this failure by
67440         mkdir -p a/b; cd a; chmod a-x . b
67441         Reported by Stavros Passas.
67442
67443         Sync from coreutils.
67444         * lib/sha1.c: Tweak grammar in a comment.
67445
67446 2006-01-10  Jim Meyering  <jim@meyering.net>
67447
67448         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67449         Patch by Joerg Sonnenberger.
67450
67451 2006-01-10  Bruno Haible  <bruno@clisp.org>
67452
67453         * modules/readutmp: Depend on module free.
67454         * modules/strtok_r: Depend on module restrict.
67455
67456 2006-01-10  Bruno Haible  <bruno@clisp.org>
67457
67458         * modules/gettext (configure.ac): Add an invocation of
67459         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67460
67461 2006-01-10  Bruno Haible  <bruno@clisp.org>
67462
67463         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67464         Reported by Werner Lemberg <wl@gnu.org>.
67465
67466 2006-01-10  Bruno Haible  <bruno@clisp.org>
67467
67468         * lib/localcharset.c: Update from GNU gettext.
67469
67470 2006-01-10  Bruno Haible  <bruno@clisp.org>
67471
67472         * lib/argp.h (__const): Remove macro. Use const instead.
67473         * lib/argp-fmtstream.h (__const): Likewise.
67474         * lib/glob_.h (__const): Remove macro.
67475         * lib/glob-libc.h: Use const instead of __const.
67476
67477 2006-01-10  Bruno Haible  <bruno@clisp.org>
67478
67479         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67480         variable.
67481         Needed to avoid an automake error regarding the 'gettext' module.
67482
67483 2006-01-09  Simon Josefsson  <jas@extundo.com>
67484
67485         * modules/inet_ntop (Depends-on): Add restrict.
67486
67487 2006-01-09  Simon Josefsson  <jas@extundo.com>
67488
67489         * modules/gc-rijndael-tests (License): Put under LGPL.
67490
67491         * modules/gc-des-tests (License): Likewise.
67492
67493         * modules/gc-arcfour-tests (License): Likewise.
67494
67495         * modules/gc-arctwo-tests (License): Likewise.
67496
67497         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67498
67499         * modules/gc-hmac-sha1-tests (Files): Likewise.
67500
67501         * modules/gc-hmac-md5-tests (License): Likewise.
67502
67503         * modules/gc-sha1-tests (License): Likewise.
67504
67505         * modules/gc-md5-tests (License): Likewise.
67506
67507         * modules/gc-md4-tests (License): Likewise.
67508
67509         * modules/gc-md2-tests (License): Likewise.
67510
67511         * modules/gc-tests (License): Likewise.
67512
67513         * modules/des-tests (License): Likewise.
67514
67515         * modules/md4-tests (License): Likewise.
67516
67517         * modules/md2-tests (License): Likewise.
67518
67519 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         Sync from coreutils:
67522
67523         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67524         * modules/lib-ignore: New file.
67525         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67526         chdir-safer.m4, lchmod.m4.
67527         * modules/openat: Add mkdirat.c, openat-priv.h.
67528
67529 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         Sync from coreutils.
67532         * m4/lib-ignore.m4: New file.
67533         * m4/lchmod.m4: New file.
67534
67535 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         Sync from coreutils.
67538         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67539         for write access: POSIX says that must fail.
67540         * lib/fts.c (diropen): Likewise.
67541         * lib/save-cwd.c (save_cwd): Likewise.
67542         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67543         well, for minor improvements on hosts that lack O_DIRECTORY.
67544         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67545         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67546         Fall back on chown if open failed with EACCES.
67547
67548         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67549         Report an error at compile-time if only a 1-second nominal clock
67550         resolution is found.
67551
67552         * lib/lchmod.h: New file.
67553         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67554         (make_dir_parents): Use lchown rather than chown, and
67555         lchmod rather than chmod.
67556
67557         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67558         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67559         "proc" reported by n0dalus.
67560
67561         * lib/mountlist.c: Include <limits.h>.
67562         (dev_from_mount_options)
67563         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67564         New function.  It no longer assumes "dev=" has the System V meaning
67565         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67566         (read_file_system_list)
67567         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67568         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67569         dev= in that case.
67570
67571         * lib/posixtm.h (PDS_PRE_2000): New macro.
67572         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67573         allow_century.  All usages changed.  Reject dates outside the range
67574         1969-1999 if PDS_PRE_2000 is used.
67575
67576 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         Sync from coreutils.
67579         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67580         (Time of day items): Mention the possibility of leap seconds.
67581         Problem reported by Dr. David Alan Gilbert.
67582
67583 2006-01-09  Jim Meyering  <jim@meyering.net>
67584
67585         Sync from coreutils.
67586
67587         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67588
67589         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67590
67591         * lib/modechange.c (mode_compile): Reject an invalid mode string
67592         that starts with an octal digit.  From Andreas Gruenbacher.
67593
67594         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67595         and dup to open_safer and dup_safer, respectively.
67596         (openat_permissive): Fix typo in comment.
67597
67598         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67599         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67600         (_): Remove; no longer needed.
67601         (openat): Renamed from rpl_openat; no need for rpl_openat
67602         since openat.h renames openat for us.
67603         Replace most of the body with a call to openat_permissive,
67604         to avoid duplicate code.
67605         Port to (probably hypothetical) environments were mode_t is
67606         wider than int.
67607         (openat_permissive): Require mode arg, so that we can check
67608         types better.  Put it just after flags.  Change cwd failure
67609         indicator from pointer-to-bool to pointer-to-errno-value.
67610         All callers changed.
67611         Invoke openat_save_fail and/or openat_restore_fail if
67612         cwd_errno is null, so that openat can call us.
67613         (openat_permissive, fdopendir, fstatat, unlinkat):
67614         Simplify errno handling to avoid some duplicate code,
67615         as it's OK to set errno on success.
67616         * lib/openat.h: Revamp code so that function macros depend on
67617         __OPENAT_PREFIX only, not also on AT_FDCWD.
67618         (openat_ro): Remove.  Caller changed to use openat_permissive.
67619         (openat_permissive): Now a macro, if not a function.
67620         (openat_restore_fail, openat_save_fail): Now always functions,
67621         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67622
67623         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67624         and openat.c.
67625         * lib/mkdirat.c: Include openat-priv.h.
67626         Remove definitions of macros defined therein.
67627         * lib/openat.c: Likewise.
67628
67629         * lib/mkdirat.c (mkdirat): New file and function.
67630         * lib/openat.h (mkdirat): Declare.
67631
67632         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67633
67634         * lib/openat.h (openat_permissive): Declare.
67635         (openat_ro): Define.
67636
67637         * lib/openat.c (EXPECTED_ERRNO): New macro.
67638         (openat_permissive): New function -- used in remove.c rewrite.
67639         (all functions): Set errno just before returning, only if there
67640         was an actual failure.
67641         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67642
67643         Emulate openat-family functions using Linux's procfs, if possible.
67644         Idea and some code based on Ulrich Drepper's glibc changes.
67645
67646         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67647         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67648         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67649         before falling back on save_cwd and restore_cwd.
67650         (fdopendir, fstatat, unlinkat): Likewise.
67651
67652         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67653         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67654
67655         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67656         as second argument to va_arg.  Otherwise, some versions of gcc
67657         warn that `if this code is reached, the program will abort'.
67658
67659 2006-01-09  Jim Meyering  <jim@meyering.net>
67660
67661         Sync from coreutils.
67662         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67663         Require openat-priv.h.
67664
67665 2006-01-09  Bruno Haible  <bruno@clisp.org>
67666
67667         * modules/strnlen (Include): Use strnlen.h.
67668
67669 2006-01-09  Bruno Haible  <bruno@clisp.org>
67670
67671         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67672
67673 2006-01-09  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/sysexit_.h (EX_OK): New macro.
67676         Suggested by Martin Lambers <marlam@marlam.de>.
67677
67678 2006-01-09  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67681         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67682
67683 2006-01-09  Bruno Haible  <bruno@clisp.org>
67684
67685         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67686         numbers.
67687
67688 2006-01-09  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67691         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67692         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67693         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67694
67695 2006-01-09  Bruno Haible  <bruno@clisp.org>
67696
67697         * build-aux/javacomp.sh.in: New file, moved from lib/.
67698         * modules/javacomp-script (Files): Update.
67699         (configure.ac): Add AC_CONFIG_FILES invocation.
67700         (EXTRA_DIST): Remove variable.
67701
67702         * build-aux/javaexec.sh.in: New file, moved from lib/.
67703         * modules/javaexec (Files): Update.
67704         (configure.ac): Add AC_CONFIG_FILES invocation.
67705         (EXTRA_DIST): Remove javaexec.sh.in.
67706
67707         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67708         * modules/csharpcomp-script (Files): Update.
67709         (configure.ac): Add AC_CONFIG_FILES invocation.
67710         (EXTRA_DIST): Remove variable.
67711
67712         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67713         * modules/csharpexec (Files): Update.
67714         (configure.ac): Add AC_CONFIG_FILES invocation.
67715         (EXTRA_DIST): Remove csharpexec.sh.in.
67716
67717 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67718
67719         Sync from coreutils.
67720
67721         Add POSIX ACL support
67722         * lib/acl.h (copy_acl, set_acl): Add declarations.
67723         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67724         systems other than Linux.
67725         (chmod_or_fchmod): New function: use fchmod when possible,
67726         and chmod otherwise.
67727         (file_has_acl): Add a POSIX ACL implementation, with a
67728         Linux-specific subcase.
67729         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67730         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67731         acls are unsupported.
67732         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67733         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67734         are unsupported.
67735
67736 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67737
67738         Sync from coreutils.
67739         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67740
67741 2006-01-07  Bruno Haible  <bruno@clisp.org>
67742
67743         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67744         gl_EARLY.
67745
67746 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67749         Problem reported for Mingw by Mark Junker.
67750
67751 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         * README: Gnulib normally doesn't generate a tarball.
67754
67755 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67758         long int, not int, for nanosecond counts, so that people who are
67759         used to POSIX struct timespec won't be surprised.  Reported by Jim
67760         Meyering.
67761
67762 2005-12-28  Bruno Haible  <bruno@clisp.org>
67763
67764         * build-aux/config.rpath: Update from GNU gettext.
67765
67766 2005-12-16  Jim Meyering  <jim@meyering.net>
67767
67768         * modules/fprintftime: New module.
67769         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67770
67771 2005-12-16  Jim Meyering  <jim@meyering.net>
67772
67773         * m4/fprintftime.m4: New file.
67774
67775 2005-12-16  Jim Meyering  <jim@meyering.net>
67776
67777         * lib/fprintftime.c, lib/fprintftime.h: New files.
67778
67779 2005-12-15  Simon Josefsson  <jas@extundo.com>
67780
67781         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67782         new m4/socklen.m4.
67783
67784 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67785
67786         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67787         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67788
67789 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67790
67791         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67792         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67793         struct uparams is valid. Fall back to the default values if it is
67794         not.
67795
67796 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67797
67798         * modules/argp (Files): Add argp-pin.c
67799         (Depends-on): dirname
67800         (lib_SOURCES): Add argp-pin.c
67801
67802 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67803
67804         * m4/argp.m4:  Check if program_invocation_name and
67805         program_invocation_short_name are declared and define appropriate
67806         macros if they are not.
67807
67808 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67809
67810         * lib/argp-help.c (__argp_base_name): New function
67811         (__argp_short_program_name): Rewrite using __argp_base_name
67812         * lib/argp-namefrob.h: Define program_invocation_name and
67813         program_invocation_short_name if requested
67814         (__argp_base_name): Add prototype
67815         * lib/argp-parse.c (argp_def): Use gettext wrappers
67816         (argp_default_parser): Use __argp_base_name
67817         * lib/argp-pin.c: New file. Defines program_invocation_name and
67818         program_invocation_short_name on systems that lack them.
67819
67820 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67823         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67824         porting problem reported by Georg Schwarz in
67825         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67826
67827 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67830         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67831         porting problem reported by Georg Schwarz in
67832         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67833
67834 2005-12-05  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67837         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67838         Reported by Mark Junker <mjscod@gmx.de>.
67839
67840 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67843         Use implementation from Albert Chin, with some
67844         comments/corrections by Stepan Kasal and myself.
67845
67846 2005-12-02  Bruno Haible  <bruno@clisp.org>
67847
67848         * gnulib-tool (func_import): Accept GPLed build tool modules when
67849         --lgpl is given.
67850         * modules/csharpcomp-script: New file.
67851         * modules/csharpcomp: Depend on it.
67852         * modules/javacomp-script: New file.
67853         * modules/javacomp: Depend on it.
67854         Suggested by Simon Josefsson.
67855
67856 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67859         statement, to work around an HP-UX 10.20 compiler bug reported by
67860         Peter O'Gorman.
67861
67862 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * modules/savedir (Depends-on): Add openat.
67865
67866 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67867
67868         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67869         (uintmax_t) [defined uintmax_t]: Do not declare.
67870         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67871         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67872         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67873         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67874         sake of portability to weird hosts that C allows (though we don't
67875         know of any practical examples).
67876
67877         * lib/savedir.h (fdsavedir): New decl.
67878         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67879         contains most of the former guts of savedir.
67880         (savedir): Use savedirstream.
67881         Include "openat.h".
67882
67883 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67884
67885         * modules/obstack (Files): Add m4/ulonglong.m4.
67886         Problem reported by Davide Angelocola.
67887
67888 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67889
67890         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67891         coreutils no longer futzes with rounding modes.
67892
67893 2005-11-14  Jim Meyering  <jim@meyering.net>
67894
67895         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67896         replacement of mkstemp.
67897
67898 2005-11-10  Simon Josefsson  <jas@extundo.com>
67899
67900         * lib/readline.c: Remove EOL.
67901
67902 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67903
67904         * modules/gethrxtime (Depends-on): Add gettime.
67905
67906 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67909         or gettimeofday; no longer needed.
67910
67911 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67914         time business.
67915         (gethrxtime) [! (HAVE_NANOUPTIME
67916         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67917         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67918         our own approximation.
67919
67920 2005-11-08  Eric Blake  <ebb9@byu.net>
67921
67922         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67923
67924 2005-11-08  Eric Blake  <ebb9@byu.net>
67925
67926         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67927
67928 2005-11-04  Bruno Haible  <bruno@clisp.org>
67929
67930         * gnulib-tool: Implement --update mode.
67931
67932 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         Fix porting problem reported by Theodoros V. Kalamatianos.
67935         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67936         Don't assume that futimes failing means we must fail.
67937
67938 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67941         variables to suggest the intended function of the PATH_MAX check.
67942
67943 2005-10-30  Kean Johnston  <jkj@sco.com>
67944
67945         Trivial changes to support SCO systems.
67946         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67947         as PATH_MAX.
67948         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67949         where __ptr is null when no I/O is pending.
67950
67951 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67952
67953         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67954         leave errno alone.  Problem reported by Dmitry V. Levin.
67955
67956 2005-10-28  Simon Josefsson  <jas@extundo.com>
67957
67958         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67959         Test more.
67960
67961         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67962
67963         * modules/md2, modules/md2-tests: New files.
67964
67965 2005-10-28  Simon Josefsson  <jas@extundo.com>
67966
67967         * m4/inet_ntop.m4: More tests.
67968
67969         * m4/gc-md2.m4, md2.m4: New file.
67970
67971 2005-10-28  Simon Josefsson  <jas@extundo.com>
67972
67973         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67974         "restrict" keywords, as per POSIX.  Protect the function
67975         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67976         Don't use K&R prototypes.  Check the sprintf return values.
67977         Re-define EAFNOSUPPORT if not present.  Indent.
67978
67979         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67980         suggested by Bruno Haible <bruno@clisp.org>.
67981
67982         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67983
67984         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67985
67986         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67987         libgcrypt).
67988
67989         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67990
67991         * lib/md2.h, lib/md2.c: New files.
67992
67993 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67996         errno alone.  Problem reported by Frederic Jolliton.
67997
67998 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         * modules/verify (License): Change from GPL to LGPL.  This is a
68001         tiny module and there are apparently near-equivalents that are
68002         under the BSD license.
68003
68004 2005-10-24  Simon Josefsson  <jas@extundo.com>
68005
68006         * modules/sha1: Relicense to LGPL.
68007
68008 2005-10-24  Simon Josefsson  <jas@extundo.com>
68009
68010         * lib/md4.h: Shrink buffer size, now that we changed the type.
68011
68012 2005-10-23  Simon Josefsson  <jas@extundo.com>
68013
68014         * gnulib-tool (func_import): Fix --tests-base.
68015
68016 2005-10-22  Simon Josefsson  <jas@extundo.com>
68017
68018         * modules/arcfour (Depends-on): Need stdint.
68019
68020 2005-10-22  Simon Josefsson  <jas@extundo.com>
68021
68022         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68023         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68024
68025 2005-10-22  Simon Josefsson  <jas@extundo.com>
68026
68027         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68028         suggested by Bruno Haible <bruno@clisp.org>.
68029
68030 2005-10-22  Simon Josefsson  <jas@extundo.com>
68031
68032         * lib/crc.h: Include stddef.h, for size_t.
68033
68034 2005-10-22  Simon Josefsson  <jas@extundo.com>
68035
68036         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68037         arcfour_context struct (simplify test vector testing in GNU
68038         Shishi).
68039
68040 2005-10-21  Simon Josefsson  <jas@extundo.com>
68041
68042         * modules/des, modules/des-tests: New files.
68043
68044         * modules/gc-des, modules/gc-des-tests: New files.
68045
68046         * tests/test-des.c, tests/test-gc-des.c: New file.
68047
68048 2005-10-21  Simon Josefsson  <jas@extundo.com>
68049
68050         * modules/arctwo, modules/arctwo-tests: New files.
68051
68052         * tests/test-arctwo.c: New file.
68053
68054         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68055
68056         * tests/test-gc-arctwo.c: New file.
68057
68058 2005-10-21  Simon Josefsson  <jas@extundo.com>
68059
68060         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68061         Bruno Haible <bruno@clisp.org>.
68062
68063         * m4/gc-des.m4: New file.
68064
68065 2005-10-21  Simon Josefsson  <jas@extundo.com>
68066
68067         * m4/arctwo.m4: New file.
68068
68069         * m4/gc-arctwo.m4: New file.
68070
68071 2005-10-21  Simon Josefsson  <jas@extundo.com>
68072
68073         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68074         block.
68075
68076 2005-10-21  Simon Josefsson  <jas@extundo.com>
68077
68078         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68079         <bruno@clisp.org>.
68080
68081         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68082
68083         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68084         Bruno Haible <bruno@clisp.org>.
68085
68086         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68087         <bruno@clisp.org>.
68088
68089 2005-10-21  Simon Josefsson  <jas@extundo.com>
68090
68091         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68092
68093 2005-10-21  Simon Josefsson  <jas@extundo.com>
68094
68095         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68096
68097 2005-10-21  Simon Josefsson  <jas@extundo.com>
68098
68099         * lib/des.h, lib/des.c: New files.
68100
68101         * lib/gc-gnulib.c: Support DES.c
68102
68103 2005-10-21  Simon Josefsson  <jas@extundo.com>
68104
68105         * lib/arctwo.h, lib/arctwo.c: New files.
68106
68107         * lib/gc-gnulib.c: Support ARCTWO.
68108
68109 2005-10-21  Simon Josefsson  <jas@extundo.com>
68110
68111         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68112         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68113
68114 2005-10-21  Simon Josefsson  <jas@extundo.com>
68115
68116         * gnulib-tool (func_import, func_create_testdir): Define automake
68117         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68118         Makefile.am snippet),
68119         suggested by Bruno Haible <bruno@clisp.org>.
68120
68121         * modules/gc (Makefile.am): Use it.
68122
68123 2005-10-21  Bruno Haible  <bruno@clisp.org>
68124
68125         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68126         patch.
68127
68128 2005-10-19  Simon Josefsson  <jas@extundo.com>
68129
68130         * tests/test-gc-rijndael.c: New file.
68131
68132         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68133
68134 2005-10-19  Simon Josefsson  <jas@extundo.com>
68135
68136         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68137         interface too.
68138
68139 2005-10-19  Simon Josefsson  <jas@extundo.com>
68140
68141         * tests/test-gc-arcfour.c: New file.
68142
68143         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68144
68145 2005-10-19  Simon Josefsson  <jas@extundo.com>
68146
68147         * modules/gc-md4, modules/gc-md4-tests: New file.
68148
68149         * tests/test-gc-md4.c: New file.
68150
68151 2005-10-19  Simon Josefsson  <jas@extundo.com>
68152
68153         * m4/gc-md4.m4: New file.
68154
68155 2005-10-19  Simon Josefsson  <jas@extundo.com>
68156
68157         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68158         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68159         <kasal@ucw.cz>.
68160
68161 2005-10-19  Simon Josefsson  <jas@extundo.com>
68162
68163         * m4/gc-arcfour.m4: New file.
68164
68165         * m4/gc-rijndael.m4: New file.
68166
68167 2005-10-19  Simon Josefsson  <jas@extundo.com>
68168
68169         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68170
68171 2005-10-19  Simon Josefsson  <jas@extundo.com>
68172
68173         * lib/gc-gnulib.c: Support ARCFOUR.
68174
68175 2005-10-19  Simon Josefsson  <jas@extundo.com>
68176
68177         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68178         support.
68179
68180         * lib/gc.h: Add ECB enum type.
68181
68182         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68183
68184 2005-10-18  Simon Josefsson  <jas@extundo.com>
68185
68186         * tests/test-md5.c: New file.
68187
68188         * modules/md5-tests: New file.
68189
68190 2005-10-18  Simon Josefsson  <jas@extundo.com>
68191
68192         * tests/test-md4.c: New file.
68193
68194         * modules/md4, modules/md4-tests: New files.
68195
68196 2005-10-18  Simon Josefsson  <jas@extundo.com>
68197
68198         * m4/md4.m4: New file.
68199
68200 2005-10-18  Simon Josefsson  <jas@extundo.com>
68201
68202         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68203
68204 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68205
68206         * gnulib-tool (func_create_testdir): Omit the second check whether
68207         BUILT_SOURCES in nonempty.
68208
68209 2005-10-17  Simon Josefsson  <jas@extundo.com>
68210
68211         * tests/test-rijndael.c: New file.
68212
68213 2005-10-17  Simon Josefsson  <jas@extundo.com>
68214
68215         * modules/sha1: Depend on stdint instead of md5.
68216
68217         * modules/md5: Depend on stdint, remove uint32_t.
68218
68219 2005-10-17  Simon Josefsson  <jas@extundo.com>
68220
68221         * modules/gc-sha1-tests: New file.
68222
68223         * tests/test-gc-sha1.c: New file.
68224
68225 2005-10-17  Simon Josefsson  <jas@extundo.com>
68226
68227         * m4/md5.m4: Remove call to uint32_t.m4.
68228
68229 2005-10-17  Simon Josefsson  <jas@extundo.com>
68230
68231         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68232
68233         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68234         md5.h.
68235
68236         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68237
68238         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68239
68240 2005-10-17  Simon Josefsson  <jas@extundo.com>
68241
68242         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68243
68244 2005-10-17  Simon Josefsson  <jas@extundo.com>
68245
68246         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68247
68248 2005-10-17  Simon Josefsson  <jas@extundo.com>
68249
68250         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68251
68252         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68253
68254 2005-10-17  Bruno Haible  <bruno@clisp.org>
68255
68256         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68257         that it can also be used in a test.
68258
68259 2005-10-16  Bruno Haible  <bruno@clisp.org>
68260
68261         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68262         TESTS_ENVIRONMENT, so that individual tests can augment it.
68263
68264         * gnulib-tool (func_create_testdir): Use an intermediate target for
68265         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68266         macros, like $(ALLOCA_H), which cannot be passed through the command
68267         line.
68268
68269 2005-10-15  Simon Josefsson  <jas@extundo.com>
68270
68271         * modules/rijndael-tests: New file.
68272
68273         * modules/rijndael: New file.
68274
68275 2005-10-15  Simon Josefsson  <jas@extundo.com>
68276
68277         * m4/rijndael.m4: New file.
68278
68279 2005-10-15  Simon Josefsson  <jas@extundo.com>
68280
68281         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68282
68283         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68284
68285 2005-10-14  Simon Josefsson  <jas@extundo.com>
68286
68287         * tests/test-arcfour.c: New file.
68288
68289         * modules/arcfour, modules/arcfour-tests: New files.
68290
68291 2005-10-14  Simon Josefsson  <jas@extundo.com>
68292
68293         * m4/arcfour.m4: New file.
68294
68295 2005-10-14  Simon Josefsson  <jas@extundo.com>
68296
68297         * lib/arcfour.h, lib/arcfour.c: New files.
68298
68299 2005-10-14  Roland McGrath  <roland@redhat.com>
68300
68301         Import from libc.  [BZ #1331]
68302         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68303         macro argument.
68304         Reported by Matej Vela <vela@debian.org>.
68305
68306 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68309         include <wchar.h>; no longer needed.
68310
68311 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68314
68315 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68316         and  Ulrich Drepper  <drepper@redhat.com>
68317
68318         Import from libc.
68319         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68320         instead of inline stream orientation test and two separate
68321         function calls.  Pay no attention to USE_IN_LIBIO.
68322
68323 2005-10-13  Simon Josefsson  <jas@extundo.com>
68324
68325         * modules/gc-hmac-md5-tests: New file.
68326
68327         * tests/test-gc-hmac-sha1.c: New file.
68328
68329         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68330
68331         * modules/gc-hmac-md5-tests: New file.
68332
68333         * tests/test-gc-md5.c: New file.
68334
68335         * modules/gc-md5-tests: New file.
68336
68337 2005-10-13  Simon Josefsson  <jas@extundo.com>
68338
68339         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68340         Move memory allocation outside of loop.
68341
68342 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68345         intermediate directory is in a read-only file system.  Problem
68346         reported by Eric Blake.
68347
68348 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68349
68350         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68351
68352 2005-10-12  Simon Josefsson  <jas@extundo.com>
68353
68354         * tests/test-hmac-sha1.c: New file.
68355
68356         * modules/hmac-sha1-tests: New file.
68357
68358         * modules/hmac-sha1: New file.
68359
68360 2005-10-12  Simon Josefsson  <jas@extundo.com>
68361
68362         * modules/gc-sha1: New file.
68363
68364 2005-10-12  Simon Josefsson  <jas@extundo.com>
68365
68366         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68367
68368         * tests/test-gc-pbkdf2-sha1.c: New file.
68369
68370 2005-10-12  Simon Josefsson  <jas@extundo.com>
68371
68372         * modules/gc-md5, modules/gc-hmac-md5: New files.
68373
68374         * modules/gc (Files): Remove md5, memxor and hmac files.
68375
68376 2005-10-12  Simon Josefsson  <jas@extundo.com>
68377
68378         * m4/gc-pbkdf2-sha1.m4: New file.
68379
68380         * m4/gc-hmac-sha1.m4: New file.
68381
68382         * m4/gc-sha1: New file.
68383
68384         * m4/hmac-sha1.m4: New file.
68385
68386 2005-10-12  Simon Josefsson  <jas@extundo.com>
68387
68388         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68389
68390         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68391
68392 2005-10-12  Simon Josefsson  <jas@extundo.com>
68393
68394         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68395         suggested by Bruno Haible <bruno@clisp.org>.
68396
68397 2005-10-12  Simon Josefsson  <jas@extundo.com>
68398
68399         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68400
68401 2005-10-12  Simon Josefsson  <jas@extundo.com>
68402
68403         * lib/gc-pbkdf2-sha1.c: New file.
68404
68405         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68406
68407 2005-10-12  Simon Josefsson  <jas@extundo.com>
68408
68409         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68410
68411         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68412
68413 2005-10-12  Simon Josefsson  <jas@extundo.com>
68414
68415         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68416         GC_USE_HMAC_MD5, respectively.
68417
68418         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68419         (gc_md5): Fix typo.
68420
68421         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68422
68423         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68424
68425         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68426
68427 2005-10-12  Bruno Haible  <bruno@clisp.org>
68428
68429         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68430         Reported by Stepan Kasal <kasal@ucw.cz>.
68431
68432 2005-10-11  Simon Josefsson  <jas@extundo.com>
68433
68434         * tests/test-crc.c: New file.
68435
68436         * modules/crc, modules/crc-tests: New files.
68437
68438 2005-10-11  Simon Josefsson  <jas@extundo.com>
68439
68440         * m4/crc.m4: New file.
68441
68442 2005-10-11  Simon Josefsson  <jas@extundo.com>
68443
68444         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68445
68446         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68447
68448         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68449
68450 2005-10-11  Simon Josefsson  <jas@extundo.com>
68451
68452         * lib/crc.h, lib/crc.c: New files.
68453
68454         * lib/gc.h (gc_hash_buffer): Add doc.
68455
68456 2005-10-11  Bruno Haible  <bruno@clisp.org>
68457
68458         * modules/c-strcasestr: New file.
68459         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68460
68461 2005-10-11  Bruno Haible  <bruno@clisp.org>
68462
68463         * modules/c-strcase: New file.
68464         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68465
68466 2005-10-11  Bruno Haible  <bruno@clisp.org>
68467
68468         * lib/strcasecmp.c: Include limits.h.
68469         (strcasecmp): Avoid integer overflow on exotic platforms.
68470         * lib/strncasecmp.c: Include limits.h.
68471         (strncasecmp): Avoid integer overflow on exotic platforms.
68472         Reported by Paul Eggert.
68473
68474 2005-10-11  Bruno Haible  <bruno@clisp.org>
68475
68476         * lib/c-strcasestr.h: New file, from GNU gettext.
68477         * lib/c-strcasestr.c: New file, from GNU gettext.
68478
68479 2005-10-11  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/c-strcase.h: New file, from GNU gettext.
68482         * lib/c-strcasecmp.c: New file, from GNU gettext.
68483         * lib/c-strncasecmp.c: New file, from GNU gettext.
68484
68485 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * modules/mempcpy (License): GPL -> LGPL.
68488         * modules/strchrnul (License): Likewise.
68489         * modules/sysexits (License): Likewise.
68490
68491 2005-10-08  Simon Josefsson  <jas@extundo.com>
68492
68493         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68494
68495 2005-10-07  Simon Josefsson  <jas@extundo.com>
68496
68497         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68498
68499 2005-10-06  Simon Josefsson  <jas@extundo.com>
68500
68501         * tests/test-hmac-md5.c: New file.
68502
68503         * modules/hmac-md5-tests: New file.
68504
68505         * modules/hmac-md5: New file.
68506
68507 2005-10-06  Simon Josefsson  <jas@extundo.com>
68508
68509         * m4/hmac-md5.m4: New file.
68510
68511         * m4/memxor.m4: Require gl_C_RESTRICT.
68512
68513 2005-10-06  Simon Josefsson  <jas@extundo.com>
68514
68515         * lib/memxor.c (memxor): Avoid casts and warnings.
68516
68517 2005-10-06  Simon Josefsson  <jas@extundo.com>
68518
68519         * lib/hmac-md5.c: New file.
68520
68521         * lib/hmac.h: New file.
68522
68523 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68526         promotes to int, not unsigned int, to catch the AIX 5.3
68527         compiler bug.
68528
68529 2005-10-05  Simon Josefsson  <jas@extundo.com>
68530
68531         * modules/memxor: New file.
68532
68533         * modules/iconv (Files): Move config.rpath to havelib, it is used
68534         there.
68535
68536         * modules/havelib (Files): Add config.rpath.
68537
68538 2005-10-05  Simon Josefsson  <jas@extundo.com>
68539
68540         * m4/memxor.m4: New file.
68541
68542 2005-10-05  Simon Josefsson  <jas@extundo.com>
68543
68544         * lib/memxor.c (memxor): Fix compiler error.
68545
68546         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68547         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68548
68549         * lib/memxor.h, lib/memxor.c: New files.
68550
68551         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68552         we assume all systems have it, suggested by Jim Meyering
68553         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68554         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68555         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68556         same reasons.
68557
68558 2005-10-05  Simon Josefsson  <jas@extundo.com>
68559
68560         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68561
68562 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68565         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68566         needed, since the source code now assumes these .h files.
68567
68568 2005-10-05  Derek Price  <derek@ximbiot.com>
68569
68570         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68571
68572 2005-10-05  Bruno Haible  <bruno@clisp.org>
68573
68574         * modules/stdint (License): Change to LGPL.
68575
68576 2005-10-04  Simon Josefsson  <jas@extundo.com>
68577
68578         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68579         D. Baushke" <mdb@gnu.org>.
68580
68581 2005-10-04  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/verify.h (verify_true): Provide alternative definition for C++.
68584
68585 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68588         (SSIZE_MAX): New macro, if not already defined.
68589         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68590         than 2 GiB.
68591
68592 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         Sync from coreutils.
68595         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68596         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68597         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68598         ULLONG_MAX doesn't work with 2.7.2.1.
68599
68600 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68603         From Ben Pfaff.
68604
68605         * modules/exclude (Depends-on): Depend on verify.
68606         * modules/strtoimax (Depends-on): Likewise.
68607         * modules/utimecmp (Depends-on): Likewise.
68608
68609 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68610
68611         * lib/exclude.c: Include verify.h.
68612         (verify): Remove.  All callers changed to use verify.h's version.
68613         * lib/strtoimax.c: Likewise.
68614         * lib/utimecmp.c: Likewis.e
68615
68616         Sync from coreutils.
68617         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68618         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68619         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68620         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68621         bother returning ENOSYS if settimeofday or stime fails; just let
68622         them return whatever errno they want to return.
68623         * lib/utimens.c: Include unistd.h, for dup2.
68624         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68625         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68626
68627 2005-10-02  Jim Meyering  <jim@meyering.net>
68628
68629         Sync from coreutils.
68630         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68631         from glibc-2.2.5 that fails for read-only files.
68632
68633 2005-10-02  Jim Meyering  <jim@meyering.net>
68634
68635         Sync from coreutils.
68636         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68637         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68638         `#if HAVE_CONFIG_H'.
68639         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68640         Remove AT_FDCWD test.
68641         Do not consume the fd unless successful.
68642         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68643         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68644         block, so that we don't even try to compile it if settimeofday is
68645         available.  This works around a compilation failure on OSF1 V5.1,
68646         due to stime requiring a `long int*' while tv_sec is `int'.
68647
68648 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68649
68650         Sync from coreutils.
68651         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68652         against `yes', rather than just testing for nonempty.
68653
68654 2005-10-01  Simon Josefsson  <jas@extundo.com>
68655
68656         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68657         and Darwin.
68658
68659         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68660         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68661         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68662         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68663         Check if struct addrinfo is declared.
68664
68665 2005-10-01  Simon Josefsson  <jas@extundo.com>
68666
68667         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68668         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68669         AI_* and EAI_* definitions.  Protect function declarations.
68670
68671 2005-10-01  Jim Meyering  <jim@meyering.net>
68672
68673         Sync from coreutils.
68674
68675         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68676         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68677         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68678         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68679         in the inet and nsl libraries.  Required on Solaris 5.7.
68680
68681 2005-10-01  Jim Meyering  <jim@meyering.net>
68682
68683         Sync from coreutils.
68684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68685         in the inet and nsl libraries.  Required on Solaris 5.7.
68686
68687 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68688
68689         * lib/getdelim.c (getdelim): Remove unused variables.
68690
68691 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68694         so that the code works even with ancient cpp.  Portability problem
68695         with GCC 2.7.2.1 reported by Thomas M.Ott.
68696
68697 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * modules/regex (Depends-on): Add strcase.
68700
68701         * modules/gethostname (Licence): Change from GPL to LGPL, since
68702         gethostname.c is a trivial implementation of a standard library
68703         function.
68704         * modules/poll (License): Change from GPL to LGPL, since it's
68705         derived from LGPL code.
68706
68707 2005-09-27  Jim Meyering  <jim@meyering.net>
68708
68709         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68710         HAVE_CONFIG_H.
68711
68712         * lib/intprops.h (signed_type_or_expr__): Define.
68713         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68714         for unsigned types.
68715
68716 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * lib/verify.h (verify_expr): Remove, replacing with:
68719         (verify_true): New macro that returns true instead of void.
68720         (verify_type__): Remove.
68721         (verify): Use verify_true rather than verify_type__.
68722
68723 2005-09-26  Bruno Haible  <bruno@clisp.org>
68724
68725         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68726         is necessary.
68727         (lib_SOURCES): Remove mbchar.c.
68728         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68729         (Files): Add m4/mbrtowc.m4.
68730         * modules/mbiter: Likewise.
68731         * modules/mbuiter: Likewise.
68732
68733 2005-09-26  Bruno Haible  <bruno@clisp.org>
68734
68735         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68736         compile mbchar.c if they are not both present.
68737         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68738         * m4/mbiter.m4 (gl_MBITER): Likewise.
68739         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68740         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68741         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68742
68743 2005-09-25  Jim Meyering  <jim@meyering.net>
68744
68745         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68746         also uses socklen_t.
68747
68748 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * lib/utimens.c (ENOSYS): Define if not already defined.
68751         (futimens): Support having a null PATH if the file descriptor
68752         is nonnegative.
68753
68754         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68755         Remove.
68756         (__attribute): Define to empty unless GCC 3.1 or later.
68757         This works around a core dump on OpenBSD 3.4, which has GCC
68758         2.95.3, which dumps core when given __attribute__(()).  It also
68759         simplifies other tests, since we really don't want to bother with
68760         worrying about which ancient version of GCC supported what.
68761         Original problem reported by Yoann Vandoorselaere, with part of
68762         the fix suggested by Derek Price.
68763
68764 2005-09-24  Jim Meyering  <jim@meyering.net>
68765
68766         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68767         so we can once again use a positive bitfield width of 1 -- now we
68768         don't have to explain why we were using a bitfield width of 2.
68769
68770 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68773         and similarly for the other external symbols.  Problem reported
68774         by James Gallager.
68775
68776         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68777         bug reported by Jim Meyering.
68778
68779         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68781         not needed, since socklen is a prerequisite module.
68782
68783 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68786         Problem reported by Eric Blake.
68787         (getaddrinfo): Initialize se so that it's not garbage.
68788         Redo internal storage allocation so that it doesn't make unportable
68789         assumptions about alignment.
68790         Fix a memory leak.
68791
68792         * lib/utimens.c (futimens): Use futimesat if available.
68793         Prefer it to futimes since it doesn't have the futimes bug.
68794
68795         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68796         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68797         Instead, declare a function that returns a pointer to an array,
68798         and use verify_type__ to declare the size of the array.
68799         Problem and germ of a solution reported by Bruno Haible.
68800         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68801         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68802
68803 2005-09-23  Jim Meyering  <jim@meyering.net>
68804
68805         Sync from coreutils.
68806         Correct build failure (socklen_t not defined) on at least
68807         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68808         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68809
68810 2005-09-23  Jim Meyering  <jim@meyering.net>
68811
68812         * modules/getaddrinfo (Depends-on): Add socklen.
68813
68814 2005-09-23  Bruno Haible  <bruno@clisp.org>
68815
68816         * tests/test-verify.c: New file.
68817
68818 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         Sync from coreutils.
68821
68822         * modules/argmatch (Depends-on): Add verify.
68823         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68824         unistd-safer.
68825         * modules/save-cwd (Depends-on): Likewise.
68826
68827         * modules/openat (Files): Add lib/openat-die.c.
68828         (Depends-on): Remove error, exitfail.
68829         Add dirname.
68830
68831         * modules/verify: New file.
68832         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68833         with "verify" module.
68834
68835 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68836
68837         Sync from coreutils.
68838
68839         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68840         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68841         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68842         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68843         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68844         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68845         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68846         Don't bother checking for string.h, stdlib.h, unistd.h.
68847         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68848         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68849         module's job.
68850         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68851         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68852
68853         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68854         (gl_GETDATE): Use it.
68855
68856         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68857
68858 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         Sync from coreutils.
68861
68862         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68863         stat-time.h.
68864         * lib/argmatch.h: Include verify.h
68865         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68866         (ARGMATCH_ASSERT): Remove; unused.
68867         * lib/canonicalize.c: Assume STDC_HEADERS.
68868         * lib/exclude.c: Include "strcase.h".
68869         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68870         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68871         and stdio-safer.h.
68872         (getusershell): Call fopen, not fopen_safer.
68873         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68874         Do not include unistd-safer.h.
68875         (save_cwd): Don't call fd_safer; no longer needed
68876         now that we include fcntl--.h.
68877
68878         * lib/getdate.y (relative_time): New type.
68879         (RELATIVE_TIME_0): New constant.
68880         (parser_control): Use relative_time instead of doing it ourselves.
68881         (%union): Add new relative_time rel member.
68882         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68883         Now typeless.
68884         (relunit, relunit_snumber): Now of type rel.
68885         (zone, rel, relunit, get_date): Adjust to above changes.
68886
68887         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68888         Do not include unistd-safer.h.
68889         (getloadavg): Don't call fd_safer; no longer needed
68890         now that we include fcntl--.h.
68891
68892         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68893         (make_dir_parents): Treat ENOSYS like EEXIST.
68894
68895         Improve quality of diagnostics on restore_cwd failure.
68896         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68897         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68898         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68899         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68900         each time through the loop.  Do not diagnose restore_cwd failure;
68901         that is the caller's job (and perhaps the caller does not care).
68902
68903         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68904         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68905         If the file already exists but is not a directory, don't bother
68906         to try to make its parents.
68907         Close potential file descriptor leak if we can't chdir("/") (!).
68908         Don't always return true if chdir($PWD) fails; return true only
68909         if the requested action was done successfully (except for the
68910         chdir($PWD)).
68911         Don't log final directory unless we actually made it.
68912         Refactor to avoid duplicate code to fix up permissions.
68913         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68914
68915         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68916         to make it a bit faster and (I hope) clearer.
68917         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68918         Fix bug in formats like %2N.
68919
68920         * lib/verify.h: New file.
68921
68922 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68923
68924         Sync from coreutils.
68925         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68926
68927 2005-09-22  Jim Meyering  <jim@meyering.net>
68928
68929         Sync from coreutils.
68930
68931         * m4/lstat.m4 (gl_FUNC_LSTAT):
68932         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68933         Remove obsolete comment.
68934         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68935         * m4/xstrtod.m4: Likewise.
68936
68937         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68938
68939 2005-09-22  Jim Meyering  <jim@meyering.net>
68940
68941         Sync from coreutils.
68942
68943         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68944
68945         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68946         the .tm_year member, since otherwise gcc-4.0 would now warn about
68947         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68948
68949         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68950         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68951
68952         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68953         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68954         when run in a time zone for which daylight savings time is in effect
68955         for the starting date.
68956
68957         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68958         stop us from restricting permissions of just-created absolute-named
68959         directories.
68960         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68961         to restore initial working directory.
68962         * lib/mkdir-p.c (make_dir_parents): New parameter:
68963         different_working_dir, to tell caller if/when we change the working
68964         directory and are unable to return to the initial one.
68965         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68966         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68967         `return false'.  This fixes a bug introduced on 2004-07-30.
68968
68969         * lib/openat.c (fdopendir): Be sure to close the supplied
68970         file descriptor before returning.  This makes our replacement
68971         implementation a little closer to Solaris's, where fdopendir
68972         ties the file descriptor to the returned DIR* pointer.
68973         * lib/openat.c (unlinkat): New function.
68974         * lib/openat.h (unlinkat): Add prototype.
68975         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68976         (openat_restore_fail): Rename from openat_restore_die.
68977         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68978
68979         Provide an alternative to exiting immediately upon save_cwd or
68980         restore_cwd failure.  Now, an application can arrange e.g.,
68981         to perform a longjump in that case.
68982         * lib/openat.c: Include dirname.h.
68983         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68984         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68985         and openat_restore_die rather than calling error directly.
68986         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68987
68988         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68989         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68990         define.
68991
68992         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68993         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68994                             int utc, int nanoseconds);
68995         Background:
68996         date should not have to allocate a megabyte of virtual memory to
68997         handle a format argument like +%1048575T.  When implemented with
68998         strftime, it must allocate such a buffer, use strftime to fill it
68999         in, print it, then free it.
69000         With fprintftime, it simply prints everything and exits.
69001         With no need for memory allocation, that's one fewer way to fail.
69002         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69003         optional field width, not before, so we accept %9:z, not %:9z.
69004         (my_strftime): Be sure to use L_('x') for literals.
69005
69006         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69007         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69008         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69009         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69010         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69011         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69012         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69013         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69014         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69015         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69016         * lib/xgethostname.c, lib/xreadlink.c:
69017         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69018
69019         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69020         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69021         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69022         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69023         and don't include <sys/file.h>).
69024
69025 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69026
69027         Sync from coreutils.
69028
69029         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69030         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69031         [!LDAV_DONE]: Avoid unused variable warning.
69032
69033 2005-09-21  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/unicodeio.h (unicode_to_mb): New declaration.
69036
69037 2005-09-20  Derek Price  <derek@ximbiot.com>
69038
69039         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69040         getaddrinfo.h.
69041
69042 2005-09-20  Bruno Haible  <bruno@clisp.org>
69043
69044         * gnulib-tool: Remove trailing slashes from the values specified for
69045         --source-base, --m4-base, --tests-base, --aux-dir.
69046         Suggested by Simon Josefsson <jas@extundo.com>.
69047
69048 2005-09-20  Bruno Haible  <bruno@clisp.org>
69049
69050         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69051         func_modules_to_filelist, func_import, func_create_testdir): Make all
69052         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69053         change when gnulib-tool is invoked in a different locale.
69054
69055 2005-09-19  Simon Josefsson  <jas@extundo.com>
69056
69057         * m4/socklen.m4: Fix typo.
69058
69059 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69060
69061         Use a consistent style for including <config.h>.
69062         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69063         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69064         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69065         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69066         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69067         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69068         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69069         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69070         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69071         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69072         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69073         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69074         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69075         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69076         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69077         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69078         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69079         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69080         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69081         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69082         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69083         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69084         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69085         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69086         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69087         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69088         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69089         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69090         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69091         lib/xstrtoumax.c, lib/yesno.c:
69092         Standardize inclusion of config.h.
69093         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69094         lib/inttostr.h:  Removed inclusion of config.h from header files.
69095         * lib/inttostr.c:  Adjusted in-tree users.
69096         * lib/timespec.h: Remove superfluous warning to include config.h.
69097         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69098         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69099         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69100         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69101         config.h with HAVE_CONFIG_H.
69102
69103 2005-09-19  Jim Meyering  <jim@meyering.net>
69104
69105         * modules/pathmax (License): Change to LGPL.
69106
69107 2005-09-19  Derek Price  <derek@ximbiot.com>
69108
69109         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69110
69111 2005-09-19  Bruno Haible  <bruno@clisp.org>
69112
69113         * gnulib-tool (import): Provide default for --tests-base.
69114
69115 2005-09-19  Bruno Haible  <bruno@clisp.org>
69116
69117         * doc/quote.texi: New file, extracted from gnulib.texi.
69118         * doc/ctime.texi: New file, extracted from gnulib.texi.
69119         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69120         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69121         * doc/gnulib.texi: Include them.
69122
69123 2005-09-18  Bruno Haible  <bruno@clisp.org>
69124
69125         Portability fix.
69126         * gnulib-tool (func_readlink): New function.
69127         (func_ln_if_changed): Use it.
69128
69129 2005-09-18  Bruno Haible  <bruno@clisp.org>
69130
69131         * gnulib-tool: Support --with-tests also with --import.
69132         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69133         (func_import): Use variables $testsbase and $inctests. Emit a
69134         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69135         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69136         SUBDIRS += $testsdir.
69137         (func_create_testdir): Update.
69138
69139 2005-09-18  Bruno Haible  <bruno@clisp.org>
69140
69141         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69142         instead of $dry_run.
69143         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69144         (func_ln_if_changed): Don't handle dry-run here.
69145         (func_import): In dry-run mode, detect more precisely which actions
69146         would be performed, and don't use "...ing" verbs.
69147
69148 2005-09-18  Bruno Haible  <bruno@clisp.org>
69149
69150         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69151         (func_import): Use join on two temporary files instead of three nested
69152         loops, in order to determine which files are new or old.
69153
69154 2005-09-18  Bruno Haible  <bruno@clisp.org>
69155
69156         * gnulib-tool (func_import): Comment out code that spits out the
69157         new files with --dry-run.
69158
69159 2005-09-18  Bruno Haible  <bruno@clisp.org>
69160
69161         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69162
69163 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         * lib/stat-time.h: New file.
69166         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69167         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69168         in a different way.
69169         (timespec_cmp): New function.
69170         * lib/utimecmp.c: Include stat-time.h.
69171         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69172         members exist, not on the obsolescent ST_MTIM_NSEC.
69173         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69174
69175 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69178
69179 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         * MODULES.html.sh (File system functions): Add stat-time.
69182         * modules/stat-time: New file.
69183         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69184         is now done in a different way, by the stat-time module.
69185         * modules/utimecmp (Depends-on): Add stat-time.
69186
69187 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * m4/st_mtim.m4: Remove.  Superseded by...
69190         * m4/stat-time.m4: New file.
69191         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69192         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69193
69194 2005-09-15  Derek Price  <derek@ximbiot.com>
69195
69196         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69197
69198 2005-09-15  Derek Price  <derek@ximbiot.com>
69199
69200         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69201         * lib/regex_internal.c: Ditto, using this...
69202         (__GNUC_PREREQ): ...new macro.
69203         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69204         using...
69205         (__GNUC_PREREQ): ...this new macro.
69206
69207         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69208
69209 2005-09-15  Derek Price  <derek@ximbiot.com>
69210             Paul Eggert  <eggert@cs.ucla.edu>
69211
69212         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69213         changes, consolidating in...
69214         * lib/regex_internal.h: ...this file.
69215
69216 2005-09-13  Jim Meyering  <jim@meyering.net>
69217
69218         * lib/canon-host.c: Filter through gnu indent and reword comments
69219         slightly.
69220         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69221
69222 2005-09-13  Derek Price  <derek@ximbiot.com>
69223
69224         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69225         failure.
69226         Reported by Jim Meyering  <jim@meyering.net>.
69227
69228 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69229
69230         * lib/base64.c: Typo.
69231         (base64_encode): Put b64str in initialized data section.
69232
69233 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69234
69235         Merge glibc and coreutils changes into gnulib, plus a few
69236         extra fixes.
69237         * lib/md5.c: Use #error rather than a string.
69238         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69239         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69240         (__attribute__): Define to empty for non recent-GCC.
69241         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69242         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69243         Renamed from their non-__ counterparts, with new macros replacing
69244         them if not _LIBC.  Add __THROW attribute.
69245         (rol): Remove.
69246         (struct md5_ctx): Align buffer if using GCC.
69247         * lib/sha1.h (struct sha1_ctx): Likewise.
69248         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69249         The old name was backwards.
69250         (NOTSWAP): Remove; not used.
69251         (rol): New macro, moved here from md5.h.
69252         (sha1_process_block): Remove a FIXME that doesn't make sense.
69253
69254 2005-09-12  Derek Price  <derek@ximbiot.com>
69255
69256         Return usable errors from canon-host.
69257         * lib/canon-host.h: New file.
69258         * lib/canon-host.c (canon_host): Wrap...
69259         (canon_host_r): ...this new function, which now relies exclusively on
69260         getaddrinfo.
69261         (ch_strerror): New function.
69262         (last_cherror): New global.
69263         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69264         interface.
69265         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69266         void *.
69267         (freeaddrinfo): Free ai->ai_canonname when set.
69268
69269 2005-09-12  Derek Price  <derek@ximbiot.com>
69270
69271         Make canon-host require getaddrinfo.
69272         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69273         AC_LIBSOURCE canon-host.h.  Call...
69274         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69275         gl_GETADDRINFO.
69276         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69277
69278 2005-09-12  Derek Price  <derek@ximbiot.com>
69279
69280         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69281         LGPL.
69282         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69283
69284 2005-09-12  Derek Price  <derek@ximbiot.com>
69285
69286         * lib/gai_strerror.c: Include config.h when available.  Include
69287         getaddrinfo.h before other headers to test interface.
69288         Reported by Larry Jones <lawrence.jones@ugs.com>.
69289
69290 2005-09-12  Derek Price  <derek@ximbiot.com>
69291             Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * modules/glob (Files): Add glob-libc.h.
69294
69295 2005-09-12  Derek Price  <derek@ximbiot.com>
69296             Paul Eggert  <eggert@cs.ucla.edu>
69297
69298         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69299         glob_.h, glob-libc.h.
69300         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69301
69302 2005-09-12  Derek Price  <derek@ximbiot.com>
69303             Paul Eggert  <eggert@cs.ucla.edu>
69304
69305         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69306         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69307         protecting things that should be done only in gnulib contexts.
69308         * lib/glob_.h: New file, containing only the glob things needed for
69309         gnulib.
69310         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69311         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69312         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69313         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69314         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69315         and to respect the namespace rules better.
69316
69317 2005-09-08  Simon Josefsson  <jas@extundo.com>
69318
69319         * modules/socklen: New file.
69320
69321 2005-09-08  Simon Josefsson  <jas@extundo.com>
69322
69323         * m4/socklen.m4: New file.
69324
69325 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * modules/utimens (Files): Add m4/utimbuf.m4, since
69328         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69329         Reported by Sergey Poznyakoff.
69330
69331 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69332
69333         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69334         definitions, since that's the preferred style in glibc.
69335         Fix a minor spacing issue, and update copyright notice to match
69336         glibc's.
69337
69338 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69341
69342 2005-09-06  Simon Josefsson  <jas@extundo.com>
69343
69344         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69345         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69346
69347 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69350         warning.
69351
69352 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * config/srclist.txt: Add glibc bug 1302.
69355
69356 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         Change bitset word type from unsigned int to unsigned long int,
69359         as this has better performance on typical 64-bit hosts.
69360         Port bitset code to hosts with unusual word sizes.
69361         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69362         (build_collating_symbol):
69363         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69364         argument is a bitset.  This is merely a style issue, but it makes
69365         it clearer that an entire array is expected.
69366         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69367         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69368         Port to the case where bitset_word is not the same as unsigned int.
69369         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69370         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69371         Likewise.
69372         * lib/regexec.c (check_dst_limits_calc_pos_1,
69373         check_subexp_matching_top):
69374         (build_trtable, group_nodes_into_DFAstates):
69375         Likewise.
69376         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69377         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69378         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69379         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69380         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69381         * lib/regcomp.c (optimize_subexps, lower_subexp):
69382         Work even if bitset_word has holes in its bitwise representation.
69383         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69384         * lib/regexec.c (check_dst_limits_calc_pos_1,
69385         check_subexp_matching_top):
69386         Likewise.
69387         * lib/regex_internal.c (re_string_reconstruct):
69388         Don't assume UCHAR_MAX == 255.
69389         * lib/regex_internal.h (bitset_set_all): Likewise.
69390         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69391         All uses changed.
69392         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69393         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69394         All uses changed.
69395         (BITSET_WORD_MAX): New macro.
69396         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69397         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69398         (bitset_empty, bitset_copy):
69399         Prefer sizeof (bitset) to multiplying it out ourselves.
69400         (bitset_not_merge): Remove; unused.
69401         (bitset_contain): Return bool, not unsigned int with one bit on.
69402         All callers changed.
69403         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69404         alignment than re_node_set; do this by defining a new internal
69405         type struct dests_alloc and using it to allocate memory.
69406
69407 2005-09-05  Bruno Haible  <bruno@clisp.org>
69408
69409         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69410         links.
69411
69412 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69413
69414         * modules/size_max (Makefile.am): Add size_max.h
69415
69416 2005-09-04  Derek Price  <derek@ximbiot.com>
69417
69418         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69419
69420 2005-09-03  Simon Josefsson  <jas@extundo.com>
69421
69422         * gnulib-tool: Fix typo.
69423
69424 2005-09-03  Simon Josefsson  <jas@extundo.com>
69425
69426         * config/srclist.txt: Add glibc bug 1293.
69427
69428 2005-09-03  Derek Price  <derek@ximbiot.com>
69429
69430         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69431         From Larry Jones <lawrence.jones@ugs.com>.
69432
69433 2005-09-02  Simon Josefsson  <jas@extundo.com>
69434
69435         * modules/socklen: New file.
69436
69437 2005-09-02  Simon Josefsson  <jas@extundo.com>
69438
69439         * modules/havelib: New module.
69440
69441         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69442         Use havelib.
69443
69444 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         Check for arithmetic overflow when calculating sizes, to prevent
69447         some buffer-overflow issues.  These patches are conservative, in the
69448         sense that when I couldn't determine whether an overflow was possible,
69449         I inserted a run-time check.
69450         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69451         macros.
69452         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69453         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69454         (re_xnrealloc, re_x2nrealloc): New inline functions.
69455         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69456         parse_bracket_exp):
69457         (build_equiv_class, build_charclass): Check for arithmetic overflow
69458         in size expression calculations.
69459         * lib/regex_internal.c (re_string_realloc_buffers):
69460         (build_wcs_upper_buffer, re_node_set_add_intersect):
69461         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69462         (re_dfa_add_node, register_state): Likewise.
69463         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69464         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69465         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69466         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69467
69468 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69471         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69472
69473 2005-09-02  Bruno Haible  <bruno@clisp.org>
69474
69475         Support for lib vs. lib64 distinction on biarch platforms.
69476         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69477         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69478         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69479
69480 2005-09-02  Bruno Haible  <bruno@clisp.org>
69481
69482         * gnulib-tool (import): In the other first-use case, provide defaults
69483         as well.
69484
69485 2005-09-02  Bruno Haible  <bruno@clisp.org>
69486
69487         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69488         patches not yet found in the latest gettext release.
69489
69490 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69493         to avoid a collision with bits/local_lim.h in glibc.
69494         All uses changed.  Problem reported by Dmitry V. Levin in
69495         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69496
69497         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69498         bugs in int versus size_t comparisons.
69499         (re_string_context_at): Fix bug where the code assumed that
69500         Idx is signed.
69501
69502         Use bool where appropriate.
69503         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69504         All callers changed.
69505         (calc_eclosure_iter): Likewise, for ROOT arg.
69506         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69507         (build_charclass_op): Likewise, for NON_MATCH arg.
69508         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69509         (re_string_construct_common): Likewise, for ICASE arg.
69510         * lib/regexec.c (re_search_2_stub, re_search_stub):
69511         Likewise, for RET_LEN arg.
69512         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69513         (set_regs): Likewise, for FL_BACKTRACK arg.
69514         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69515         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69516         (calc_eclosure_iter, parse_bracket_exp):
69517         Use bool for internal variables that are booleans.
69518         * lib/regexec.c (re_search_internal, check_matching,
69519         proceed_next_node):
69520         (set_regs, build_sifted_states, sift_states_bkref):
69521         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69522         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69523         (find_collation_sequence_value):
69524         Likewise.
69525         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69526         (re_node_set_compare):
69527         Return bool, not int. All callers changed.
69528         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69529         (build_trtable, check_node_accept): Likewise.
69530         * lib/regex_internal.h: Include stdbool.h.
69531
69532         Fix bugs uncovered when converting to bool.
69533         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69534         failure instead of charging ahead blindly.
69535         * lib/regex_internal.c (register_state): Likewise.
69536         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69537         for freeing internal storage.
69538         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69539         bitset pieces used as boolean, to avoid undefined behavior
69540         on hosts that do int overflow checking.
69541
69542 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * config/srclist.txt: Add glibc bugs 1285-1287.
69545
69546 2005-09-01  Jim Meyering  <jim@meyering.net>
69547
69548         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69549         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69550         Require gl_STAT_MACROS, too.
69551
69552 2005-09-01  Bruno Haible  <bruno@clisp.org>
69553
69554         * gnulib-tool (import): In the first-use case, provide defaults.
69555
69556 2005-09-01  Bruno Haible  <bruno@clisp.org>
69557
69558         * gnulib-tool (func_import): Remove the .tmp files.
69559
69560 2005-09-01  Bruno Haible  <bruno@clisp.org>
69561
69562         * gnulib-tool (func_import): Fix handling of symbolic links.
69563
69564 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69565
69566         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69567         old glibc regex code mishandles strings longer than 2**31 bytes.
69568         This patch fixes this when the regex code is used in gnulib
69569         (i.e., outside glibc).
69570
69571         This patch should not affect the use of the regex code inside
69572         glibc.  No doubt this problem also needs to be handled for glibc
69573         as well, but the result will be an incompatible change to the
69574         glibc ABI, and the old ABI will have to be supported too.  That
69575         can be the the subject for another patch.
69576
69577         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69578         governing whether the rest of this patch is active.  By default,
69579         the macro is disabled and the patch has no effect.
69580         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69581         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69582         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69583         (re_match_2, re_set_registers): Use the new types.
69584         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69585         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69586         New macros.
69587         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69588         (re_string_context_at, bin_tree_t, re_dfastate_t):
69589         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69590         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69591         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69592         (re_string_char_size_at, re_string_wchar_at):
69593         (re_string_elem_size_at):
69594         Use the new types and macros to port to 64-bit hosts.
69595         Use unsigned types for internal values, so that the code
69596         mostly works even for arrays larger than SSIZE_MAX.
69597         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69598         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69599         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69600         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69601         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69602         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69603         (calc_inveclosure, parse_dup_op, build_range_exp):
69604         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69605         (fetch_number, create_token_tree, mark_opt_subexp):
69606         Likewise.
69607         * lib/regex_internal.c (re_string_construct_common,
69608         create_ci_newstate):
69609         (create_cd_newstate, re_string_allocate, re_string_construct):
69610         (re_string_realloc_buffers, build_wcs_upper_buffer):
69611         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69612         (re_string_reconstruct, re_string_peek_byte_case):
69613         (re_string_fetch_byte_case, re_string_context_at):
69614         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69615         (re_node_set_init_copy, re_node_set_add_intersect):
69616         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69617         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69618         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69619         (re_acquire_state, re_acquire_state_context, register_state):
69620         Likewise.
69621         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69622         search_cur_bkref_entry):
69623         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69624         (re_search_internal, re_search_2_stub, re_search_stub)
69625         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69626         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69627         (update_cur_sifted_state, check_dst_limits):
69628         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69629         (check_subexp_limits, sift_states_bkref, merge_state_array):
69630         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69631         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69632         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69633         (expand_bkref_cache, check_node_accept_bytes):
69634         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69635         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69636         (acquire_init_state_context, check_halt_node_context):
69637         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69638         (sift_states_backward, clean_state_log_if_needed):
69639         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69640         (find_recover_state, transit_state_sb, transit_state_mb):
69641         (transit_state_bkref, build_trtable, match_ctx_clean):
69642         Likewise.
69643         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69644         to work around an assumption that REG_MISSING is negative.
69645
69646         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69647         (seek_collating_symbol_entry) [defined _LIBC]:
69648         (lookup_collation_sequence_value) [defined _LIBC]:
69649         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69650         Use prototypes rather than old-style function definitions.
69651         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69652         (transit_state_sb) [0]:
69653         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69654
69655         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69656         rm_eo.
69657
69658         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69659         (optimize_subexps, lower_subexp):
69660         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69661         since the signed shift might overflow.  Use 1u<<31 instead.
69662         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69663         Likewise.
69664         * lib/regexec.c (check_dst_limits_calc_pos_1,
69665         check_subexp_matching_top): Likewise.
69666
69667         * lib/regcomp.c (optimize_subexps, lower_subexp):
69668         Use CHAR_BIT rather than 8, for clarity.
69669         * lib/regexec.c (check_dst_limits_calc_pos_1):
69670         (check_subexp_matching_top): Likewise.
69671         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69672         have to worry about portability issues when shifting it left.
69673         Remove no-longer-needed test for table_size > 0.
69674         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69675         in a word, as the resulting behavior is undefined.
69676         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69677         in one case, a <= should have been an <, and in another case the
69678         whole test was missing.
69679         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69680         the standard name CHAR_BIT.
69681         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69682         this is not true on one's complement and signed-magnitude hosts.
69683
69684         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69685         next_last_offset.
69686         (struct re_dfa_t): Remove unused member states_alloc.
69687         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69688
69689 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69692         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69693         and large-file glibc and in 32-bit large-file Solaris.
69694
69695 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69698         lengths fit in regoff_t; this isn't true if regoff_t is the same
69699         width as size_t.
69700         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69701         (= START + RANGE) instead of RANGE.  This avoids overflow
69702         problems when regoff_t is the same width as size_t.
69703         All callers changed.
69704         (re_search_2_stub): Check for overflow when adding the
69705         sizes of the two strings.
69706         (re_search_stub): Check for overflow when adding START
69707         to RANGE; if it occurs, substitute the extreme value.
69708
69709 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69712
69713 2005-08-31  Jim Meyering  <jim@meyering.net>
69714
69715         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69716         a pointer-to-const.
69717         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69718         (register_state): Likewise.
69719         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69720         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69721         (group_nodes_into_DFAstates): Likewise.
69722
69723 2005-08-31  Jim Meyering  <jim@meyering.net>
69724
69725         * check-module: Add a FIXME comment.
69726
69727 2005-08-31  Eric Blake  <ebb9@byu.net>
69728
69729         * modules/unistd-safer (Files): Add unistd--.h.
69730         * modules/stdio-safer (Files): Add stdio--.h.
69731
69732 2005-08-31  Derek Price  <derek@ximbiot.com>
69733
69734         * lib/getdelim.c (getdelim): Return EOF on EOF.
69735         Reported by Larry Jones <lawrence.jones@ugs.com>.
69736
69737 2005-08-31  Bruno Haible  <bruno@clisp.org>
69738
69739         Avoid unnecessary diffs in the generated lib/Makefile.am.
69740         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69741         the generated files.
69742         (func_import): Don't set cmd.
69743
69744 2005-08-31  Bruno Haible  <bruno@clisp.org>
69745
69746         * lib/strstr.c: Include <stddef.h>, for NULL.
69747         * lib/strcasestr.c: Likewise.
69748         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69749
69750 2005-08-31  Bruno Haible  <bruno@clisp.org>
69751
69752         * gnulib-tool: New option --macro-prefix.
69753         (func_import): Use macro_prefix.
69754         (import): Handle option --macro-prefix.
69755
69756 2005-08-31  Bruno Haible  <bruno@clisp.org>
69757
69758         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69759         Also use new variables cached_lgpl, cached_libtool.
69760
69761 2005-08-31  Bruno Haible  <bruno@clisp.org>
69762
69763         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69764         always instantiating them.
69765
69766 2005-08-31  Bruno Haible  <bruno@clisp.org>
69767
69768         * gnulib-tool (func_import): Read the previous cached settings
69769         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69770         earlier added by gnulib but are now dropped. Warn when a gnulib file
69771         overwrites a non-gnulib file.
69772
69773 2005-08-31  Bruno Haible  <bruno@clisp.org>
69774
69775         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69776         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69777         projects that don't keep autogenerated files in CVS. Put into
69778         actioncmd only the specified modules, not the transitive closure.
69779
69780 2005-08-31  Bruno Haible  <bruno@clisp.org>
69781
69782         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69783         Create directories that shall be filled.
69784         (import): Don't look for gl_* macros in configure.ac. Recurse across
69785         all directories containing a gnulib-cache.m4 files, if meaningful.
69786
69787 2005-08-31  Bruno Haible  <bruno@clisp.org>
69788
69789         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69790         (import): Set seen_libtool when we see gl_LIBTOOL.
69791
69792 2005-08-31  Bruno Haible  <bruno@clisp.org>
69793
69794         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69795         declaration macro definitions from generated gnulib.m4.
69796
69797 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69798
69799         * lib/iconvme.h: Add prototype for iconv_alloc.
69800
69801 2005-08-29  Simon Josefsson  <jas@extundo.com>
69802
69803         * lib/iconvme.c: Fix errno.
69804
69805 2005-08-29  Bruno Haible  <bruno@clisp.org>
69806
69807         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69808         that it works when the directory contains spaces.
69809
69810 2005-08-29  Bruno Haible  <bruno@clisp.org>
69811
69812         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69813
69814 2005-08-29  Bruno Haible  <bruno@clisp.org>
69815
69816         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69817         Emit more advice.
69818
69819 2005-08-29  Bruno Haible  <bruno@clisp.org>
69820         and Stepan Kasal  <kasal@ucw.cz>
69821
69822         * check-module: If more parameters are given, check each of them
69823         separately; add more exceptions, as noted by Jim Meyering.
69824         (check_module): New procedure.
69825         (%exempt_header): Now contains all exceptions.
69826
69827 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69828
69829         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69830
69831 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69832
69833         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69834
69835 2005-08-28  Bruno Haible  <bruno@clisp.org>
69836
69837         * m4/gnulib-tool.m4: New file.
69838
69839 2005-08-27  Jim Meyering  <jim@meyering.net>
69840
69841         * modules/unistd-safer (Files): Add pipe-safer.c.
69842         * modules/fcntl-safer (Files): Add creat-safer.c.
69843
69844 2005-08-27  Jim Meyering  <jim@meyering.net>
69845
69846         * m4/stdlib-safer.m4: New file.  From coreutils.
69847         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69848         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69849         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69850         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69851         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69852
69853 2005-08-27  Jim Meyering  <jim@meyering.net>
69854
69855         * lib/fopen-safer.c: Merge minor changes from coreutils.
69856         * lib/dup-safer.c: Likewise.
69857         * lib/fd-safer.c: Likewise.
69858
69859         Merge from coreutils.
69860         * lib/stdio--.h: New file.
69861         * lib/stdlib--.h: New file.
69862         * lib/mkstemp-safer.c: New file.
69863
69864         GNU tar needs these.
69865         * lib/pipe-safer.c: New file.
69866         * lib/creat-safer.c: New file.
69867         * lib/fcntl--.h (creat): Define to creat_safer.
69868         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69869         * lib/unistd--.h (pipe): Define to pipe_safer.
69870         * lib/unistd-safer.h: Declare pipe_safer.
69871
69872 2005-08-26  Simon Josefsson  <jas@extundo.com>
69873
69874         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69875         Haible <bruno@clisp.org>.
69876
69877 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69878
69879         * lib/regex_internal.h: Remove all references to
69880         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69881         or better.
69882         (bitset_not, bitset_merge, bitset_not_merge):
69883         (bitset_mask, re_string_allocate, re_string_construct):
69884         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69885         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69886         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69887         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69888         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69889         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69890         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69891         (re_acquire_state_context):
69892         Remove unnecessary forward decls.
69893         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69894         Put __attribute at function definition,
69895         now that the function decl has been removed.
69896         * lib/regex_internal.c (re_string_peek_byte_case):
69897         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69898         Likewise.
69899
69900 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69901
69902         * m4/regex.m4: Add AC_PREREQ(2.50).
69903         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69904
69905 2005-08-25  Simon Josefsson  <jas@extundo.com>
69906
69907         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69908         __fsetlocking.
69909
69910 2005-08-25  Simon Josefsson  <jas@extundo.com>
69911
69912         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69913         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69914         GLIBC specific code.
69915
69916 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         Make regex safe for g++.  This fixes one real bug (an "err"
69919         that should have been "*err").  g++ problem reported by
69920         Sam Steingold.
69921         * lib/regex_internal.h (re_calloc): New macro, consistent with
69922         re_malloc etc.  All callers of calloc changed to use re_calloc.
69923         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69924         not int.  All callers changed.
69925         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69926         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69927         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69928         (find_recover_state): Change "err" to "*err"; this fixes what
69929         appears to be a real bug.
69930         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69931         versus int.
69932
69933 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * modules/regex (Depends-on): Add malloc, since the code
69936         assumes that !malloc(0) means failure.
69937
69938 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69941
69942         alloca modernization/simplification for regex.
69943         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69944         needs to be at the start of the file, and can be moved into
69945         regex_internal.h and simplified.
69946         * lib/regex_internal.h: Include <alloca.h>.
69947         (__libc_use_alloca) [!defined _LIBC]: New macro.
69948         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69949         now works outside glibc.
69950
69951 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69952
69953         * config/srclist.txt: Add glibc bugs 1241, 1245.
69954
69955 2005-08-25  Jim Meyering  <jim@meyering.net>
69956
69957         * lib/open-safer.c: Include <config.h>.
69958         Otherwise, we'd lose LARGEFILE support in any file using
69959         e.g. "fcntl--.h"
69960
69961 2005-08-25  Bruno Haible  <bruno@clisp.org>
69962
69963         * m4/minmax.m4: Require autoconf 2.52.
69964         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69965         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69966         alternatives of translit over the alphabet.
69967         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69968
69969 2005-08-24  Simon Josefsson  <jas@extundo.com>
69970
69971         * tests/test-getpass.c: New file.
69972
69973 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69976         for GNU regex features.
69977
69978 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69981         * lib/regex.h (regerror): Likewise.
69982
69983         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69984         requires this.  (The code never needed it.)
69985
69986         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69987         All uses of recently-renamed identifiers changed to use the new,
69988         POSIX-compliant names.  The code will build and run just fine
69989         without these changes, but it's better to eat our own dog food
69990         and use the standard-conforming names.
69991
69992         * lib/regex.h: Fix a multitude of POSIX name space violations.
69993         These changes have an effect only for programs that define
69994         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69995         do not change anything for programs compiled in the normal way.
69996         Also, there is no effect on the ABI.
69997
69998         (_REGEX_SOURCE): New macro.
69999         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70000         defined and _GNU_SOURCE is not; this fixes a name space violation.
70001
70002         Rename the following macros to obey POSIX requirements.
70003         The old names are still visible as macros if _REGEX_SOURCE is defined.
70004         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70005         RE_BACKSLASH_ESCAPE_IN_LISTS.
70006         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70007         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70008         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70009         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70010         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70011         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70012         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70013         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70014         (REG_INTERVALS): renamed from RE_INTERVALS.
70015         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70016         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70017         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70018         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70019         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70020         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70021         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70022         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70023         RE_UNMATCHED_RIGHT_PAREN_ORD.
70024         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70025         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70026         (REG_DEBUG): renamed from RE_DEBUG.
70027         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70028         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70029         unusual, since we can't clash with the POSIX REG_ICASE.
70030         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70031         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70032         (REG_NO_SUB): renamed from RE_NO_SUB.
70033         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70034         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70035         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70036         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70037         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70038         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70039         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70040         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70041         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70042         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70043         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70044         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70045         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70046         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70047         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70048         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70049         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70050         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70051         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70052         (REG_FIXED): Renamed from REGS_FIXED.
70053         (REG_NREGS): Renamed from RE_NREGS.
70054
70055         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70056         of other REG_* macros, since POSIX says the user is allowed to
70057         #undef these macros selectively.
70058
70059         (reg_errcode_t): Update comment stating what other tables need
70060         to be consistent.
70061
70062         Rename the following enum values to obey POSIX requirements.
70063         The old names are still visible as macros.
70064         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70065         is not defined, since GNU is supposed to be a superset of POSIX as
70066         much as possible, and since we want reg_errcode_t to be a signed
70067         type for implementation consistency.
70068         (_REG_NOERROR): Renamed from REG_NOERROR.
70069         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70070         (_REG_BADPAT): Renamed from REG_BADPAT.
70071         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70072         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70073         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70074         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70075         (_REG_EBRACK): Renamed from REG_EBRACK.
70076         (_REG_EPAREN): Renamed from REG_EPAREN.
70077         (_REG_EBRACE): Renamed from REG_EBRACE.
70078         (_REG_BADBR): Renamed from REG_BADBR.
70079         (_REG_ERANGE): Renamed from REG_ERANGE.
70080         (_REG_ESPACE): Renamed from REG_ESPACE.
70081         (_REG_BADRPT): Renamed from REG_BADRPT.
70082         (_REG_EEND): Renamed from REG_EEND.
70083         (_REG_ESIZE): Renamed from REG_ESIZE.
70084         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70085         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70086         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70087         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70088         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70089
70090         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70091         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70092         changed.  But support the old name if the new one is not defined
70093         and if _REGEX_SOURCE.
70094
70095         Change the following member names in struct re_pattern_buffer.
70096         The old names are still supported if !_REGEX_SOURCE.
70097         The new names are always supported, regardless of _REGEX_SOURCE.
70098         (re_buffer): Renamed from buffer.
70099         (re_allocated): Renamed from allocated.
70100         (re_used): Renamed from used.
70101         (re_syntax): Renamed from syntax.
70102         (re_fastmap): Renamed from fastmap.
70103         (re_translate): Renamed from translate.
70104         (re_can_be_null): Renamed from can_be_null.
70105         (re_regs_allocated): Renamed from regs_allocated.
70106         (re_fastmap_accurate): Renamed from fastmap_accurate.
70107         (re_no_sub): Renamed from no_sub.
70108         (re_not_bol): Renamed from not_bol.
70109         (re_not_eol): Renamed from not_eol.
70110         (re_newline_anchor): Renamed from newline_anchor.
70111
70112         Change the following member names in struct re_registers.
70113         The old names are still supported if !_REGEX_SOURCE.
70114         The new names are always supported, regardless of _REGEX_SOURCE.
70115         (rm_num_regs): Renamed from num_regs.
70116         (rm_start): Renamed from start.
70117         (rm_end): Renamed from end.
70118
70119         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70120         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70121         Prepend __ to parameter names.
70122
70123         Undo yesterday's changes.
70124
70125 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70128         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70129         lib/regex.c.
70130
70131 2005-08-24  Jim Meyering  <jim@meyering.net>
70132
70133         Sync from coreutils.
70134         * m4/fcntl-safer.m4: New file.
70135
70136         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70137         and object files for this module.
70138
70139 2005-08-24  Jim Meyering  <jim@meyering.net>
70140
70141         Sync from coreutils.
70142         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70143
70144 2005-08-24  Jim Meyering  <jim@meyering.net>
70145
70146         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70147         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70148
70149 2005-08-24  Jim Meyering  <jim@meyering.net>
70150
70151         * modules/fcntl-safer: New module.
70152         * modules/fts (Depends-on): Add fcntl-safer.
70153         * MODULES.html.sh (File descriptor based Input/Output):
70154         Add fcntl-safer.
70155
70156 2005-08-24  Bruno Haible  <bruno@clisp.org>
70157
70158         Support for unit test modules.
70159         * modules/README: Mention tests modules.
70160         * modules/TEMPLATE-TESTS: New file.
70161         * gnulib-tool: New options --extract-tests-module, --with-tests and
70162         --tests-base (unused for the moment).
70163         (testsbase, inctests): New variables.
70164         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70165         (func_verify_module): Exclude TEMPLATE-TESTS.
70166         (func_verify_nontests_module, func_verify_tests_module): New functions.
70167         (func_get_dependencies): Add implicit dependency for tests modules.
70168         (func_get_tests_module): New function.
70169         (func_modules_transitive_closure): When --with-tests was specified,
70170         include the unit tests as well, unless explicitly avoided.
70171         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70172         (func_emit_tests_Makefile_am): New function.
70173         (func_create_testdir): When --with-tests was specified, emit a
70174         tests/ directory.
70175         * MODULES.html.sh (Future developments): Update.
70176
70177 2005-08-24  Bruno Haible  <bruno@clisp.org>
70178
70179         * modules/tls-tests: New file.
70180         * tests/test-tls.c: New file, from GNU gettext.
70181
70182 2005-08-24  Bruno Haible  <bruno@clisp.org>
70183
70184         * modules/lock-tests: New file.
70185         * tests/test-lock.c: New file, from GNU gettext.
70186
70187 2005-08-24  Bruno Haible  <bruno@clisp.org>
70188
70189         * lib/lock.h: Add multiple inclusion guard.
70190         * lib/tls.h: Add multiple inclusion guard.
70191
70192 2005-08-24  Bruno Haible  <bruno@clisp.org>
70193
70194         * gnulib-tool: Add support for the --aux-dir option to
70195         --create-testdir, --create-megatestdir, --test, --megatest.
70196         (func_create_testdir, func_create_megatestdir): Optionally emit a
70197         AC_CONFIG_AUX_DIR directive.
70198         (create-testdir, create-megatestdir, test, megatest): Provide a
70199         default value for $auxdir.
70200
70201 2005-08-24  Bruno Haible  <bruno@clisp.org>
70202
70203         * gnulib-tool (import): Use compound statement instead of subshell
70204         where possible.
70205
70206 2005-08-24  Bruno Haible  <bruno@clisp.org>
70207
70208         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70209
70210 2005-08-24  Bruno Haible  <bruno@clisp.org>
70211
70212         * gnulib-tool (func_version): Update.
70213
70214 2005-08-24  Bruno Haible  <bruno@clisp.org>
70215
70216         * gnulib-tool (func_import, func_create_testdir,
70217         func_create_megatestdir): Quote all autoconf macro arguments.
70218
70219 2005-08-24  Bruno Haible  <bruno@clisp.org>
70220
70221         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70222         option --force, because --force causes the aclocal.m4 of each
70223         subdirectory to be newer than the corresponding config.h.in.
70224
70225 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70228         All contents moved to gl_REGEX.
70229         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70230         assume that it does.
70231
70232 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70233
70234         * lib/regex.h (REG_NOSYS)
70235         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70236         Define, since POSIX requires it as of 2001.
70237         (_REG_ENOSYS)
70238         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70239         New private symbol, used to keep the enum signed in all cases.
70240         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70241         Youngman in
70242         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70243
70244         * lib/regex_internal.c (re_string_skip_chars, register_state):
70245         (calc_state_hash):
70246         Remove forward decls; no longer needed now that we use prototypes.
70247         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70248         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70249         (clean_state_log_if_needed): Likewise.
70250
70251 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70252
70253         * config/srclist.txt: Add glibc bugs 1231-1233.
70254
70255 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70256
70257         Fix problems reported by Sam Steingold in
70258         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70259         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70260         assumed that reg_errcode_t is a signed type, which is not
70261         necessarily true if _XOPEN_SOURCE is not defined.
70262         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70263         since some compilers warn about it otherwise.
70264
70265 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70268         (init_word_char, create_initial_state, duplicate_node_closure):
70269         (fetch_token, peek_token_bracket, build_range_exp):
70270         (build_collating_symbol): Remove forward decls; no longer needed
70271         now that we use prototypes.
70272
70273         * lib/regcomp.c:
70274         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70275         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70276         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70277         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70278         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70279         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70280         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70281         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70282         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70283         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70284         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70285         (build_charclass, build_charclass_op, fetch_number, create_tree):
70286         (create_token_tree, mark_opt_subexp, duplicate_tree):
70287         Use prototypes rather than old-style definitions.
70288
70289         * lib/regex_internal.c:
70290         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70291         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70292         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70293         (re_string_reconstruct, re_string_peek_byte_case):
70294         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70295         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70296         (re_node_set_init_copy, re_node_set_add_intersect):
70297         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70298         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70299         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70300         (re_acquire_state, re_acquire_state_context, register_state):
70301         (create_ci_newstate, create_cd_newstate, free_state):
70302         Likewise.
70303         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70304         re_search_2):
70305         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70306         (re_search_internal, prune_impossible_nodes):
70307         (acquire_init_state_context, check_matching, static):
70308         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70309         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70310         (update_regs, sift_states_backward, build_sifted_states):
70311         (clean_state_log_if_needed, merge_state_array):
70312         (update_cur_sifted_state, add_epsilon_src_nodes):
70313         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70314         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70315         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70316         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70317         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70318         (check_arrival, check_arrival_add_next_nodes):
70319         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70320         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70321         (check_node_accept_bytes, check_node_accept, extend_buffers):
70322         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70323         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70324         (sift_ctx_init):
70325         Likewise.
70326
70327         * lib/regex_internal.h:
70328         (re_string_allocate, re_string_construct, re_string_reconstruct):
70329         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70330         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70331         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70332         (re_string_context_at, re_string_peek_byte_case):
70333         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70334         is defined, since we now use prototypes always.
70335
70336         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70337         C89 or better.  All uses removed.
70338
70339 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * config/srclist.txt: Add glibc bugs 1220-1227.
70342
70343 2005-08-20  Jim Meyering  <jim@meyering.net>
70344
70345         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70346         of unused local, dfa.
70347
70348 2005-08-20  Bruno Haible  <bruno@clisp.org>
70349
70350         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70351
70352 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70355         (re_node_set_insert_last, re_dfa_add_node):
70356         Rename local variables to avoid GCC shadowing warnings.
70357
70358 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70359
70360         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70361         [defined lint]: Suppress bogus uninitialized-variable warnings.
70362
70363         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70364         and let the caller return REG_ESPACE if out of space.  This
70365         removes an uninitialied-variable warning with GCC 4.0.1, and also
70366         avoids taking the address of a local variable.  All callers
70367         changed.
70368
70369 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70372         $LIBCSRC/posix/regexec.c.
70373         Add glibc bug 1217 for regcomp.c.
70374
70375 2005-08-19  Jim Meyering  <jim@meyering.net>
70376
70377         * lib/regexec.c (proceed_next_node): Redo local variables to
70378         avoid GCC shadowing warnings.
70379
70380 2005-08-18  Bruno Haible  <bruno@clisp.org>
70381
70382         * lib/strstr.c (strstr): Fix return value in multibyte case.
70383         * lib/strcasestr.c (strcasestr): Likewise.
70384
70385 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70388
70389 2005-08-17  Jim Meyering  <jim@meyering.net>
70390
70391         Make the %s format (seconds since the epoch) work for a negative
70392         number and when used with a zero-padded field width, e.g. %015s.
70393
70394         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70395         label so that it precedes the code to set `digits'.  Otherwise,
70396         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70397         print `00-22'.  Now, it prints `-0022', as it should.
70398
70399 2005-08-17  Bruno Haible  <bruno@clisp.org>
70400
70401         * modules/strstr (Files): Add m4/mbrtowc.m4.
70402         (Depends-on): Add mbuiter.
70403
70404 2005-08-17  Bruno Haible  <bruno@clisp.org>
70405
70406         * modules/strcasestr: New file.
70407         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70408         strcasestr.
70409
70410 2005-08-17  Bruno Haible  <bruno@clisp.org>
70411
70412         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70413
70414 2005-08-17  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/mbuiter: New file.
70417         * MODULES.html.sh (Extended multibyte and wide character utilities):
70418         Add mbuiter.
70419
70420 2005-08-17  Bruno Haible  <bruno@clisp.org>
70421
70422         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70423         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70424
70425 2005-08-17  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/strcasestr.m4: New file.
70428
70429 2005-08-17  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70432         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70433
70434 2005-08-17  Bruno Haible  <bruno@clisp.org>
70435
70436         * lib/strcasestr.h: New file.
70437         * lib/strcasestr.c: New file.
70438
70439 2005-08-17  Bruno Haible  <bruno@clisp.org>
70440
70441         * lib/strcasecmp.c: Use mbuiter.h.
70442
70443 2005-08-17  Bruno Haible  <bruno@clisp.org>
70444
70445         * lib/mbuiter.h: New file.
70446
70447 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70450         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70451         and gl_GETOPT are both invoked via different paths (as happens
70452         with GNU tar CVS because it uses both argp and getopt), the former
70453         wins.
70454
70455 2005-08-16  Bruno Haible  <bruno@clisp.org>
70456
70457         * modules/tls: New file.
70458         * MODULES.html.sh (Multithreading): Add tls.
70459
70460 2005-08-16  Bruno Haible  <bruno@clisp.org>
70461
70462         * modules/strnlen1: New file.
70463         * MODULES.html.sh (String handling): Add strnlen1.
70464
70465 2005-08-16  Bruno Haible  <bruno@clisp.org>
70466
70467         * modules/strcase (Files): Add m4/mbrtowc.m4.
70468         (Depends-on): Add strnlen1, mbchar.
70469
70470 2005-08-16  Bruno Haible  <bruno@clisp.org>
70471
70472         * modules/mbiter: New file.
70473         * MODULES.html.sh (Extended multibyte and wide character utilities):
70474         Add mbiter.
70475
70476 2005-08-16  Bruno Haible  <bruno@clisp.org>
70477
70478         * modules/mbfile: New file.
70479         * MODULES.html.sh (Extended multibyte and wide character utilities):
70480         Add mbfile.
70481
70482 2005-08-16  Bruno Haible  <bruno@clisp.org>
70483
70484         * modules/mbchar: New file.
70485         * MODULES.html.sh (Extended multibyte and wide character utilities):
70486         New section.
70487
70488 2005-08-16  Bruno Haible  <bruno@clisp.org>
70489
70490         * m4/tls.m4: New file, from GNU gettext.
70491
70492 2005-08-16  Bruno Haible  <bruno@clisp.org>
70493
70494         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70495         always.
70496         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70497
70498 2005-08-16  Bruno Haible  <bruno@clisp.org>
70499
70500         * m4/mbiter.m4: New file.
70501
70502 2005-08-16  Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/mbfile.m4: New file.
70505
70506 2005-08-16  Bruno Haible  <bruno@clisp.org>
70507
70508         * m4/mbchar.m4: New file.
70509
70510 2005-08-16  Bruno Haible  <bruno@clisp.org>
70511
70512         * lib/tls.h: New file, from GNU gettext.
70513         * lib/tls.c: New file, from GNU gettext.
70514
70515 2005-08-16  Bruno Haible  <bruno@clisp.org>
70516
70517         * lib/strnlen1.h: New file.
70518         * lib/strnlen1.c: New file.
70519
70520 2005-08-16  Bruno Haible  <bruno@clisp.org>
70521
70522         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70523         (mbi_init): Update.
70524         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70525         NUL byte, not after it.
70526
70527 2005-08-16  Bruno Haible  <bruno@clisp.org>
70528
70529         * lib/strcase.h (strcasecmp): Add note in comments.
70530         * lib/strncasecmp.c: Use code from strcasecmp.c.
70531         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70532         (strcasecmp): Work correctly in multibyte locales.
70533
70534 2005-08-16  Bruno Haible  <bruno@clisp.org>
70535
70536         * lib/mbiter.h: New file.
70537
70538 2005-08-16  Bruno Haible  <bruno@clisp.org>
70539
70540         * lib/mbfile.h: New file.
70541
70542 2005-08-16  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/mbchar.h: New file.
70545         * lib/mbchar.c: New file.
70546
70547 2005-08-16  Bruno Haible  <bruno@clisp.org>
70548
70549         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70550         the valid ones. Makes the comparison operations transitive:
70551         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70552         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70553
70554 2005-08-15  Simon Josefsson  <jas@extundo.com>
70555
70556         * modules/ssize_t (License): Change to 'unlimited'.
70557
70558         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70559
70560 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70561
70562         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70563         Add comments for each pending glibc patch.
70564
70565 2005-08-15  Bruno Haible  <bruno@clisp.org>
70566
70567         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70568         __cplusplus is defined.
70569
70570 2005-08-14  Jim Meyering  <jim@meyering.net>
70571
70572         Sync from coreutils.
70573
70574         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70575         Use the hash-table-based cycle-detection code not just when
70576         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70577         Reported by James Youngman in
70578         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70579         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70580         FTS_TIGHT_CYCLE_CHECK.
70581         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70582         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70583         once again.
70584         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70585         * lib/fts.c (fd_safer): Remove decl.
70586         Include fcntl--.h rather than unistd-safer.h
70587         (fts_safe_changedir): Don't call fd_safer; no longer needed
70588         now that we include fcntl--.h.
70589
70590 2005-08-12  Simon Josefsson  <jas@extundo.com>
70591
70592         * modules/getndelim2: Use ssize_t module.
70593         * modules/getnline: Likewise.
70594         * modules/safe-read: Likewise.
70595         * modules/xreadlink: Likewise.
70596
70597         * modules/ssize_t: New file.
70598
70599 2005-08-12  Simon Josefsson  <jas@extundo.com>
70600
70601         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70602
70603 2005-08-12  Simon Josefsson  <jas@extundo.com>
70604
70605         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70606         ssize_t.
70607
70608 2005-08-12  Simon Josefsson  <jas@extundo.com>
70609
70610         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70611         readline, getdelim and check_version.
70612         (Support for systems lacking ISO C 99: Sizes of integer types):
70613         Add size_max.
70614
70615 2005-08-12  Bruno Haible  <bruno@clisp.org>
70616
70617         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70618
70619 2005-08-11  Simon Josefsson  <jas@extundo.com>
70620
70621         * modules/readline: New file.
70622
70623         * modules/strnlen (Files): Add strnlen.h.
70624
70625 2005-08-11  Simon Josefsson  <jas@extundo.com>
70626
70627         * m4/readline.m4: New file.
70628
70629 2005-08-11  Simon Josefsson  <jas@extundo.com>
70630
70631         * lib/readline.h, readline.c: New file.
70632
70633 2005-08-11  Simon Josefsson  <jas@extundo.com>
70634
70635         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70636         gl_AVOID.
70637
70638 2005-08-11  Bruno Haible  <bruno@clisp.org>
70639
70640         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70641
70642 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70643
70644         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70645
70646 2005-08-10  Simon Josefsson  <jas@extundo.com>
70647
70648         * tests/test-iconvme.c: New file.
70649
70650 2005-08-10  Simon Josefsson  <jas@extundo.com>
70651
70652         * m4/strnlen.m4: New file.
70653
70654         * m4/strndup.m4: Don't check for strnlen declaration, done in
70655         strnlen.m4.
70656
70657 2005-08-10  Simon Josefsson  <jas@extundo.com>
70658
70659         * lib/strndup.c: Use strnlen.h.
70660
70661         * lib/strnlen.h: New file.
70662
70663 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70664
70665         * README: Typos.
70666
70667 2005-08-02  Simon Josefsson  <jas@extundo.com>
70668
70669         * modules/readline: New file.
70670
70671 2005-08-02  Simon Josefsson  <jas@extundo.com>
70672
70673         * modules/getdelim: New file.
70674
70675         * modules/getline: Rewrite, don't use getndelim2.
70676
70677 2005-08-02  Simon Josefsson  <jas@extundo.com>
70678
70679         * m4/getline.m4: Separate out getdelim stuff into separate module.
70680
70681         * m4/getdelim.m4: New file.
70682
70683 2005-08-02  Simon Josefsson  <jas@extundo.com>
70684
70685         * lib/getline.h, getline.c: Rewrite.
70686
70687         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70688
70689 2005-07-31  Bruno Haible  <bruno@clisp.org>
70690
70691         * lib/lock.h (gl_lock_initializer): New macro.
70692         (gl_lock_define_initialized): Use it.
70693         (gl_rwlock_initializer): New macro.
70694         (gl_rwlock_define_initialized): Use it.
70695         (gl_recursive_lock_initializer): New macro.
70696         (gl_recursive_lock_define_initialized): Use it.
70697
70698 2005-07-30  Karl Berry  <karl@gnu.org>
70699
70700         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70701         Report from Ben Pfaff, regarding getopt.
70702
70703 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70706         normal way.
70707         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70708         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70709         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70710         (gl_GETOPT): Use the new macros.  Most of the implementation
70711         is moved to the new macros.  This is for programs like Emacs
70712         that don't want all the functionality of gl_GETOPT.
70713
70714 2005-07-26  Bruno Haible  <bruno@clisp.org>
70715
70716         * m4/lock.m4: Update from GNU gettext.
70717
70718 2005-07-26  Bruno Haible  <bruno@clisp.org>
70719
70720         * lib/lock.h: Update from GNU gettext.
70721         * lib/lock.c: Update from GNU gettext.
70722
70723 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70726         obsolescent AC_TRY_RUN.  Include the default includes files, for
70727         'exit'.
70728
70729 2005-07-24  Bruno Haible  <bruno@clisp.org>
70730
70731         * modules/visibility: New file.
70732         * MODULES.html.sh (Misc): Add visibility.
70733
70734 2005-07-24  Bruno Haible  <bruno@clisp.org>
70735
70736         * m4/visibility.m4: New file.
70737
70738 2005-07-24  Bruno Haible  <bruno@clisp.org>
70739
70740         * doc/visibility.texi: New file.
70741
70742 2005-07-22  Bruno Haible  <bruno@clisp.org>
70743
70744         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70745         $(ALLOCA_H), redundant through BUILT_SOURCES.
70746         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70747         redundant through BUILT_SOURCES.
70748         * modules/byteswap (Makefile.am): Remove explicit dependency on
70749         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70750         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70751         $(FNMATCH_H), redundant through BUILT_SOURCES.
70752         * modules/getopt (Makefile.am): Remove explicit dependency on
70753         $(GETOPT_H), redundant through BUILT_SOURCES.
70754         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70755         redundant through BUILT_SOURCES.
70756         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70757         redundant through BUILT_SOURCES.
70758         * modules/stdbool (Makefile.am): Remove explicit dependency on
70759         $(STDBOOL_H), redundant through BUILT_SOURCES.
70760         * modules/stdint (Makefile.am): Remove explicit dependency on
70761         $(STDINT_H), redundant through BUILT_SOURCES.
70762         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70763         Remove explicit dependency on $(SYSEXITS_H).
70764         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70765
70766 2005-07-18  Simon Josefsson  <jas@extundo.com>
70767
70768         * lib/check-version.c (check_version): Accept identical versions too.
70769
70770 2005-07-18  Bruno Haible  <bruno@clisp.org>
70771
70772         * modules/lock: New file.
70773         * MODULES.html.sh (Multithreading): New section.
70774
70775 2005-07-18  Bruno Haible  <bruno@clisp.org>
70776
70777         * m4/lock.m4: New file, from GNU gettext.
70778
70779 2005-07-18  Bruno Haible  <bruno@clisp.org>
70780
70781         * lib/lock.h: New file, from GNU gettext.
70782         * lib/lock.c: New file, from GNU gettext.
70783
70784 2005-07-18  Bruno Haible  <bruno@clisp.org>
70785
70786         * lib/lock.h (gl_once_t): New type.
70787         (gl_once_define, gl_once): New macros.
70788         * lib/lock.c (fresh_once): New variable.
70789         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70790         functions.
70791
70792 2005-07-16  Simon Josefsson  <jas@extundo.com>
70793
70794         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70795         workaround, suggested by Bruno.
70796
70797 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70798
70799         * modules/xalloc (Depends-on): Add xalloc-die.
70800         * modules/xvasprintf (Depends-on): Add xalloc-die.
70801
70802 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70805         with a minor change.
70806
70807 2005-07-15  Bruno Haible  <bruno@clisp.org>
70808
70809         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70810         When using lib/poll.c, define poll as rpl_poll.
70811
70812 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * modules/argp (Depends-on): Remove unlocked-io.
70815
70816 2005-07-14  Derek Price  <derek@ximbiot.com>
70817
70818         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70819         for glob symlink bug.
70820
70821 2005-07-14  Bruno Haible  <bruno@clisp.org>
70822
70823         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70824         Instead, test for *_unlocked function declarations directly.
70825
70826 2005-07-11  Simon Josefsson  <jas@extundo.com>
70827
70828         * modules/size_max: New file.
70829
70830         * modules/xsize: Depend on size_max module for size_max.m4.
70831
70832 2005-07-11  Simon Josefsson  <jas@extundo.com>
70833
70834         * lib/size_max.h: New file.
70835
70836 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70839         copyright symbol and the year.
70840         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70841         (version_etc_va): Use parameterized copyright notice.
70842         Reword to conform to the current GNU coding standards.
70843
70844 2005-07-11  Karl Berry  <karl@gnu.org>
70845
70846         * doc/gnulib.texi (Quoting): new node.
70847         (Initial import): more info, from Patrice.
70848
70849 2005-07-11  Bruno Haible  <bruno@clisp.org>
70850
70851         * gnulib-tool (func_usage): Document option --avoid.
70852         (Command line options): Handle --avoid.
70853         (func_acceptable): New function.
70854         (func_modules_transitive_closure): Use it.
70855
70856 2005-07-11  Bruno Haible  <bruno@clisp.org>
70857
70858         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70859         Reported by Jim Meyering.
70860
70861 2005-07-10  Bruno Haible  <bruno@clisp.org>
70862
70863         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70864         Needed when size_t is smaller than 'unsigned int'.
70865         Reported by Paul Eggert.
70866
70867 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70868
70869         * modules/argp (Depends-on): Add unlocked-io
70870
70871 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70872
70873         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70874         block of defines.
70875
70876 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70877
70878         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70879         fix now.
70880
70881 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70882         and Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70885         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70886
70887 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70888
70889         * modules/regex (Files): Add lib/regex_internal.c,
70890         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70891         (Depends-on): Add extensions.
70892         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70893
70894 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70895
70896         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70897         pathconf.
70898         * m4/same.m4 (gl_SAME): Likewise.
70899         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70900
70901         * m4/regex.m4: Adjust to new libc regex implementation.
70902         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70903         all the .c and .h parts of (the new) regex.
70904         Quote the m4 stuff better.
70905         Check for RE_ICASE bug of old gnulib.
70906         Check for REG_STARTEND of recent libc.
70907         Rename local variables from jm_* to gl_*.
70908         Quote operand of "test -f".
70909         Say "recent enough" version of libc, not "version 2".
70910         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70911         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70912         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70913         Remove check for btowc, isascii.
70914         Require AM_LANGINFO_CODESET.
70915
70916 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * lib/regex.c, regex.h: Sync from libc.
70919         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70920         * lib/regexec.c:
70921         New files, synced from libc, except that regex_internal.h
70922         currently has a small porting fix.
70923
70924 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70927         regex_internal.c, regexec.c.
70928         Add regex_internal.h too, but as a comment, since the libc version
70929         is currently broken in gnulib mode.
70930
70931 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70932
70933         Support programs like Emacs that use gnulib but not gettext.
70934         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70935         * modules/gettext-h: New file.
70936         * modules/gettext (Files): Remove lib/gettext.h.
70937         (Depends-on): Add gettext-h.
70938         (Makefile.am): Remove lib_SOURCES.
70939         * modules/argmatch, modules/c-stack, modules/closeout:
70940         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70941         * modules/execute, modules/file-type, modules/getaddrinfo:
70942         * modules/getopt, modules/human, modules/javacomp:
70943         * modules/javaexec, modules/mkdir-p, modules/obstack:
70944         * modules/openat, modules/pagealign_alloc, modules/pipe:
70945         * modules/quotearg, modules/regex, modules/rpmatch:
70946         * modules/unicodeio, modules/userspec, modules/version-etc:
70947         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70948         * modules/xsetenv:
70949         Depend on gettext-h, not gettext.
70950
70951 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * gnulib-tool (func_import): Add support for 'public domain' license.
70954         * modules/alloca, modules/atexit, modules/memmove:
70955         Now public domain, not GPL.
70956         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70957         * modules/realloc, modules/strerror, modules/strtod:
70958         Now LGPL, not GPL.
70959
70960 2005-07-05  Bruno Haible  <bruno@clisp.org>
70961
70962         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70963         autoconf CVS. Needed for mingw.
70964
70965 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70966
70967         Remove the dependency of the strftime module on the tzset module.
70968         * modules/strftime (Depends-on): Remove dependency on tzset.
70969
70970 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         Remove the dependency of the strftime module on the tzset module.
70973         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70974         gl_FUNC_TZSET_CLOBBER.
70975
70976 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         Remove the dependency of the strftime module on the tzset module.
70979         * lib/strftime.c (my_strftime)
70980         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70981         Copy the input structure, to work around some of the bug with
70982         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70983         Solaris releases, you should also use the tzset module, but we won't
70984         require it as a dependency any more since we don't want LGPLed code
70985         to depend on GPLed code.
70986
70987 2005-07-02  Jim Meyering  <jim@meyering.net>
70988
70989         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70990         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70991         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70992         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70993
70994 2005-07-02  Jim Meyering  <jim@meyering.net>
70995
70996         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70997
70998 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71001         declares only 'struct timespec;' (!).
71002
71003 2005-07-01  Jim Meyering  <jim@meyering.net>
71004
71005         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71006         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71007         * lib/save-cwd.c, tempname.c:
71008         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71009         and don't include <sys/file.h>).
71010
71011 2005-06-29  Jim Meyering  <jim@meyering.net>
71012
71013         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71014         type name.  Use the variable name instead.
71015         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71016         Likewise.
71017
71018 2005-06-28  Simon Josefsson  <jas@extundo.com>
71019
71020         * modules/check-version (Files): Add check-version.m4.
71021
71022 2005-06-28  Simon Josefsson  <jas@extundo.com>
71023
71024         * m4/check-version.m4: New file, suggested by Jim Meyering
71025         <jim@meyering.net>.
71026
71027 2005-06-28  Simon Josefsson  <jas@extundo.com>
71028
71029         * lib/check-version.h, lib/check-version.c: New files.
71030
71031 2005-06-28  Simon Josefsson  <jas@extundo.com>
71032
71033         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71034         collision with global variable.  Better indentation.  Don't
71035         increment buffer pointer beyond buffer end.  Based on comments
71036         from Paul Eggert <eggert@cs.ucla.edu>.
71037
71038         * lib/base64.h: Indent.
71039
71040 2005-06-28  Simon Josefsson  <jas@extundo.com>
71041
71042         * doc/gnulib.texi (Library version handling): New section.
71043
71044 2005-06-28  Jim Meyering  <jim@meyering.net>
71045
71046         * check-module (find_included_lib_files): Hard-code another
71047         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71048         but modules/fts-lgpl (correctly) does not list those files.
71049
71050         * modules/canonicalize (Files): Add lib/pathmax.h.
71051
71052 2005-06-25  Simon Josefsson  <jas@extundo.com>
71053
71054         * modules/check-version: New file.
71055
71056 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71059         initializer of struct addrinfo, as an indication that we don't
71060         care how many members the structure has.
71061
71062 2005-06-24  Derek Price  <derek@ximbiot.com>
71063         and Bruno Haible  <bruno@clisp.org>
71064
71065         Remove stat module & update lstat.
71066         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71067         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71068         * m4/stat.m4: Remove this file.
71069
71070 2005-06-24  Derek Price  <derek@ximbiot.com>
71071         and Bruno Haible  <bruno@clisp.org>
71072
71073         Remove stat module & update lstat.
71074         * lib/stat.c: Remove this file...
71075         (slash_aware_lstat): ...moving this content and its support...
71076         * lib/lstat.c (rpl_lstat): ...into here.
71077         * lib/lstat.h: New file.
71078
71079 2005-06-24  Derek Price  <derek@ximbiot.com>
71080         and Bruno Haible  <bruno@clisp.org>
71081
71082         Remove stat module & update lstat.
71083         * config/srclist.txt (libc sources): Remove stat.
71084
71085 2005-06-24  Derek Price  <derek@ximbiot.com>
71086         and Bruno Haible  <bruno@clisp.org>
71087
71088         Remove stat module & update lstat.
71089         * MODULES.html.sh (stat): Remove.
71090         * MODULES.html: Regenerated.
71091         * modules/lstat (Description): Correct function name.
71092         (Files): Add "lstat.h".
71093         (Depends-on): Remove stat, add xalloc, stat-macros.
71094         * modules/stat: Remove this file.
71095         (Include): Add "lstat.h", remove <sys/stat.h>.
71096
71097 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71100         (ranged_convert): Don't save conversion in a temporary struct.
71101         This causes a warning with GCC 4.0.0, and anyway in the typical
71102         case it's not worth the extra 100 bytes or so of code.
71103         (ranged_convert, __mktime_internal): When calling a function via a
71104         pointer P, use P () rather than (*P) (), as we now assume C89 or
71105         better.
71106
71107 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71110         "who -r" failed to give output.  Problem reported by Tim Waugh.
71111
71112         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71113         (xcalloc): Use it to avoid needless tests.
71114         Problem reported by Jim Meyering.
71115
71116 2005-06-20  Derek Price  <derek@ximbiot.com>
71117
71118         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71119         unnecessary for Autoconfs > 2.59c.
71120
71121 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71122
71123         * lib/argp.h (__option_is_short): Check upper limit of
71124         __key. Isprint() requires its argument to have the value
71125         of an unsigned char or EOF.
71126
71127 2005-06-16  Jim Meyering  <jim@meyering.net>
71128
71129         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71130         when either N or S is zero.
71131
71132 2005-06-16  Derek Price  <derek@ximbiot.com>
71133
71134         * m4/bison.m4: Declare YACC & YFLAGS precious.
71135
71136 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71139         multibyte string or pattern, fall back on unibyte matching.
71140         Problem reported by James Youngman.
71141
71142 2005-06-08  Bruno Haible  <bruno@clisp.org>
71143
71144         * modules/csharpcomp: New file.
71145         * MODULES.html.sh (C#): Add csharpcomp.
71146
71147 2005-06-08  Bruno Haible  <bruno@clisp.org>
71148
71149         * m4/csharpcomp.m4: New file, from GNU gettext.
71150
71151 2005-06-08  Bruno Haible  <bruno@clisp.org>
71152
71153         * lib/csharpcomp.h: New file, from GNU gettext.
71154         * lib/csharpcomp.c: New file, from GNU gettext.
71155         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71156
71157 2005-06-08  Bruno Haible  <bruno@clisp.org>
71158
71159         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71160         warning on mingw.
71161
71162 2005-06-07  Derek Price  <derek@ximbiot.com>
71163
71164         Sync from CVS.
71165         * lib/glob_.h: Indent nested #ifdef.
71166
71167 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         Sync from coreutils.
71170         Use "file name" when talking about file names, instead of "filename"
71171         or "path", as per the GNU coding standards.
71172         * lib/mkdir-p.c: Renamed from makepath.c.
71173         (make_dir_parents): Renamed from make_path.  All callers changed.
71174         * lib/mkdir-p.h: Likewise.  All includers changed.
71175         * lib/filenamecat.c: Renamed from path-concat.c.
71176         (file_name_concat): Renamed from path_concat.  All callers changed.
71177         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71178         * lib/filenamecat.h: Likewise.  All includers changed.
71179         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71180         in comments or local variable names.
71181         * lib/basename.c: Likewise.
71182         * lib/canonicalize.c, canonicalize.h: Likewise.
71183         * lib/dirname.c, dirname.h: Likewise.
71184         * lib/euidaccess.c: Likewise.
71185         * lib/exclude.c: Likewise
71186         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71187         * lib/fsusage.c, fsuage.h: Likewise.
71188         * lib/fts.c, fts_.h: Likewise.
71189         * lib/getcwd.c: Likewise.
71190         * lib/getloadavg.c: Likewise.
71191         * lib/mkstemp.c: Likewise.
71192         * lib/mountlist.c, mountlist.h: Likewise.
71193         * lib/openat.c, openat.h: Likewise.
71194         * lib/readlink-stub.c: Likewise.
71195         * lib/readutmp.c, readutmp.h: Likewise.
71196         * lib/rename.c: Likewise.
71197         * lib/rmdir.c: Likewise.
71198         * lib/same.c: Likewise.
71199         * lib/savedir.c: Likewise.
71200         * lib/stripslash.c: Likewise.
71201         * lib/tempname.c: Likewise.
71202         * lib/xreadlink.c: Likewise.
71203         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71204         All uses changed.
71205         * lib/exclude.h: Likewise.
71206
71207         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71208         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71209         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71210         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71211         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71212         files have been getting away with it for years (MORE/BSD 4.3
71213         is extinct now).
71214         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71215         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71216
71217         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71218         Define to 256, not 255, as per modern POSIX.
71219
71220 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         Sync from coreutils.
71223         Use "file name" when talking about file names, instead of "filename"
71224         or "path", as per the GNU coding standards.
71225         * MODULES.html.sh: mkdir-p renamed from makepath.
71226         filenamecat renamed from path-concat.
71227         * modules/filenamecat: Renamed from modules/path-concat.
71228         (Files): filenamecat.h and filenamecat.c renamed from
71229         path-concat.h and path-concat.c.
71230         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71231         (Include): filenamecat.h, not path-concat.h.
71232         * modules/mkdir-p: Renamed from modules/makepath.
71233         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71234         makepath.c.
71235         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71236         (Include): mkdir-p.h, not makepath.h.
71237
71238 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         Sync from coreutils.
71241         * m4/mkdir-p.m4: Renamed from makepath.m4.
71242         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71243         Rename files from makepath.c to mkdir-p.c, and from
71244         makepath.h to mkdir-p.h.
71245         * m4/filenamecat.m4: Renamed from path-concat.m4.
71246         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71247         Rename files from path-concat.c to filenamecat.c,
71248         and from path-concat.h to filenamecat.h.
71249         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71250         "file name" in local variables or comments.
71251         * m4/rename.m4: Likewise.
71252
71253 2005-06-01  Bruno Haible  <bruno@clisp.org>
71254
71255         * modules/csharpexec: New file.
71256         * MODULES.html.sh (C#): New section.
71257
71258 2005-06-01  Bruno Haible  <bruno@clisp.org>
71259
71260         * m4/csharp.m4: New file, from GNU gettext.
71261         * m4/csharpexec.m4: New file, from GNU gettext.
71262
71263 2005-06-01  Bruno Haible  <bruno@clisp.org>
71264
71265         * lib/csharpexec.h: New file, from GNU gettext.
71266         * lib/csharpexec.c: New file, from GNU gettext.
71267         * lib/csharpexec.sh.in: New file, from GNU gettext.
71268
71269 2005-05-31  Derek Price  <derek@ximbiot.com>
71270             Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         Sync from cvs.
71273         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71274
71275 2005-05-31  Derek Price  <derek@ximbiot.com>
71276             Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         Sync from cvs.
71279         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71280
71281 2005-05-29  Derek Price  <derek@ximbiot.com>
71282
71283         * config/srclist.txt (glob_.h, glob.c): Add these files.
71284
71285 2005-05-29  Derek Price  <derek@ximbiot.com>
71286
71287         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71288         * modules/glob: New file.
71289         * modules/getlogin_r: Add link to POSIX spec in description.
71290
71291 2005-05-29  Derek Price  <derek@ximbiot.com>
71292             Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * m4/glob.m4: New file.
71295
71296 2005-05-29  Derek Price  <derek@ximbiot.com>
71297             Paul Eggert  <eggert@cs.ucla.edu>
71298
71299         * lib/glob_.h, lib/glob.c: New files.
71300
71301 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71302
71303         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71304         * modules/fts-lgpl (Depends-on): Remove gettext.
71305
71306 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71307
71308         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71309         and don't require gt_INTTYPES_PRI.
71310
71311 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71314
71315         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71316         the configuration hassle isn't worth it.
71317         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71318         (LONGEST_MODIFIER, PRIuMAX): Remove.
71319
71320 2005-05-27  Bruno Haible  <bruno@clisp.org>
71321
71322         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71323
71324 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71325
71326         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71327         _POSIX_PTHREAD_SEMANTICS for Solaris.
71328
71329 2005-05-25  Derek Price  <derek@ximbiot.com>
71330
71331         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71332
71333 2005-05-25  Derek Price  <derek@ximbiot.com>
71334             Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71337         * lib/getlogin_r.c, getlogin_r.h: New files.
71338
71339 2005-05-25  Bruno Haible  <bruno@clisp.org>
71340             Derek Price  <derek@ximbiot.com>
71341
71342         * lib/getlogin_r.h: Simplify API documentation.
71343
71344 2005-05-23  Derek Price  <derek@ximbiot.com>
71345
71346         * modules/minmax (Files): Add m4/minmax.m4.
71347         (configure.ac): Add gl_MINMAX.
71348
71349 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71350
71351         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71352         so that unistd-safer.h (GPL'ed code) need not be included.
71353
71354 2005-05-22  Bruno Haible  <bruno@clisp.org>
71355
71356         * m4/minmax.m4: New file.
71357         Based on a patch by Derek Price <derek@ximbiot.com>.
71358
71359 2005-05-22  Bruno Haible  <bruno@clisp.org>
71360
71361         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71362         (INT64_MIN): Fix definition.
71363         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71364
71365         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71366         NEED_SIGNED_INT_TYPES.
71367
71368         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71369         HAVE_SYSTEM_INTTYPES.
71370
71371 2005-05-22  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71374         Also include <sys/param.h> if it defines MIN, MAX.
71375         Based on a patch by Derek Price <derek@ximbiot.com>.
71376
71377 2005-05-21  Jim Meyering  <jim@meyering.net>
71378
71379         * modules/fts (Files): Add m4/inttypes-pri.m4.
71380         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71381
71382 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         New fts module.
71385         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71386         (setup_dir, free_dir): New functions.
71387         (enter_dir, leave_dir): Define trivial
71388         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71389         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71390         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71391         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71392         Move to fts-cycle.c.
71393         (fts_open): Use setup_dir.
71394         (fts_close): Use free_dir.
71395         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71396         This adds a label and some gotos, but the alternatives were messier.
71397         Check for memory allocation failure when entering a dir.
71398         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71399         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71400         (FTS): New member fts_cycle, that is a union that contains the
71401         old active_dir_ht and cycle_state.  All uses changed to mention
71402         fts_cycle.ht and fts_cycle.state.
71403         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71404         fts.c, with the following changes:
71405         (setup_dir, free_dir): New functions.
71406         (enter_dir): Now returns bool.  Return true if successful, false
71407         if memory exhausted.  All callers changed.
71408         Do not bother partly cleaning up on
71409         memory allocation failure; that is free_dir's job.
71410         However, free ad if hash_insert fails, to avoid memory leak.
71411         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71412         fts->fts_options to see which union member to use.
71413
71414 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71417         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71418
71419 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71422
71423 2005-05-20  Jim Meyering  <jim@meyering.net>
71424
71425         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71426         Now a macro, to pacify GCC.
71427
71428 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71429
71430         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71431         of -1.
71432
71433 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71434
71435         * lib/chown.c (rpl_chown): Return -1 on failure.
71436
71437 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71440         Don't check for stddef.h.
71441         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71442         don't use its results.
71443         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71444         since we include them unconditionally.  Don't require
71445         AM_STDBOOL_H, since stdbool is a prerequisite.
71446         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71447         since we assume C89 or better.
71448         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71449         as we don't use their results.
71450         Don't check for fchdir, memmove, memset, strrchr, as we use
71451         them unconditionally.
71452         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71453         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71454
71455 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71458         Include <stddef.h> unconditionally, since we assume C89 now.
71459         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71460         * lib/fts.c: Include fts_.h first, to check interface.
71461         Do not include intprops.h; no longer needed.
71462         Include cycle-check.h and hash.h, since fts_.h no longer does.
71463         Remove unnecessary casts of closedir to void.
71464         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71465         decide whether to decrement nlinks.
71466         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71467         (FTS): Use struct hash_table * instead of Hash_table, so that
71468         we no longer need to include hash.h here.
71469
71470 2005-05-18  Jim Meyering  <jim@meyering.net>
71471
71472         * modules/dirfd (License): Change to LGPL.  Most of the code
71473         is already in the public domain.
71474
71475 2005-05-18  Jim Meyering  <jim@meyering.net>
71476
71477         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71478         Reported by Yoann Vandoorselaere.
71479
71480 2005-05-17  Jim Meyering  <jim@meyering.net>
71481
71482         * m4/fts.m4: New file, from coreutils.
71483
71484 2005-05-17  Jim Meyering  <jim@meyering.net>
71485
71486         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71487
71488 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71489
71490         Sync from coreutils.
71491         * m4/unlinkdir.m4: New file.
71492
71493 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         Sync from coreutils.
71496         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71497         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71498         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71499         White space changes only.
71500         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71501         special.
71502         * lib/yesno.c: Include getline.h, not ctype.h.
71503         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71504         Use getline to remove arbitrary restriction on response length.
71505
71506 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71507
71508         * config/srclist-update: Spell out "Street" in FSF postal
71509         mail address; this is the style the FSF seems to prefer.
71510
71511         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71512         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71513         this updates FSF postal mail address.
71514
71515         Sync from coreutils.
71516         * modules/unlinkdir: New file.
71517         * modules/yesno (Depends-on): Add getline.
71518         * MODULES.html.sh (File system functions): Add unlinkdir.
71519
71520 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71523         lib/strsep.h:
71524         Change the initial comment to refer to GPL, not LGPL.
71525         gnulib-tool will change it to LGPL as needed.
71526
71527         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71528         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71529         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71530         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71531         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71532         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71533         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71534         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71535         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71536         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71537         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71538         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71539         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71540         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71541         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71542         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71543         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71544         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71545         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71546         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71547         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71548         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71549         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71550         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71551         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71552         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71553         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71554         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71555         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71556         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71557         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71558         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71559         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71560         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71561         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71562         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71563         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71564         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71565         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71566         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71567         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71568         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71569         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71570         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71571         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71572         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71573         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71574         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71575         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71576         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71577         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71578         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71579         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71580         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71581         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71582         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71583         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71584         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71585         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71586         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71587         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71588         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71589         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71590         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71591         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71592         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71593         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71594         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71595         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71596         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71597         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71598         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71599         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71600         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71601         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71602         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71603         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71604         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71605         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71606         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71607         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71608         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71609         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71610         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71611         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71612         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71613         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71614         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71615         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71616         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71617         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71618         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71619         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71620         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71621         lib/yesno.c, lib/yesno.h:
71622         Update FSF postal mail address.
71623
71624 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71627         tests/test-memmem.c, tests/test-stpncpy.c:
71628         Update FSF postal mail address.
71629
71630 2005-05-13  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71633         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71634         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71635         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71636         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71637         Add support for 64-bit integers in the MSVC compiler.
71638
71639 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71640
71641         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71642
71643 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71644
71645         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71646
71647 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71648
71649         * doc/getdate.texi (General date syntax): Don't say that date
71650         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71651         Problem reported by Nic Ferrier.
71652
71653 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71654
71655         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71656         specified in ai_socktype. Fix invalid ai_protocol
71657         check. ai_protocol is usually set to 0 or depending on
71658         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71659         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71660         ai_socktype / ai_protocol in the returned addrinfo structure.
71661
71662 2005-05-10  Simon Josefsson  <jas@extundo.com>
71663
71664         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71665         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71666
71667 2005-05-10  Karl Berry  <karl@gnu.org>
71668
71669         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71670         (from http://www.gnu.org/licenses).
71671         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71672         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71673         fdl.texi suffices.
71674
71675 2005-05-10  Karl Berry  <karl@gnu.org>
71676
71677         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71678         (COPYING.DOC): remove.
71679
71680         * config/srclist-update: new FSF address.
71681
71682 2005-05-10  Derek Price  <derek@ximbiot.com>
71683
71684         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71685         possible.
71686
71687 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71688             Bruno Haible  <bruno@clisp.org>
71689
71690         * modules/inet_ntop: New file.
71691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71692         inet_ntop.
71693
71694 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71695             Bruno Haible  <bruno@clisp.org>
71696
71697         * m4/inet_ntop.m4: New file.
71698
71699 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71700             Bruno Haible  <bruno@clisp.org>
71701
71702         * lib/inet_ntop.h: New file.
71703         * lib/inet_ntop.c: New file, from glibc with modifications.
71704
71705 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * modules/time_r (License): Change to LGPL.
71708         * modules/extensions (License): Change to LGPL.  Actually,
71709         the license is more permissive than that, but currently gnulib-tool
71710         doesn't know how to handle more-permissive licenses.
71711
71712         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71713         Problem reported by Dave Love.
71714
71715 2005-05-08  Jim Meyering  <jim@meyering.net>
71716
71717         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71718         blank.
71719
71720 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * modules/argmatch (Depends-on): Add stdbool.
71723         * modules/backupfile (Depends-on): Likewise.
71724         * modules/chdir-long (Depends-on): Likewise.
71725         * modules/closeout (Depends-on): Likewise.
71726         * modules/cycle-check (Depends-on): Likewise.
71727         * modules/dirname (Depends-on): Likewise.
71728         * modules/fnmatch (Depends-on): Likewise.
71729         * modules/fsusage (Depends-on): Likewise.
71730         * modules/fwriteerror (Depends-on): Likewise.
71731         * modules/getcwd (Depends-on): Likewise.
71732         * modules/getloadavg (Depends-on): Likewise.
71733         * modules/hard-locale (Depends-on): Likewise.
71734         * modules/makepath (Depends-on): Likewise.
71735         * modules/mountlist (Depends-on): Likewise.
71736         * modules/nanosleep (Depends-on): Likewise.
71737         * modules/posixtm (Depends-on): Likewise.
71738         * modules/quotearg (Depends-on): Likewise.
71739         * modules/readtokens (Depends-on): Likewise.
71740         * modules/readtokens0 (Depends-on): Likewise.
71741         * modules/readutmp (Depends-on): Likewise.
71742         * modules/save-cwd (Depends-on): Likewise.
71743         * modules/strftime (Depends-on): Likewise.
71744         * modules/userspec (Depends-on): Likewise.
71745         * modules/utimecmp (Depends-on): Likewise.
71746         * modules/xgetcwd (Depends-on): Likewise.
71747         * modules/xnanosleep (Depends-on): Likewise.
71748         * modules/xstrtod (Depends-on): Likewise.
71749         * modules/yesno (Depends-on): Likewise.
71750
71751 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71752
71753         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71754         needless checks.
71755
71756 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         Merge from coreutils.  Among other things,
71759         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71760         * lib/fd-safer.c: New file.
71761         * lib/fcntl-safer.h, open-safer.c: Remove.
71762         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71763         * lib/dup-safer.c: Include unistd-safer.h first.
71764         Don't include errno.h.
71765         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71766         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71767         * lib/file-type.c: Rely on file-type.h change.
71768         * lib/getloadavg.c: Include unistd-safer.h.
71769         (getloadavg): Use safer open.
71770         * lib/getusershell.c: Include "stdio-safer.h".
71771         (getusershell): Use safer fopen.
71772         * lib/long-options.c (long_options): Use NULL rather than 0.
71773         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71774         'free'.
71775         * lib/modechange.c: Likewise.
71776         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71777         (MODE_DONE): New constant.
71778         (struct mode_change): Remove 'next' member.
71779         (make_node_op_equals): New function; like the old one of the
71780         same name, except it allocates an array.
71781         (mode_compile, mode_create_from_ref): Use it.
71782         (mode_compile): Allocate result as an array, not a linked list.
71783         Parse octal string ourself, so that we catch mistakes like "+0".
71784         (mode_adjust): Arg is an array, not a linked list.
71785         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71786         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71787         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71788         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71789         Remove.  This is now stat-macros.h's job.
71790         (talloc): Remove.  All callers replaced by xalloc, so that
71791         our invokers don't have to worry about reporting memory failures.
71792         (make_node_op_equals): Remove.
71793         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71794         New constants.
71795         (struct mode_change): Moved here from modechange.h.
71796         (mode_append_entry): Remove.
71797         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71798         apps to have incorrect behavior.  Use simpler algorithm for head
71799         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71800         Detect more invalid usages rather than having somewhat-random behavior.
71801         Don't insert an "a=" action, as that leads to incorrect behavior.
71802         (mode_compile, mode_create_from_ref): Return NULL on error instead
71803         of an enum, since now there's only one way to have an error.  All
71804         callers changed.
71805         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71806         at the correct time.  Simplify calculation of "+u" and its ilk.
71807         Don't mishandle "+X".
71808         (mode_free): Remove "register" and localize decls.
71809         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71810         (struct mode_change): Move to modechange.c; callers don't
71811         need to see this stuff.
71812         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71813         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71814         (mode_change, mode_adjust): Reflect the new signatures noted above.
71815         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71816         that might redefine system include files.
71817         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71818         (my_usleep): Use NULL rather than (void *) 0.
71819         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71820         Use siginterrupt to specify that system calls should be interrupted.
71821         (rpl_nanosleep): Move initialization of suspended closer to call of
71822         my_usleep.
71823         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71824         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71825         (desirable_utmp_entry): New function.
71826         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71827         using x2nrealloc, to simplify logic.
71828         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71829         size calculation.  Do not assume utmp file is a regular file.
71830         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71831         (READ_UTMP_CHECK_PIDS): New constant.
71832         * lib/save-cwd.c: Include unistd-safer.h.
71833         (save_cwd): Use fd_safer.
71834         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71835         [!_LIBC] Include "stat-macros.h" instead.
71836         * lib/unistd-safer.h (fd_safer): New decl.
71837
71838 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         * modules/getloadavg (Depends-on): Add unistd-safer.
71841         * modules/getusershell (Depends-on): Add stdio-safer.
71842         * modules/lstat (Depends-on): Remove xalloc.
71843         * modules/mkstemp (Depends-on): Add stat-macros.
71844         * modules/modechange (Depends-on): Remove xstrtol.
71845         Add stat-macros, xalloc.
71846         * modules/save-cwd (Depends-on): Add unistd-safer.
71847         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71848         * modules/unistd-safer (Files): Add lib/fd-safer.c
71849         (Makefile.am): Remove lib_SOURCES.
71850
71851         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71852         Remove fcntl-safer; unistd-safer supersedes it.
71853
71854 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71857         AC_HEADER_STAT.
71858         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71859         (gl_PREREQ_CHOWN): Remove.
71860         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71861         it.  Don't require AC_HEADER_STAT.
71862         (gl_PREREQ_LSTAT): Remove.
71863         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71864         Don't require AC_HEADER_STAT.
71865         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71866         (gl_PREREQ_RMDIR): Remove.
71867         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71868         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71869         the stat-macros module a prerequisite.
71870         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71871         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71872         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71873         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71874         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71875         variable names.
71876         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71877         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71878         variable prefixes.
71879         * m4/fcntl-safer.m4: Remove.
71880         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71881         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71882         Invoke gl_PREREQ_FD_SAFER.
71883         (gl_PREREQ_FD_SAFER): New macro.
71884         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71885         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71886         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71887         Remove duplicate call to AC_LIBOBJ(readutmp).
71888         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71889
71890         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71891         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71892
71893 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         * MODULES.html.sh (Misc): Add byteswap.
71896
71897 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71898
71899         * modules/getcwd (Depends-on): Add extensions.
71900         * modules/openat (Depends-on): Likewise.
71901
71902 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71903
71904         * modules/byteswap: New file.
71905
71906 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71907
71908         * m4/byteswap.m4: New file.
71909
71910 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71911
71912         * lib/byteswap_.h: New file.
71913
71914 2005-04-25  Karl Berry  <karl@gnu.org>
71915
71916         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71917
71918 2005-04-25  Albert Chin  <china@thewrittenword.com>
71919
71920         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71921         Toolkit C bug.
71922
71923 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71924
71925         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71926         (func_ln_if_changed): Remove forcibly for no error message
71927         in case file does not exist.
71928
71929 2005-04-19  Simon Josefsson  <jas@extundo.com>
71930
71931         * gnulib-tool (Options): Make --symlink mean --symbolic.
71932
71933 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71934
71935         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71936
71937 2005-04-16  Simon Josefsson  <jas@extundo.com>
71938
71939         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71940
71941 2005-04-15  Simon Josefsson  <jas@extundo.com>
71942
71943         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71944
71945 2005-04-15  Simon Josefsson  <jas@extundo.com>
71946
71947         * gnulib-tool: Rename --symlink to --symbolic.
71948
71949 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71950
71951         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71952         symbolic links to files instead of copying/moving.  Add --aux-dir,
71953         specifying directory relative --dir where auxiliary build tools
71954         are placed.
71955
71956 2005-04-14  Bruno Haible  <bruno@clisp.org>
71957
71958         * modules/allocsa (License): Change to LGPL.
71959         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71960
71961 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71964         that "UTC +1 second" continues to work.  Problem reported
71965         by Dmitry V. Levin.
71966         (relunit_snumber): New rule.
71967         (relunit): Use it.
71968
71969 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * lib/getdate.y (universal_time_zone_table): New constant.
71972         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71973         universal_time_zone_table.
71974         (lookup_zone): Prefer universal_time_zone_table to
71975         local_time_zone_table, so that "GMT" time stamps are allowed in
71976         London during the summer.  Problem reported by Ian Abbott.
71977
71978 2005-04-12  Jim Meyering  <jim@meyering.net>
71979
71980         * lib/human.c (humblock): Set *options even when returning due to
71981         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71982         warning from gcc-4.
71983
71984 2005-04-09  Jim Meyering  <jim@meyering.net>
71985
71986         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71987         -Wuninitialized: initialize tm0.tm_year.
71988
71989 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71990
71991         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71992         count, since there's no maximum.  All uses changed.
71993         Add member dsts_seen.
71994         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71995         not being INT_MAX.
71996         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71997         Use pc_rels_seen to decide whther a date is absolute.
71998
71999         * lib/getdate.y (number): Don't overwrite year.
72000         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72001         check.
72002
72003 2005-04-02  Simon Josefsson  <jas@extundo.com>
72004
72005         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72006         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72007
72008 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72009
72010         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72011         where no absolute path name can be longer than PATH_MAX.
72012
72013 2005-03-27  Jim Meyering  <jim@meyering.net>
72014
72015         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72016
72017 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72020         "one's complement" -> "ones' complement" in comment, as per Knuth.
72021         "value of type" -> "type or expression" in comment.
72022         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72023
72024 2005-03-26  Jim Meyering  <jim@meyering.net>
72025
72026         Comment nits.
72027         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72028         Correct typos: s/or/of/.
72029
72030 2005-03-26  Jim Meyering  <jim@meyering.net>
72031
72032         * modules/check-include-files: Move to ../ and rename to...
72033         * check-module: ...this.
72034
72035 2005-03-25  Jim Meyering  <jim@meyering.net>
72036
72037         * modules/xvasprintf (Files): Add xalloc.h.
72038
72039 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         * modules/gettext (Files): config/config.rpath ->
72042         build-aux/config.rpath
72043         * modules/iconv (Files): Likewise.
72044         Problem reported by Oskar Liljeblad.
72045
72046 2005-03-23  Jim Meyering  <jim@meyering.net>
72047
72048         * modules/check-include-files: New script to check for
72049         missing dependencies, multiple includes, etc.
72050
72051         * modules/c-strtold (Depends-on): Add xalloc.
72052         * modules/c-strtod (Depends-on): Add xalloc.
72053         * modules/hash (Depends-on): Add xalloc.
72054         (Files): Remove lib/xalloc.h.
72055
72056         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72057         * modules/userspec (Files): Add lib/inttostr.h.
72058
72059 2005-03-23  Jim Meyering  <jim@meyering.net>
72060
72061         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72062
72063 2005-03-22  Jim Meyering  <jim@meyering.net>
72064
72065         * modules/stat-macros: New module.
72066         * modules/canonicalize, modules/euidaccess, modules/file-type,
72067         * modules/filemode, modules/lchown, modules/makepath,
72068         * modules/rmdir, modules/stat: Depend on new stat-macros module
72069         rather than listing lib/stat-macros.h manually.
72070         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72071
72072 2005-03-22  Jim Meyering  <jim@meyering.net>
72073
72074         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72075
72076 2005-03-22  Bruno Haible  <bruno@clisp.org>
72077
72078         * config/srclist.txt: Replace target directory 'config' with
72079         'build-aux'.
72080         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72081         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72082         ../build-aux/.
72083
72084 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         * modules/chdir-long (Depends-on): Add mempcpy.
72087
72088         * modules/acl, modules/backupfile, modules/c-strtod,
72089         modules/c-strtold, modules/canon-host, modules/canonicalize,
72090         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72091         modules/exclude, modules/exitfail, modules/file-type,
72092         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72093         modules/getdate, modules/getline, modules/getpagesize,
72094         modules/getpass, modules/getugroups, modules/group-member,
72095         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72096         modules/inttostr, modules/long-options, modules/makepath,
72097         modules/md5, modules/memcasecmp, modules/memcoll,
72098         modules/modechange, modules/mountlist, modules/path-concat,
72099         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72100         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72101         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72102         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72103         modules/strftime, modules/strndup, modules/strverscmp,
72104         modules/timespec, modules/unlocked-io, modules/userspec,
72105         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72106         modules/yesno:
72107         Remove lib_SOURCES line from Makefile.am section, as this is now
72108         done automatically by the corresponding Autoconf macro.
72109
72110 2005-03-21  Jim Meyering  <jim@meyering.net>
72111
72112         Changes imported from coreutils.
72113
72114         * lib/cycle-check.c: Don't include xalloc.h.
72115
72116         * lib/path-concat.c: Don't include assert.h.
72117         (path_concat): Remove assertion that would have triggered
72118         for ABASE starting with more than one slash.
72119         Reported by Andreas Schwab.
72120
72121         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72122         properly when ABASE is an absolute file name.
72123         Correct the description of this function.
72124         Include <assert.h>.
72125         Add an assertion and a test driver.
72126         This fixes a bug introduced on 2004-07-02.
72127         Andreas Schwab reported the resulting failure of cp --parents:
72128         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72129
72130 2005-03-21  Jim Meyering  <jim@meyering.net>
72131
72132         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72133         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72134
72135 2005-03-21  Jim Meyering  <jim@meyering.net>
72136         and  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72139         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72140         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72141         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72142         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72143         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72144         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72145         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72146         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72147         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72148         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72149         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72150         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72151         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72152         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72153         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72154         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72155         for these modules.
72156
72157 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72158
72159         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72160         (which shouldn't happen), generate nothing instead of returning 0
72161         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72162
72163 2005-03-16  Bruno Haible  <bruno@clisp.org>
72164
72165         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72166         HAVE_LONGLONG_64BIT.
72167
72168 2005-03-16  Bruno Haible  <bruno@clisp.org>
72169
72170         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72171         HAVE_LONGLONG_64BIT.
72172
72173 2005-03-16  Bruno Haible  <bruno@clisp.org>
72174
72175         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72176         HAVE_LONGLONG_64BIT.
72177
72178 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72181         reliably distinguish strftime failure from empty output on POSIX
72182         hosts.
72183
72184 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72187         (iconv_string): Don't guess a size-zero buffer, as that might cause
72188         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72189         result would be 'too large', where 'too large' is (heuristically)
72190         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72191         overflow concerns.  This will prevent some unwanted malloc failures
72192         when the inputs are very large.
72193
72194 2005-03-15  Karl Berry  <karl@gnu.org>
72195
72196         * config/srclist.txt (config.rpath): from gettext.
72197         * config/config.rpath: update.
72198
72199 2005-03-15  Bruno Haible  <bruno@clisp.org>
72200
72201         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72202         to 'negate'.
72203
72204         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72205         variable.
72206
72207         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72208         results.
72209
72210 2005-03-14  Simon Josefsson  <jas@extundo.com>
72211
72212         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72213         <fx@gnu.org>.
72214
72215 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72216
72217         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72218         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72219         intprops.h.
72220         * lib/strtol.c: Likewise.
72221
72222 2005-03-14  Jim Meyering  <jim@meyering.net>
72223
72224         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72225         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72226         to be nonzero so that we (and caller) can detect the difference
72227         between a valid zero-length expansion and an error return, even
72228         when the underlying strftime fails before writing anything into
72229         that location.
72230
72231 2005-03-14  Bruno Haible  <bruno@clisp.org>
72232
72233         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72234         Update from GNU gettext 0.14.3.
72235
72236 2005-03-10  Jim Meyering  <jim@meyering.net>
72237
72238         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72239
72240 2005-03-10  Jim Meyering  <jim@meyering.net>
72241
72242         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72243         so that this module works on systems without fchdir.
72244
72245 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         Factor int-properties macros into a single file, except for
72248         glibc-related files.
72249         * lib/intprops.h: New file.
72250         * lib/getloadavg.c: Include it instead of limits.h.
72251         (INT_STRLEN_BOUND): Remove.
72252         * lib/human.c: Include intprops.h.
72253         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72254         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72255         302/1000.
72256         * lib/inttostr.h: Include intprops.h instead of limits.h.
72257         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72258         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72259         for consistency with intprops.h.
72260         (time_t_is_integer, twos_complement_arithmetic): Use them.
72261         * lib/sig2str.h: Include <signal.h>, intprops.h.
72262         (INT_STRLEN_BOUND): Remove.
72263         * lib/strftime.c (TYPE_SIGNED): Remove.
72264         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72265         * lib/strtol.c: Adjust comments to match intprops.h.
72266         * lib/userspec.c: Include intprops.h.
72267         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72268         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72269         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72270         instead of rolling our own expressions.
72271         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72272
72273         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72274         instead of int.
72275         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72276         the right thing even if adding 1900 would overflow.  Similarly
72277         for tm_mon + 1 and tm_yday + 1.
72278         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72279         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72280         (DO_SIGNED_NUMBER): New macro.
72281         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72282
72283 2005-03-07  Bruno Haible  <bruno@clisp.org>
72284
72285         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72286
72287 2005-03-07  Bruno Haible  <bruno@clisp.org>
72288
72289         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72290
72291 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72292
72293         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72294         (func_import): Only replace files via --import when they have actually
72295         changed.
72296
72297 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72298
72299         * m4/mmap-anon.m4: New file.
72300         * m4/pagealign_alloc.m4: New file.
72301
72302 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72303             Bruno Haible  <bruno@clisp.org>
72304
72305         * modules/pagealign_alloc: New file.
72306         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72307
72308 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72309             Bruno Haible  <bruno@clisp.org>
72310
72311         * lib/pagealign_alloc.h: New file.
72312         * lib/pagealign_alloc.c: New file.
72313
72314 2005-03-03  Bruno Haible  <bruno@clisp.org>
72315
72316         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72317         Use an all-permissive copyright notice, recommended by RMS.
72318
72319 2005-03-02  Bruno Haible  <bruno@clisp.org>
72320
72321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72322         of AIX, the replacement has to be done only after <string.h> is
72323         included, therefore not in config.h. stpncpy.h does the replacement,
72324         and stpncpy.c uses it.
72325
72326 2005-03-02  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72329         stpncpy.c uses it.
72330
72331 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72334         The workaround isn't strictly needed for POSIX conformance, and
72335         it's too much of a pain to configure and maintain.  We'll ask
72336         people to fix their kernels instead.
72337         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72338         (NANOSLEEP_BUG_WORKAROUND): Remove.
72339         (xnanosleep): Remove the workaround.
72340
72341 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72342
72343         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72344         Reported by Derek Price.
72345         (Include): Add "timespec.h".
72346
72347         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72348
72349 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72352         to detect nanosleep bug.
72353
72354 2005-03-01  Bruno Haible  <bruno@clisp.org>
72355
72356         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72357
72358 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72359
72360         * modules/gethrxtime: New file.
72361         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72362         (Depends-on): Add gethrxtime.
72363         (configure.ac): Add gl_XNANOSLEEP.
72364         (Makefile.am): Remove lib_SOURCES line.
72365
72366 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72369         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72370
72371 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72374         * lib/timespec.h (gettime): Return void, since it always
72375         succeeds now.  All uses changed.
72376         * lib/gettime.c (gettime): Likewise.
72377         [HAVE_NANOTIME]: Prefer nanotime.
72378         Assume gettimeofday succeeds, as POSIX requires.
72379         Assime time () succeeds, since other code already does.
72380         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72381         (timespec_subtract): Remove.
72382         (NANOSLEEP_BUG_WORKAROUND): New constant.
72383         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72384         things considerably.  Use it only on GNU/Linux hosts, since the
72385         workaround shouldn't be needed elsewhere.
72386
72387 2005-02-24  Bruno Haible  <bruno@clisp.org>
72388
72389         * modules/gettext (Files): Add m4/glibc2.m4.
72390
72391 2005-02-24  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72394         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72395         * m4/progtest.m4:
72396         Update from GNU gettext 0.14.2.
72397         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72398
72399 2005-02-24  Bruno Haible  <bruno@clisp.org>
72400
72401         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72402         * lib/config.charset: Update from GNU gettext 0.14.2.
72403
72404 2005-02-24  Bruno Haible  <bruno@clisp.org>
72405
72406         * lib/gettext.h: Update from GNU gettext 0.14.2.
72407
72408 2005-02-23  Simon Josefsson  <jas@extundo.com>
72409
72410         * m4/iconvme.m4: New file.
72411
72412 2005-02-23  Jim Meyering  <jim@meyering.net>
72413
72414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72415         change.
72416         Thanks to Bruno Haible for catching it.
72417
72418 2005-02-22  Simon Josefsson  <jas@extundo.com>
72419
72420         * modules/iconvme: New file.
72421
72422         * MODULES.html.sh: Add iconvme.
72423
72424 2005-02-22  Simon Josefsson  <jas@extundo.com>
72425
72426         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72427
72428 2005-02-22  Simon Josefsson  <jas@extundo.com>
72429
72430         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72431
72432 2005-02-22  Jim Meyering  <jim@meyering.net>
72433
72434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72435         s/ifndef/ifdef/.
72436
72437 2005-02-20  Neil Conway  <neilc@samurai.com>
72438
72439         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72440         returned by OSX/Darwin if the specified buffer is not large
72441         enough for the hostname.
72442
72443 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72444
72445         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72446         pass it to _help, otherwise the latter coredumps trying to
72447         dereference state.root_argp.
72448
72449 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * modules/chdir-long (Depends-on): Add memrchr.
72452         * modules/memrchr (Files): Add lib/memrchr.h.
72453         (Include): "memrchr.h".
72454
72455 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72458
72459 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * lib/memrchr.h: New file.
72462         * lib/chdir-long.c: Include it.
72463         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72464         Don't bother including stddef.h.
72465
72466 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72469         inclusion.
72470         Include <sys/types.h>, for dev_t.
72471         (ME_DUMMY, ME_REMOTE): Move from here....
72472         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72473         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72474         Dmitry V. Levin.
72475         Include mountlist.h first, to test the interface.
72476
72477 2005-01-29  Bruno Haible  <bruno@clisp.org>
72478
72479         * lib/progname.c (program_name): Initialize.
72480         Needed when linking statically on MacOS X.
72481
72482 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72483
72484         Sync from coreutils.
72485         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72486         (Depends-on): Add c-strtod.
72487         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72488
72489 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         Sync from coreutils.
72492         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72493
72494         Remove files that are specific to coreutils.
72495         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72496
72497 2005-01-28  Bruno Haible  <bruno@clisp.org>
72498
72499         * modules/javacomp: New file.
72500         * MODULES.html.sh (Java): Add javacomp.
72501
72502 2005-01-28  Bruno Haible  <bruno@clisp.org>
72503
72504         * m4/javacomp.m4: New file, from GNU gettext.
72505
72506 2005-01-28  Bruno Haible  <bruno@clisp.org>
72507
72508         * lib/javacomp.sh.in: New file, from GNU gettext.
72509         * lib/javacomp.h: New file, from GNU gettext.
72510         * lib/javacomp.c: New file, from GNU gettext.
72511
72512 2005-01-26  Simon Josefsson  <jas@extundo.com>
72513
72514         * lib/gai_strerror.c: Use GPL in header.
72515
72516 2005-01-26  Bruno Haible  <bruno@clisp.org>
72517
72518         * modules/javaexec: New file.
72519         * MODULES.html.sh (Java): Add javaexec.
72520
72521 2005-01-26  Bruno Haible  <bruno@clisp.org>
72522
72523         * m4/javaexec.m4: New file, from GNU gettext.
72524
72525 2005-01-26  Bruno Haible  <bruno@clisp.org>
72526
72527         * lib/javaexec.sh.in: New file, from GNU gettext.
72528         * lib/javaexec.h: New file, from GNU gettext.
72529         * lib/javaexec.c: New file, from GNU gettext.
72530
72531 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72532
72533         * modules/lchown (Depends-on): Remove lchown.h
72534
72535 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72536
72537         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72538         must be defined if the header file was not found, in order
72539         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72540
72541 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72542
72543         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72544         initializers for struct pentry_state.
72545         (__argp_error): Check return value of __asprintf
72546         (__argp_failure): Translate error message
72547
72548         * lib/argp-parse.c: Removed braces around the expansion of N_()
72549
72550 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72551
72552         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72553         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72554         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72555         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72556         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72557         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72558         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72559         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72560         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72561         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72562         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72563         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72564         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72565         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72566         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72567         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72568         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72569         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72570         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72571         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72572         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72573         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72574         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72575         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72576         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72577         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72578         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72579         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72580         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72581         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72582         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72583         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72584         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72585         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72586         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72587         Use an all-permissive copyright notice, recommended by RMS.
72588
72589 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * modules/chdir-long (Depends-on): Remove mempcpy.
72592
72593 2005-01-21  Jim Meyering  <jim@meyering.net>
72594
72595         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72596         same value as for Solaris 9.
72597
72598         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72599         component length.  This included changing the parameter to be
72600         of type `char *' rather than `char const *'.
72601         * lib/chdir-long.h (chdir_long): Update prototype.
72602
72603         * lib/openat.c (fdopendir, fstatat): New functions.
72604         * lib/openat.h: Include headers required for use of DIR and struct
72605         stat.
72606         [AT_SYMLINK_NOFOLLOW]: Define.
72607         (fdopendir, fstatat): Add prototypes.
72608
72609 2005-01-21  Bruno Haible  <bruno@clisp.org>
72610
72611         * modules/classpath: New file.
72612         * MODULES.html.sh (Java): Add classpath.
72613
72614 2005-01-21  Bruno Haible  <bruno@clisp.org>
72615
72616         * lib/classpath.h: New file, from GNU gettext.
72617         * lib/classpath.c: New file, from GNU gettext.
72618
72619 2005-01-20  Simon Josefsson  <jas@extundo.com>
72620
72621         * modules/version-etc-fsf: New file.
72622
72623 2005-01-20  Simon Josefsson  <jas@extundo.com>
72624
72625         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72626         * lib/version-etc.c: Remove version_etc_copyright.
72627         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72628         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72629
72630 2005-01-20  Simon Josefsson  <jas@extundo.com>
72631
72632         * lib/base64.h (isbase64): Add.
72633
72634         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72635         using a unsigned prototype, don't inline.
72636         (base64_decode): Use it.
72637
72638 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72641         it.
72642
72643 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * lib/save-cwd.c (save_cwd): Remove code to support the case
72646         where fchdir is missing or flaky.
72647
72648 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72651
72652 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72655         AC_LIBSOURCES now does this.
72656         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72657         with new ullong_max module.
72658
72659 2005-01-19  Bruno Haible  <bruno@clisp.org>
72660
72661         * modules/sh-quote: New file.
72662         * MODULES.html.sh (Executing programs): Add sh-quote.
72663
72664 2005-01-19  Bruno Haible  <bruno@clisp.org>
72665
72666         * lib/sh-quote.h: New file, from GNU gettext.
72667         * lib/sh-quote.c: New file, from GNU gettext.
72668
72669 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         Merge from coreutils.
72672         * m4/ullong_max.m4: New file.
72673         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72674         (gl_MACROS): Assume localeconv exists.
72675
72676 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         Merge changes from coreutils, as described below in several
72679         changelogs dated today.
72680
72681         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72682         (O_DIRECTORY): Remove; not needed here, since "." must be
72683         a directory.  All uses removed.
72684         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72685         universal on Suns, and we also need to test for IRIX.
72686         Revamp code to use 'if' rather than '#if'.
72687         Avoid unnecessary comparison of cwd->desc to 0.
72688
72689         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72690         for known valid error numbers rather than observed invalid ones.
72691
72692 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         * modules/ullong_max: New file.
72695
72696         * modules/chdir-long, modules/openat: New files.
72697         * modules/save-cwd (Depends-on): Depend on chdir-long.
72698         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72699
72700 2005-01-18  Jim Meyering  <jim@meyering.net>
72701
72702         Merge from coreutils.
72703         * m4/chdir-long.m4, m4/openat.m4: New files.
72704         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72705         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72706         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72707         is sane and DOES follow symlinks.  Besides, testing 20 different
72708         systems found no broken chown implementations.
72709         Prompted by a change in rsync's copy of this macro.
72710         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72711
72712         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72713
72714         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72715         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72716         NULL-means-set-to-current-time semantics.
72717         Remove temporary file immediately, rather than waiting
72718         for configure's at-exit trap code to do it.
72719
72720 2005-01-18  Jim Meyering  <jim@meyering.net>
72721
72722         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72723
72724         * lib/utimens.c (futimens): Account for the fact that futimes
72725         can also fail with errno == ENOSYS or errno == ENOENT.
72726         Patch from Dmitry V. Levin.
72727
72728         Change the name of the robust chdir function from chdir to chdir_long.
72729         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72730         (restore_cwd): Use chdir_long, not chdir.
72731         * lib/chdir-long.c: Renamed from chdir.c.
72732         * lib/chdir-long.h: Renamed from chdir.h.
72733         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72734         Hurd.
72735
72736 2005-01-18  Bruno Haible  <bruno@clisp.org>
72737
72738         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72739         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72740         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72741         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72742         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72743         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72744         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72745         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72746         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72747         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72748         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72749         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72750         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72751         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72752         Use an all-permissive copyright notice, recommended by RMS.
72753
72754 2005-01-18  Bob Proulx  <bob@proulx.com>
72755
72756         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72757         simplify offsetof() macro construct to avoid compile failure with
72758         native HP-UX 11.0 ANSI C compiler.
72759
72760 2005-01-17  Bruno Haible  <bruno@clisp.org>
72761
72762         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72763         redundant because stpncpy.m4 takes care of it.
72764
72765 2005-01-17  Bruno Haible  <bruno@clisp.org>
72766
72767         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72768
72769 2005-01-17  Bruno Haible  <bruno@clisp.org>
72770
72771         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72772         used.
72773
72774 2005-01-17  Bruno Haible  <bruno@clisp.org>
72775
72776         * lib/fwriteerror.h (fwriteerror): Change specification to include
72777         fclose.
72778         * lib/fwriteerror.c: Include <stdbool.h>.
72779         (fwriteerror): At the end, close the file stream. Record whether
72780         stdout was already closed.
72781
72782 2005-01-17  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/execute.c (environ): Declare if needed.
72785         * lib/pipe.c (environ): Likewise.
72786         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72787
72788 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72789
72790         * modules/argp: Depend on vsnprintf
72791
72792 2005-01-10  Jim Meyering  <jim@meyering.net>
72793
72794         * modules/closeout (Depends-on): Add atexit.
72795
72796 2005-01-06  Bruno Haible  <bruno@clisp.org>
72797
72798         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72799
72800 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72801
72802         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72803         definitions to be after all include files, to avoid collisions.
72804         Problem reported by Bob Proulx.
72805
72806 2005-01-04  Jim Meyering  <jim@meyering.net>
72807
72808         Changes imported from coreutils.
72809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72810         as the mkstemp template, use a temporary directory and an
72811         8.3-friendly template to avoid trouble on systems like DJGPP.
72812         Reported by Juan M. Guerrero via Stepan Kasal.
72813         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72814         close. Remove the temporary directory right away, rather than waiting
72815         for configure's at-exit trap code to do it.
72816         Suggestion from Stepan Kasal.
72817
72818 2005-01-01  Simon Josefsson  <jas@extundo.com>
72819
72820         * gnulib-tool: Print #include directives when --import'ing.
72821
72822 2004-12-28  Simon Josefsson  <jas@extundo.com>
72823
72824         * tests/test-base64.c: Include required header files.  Remove
72825         unused variables.
72826
72827 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72828
72829         * modules/error (Depends-on): Remove gettext.
72830
72831 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72834         not needed.  This removes a dependency on the gettext module.
72835         [defined _LIBC]: Do not include <libintl.h>; not needed.
72836
72837 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72838
72839         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72840         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72841
72842 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72843
72844         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72845         HAVE_DECL_STRTOLD.
72846
72847 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * modules/getdate (Depends-on): Remove alloca-opt.
72850
72851 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72854
72855 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * lib/argp-parse.c: Include <stddef.h>.
72858         (alignof, alignto): New macros.
72859         (parser_init): Don't assume that void * is aligned sufficiently
72860         for struct option.
72861
72862         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72863         need to extend the stack.
72864         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72865         large.
72866
72867 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72868
72869         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72870
72871 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72874         (2004-10-24) change.  Apparently this was a false alarm.
72875
72876         * modules/getdate: Depend on alloca-opt, not alloca.
72877
72878 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72879
72880         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72881         Remove now-obsolete comment about AIX.
72882         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72883         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72884         (YYMAXDEPTH): New macro.
72885
72886 2004-12-18  Simon Josefsson  <jas@extundo.com>
72887
72888         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72889
72890 2004-12-18  Bruno Haible  <bruno@clisp.org>
72891
72892         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72893
72894 2004-12-18  Bruno Haible  <bruno@clisp.org>
72895
72896         * lib/fatal-signal.c (fatal_signals): Make non-const.
72897         (init_fatal_signals): New function.
72898         (uninstall_handlers, install_handlers): Ignore signals that were set to
72899         SIG_IGN.
72900         (at_fatal_signal): Call init_fatal_signals.
72901         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72902         SIG_IGN.
72903         Reported by Paul Eggert.
72904
72905 2004-12-18  Bruno Haible  <bruno@clisp.org>
72906
72907         * doc/alloca.texi: New file.
72908         * doc/alloca-opt.texi: New file.
72909
72910 2004-12-17  Jim Meyering  <jim@meyering.net>
72911
72912         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72913         Otherwise, install-sh could exit with improper exit status when
72914         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72915
72916 2004-12-16  Simon Josefsson  <jas@extundo.com>
72917
72918         * tests/test-base64.c: Add license.
72919
72920 2004-12-15  Stepan Kasal  <address@hidden>
72921
72922         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72923
72924 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72925
72926         * modules/getcwd (Files): Add m4/d-ino.m4.
72927         Suggested by Mark D. Baushke.
72928
72929 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72930
72931         * lib/getdate.y (textint): New member "negative".
72932         (time_zone_hhmm): New function.
72933         Expect 14 shift-reduce conflicts, not 13.
72934         (o_colon_minutes): New rule.
72935         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72936         (yylex): Set the "negative" member of signed numbers.
72937
72938 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72939
72940         * doc/getdate.texi (Time of day items, Time zone items):
72941         Describe new formats +00:00, UTC+00:00.
72942
72943 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72946         spurious "-l"s.  Problem reported by Stepan Kasal.
72947
72948 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72951         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72952
72953 2004-12-04  Simon Josefsson  <jas@extundo.com>
72954
72955         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72956         Vandoorselaere <yoann@prelude-ids.org>.
72957
72958 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72959
72960         Changes imported from coreutils.
72961         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72962         exist.
72963         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72964
72965 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72966
72967         Changes imported from coreutils.
72968         * lib/hard-locale.c: Assume <locale.h> exists.
72969         Include "strdup.h".
72970         (GLIBC_VERSION): New macro.
72971         (hard_locale): Assume setlocale exists.
72972         Rewrite to avoid #ifdef.
72973         Use strdup rather than malloc + strcpy.
72974         * lib/human.c: Assume <locale.h> exists.
72975         (human_readable): Assume localeconv exists.
72976
72977 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72978
72979         * modules/hard-locale (Depends-on): Add strdup.
72980
72981 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72982
72983         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72984         convert T2, not T.  (Imported from libc.)
72985
72986 2004-11-30  Simon Josefsson  <jas@extundo.com>
72987
72988         * modules/restrict (License): Change to LGPL.
72989
72990 2004-11-30  Simon Josefsson  <jas@extundo.com>
72991
72992         * m4/restrict.m4: Add copyright and copying conditions.
72993
72994 2004-11-30  Simon Josefsson  <jas@extundo.com>
72995
72996         * m4/base64.m4: New file.
72997
72998 2004-11-30  Simon Josefsson  <jas@extundo.com>
72999
73000         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73001         base64.
73002
73003         * tests/test-base64.c: New file.
73004
73005         * modules/base64: New file.
73006
73007 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73010         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73011
73012         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73013
73014 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73017         (__getcwd.c): Don't restore errno; glibc doesn't.
73018         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73019         first, falling back to our code only if its results look suspicious.
73020         Ensure that the resulting buffer is only as large as necessary.
73021
73022         * lib/readutmp.c: Include readutmp.h first.
73023         Include <errno.h>, since readutmp.h no longer does that.
73024         * lib/readutmp.h: Don't include <errno.h>,
73025         <sys/param.h>, <time.h>; not needed to establish interface.
73026         (errno): Remove decl.
73027         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73028         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73029         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73030
73031 2004-11-28  Simon Josefsson  <jas@extundo.com>
73032
73033         * lib/base64.h, base64.c: New file.
73034
73035 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73036
73037         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73038
73039 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73040
73041         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73042         (Depends-on): Remove pathmax, same.  Add mempcpy.
73043         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73044         (Makefile.am): Append getcwd.h to lib_SOURCES.
73045         (Include): Add getcwd.h.
73046         (Maintainer): Change from Jim Meyering to "all, glibc",
73047         since getdate now uses intended-for-glibc code.
73048         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73049         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73050
73051 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73054         HP's ANSI C compiler.
73055         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73056         Declaring int functions causes warnings on some modern systems and
73057         shouldn't be needed to compile on ancient ones.
73058         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73059         defined.
73060
73061         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73062         with the following changes.
73063         (__set_errno): Parenthesize properly.
73064         Include <stdbool.h>.
73065         (MIN, MAX, MATCHING_INO): New macros.
73066         (__getcwd): Define with prototype, not K&R form.
73067         Use heuristics to allocate default buffer on stack if possible.
73068         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73069         behavior, and to avoid the PATH_MAX limit when computing
73070         ../../../../...
73071         Use MATCHING_INO to compare inode number to file.
73072         Check for arithmetic overflow in size calculations.
73073         Fix bug in reallocation of dot array that caused getcwd to fail
73074         on directories nested deeper than 75.
73075         Be more careful about saving errno on error.
73076         Do not use realloc; use only free+malloc, as this is a bit
73077         more flexible and avoids a needless copy operation.
73078         Do not inspect st_dev and st_ino for symbolic links; POSIX
73079         doesn't specify the latter.
73080         Check for closedir errors.
73081         Avoid needless casts.
73082         Use "#ifdef weak_alias" around weak_alias, to be like other
73083         glibc code.
73084         The following changes to getcwd.c have effect only when used in
73085         gnulib; they have no effect inside glibc proper.
73086         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73087         as alloca isn't used.
73088         (alloca, __alloca): Likewise.
73089         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73090         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73091         unconditionally, as gnulib assumes C89 or better.
73092         Do not include <sys/param.h>.
73093         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73094         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73095         better.
73096         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73097         Include <dirent.h> in a way that is compatible with modern Autoconf.
73098         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73099         New macros, if not already defined.
73100         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73101         Use "_LIBC", not "defined _LIBC", for consistency.
73102         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73103         a mempcpy module.
73104         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73105         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73106         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73107         credit only to Jim Meyering and adjust the copyright dates.
73108         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73109         <stdlib.h>, <unistd.h>, "pathmax.h".
73110         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73111         (INITIAL_BUFFER_SIZE): Remove.
73112         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73113
73114 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73115
73116         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73117         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73118         Use the _ONCE methods, for efficiency.
73119         Check for fcntl.h.  In test program, include <errno.h>
73120         and <fcntl.h> if available.  Remove old K&R cruft from
73121         test program.  Check for common errors in GNU/Linux,
73122         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73123         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73124         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73125         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73126         name accordingly.
73127         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73128         accommodate new getcwd.c.
73129         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73130         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73131         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73132         that's all we need now.
73133
73134 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73135
73136         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73137         argp-parse.c depends on getopt internals, that means we should
73138         always use our getopt, to be on the safe side.
73139         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73140         order not to spoil the result of an eventual previous invocation
73141         of gl_GETOPT_SUBSTITUTE.
73142
73143 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73144
73145         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73146         redefinition warnings. To avoid them, include the defines
73147         in `#if !defined __need_getopt ... #endif'. The only place
73148         where __getopt_argv_const is used is in definitions
73149         of getopt_long and getopt_long_only below, which are as well
73150         protected by `#ifndef __need_getopt'.
73151         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73152         __need_getopt after including <stdio.h> and <unistd.h> These
73153         headers might have defined it.
73154
73155 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73158
73159 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73162         (futimens): New function, which uses futimes if available.
73163         (futimens, utimens): Support timespec==NULL, with same semantics
73164         as utime and utimens.
73165         * lib/utimens.h (futimens): New decl.
73166
73167 2004-11-23  Jim Meyering  <jim@meyering.net>
73168
73169         * lib/getopt_.h: Remove trailing blanks.
73170
73171 2004-11-23  Jim Meyering  <jim@meyering.net>
73172
73173         * lib/__fpending.c: Add comment.
73174
73175 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * modules/canonicalize (Depends-on): Add xreadlink.
73178         Problem reported by James Youngman.
73179
73180 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73183         New macros.
73184         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73185         optopt): Use them instead of invoking ## directly; otherwise, the
73186         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73187
73188 2004-11-19  Bruno Haible  <bruno@clisp.org>
73189
73190         * lib/strtok_r.c: Move comments from here...
73191         * lib/strtok_r.h: ... to here.
73192
73193 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73194
73195         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73196         implementations that mishandle size_t overflow.
73197
73198 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73201         might fail.  Problem reported by Yoann Vandoorselaere.
73202         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73203         implementations that mishandle size_t overflow.
73204
73205 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         * modules/canon-host (Depends-on): Add strdup.
73208
73209 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73212
73213 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * lib/canon-host.c: Include "strdup.h".
73216         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73217         Use strdup instead of malloc/strcpy to duplicate strings.
73218
73219         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73220         (human_space_before_unit): New constant.
73221         * lib/human.c (human_readable): Support it.
73222
73223         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73224         (xgetcwd): Set errno correctly when failing.
73225         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73226         the failure is actually due to a PATH_MAX problem.
73227
73228         Further getopt changes to make it more likely that glibc will
73229         buy the changes back.
73230         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73231         (getopt): Use it, so to preserve glibc semantic
73232         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73233         when compiling for libc.
73234         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73235         (getopt_long, getopt_long_only): Use it.
73236
73237         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73238         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73239         (getopt): Argv is now char * const *, as per standard.
73240         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73241         not char *__getopt_argv_const *.
73242         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73243         _getopt_long_only_r): Likewise.
73244         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73245         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73246         _getopt_long_r, _getopt_long_only_r): Likewise.
73247         * lib/getopt_.h (__getopt_argv_const): Remove.
73248         (getopt): Argv is now char * const *, as per standard.
73249
73250         * lib/getdate.y (tORDINAL): New token.
73251         (day, relunit): Allow it for relative times.
73252         (relative_time_table): Use tORDINAL for ordinals.
73253
73254 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73257         Document that "second" isn't allowed as an ordinal number.
73258
73259 2004-11-16  Jim Meyering  <jim@meyering.net>
73260
73261         * modules/closeout (Depends-on): Add fpending.
73262
73263 2004-11-15  Jim Meyering  <jim@meyering.net>
73264
73265         * lib/closeout.c: Include "__fpending.h" once again.
73266         Include <stdbool.h>.
73267         (close_stdout): Don't fail just because stdout was closed initially,
73268         since some programs don't write to stdout in the normal course of
73269         operation (other than --version and --help), and we don't want this
73270         function to make e.g. `touch file >&-' fail.
73271         But do fail if it was closed and someone has tried to write to it.
73272         E.g., `printf foo >&-' must fail.
73273
73274 2004-11-13  Jim Meyering  <jim@meyering.net>
73275
73276         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73277
73278 2004-11-12  Simon Josefsson  <jas@extundo.com>
73279
73280         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73281         small doc fix is still pending.
73282
73283 2004-11-11  Simon Josefsson  <jas@extundo.com>
73284
73285         * modules/strtok_r: New file.
73286
73287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73288         strtok_r.
73289
73290 2004-11-11  Simon Josefsson  <jas@extundo.com>
73291
73292         * m4/strtok_r.m4: New file.
73293
73294         * m4/getopt.m4: Replace opterr.
73295
73296 2004-11-11  Simon Josefsson  <jas@extundo.com>
73297
73298         * lib/strtok_r.h, strtok_r.c: New file.
73299
73300 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73301
73302         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73303         of replacing opterr, getopt, etc.  This should handle the
73304         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73305
73306 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73309         we can stop lying to compilers about the constness of argv when we
73310         are compiled outside glibc.
73311         (getopt, getopt_long, getopt_long_only): Use it.
73312         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73313         _getopt_internal, getopt): Likewise.
73314         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73315         _getopt_long_only_r): Likewise.
73316         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73317         _getopt_long_r, _getopt_long_only_r): Likewise.
73318
73319         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73320         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73321         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73322         the other external symbols.
73323         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73324         declaration, since the above renaming now works around collisions.
73325
73326 2004-11-11  Jim Meyering  <jim@meyering.net>
73327
73328         * lib/linebreak.c: Remove trailing blanks.
73329         * lib/alloca_.h: Likewise.
73330         * lib/acosl.c: Likewise.
73331         * lib/euidaccess.c: Likewise.
73332         * lib/allocsa.h: Likewise.
73333
73334 2004-11-10  Simon Josefsson  <jas@extundo.com>
73335
73336         * m4/getaddrinfo.m4: New file.
73337
73338 2004-11-10  Simon Josefsson  <jas@extundo.com>
73339
73340         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73341
73342 2004-11-10  Simon Josefsson  <jas@extundo.com>
73343
73344         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73345         getaddrinfo.
73346
73347         * modules/getaddrinfo: New file.
73348
73349 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73352
73353 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         * lib/mktime.c (SHR): New macro, which is a portable
73356         substitute for >> that should work even on Crays.
73357         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73358         Problem reported by Mark D. Baushke in
73359         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73360         * lib/getdate.y (SHR): Likewise.
73361         (tm_diff): Use it.
73362         * lib/strftime.c (SHR): Likewise.
73363         (tm_diff): Use it.
73364         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73365         quote_these_too, so that right shifts are well defined.  All uses
73366         changed.
73367
73368 2004-11-10  Jim Meyering  <jim@meyering.net>
73369
73370         Ensure that no close failure goes unreported.
73371         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73372         return early when it seems there's nothing to flush.
73373         Don't include __fpending.h.
73374
73375 2004-11-10  Jim Meyering  <jim@meyering.net>
73376
73377         * modules/closeout (Depends-on): Remove fpending.
73378
73379 2004-11-10  Jim Meyering  <jim@meyering.net>
73380
73381         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73382
73383 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73386         gl_FUNC_STRFTIME.
73387         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73388         and AC_REQUIRE when possible, to avoid duplicate checks.
73389         Check for <wchar.h>.
73390
73391 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73392
73393         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73394
73395 2004-11-09  Bruno Haible  <bruno@clisp.org>
73396
73397         * m4/sockpfaf.m4: New file.
73398
73399 2004-11-05  Bruno Haible  <bruno@clisp.org>
73400
73401         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73402         Reported by Mark D. Baushke <mdb@cvshome.org>.
73403
73404 2004-11-04  Bruno Haible  <bruno@clisp.org>
73405
73406         2004-09-11  Bruno Haible  <bruno@clisp.org>
73407                 * allocsa.valgrind: New file.
73408         2004-02-06  Bruno Haible  <bruno@clisp.org>
73409                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73410                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73411                 Reported by Christopher Seip <chris.seip@hp.com>.
73412
73413 2004-11-04  Bruno Haible  <bruno@clisp.org>
73414
73415         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73416         (Makefile.am): Distribute it.
73417
73418 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73421         with errno == ERANGE if the buffer is too small.
73422         Problem reported by Mark D. Baushke.
73423
73424 2004-11-03  Albert Chin  <china@thewrittenword.com>
73425             Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73428         equivalent, substitute $ac_type for equivalent type rather than
73429         blindly using uint32_t *always* which won't work if uint32_t is not
73430         available.  Define _UINT32_T to work around typedef of uint32_t if
73431         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73432         2.5.1.
73433
73434 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * m4/jm-macros.m4: Sync from coreutils.
73437         (gl_MACROS): Check for mbrlen, for pathchk.
73438         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73439
73440 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         * lib/xreadlink.c (MAXSIZE): New macro.
73443         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73444         size does not exceed MAXSIZE.  Avoid cast.
73445         As suggested by Mark D. Baushke in
73446         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73447         if readlink fails with buffer size just under MAXSIZE, try again
73448         with MAXSIZE.
73449
73450 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73453
73454 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73455         and  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73458         (get_date): Overparenthesize to avoid GCC warning.
73459
73460 2004-11-02  Bruno Haible  <bruno@clisp.org>
73461
73462         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73463         returns void.
73464
73465 2004-11-02  Bruno Haible  <bruno@clisp.org>
73466
73467         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73468         function returns void.
73469
73470 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73471
73472         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73473         fflush_unlocked, flockfile, funlockfile, funlockfile,
73474         fputs_unlocked, putc_unlocked.
73475
73476 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73479         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73480         already declared.
73481
73482 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73483
73484         * modules/getdate (Files): Add doc/getdate.texi.
73485         (Depends-on): Add setenv, xalloc.
73486
73487 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73488
73489         * lib/getdate.y: Add support for TZ="foo" within a date string.
73490         Fix some bugs near time_t boundaries.  Reject dates with
73491         out-of-range components, e.g., "Sept 31".
73492         Include <stdlib.h>, "setenv.h", "xalloc.h".
73493         (ISDIGIT_LOCALE): Remove; unused.
73494         Note that the TZ and time functions used here are not reentrant.
73495         (mktime_ok, get_tz): New functions.
73496         (TZBUFSIZE): New constant.
73497         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73498         This requires that we sometimes generate our own TZ="XXX..." setting.
73499
73500 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73501
73502         * doc/getdate.texi: New file, from coreutils with modifications for
73503         the new TZ parsing.
73504
73505 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73506
73507         * lib/mktime.c (not_equal_tm): Remove redundant check.
73508
73509 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * modules/regex (lib_SOURCES): Add regex.c.
73512         Reported by James Youngman in
73513         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73514
73515 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73516
73517         * lib/getdate.y: Use Bison 1.875 features, and some minor
73518         code cleanups.  This change does not affect semantics.
73519         Don't include <stdlib.h>; no longer needed.
73520         Don't include unlocked-io.h; only the "#if TEST" code uses
73521         stdio, and performance isn't crucial there.
73522         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73523         Bison 1.875 features as described below.
73524         All uses of "PC." replaced by "pc->".
73525         (YYSTYPE): Add a forward declaration.
73526         (yylex, yyerror): Use full prototypes in forward decls.
73527         Use "%pure-parser" rather than obsolescent "%pure_parser".
73528         Use %parse-param and %lex-param instead of obsolescent
73529         YYPARSE_PARAM and YYLEX_PARAM.
73530         (meridian_table, month_and_day_table, time_units_table,
73531         relative_time_table, time_zone_table, military_table,
73532         lookup_zone, lookup_word, get_date):
73533         Use NULL instead of 0 where appropriate.
73534         (to_hour): Avoid abort (), to avoid a dependency on
73535         stdlib.h.
73536         (yyerror, yylex): Now accepts parser_control * arg.
73537         (main) [TEST]: Use '\0' rather than 0 for char.
73538
73539 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73542
73543 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73544
73545         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73546         It's now the caller's responsibility to handle the case where
73547         !HAVE_GETPAGESIZE && !defined getpagesize.
73548
73549         * lib/mktime.c (leapyear): Arg is long int, not int.
73550
73551 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73552
73553         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73554
73555 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73558         missing.  Problem reported by James Youngman.
73559
73560 2004-10-16  Simon Josefsson  <jas@extundo.com>
73561
73562         * gnulib-tool: Fix comments.  Fix parse problem.
73563         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73564
73565 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73568         implementation of getopt_long.  Problem reported by Alexander Taler in:
73569         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73570
73571 2004-10-15  Bruno Haible  <bruno@clisp.org>
73572
73573         * gnulib-tool: Untabify. Initialize supplied_libname.
73574         (func_usage): More homogenous output.
73575         (func_modules_transitive_closure, func_modules_to_filelist,
73576         func_emit_lib_Makefile_am): New functions.
73577         (func_import): New function, extracted from big case statement. Use
73578         func_get_license, func_modules_transitive_closure,
73579         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73580         opt_lgpl. Don't use test -a, as it's not portable.
73581         (func_create_testdir): Use func_modules_transitive_closure,
73582         func_modules_to_filelist, func_emit_lib_Makefile_am.
73583
73584 2004-10-15  Bruno Haible  <bruno@clisp.org>
73585
73586         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73587
73588 2004-10-15  Bruno Haible  <bruno@clisp.org>
73589
73590         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73591         the portions belonging to each module.
73592         Suggested by Derek Robert Price <derek@ximbiot.com>.
73593
73594 2004-10-12  Simon Josefsson  <jas@extundo.com>
73595
73596         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73597         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73598         to real functions.
73599
73600 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73601
73602         * modules/vsnprintf: New file.
73603
73604 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73605
73606         * m4/vsnprintf.m4: New file.
73607
73608 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73609
73610         * lib/vsnprintf.h: New file.
73611         * lib/vsnprintf.c: New file.
73612
73613 2004-10-11  Bruno Haible  <bruno@clisp.org>
73614
73615         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73616         vsnprintf.
73617
73618 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73621
73622 2004-10-07  Bruno Haible  <bruno@clisp.org>
73623
73624         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73625         fits into the provided buffer.
73626
73627 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * lib/diacrit.c, diacrit.h: Add GPL notice.
73630
73631         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73632         notice.
73633         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73634         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73635         This avoids a potential constant-folding bug.
73636
73637 2004-10-05  Bruno Haible  <bruno@clisp.org>
73638
73639         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73640         for the declaration of strsep.
73641
73642 2004-10-05  Bruno Haible  <bruno@clisp.org>
73643
73644         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73645
73646 2004-10-04  Simon Josefsson  <jas@extundo.com>
73647
73648         * modules/memmem: New file.
73649         * tests/test-memmem.c: New file.
73650         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73651
73652 2004-10-04  Simon Josefsson  <jas@extundo.com>
73653
73654         * m4/memmem.m4: New file.
73655
73656 2004-10-04  Simon Josefsson  <jas@extundo.com>
73657
73658         * lib/memmem.h: New file.
73659         * lib/memmem.c: New file, taken from glibc.
73660
73661 2004-10-04  Simon Josefsson  <jas@extundo.com>
73662
73663         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73664         '#ifdef USE_UNLOCKED_IO'.
73665
73666 2004-10-04  Simon Josefsson  <jas@extundo.com>
73667
73668         * config/srclist.txt: Add memmem from glibc.
73669
73670 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73671
73672         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73673
73674         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73675         modules/exclude, modules/getdate, modules/getline,
73676         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73677         modules/getusershell, modules/linebuffer, modules/md5,
73678         modules/mountlist, modules/posixtm, modules/readtokens,
73679         modules/readutmp, modules/regex, modules/sha1,
73680         modules/version-etc, modules/yesno:
73681         Remove dependency on unlocked-io.
73682
73683 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73684
73685         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73686
73687         * m4/unlocked-io.m4: Add copyright notice.
73688         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73689
73690 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73691
73692         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73693         * lib/xmalloc.c (xmemdup): Likewise.
73694         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73695         XFREE): Remove these long-obsolescent macros.
73696         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73697         * lib/xstrdup.c: Remove.
73698
73699         * lib/regex.c (re_comp): Cast gettext return value to char *,
73700         Problem reported by Martin Neitzel via Mark D. Baushke.
73701
73702 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73705         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73706         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73707         regex.c, sha1.c, version-etc.c, yesno.c:
73708         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73709         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73710         the includer's responsibility.
73711
73712         Sync from coreutils.
73713
73714         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73715         points to the start of a string, as the C Standard says the
73716         resulting behavior is undefined.
73717
73718         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73719         simple -> simple_backups, numbered_existing ->
73720         numbered_existing_backups, numbered -> numbered_backups
73721         to avoid shadowing problems.  All uses changed.
73722         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73723         * lib/backupfile.c (check_extension, numbered_backup):
73724         Rename locals to avoid shadowing 'basename'.
73725         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73726         once.
73727
73728         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73729         * lib/.cvsignore: Add getopt.h.
73730
73731 2004-10-04  Bruno Haible  <bruno@clisp.org>
73732
73733         * modules/README: New file.
73734         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73735         not a module.
73736
73737 2004-10-02  Jim Meyering  <jim@meyering.net>
73738
73739         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73740
73741 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73742
73743         * modules/strsep: New file.
73744
73745 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73746
73747         * m4/strsep.m4: New file.
73748
73749 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73750
73751         * lib/strsep.h: New file.
73752         * lib/strsep.c: New file.
73753
73754 2004-10-01  Simon Josefsson  <jas@extundo.com>
73755
73756         * lib/snprintf.c (snprintf): Handle size==0.
73757
73758 2004-10-01  Simon Josefsson  <jas@extundo.com>
73759             Bruno Haible  <bruno@clisp.org>
73760
73761         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73762         (snprintf): Declare 'args'.
73763
73764 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73765
73766         * lib/snprintf.c: Remove comments as to why each header is needed.
73767
73768 2004-10-01  Bruno Haible  <bruno@clisp.org>
73769
73770         * MODULES.html.sh: Add strsep.
73771
73772 2004-09-30  Simon Josefsson  <jas@extundo.com>
73773
73774         * modules/snprintf: New file.
73775
73776 2004-09-30  Simon Josefsson  <jas@extundo.com>
73777
73778         * m4/snprintf.m4: New file.
73779
73780 2004-09-30  Simon Josefsson  <jas@extundo.com>
73781
73782         * lib/snprintf.h, lib/snprintf.c: New files.
73783
73784 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73785
73786         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73787         (hol_entry_help): Never translate an empty string.
73788         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73789         * lib/argp.h (OPTION_NO_TRANS): New option.
73790
73791 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * modules/argp (Maintainer): Replace Simon Josefsson
73794         by Sergey Poznyakoff.
73795
73796 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73799         changes merged back into glibc.
73800
73801 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73804
73805 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73806
73807         * lib/xvasprintf.c: Include xalloc.h.
73808         (xvasprintf): Use xalloc_die, not xmalloc_die.
73809
73810 2004-09-29  Bruno Haible  <bruno@clisp.org>
73811
73812         * modules/alloca-opt: New file, derived from modules/alloca.
73813         * modules/allocsa: Depend on alloca-opt instead of alloca.
73814         * modules/setenv: Likewise.
73815         * modules/vasnprintf: Likewise.
73816         * MODULES.html.sh: Add alloca-opt.
73817
73818 2004-09-28  Simon Josefsson  <jas@extundo.com>
73819
73820         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73821         LGPL, and to replace license template from GPL to LGPL.
73822
73823 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * modules/dummy: Change license to LGPL.
73826
73827 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73828
73829         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73830
73831 2004-09-24  Simon Josefsson  <jas@extundo.com>
73832
73833         * modules/minmax (License): Change from GPL to LGPL.
73834
73835 2004-09-23  Simon Josefsson  <jas@extundo.com>
73836
73837         * gnulib-tool (--import): Typo.
73838
73839 2004-09-23  Simon Josefsson  <jas@extundo.com>
73840
73841         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73842
73843 2004-09-22  Bruno Haible  <bruno@clisp.org>
73844
73845         * modules/*: Add 'License' field.
73846         * gnulib-tool: Accept --extract-license option.
73847         (func_get_license): New function.
73848
73849 2004-09-21  Bruno Haible  <bruno@clisp.org>
73850
73851         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73852         Reported by Simon Josefsson.
73853
73854 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73857         gl_AC_TYPE_LONG_LONG.
73858
73859 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73860
73861         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73862
73863 2004-09-18  Simon Josefsson  <jas@extundo.com>
73864         and  Paul Eggert  <eggert@cs.ucla.edu>
73865
73866         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73867         calls with autoreconf.  Define GL_LIB.
73868
73869 2004-09-14  Karl Berry  <karl@gnu.org>
73870
73871         * config/srclist.txt: unsync setenv.c, sigh.
73872
73873 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73876         Problem reported by Bruno Haible in:
73877         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73878
73879 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * config/srclist.txt: Comment out argp-pvh.c.
73882
73883 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73886         in case some system header has #define'd it.  Problem reported by
73887         Soeren D. Schulze in
73888         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73889
73890 2004-09-09  Karl Berry  <karl@gnu.org>
73891
73892         * regex.[ch]: delete from the root.  These were supposed to be
73893                 synced with emacs cvs, but this has not happened for about
73894                 a year, and anyway nothing else uses emacs regex.[ch].
73895                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73896                 lib/regex[.ch] is untouched.
73897
73898 2004-09-09  Bruno Haible  <bruno@clisp.org>
73899
73900         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73901
73902 2004-09-09  Bruno Haible  <bruno@clisp.org>
73903
73904         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73905         modifications.
73906         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73907
73908 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73909
73910         * modules/xvasprintf: New file.
73911         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73912
73913 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73914
73915         * lib/xvasprintf.h: New file.
73916         * lib/xvasprintf.c: New file.
73917         * lib/xasprintf.c: New file.
73918
73919 2004-09-08  Bruno Haible  <bruno@clisp.org>
73920
73921         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73922
73923 2004-09-08  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73926         length is > INT_MAX.
73927         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73928         more.
73929
73930 2004-09-08  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/stdint_.h: New file, taken from GNU clisp.
73933
73934 2004-09-08  Bruno Haible  <bruno@clisp.org>
73935             Oskar Liljeblad  <oskar@osk.mine.nu>
73936
73937         * modules/stdint: New file.
73938         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73939
73940 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73941
73942         Import from coreutils.
73943         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73944         strings on unbounded length.  alloca's performance benefits aren't
73945         that important here.
73946         (V_STRDUP): Remove.
73947         (parse_with_separator): New function, with most of the internals
73948         of the old parse_user_spec.  Allow user to omit both user and group,
73949         for compatibility with FreeBSD.
73950         Clone only the user name, not the entire spec.
73951         Do not set *uid, *gid unless entirely successful.
73952         Avoid memory leak in some failing cases.
73953         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73954         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73955         (parse_user_spec): Rewrite to use parse_with_separator.
73956
73957 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * modules/userspec: Don't depend on alloca.
73960
73961 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73962
73963         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73964
73965 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73968         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73969         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73970
73971 2004-08-16  Simon Josefsson  <jas@extundo.com>
73972
73973         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73974         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73975         Add --dry-run for --import.
73976         Let user provided command line parameters override configure.ac
73977         settings.
73978
73979 2004-08-12  Simon Josefsson  <jas@extundo.com>
73980
73981         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73982         as discussed with Paul Eggert in threads rooted at
73983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73984         and
73985         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73986         Before, the test was empty, and relied on ELIDE_CODE in source
73987         code.)
73988         (gl_PREREQ_GETOPT): New macro.
73989         (gl_GETOPT): Use them.
73990
73991 2004-08-12  Simon Josefsson  <jas@extundo.com>
73992
73993         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73994         * lib/getopt_.h: Renamed from getopt.h.
73995
73996 2004-08-12  Simon Josefsson  <jas@extundo.com>
73997
73998         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73999         Change default library name from libfoo to libgnu.
74000         Now, if you have a configure.ac that says:
74001                 gl_SOURCE_BASE(gl)
74002                 gl_M4_BASE(gl/m4)
74003                 gl_MODULES(error getopt etcetera)
74004                 gl_INIT
74005         you can import all you need by running:
74006                 ../gnulib/gnulib-tool --import
74007
74008         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74009         (Makefile.am): Rewrite, use logic from argz.
74010         (Include): Use <getopt.h> instead of "getopt.h".
74011
74012 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * modules/argp (Files): Add m4/unlocked-io.m4.
74015         (Depends-on): Add extensions.
74016
74017 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74018
74019         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74020         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74021         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74022         Check for program_invocation_name, program_invocation_short_name,
74023         flockfile, funlockfile, features.h, _getopt_long_only_r.
74024
74025 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74028         its complicated substitute.
74029         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74030         and program_invocation_name.
74031         (__argp_basename) [!_LIBC]: Remove; the only use was
74032         replaced by its body.
74033         (__argp_short_program_name): Change condition from
74034         !defined __argp_short_program_name to
74035         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74036         to match argp-namefrob.h.
74037         (__argp_failure): Don't assume strerror_r returns char *.
74038         * lib/argp-parse.c (N_): Define unconditionally.
74039         (argp_default_options): Fill out initializers with 0 to avoid
74040         gcc warnings.
74041
74042 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74045         getopt1.c.
74046
74047 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         Merge from coreutils.
74050
74051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74052
74053         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74054         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74055
74056 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         Merge from coreutils.
74059
74060         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74061         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74062         for Reliant Unix 5.43.
74063
74064         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74065         (union fooround): Use uintmax_t, not long int.
74066         The rest is a merge from libc:
74067         [defined _LIBC]: Include <shlib-compat.h>.
74068         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74069
74070         * lib/settime.c (settime): Recode to avoid warning with
74071         Sun Forte C 6U2.
74072
74073         * lib/strverscmp.c: Convert to UTF-8.
74074
74075 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74078         m4/uintmax_t.m4.
74079
74080 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * modules/xalloc-die: New file.
74083         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74084
74085         * modules/md5 (Files): Add m4/uint32_t.m4.
74086         * modules/sha1: Renamed from modules/sha.
74087         (Files):
74088         Rename lib/sha.h to lib/sha1.h.
74089         Rename lib/sha.c to lib/sha1.c.
74090         Rename m4/sha.m4 to m4/sha1.m4.
74091         (lib_SOURCES): Likewise.
74092         (configure.ac): Rename gl_SHA to gl_SHA1.
74093         (Include): sha.h -> sha1.h.
74094
74095 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74098         * m4/sha1.m4: Renamed from sha.m4.
74099         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74100
74101 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * lib/obstack.h (obstack_empty_p):
74104         Don't assume that chunk->contents is suitably aligned.
74105         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74106         Likewise. Problem reported by Benno in
74107         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74108
74109         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74110         readable.  This could be improved further but it'd take some work.
74111
74112 2004-08-08  Simon Josefsson  <jas@extundo.com>
74113
74114         * modules/xgethostname (Depends-on): Remove exit and error (not
74115         used).
74116
74117         * modules/getpass-gnu: Add getpass.h.
74118         (Depends-on): Add stdbool.
74119         * modules/getpass: Add getpass.h.
74120
74121 2004-08-08  Simon Josefsson  <jas@extundo.com>
74122
74123         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74124         Check getpass declaration.
74125
74126 2004-08-08  Simon Josefsson  <jas@extundo.com>
74127
74128         * lib/xgethostname.c: Don't include error.h (not used).
74129
74130         * lib/getpass.h: Add.
74131         * lib/getpass.c: Include getpass.h first.
74132
74133 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * lib/xalloc-die.c: New file.
74136         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74137         All uses removed.
74138         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74139         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74140         xalloc-die.c.
74141         (_, N_, xalloc_die): Move to xalloc-die.c.
74142         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74143         so that we needn't mess with xalloc_msg_memory_exhausted.
74144
74145         * lib/sha1.h: Renamed from sha.h.
74146         (SHA1_H): Renamed from _SHA_H.
74147         (sha1_ctx): Renamed from sha_ctx.
74148         (sha1_init_ctx): Renamed from sha_init_ctx.
74149         (sha1_process_block): Renamed from sha_process_block.
74150         (sha1_process_bytes): Renamed from sha_process_bytes.
74151         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74152         (sha1_read_ctx): Renamed from sha_read_ctx.
74153         (sha1_stream): Renamed from sha_stream.
74154         (sha1_buffer): Renamed from sha_buffer.
74155         * lib/sha1.c: Likewise; renamed from sha.c.
74156         Do not include <sys/types.h>.
74157         Include <stddef.h> rather than <stdlib.h>.
74158
74159 2004-08-08  Bruno Haible  <bruno@clisp.org>
74160
74161         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74162         FILESYSTEM_PREFIX_LEN.
74163         * lib/progreloc.c: Likewise.
74164         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74165
74166 2004-08-06  Simon Josefsson  <jas@extundo.com>
74167
74168         * modules/progname (Depends-on): Don't depend on stdbool.
74169
74170 2004-08-06  Simon Josefsson  <jas@extundo.com>
74171
74172         * modules/getsubopt: New file.
74173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74174         getsubopt.
74175
74176 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74177
74178         More merge from coreutils.
74179
74180         * m4/utimens.m4, m4/utimecmp.m4: New files.
74181         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74182         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74183         prereq.m4, sha.m4: Import changes from coreutils.
74184
74185 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74186
74187         More merge from coreutils.
74188         * modules/raise, modules/readtokens0, modules/utimens:
74189         * modules/utimecmp, module/xnanosleep: New files.
74190         * modules/strftime: Add lib/strftime.h.
74191         Change include from <time.h> to "strftime.h".
74192         * modules/yesno: Add lib/yesno.h.
74193         * modules/backupfile: Remove lib/addext.c.
74194         * modules/euidaccess: Add stat-macros.h.
74195         * modules/canonicalize, modules/euidaccess,
74196         modules/filemode, modules/lchown, modules/makepath,
74197         modules/rmdir, modules/stat: Likewise.
74198
74199 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74200
74201         Merge from tar.
74202         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74203         SIZE_MAX is a valid preprocessor constant.
74204         (__argp_basename): Change from "#ifndef _LIBC"
74205         to "#ifndef __argp_short_program_name", so that
74206         we don't compile these functions for tar.
74207
74208         More merges from coreutils.
74209         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74210         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74211         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74212         * lib/addext.c: Remove; no longer needed.
74213         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74214         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74215         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74216         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74217         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74218         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74219         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74220         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74221         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74222         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74223         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74224         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74225         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74226         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74227         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74228         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74229         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74230         Import changes from coreutils.
74231
74232 2004-08-05  Simon Josefsson  <jas@extundo.com>
74233
74234         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74235
74236 2004-08-05  Simon Josefsson  <jas@extundo.com>
74237
74238         * m4/getsubopt.m4: New file.
74239
74240 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         Merge from coreutils.
74243
74244         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74245         * m4/getcwd-path-max.m4: New files.
74246
74247         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74248         FILESYSTEM_PREFIX_LEN ->
74249         FILE_SYSTEM_PREFIX_LEN.
74250         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74251         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74252         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74253         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74254
74255         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74256         prerequisite modules now handle the DOS stuff.
74257         Don't check for unistd.h.
74258
74259 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         Merge from coreutils.
74262
74263         * lib/.gdb-history: Remove; this doesn't belong here.
74264
74265         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74266         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74267         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74268         * lib/getcwd.c: New files.
74269
74270         * lib/dirname.h: Include <stdbool.h>.
74271         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74272         for consistency with POSIX terminology.  All uses changed.
74273         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74274         (strip_trailing_slashes): Use bool for booleans.
74275         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74276
74277         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74278         sometimes returns a positive errno value even when it succeeds.
74279         (print_errno_message) [!LIBC]: Fall back on strerror if
74280         __strerror_r fails.
74281
74282         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74283         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74284         (longest_relative_suffix): New function.
74285         (path_concat): Use it.  Assume first argument is not NULL.
74286         Port to DOS.  Omit redundant separators.
74287         Report an error instead of returning NULL.
74288         Use mempcpy instead of memcpy.
74289         (xpath_concat): Remove: not declared or used.
74290
74291         * lib/same.h: Include <stdbool.h>
74292         (same_name): Return bool, not int.
74293         * lib/same.c (same_name): Likewise.
74294         (errno): Don't declare; we assume C89 or better now.
74295
74296         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74297         if not already defined.
74298
74299         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74300         * lib/dup-safer.c (errno): Likewise.
74301
74302 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74303
74304         Merge from coreutils.
74305         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74306         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74307         * modules/path-concat: Don't depend on strdup.
74308
74309 2004-08-03  Simon Josefsson  <jas@extundo.com>
74310
74311         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74312         * lib/progname.h: Don't include stdbool.h.
74313
74314 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74317         * MODULES.html.sh (func_all_modules): Remove fatal.
74318
74319 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74322
74323 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74326         working.
74327
74328 2004-08-02  Simon Josefsson  <jas@extundo.com>
74329
74330         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74331         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74332         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74333
74334 2004-08-01  Simon Josefsson  <jas@extundo.com>
74335
74336         * lib/xgetdomainname.c: Include stdlib.h, for free().
74337
74338 2004-07-19  Bruno Haible  <bruno@clisp.org>
74339
74340         * MODULES.html.sh (func_all_modules): Add dummy.
74341
74342 2004-07-16  Simon Josefsson  <jas@extundo.com>
74343
74344         * modules/dummy: New file.
74345
74346 2004-07-16  Simon Josefsson  <jas@extundo.com>
74347
74348         * lib/dummy.c: New file.
74349
74350 2004-07-16  Bruno Haible  <bruno@clisp.org>
74351
74352         * lib/backupfile.h: Add extern "C" for C++.
74353         * lib/closeout.h: Likewise.
74354         * lib/copy-file.h: Likewise.
74355         * lib/findprog.h: Likewise.
74356         * lib/full-write.h: Likewise.
74357         * lib/pathname.h: Likewise.
74358         * lib/progname.h: Likewise.
74359         * lib/stpcpy.h: Likewise.
74360         * lib/stpncpy.h: Likewise.
74361         * lib/strcase.h: Likewise.
74362         * lib/strstr.h: Likewise.
74363         * lib/xalloc.h: Likewise.
74364
74365         * lib/mbswidth.h: Add extern "C" for C++.
74366         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74367
74368 2004-07-13  Robert Millan  <robertmh@gnu.org>
74369
74370         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74371
74372 2004-07-09  Simon Josefsson  <jas@extundo.com>
74373
74374         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74375         failed without this.)
74376
74377 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * modules/chown (Files): Add lib/fchown-stub.c, since
74380         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74381
74382 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         * lib/fchown-stub.c: New file.
74385
74386 2004-06-24  Jim Meyering  <jim@meyering.net>
74387
74388         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74389
74390 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * modules/argz: Omit "#include".
74393
74394         * MODULES.html.sh (func_all_modules): Add calloc, to match
74395         2004-06-01 addition of calloc module.
74396
74397 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74398
74399         * m4/argz.m4: New file, which is autoupdated from libtool.
74400
74401 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74402
74403         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74404         libtool.
74405
74406 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         * config/srclist-update: Don't insist on "USA." before the
74409         close-comment, as libtool omits the period and puts the */ on a
74410         separate line.
74411         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74412         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74413
74414 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74415
74416         * modules/argz: New file.
74417         * MODULES.html.sh (func_all_modules): Add argz.
74418
74419 2004-06-12  Jim Meyering  <jim@meyering.net>
74420         and  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * modules/hash (Files): Add lib/xalloc.h.
74423         * modules/pipe (Depends-on): Add wait-process.
74424         * modules/stat (Depends-on): Add xalloc.
74425         * modules/userspec (Files): Add lib/userspec.h.
74426         * modules/xstrto
74427
74428         Upgrade from gettext-0.13.
74429         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74430         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74431         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74432
74433 2004-06-10  Jim Meyering  <jim@meyering.net>
74434
74435         * lib/calloc.c: New file.
74436
74437 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74438
74439         * lib/getdate.y (yylex): Allow space between sign and number.
74440         Problem reported by Dan Jacobson.
74441
74442 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74443
74444         Merge from coreutils CVS.
74445
74446         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74447         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74448         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74449         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74450         xstrtol.m4: Fix copyright date and/or serial number.
74451
74452         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74453         See if we need an fchown replacement.
74454         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74455         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74456         and use the replacement function if we detect either defect.
74457
74458         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74459         gl_UTIMECMP.
74460
74461 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74462         and  Jim Meyering  <jim@meyering.net>
74463
74464         Merge from coreutils CVS.
74465
74466         * lib/stat-macros.h: New file, with contents from file-type.h
74467         and coreutils' system.h.
74468         * lib/file-type.c: Include "stat-macros.h".
74469         * lib/file-type.h (file_type): Move all macro definitions to new file,
74470         stat-macros.h.
74471
74472         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74473         Wrap old code with this conditional.
74474         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74475         function that does not dereference symlinks.
74476         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74477
74478         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74479         dependency problems.
74480         (xreadlink): Accept new arg SIZE, for efficiency.
74481         All decls and uses changed.
74482         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74483
74484         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74485         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74486
74487         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74488         sysexits.h.
74489
74490 2004-06-01  Jim Meyering  <jim@meyering.net>
74491
74492         * m4/calloc.m4: New file.
74493
74494 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74497         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74498         Also, fix a typo in a diagnostic.
74499
74500 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74503         or AC_FUNC_REALLOC.
74504
74505 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74506
74507         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74508         macros to be defined.
74509         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74510         the allocator returns NULL because the requested size is zero.
74511
74512 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74515         var.  Add comment explaining why libc still defines it.  This
74516         merges the following patch from glibc:
74517         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74518
74519 2004-05-20  Andreas Schwab  <schwab@suse.de>
74520
74521         * m4/free.m4: Replace free if it not known to work, not the other
74522         way round.
74523
74524 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74527         present in glibc since revision 1.1 of this file.
74528         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74529         obstack_alignment_mask, obstack_alloc, obstack_base,
74530         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74531         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74532         obstack_grow0, obstack_init, obstack_int_grow,
74533         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74534         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74535         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74536         nonexistent functions.
74537
74538 2004-05-18  Karl Berry  <karl@gnu.org>
74539
74540         * config/srclist.txt: break link for vasnprintf.c.
74541
74542 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74543
74544         Port obstack to the AS/400, where pointers are 16 bytes wide and
74545         you cannot cast an integer to a valid pointer.  This patch is
74546         currently waiting to be integrated into glibc; see
74547         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74548
74549         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74550         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74551         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74552         (struct obstack): temp member is now a union of a pointer and
74553         an integer, instead of an integer.  All integer uses changed.
74554         This does not affect the physical layout of struct obstack,
74555         except on hosts (like the AS/400) where the size or alignment of
74556         void * is greater than that of ptrdiff_t.
74557         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74558         __STDC__)]: Store temporary in pointer member of union, not
74559         integer member.
74560         * lib/obstack.c: Include <stddef.h>, for offsetof.
74561         (struct fooalign): Remove; it doesn't need a name.
74562         (union fooround): Change double to long double, and add void *.
74563         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74564         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74565         not a macro.  Hence the values are always int; so remove all
74566         casts-to-int in uses.
74567
74568 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74571         we can get this patch merged into glibc.
74572
74573 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74574             Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * m4/argp: Depend on alloca.
74577
74578 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74579             Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74582         freecoding.
74583
74584 2004-05-17  Bruno Haible  <bruno@clisp.org>
74585
74586         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74587         precision that consists of a '.' followed by an empty digit string.
74588         Patch by Tor Lillqvist <tml@iki.fi>.
74589
74590 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74591
74592         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74593         for backward compatibility with older code.  We need our own
74594         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74595         it under some other name, and our alloca.h will define it.
74596
74597 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74598             Derek Price  <derek@ximbiot.com>
74599
74600         * lib/alloca.c: Include <alloca.h>, to get our interface.
74601         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74602         include <alloca.h> first.  Use C89 prototype for alloca; this
74603         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74604         Use #elif for simplicity, since we can assume C89 now.
74605         Don't try to source the system alloca.h since it will not be found
74606         and to prevent recursively including its replacement.
74607         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74608         * lib/regex.c: Likewise.
74609
74610 2004-05-16  Derek Price  <derek@ximbiot.com>
74611             Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         getline cleanup.  This changes the getndelim2 API: both order of
74614         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74615         no delimiter).
74616
74617         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74618         interface does that.
74619         (getline): Always use getdelim, so that we don't have two
74620         copies of this code.
74621         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74622         if available.
74623         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74624         (GETNDELIM2_MAXIMUM): New macro.
74625         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74626         instead of the old practice of delim2==0.  All callers changed.
74627         Return -1 on overflow, instead of returning junk.
74628         Do not set *linesize unless allocation succeeds.
74629         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74630         that we include sys/types.h.
74631         * lib/getnline.h: Likewise.
74632         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74633         (getndelim2): Reorder arguments.
74634         * lib/getnline.c (getnline, getndelim):
74635         Don't discard the NMAX argument.
74636         (getnline): Invoke getndelim, to avoid code duplication.
74637         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74638         of (size_t) -1 by callers of the getnline family.
74639
74640 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74643         Check for gettimeofday.
74644         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74645         Check for settimeofday, stime.
74646
74647 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74648
74649         * lib/nanosleep.c (suspended): Change its type from int to
74650         sig_atomic_t volatile.
74651         (first_call): Make it private to rpl_nanosleep, and have it
74652         be zero initially as that's a bit faster.
74653         (my_usleep): Round up fractional times instead of truncating them,
74654         as this is the usual meaning for 'sleep'.
74655
74656         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74657         doesn't work.
74658         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74659         (ENOSYS): Define if not defined.
74660         (settime): Fall back on stime if it exists and settimeofday fails.
74661         But don't bother with fallbacks if a method fails with errno == EPERM.
74662
74663 2004-05-11  Jim Meyering  <jim@meyering.net>
74664
74665         Prior to this change, the save_cwd caller required read access to the
74666         current directory on most systems (ones with the fchdir function).
74667
74668         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74669         fails, try write-only, and finally, resort to using xgetcwd.
74670
74671 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * lib/obstack.c, obstack.h: Import changes from libc.
74674
74675 2004-04-28  Bruno Haible  <bruno@clisp.org>
74676
74677         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74678         also implicitly appends .exe to executables.
74679         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74680         accepts Windows pathnames.
74681         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74682         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74683         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74684         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74685         Reported by Derek Robert Price <derek@ximbiot.com>.
74686
74687 2004-04-21  Karl Berry  <karl@gnu.org>
74688
74689         * config/srclist.txt (localcharset.c): break sync.
74690
74691 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74692
74693         * m4/host-os.m4: Add a copyright notice.
74694
74695 2004-04-20  Jim Meyering  <jim@meyering.net>
74696
74697         Change UTILS_ to gl_ in AC_DEFINE'd names.
74698         Change utils_- and jm_-prefixed variables, too.
74699         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74700         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74701         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74702
74703         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74704         Don't emit trailing blanks.
74705         Also rename jm_-prefixed variables to have gl_ prefix.
74706
74707         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74708         Also rename jm_-prefixed variables to have gl_ prefix.
74709
74710         * m4/jm-macros.m4: Reflect the renamings.
74711         * m4/prereq.m4: Likewise.
74712
74713 2004-04-20  Jim Meyering  <jim@meyering.net>
74714
74715         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74716         memory.
74717
74718 2004-04-20  Jim Meyering  <jim@meyering.net>
74719             Bruno Haible  <bruno@clisp.org>
74720
74721         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74722         memory when realloc fails.
74723
74724 2004-04-19  Jim Meyering  <jim@meyering.net>
74725
74726         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74727         now that readutmp.c may call `free (0)'.
74728
74729 2004-04-19  Bruno Haible  <bruno@clisp.org>
74730
74731         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74732         * m4/inttypes_h.m4: Likewise.
74733         * m4/stdint_h.m4: Likewise.
74734         * m4/intmax_t.m4: Likewise.
74735         * m4/uintmax_t.m4: Likewise.
74736
74737 2004-04-18  Jim Meyering  <jim@meyering.net>
74738
74739         * m4/prereq.m4: Don't forbid jm_ prefix.
74740
74741         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74742         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74743         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74744         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74745         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74746         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74747         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74748         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74749         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74750         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74751         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74752         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74753         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74754         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74755         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74756         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74757         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74758         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74759         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74760
74761 2004-04-18  Jim Meyering  <jim@meyering.net>
74762
74763         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74764         failure, don't leak memory and do call END_UTMP_ENT.
74765
74766 2004-04-16  Jim Meyering  <jim@meyering.net>
74767
74768         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74769         coreutils' stat program.
74770         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74771
74772 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74773
74774         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74775         C89.
74776         (CHAR_BIT): Remove, since we assume C89.
74777         Include <stdint.h> if available, as per current Autoconf CVS advice.
74778
74779 2004-03-31  Jim Meyering  <jim@meyering.net>
74780
74781         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74782         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74783         * m4/xalloc.m4: Likewise.
74784
74785 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74786
74787         Merge from coreutils.
74788
74789         * m4/inttostr.m4: New file.
74790         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74791         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74792         Require gl_CLOCK_TIME.
74793         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74794
74795 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74796
74797         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74798         not bool, to be more consistent with Unix conventions.
74799         Suggested by Bruno Haible.
74800
74801         Merge from coreutils.
74802
74803         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74804         * lib/umaxtostr.c: New files.
74805
74806         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74807         the usual <time.h> dance.
74808         (get_date): Change signature to support fractional time stamps.
74809         All callers changed.
74810         * lib/getdate.y: Include "getdate.h" first, as we can now
74811         assume C89 and don't need to worry about 'const'.
74812         Similarly, include "unlocked-io.h" near start, not in middle.
74813         Include <limits.h>.
74814         (textint.value): Use long int rather than int.
74815         (textint.digits): Use size_t rather than int.
74816         (BILLION, LOG10_BILLION): New constants.
74817         (parser_control): New member rel_ns.  Members day_ordinal,
74818         time_zone, month, day, hour, minutes, rel_year, rel_month,
74819         rel_day, rel_hour, rel_minutes, rel_seconds
74820         are now long int, not int.  Member seconds is now struct timespec,
74821         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74822         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74823         not int.
74824         (%union.intval): Now long int, not int.
74825         New member timespec.
74826         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74827         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74828         (spec): Now is a timespec or an item list.
74829         (timespec, items): New nonterminals.
74830         (time, rel, relunit, number, get_date):
74831         Add support for fractional seconds.
74832         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74833         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74834         (to_hour): First arg is now long int, not int.
74835         (to_year): Returns long int, not int.
74836         Don't treat year -70 like 70.
74837         (tm_diff): Returns long int, not int.
74838         (lookup_word): Use bool instead of int when appropriate.
74839         (yylex): Use size_t for count, not int.
74840         Detect overflow when parsing large integer constants.
74841         Add support for fractions.
74842         (get_date): Make pointers 'const' if possible.
74843         Use more-portable code to detect integer overflow.
74844         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74845         Don't use ctime; it's not reliable if the year has >4 digits.
74846
74847         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74848         This is for compatibility with BSD.
74849
74850         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74851         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74852         From coreutils' system.h.
74853
74854         * lib/userspec.c: Don't include "posixver.h".
74855         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74856         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74857         compatible extension.  Simplify code by removing a boolean int
74858         that was always nonzero if a string was nonnull.
74859
74860 2004-03-30  Jim Meyering  <jim@meyering.net>
74861
74862         Merge from coreutils.
74863
74864         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74865         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74866         on some systems one must include <grp.h> before it.
74867         Reported by Christian Krackowizer.
74868
74869 2004-03-30  Jim Meyering  <jim@meyering.net>
74870
74871         Merge from coreutils.
74872
74873         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74874
74875         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74876         an empty input stream.
74877
74878         * lib/readtokens.c: Include <stdbool.h>.
74879         (readtoken): Use `size_t' rather than int/long.
74880         All callers adjusted.
74881         Use `bool' rather than `int' where appropriate.
74882         Use memset rather than an explicit loop.
74883         Use x2nrealloc rather than xrealloc.
74884         Allow the use of `\0' as a delimiter.
74885         (readtokens): Likewise.
74886         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74887
74888 2004-03-30  Jim Meyering  <jim@meyering.net>
74889
74890         * m4/realloc.m4: Remove file, since now it does no more than
74891         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74892         the `configure.ac' section of module/realloc.
74893         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74894
74895 2004-03-30  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74898         nonnull.
74899
74900 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74901
74902         Merge changes to getloadavg.c from coreutils and Emacs.
74903
74904         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74905         Define to an expression, not to the empty string.
74906         Include cloexec.h and xalloc.h.
74907         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74908         Use set_cloexec_flag rather than rolling our own.
74909         * lib/cloexec.c, lib/cloexec.h: New files.
74910
74911 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74912
74913         * m4/cloexec.m4: New file.
74914
74915 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74916
74917         * lib/getopt.h: Sync with libc CVS.
74918
74919 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74920             Bruno Haible  <bruno@clisp.org>
74921
74922         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74923         mbswidth.
74924
74925 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74926             Bruno Haible  <bruno@clisp.org>
74927
74928         * lib/mbswidth.h: Include <wchar.h> only if
74929         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74930         <wchar.h>.
74931         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74932
74933 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74934
74935         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74936         Sync with libc CVS.
74937         * lib/getopt_int.h: New file, also synced from libc.
74938
74939 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74940
74941         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74942         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74943         Bring back getopt.c, getopt.h, getopt1.c.
74944
74945 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74946
74947         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74948         All uses changed.  Check for sa_sigaction member; this fixes
74949         a bug first reported by Jason Andrade in
74950         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74951
74952 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74953
74954         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74955         '#if' expressions.  Unlike the code it replaces, it does not
74956         depend on (defined _SC_PAGESIZE).  However, it does depend on
74957         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74958         first reported by Jason Andrade in
74959         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74960
74961 2004-02-25  Simon Josefsson  <jas@extundo.com>
74962
74963         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74964
74965 2004-02-25  Simon Josefsson  <jas@extundo.com>
74966
74967         * lib/strdup.h: New file.
74968         * lib/strdup.c: Include it.
74969         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74970         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74971
74972 2004-02-23  Karl Berry  <karl@gnu.org>
74973
74974         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74975         (from fencepost.gnu.org:/gd/gnuorg).
74976
74977 2004-02-23  Karl Berry  <karl@gnu.org>
74978
74979         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74980         * config/srclist.txt: add maintain/standards documents.
74981
74982 2004-02-18  Bruno Haible  <bruno@clisp.org>
74983
74984         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74985         Reported by Derek Robert Price <derek@ximbiot.com>.
74986
74987 2004-02-16  Karl Berry  <karl@gnu.org>
74988
74989         * config/mkinstalldirs, install-sh: update from automake.
74990
74991 2004-02-06  Karl Berry  <karl@gnu.org>
74992
74993         * m4/po.m4: update from gettext 0.14.1.
74994
74995 2004-02-06  Karl Berry  <karl@gnu.org>
74996
74997         * lib/config.charset: update from gettext 0.14.1.
74998
74999 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75000
75001         Add comments and code, prompted by suggestions from Bruno Haible
75002         for sh-quote.
75003         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75004         describing the enum quoting_style values.
75005         * lib/quotearg.c (quotearg_alloc): New function.
75006         (quotearg_buffer_restyled): Treat lone { and } as special.
75007         Treat = as special.  Work around bug with older shells
75008         that "see" a '\' that is really the 2nd byte of a multibyte char.
75009         Quote empty string with shell_quoting_style.
75010
75011 2004-02-03  Bruno Haible  <bruno@clisp.org>
75012
75013         * m4/pipe.m4: New file, from GNU gettext.
75014
75015 2004-02-03  Bruno Haible  <bruno@clisp.org>
75016
75017         * lib/pipe.h: New file, from GNU gettext.
75018         * lib/pipe.c: New file, from GNU gettext.
75019
75020 2004-01-27  Bruno Haible  <bruno@clisp.org>
75021
75022         * m4/execute.m4: New file, from GNU gettext.
75023
75024 2004-01-27  Bruno Haible  <bruno@clisp.org>
75025
75026         * lib/execute.h: New file, from GNU gettext.
75027         * lib/execute.c: New file, from GNU gettext.
75028         * lib/w32spawn.h: New file, from GNU gettext.
75029
75030 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75031
75032         Merge from diffutils.
75033
75034         * lib/file-type.c (file_type): Add typed memory objects.
75035         * lib/file-type.h (S_TYPEISTMO): New macro.
75036
75037         * lib/c-stack.h (c_stack_action): Remove argv argument.
75038         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75039         (die): Don't calculate message unless segv_action returns.
75040         (get_stack_location, min_address_from_argv, max_address_from_argv,
75041         volatile stack_base, volatile_stack_size): Remove.
75042         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75043         that every segmentation violation is a stack overflow.  (Ouch!)
75044         See Debian bug 136249 (still outstanding) for more info about why
75045         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75046
75047 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75048
75049         Exit-status fix from coreutils.
75050
75051         Use exit_failure consistently in place of EXIT_FAILURE,
75052         so that program exit statuses are consistent on failure.
75053
75054         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75055         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75056         * lib/argmatch.h: Comment fix to match the above.
75057         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75058         Now a macro referring to exit_failure, instead of a separate
75059         variable.  Include "exitfail.h" to get it.
75060         * lib/xstrtol.h: Include "exitfail.h".
75061         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75062
75063         * lib/long-options.c (parse_long_options): Use prototype
75064         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75065         for clarity.
75066
75067 2004-01-21  Jim Meyering  <jim@meyering.net>
75068
75069         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75070         so as not to conflict with a different-sized __mktime_internal
75071         function in GNU libc.
75072         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75073         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75074
75075 2004-01-20  Karl Berry  <karl@gnu.org>
75076
75077         * config/config.guess: update from config.
75078
75079         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75080
75081 2004-01-20  Bruno Haible  <bruno@clisp.org>
75082
75083         Safer stack allocation.
75084         * lib/setenv.c: Include allocsa.h.
75085         (alloca): Remove fallback definition.
75086         (freea): Remove macro.
75087         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75088         instead of freea.
75089
75090 2004-01-20  Bruno Haible  <bruno@clisp.org>
75091
75092         * m4/eealloc.m4: New file, from GNU gettext.
75093
75094 2004-01-20  Bruno Haible  <bruno@clisp.org>
75095
75096         * m4/allocsa.m4: New file, from GNU gettext.
75097
75098 2004-01-20  Bruno Haible  <bruno@clisp.org>
75099
75100         * lib/xallocsa.h: New file, from GNU gettext.
75101         * lib/xallocsa.c: New file, from GNU gettext.
75102
75103 2004-01-20  Bruno Haible  <bruno@clisp.org>
75104
75105         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75106
75107 2004-01-20  Bruno Haible  <bruno@clisp.org>
75108
75109         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75110         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75111         specially.
75112
75113 2004-01-20  Bruno Haible  <bruno@clisp.org>
75114
75115         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75116         patch.
75117
75118 2004-01-20  Bruno Haible  <bruno@clisp.org>
75119
75120         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75121
75122 2004-01-20  Bruno Haible  <bruno@clisp.org>
75123
75124         * lib/eealloc.h: New file.
75125
75126 2004-01-20  Bruno Haible  <bruno@clisp.org>
75127
75128         * lib/binary-io.h: Avoid warnings on Cygwin.
75129
75130 2004-01-20  Bruno Haible  <bruno@clisp.org>
75131
75132         * lib/allocsa.h: New file, from GNU gettext.
75133         * lib/allocsa.c: New file, from GNU gettext.
75134
75135 2004-01-18  Karl Berry  <karl@gnu.org>
75136
75137         * doc/gpl.texi, doc/lgpl.texi: new files.
75138
75139 2004-01-18  Karl Berry  <karl@gnu.org>
75140
75141         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75142         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75143
75144 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75145
75146         Merge from coreutils.
75147
75148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75149         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75150         (gl_DEFAULT_POSIX2_VERSION): Move
75151         the documentation from 'configure' into 'config.hin',
75152         so that 'configure --help' isn't burdened by it and
75153         we don't have to worry about its formatting there.
75154         Reword the documentation so that it's more succinct
75155         and can be run together into a single paragraph.
75156         * m4/same.m4 (gl_SAME): Check for pathconf.
75157
75158 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75159
75160         Merge from coreutils.
75161
75162         * lib/posixver.c: Include posixver.h.
75163
75164         * lib/same.c: Include <stdbool.h>, <limits.h>.
75165         (_POSIX_NAME_MAX): Define if not defined.
75166         (MIN): New macro.
75167         (same_name): If file names are silently truncated, report
75168         that the file names are the same if they are the same after
75169         the silent truncation.
75170
75171         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75172         conversion function.
75173         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75174         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75175         longer needed.
75176
75177 2004-01-15  Jim Meyering  <jim@meyering.net>
75178
75179         Merge from coreutils.
75180
75181         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75182         if no library is required.
75183         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75184         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75185         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75186         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75187         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75188         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75189         value, $ac_cv_search_crypt, if it's "none required".
75190         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75191         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75192         not gl_FUNC_GETLOADAVG.
75193         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75194         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75195
75196 2004-01-15  Jim Meyering  <jim@meyering.net>
75197
75198         Merge from coreutils.
75199
75200         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75201         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75202         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75203
75204         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75205         optional configure-time default.
75206
75207         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75208
75209         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75210
75211 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75212
75213         Merge from coreutils.
75214
75215         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75216         value, $ac_cv_search_nanosleep, if it's "none required".
75217
75218 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75219
75220         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75221         with like-named macro in fnmatch.c.
75222         (EXT): Use an internal constant instead.
75223
75224         Merge fnmatch patches from glibc.
75225         * lib/fnmatch.c (mbsinit): Remove define.
75226         Add libc_hidden_ver (__fnmatch, fnmatch).
75227         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75228         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75229
75230 2004-01-14  Karl Berry  <karl@gnu.org>
75231
75232         * config/install-sh: update from automake.
75233
75234 2004-01-13  Karl Berry  <karl@gnu.org>
75235
75236         * config/install-sh: update from automake.
75237
75238 2004-01-09  Karl Berry  <karl@gnu.org>
75239
75240         * config/install-sh: update from automake.
75241
75242 2004-01-05  Karl Berry  <karl@gnu.org>
75243
75244         * config/config.{sub,guess}: update from config.
75245
75246 2003-12-31  Karl Berry  <karl@gnu.org>
75247
75248         * config/depcomp: update from automake.
75249
75250 2003-12-14  Karl Berry  <karl@gnu.org>
75251
75252         * lib/config.charset: update from gettext-runtime.
75253
75254 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75255
75256         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75257         Bug reported by Alfred M. Szmidt.
75258
75259 2003-12-03  Bruno Haible  <bruno@clisp.org>
75260
75261         * m4/gettext.m4: Upgrade from gettext-0.13.
75262         * m4/po.m4: Upgrade from gettext-0.13.
75263         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75264         * m4/intmax.m4: New file, from gettext-0.13.
75265         * m4/printf-posix.m4: New file, from gettext-0.13.
75266
75267 2003-11-29  Karl Berry  <karl@gnu.org>
75268
75269         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75270
75271 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75272             Bruno Haible  <bruno@clisp.org>
75273
75274         * lib/printf-parse.h: Don't include sys/types.h.
75275         (ARG_NONE): New macro.
75276         (char_directive): Change type of *arg_index fields to size_t.
75277         * lib/printf-parse.c: Don't include sys/types.h.
75278         (SSIZE_MAX): Remove macro.
75279         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75280         Remove unnecessary overflow check.
75281         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75282         fields.
75283
75284 2003-11-25  Bruno Haible  <bruno@clisp.org>
75285
75286         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75287
75288 2003-11-25  Bruno Haible  <bruno@clisp.org>
75289
75290         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75291         gt_TYPE_SSIZE_T.
75292
75293 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75294
75295         * modules/alloca: Remove dependency on xalloc.
75296
75297 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75298
75299         * lib/alloca.c: Remove dependency on xalloc module.
75300         (xalloc_die): Remove.
75301         (memory_full) [!defined emacs]: New macro.
75302         [!defined emacs]: Don't include xalloc.h.
75303         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75304         address arithmetic overflows.  Change datatypes a bit to avoid
75305         unnecessary casts.
75306
75307 2003-11-22  Jim Meyering  <jim@meyering.net>
75308
75309         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75310         s/size/size_t/.
75311
75312 2003-11-21  Karl Berry  <karl@gnu.org>
75313
75314         * config/config.{sub,guess}: update from config.
75315
75316 2003-11-18  Karl Berry  <karl@gnu.org>
75317
75318         * config/config.{sub,guess}: update from config.
75319
75320         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75321
75322 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75323
75324         * README: Mention that S+T cannot overflow if S is the size of
75325         an existing object and T is sufficiently small.
75326
75327 2003-11-17  Jim Meyering  <jim@meyering.net>
75328
75329         On systems without utime and without a utimes function capable of
75330         dealing with a NULL struct utimbuf* argument, this utime replacement
75331         could -- in unusual circumstances -- leak a file descriptor.
75332         * lib/utime.c: Include <unistd.h> and <errno.h>.
75333         (utime_null): Be sure to close `fd' and to preserve errno.
75334         Reported by Geoff Collyer via Arnold Robbins.
75335
75336 2003-11-17  Bruno Haible  <bruno@clisp.org>
75337
75338         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75339         (Depends-on): Add xsize.
75340
75341 2003-11-17  Bruno Haible  <bruno@clisp.org>
75342
75343         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75344
75345 2003-11-17  Bruno Haible  <bruno@clisp.org>
75346
75347         * lib/vasnprintf.c (alloca): Remove fallback definition.
75348         (freea): Remove definition.
75349         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75350         Reported by Paul Eggert.
75351
75352 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75353             Bruno Haible  <bruno@clisp.org>
75354
75355         Protect against address arithmetic overflow.
75356         * lib/printf-args.h: Include stddef.h.
75357         (arguments): Change type of field 'count' to size_t.
75358         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75359         'unsigned int' where appropriate.
75360         * lib/printf-parse.h: Include sys/types.h.
75361         (char_directive): Change type of *arg_index fields to ssize_t.
75362         (char_directives): Change type of fields 'count', max_*_length to
75363         size_t.
75364         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75365         (SSIZE_MAX): Define fallback value.
75366         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75367         instead of 'int' where appropriate. Check a_allocated, d_allocated
75368         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75369         * lib/vasnprintf.c: Include xsize.h.
75370         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75371         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75372         overflow. Avoid wraparound when converting a width or precision from
75373         decimal to binary.
75374
75375 2003-11-16  Bruno Haible  <bruno@clisp.org>
75376
75377         Update from GNU gettext.
75378         * lib/printf-parse.c: Generalize to it can be compiled for wide
75379         strings.
75380         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75381         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75382         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75383         SNPRINTF): New macros.
75384         Don't include <alloca.h> if the file is used inside libintl.
75385         (local_wcslen): New function, for Solaris 2.5.1.
75386         (VASNPRINTF): Use it instead of wcslen.
75387
75388 2003-11-16  Bruno Haible  <bruno@clisp.org>
75389
75390         * lib/xsize.h (xmax): New function.
75391         (xsum, xsum3, xsum4): Declare as "pure" functions.
75392
75393 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75394
75395         * modules/xalloc (Files): Undo latest change, since xalloc.h
75396         no longer needs SIZE_MAX or PTRDIFF_MAX.
75397
75398 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75399
75400         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75401         gl_PTRDIFF_MAX.
75402
75403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75404
75405         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75406         "return", to pacify some unknown compiler.  Problem reported
75407         by Joerg Schilling.
75408
75409 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75410
75411         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75412         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75413         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75414         heuristic is just as accurate as far as we know, and it removes a
75415         dependency on size_max.m4 and ptrdiff_max.m4.
75416
75417 2003-11-11  Bruno Haible  <bruno@clisp.org>
75418
75419         * modules/xsize (Files): Add m4/size_max.m4.
75420         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75421
75422 2003-11-11  Bruno Haible  <bruno@clisp.org>
75423
75424         * m4/size_max.m4: New file.
75425         * m4/ptrdiff_max.m4: New file.
75426         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75427         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75428         (gl_XALLOC): Invoke it.
75429
75430 2003-11-11  Bruno Haible  <bruno@clisp.org>
75431
75432         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75433         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75434         defined.
75435
75436 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75437
75438         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75439         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75440         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75441         From Bruno Haible.
75442         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75443         not (size_t) -1, since it's defined here.
75444
75445 2003-11-09  Karl Berry  <karl@gnu.org>
75446
75447         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75448
75449 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75450
75451         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75452         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75453         Reject sizes of exactly SIZE_MAX bytes.
75454         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75455         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75456
75457 2003-11-05  Bruno Haible  <bruno@clisp.org>
75458
75459         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75460         SIZE_MAX defined in <limits.h> on Solaris.
75461
75462 2003-11-04  Jim Meyering  <jim@meyering.net>
75463
75464         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75465         variable names, rather than @VAR@.
75466         * modules/poll: Likewise.
75467
75468 2003-11-04  Bruno Haible  <bruno@clisp.org>
75469
75470         * modules/xsize: New file.
75471         * modules/linebreak: Depend on xsize.
75472         * MODULES.html.sh (func_all_modules): Add xsize.
75473
75474 2003-11-04  Bruno Haible  <bruno@clisp.org>
75475
75476         * m4/xsize.m4: New file.
75477
75478 2003-11-04  Bruno Haible  <bruno@clisp.org>
75479
75480         * lib/xsize.h: New file.
75481         * lib/linebreak.c: Include xsize.h.
75482         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75483         argument for overflow.
75484         Suggested by Paul Eggert.
75485
75486 2003-11-03  Karl Berry  <karl@gnu.org>
75487
75488         * config/config.{guess,sub}: update from config.
75489
75490 2003-11-03  Jim Meyering  <jim@meyering.net>
75491
75492         * modules/userspec (lib_SOURCES): Add userspec.h.
75493         (Include): Add "userspec.h".
75494         Improve description.
75495
75496 2003-11-03  Jim Meyering  <jim@meyering.net>
75497
75498         * lib/userspec.c: Include "userspec.h".
75499         * lib/userspec.h: New file.
75500
75501 2003-11-03  Bruno Haible  <bruno@clisp.org>
75502
75503         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75504
75505 2003-11-03  Bruno Haible  <bruno@clisp.org>
75506
75507         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75508         available, to avoid (extremely rare) race condition.
75509         Suggested by Paul Eggert.
75510
75511 2003-11-02  Karl Berry  <karl@gnu.org>
75512
75513         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75514
75515 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75516
75517         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75518         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75519         (read_filesystem_list): Set and use me_type_malloced.
75520         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75521         whatever the type happens to be), for brevity and consistency.
75522         Check for size calculation overflow on Alphas running OSF/1.
75523
75524 2003-10-31  Jim Meyering  <jim@meyering.net>
75525
75526         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75527
75528         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75529
75530 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75531             Bruno Haible  <bruno@clisp.org>
75532
75533         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75534         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75535
75536 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75539         netbsd*-gnu*.  Suggested by Robert Millan.
75540
75541 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75542
75543         * modules/group-member: Depend on stdbool.
75544
75545 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75546
75547         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75548
75549 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75550
75551         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75552         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75553         after the 'gnu' in these cases.  This fixes some bugs in the
75554         previous change, and is based on suggestions by Robert Millan.
75555
75556 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75557
75558         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75559         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75560         no longer needed.
75561         * lib/quotearg.c (quotearg_n_options): Use it.
75562         * lib/group-member.c: Include <stdbool.h>.
75563         (free_group_info): Arg is now const *; don't free arg.
75564         (get_group_info): Now returns bool and accepts struct group_info *,
75565         rather than returning a malloc'ed struct group_info *.
75566         All uses changed.  Check for overflow in internal size calculation.
75567
75568         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75569         rather than xmalloc/xrealloc.
75570         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75571         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75572         conformance bug: the old code used a pointer after freeing the
75573         storage that it addressed.
75574         * lib/hash.c (hash_initialize): Simplify the code by using
75575         xalloc_oversized rather than doing it by hand.
75576         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75577         the buffer preserved.  Use free and xmalloc instead.
75578         * lib/quotearg.c (quotearg_n_options): Likewise.
75579         Use a simpler test for size overflow.  Don't use xalloc_oversized
75580         because unsigned int might be wider than size_t (!); this suggests
75581         that we should switch from unsigned int to size_t for slot numbers.
75582
75583 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75584
75585         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75586         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75587         NetBSD kernels.  Requested by Richard Stallman.
75588
75589 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75590
75591         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75592         to allocate the returned structure.  Do not allocate a subarray,
75593         as x2nrealloc will do that.
75594         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75595         instead of xnrealloc.
75596         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75597
75598 2003-10-27  Bruno Haible  <bruno@clisp.org>
75599
75600         * lib/stdbool_.h: Better support for BeOS.
75601
75602 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75603
75604         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75605         now uses inline.
75606
75607 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75608
75609         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75610         callers that want to do their own size-overflow checking.  Include
75611         <stdbool.h>, since xalloc_oversized returns bool.
75612         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75613         to use xalloc_oversized.
75614
75615         Add two functions x2realloc, x2nrealloc, for programs that grow
75616         arrays dynamically by doubling their sizes.
75617         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75618         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75619         New functions.
75620
75621         Port to C99 semantics for 'inline' of external functions.
75622         Bug reported by Bruno Haible.
75623         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75624         with the old contents of xnmalloc.
75625         (xnmalloc, xmalloc): Use it.
75626         (xnrealloc_inline): New static inline function,
75627         with the old contents of xnrealloc.
75628         (xnrealloc, xrealloc): Use it.
75629
75630         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75631         that.
75632
75633 2003-10-26  Karl Berry  <karl@gnu.org>
75634
75635         * config/srclist.txt (COPYING.DOC): no longer available from
75636         /gd/gnuorg; don't know where the ultimate source is.
75637
75638 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75639
75640         Fix several address-calculation bugs in the hash modules,
75641         plus some minor code cleanup.
75642
75643         * lib/hash.h: Include <stdbool.h>, for bool.
75644         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75645         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75646         hash_get_n_entries, hash_get_max_bucket_length,
75647         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75648         hash_rehash): Use size_t rather than unsigned.
75649         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75650         hash_get_n_buckets_used, hash_get_n_entries,
75651         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75652         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75653         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75654         Likewise.
75655         (SIZE_MAX): Define if not defined.
75656         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75657         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75658         hash_print):
75659         Use const * when possible.
75660         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75661         (check_tuning): Fix bug: if tuning parameters were very close to
75662         0 or 1, rounding errors could have caused subscript violations.
75663         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75664         (hash_initialize): Add 'fail:' label
75665         to free table and return NULL, and use it to simplify code.
75666         Use calloc rather than clearing the storage ourself.
75667         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75668         buffer size calculations.
75669         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75670         Include <stddef.h>, for size_t.
75671         * lib/hash-pjw.c (hash_pjw): Likewise.
75672         Switch to method described by Bruno Haible.
75673         Include <limits.h>, for CHAR_BIT.
75674         (SIZE_BITS): New macro.
75675
75676 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75677
75678         * m4/getline.m4 (AM_FUNC_GETLINE):
75679         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75680         hosts.  Problem reported by Derek Robert Price in
75681         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75682         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75683         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75684
75685 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75686
75687         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75688         ceiling the allocation at NMAX bytes rather than silently
75689         discarding input bytes before NMAX is reached.  This makes
75690         a difference only if NMAX exceeds SIZE_MAX / 2.
75691
75692         * lib/obstack.c: Merge from glibc.
75693         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75694         Add libc_hidden_def (_obstack_newchunk).
75695         (_obstack_free) [! defined _LIBC]: Remove.
75696         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75697         a clone of the function body.
75698         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75699         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75700
75701         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75702         glibc.
75703         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75704         arg to memcpy.
75705
75706         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75707         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75708         Don't use lvalue casts, as GCC plans to remove support for them
75709         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75710         was also present in the non-GCC version, indicating that this
75711         code had always been buggy and had never been widely used.
75712         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75713         Use the fast variant of each macro, rather than copying the
75714         definiens of the fast variant; that way, we'll be more likely to
75715         catch future bugs in the fast variants.
75716
75717 2003-10-20  Bruno Haible  <bruno@clisp.org>
75718
75719         * modules/wait-process: New file.
75720         * MODULES.html.sh (func_all_modules): Add wait-process.
75721
75722 2003-10-20  Bruno Haible  <bruno@clisp.org>
75723
75724         * m4/wait-process.m4: New file.
75725
75726 2003-10-20  Bruno Haible  <bruno@clisp.org>
75727
75728         * lib/wait-process.h: New file, from GNU gettext.
75729         * lib/wait-process.c: New file, from GNU gettext.
75730
75731 2003-10-19  Jim Meyering  <jim@meyering.net>
75732
75733         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75734         HPUX 10.20.
75735
75736 2003-10-18  Karl Berry  <karl@gnu.org>
75737
75738         * config/config.guess: update from config.
75739
75740 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75741
75742         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75743         (getgroups): First arg is int, not size_t.
75744         Don't let 'free' mangle errno.
75745
75746 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75747
75748         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75749
75750 2003-10-16  Karl Berry  <karl@gnu.org>
75751
75752         * config/config.{guess,sub}: update from config.
75753
75754 2003-10-16  Jim Meyering  <jim@meyering.net>
75755
75756         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75757         memcpy.
75758
75759 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75760
75761         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75762         (SIZE_MAX): Remove.
75763         (new_exclude, add_exclude_file): Initial size no longer needs to
75764         be a power of 2.
75765         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75766         our own address arithmetic overflow checking.
75767
75768         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75769         (fnmatch): Do not alloca more than 2000 wide characters;
75770         instead, use malloc for large buffers.
75771         Check for address arithmetic overflow, and return -1
75772         with errno set to ENOMEM in that case.
75773         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75774         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75775         instead, return -1.  Check for address arithmetic overflow.
75776
75777 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75778
75779         Handle invalid suffixes and overflow independently, so that
75780         callers can treat them independently as needed.  Fix some bugs in
75781         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75782         suffix for a human-readable blocksize.  The major caller-visible
75783         change is the addition of a new
75784         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75785         that both overflow and suffix chars were found.
75786
75787         * lib/human.c (humblock): Don't check separately for invalid suffix
75788         char; that is xstrtoumax's job (now that its bug is fixed).
75789         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75790         INTMAX_MAX]: New macros.
75791         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75792         TYPE_MAXIMUM): New macros.
75793         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75794         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75795         if overflow occurs, as it's what __strtol does and it's more useful
75796         in practice.
75797         (__xstrtol): If __strtol reports some error other than ERANGE,
75798         reflect it to the caller as LONGINT_INVALID.  If it reports
75799         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75800         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75801         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75802         value.
75803         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75804         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75805         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75806         [defined UINTMAX_MAX]: New macros.
75807
75808 2003-10-14  Bruno Haible  <bruno@clisp.org>
75809
75810         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75811
75812 2003-10-14  Bruno Haible  <bruno@clisp.org>
75813
75814         * m4/sig_atomic_t: New file, from GNU gettext.
75815         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75816
75817 2003-10-14  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75820         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75821         Also use volatile where needed.
75822
75823 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75824
75825         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75826         Change maintainer from Bruno Haible to 'all'.
75827
75828 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75829
75830         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75831
75832 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75833
75834         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75835         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75836         and define in terms of the other primitives.
75837         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75838         (SIZE_MAX): Define if not already defined.
75839         (array_size_overflow): New function.
75840         (xalloc_die): Abort instead of exiting if 'error' returns.
75841         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75842         (xmalloc, xrealloc): Use them.
75843         (xcalloc): Check for address arithmetic overflow.
75844         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75845         a bit faster than strcpy.
75846
75847 2003-10-10  Simon Josefsson  <jas@extundo.com>
75848
75849         * modules/argp (Depends-on): Add restrict and strcase.
75850
75851 2003-10-10  Simon Josefsson  <jas@extundo.com>
75852
75853         * m4/argp.m4: Add AC_C_INLINE.
75854
75855 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75856
75857         Merge getpass from libc, plus a few fixes.
75858
75859         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75860         Include <stdbool.h>.
75861         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75862         __fsetlocking to empty.
75863         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75864         do include <bits/libc-lock.h>.
75865         Do not include <fcntl.h>; not needed.
75866         [_LIBC]: Include <wchar.h>.
75867         (NOTCANCEL_MODE): New macro.
75868         (flockfile, funlockfile) [_LIBC]: New macros.
75869         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75870         [!_LIBC]: New macros.
75871         (call_fclose): New function.
75872         (getpass): Use it.  Save tty stream separately; this simplifies the
75873         code and makes it more reliable if stdin happens to equal stdout.
75874         Invoke __fsetlocking on tty.
75875         Handle thread cancellation if needed.
75876         Namespace cleanup (use __tcgetattr, __getline).
75877         Use bool for Booleans.
75878         [USE_IN_LIBIO]: Handle wide streams.
75879         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75880         stream might go where.
75881
75882         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75883         doesn't have to include <stdio.h> before us.
75884         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75885         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75886         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75887         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75888         if not declared, so that we can use getpass.c code from libc without
75889         rewriting it.
75890         (flockfile, ftrylockfile, funlockfile): New macros.
75891
75892 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75893
75894         * modules/getpass: Depend on stdbool.
75895
75896 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75897
75898         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75899
75900 2003-10-07  Karl Berry  <karl@gnu.org>
75901
75902         * config/config.{guess,sub}: update from config.
75903
75904 2003-10-06  Jim Meyering  <jim@meyering.net>
75905             Bruno Haible  <bruno@clisp.org>
75906
75907         This lets translators provide better translations for the
75908         "Written by ..." part of --version output.
75909         * lib/version-etc.h: Include stdarg.h.
75910         (version_etc_copyright): Declare as readonly.
75911         (version_etc): Make this function variadic with a NULL-terminated list
75912         of author name strings.
75913         (version_etc_va): New declaration.
75914         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75915         (version_etc_copyright): Declare as readonly.
75916         (version_etc_va): New function. Provide a different translatable string
75917         for each possible number of authors < 10. Abbreviate when there are 10
75918         authors or more.
75919         (version_etc): Make this function variadic. Call version_etc_va.
75920         Suggestion from Gary V. Vaughan.
75921
75922         * lib/long-options.h (parse_long_options): Change prototype: the
75923         authors string is moved to the end and becomes variadic.
75924         * lib/long-options.c: Include stdarg.h.
75925         (parse_long_options): Make this function variadic, too.
75926         Call version_etc_va, not version_etc.
75927
75928 2003-10-06  Bruno Haible  <bruno@clisp.org>
75929
75930         * modules/version-etc-2: Remove file.
75931         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75932
75933 2003-10-06  Bruno Haible  <bruno@clisp.org>
75934
75935         * modules/fatal-signal: New file.
75936         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75937
75938 2003-10-06  Bruno Haible  <bruno@clisp.org>
75939
75940         * m4/fatal-signal.m4: New file.
75941         * m4/signalblocking.m4: New file, from GNU gettext.
75942
75943 2003-10-06  Bruno Haible  <bruno@clisp.org>
75944
75945         * lib/version-etc-2.h: Remove file.
75946         * lib/version-etc-2.c: Remove file.
75947
75948 2003-10-06  Bruno Haible  <bruno@clisp.org>
75949
75950         * lib/fatal-signal.h: New file, from GNU gettext.
75951         * lib/fatal-signal.c: New file, from GNU gettext.
75952
75953 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75954
75955         * README: Rework advice for preventing empty .o files.
75956         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75957         not <sys/types.h>.
75958
75959 2003-10-04  Karl Berry  <karl@gnu.org>
75960
75961         * lib/argp*: update from libc.
75962
75963 2003-10-04  Karl Berry  <karl@gnu.org>
75964
75965         * config/config.{guess,sub}: update from config.
75966
75967 2003-10-02  Bruno Haible  <bruno@clisp.org>
75968
75969         * modules/lchown (Include): Add lchown.h.
75970         * modules/time_r (Include): Use "..." syntax.
75971         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75972
75973 2003-10-01  Simon Josefsson  <jas@extundo.com>
75974
75975         * MODULES.html.sh (func_all_modules): Move gethostname from section
75976         'based on' to section 'lacking' POSIX:2001.
75977
75978 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75979
75980         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75981         to output mode on the same stream.
75982
75983 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75984
75985         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75986         Fix arg typo in previous patch.
75987
75988 2003-09-28  Jim Meyering  <jim@meyering.net>
75989
75990         * lib/error.c: Correct cpp indentation.
75991
75992 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75993
75994         * modules/free: New file.
75995
75996 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75997
75998         * m4/free.m4: New file.
75999
76000 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76001
76002         * lib/minmax.h (MIN, MAX)
76003         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76004         Omit the special code that used __typeof__, since we worry that
76005         it could be more trouble than it's worth.  See:
76006         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76007         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76008
76009         * lib/free.c: New file.
76010
76011 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76012
76013         Trivial fixes to Makefile.am parts of module listings.
76014         * modules/strstr: Append strstr.h to lib_SOURCES.
76015         * modules/strcase: Likewise, for strcase.h.
76016
76017 2003-09-27  Karl Berry  <karl@gnu.org>
76018
76019         * config/mkinstalldirs: update from automake.
76020
76021 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76022
76023         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76024         (error_tail): Do not loop, reallocating temporary buffer, since
76025         the output cannot contain more wide characters than the input
76026         contains bytes, the size must be big enough already.  This avoids
76027         one potential size overflow calculation.  Check for size overflow
76028         when calculating temporary buffer size.  Free temporary buffer
76029         when done, if it was allocated with malloc; this plugs a memory
76030         leak.  Remove casts from void * to pointers, that are no longer
76031         needed now that we're assuming C89 or better.
76032
76033         Merge error changes from glibc.
76034
76035         * lib/error.c, error.h: Update copyright notice header to match glibc.
76036         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76037         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76038         Disable cancellation while printing error.
76039         * lib/error.h: Prepend __ to parameter names.
76040
76041 2003-09-26  Jim Meyering  <jim@meyering.net>
76042
76043         * lib/error.c (error_tail): Move some declarations
76044         into inner scope where the local variables are used.
76045
76046 2003-09-26  Bruno Haible  <bruno@clisp.org>
76047
76048         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76049         stpncpy().
76050         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76051
76052 2003-09-26  Bruno Haible  <bruno@clisp.org>
76053
76054         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76055         (stpncpy): Define as alias for gnu_stpncpy.
76056         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76057
76058 2003-09-25  Simon Josefsson  <jas@extundo.com>
76059
76060         * lib/xgetdomainname.h: New file.
76061         * lib/xgetdomainname.c: New file.
76062
76063 2003-09-25  Simon Josefsson  <jas@extundo.com>
76064             Bruno Haible  <bruno@clisp.org>
76065
76066         * modules/getdomainname: New file.
76067         * modules/xgetdomainname: New file.
76068         * MODULES.html.sh (func_all_modules): Add getdomainname,
76069         xgetdomainname.
76070
76071 2003-09-25  Simon Josefsson  <jas@extundo.com>
76072             Bruno Haible  <bruno@clisp.org>
76073
76074         * m4/getdomainname.m4: New file.
76075
76076 2003-09-25  Simon Josefsson  <jas@extundo.com>
76077             Bruno Haible  <bruno@clisp.org>
76078
76079         * lib/getdomainname.h: New file.
76080         * lib/getdomainname.c: New file.
76081
76082 2003-09-25  Karl Berry  <karl@gnu.org>
76083
76084         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76085
76086 2003-09-25  Karl Berry  <karl@gnu.org>
76087
76088         * config/install-sh: update from automake.
76089
76090 2003-09-25  Bruno Haible  <bruno@clisp.org>
76091
76092         * modules/version-etc-2: New file, from modules/version-etc with
76093         modifications.
76094         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76095
76096 2003-09-25  Bruno Haible  <bruno@clisp.org>
76097
76098         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76099         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76100
76101 2003-09-24  Simon Josefsson  <jas@extundo.com>
76102
76103         * modules/xgethostname: Add xgethostname.h.
76104
76105 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76106
76107         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76108         the buffer associated with the argument.  Bug reported by
76109         Simon Josefsson.
76110
76111 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76112
76113         * README: Document assumptions that 'int' is at least 32 bits
76114         wide, that integer arithmetic is 2's complement without overflow,
76115         that there are no holes in integer values, that adding sizes of
76116         two nonoverlapping objects can't overflow, and that all-bits-zero
76117         yields scalar zero.  Fix spelling and capitalization typos.
76118
76119 2003-09-19  Karl Berry  <karl@gnu.org>
76120
76121         * lib/argp.h: update from libc.
76122
76123 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76124
76125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76126         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76127         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76128
76129 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76130
76131         * gnulib-tool: Use "test -h", not "test -L", for portability
76132         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76133         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76134         (sed_extract_prog): Issue s commands one-by-one, rather than
76135         using \| in one s command.
76136
76137 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76138
76139         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76140         input error, instead of returning NULL the next time we are called
76141         (and therefore losing track of errno).
76142
76143 2003-09-16  Bruno Haible  <bruno@clisp.org>
76144
76145         * gnulib-tool (func_create_testdir): Warn about duplicated
76146         dependencies.
76147
76148 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76149
76150         * modules/argmatch, modules/fatal, modules/obstack,
76151         modules/xalloc, modules/xgethostname: Sort dependencies by
76152         importance, not alphabetically.
76153
76154 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76155
76156         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76157         fails, so that the caller gets the proper errno.
76158
76159         * lib/readutmp.c (read_utmp): Likewise.
76160         Check for fstat error.  Close stream and free storage
76161         when failing.
76162
76163 2003-09-14  Karl Berry  <karl@gnu.org>
76164
76165         * config/srclist.txt (strdup.c): disable for c89 changes.
76166
76167 2003-09-14  Jim Meyering  <jim@meyering.net>
76168
76169         * lib/getloadavg.c: Correct cpp indentation.
76170         * lib/strdup.c: Likewise.
76171         * lib/vasnprintf.c: Likewise.
76172
76173 2003-09-14  Bruno Haible  <bruno@clisp.org>
76174
76175         * modules/fwriteerror: New file.
76176         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76177
76178 2003-09-14  Bruno Haible  <bruno@clisp.org>
76179
76180         * lib/fwriteerror.h: New file.
76181         * lib/fwriteerror.c: New file.
76182
76183 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76184
76185         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76186         modules/xgethostname, modules/xalloc: Depend on exit.
76187
76188 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76189
76190         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76191
76192         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76193         and AC_MINIX, too, so that their extensions are available.
76194
76195         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76196         This macro has been superseded by gl_BACKUPFILE.
76197
76198         More patches to assume C89 or better.
76199
76200         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76201
76202         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76203         unconditionally.
76204         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76205         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76206         Include <string.h>, <stdlib.h> unconditionally.
76207         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76208         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76209         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76210         headers or for string.h.
76211         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76212         or strtoul.
76213
76214         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76215         headers.
76216         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76217         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76218         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76219         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76220         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76221         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76222         memcpy, memset.
76223         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76224         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76225         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76226         strtol.
76227         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76228         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76229         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76230         strtoul.
76231
76232 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76233
76234         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76235         * lib/obstack.c [!defined _LIBC]: Likewise.
76236         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76237         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76238         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76239
76240         More changes to assume C89 or better.
76241
76242         * lib/error.c (error_tail): Assume vprintf.
76243
76244         * lib/argmatch.c (getenv): Remove decl.
76245         * lib/progreloc.c (get_full_program_name): Define via prototype.
76246         * lib/setenv.c (clearenv): Likewise.
76247         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76248         needed.
76249         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76250         (malloc, memcpy): Remove decls.
76251         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76252         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76253         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76254         (memcpy): Remove macro.
76255         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76256         (__P): Remove.  All uses removed.
76257         (PTR): Remove.  All uses changed to void *.
76258         (CHAR_BIT, NULL): Remove.
76259         (spaces, zeros, memset_space, memset_zero)
76260         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76261         Remove.
76262         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76263         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76264         Define with prototype.
76265         Remove now-unnecessary prototype decl.
76266         (extra_args_spec): Assume ANSI C.  All uses changed.
76267         (extra_args_spec_iso): Remove.
76268         (my_strftime, emacs_strftimeu): Define via prototype.
76269         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76270         unconditionally.
76271         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76272         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76273         (strtoul, strtol): Remove decls.
76274         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76275         LONG_MAX): Remove.
76276         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76277         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76278         (LOCALE_PARAM_PROTO): New macro.
76279         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76280         (INTERNAL (strtol), strtol): Define with a prototype.
76281         (PARAMS): Remove.  All uses removed.
76282         * lib/tempname.c: Include <string.h> unconditionally.
76283         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76284         * lib/xgethostname.c (main): Define with a prototype.
76285         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76286         Include <stdlib.h> unconditionally.
76287         (calloc, malloc, realloc, free): Remove decls.
76288         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76289         Include <stdlib.h> unconditionally.  Sort include file names.
76290         (strtod): Remove.
76291         (xstrtod): Define with a prototype.
76292         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76293         (strtol, strtoul): Remove decls.
76294
76295 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76296
76297         More patches to assume C89 or better.
76298         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76299         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76300         string.h, memchr, STDC_HEADERS.
76301
76302 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76303
76304         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76305         Include <stdlib.h>, <string.h> unconditionally.
76306         Remove now-unnecessary cast to char *.
76307         * lib/strnlen.c: Include <string.h> unconditionally.
76308         * lib/yesno.c (yesno): Define with a prototype.
76309
76310 2003-09-11  Bruno Haible  <bruno@clisp.org>
76311
76312         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76313
76314 2003-09-10  Jim Meyering  <jim@meyering.net>
76315
76316         * lib/error.c: Correct indentation of cpp directives.
76317
76318 2003-09-10  Bruno Haible  <bruno@clisp.org>
76319
76320         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76321         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76322         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76323         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76324         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76325         <stdlib.h> and <string.h> checks.
76326         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76327         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76328
76329 2003-09-10  Bruno Haible  <bruno@clisp.org>
76330
76331         * lib/strcspn.c: Include <string.h> unconditionally.
76332         * lib/strpbrk.c: Include <string.h> unconditionally.
76333         * lib/strstr.c: Include <string.h> unconditionally.
76334         * lib/unicodeio.c: Include <string.h> unconditionally.
76335         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76336         * lib/unsetenv.c: Likewise.
76337         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76338         * lib/yesno.c: Include <stdlib.h> unconditionally.
76339         (rpmatch): Add prototype.
76340
76341 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76342
76343         More patches to assume C89 or better.
76344         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76345         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76346         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76347         or for string.h.
76348         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76349         stdlib.h.
76350         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76351         C headers.
76352         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76353         string.h.
76354         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76355         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76356         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76357         or for string.h.
76358         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76359         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76360         C headers.
76361         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76362         memcpy.
76363         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76364         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76365         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76366         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76367         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76368         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76369         string.h, free.
76370         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76371         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76372         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76373         C headers, or for string.h.
76374         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76375         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76376         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76377         headers, memory.h, stdlib.h, string.h, strings.h.
76378         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76379         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76380         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76381         strchr.
76382         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76383         headers, memory.h, string.h.
76384         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76385         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76386         free.
76387         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76388         headers.
76389         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76390         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76391         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76392         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76393         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76394
76395 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76396
76397         More K&R removal.
76398
76399         * lib/acosl.c (main): Use a prototype.
76400         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76401         tanl.c: Likewise.
76402
76403         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76404
76405         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76406         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76407         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76408         with a prototype.
76409         * lib/getopt.c (const): Remove macro.
76410         Include <string.h> unconditionally.
76411         (my_index): Remove; all uses changed to strchr.
76412         (strlen): Remove decl.
76413         (exchange): Remove forward decl; no longer needed.
76414         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76415         Define with prototype.
76416         * lib/getopt1.c (const): Remove macro.
76417         (getopt_long, getopt_long_only, main): Define with prototype.
76418
76419         * lib/getugroups.c: Include <string.h> unconditionally.
76420
76421         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76422         (getusershell, setusershell, endusershell, readname, main):
76423         Define with prototypes.
76424
76425         * lib/group-member.c: Include group-member.h first.
76426         Include <stdlib.h> unconditionally.
76427
76428         * lib/hard-locale.c: Include hard-locale.h first.
76429         Include <stdlib.h>, <string.h> unconditionally.
76430
76431         * lib/hash.c (free, malloc): Remove decls.
76432         Include <stdlib.h> unconditionally.
76433
76434         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76435         (getenv): Do not declare.
76436
76437         * lib/idcache.c: Include <string.h> unconditionally.
76438
76439         * lib/long-options.c: Include long-options.h first, to test interface.
76440         Include <stdlib.h> unconditionally.
76441
76442         * lib/makepath.c: Include makepath.h first, to test interface.
76443         Include <stdlib.h> and <string.h> unconditionally.
76444
76445         * lib/linebuffer.c: Include <stdlib.h>.
76446         (free): Remove decl.
76447
76448         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76449         stddef.h. rpl_malloc returns void *, not char *.
76450         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76451         prototype.
76452
76453         * lib/md5.h: Include <limits.h> unconditionally.
76454         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76455         (__P): Remove; all uses removed.
76456         * lib/md5.c: Include "md5.h" first.
76457         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76458         md5_buffer, md5_process_bytes, md5_process_block):
76459         Define with prototypes.
76460         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76461         * lib/sha.c: Include "sha.h" first.
76462         Include <stdlib.h>, <string.h> unconditionally.
76463
76464         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76465         * lib/memcmp.c (__ptr_t): Likewise.
76466         * lib/memrchr.c (__ptr_t): Likewise.
76467         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76468         Include <string.h> unconditionally.
76469         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76470         * lib/memchr.c: Include <stdlib.h> unconditionally.
76471         * lib/memchr.c (LONG_MAX): Remove.
76472         * lib/memrchr.c (LONG_MAX): Likewise.
76473         * lib/memchr.c (__memchr): Define via a prototype.
76474         * lib/memrchr.c (__memrchr): Likewise.
76475         * lib/memcmp.c (__P): Remove, and remove all uses.
76476         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76477         Remove forward decls; no longer needed.
76478         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76479         Use types required by C89 in prototype.
76480
76481         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76482         * lib/savedir.c: Likewise.
76483         * lib/mkdir.c (free): Remove decl.
76484         * lib/rmdir.c (rmdir): Define with a prototype.
76485         * lib/savedir.c: Include savedir.h first, to test interface.
76486
76487         * lib/mktime.c (STDC_HEADERS): Remove.
76488         Include <stdlib.h>, <string.h> unconditionally.
76489
76490         * lib/modechange.c: Include <stdlib.h> unconditionally.
76491         (malloc): Remove decl.
76492
76493         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76494         (free): Remove decl.
76495
76496         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76497         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76498         (This type really should be intptr_t, but that's a C99ism.)
76499         (_obstack_memcpy): Remove: all uses changed to memcpy.
76500         Include <string.h> unconditionally.
76501         (struct obstack): Assume __STDC__ for types of members
76502         chunkfun, freefun, extra_arg.
76503         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76504         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76505         obstack_begin, obstack_specify_allocation,
76506         obstack_specify_allocation_with_arg, obstack_chunkfun,
76507         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76508         Remove unprototyped decls and the macros that use them.
76509         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76510         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76511         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76512         (defined __STDC__ && __STDC__)]:
76513         Remove nonprototyped code.
76514         Include <stdlib.h> unconditionally.
76515         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76516         _obstack_allocated_p, _obstack_free, obstack_free,
76517         _obstack_memory_used, print_and_abort):
76518         Define using prototypes.
76519         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76520         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76521         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76522         obstack_next_free, obstack_object_size, obstack_room) [0]:
76523         Remove unused, unprototyped code.
76524
76525         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76526
76527         * lib/physmem.c (physmem_total, physmem_available, main): Define
76528         with prototypes.
76529
76530         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76531         (main): Define with a prototype.
76532
76533         * lib/posixver.c (getenv): Remove decl.
76534
76535         * lib/putenv.c (malloc): Returns void *, not char *.
76536         Include <string.h> unconditionally.
76537         (strchr, memcpy, NULL): Do not define.
76538
76539         * lib/readtokens.c: Include readtokens.h first, to test interface.
76540         Include <stdlib.h>, <string.h> unconditionally.
76541         (init_tokenbuffer): Define with a prototype.
76542
76543         * lib/regex.c (PARAMS): Remove.  All uses removed.
76544         All uses of _RE_ARGS removed, too.
76545         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76546         unconditionally.
76547         (bzero): Assume memset exists.
76548         (memcmp, memcpy, NULL): Remove.
76549         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76550         char, or assignments to local vars of type signed char.
76551         (init_syntax_once, PREFIX(extract_number_and_incr),
76552         PREFIX(print_partial_compiled_pattern),
76553         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76554         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76555         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76556         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76557         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76558         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76559         wcs_compile_range, byte_compile_range, truncate_wchar,
76560         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76561         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76562         count_mbs_length, wcs_re_match_2_internal,
76563         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76564         PREFIX(alt_match_null_string_p),
76565         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76566         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76567         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76568         now-unnecessary declaration, if any.
76569         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76570         regcomp, regexec):
76571         Remove now-unnecessary casts among pointer types.
76572         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76573
76574         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76575         (free): Remove decl.
76576
76577         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76578
76579         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76580         (free): Remove decl.
76581
76582         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76583         * lib/xgetcwd.c: Likewise.
76584
76585         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76586         (free): Remove decl.
76587
76588         * lib/strchrnul.c (strchrnul): Define with a prototype.
76589         Fix bug: c_in was not converted to char before searching.
76590
76591         The following changes are not K&R related:
76592
76593         * lib/group-member.h: Include <sys/types.h>, so that this file is
76594         self-contained.
76595         * lib/makepath.h: Likewise.
76596
76597         * lib/getusershell.c (readname, default_index, line_size, readname):
76598         Use size_t, not int, for sizes.
76599         (readname): If the size overflows, report an error instead of
76600         looping forever.
76601
76602 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76603
76604         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76605         libc.
76606
76607 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76608
76609         * README: New section: portability guidelines.
76610
76611 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76612
76613         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76614         C89 spec.
76615
76616 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76617
76618         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76619
76620 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76621
76622         Assume C89 or better; remove K&R cruft.
76623         A few of these changes were first proposed by Derek Robert Price
76624         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76625
76626         * lib/addext.c: Include <string.h> unconditionally.
76627         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76628         Don't declare getenv or malloc.
76629
76630         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76631         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76632         (NULL): Remove.
76633         (find_stack_direction, alloca): Use prototypes.
76634
76635         * lib/atexit.c (atexit): Define using a prototype.
76636
76637         * lib/basename.c, dirname.c, stripslash.c:
76638         Include <string.h> unconditionally.
76639
76640         * lib/bcopy.c: Include <stddef.h>.
76641         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76642
76643         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76644
76645         * lib/error.h (error, error_at_line, error_print_progname)
76646         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76647         * lib/error.c: Include error.h first, to check interface.
76648         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76649         (VA_START): Remove; all uses changeed to va_start.
76650         (exit, strerror): Remove decls.
76651         (error_print_progname): Prototype uncondionally.
76652         Don't include <errno.h>; no longer needed.
76653         (private_strerror): Remove.
76654         (error_tail): Always define.
76655         (error, error_at_line): Assume C89 or better; always use prototypes.
76656         * lib/fatal.c: Include "fatal.h" first, to test interface.
76657         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76658         (VA_START): Remove; all uses changed to va_start.
76659         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76660         this case.
76661         (exit): Remove decl.
76662         (fatal): Prototype unconditionally.  Assume va_start works.
76663         Abort at end, to pacify gcc.
76664
76665         * lib/euidaccess.c (main): Define with a prototype.
76666
76667         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76668
76669         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76670
76671         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76672         prototypes.
76673         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76674         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76675         (getenv): Remove decl.
76676         (fnmatch): Define using a prototype.
76677         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76678         (FCT): Define using a prototype.
76679
76680         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76681
76682         * lib/gethostname.c: Include <stddef.h>.
76683         (gethostname): Define with prototype.  Length is size_t, not int.
76684
76685 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76686
76687         Assume C89 or better; remove K&R cruft.
76688         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76689         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76690         string.h, getenv, malloc.
76691         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76692         headers.
76693         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76694         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76695         do not check for strerror.
76696         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76697         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76698         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76699         do not check for doprnt or vprintf.
76700         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76701         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76702
76703 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76704
76705         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76706         getversion.c should have been removed then, but was accidentally
76707         preserved.
76708
76709         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76710         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76711
76712 2003-09-08  Karl Berry  <karl@gnu.org>
76713
76714         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76715                 config, forget about prep.
76716
76717         * config/depcomp, missing: update from automake.
76718
76719 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76720
76721         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76722         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76723
76724 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76725
76726         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76727         copy_tm_result.  Bug reported by Simon Josefsson in
76728         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76729
76730 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76731
76732         * m4/time_r.m4: New file.
76733         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76734         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76735         is. Check for timegm declaration.
76736         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76737         Do not check for gmtime_r.
76738         Replace mktime if __mktime_internal does not exist and if mktime
76739         hasn't been replaced already.
76740
76741 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76742
76743         * lib/time_r.c, lib/time_r.h: New files.
76744
76745         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76746         __localtime_r.
76747         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76748         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76749
76750         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76751         __gmtime_r.
76752         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76753         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76754         Include <time_r.h>.
76755
76756         * lib/timegm.c: Switch to glibc implementation, with the following
76757         changes:
76758         [defined HAVE_CONFIG_H]: Include <config.h>.
76759         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76760         (__mktime_internal) [!defined _LIBC]: New decl.
76761         (__gmtime_r) [!defined _LIBC]: New macro and function.
76762         (timegm): Use a prototype, since gnulib assumes C89.
76763         Do not bother declaring tmp to be const, as it's not really usefu.
76764         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76765         (timegm): Declare only if HAVE_DECL_TIMEGM.
76766
76767 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76768
76769         * MODULES.html.sh (func_all_modules): Add time_r.
76770         * modules/time_r: New file.
76771         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76772         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76773
76774 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76775
76776         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76777         Bug reported by Lute Kamstra in
76778         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76779
76780         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76781         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76782         course with correspondingly smaller numbers for tomorrow and
76783         yesterday.  From Tadayoshi Funaba.  Originally installed into
76784         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76785         coreutils merge?).
76786
76787 2003-08-31  Simon Josefsson  <jas@extundo.com>
76788
76789         * modules/timegm: New file.
76790         * MODULES.html.sh (func_all_modules): Add timegm.
76791
76792 2003-08-31  Simon Josefsson  <jas@extundo.com>
76793
76794         * m4/timegm.m4: New file.
76795
76796 2003-08-31  Simon Josefsson  <jas@extundo.com>
76797
76798         * lib/timegm.h: New file.
76799         * lib/timegm.c: New file.  Based on
76800         wget-1.8.2/src/http.c:mktime_from_utc.
76801
76802 2003-08-31  Karl Berry  <karl@gnu.org>
76803
76804         * lib/argp.h: update from libc.
76805
76806 2003-08-28  Bruno Haible  <bruno@clisp.org>
76807
76808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76809         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76810         followed by '#define fnmatch fnmatch_posix' gives an error.
76811
76812 2003-08-28  Bruno Haible  <bruno@clisp.org>
76813
76814         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76815         warning on QNX, which defines O_BINARY to 000000.
76816
76817 2003-08-27  Jim Meyering  <jim@meyering.net>
76818
76819         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76820         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76821         would fail after 32.  Reported by Danny Levinson.  Details here:
76822         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76823
76824 2003-08-24  Bruno Haible  <bruno@clisp.org>
76825
76826         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76827         MSVC7 <stdio.h> is included later.
76828
76829 2003-08-22  Simon Josefsson  <jas@extundo.com>
76830
76831         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76832
76833 2003-08-20  Karl Berry  <karl@gnu.org>
76834
76835         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76836
76837 2003-08-20  Bruno Haible  <bruno@clisp.org>
76838
76839         * modules/progname: New file.
76840         * MODULES.html.sh (func_all_modules): Add progname.
76841
76842 2003-08-20  Bruno Haible  <bruno@clisp.org>
76843
76844         * lib/progname.h: New file, from GNU gettext.
76845         * lib/progname.c: New file, from GNU gettext.
76846         * lib/progreloc.c: New file, from GNU gettext.
76847
76848 2003-08-19  Jim Meyering  <jim@meyering.net>
76849
76850         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76851         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76852
76853 2003-08-19  Bruno Haible  <bruno@clisp.org>
76854
76855         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76856         more.
76857
76858 2003-08-19  Bruno Haible  <bruno@clisp.org>
76859
76860         * lib/xstrdup.c: Assume <string.h> exists.
76861
76862 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76863
76864         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76865         in makefile rules.
76866
76867 2003-08-18  Jim Meyering  <jim@meyering.net>
76868
76869         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76870         * m4/lib-ld.m4: Likewise.
76871
76872 2003-08-18  Jim Meyering  <jim@meyering.net>
76873
76874         * lib/setenv.h: Indent nested cpp directive.
76875         * lib/vasnprintf.c: Remove trailing blanks.
76876
76877 2003-08-17  Simon Josefsson  <jas@extundo.com>
76878
76879         * modules/xstrndup: New file.
76880         * MODULES.html.sh (func_all_modules): Add xstrndup.
76881
76882 2003-08-17  Simon Josefsson  <jas@extundo.com>
76883
76884         * modules/argp: Fix autoconf macro name. Add more dependencies.
76885
76886 2003-08-17  Simon Josefsson  <jas@extundo.com>
76887
76888         * m4/xstrndup.m4: New file.
76889
76890 2003-08-17  Simon Josefsson  <jas@extundo.com>
76891
76892         * m4/argp.m4: New file.
76893
76894 2003-08-17  Simon Josefsson  <jas@extundo.com>
76895             Bruno Haible  <bruno@clisp.org>
76896
76897         * lib/xstrndup.h: New file.
76898         * lib/xstrndup.c: New file.
76899
76900 2003-08-17  Bruno Haible  <bruno@clisp.org>
76901
76902         * modules/strndup (Files, Include): Add lib/strndup.h.
76903
76904 2003-08-17  Bruno Haible  <bruno@clisp.org>
76905
76906         * modules/euidaccess (Files): Add lib/euidaccess.h.
76907
76908 2003-08-17  Bruno Haible  <bruno@clisp.org>
76909
76910         * lib/strndup.h: New file.
76911
76912 2003-08-17  Bruno Haible  <bruno@clisp.org>
76913
76914         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76915         like AC_GNU_SOURCE.
76916         * modules/extensions (configure.ac): Comment out the invocation of
76917         gl_USE_SYSTEM_EXTENSIONS.
76918
76919 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76920
76921         Merges from coreutils, etc.
76922         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76923         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76924         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76925         fixing a typo.
76926         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76927         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76928
76929 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76930
76931         Document merge from coreutils.
76932         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76933         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76934         * modules/utime: Add m4/utimes-null.m4.
76935
76936 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76937
76938         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76939         space, undoing this 2003-08-12 change:
76940         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76941
76942 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76943
76944         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76945         strtoul.c from libc, undoing this 2003-08-12 change:
76946         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76947
76948 2003-08-16  Jim Meyering  <jim@meyering.net>
76949
76950         Merges from coreutils.
76951         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76952         prefix.  Adjust cache variables similarly.  Create 500 rather than
76953         just 300 files, to exercise bug on Darwin6.5, too.
76954         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76955         $missing_dir.
76956         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76957         AM_SYS_POSIX_TERMIOS.
76958         Reported by mkc@mathdogs.com.
76959         Also change use of $am_cv_sys_posix_termios
76960         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76961         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76962         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76963         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76964         in /proc/mounts until it finds one with matching device number.  This
76965         is unnecessary when the FILE argument *is* a mount point.  No stat call
76966         is necessary in that case.  So, disable the statvfs-testing code on
76967         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76968         as RedHat bug# 84846.
76969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76970         to 1MB, so as not to render systems with no stack size limit (e.g.,
76971         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76972         Include <unistd.h>.  On some systems,
76973         it is required for the definition of _SC_PAGESIZE.
76974
76975 2003-08-16  Jim Meyering  <jim@meyering.net>
76976
76977         Merge from coreutils.
76978         * lib/xstrtoimax.c: #else #if -> #elif.
76979         * lib/xstrtoumax.c: Likewise.
76980
76981 2003-08-16  Jim Meyering  <jim@meyering.net>
76982
76983         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76984         * m4/utimes.m4: Removed.
76985         * m4/utimes-null.m4: Renamed from utimes.m4.
76986
76987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76988         to 1MB, so as not to render systems with no stack size limit (e.g.,
76989         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76990         Include <unistd.h>.  On some systems,
76991         it is required for the definition of _SC_PAGESIZE.
76992
76993 2003-08-16  Jim Meyering  <jim@meyering.net>
76994         and Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         Merges from coreutils, etc.
76997
76998         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76999         using the latest version from cvs.  This avoids problems with #line
77000         directives using a vendor (Sun) compiler.
77001         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77002         Don't set GETGROUPS_LIB here; now it's
77003         done via getgroups.m4's wrapper function.
77004         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77005         rather than just in sh-util/configure.in, so that the
77006         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77007         same.
77008         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77009         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77010         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77011         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77012         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77013         Remove code that is now done by the newly-required macros.
77014         Append $(EXEEXT) to DF_PROG.
77015         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77016         Do not invoke or require the following here,
77017         since prereq.m4 or some gnulib .m4 now does this for us:
77018         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77019         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77020         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77021         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77022         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77023         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77024         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77025         AC_FUNC_OBSTACK.
77026         Do not replace the following functions, as this is now the job
77027         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77028         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77029         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77030         atexit getpass, strdup, getpagesize.
77031         Replace 'raise'.
77032         Do not check for the following functions, as this is now the job
77033         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77034         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77035         setregid.
77036         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77037         Check for sys/sysctl.h.
77038         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77039         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77040         of checking for ssize_t ourselves.
77041
77042         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77043         Require every macro that gnulib/modules/* suggests for us.
77044         (jm_PREREQ_ADDEXT): New macro.
77045         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77046         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77047
77048         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77049         (gl_PHYSMEM): Use it.
77050         Also check for `table' function.
77051         Check for new headers and functions.
77052         Add check for sys/sysmp.h.
77053         With suggestions from Kaveh Ghazi.
77054         Ignore headers that are present but cannot be compiled.  This
77055         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77056         C 5.4.
77057
77058 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77059
77060         Document merge from coreutils.
77061         * modules/userspec: Depend on posixver.
77062         * modules/strftime: Depend on tzset.
77063
77064 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77065
77066         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77067         rather than tab, after '#' in shell-script copyright notices.
77068         Suggested by Bruno Haible.
77069
77070 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77071
77072         * config/srclist-update: Use three spaces, rather than tab, after '#'
77073         in shell-script copyright notices.  Suggested by Bruno Haible.
77074         Remove unnecessary parenthesization in regular expression.
77075
77076 2003-08-15  Jim Meyering  <jim@meyering.net>
77077
77078         Merge from coreutils.
77079         * lib/xgethostname.c: Include <stdlib.h>.
77080         (xghostname): Don't exit for anything other than memory-related
77081         failure; just return NULL.
77082         * lib/userspec.c: Include "posixver.h".
77083         (parse_user_spec): Accept `.' as a separator only
77084         in pre-POSIX-200112 mode.
77085         * lib/strtoimax.c: Use #elif rather than #else #if.
77086         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77087         Remove function, now that we can rely on a working tzset function.
77088         [!_LIBC]: Ensure that the required autoconf test has been run.
77089         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77090         Use underlying_strftime for %r.
77091         * lib/sha.c: Merge in some clean-up and optimization changes from
77092         glibc.
77093         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77094         Ensure that it is a multiple of 64.
77095         Rearrange loop exit tests so as to avoid performing an
77096         additional fread after encountering an error or EOF.
77097         * lib/realloc.c: Update copyright date.
77098
77099 2003-08-15  Jim Meyering  <jim@meyering.net>
77100         and Paul Eggert  <eggert@twinsun.com>
77101
77102         Merge from coreutils.
77103         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77104         member but strut utmpx does not.  Needed for AIX 4.3.3.
77105         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77106
77107 2003-08-15  Jim Meyering  <jim@meyering.net>
77108         and Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         Merges from coreutils, etc.
77111         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77112         Require gl_FUNC_TZSET_CLOBBER.
77113         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77114         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77115         members.
77116
77117 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77118
77119         Help the merge from coreutils.
77120         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77121         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77122         * m4/tzset.m4: Use it too.
77123
77124 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77125
77126         * modules/tzset: New file.
77127
77128 2003-08-14  Jim Meyering  <jim@meyering.net>
77129
77130         Merges from coreutils.
77131         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77132         variable names, rather than @FNMATCH_H@.
77133         * modules/alloca: Likewise for $(ALLOCA_H).
77134
77135         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77136         the three copies of the literal target, `fnmatch.h'.
77137         * modules/alloca (alloca.h): Likewise.
77138
77139 2003-08-14  Jim Meyering  <jim@meyering.net>
77140
77141         Merge from coreutils.
77142         * m4/tzset.m4: New file.
77143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77144         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77145         otherwise, AIX 5.1 systems would end up using the latter.
77146         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77147         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77148         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77149         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77150
77151 2003-08-14  Jim Meyering  <jim@meyering.net>
77152
77153         Merge from coreutils.
77154         * lib/obstack.h: Whitespace changes.
77155         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77156         and xcalloc return values.
77157         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77158         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77159         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77160         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77161         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77162         error from mntctl.
77163         Use mntctl's return value to drive the entry-processing loop, since
77164         we can't rely on the value of the vmt_length member in the last
77165         entry.  On some systems doing so could result in exhausting
77166         virtual memory.  Based in part on a patch from Mike Jetzer.
77167
77168 2003-08-14  Jim Meyering  <jim@meyering.net>
77169         and Paul Eggert  <eggert@twinsun.com>
77170
77171         Merges from coreutils, plus other fixes.
77172         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77173         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77174         for credits and details.  Thanks to Kaveh Ghazi for helping
77175         to keep these files in sync.
77176         (ARRAY_SIZE): Define it.
77177         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77178         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77179         (memcasecmp): Don't assume size_t fits in unsigned int.
77180         Remove casts and duplicate code.
77181         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77182         (memcpy): Remove definition.
77183         Merge in some clean-up and optimization changes from glibc.
77184         [BLOCKSIZE]: Move definition to top of file.
77185         Ensure that it is a multiple of 64.
77186         Rearrange loop exit tests so as to avoid performing an
77187         additional fread after encountering an error or EOF.
77188         * lib/md5.h (md5_uintptr): Define.
77189         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77190         return to the initial working directory.  Preserve errno
77191         for caller.
77192         * lib/idcache.c: Include "xalloc.h".
77193         (xmalloc, xrealloc): Remove decls.
77194         (getuser): Remove casts no longer required in C89.
77195         * lib/human.c: Include stdio.h, for sprintf.
77196         * lib/group-member.c: Include "xalloc.h".
77197         (xmalloc, xrealloc): Remove decls.
77198         (get_group_info): Remove casts no longer required in C89.
77199         * lib/getusershell.c (readname): Remove casts no longer required in
77200         C89.
77201         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77202         * lib/getline.c: Whitespace fix, from coreutils.
77203
77204 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77205
77206         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77207         Check for isascii.
77208
77209         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77210         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77211         Undo previous (whitespace-only) change.
77212
77213 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77214
77215         * lib/exclude.c: Include <ctype.h>
77216         (IN_CTYPE_DOMAIN): New macro.
77217         (is_space): New fn.
77218         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77219         and empty lines.
77220
77221         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77222         Undo previous (whitespace-only) change.
77223
77224 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77225
77226         * config/srclist-update: Change update back to the old behavior,
77227         leaving whitespace alone.  Use one 'sed' command rather than a
77228         pipeline.
77229         (fixlicense): Now a variable, not a function.
77230         (remove_trailing_blanks): Remove.
77231         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77232         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77233         Undo previous (whitespace-only) change.
77234
77235 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77236
77237         Merge from coreutils.
77238         * modules/euidaccess: Add lib_SOURCES, include for new
77239         file euidaccess.h
77240
77241 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77242
77243         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77244         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77245         Normalize leading white space and remove trailing white space.
77246
77247         Merge from coreutils
77248         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77249
77250         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77251         0.12.1.  These files are now being upgraded automatically by
77252         ../config/srclist-update.
77253
77254 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77255
77256         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77257         Normalize leading white space and remove trailing white space.
77258         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77259         notice, as per ../config/srclist-update.
77260
77261         Merge from coreutils.
77262         * lib/euidaccess.h: New file.
77263         * lib/euidaccess.c: Include it.
77264         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77265         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77266         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77267
77268 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77269
77270         * config/srclist-update: Add copyright notice.
77271         (remove_id_lines, remove_trailing_blanks): New constants.
77272         (fixfile): Use them to normalize spacing a bit in copied files.
77273         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77274         Normalize leading white space and remove trailing white space.
77275
77276         * config/texinfo.tex: Sync with texinfo.
77277
77278         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77279         strtoul.c from libc, to merge coreutils whitespace changes.
77280
77281         * config/srclist.txt: Get the following m4 files from gettext:
77282         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77283         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77284         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77285         wint_t.m4.
77286
77287 2003-08-12  Karl Berry  <karl@gnu.org>
77288
77289         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77290         been made.
77291
77292 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77293
77294         * modules/gnu-source, m4/gnu-source.m4:
77295         Remove; we're assuming Autoconf 2.54 or later now.
77296         Suggested by Bruno Haible.
77297         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77298
77299 2003-08-11  Bruno Haible  <bruno@clisp.org>
77300
77301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77302
77303 2003-08-11  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77306         (vasnprintf): Use it instead of wcslen.
77307
77308 2003-08-11  Bruno Haible  <bruno@clisp.org>
77309
77310         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77311         value to ensure that _Bool promotes to int. Use #define for _Bool when
77312         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77313
77314 2003-08-10  Karl Berry  <karl@gnu.org>
77315
77316         * lib/regex.h: update from libc (whitespace fix).
77317
77318 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77319
77320         Merge some files from coreutils.  These changes were
77321         originally made by Jim Meyering.
77322         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77323         many older Unixes require this.
77324         * lib/alloca.c (alloca): Remove cast to argument of free;
77325         no longer needed in C89.
77326         * lib/alloca_.h, regex.h: Fix white space to match
77327         what GNU indent does.
77328
77329 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77330
77331         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77332         apparently Emacs's Unicode mode got confused before my 2003-08-05
77333         checkin.
77334
77335 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77336
77337         * m4/extensions.m4: New file.
77338         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77339         Require gl_USE_SYSTEM_EXTENSIONS.
77340         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77341         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77342
77343 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77344
77345         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77346         * modules/extensions, modules/gnu-source: New files.
77347         * modules/timespec, modules/unlocked-io: Depend on extensions.
77348
77349 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77350
77351         * modules/restrict: New file.
77352         * MODULES.html.sh (func_all_modules): Add restrict.
77353         * modules/regex: Depend on restrict.
77354
77355 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77356
77357         * m4/restrict.m4: New file.
77358         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77359
77360 2003-08-07  Bruno Haible  <bruno@clisp.org>
77361
77362         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77363         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77364
77365 2003-08-07  Bruno Haible  <bruno@clisp.org>
77366
77367         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77368         makes the module 'getndelim2' compatible with the module 'getline'.
77369
77370 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77371
77372         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77373         byte with "\201" to avoid glitches when editing that source file
77374         with multi-gnome-terminal.
77375
77376 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77377
77378         * lib/bumpalloc.h: Remove.
77379
77380 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77381
77382         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77383         * modules/bumpalloc: Remove.
77384
77385 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77386
77387         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77388         GNU coding style.
77389
77390         Merge from coreutils.
77391         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77392         1. From glibc.
77393         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77394         from Karl Berry, implemented by Jim Meyering.
77395         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77396         from Dmitry V. Levin.
77397         Remove anachronistic cast of xrealloc.
77398         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77399         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77400         type. Otherwise, it wouldn't compile with at least /bin/cc on
77401         ymp-cray-unicos9.0.2.X.
77402         Combine two mostly-identical uses of alloca into one.
77403         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77404
77405 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77406
77407         [From Emacs.]
77408
77409         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77410         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77411         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77412         obsolete NLIST_NAME_UNION.
77413         [__GNU__]: Undef BSD and FSCALE.
77414         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77415
77416 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77417
77418         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77419         an enum type, so that it's guaranteed to promote to int.  See:
77420         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77421
77422 2003-08-03  Karl Berry  <karl@gnu.org>
77423
77424         * config/depcomp: update from automake.
77425
77426 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77427
77428         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77429         (strerror): Don't assume that a printable int fits in 14 bytes.
77430
77431 2003-07-31  Bruno Haible  <bruno@clisp.org>
77432
77433         * modules/getpass-gnu: New file.
77434         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77435
77436 2003-07-31  Bruno Haible  <bruno@clisp.org>
77437
77438         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77439
77440 2003-07-24  Karl Berry  <karl@gnu.org>
77441
77442         * config/missing: update from automake.
77443
77444 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77445             Bruno Haible  <bruno@clisp.org>
77446
77447         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77448         * lib/getline.c (getline, getdelim): Likewise.
77449         Remove _GNU_SOURCE define; now it's defined in config.h through
77450         m4/getline.m4.
77451
77452 2003-07-23  Karl Berry  <karl@gnu.org>
77453
77454         * config/config.sub: update from prep.
77455
77456 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77457
77458         * modules/xalloc (Depends-on): Add exitfail.
77459         * modules/xmemcoll: Likewise.
77460
77461 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77462
77463         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77464         over-parenthesization in macros.
77465
77466         Sync with coreutils.
77467
77468         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77469         required by C99.
77470
77471         Use `exit_failure' for xalloc and xmemcoll instead of their own
77472         private exit-failure variables.
77473         * lib/xalloc.h (xalloc_exit_failure): Remove.
77474         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77475         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77476         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77477         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77478         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77479
77480 2003-07-20  Jim Meyering  <jim@meyering.net>
77481
77482         * modules/closeout (Depends-on): Add exitfail.
77483         Suggestion from Bruno Haible.
77484
77485 2003-07-19  Karl Berry  <karl@gnu.org>
77486
77487         * config/config.sub: update from prep.
77488
77489 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77490
77491         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77492         Remove.
77493         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77494         to test that it can stand by itself.  Include "exitfail.h".
77495         Clients should set exit_failure instead.
77496         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77497
77498 2003-07-18  Bruno Haible  <bruno@clisp.org>
77499
77500         * modules/getndelim2: New file.
77501         * modules/getline: Share files with module getndelim2.
77502         * modules/getnline: Depend on getndelim2 instead of sharing files with
77503         it. Add getnline.c to lib_SOURCES.
77504         * MODULES.html.sh (func_all_modules): Add getndelim2.
77505
77506 2003-07-18  Bruno Haible  <bruno@clisp.org>
77507
77508         * m4/getndelim2.m4: New file.
77509         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77510         invoke gl_PREREQ_GETNDELIM2.
77511         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77512         gl_PREREQ_GETNDELIM2.
77513         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77514         gl_GETNDELIM2.
77515
77516 2003-07-18  Bruno Haible  <bruno@clisp.org>
77517
77518         * lib/getndelim2.h: New file.
77519         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77520         getndelim2.h.
77521         (getndelim2): Make non-static. Change return type to ssize_t.
77522         * lib/getline.h: Change argument names.
77523         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77524         * lib/getnline.c: Include getndelim2.h.
77525
77526 2003-07-18  Andreas Schwab  <schwab@suse.de>
77527
77528         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77529
77530 2003-07-17  Karl Berry  <karl@gnu.org>
77531
77532         * config/config.sub: update from prep.
77533
77534 2003-07-17  Bruno Haible  <bruno@clisp.org>
77535
77536         * modules/getnline: New file.
77537         * modules/getline: Add lib/getndelim2.c to source file list.
77538         * MODULES.html.sh (func_all_modules): Add getnline.
77539
77540 2003-07-17  Bruno Haible  <bruno@clisp.org>
77541
77542         * m4/getnline.m4: New file.
77543
77544 2003-07-17  Bruno Haible  <bruno@clisp.org>
77545
77546         * m4/Makefile.am.in: Remove file.
77547         * m4/Makefile.am: Remove file.
77548         * m4/Makefile.in: Remove file.
77549
77550 2003-07-17  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/getnline.h: New file.
77553         * lib/getnline.c: New file.
77554         * lib/getndelim2.c: New file, extracted from getline.c.
77555         (getndelim2): Renamed from getdelim2, with added nmax argument.
77556         * lib/getline.c: Include getndelim2.c.
77557         (getdelim2): Moved out to getndelim2.c.
77558         (getline, getdelim): Update.
77559
77560 2003-07-17  Bruno Haible  <bruno@clisp.org>
77561
77562         * lib/Makefile.am: Remove file.
77563         * lib/Makefile.in: Remove file.
77564
77565 2003-07-17  Bruno Haible  <bruno@clisp.org>
77566
77567         * configure.in: Remove file.
77568         * Makefile.in: Remove file.
77569
77570 2003-07-17  Bruno Haible  <bruno@clisp.org>
77571
77572         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77573
77574 2003-07-16  Karl Berry  <karl@gnu.org>
77575
77576         * config/srclist-update: was running fixlicense twice, which caused
77577                 texinfo.tex to be nullified for some reason.  Simplify,
77578                 $gplsrc is no longer needed as far as I can see?
77579
77580 2003-07-16  Jim Meyering  <jim@meyering.net>
77581
77582         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77583
77584 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77585
77586         * config/srclist.txt: Get the following files from gettext-runtime/intl
77587         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77588         ref-del.sin.  From Bruno Haible.
77589         * config/srclist-update (fixfile): Change grep pattern again, since the
77590         previous fix didn't work (there was another trailing $).  Use
77591         '[$]' to escape the $s.
77592
77593 2003-07-15  Karl Berry  <karl@gnu.org>
77594
77595         * lib/vasnprintf.c: update from gettext.
77596
77597 2003-07-15  Karl Berry  <karl@gnu.org>
77598
77599         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77600         gets expanded when surrounded by '$'.
77601
77602 2003-07-15  Jim Meyering  <jim@meyering.net>
77603
77604         * modules/save-cwd: Don't depend on error.  From Derek Price.
77605
77606 2003-07-15  Jim Meyering  <jim@meyering.net>
77607
77608         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77609
77610 2003-07-14  Simon Josefsson  <jas@extundo.com>
77611
77612         * modules/mempcpy: New file.
77613         * MODULES.html.sh (func_all_modules): Add mempcpy.
77614
77615 2003-07-14  Simon Josefsson  <jas@extundo.com>
77616
77617         * m4/mempcpy.m4: New file.
77618
77619 2003-07-14  Simon Josefsson  <jas@extundo.com>
77620
77621         * lib/mempcpy.h: New file.
77622         * lib/mempcpy.c: New file.
77623
77624 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77625
77626         * modules/getdate, modules/posixtm: Depend on mktime.
77627
77628 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77629
77630         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77631         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77632         unicodeio.c, unicodeio.h, unlocked-io.h:
77633         Switch from LGPL to GPL.
77634
77635 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77636
77637         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77638         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77639         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77640         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77641         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77642         updated automatically by ../config/srclist-update.  This changes
77643         their license from LPGL to GPL.
77644
77645 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77646
77647         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77648         assumed to refer to the root of the most recent stable gettext version.
77649         * config/srclistvars.sh: Add defaults for eggert.
77650         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77651         Match "This program" as well as "The program".  This is needed
77652         for gettext.
77653
77654 2003-07-14  Jim Meyering  <jim@meyering.net>
77655
77656         Don't emit diagnostics.  Let callers do that.
77657         * lib/save-cwd.c: Don't include "error.h".
77658         (save_cwd): Don't call error.  Ensure that errno is valid
77659         when returning nonzero.
77660
77661         * lib/save-cwd.h (restore_cwd): Update prototype.
77662         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77663         Simplify.  Don't call error upon failure.  Let callers do that.
77664         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77665         when auditing is enabled.  But don't bother updating the #if.
77666
77667 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77668
77669         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77670         it breaks C++ compilation.
77671         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77672
77673 2003-07-10  Simon Josefsson  <jas@extundo.com>
77674
77675         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77676
77677 2003-07-10  Jim Meyering  <jim@meyering.net>
77678
77679         * m4/clock_time.m4: Remove trailing blank.
77680         * m4/intmax_t.m4: Likewise.
77681
77682 2003-07-10  Jim Meyering  <jim@meyering.net>
77683
77684         * lib/vasnprintf.c: Remove trailing blanks.
77685         Make cpp indentation consistent.
77686
77687 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77688
77689         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77690         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77691         Switch from LGPL to GPL.
77692
77693 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77694
77695         * config/srclist.txt: Sort sublists.  Add
77696         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77697         that differ from gnulib for one reason or another; we'd like this list
77698         to be smaller but for now let's document what we have.
77699
77700 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77701
77702         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77703         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77704         and sweeter "eval x=$x".
77705         * config/srclist.txt: Get lib/argp* from glibc.
77706
77707 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77708
77709         * lib/mktime.c: Fix some boundary cases and remove need for floating
77710         point.
77711
77712         Issue a compile-time diagnostic if time_t is floating point, or if
77713         two's complement arithmetic is not in effect, or if arithmetic
77714         right shift does not propagate the sign.  These assumptions were
77715         all in the original code but they weren't checked.
77716
77717         (TIME_T_MIDPOINT, verify): New macros.
77718         (__isleap): Remove; it has integer overflow problems.
77719         (leapyear): New function, without those problems.
77720         (ydhms_tm_diff): Remove; splitting into two parts.
77721         (ydhms_diff): New function, containing the arithmetic part of
77722         the old ydhms_tm_diff function.  Issue a compile-time
77723         diagnostic if we are not using C99 integer division.
77724         Avoid casts when possible.
77725         (guess_time_tm): New function, containing the checking part of
77726         the old ydhms_tm_diff function.  Return the new value, rather than
77727         the difference between it and the old.  Accept a new argument T
77728         so that *T specifies the old value.  Check for overflow in the result.
77729
77730         (__mktime_internal): Use a time_t offset, not a long int offset.
77731         This undoes the 2003-06-04 change, which is no longer needed now
77732         that we have better overflow checking.
77733         (localtime_offset): Likewise.
77734
77735         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77736         and long are 64-bit but int is only 32-bit.
77737         (ydhms_diff): Use long int to store year1 and yday1.
77738         Issue a compile-time diagnostic if long int is not wide enough.
77739
77740         (__mktime_internal): Use long int to store adjusted year and yday.
77741         Use plain C rather than preprocessor commands, if that doesn't
77742         affect efficiency.
77743         Check for overflow (and try to repair) after each probe
77744         rather than checking only at the very end.  This avoids some bugs
77745         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77746         does not equal GMT offset at maximum time).
77747         Use integer to check for overflow rather than floating point; this
77748         is more portable to non-IEEE hosts, and is a tad faster.
77749         When we detect that we are oscillating between two values,
77750         don't check whether tm_isdst has the requested value, since
77751         we already know the answer.  When tm_isdst has the wrong value,
77752         use a different heuristic to find the right one, based on the
77753         extreme values actually observed in practice in tz2003a,
77754         rather than the (overly optimistic) "previous 3 calendar quarters".
77755
77756         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77757         "T const" to accommodate glibc style.
77758         (check_result): Use less-confusing report format.  "long" -> "long int.
77759         (main): Likewise.
77760         Don't loop if the iteration overflows time_t.
77761         Allow a negative step in the iteration.
77762
77763 2003-07-06  Karl Berry  <karl@gnu.org>
77764
77765         * config/depcomp: update from automake.
77766         * config/config.sub: update from prep.
77767
77768 2003-07-03  Karl Berry  <karl@gnu.org>
77769
77770         * config/config.guess: update from prep.
77771
77772 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77773
77774         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77775         xreadlink.c now includes it unconditionally.
77776
77777 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77778
77779         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77780         having it depend on HAVE_SYS_TYPES_H.
77781
77782 2003-07-01  Bruno Haible  <bruno@clisp.org>
77783
77784         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77785         <sys/types.h> should be sufficient.
77786         Reported by Paul Eggert.
77787
77788 2003-06-26  Karl Berry  <karl@gnu.org>
77789
77790         * config/depcomp: update from automake.
77791
77792 2003-06-26  Bruno Haible  <bruno@clisp.org>
77793
77794         * modules/human: Depend on module stdbool.
77795
77796 2003-06-25  Bruno Haible  <bruno@clisp.org>
77797
77798         * modules/readlink: New file.
77799         * modules/xreadlink: Depend on it.
77800         * MODULES.html.sh (func_all_modules): Add readlink.
77801
77802 2003-06-25  Bruno Haible  <bruno@clisp.org>
77803
77804         * m4/readlink.m4: New file.
77805
77806 2003-06-25  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/readlink.c: New file.
77809
77810 2003-06-22  Karl Berry  <karl@gnu.org>
77811
77812         * config/srclist.txt: update mkinstalldirs from automake.
77813         * config/mkinstalldirs: update.
77814
77815 2003-06-22  Bruno Haible  <bruno@clisp.org>
77816
77817         Portability to mingw32.
77818         * m4/ssize_t.m4: New file, from GNU gettext.
77819         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77820         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77821
77822 2003-06-22  Bruno Haible  <bruno@clisp.org>
77823
77824         * modules/safe-read: Add m4/ssize_t.m4.
77825         * modules/xreadlink: Add m4/ssize_t.m4.
77826
77827 2003-06-20  Bruno Haible  <bruno@clisp.org>
77828
77829         Assume C89, so PARAMS isn't needed.
77830         * lib/unicodeio.h (PARAMS): Remove.
77831         * lib/unicodeio.c: Don't use PARAMS.
77832
77833 2003-06-18  Karl Berry  <karl@gnu.org>
77834
77835         * config/config.{guess,sub}: update from prep.
77836
77837 2003-06-18  Jim Meyering  <jim@meyering.net>
77838
77839         Merge changes from coreutils.
77840         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77841         Remove explicit declarations of xmalloc and realloc.
77842         Include xalloc.h.
77843         (read_utmp): Remove anachronistic cast of xmalloc.
77844
77845 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77846
77847         Assume C89, so PARAMS isn't needed.
77848         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77849         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77850         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77851         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77852         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77853         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77854         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77855         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77856         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77857         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77858         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77859         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77860         no longer needed. Anyway, config.h should always be included before any
77861         other file.
77862
77863 2003-06-11  Simon Josefsson  <jas@extundo.com>
77864
77865         * modules/sysexits: New file.
77866         * MODULES.html.sh (func_all_modules): Add sysexits.
77867
77868 2003-06-11  Simon Josefsson  <jas@extundo.com>
77869
77870         * lib/sysexit_.h: New file.
77871
77872 2003-06-11  Derek Price  <derek@ximbiot.com>
77873
77874         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77875         necessary.
77876
77877 2003-06-11  Bruno Haible  <bruno@clisp.org>
77878
77879         * m4/sysexits.m4: New file.
77880
77881 2003-06-10  Simon Josefsson  <jas@extundo.com>
77882
77883         * lib/argp.h: New file, from glibc.
77884         * lib/argp-ba.c: New file, from glibc.
77885         * lib/argp-eexst.c: New file, from glibc.
77886         * lib/argp-fmtstream.c: New file, from glibc.
77887         * lib/argp-fmtstream.h: New file, from glibc.
77888         * lib/argp-fs-xinl.c: New file, from glibc.
77889         * lib/argp-help.c: New file, from glibc.
77890         * lib/argp-namefrob.h: New file, from glibc.
77891         * lib/argp-parse.c: New file, from glibc.
77892         * lib/argp-pv.c: New file, from glibc.
77893         * lib/argp-pvh.c: New file, from glibc.
77894         * lib/argp-xinl.c: New file, from glibc.
77895
77896 2003-06-10  Simon Josefsson  <jas@extundo.com>
77897
77898         * modules/strchrnul: New file.
77899
77900 2003-06-10  Simon Josefsson  <jas@extundo.com>
77901
77902         * modules/argp: New file.
77903
77904 2003-06-10  Simon Josefsson  <jas@extundo.com>
77905
77906         * m4/strchrnul.m4: New file.
77907
77908 2003-06-10  Simon Josefsson  <jas@extundo.com>
77909
77910         * lib/strchrnul.h: New file.
77911         * lib/strchrnul.c: New file.
77912
77913 2003-06-10  Bruno Haible  <bruno@clisp.org>
77914
77915         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77916
77917 2003-06-07  Karl Berry  <karl@gnu.org>
77918
77919         * config/config.{guess,sub}: update from prep.
77920
77921 2003-06-07  Jim Meyering  <jim@meyering.net>
77922
77923         * modules/strtod: Use $(...) notation, not @...@ for
77924         AC_REPLACE'd variables.
77925         * modules/localcharset: Likewise.
77926
77927 2003-06-07  Jim Meyering  <jim@meyering.net>
77928
77929         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77930         in place of my name in the copyright comment.
77931         Remove definition and uses of __P.
77932
77933         From coreutils.
77934         * lib/stat.c: Don't declare xmalloc explicitly.
77935         Instead, include "xalloc.h".
77936         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77937         xrealloc, and xcalloc return values.
77938         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77939         Improve comment.
77940         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77941
77942 2003-06-07  Bruno Haible  <bruno@clisp.org>
77943
77944         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77945         avoid AC_CONFIG_LINKS.
77946         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77947         fnmatch.h, to avoid AC_CONFIG_LINKS.
77948         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77949
77950 2003-06-07  Bruno Haible  <bruno@clisp.org>
77951
77952         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77953         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77954         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77955         directory.
77956         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77957         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77958         directory.
77959
77960 2003-06-06  Jim Meyering  <jim@meyering.net>
77961
77962         Merge from coreutils.
77963         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77964         Consolidate declarations and initializations of *_base* locals.
77965
77966         Merge from coreutils.
77967         This avoids a core dump on systems without GNU putenv,
77968         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77969         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77970         (unsetenv): New static function, from GNU libc.
77971         (rpl_putenv): Use it.
77972
77973         * lib/modechange.c: Remove trailing blanks.
77974
77975         Merge from coreutils.
77976         * lib/fsusage.c: Remove declaration of statfs.
77977         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77978
77979         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77980
77981 2003-06-06  Jim Meyering  <jim@meyering.net>
77982
77983         * lib/stdbool_.h: Renamed from stdbool.h.in.
77984
77985 2003-06-06  Jim Meyering  <jim@meyering.net>
77986             Bruno Haible  <bruno@clisp.org>
77987
77988         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77989         Adjust Makefile.am snippet not to redirect directly to target.
77990         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77991
77992 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77993
77994         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77995         mismatch, look in future quarters as well as past.  This fixes a
77996         bug when processing fall-backwards gaps immediately after a long
77997         period of daylight-saving time.
77998
77999         * lib/mktime.c: Assume freestanding C89 or better.
78000         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78001         (__P): Remove; not used.
78002         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78003         (mktime, not_equal_tm, print_tm, check_result,
78004         main): Use prototypes.  Use const * where appropriate.
78005         (main): Fix typo in testing code that uncovered by above changes.
78006         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78007
78008 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78009
78010         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78011         locale.h, localeconv.  This merges changes from coreutils.
78012
78013         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78014         It can be removed after the next Autoconf is released.
78015         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78016         needed.
78017
78018 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78019
78020         * lib/mktime.c: Fix Debian bug 177940
78021         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78022         (localtime_offset): Now long int, not time_t, because we want it
78023         to be guaranteed to be signed.  All uses changed.
78024         (__mktime_internal): If overflow would occur when adding offset,
78025         don't add it.
78026
78027         Merge 'human' changes from coreutils.  Rewrite to support
78028         locale-specific notations like thousands separators.
78029         * lib/human.c: Simplify authorship notice.
78030         Include human.h immediately after config.h.
78031         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78032         <limits.h>: Do not include, since human.h does.
78033         (SIZE_MAX, UINTMAX_MAX): New macros.
78034         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78035         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78036         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78037         (power_letter): Renamed from suffixes.
78038         (generate_suffix_backwards): Remove.
78039         (adjust_value): Now takes int style (because of human.h changes)
78040         and long double value (for greater precision on some platforms).
78041         (group_number): New function.
78042         (human_readable): Use it.  Use integer options, not enum.
78043         Put the options before the sizes in the arg list.
78044         Support all the new options.
78045         The old human_readable function has been removed;
78046         use inttostr.h instead.
78047         (human_readable, default_block_size, humblock):
78048         Use uintmax_t, not int, for block sizes.
78049         (human_readable_inexact, block_size_types): Remove.
78050         (block_size_opts): New constant.
78051         (human_options): Renamed from human_block_size, with new signature
78052         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78053         * lib/human.h: Add copyright and authorship notice.
78054         Include <limits.h> and <stdbool.h> unconditionally.
78055         (PARAMS): Remove.  All uses removed.
78056         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78057         (enum human_inexact_style): Remove tag; now a nameless enum.
78058         (human_floor, human_ceiling, human_round_to_even): Now have
78059         values 2, 0, 1 rather than -1, 1, 0.
78060         (human_group_digits, human_suppress_point_zero, human_autoscale,
78061         human_base_1024, human_SI, human_B): New constants.
78062         (human_readable_inexact, human_block_size): Remove.
78063         (human_readable): Size args are now uintmax_t, not int.
78064         (human_options): New decl.
78065
78066         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78067         unnecessary now that we assume C89 or better.  This change
78068         imported from coreutils.
78069
78070         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78071         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78072         in the 2003-05-30 sync from glibc.
78073
78074         .h files should stand alone, but we shouldn't include <sys/types.h>
78075         if we can get away with just <stddef.h>.
78076
78077         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78078         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78079         rather than <sys/types.h>, as we merely need size_t.
78080         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78081         to get size_t.
78082         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78083         Include <stdio.h>, to get FILE.
78084         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78085         memcasecmp.h has included <stddef.h> and all we need is size_t.
78086         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78087         our interface, instead of including <sys/types.h>
78088
78089 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78090
78091         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78092         now, as glibc mktime is buggy on non-glibc systems.
78093
78094 2003-06-03  Karl Berry  <karl@gnu.org>
78095
78096         * config/config.sub: update from prep.
78097
78098 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78099
78100         [from coreutils]
78101         Fix some minor time-related bugs with POSIX time arguments.
78102         Some valid time stamps were being rejected (notably -1, and
78103         time stamps before 1900 on 64-bit hosts).  And some invalid
78104         time stamps were being accepted, e.g. September 31.
78105
78106         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78107         that we can return (time_t) -1 successfully.
78108         * lib/posixtm.c: Likewise.
78109         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78110         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78111         (t): Remove static var.
78112         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78113         of static var.  All uses changed.
78114         (year): Do not reject years before 1900; they can occur with
78115         64-bit time_t.
78116         (posix_time_parse): Do not check for out-of-range components;
78117         that is now the caller's responsibility, since our checks were
78118         only approximations.
78119         (posixtime): Use mktime to check for out-of-range components,
78120         since it knows them exactly.
78121         If mktime returns (time_t) -1, check whether an error actually occurred
78122         by invoking localtime on -1.
78123         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78124         posixtime failures better.
78125         Improve the test data (in comments only).
78126
78127 2003-06-02  Karl Berry  <karl@gnu.org>
78128
78129         * config/mkinstalldirs (version): new variable.
78130         (--version): new option.
78131         (usage): improve message.
78132
78133 2003-05-30  Karl Berry  <karl@gnu.org>
78134
78135         * lib/mktime.c: update from libc.
78136
78137 2003-05-30  Bruno Haible  <bruno@clisp.org>
78138
78139         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78140         * config/config.rpath: Upgrade to gettext-0.12.1.
78141
78142 2003-05-30  Bruno Haible  <bruno@clisp.org>
78143
78144         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78145         * m4/nls.m4: New file, from gettext-0.12.1.
78146         * m4/po.m4: New file, from gettext-0.12.1.
78147         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78148
78149 2003-05-30  Bruno Haible  <bruno@clisp.org>
78150
78151         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78152         * lib/localcharset.h: Likewise.
78153         * lib/localcharset.c: Likewise.
78154
78155 2003-05-29  Karl Berry  <karl@gnu.org>
78156
78157         * config/config.rpath: update from gettext.
78158
78159 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78160
78161         Assume the headers required for C89 freestanding compilers.
78162         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78163         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78164         * m4/human.m4 (gl_HUMAN): Likewise.
78165         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78166         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78167         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78168         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78169         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78170         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78171
78172 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78173
78174         Assume the headers required for C89 freestanding compilers.
78175         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78176         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78177         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78178         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78179         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78180         define, since <limits.h> is guaranteed to do that.
78181         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78182         * lib/exclude.c: Include <stdbool.h> unconditionally.
78183         * lib/tempname.c: Include <stddef.h> unconditionally.
78184         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78185         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78186         <stddef.h> does that.
78187         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78188         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78189         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78190         needed.
78191         * lib/xstrtol.c: Likewise.
78192         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78193         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78194
78195         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78196         warnings on some platforms.
78197
78198         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78199         arbitrarily.
78200
78201 2003-05-26  Jim Meyering  <jim@meyering.net>
78202
78203         Merge in a change from coreutils:
78204         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78205         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78206         that condition, rather than `-1' which is slightly misleading.
78207         Change the name of the cache variable to have the gl_ prefix.
78208         Prompted by a patch from Richard Dawe for DJGPP.
78209
78210 2003-05-24  Karl Berry  <karl@gnu.org>
78211
78212         * config/config.guess: update from prep.
78213
78214 2003-05-22  Karl Berry  <karl@gnu.org>
78215
78216         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78217
78218 2003-05-20  Karl Berry  <karl@gnu.org>
78219
78220         * config/config.guess: update from prep.
78221
78222 2003-05-18  Karl Berry  <karl@gnu.org>
78223
78224         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78225         might actually be set by the user.
78226
78227         * config/depcomp, install-sh, mdate-sh: update from automake.
78228
78229 2003-05-17  Bruno Haible  <bruno@clisp.org>
78230
78231         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78232         invalid expansion for AC_EGREP_CPP.
78233         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78234         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78235         Suggested by Akim Demaille <akim@epita.fr> in
78236         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78237
78238 2003-05-12  Jim Meyering  <jim@meyering.net>
78239
78240         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78241         the space-padded-by-default conversion specifiers, %e, %k, %l.
78242
78243 2003-05-12  Bruno Haible  <bruno@clisp.org>
78244
78245         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78246         the string is longer than 4 KB.
78247
78248 2003-05-11  Karl Berry  <karl@gnu.org>
78249
78250         * config/config.{guess,sub}: update from prep.
78251
78252 2003-05-09  Bruno Haible  <bruno@clisp.org>
78253
78254         * modules/error: Add m4/strerror_r.m4 to file list.
78255
78256 2003-05-03  Bruno Haible  <bruno@clisp.org>
78257
78258         Upgrade to Unicode-4.0.
78259         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78260         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78261         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78262         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78263         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78264         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78265         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78266         Change width of U+E0100..U+E01EF from 1 to 0.
78267
78268 2003-04-25  Jim Meyering  <jim@meyering.net>
78269
78270         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78271         of type size_t, not int.
78272
78273 2003-04-25  Bruno Haible  <bruno@clisp.org>
78274
78275         * lib/copy-file.c: Include <stddef.h>, for size_t.
78276
78277 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78278
78279         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78280         code which expansion is under static control.  Patch imported from
78281         Akim Demaille's patch to Bison; see
78282         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78283
78284 2003-04-14  Bruno Haible  <bruno@clisp.org>
78285
78286         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78287
78288 2003-04-11  Jim Meyering  <jim@meyering.net>
78289
78290         Merge changes from Coreutils.
78291
78292         2003-03-22  Jim Meyering  <jim@meyering.net>
78293
78294         * lib/strftime.c (widen): Cast alloca return value to proper type.
78295
78296         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78297
78298         From GNU libc.
78299         * lib/strftime.c (my_strftime): Handle very large width
78300         specifications for numeric values correctly.  Improve checks for
78301         overflow.
78302
78303         2003-01-19  Jim Meyering  <jim@meyering.net>
78304
78305         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78306         definitions.
78307         (nl_get_alt_digit) [! defined my_strftime]: Define.
78308         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78309         _nl_get_alt_digit and _nl_get_walt_digit.
78310
78311         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78312         libc. These changes have no effect outside of _LIBC.
78313
78314 2003-04-10  Bruno Haible  <bruno@clisp.org>
78315
78316         * modules/findprog: New file.
78317         * MODULES.html.sh (func_all_modules): Add it.
78318
78319 2003-04-10  Bruno Haible  <bruno@clisp.org>
78320
78321         * m4/findprog.m4: New file.
78322         * m4/eaccess.m4: New file.
78323
78324 2003-04-10  Bruno Haible  <bruno@clisp.org>
78325
78326         * lib/findprog.h: New file, from GNU gettext.
78327         * lib/findprog.c: New file, from GNU gettext.
78328
78329 2003-04-05  Jim Meyering  <jim@meyering.net>
78330
78331         Merge changes from Coreutils.
78332
78333         * lib/exclude.h (PARAMS): Remove definition and uses.
78334         * lib/exclude.c: Remove uses of `PARAMS'.
78335
78336         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78337         Add test-cases for DOS filenames. Declare program_name.
78338         (main): Set up program_name.  Patch by Rich Dawe.
78339
78340         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78341         error from mntctl.
78342         Use mntctl's return value to drive the entry-processing loop, since
78343         we can't rely on the value of the vmt_length member in the last
78344         entry.  On some systems doing so could result in exhausting
78345         virtual memory.  Based in part on a patch from Mike Jetzer.
78346
78347 2003-04-04  Bruno Haible  <bruno@clisp.org>
78348
78349         * modules/linebreak: New file.
78350         * MODULES.html.sh (func_all_modules): Add it.
78351
78352 2003-04-04  Bruno Haible  <bruno@clisp.org>
78353
78354         * m4/linebreak.m4: New file.
78355
78356 2003-04-04  Bruno Haible  <bruno@clisp.org>
78357
78358         * lib/linebreak.h: New file, from GNU gettext.
78359         * lib/linebreak.c: New file, from GNU gettext with slight
78360         modifications.
78361         * lib/lbrkprop.h: New file, from GNU gettext.
78362
78363 2003-04-03  Bruno Haible  <bruno@clisp.org>
78364
78365         * modules/utf8-ucs4: New file.
78366         * modules/utf16-ucs4: New file.
78367         * modules/ucs4-utf8: New file.
78368         * modules/ucs4-utf16: New file.
78369         * MODULES.html.sh (func_all_modules): Add them.
78370
78371 2003-04-03  Bruno Haible  <bruno@clisp.org>
78372
78373         * m4/utf-ucs4.m4: New file.
78374         * m4/ucs4-utf.m4: New file.
78375
78376 2003-04-03  Bruno Haible  <bruno@clisp.org>
78377
78378         * lib/utf8-ucs4.h: New file, from GNU gettext.
78379         * lib/utf16-ucs4.h: New file, from GNU gettext.
78380         * lib/ucs4-utf8.h: New file, from GNU gettext.
78381         * lib/ucs4-utf16.h: New file, from GNU gettext.
78382
78383 2003-04-02  Bruno Haible  <bruno@clisp.org>
78384
78385         * modules/binary-io: New file.
78386         * MODULES.html.sh (func_all_modules): Add it.
78387
78388 2003-04-02  Bruno Haible  <bruno@clisp.org>
78389
78390         * lib/binary-io.h: New file, from GNU gettext.
78391
78392 2003-04-01  Bruno Haible  <bruno@clisp.org>
78393
78394         * modules/pathname: New file.
78395         * MODULES.html.sh (func_all_modules): Add it.
78396
78397 2003-04-01  Bruno Haible  <bruno@clisp.org>
78398
78399         * lib/pathname.h: New file, from GNU gettext.
78400         * lib/concatpath.c: New file, from GNU gettext.
78401
78402 2003-03-30  Bruno Haible  <bruno@clisp.org>
78403
78404         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78405
78406 2003-03-30  Bruno Haible  <bruno@clisp.org>
78407
78408         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78409         function chown() doesn't exist.
78410
78411 2003-03-28  Bruno Haible  <bruno@clisp.org>
78412
78413         * modules/copy-file: New file.
78414         * MODULES.html.sh (func_all_modules): Add it.
78415
78416 2003-03-28  Bruno Haible  <bruno@clisp.org>
78417
78418         * m4/copy-file.m4: New file.
78419
78420 2003-03-28  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/copy-file.h: New file, from GNU gettext.
78423         * lib/copy-file.c: New file, from GNU gettext.
78424
78425 2003-03-18  Jim Meyering  <jim@meyering.net>
78426
78427         * lib/quote.c (quote_n): Fix typo in comment.
78428
78429 2003-03-18  Bruno Haible  <bruno@clisp.org>
78430
78431         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78432         checking.
78433         * m4/onceonly_2_57.m4: Likewise.
78434
78435 2003-03-17  Bruno Haible  <bruno@clisp.org>
78436
78437         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78438         (m4_quote): Remove macro.
78439         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78440
78441 2003-03-14  Jim Meyering  <jim@meyering.net>
78442
78443         Merge changes from Coreutils.
78444         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78445         to be const, in order to avoid warnings.
78446         (obstack_room): Likewise.
78447         (obstack_empty_p): Likewise.
78448
78449 2003-03-14  Bruno Haible  <bruno@clisp.org>
78450
78451         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78452         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78453
78454 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78455
78456         Merge changes from Bison.
78457         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78458         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78459         when compiling Bison 1.875's `bitset bset = obstack_alloc
78460         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78461         * lib/hash.c: Include <stdbool.h> unconditionally.
78462
78463 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78464
78465         * m4/onceonly.m4 (m4_quote): New macro.
78466         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78467         Quote AC_FOREACH variable-expansions properly.
78468
78469 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78470
78471         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78472
78473 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78474
78475         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78476         Reported by Bruce Becker; see:
78477         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78478
78479 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78480             Bruno Haible  <bruno@clisp.org>
78481
78482         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78483         Reported by John Hughes, see
78484         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78485
78486 2003-02-20  Bruno Haible  <bruno@clisp.org>
78487
78488         * MODULES.html.sh (func_all_modules): Add poll.
78489
78490 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78491
78492         * modules/poll: New file.
78493
78494 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78495
78496         * lib/poll_.h: New file.
78497         * lib/poll.c: New file.
78498
78499 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78500
78501         * m4/poll.m4: New file.
78502
78503 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78504
78505         * modules/mathl: New file.
78506
78507 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78508
78509         * lib/mathl.h: New file.
78510         * lib/acosl.c: New file.
78511         * lib/asinl.c: New file.
78512         * lib/atanl.c: New file.
78513         * lib/ceill.c: New file.
78514         * lib/cosl.c: New file.
78515         * lib/expl.c: New file.
78516         * lib/floorl.c: New file.
78517         * lib/frexpl.c: New file.
78518         * lib/ldexpl.c: New file.
78519         * lib/logl.c: New file.
78520         * lib/sincosl.c: New file.
78521         * lib/sinl.c: New file.
78522         * lib/sqrtl.c: New file.
78523         * lib/tanl.c: New file.
78524         * lib/trigl.c: New file.
78525         * lib/trigl.h: New file.
78526
78527 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78528
78529         * m4/mathl.m4: New file.
78530
78531 2003-02-18  Bruno Haible  <bruno@clisp.org>
78532
78533         * MODULES.html.sh (func_all_modules): Add mathl.
78534
78535 2003-02-17  Bruno Haible  <bruno@clisp.org>
78536
78537         * modules/mkdtemp: New module.
78538         * MODULES.html.sh (func_all_modules): Add it.
78539
78540 2003-02-17  Bruno Haible  <bruno@clisp.org>
78541
78542         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78543
78544 2003-02-17  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/mkdtemp.h: New file, from GNU gettext.
78547         * lib/mkdtemp.c: New file, from GNU gettext.
78548
78549 2003-02-02  Jim Meyering  <jim@meyering.net>
78550
78551         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78552         e.g. glibc-2.2.93.
78553
78554 2003-01-31  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78557         'rpl_rename'.
78558         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78559         'rpl_strnlen'.
78560         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78561         'rpl_strtod'.
78562         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78563         'rpl_utime'.
78564
78565 2003-01-31  Bruno Haible  <bruno@clisp.org>
78566
78567         * lib/rename.c: #undef rename before defining rpl_rename.
78568         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78569
78570 2003-01-30  Bruno Haible  <bruno@clisp.org>
78571
78572         * modules/vasnprintf, modules/vasprintf: New modules.
78573         * MODULES.html.sh (func_all_modules): Add them.
78574
78575 2003-01-30  Bruno Haible  <bruno@clisp.org>
78576
78577         * m4/signed.m4: New file, from GNU gettext.
78578         * m4/longdouble.m4: New file, from GNU gettext.
78579         * m4/wchar_t.m4: New file, from GNU gettext.
78580         * m4/wint_t.m4: New file, from GNU gettext.
78581         * m4/vasnprintf.m4: New file.
78582         * m4/vasprintf.m4: New file.
78583
78584 2003-01-30  Bruno Haible  <bruno@clisp.org>
78585
78586         * lib/printf-args.h: New file, from GNU gettext.
78587         * lib/printf-args.c: New file, from GNU gettext.
78588         * lib/printf-parse.h: New file, from GNU gettext.
78589         * lib/printf-parse.c: New file, from GNU gettext.
78590         * lib/vasnprintf.h: New file, from GNU gettext.
78591         * lib/vasnprintf.c: New file, from GNU gettext.
78592         * lib/asnprintf.c: New file, from GNU gettext.
78593         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78594         * lib/vasprintf.c: New file, from GNU gettext.
78595         * lib/asprintf.c: New file, from GNU gettext.
78596
78597 2003-01-29  Bruno Haible  <bruno@clisp.org>
78598
78599         * modules/stpncpy: New module.
78600         * MODULES.html.sh (func_all_modules): Add it.
78601
78602 2003-01-29  Bruno Haible  <bruno@clisp.org>
78603
78604         * m4/stpncpy.m4: New file.
78605
78606 2003-01-29  Bruno Haible  <bruno@clisp.org>
78607
78608         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78609         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78610
78611 2003-01-28  Bruno Haible  <bruno@clisp.org>
78612
78613         * modules/c-ctype: New module.
78614         * MODULES.html.sh (func_all_modules): Add it.
78615
78616 2003-01-28  Bruno Haible  <bruno@clisp.org>
78617
78618         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78619         Paul Eggert.
78620         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78621         Paul Eggert.
78622
78623 2003-01-27  Bruno Haible  <bruno@clisp.org>
78624
78625         * modules/xsetenv: New module.
78626         * MODULES.html.sh (func_all_modules): Add it.
78627
78628 2003-01-27  Bruno Haible  <bruno@clisp.org>
78629
78630         * lib/xsetenv.h: New file, from GNU gettext.
78631         * lib/xsetenv.c: New file, from GNU gettext.
78632
78633 2003-01-23  Jim Meyering  <jim@meyering.net>
78634
78635         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78636         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78637
78638 2003-01-23  Bruno Haible  <bruno@clisp.org>
78639
78640         * modules/minmax: New module.
78641         * MODULES.html.sh (func_all_modules): Add it.
78642
78643 2003-01-23  Bruno Haible  <bruno@clisp.org>
78644
78645         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78646         Eggert.
78647
78648 2003-01-22  Bruno Haible  <bruno@clisp.org>
78649
78650         * modules/exit: New module.
78651         * MODULES.html.sh (func_all_modules): Add it.
78652
78653 2003-01-22  Bruno Haible  <bruno@clisp.org>
78654
78655         * lib/exit.h: New file, from GNU gettext.
78656
78657 2003-01-19  Bruno Haible  <bruno@clisp.org>
78658
78659         * gnulib-tool: Recognize option --extract-maintainer.
78660         (func_get_maintainer): New function.
78661         * modules/*: Add Maintainer entry.
78662
78663 2003-01-16  Jim Meyering  <jim@meyering.net>
78664
78665         * m4/regex.m4: The `regex' struct is both input and output.
78666         Initialize it before each use.  Patch by Tim Waugh.
78667
78668 2003-01-16  Bruno Haible  <bruno@clisp.org>
78669
78670         * MODULES.html.sh: Add a table of contents. Add the module name as
78671         leftmost column. Add hyperlinks.
78672
78673 2003-01-15  Bruno Haible  <bruno@clisp.org>
78674
78675         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78676
78677 2003-01-15  Bruno Haible  <bruno@clisp.org>
78678
78679         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78680         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78681         suffix.
78682
78683 2003-01-15  Bruno Haible  <bruno@clisp.org>
78684
78685         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78686
78687 2003-01-15  Bruno Haible  <bruno@clisp.org>
78688
78689         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78690         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78691
78692 2003-01-14  Jim Meyering  <jim@meyering.net>
78693
78694         * lib/same.c (same_name): Tweak a comment.
78695
78696 2003-01-14  Bruno Haible  <bruno@clisp.org>
78697
78698         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78699         when a string comparison is sufficient.
78700
78701 2003-01-14  Bruno Haible  <bruno@clisp.org>
78702
78703         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78704         'unsigned int'.
78705
78706 2003-01-14  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/hash-pjw.c: Add comment about low quality of this function.
78709
78710 2003-01-13  Bruno Haible  <bruno@clisp.org>
78711
78712         * modules/stpcpy: Distribute lib/stpcpy.h.
78713         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78714
78715 2003-01-13  Bruno Haible  <bruno@clisp.org>
78716
78717         * modules/*: Add a description.
78718         * modules/strpbrk: Fix Makefile.am snippet.
78719         * modules/strtoimax: Fix dependencies.
78720         * modules/strtoumax: Likewise.
78721
78722 2003-01-13  Bruno Haible  <bruno@clisp.org>
78723
78724         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78725         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78726         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78727
78728 2003-01-13  Bruno Haible  <bruno@clisp.org>
78729
78730         * gnulib-tool (func_create_testdir): Store config/* files in the main
78731         directory.
78732         * config.rpath: Move to ...
78733         * config/config.rpath: ... here.
78734         * modules/gettext: Contains config/config.rpath, not config.rpath.
78735         * modules/iconv: Likewise.
78736
78737 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78738
78739         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78740         to avoid collisions with libcurses and libreadline.
78741
78742         * m4/getstr.m4: Remove.
78743         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78744
78745 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78746
78747         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78748         to avoid collisions with libcurses and libreadline.
78749
78750         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78751         * lib/getstr.h, getstr.c: Remove.
78752         * lib/getline.c: Include "getline.h", to check interface.
78753         Move body of old getstr.c here: this defines MIN_CHUNK and
78754         declares getdelim2, which is renamed from getstr.
78755         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78756
78757         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78758         All uses changed.
78759         * lib/linebuffer.h: Likewise.
78760         (readline): Remove backward-compatibility macro.
78761
78762 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78763
78764         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78765         to avoid collisions with libcurses and libreadline.
78766         * getstr: Remove.
78767         * MODULES.html.sh: Remove getstr.
78768         * modules/getline: Depend on unlocked-io, not getstr.
78769
78770 2003-01-12  Jim Meyering  <jim@meyering.net>
78771
78772         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78773
78774 2003-01-10  Bruno Haible  <bruno@clisp.org>
78775
78776         * modules/alloca: Change Makefile.am requirements. Simplify Include
78777         requirements. Add lib/alloca_.h to file list.
78778
78779 2003-01-10  Bruno Haible  <bruno@clisp.org>
78780
78781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78782
78783 2003-01-10  Bruno Haible  <bruno@clisp.org>
78784
78785         * lib/alloca_.h: New file.
78786         * lib/getdate.y: Unconditionally include alloca.h.
78787         * lib/makepath.c: Likewise.
78788         * lib/setenv.c: Likewise.
78789         * lib/userspec.c: Likewise.
78790
78791 2003-01-09  Karl Berry  <karl@gnu.org>
78792
78793         * MODULES.html.sh: include `dirname $0` in PATH, to find
78794         gnulib-tool.
78795
78796 2003-01-09  Bruno Haible  <bruno@clisp.org>
78797
78798         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78799         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78800
78801 2003-01-09  Bruno Haible  <bruno@clisp.org>
78802
78803         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78804
78805 2003-01-09  Bruno Haible  <bruno@clisp.org>
78806
78807         * lib/stdbool.h.in: New file.
78808
78809 2003-01-09  Bruno Haible  <bruno@clisp.org>
78810
78811         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78812         * MODULES.html.sh: Likewise.
78813
78814 2003-01-08  Jim Meyering  <jim@meyering.net>
78815
78816         * lib/full-write.c: Undefine and define-away `const' after inclusion
78817         of errno.h, not before.  Suggestion from Bruno Haible.
78818
78819 2003-01-08  Bruno Haible  <bruno@clisp.org>
78820
78821         * modules/full-read: Depend on full-write.
78822
78823 2003-01-08  Bruno Haible  <bruno@clisp.org>
78824
78825         * lib/safe-read.c: Include specification header first, to ensure its
78826         selfcontainedness.
78827         * lib/full-write.c: Likewise.
78828
78829 2003-01-07  Jim Meyering  <jim@meyering.net>
78830
78831         * lib/full-write.c: Rework so that it may serve to define full_read,
78832         too.
78833         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78834
78835 2003-01-07  Bruno Haible  <bruno@clisp.org>
78836
78837         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78838         <inttypes.h>.
78839         * lib/xstrtol.h: Likewise.
78840         * lib/xstrtoimax.c: Likewise.
78841         * lib/xstrtoumax.c: Likewise.
78842         * lib/human.h: Likewise.
78843
78844         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78845         on systems that have <inttypes.h> but not <stdint.h>.
78846
78847 2003-01-07  Bruno Haible  <bruno@clisp.org>
78848
78849         * MODULES.html.sh: Add copyright notice.
78850         (missed_files): Omit CVS directory entries.
78851         (func_module): Make it work with sed-3.02.
78852         * MODULES.txt: Remove file.
78853
78854 2003-01-06  Jim Meyering  <jim@meyering.net>
78855
78856         * lib/version-etc.c: Update year in translatable copyright string.
78857
78858 2003-01-03  Karl Berry  <karl@gnu.org>
78859
78860         * config/config.{guess,sub}: update from prep.
78861
78862 2003-01-02  Karl Berry  <karl@gnu.org>
78863
78864         * doc/COPYING.DOC: belatedly updated to 1.2.
78865
78866 2003-01-01  Karl Berry  <karl@gnu.org>
78867
78868         * gnulib-tool (func_verify_module): report module name $module in
78869         error message, not $1.
78870         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78871         be created, only if it doesn't exist.
78872         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78873
78874 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78875
78876         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78877
78878 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78879
78880         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78881         memcmp if strcoll doesn't work.
78882
78883 2002-12-31  Bruno Haible  <bruno@clisp.org>
78884
78885         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78886         nonempty.
78887
78888 2002-12-31  Bruno Haible  <bruno@clisp.org>
78889
78890         * lib/memcoll.c (STRCOLL): New macro.
78891         (memcoll): Use it.
78892
78893 2002-12-31  Bruno Haible  <bruno@clisp.org>
78894
78895         * lib/localcharset.h: New file.
78896         * lib/localcharset.c: Include it.
78897         * lib/unicodeio.c: Likewise.
78898
78899 2002-12-31  Bruno Haible  <bruno@clisp.org>
78900
78901         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78902         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78903
78904 2002-12-31  Bruno Haible  <bruno@clisp.org>
78905
78906         * lib/getline.h: Include <stddef.h>, for size_t.
78907
78908         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78909         * lib/unicodeio.c: Don't include <stddef.h>.
78910
78911 2002-12-31  Bruno Haible  <bruno@clisp.org>
78912
78913         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78914         HAVE_TM_ZONE.
78915
78916 2002-12-24  Karl Berry  <karl@gnu.org>
78917
78918         * config/config.guess: update from prep.
78919
78920 2002-12-24  Bruno Haible  <bruno@clisp.org>
78921
78922         General infrasructure.
78923         * m4/README: Rewritten.
78924         * m4/onceonly.m4: New file.
78925         * m4/onceonly_2_57.m4: New file.
78926
78927         Module atexit.
78928         * m4/atexit.m4: New file.
78929
78930         Module strtod.
78931         * m4/strtod.m4: New file.
78932
78933         Module strtol.
78934         * m4/strtol.m4: New file.
78935
78936         Module strtoul.
78937         * m4/strtoul.m4: New file.
78938
78939         Module memchr.
78940         * m4/memchr.m4: New file.
78941
78942         Module memcmp.
78943         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78944         (jm_FUNC_MEMCMP): Invoke it.
78945
78946         Module memcpy.
78947         * m4/memcpy.m4: New file.
78948
78949         Module memmove.
78950         * m4/memmove.m4: New file.
78951
78952         Module memset.
78953         * m4/memset.m4: New file.
78954
78955         Module strcspn.
78956         * m4/strcspn.m4: New file.
78957
78958         Module strpbrk.
78959         * m4/strpbrk.m4: New file.
78960
78961         Module strstr.
78962         * m4/strstr.m4: New file.
78963
78964         Module strerror.
78965         * m4/strerror.m4: New file.
78966
78967         Module mktime.
78968         * m4/mktime.m4: Renamed from jm-mktime.m4.
78969         (gl_PREREQ_MKTIME): New macro.
78970         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78971
78972         Module malloc.
78973         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78974         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78975         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78976
78977         Module realloc.
78978         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78979         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78980         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78981
78982         Module strftime.
78983         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78984         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78985         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78986         gl_TM_GMTOFF.
78987         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78988
78989         Module xalloc.
78990         * m4/xalloc.m4: New file.
78991
78992         Module alloca.
78993         * m4/alloca.m4: New file.
78994
78995         Module putenv.
78996         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78997         (jm_FUNC_PUTENV): Invoke it.
78998
78999         Module setenv.
79000         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79001         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79002         when invoked twice.
79003         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79004         gt_FUNC_SETENV.
79005
79006         Module memrchr.
79007         * m4/memrchr.m4: New file.
79008
79009         Module stpcpy.
79010         * m4/stpcpy.m4: New file.
79011
79012         Module strcase.
79013         * m4/strcase.m4: New file.
79014
79015         Module strdup.
79016         * m4/strdup.m4: New file.
79017
79018         Module strnlen.
79019         * m4/strnlen.m4: New file.
79020
79021         Module strndup.
79022         * m4/strndup.m4: New file.
79023
79024         Module xstrtod.
79025         * m4/xstrtod.m4: New file.
79026
79027         Module xstrtol.
79028         * m4/xstrtol.m4: New file.
79029
79030         Module getdate.
79031         * m4/getdate.m4: New file.
79032
79033         Module unlocked-io.
79034         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79035         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79036         * m4/jm-glibc-io.m4n: Remove file.
79037
79038         Module long-options.
79039         * m4/long-options.m4: New file.
79040
79041         Module md5.
79042         * m4/md5.m4: New file.
79043
79044         Module sha.
79045         * m4/sha.m4: New file.
79046
79047         Module getstr.
79048         * m4/getstr.m4: New file.
79049
79050         Module getline.
79051         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79052         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79053         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79054         simply getline. Infoke gl_PREREQ_GETLINE.
79055
79056         Module obstack.
79057         * m4/obstack.m4: New file.
79058
79059         Module hash.
79060         * m4/hash.m4: New file.
79061
79062         Module readtokens.
79063         * m4/readtokens.m4: New file.
79064
79065         Module strverscmp.
79066         * m4/strverscmp.m4: New file.
79067
79068         Module stdbool.
79069         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79070         OSF/1.
79071
79072         Module strtoll.
79073         * m4/strtoll.m4: New file.
79074
79075         Module strtoull.
79076         * m4/strtoull.m4: New file.
79077
79078         Module strtoimax.
79079         * m4/strtoimax.m4: New file.
79080
79081         Module strtoumax.
79082         * m4/strtoumax.m4: New file.
79083
79084         Module xstrtoimax.
79085         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79086         jm_AC_PREREQ_XSTRTOIMAX.
79087         Moved the strtol prerequisites to strtol.m4.
79088         Moved the strtoll prerequisites to strtoll.m4.
79089         Moved the strtoimax prerequisites to strtoimax.m4.
79090
79091         Module xstrtoumax.
79092         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79093         jm_AC_PREREQ_XSTRTOUMAX.
79094         Moved the strtoul prerequisites to strtoul.m4.
79095         Moved the strtoull prerequisites to strtoull.m4.
79096         Moved the strtoumax prerequisites to strtoumax.m4.
79097
79098         Module chown.
79099         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79100         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79101
79102         Module dup2.
79103         * m4/dup2.m4: New file.
79104
79105         Module ftruncate.
79106         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79107         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79108
79109         Module getgroups.
79110         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79111         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79112
79113         Module gettimeofday.
79114         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79115         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79116         gl_PREREQ_GETTIMEOFDAY.
79117
79118         Module mkdir.
79119         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79120         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79121
79122         Module mkstemp.
79123         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79124         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79125         jm_AC_TYPE_UINTMAX_T.
79126         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79127
79128         Module stat.
79129         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79130         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79131
79132         Module lstat.
79133         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79134         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79135
79136         Module timespec.
79137         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79138         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79139         * m4/st_mtim.m4: Indentation.
79140
79141         Module nanosleep.
79142         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79143         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79144         gl_PREREQ_NANOSLEEP.
79145
79146         Module regex.
79147         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79148         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79149         (gl_REGEX): New macro.
79150
79151         Module rename.
79152         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79153         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79154
79155         Module rmdir.
79156         * m4/rmdir.m4: New file.
79157
79158         Module utime.
79159         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79160         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79161         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79162
79163         Module dirname.
79164         * m4/dirname.m4: New file.
79165
79166         Module getopt.
79167         * m4/getopt.m4: New file.
79168
79169         Module unistd-safer.
79170         * m4/unistd-safer.m4: New file.
79171
79172         Module fnmatch.
79173         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79174         declaration.
79175         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79176         (gl_FUNC_FNMATCH_POSIX): New macro.
79177         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79178         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79179         simply fnmatch.
79180
79181         Module exclude.
79182         * m4/exclude.m4: New file.
79183
79184         Module human.
79185         * m4/human.m4: New file.
79186
79187         Module acl.
79188         * m4/acl.m4: Nop.
79189
79190         Module backupfile.
79191         * m4/backupfile.m4: New file.
79192         * m4/d-ino.m4: Indentation.
79193
79194         Module fsusage.
79195         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79196         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79197         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79198
79199         Module dirfd.
79200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79201         requirements.
79202
79203         Module euidaccess.
79204         * m4/euidaccess.m4: New file.
79205
79206         Module file-type.
79207         * m4/file-type.m4: New file.
79208
79209         Module fileblocks.
79210         * m4/fileblocks.m4: New file.
79211
79212         Module filemode.
79213         * m4/filemode.m4: New file.
79214
79215         Module isdir.
79216         * m4/isdir.m4: New file.
79217
79218         Module lchown.
79219         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79220         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79221
79222         Module makepath.
79223         * m4/makepath.m4: New file.
79224
79225         Module modechange.
79226         * m4/modechange.m4: New file.
79227
79228         Module mountlist.
79229         * m4/mountlist.m4: New file.
79230         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79231         Indentation.
79232
79233         Module path-concat.
79234         * m4/path-concat.m4: New file.
79235
79236         Module pathmax.
79237         * m4/pathmax.m4: New file.
79238
79239         Module same.
79240         * m4/same.m4: New file.
79241
79242         Module save-cwd.
79243         * m4/save-cwd.m4: New file.
79244
79245         Module savedir.
79246         * m4/savedir.m4: New file.
79247
79248         Module xgetcwd.
79249         * m4/xgetcwd.m4: New file.
79250         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79251
79252         Module xreadlink.
79253         * m4/xreadlink.m4: New file.
79254
79255         Module safe-read.
79256         * m4/safe-read.m4: New file.
79257
79258         Module safe-write.
79259         * m4/safe-write.m4: New file.
79260
79261         Module closeout.
79262         * m4/closeout.m4: New file.
79263
79264         Module stdio-safer.
79265         * m4/stdio-safer.m4: New file.
79266
79267         Module getpass.
79268         * m4/getpass.m4: New file.
79269
79270         Module getugroups.
79271         * m4/getugroups.m4: New file.
79272
79273         Module group-member.
79274         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79275         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79276
79277         Module idcache.
79278         * m4/idcache.m4: New file.
79279
79280         Module userspec.
79281         * m4/userspec.m4: New file.
79282
79283         Module gettime.
79284         * m4/clock_time.m4: New file.
79285         * m4/gettime.m4: New file.
79286
79287         Module settime.
79288         * m4/settime.m4: New file.
79289
79290         Module posixtm.
79291         * m4/posixtm.m4: New file.
79292
79293         Module gethostname.
79294         * m4/gethostname.m4: New file.
79295
79296         Module canon-host.
79297         * m4/canon-host.m4: New file.
79298
79299         Module gettext.
79300         * m4/codeset.m4: New file, from gettext-0.11.5.
79301         * m4/gettext.m4: New file, from gettext-0.11.5.
79302         * m4/glibc21.m4: New file, from gettext-0.11.5.
79303         * m4/iconv.m4: New file, from gettext-0.11.5.
79304         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79305         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79306         * m4/inttypes.m4: New file, from gettext-0.11.5.
79307         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79308         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79309         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79310         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79311         * m4/lib-link.m4: New file, from gettext-0.11.5.
79312         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79313         * m4/progtest.m4: New file, from gettext-0.11.5.
79314         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79315         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79316         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79317
79318         Module localcharset.
79319         * m4/localcharset.m4: New file.
79320
79321         Module hard-locale.
79322         * m4/hard-locale.m4: New file.
79323
79324         Module mbswidth.
79325         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79326         onceonly macros.
79327         * m4/mbrtowc.m4: Add comment.
79328
79329         Module memcasecmp.
79330         * m4/memcasecmp.m4: New file.
79331
79332         Module memcoll.
79333         * m4/memcoll.m4: New file.
79334
79335         Module unicodeio.
79336         * m4/unicodeio.m4: New file.
79337
79338         Module rpmatch.
79339         * m4/rpmatch.m4: New file.
79340
79341         Module yesno.
79342         * m4/yesno.m4: New file.
79343
79344         Module exitfail.
79345         * m4/exitfail.m4: New file.
79346
79347         Module c-stack.
79348         * m4/c-stack.m4 (gl_C_STACK): New macro.
79349         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79350
79351         Module error.
79352         * m4/error.m4 (gl_ERROR): New macro.
79353         (jm_PREREQ_ERROR): Use onceonly macros.
79354
79355         Module fatal.
79356         * m4/fatal.m4: New file.
79357
79358         Module getloadavg.
79359         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79360         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79361
79362         Module getpagesize.
79363         * m4/getpagesize.m4: New file.
79364
79365         Module getusershell.
79366         * m4/getusershell.m4: New file.
79367
79368         Module physmem.
79369         * m4/physmem.m4: New file.
79370
79371         Module posixver.
79372         * m4/posixver.m4: New file.
79373
79374         Module quotearg.
79375         * m4/quotearg.m4: New file.
79376
79377         Module quote.
79378         * m4/quote.m4: New file.
79379
79380         Module readutmp.
79381         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79382
79383         Module sig2str.
79384         * m4/sig2str.m4: New file.
79385
79386         Other.
79387         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79388         ulonglong.m4.
79389         * m4/intmax_t.m4: New file.
79390         * m4/d-type.m4: Indentation.
79391         * m4/jm-macros.m4: Update.
79392         * m4/prereq.m4 (jm_PREREQ): Update.
79393         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79394         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79395         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79396         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79397         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79398         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79399         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79400         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79401         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79402         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79403         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79404         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79405         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79406         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79407         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79408         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79409         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79410         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79411         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79412
79413 2002-12-24  Bruno Haible  <bruno@clisp.org>
79414
79415         * MODULES.txt: Update according to m4/ changes.
79416
79417         Module gettext.
79418         * config.rpath: New file, from gettext-0.11.5.
79419
79420         * modules/*: New module descriptions.
79421         * gnulib-tool: New file.
79422         * MODULES.html.sh: New file.
79423
79424 2002-12-21  Karl Berry  <karl@gnu.org>
79425
79426         * doc/fdl.texi: update to version 1.2.
79427
79428 2002-12-19  Karl Berry  <karl@gnu.org>
79429
79430         * config/config.guess: update from prep.
79431
79432 2002-12-18  Bruno Haible  <bruno@clisp.org>
79433
79434         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79435         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79436
79437 2002-12-17  Bruno Haible  <bruno@clisp.org>
79438
79439         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79440         stdlib.h, string.h.
79441
79442 2002-12-17  Bruno Haible  <bruno@clisp.org>
79443
79444         * lib/canon-host.c (strdup): Remove unused declaration.
79445
79446         * lib/fsusage.c: Include full_read.h.
79447         (get_fs_usage): Use full_read instead of safe_read.
79448
79449         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79450
79451 2002-12-12  Karl Berry  <karl@gnu.org>
79452
79453         * config/config.guess: update from prep.
79454
79455 2002-12-11  Bruno Haible  <bruno@clisp.org>
79456
79457         * m4/setenv.m4: New file, from gettext-0.11.5.
79458
79459 2002-12-11  Bruno Haible  <bruno@clisp.org>
79460
79461         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79462         not unsetenv().
79463         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79464         modifications:
79465
79466         2002-12-11  Bruno Haible  <bruno@clisp.org>
79467
79468                 * setenv.c (alloca): Fall back to malloc.
79469                 (freea): New macro.
79470                 (setenv): Use freea() to free memory allocated with alloca().
79471
79472         2002-11-13  Bruno Haible  <bruno@clisp.org>
79473
79474                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79475                 function declarations.
79476                 * unsetenv.c (unsetenv): Likewise.
79477
79478         2002-03-04  Bruno Haible  <bruno@clisp.org>
79479
79480                 Portability to AIX 4.3.3.
79481                 * unsetenv.c: New file, extracted from setenv.c.
79482                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79483
79484         2001-12-20  Bruno Haible  <bruno@clisp.org>
79485
79486                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79487                 use malloc instead. For SunOS 4.
79488
79489         2001-12-11  Bruno Haible  <bruno@clisp.org>
79490
79491                 * setenv.c: Declare alloca.
79492                 (compar_fn_t): New typedef.
79493                 (KNOWN_VALUE, STORE_VALUE): Use it.
79494
79495         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79496         setenv.h.
79497
79498 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79499
79500         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79501         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79502         Choose values that are less likely to collide with system fnmatch
79503         options.
79504         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79505         defined (e.g., a pure POSIX system).
79506         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79507         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79508
79509 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79510
79511         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79512         a pain in practice to deal with generated m4 files.  This change
79513         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79514
79515         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79516         and jm-glibc-io.m4, as they are no longer a special case.
79517         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79518         kludge and the auto-generation stuff.  Check only whether the
79519         functions are declared, not whether they exist, since older hosts
79520         that don't declare the functions can't use the optimization anyway.
79521
79522 2002-12-06  Jim Meyering  <jim@meyering.net>
79523
79524         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79525
79526         Merge in changes from libc's misc/error.c, in preparation
79527         for the merge of gnulib's changes back into libc.
79528
79529         * lib/error.c (_): Define only if not already defined.
79530         Move definition to follow all #include directives.
79531         Include unlocked-io.h only if !_LIBC.
79532         [_LIBC]: Include <libio/libioP.h>.
79533         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79534         (fflush): Tweak definition to use INTUSE.
79535         (putc): Define.
79536
79537 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79538
79539         * lib/alloca.c [defined emacs]: Include "lisp.h".
79540         (xalloc_die) [defined emacs]: New macro.
79541         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79542         [! defined emacs]: Include <xalloc.h>.
79543         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79544         (pointer): Typedef to POINTER_TYPE *.
79545         (malloc): Remove decl; we now always use xmalloc.
79546         (alloca): Use old-style definition, since Emacs needs this.
79547         Check for arithmetic overflow when computing combined size.
79548
79549 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79550
79551         Do not generate unlocked-io.h automatically, since it's easier to
79552         maintain it by hand.
79553
79554         * lib/unlocked-io.h: New file, from GNU diffutils,
79555         but with proper copyright notice and attribution.
79556         * lib/gen-uio: Remove.
79557         * lib/Makefile.am: Add copyright notice.
79558         (libfetish_a_SOURCES): Add unlocked-io.h.
79559         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79560         (DISTCLEANFILES, io_functions): Remove macros.
79561         (EXTRA_DIST): Remove gen_uio.
79562         (unlocked-io.h): Remove rule.
79563
79564 2002-12-04  Jim Meyering  <jim@meyering.net>
79565
79566         Reflect the fact that stat.c and lstat.c are no longer generated.
79567         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79568         (DISTCLEANFILES): Likewise.
79569         (EXTRA_DIST): Likewise.
79570         (all_local): Don't depend on stat.c or lstat.c.
79571         (stat.c, lstat.c): Remove rules.
79572         (EXTRA_DIST): Remove xstat.in.
79573
79574         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79575         * lib/stat.c: New file.  Contents mostly from xstat.in.
79576         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79577         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79578
79579         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79580         too.
79581         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79582
79583 2002-12-03  Jim Meyering  <jim@meyering.net>
79584
79585         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79586         but not semantics, to minimize the differences between these two files.
79587         (safe_read): Change comment to mention SAFE_READ_ERROR.
79588
79589         * lib/safe-read.c (IS_EINTR): Define.
79590         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79591
79592 2002-12-02  Jim Meyering  <jim@meyering.net>
79593
79594         * lib/safe-read.c (EINTR): Define.
79595         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79596         (INT_MAX): Provide fallback.
79597         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79598
79599         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79600
79601 2002-12-02  Bruno Haible  <bruno@clisp.org>
79602
79603         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79604         Define, taken from safe-read.c.
79605         (INT_MAX): Provide fallback.
79606         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79607         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79608
79609         * lib/safe-read.c (EINTR): Remove definition.
79610         (safe_read): Don't use EINTR if it is absent.
79611
79612 2002-12-01  Jim Meyering  <jim@meyering.net>
79613
79614         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79615         zero.
79616         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79617
79618 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79619
79620         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79621         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79622         with `if (! (value < limit)) abort ();', for readability.
79623
79624 2002-11-26  Karl Berry  <karl@gnu.org>
79625
79626         * lib/strdup.c: copy from libc again, with jim's ok.
79627         * lib/.cppi-disable: re-add strdup.c
79628
79629 2002-11-25  Karl Berry  <karl@gnu.org>
79630
79631         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79632         instead of "strtol.c".
79633
79634 2002-11-25  Karl Berry  <karl@gnu.org>
79635
79636         * config/install-sh: update from automake for variable quoting, $0 in
79637         error msgs, etc.
79638
79639         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79640         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79641         entry.
79642
79643 2002-11-25  Jim Meyering  <jim@meyering.net>
79644
79645         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79646
79647 2002-11-24  Karl Berry  <karl@gnu.org>
79648
79649         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79650         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79651
79652 2002-11-24  Jim Meyering  <jim@meyering.net>
79653
79654         Update from coreutils:
79655
79656         * lib/mktime.c: Merge in changes from libc.
79657
79658         Avoid a link-time failure on some Linux systems.
79659         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79660         (otherwise).
79661         (__mon_yday): Declare with the STATIC attribute.
79662         (__mktime_internal): Likewise.
79663         Based on a report from Greg Schafer.
79664
79665 2002-11-23  Jim Meyering  <jim@meyering.net>
79666
79667         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79668         Use `unsigned', not `int', as type of index.
79669
79670         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79671
79672         * lib/fsusage.c: Remove unneeded parentheses around operands of
79673         `defined'.
79674
79675 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79676
79677         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79678         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79679         so that we can be included first.
79680         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79681         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79682         No need to include stddef.h or sys/types.h any more.
79683         Surround local include files with "", not "<>".
79684         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79685         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79686         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79687         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79688         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79689         (ISPRINT): Remove; no longer needed now that we assume C89.
79690
79691         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79692         Preserve errno.
79693
79694         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79695         quotearg_char): Use SIZE_MAX rather than
79696         (size_t) -1 when we are talking about "infinity".
79697
79698         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79699
79700 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79701
79702         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79703         hint that one should use `if (! x) abort ();' rather than `assert
79704         (x);', and anyway it's one less thing to worry about configuring.
79705         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79706         hash_rehash, hash_insert): Use abort rather than assert.
79707
79708 2002-11-22  Bruno Haible  <bruno@clisp.org>
79709
79710         * lib/safe-read.h: Assume C89. Add comments.
79711         (safe_read): Change return type to size_t.
79712         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79713         byte counts > SSIZE_MAX correctly.
79714         * lib/safe-write.h: New file.
79715         * lib/safe-write.c: New file.
79716         * lib/full-read.h: New file.
79717         * lib/full-read.c: New file.
79718         * lib/full-write.h: Assume C89. Add comments.
79719         * lib/full-write.c: Include safe-write.h.
79720         (full_write): Rewritten to use safe_write.
79721         Suggested by Jim Meyering and Paul Eggert.
79722
79723 2002-11-21  Jim Meyering  <jim@meyering.net>
79724
79725         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79726
79727         Merge in changes from the coreutils.
79728
79729         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79730         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79731         <stdint.h>.
79732         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79733         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79734         int.  Work more efficiently if X is the same width as uintmax_t.
79735         Do not compare X to -1, to avoid bogus compiler warning.
79736         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79737         Don't assume that f_frsize and f_bsize are the same type.
79738
79739         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79740         warning on FreeBSD.
79741
79742         * lib/makepath.c (make_path): Restore umask *before* creating the final
79743         component.
79744         (make_path): Minor reformatting.
79745
79746         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79747         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79748         HAVE_MALLOC/HAVE_REALLOC.
79749
79750         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79751         dummy ones.  At least on GNU/Linux systems, `auto' means something
79752         else.
79753         From Michael Stone.
79754
79755 2002-11-21  Bruno Haible  <bruno@clisp.org>
79756
79757         Remove case insensitive option matching.
79758         * lib/argmatch.h (argcasematch): Remove declaration.
79759         (ARGCASEMATCH): Remove macro.
79760         (__xargmatch_internal): Remove case_sensitive argument.
79761         (XARGMATCH): Update.
79762         (XARGCASEMATCH): Remove macro.
79763         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79764         case_sensitive argument.
79765         (argcasematch): Remove function.
79766         (__xargmatch_internal): Remove case_sensitive argument.
79767         (main): Use XARGMATCH instead of XARGCASEMATCH.
79768
79769         * lib/xmalloc.c: Change compile-time error message. Add comment about
79770         required autoconf version.
79771
79772 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79773
79774         Merge argmatch cleanups from Bison.  Assume C89.
79775
79776         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79777         Include stdlib.h, for EXIT_FAILURE.
79778         Always include <string.h>, since we assume C89.
79779         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79780         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79781         Include <stddef.h> instead, since it's all we need for size_t.
79782         (PARAMS): Remove.  All uses removed.
79783         (ARRAY_CARDINALITY): Do not bother to #undef.
79784         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79785         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79786         Remove unnecessary parentheses.
79787         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79788         Insert necessary parentheses.
79789         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79790         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79791
79792 2002-11-19  Bruno Haible  <bruno@clisp.org>
79793
79794         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79795         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79796
79797         * lib/mbswidth.h (PARAMS): Remove macro.
79798         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79799         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79800
79801         * lib/gcd.h (PARAMS): Remove macro.
79802         (gcd): Use ANSI C function declarations.
79803         * lib/gcd.c (gcd): Likewise.
79804
79805 2002-11-15  Bruno Haible  <bruno@clisp.org>
79806
79807         * lib/strcspn.c: Include <stddef.h>.
79808         (strcspn): Use ANSI C function declaration. Change return type to
79809         size_t. Use NULL.
79810         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79811         (strpbrk): Use NULL.
79812         * lib/strpbrk.h (PARAMS): Remove macro.
79813         (strpbrk): Use ANSI C function declaration.
79814         * lib/strstr.c: Don't include <sys/types.h>.
79815         * lib/strstr.h (PARAMS): Remove macro.
79816         (strstr): Use ANSI C function declarations.
79817
79818 2002-11-14  Karl Berry  <karl@gnu.org>
79819
79820         * config/mkinstalldirs: `do' on separate line, instead of
79821         `for var; do'.
79822
79823 2002-11-06  Bruno Haible  <bruno@clisp.org>
79824
79825         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79826         * lib/gcd.c (gcd): Likewise.
79827
79828 2002-11-05  Bruno Haible  <bruno@clisp.org>
79829
79830         * lib/gcd.h: New file, from gettext-0.11.5.
79831         * lib/gcd.c: New file, from gettext-0.11.5.
79832
79833 2002-11-05  Bruno Haible  <bruno@clisp.org>
79834
79835         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79836         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79837         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79838         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79839
79840         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79841         <libintl.h>.
79842         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79843         <libintl.h>.
79844
79845         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79846         * lib/human.c: Include gettext.h instead of <libintl.h>.
79847         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79848         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79849         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79850         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79851         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79852         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79853         (textdomain): Remove definition.
79854         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79855
79856         * lib/long-options.c: Remove include of <libintl.h> and definition of
79857         _.
79858         * lib/same.c: Remove include of <libintl.h> and definition of _.
79859
79860 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79861
79862         * lib/config.charset: A few additions for Solaris.
79863
79864 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79865
79866         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79867         * lib/localcharset.c (locale_charset): Declare as extern "C".
79868
79869 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79870
79871         * lib/config.charset: msdos in uk_UA uses CP1125.
79872
79873 2002-11-04  Bruno Haible  <bruno@clisp.org>
79874
79875         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79876         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79877         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79878         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79879         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79880
79881 2002-11-04  Bruno Haible  <bruno@clisp.org>
79882
79883         * lib/localcharset.c (locale_charset): Don't return an empty string.
79884
79885 2002-11-04  Bruno Haible  <bruno@clisp.org>
79886
79887         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79888         aliases.
79889
79890 2002-11-04  Bruno Haible  <bruno@clisp.org>
79891
79892         * lib/config.charset: Update for newest glibc. Add canonical names
79893         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79894
79895 2002-11-04  Bruno Haible  <bruno@clisp.org>
79896
79897         * lib/config.charset: Add support for NetBSD.
79898
79899 2002-11-04  Bruno Haible  <bruno@clisp.org>
79900
79901         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79902
79903 2002-11-01  Bruno Haible  <bruno@clisp.org>
79904
79905         * configure.in: Add AC_CONFIG_AUX_DIR call.
79906         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79907         test/Makefile.
79908         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79909
79910 2002-09-28  Karl Berry  <karl@gnu.org>
79911
79912         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79913         installed automake until the next release, since changes have been
79914         made.
79915
79916 2002-09-25  Karl Berry  <karl@gnu.org>
79917
79918         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79919         * lib/getopt*: copy from libc/posix.
79920         * lib/gettext.h: copy from gettext.
79921         * lib/.cppi-disable: add strdup.c, gettext.h.
79922
79923 2002-09-25  Karl Berry  <karl@gnu.org>
79924
79925         * config/srclist.txt: enable gettext.h check.
79926         * config/config.{guess,sub}: update from prep.
79927         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79928                 from automake 1.6.3.
79929         See srclist*.
79930
79931 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79932
79933         * regex.c (PATFETCH): Remove the translating fetch.
79934         (PATFETCH_RAW): Rename to PATFETCH.
79935         (set_image_of_range): New fun.
79936         (SET_RANGE_TABLE_WORK_AREA): Use it.
79937         (regex_compile): Don't translate the pattern chars so eagerly.
79938         Only do it when inserting an `exactn' bytecode or when handling
79939         a char-range.
79940         (mutually_exclusive_p): Avoid empty statement.
79941
79942 2002-07-06  Jim Meyering  <meyering@lucent.com>
79943
79944         * m4/README: Don't mention Makefile.am.in.
79945         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79946
79947 2002-07-01  Jim Meyering  <meyering@lucent.com>
79948
79949         * lib/c-stack.c: Include sys/time.h.
79950         From Volker Borchert.
79951
79952 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79953
79954         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79955
79956 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79957
79958         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79959         New macro.  Use it uniformly instead of
79960         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79961         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79962         reported by Vin Shelton.
79963
79964 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79965
79966         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79967         Do not assume SA_SIGINFO behavior.
79968         Bug reported by Jim Meyering on NetBSD 1.5.2.
79969
79970 2002-06-22  Jim Meyering  <meyering@lucent.com>
79971
79972         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79973         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79974
79975         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79976         now that configure.ac uses AC_GNU_SOURCE.
79977         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79978         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79979
79980         Update to latest tools.  Suggestions from Paul Eggert.
79981         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79982         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79983         * m4/fnmatch.m4: Likewise.
79984         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79985         to AC_HEADER_STDBOOL
79986
79987 2002-06-22  Jim Meyering  <meyering@lucent.com>
79988
79989         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79990         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79991
79992 2002-06-22  Jim Meyering  <meyering@lucent.com>
79993
79994         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79995
79996         * lib/exitfail.c, exitfail.h: Likewise.
79997         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79998
79999         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80000         of fnmatch.h.
80001         (EXTRA_DIST): Add fnmatch_loop.c.
80002         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80003
80004         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80005         * lib/fnmatch.c: Update from diffutils-2.8.2.
80006         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80007         * lib/fnmatch.h: Remove file.
80008
80009 2002-06-21  Jim Meyering  <meyering@lucent.com>
80010
80011         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80012         * m4/mbrtowc.m4: Likewise.
80013
80014         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80015         * m4/mbswidth.m4: Reflect name change:
80016         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80017         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80018
80019         * m4/lib-link.m4: Update from gettext-0.11.2.
80020         * m4/gettext.m4: Likewise.
80021
80022         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80023         From Alfred M. Szmidt.
80024
80025 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80026
80027         * lib/file-type.h: Report an error if neither S_ISREG nor
80028         S_IFREG is defined, instead of using a test specific to glibc
80029         2.2.  This should be safe, since POSIX requires S_ISREG and
80030         Unix Version 7 had S_IFREG.  We don't need to check for
80031         <sys/types.h> since we don't use any symbols that it defines.
80032
80033 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80034
80035         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80036         $@-t, so that each temporary file name is unique and valid in the first
80037         8 characters, for operation under DOS.
80038
80039 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80040
80041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80042
80043 2002-06-15  Jim Meyering  <meyering@lucent.com>
80044
80045         Work even with DJGPP 2.03, which lacks support for symlinks.
80046         From Richard Dawe.
80047         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80048         is defined.
80049         * lib/lchown.c (S_ISLNK): Likewise.
80050
80051 2002-06-15  Jim Meyering  <meyering@lucent.com>
80052
80053         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80054         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80055         have been included before this file.
80056
80057 2002-06-14  Jim Meyering  <meyering@lucent.com>
80058
80059         * lib/file-type.h: Use the version from diffutils-2.8.2.
80060         * lib/file-type.c: Likewise.
80061
80062 2002-06-07  Jim Meyering  <meyering@lucent.com>
80063
80064         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80065         They're needed at least for NetBSD 1.5.2.
80066         ($statxfs_includes): Include those same headers.
80067         ($statxfs_includes): Include sys/vfs.h if available.
80068         ($statxfs_includes): Likewise for sys/statvfs.h.
80069         Check for the following members in both structs statfs and statvfs:
80070         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80071
80072 2002-06-01  Jim Meyering  <meyering@lucent.com>
80073
80074         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80075         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80076
80077 2002-05-28  Jim Meyering  <meyering@lucent.com>
80078
80079         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80080         Reported by Volker Borchert.
80081
80082 2002-05-27  Jim Meyering  <meyering@lucent.com>
80083
80084         Fix a problem seen only on nonconforming systems whereby ls.c's
80085         use of localtime, and then of gettimeofday would cause trouble:
80086         the localtime call used to initialize rpl_gettimeofday's save
80087         mechanism would clobber ls's current local time information so
80088         that in any long listing the first file would always be listed
80089         with date 1970-01-01.  Analysis by Volker Borchert.
80090
80091         * lib/gettimeofday.c (localtime): Undefine.
80092         (rpl_localtime): New function.
80093
80094 2002-05-27  Jim Meyering  <meyering@lucent.com>
80095
80096         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80097         localtime.
80098
80099         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80100         use the replacement function; it wouldn't resolve at link time.
80101         Reported by Volker Borchert.
80102
80103 2002-05-22  Jim Meyering  <meyering@lucent.com>
80104
80105         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80106         file-type.h.
80107         * lib/file-type.h: New file.
80108         * lib/file-type.c (file_type): New file/function.  Extracted from
80109         diffutils.
80110
80111 2002-04-30  Jim Meyering  <meyering@lucent.com>
80112
80113         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80114
80115 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80116
80117         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80118
80119 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80120
80121         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80122         Do not check for alloca.h (no longer used) or stdbool.h (was never
80123         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80124
80125 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80126
80127         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80128
80129 2002-04-29  Jim Meyering  <meyering@lucent.com>
80130
80131         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80132         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80133         Use AC_FUNC_STRNLEN here instead.
80134
80135         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80136         With autoconf-2.53a, it's part of AC_PROG_CC.
80137
80138 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80139
80140         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80142
80143 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80144
80145         * lib/sig2str.h, lib/sig2str.c: New files.
80146         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80147
80148 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80149
80150         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80151         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80152         of 127, since 64 is the largest conceivable number for ancient
80153         nonstandard hosts.
80154         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80155
80156 2002-04-28  Jim Meyering  <meyering@lucent.com>
80157
80158         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80159
80160 2002-04-24  Jim Meyering  <meyering@lucent.com>
80161
80162         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80163         (jm_PREREQ): Use it.
80164
80165         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80166         mach/mach.h fcntl.h.
80167         Check for this function: setlocale.
80168
80169 2002-04-24  Jim Meyering  <meyering@lucent.com>
80170
80171         * lib/gettext.h: New file, from Gettext.
80172         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80173         (libfetish_a_SOURCES): Add gettext.h.
80174
80175 2002-04-16  Jim Meyering  <meyering@lucent.com>
80176
80177         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80178         ut_pid, ut_id, ut_exit.
80179
80180 2002-04-16  Jim Meyering  <meyering@lucent.com>
80181
80182         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80183         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80184         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80185
80186 2002-04-12  Jim Meyering  <meyering@lucent.com>
80187
80188         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80189         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80190         existence of the getmntinfo function.  Needed for Darwin 5.3.
80191
80192         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80193         This is necessary at least on Darwin 5.3.
80194
80195         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80196         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80197         strnlen.o in the library, and that makes some versions of ranlib
80198         object.
80199
80200 2002-04-12  Jim Meyering  <meyering@lucent.com>
80201
80202         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80203
80204 2002-04-09  Jim Meyering  <meyering@lucent.com>
80205
80206         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80207         to be more precise.  Rather than saying we're checking whether the
80208         function `works', say what we're testing.
80209         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80210         Reported by Bruno Haible.
80211
80212 2002-03-10  Jim Meyering  <meyering@lucent.com>
80213
80214         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80215         Suggestion from Santiago Vila.
80216
80217 2002-03-08  Jim Meyering  <meyering@lucent.com>
80218
80219         * lib/rename.c: Mention that this wrapper is needed also on
80220         mips-dec-ultrix4.4 systems.
80221
80222 2002-03-02  Jim Meyering  <meyering@lucent.com>
80223
80224         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80225         not HAVE_CLOCK_SETTIME.
80226
80227 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80228
80229         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80230         Check for clock_settime.
80231
80232 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80233
80234         * lib/nanosleep.h: Rename to....
80235         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80236
80237         * lib/gettime.c: New file.
80238         * lib/settime.c: New file.
80239         * lib/stime.c: Remove.
80240
80241         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80242         timespec.h.  Remove nanosleep.h.
80243
80244 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80245
80246         * m4/acl.m4: New file.
80247         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80248         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80249
80250 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80251
80252         * lib/acl.c, lib/acl.h: New files.
80253         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80254
80255 2002-02-24  Jim Meyering  <meyering@lucent.com>
80256
80257         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80258         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80259         cause trouble.  Reported by Nelson Beebe.
80260
80261 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80262
80263         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80264         compilers that don't know that xalloc_die never returns.
80265
80266 2002-02-20  Jim Meyering  <meyering@lucent.com>
80267
80268         * lib/getdate.c: Regenerate using bison-1.33.
80269
80270 2002-02-17  Jim Meyering  <meyering@lucent.com>
80271
80272         * config/config.guess (main): Don't use `head -1'; it's no longer
80273         portable. Use `sed 1q' instead.
80274
80275 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80276
80277         * m4/codeset.m4: Upgrade to gettext-0.11.
80278         * m4/gettext.m4: Upgrade to gettext-0.11.
80279         * m4/glibc21.m4: Upgrade to gettext-0.11.
80280         * m4/iconv.m4: Upgrade to gettext-0.11.
80281         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80282         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80283         * m4/lib-ld.m4: New file, from gettext-0.11.
80284         * m4/lib-link.m4: New file, from gettext-0.11.
80285         * m4/lib-prefix.m4: New file, from gettext-0.11.
80286         * m4/progtest.m4: Upgrade to gettext-0.11.
80287
80288 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80289
80290         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80291         (jm_PREREQ): Use it.
80292
80293 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80294
80295         * lib/posixver.c, lib/posixver.h: New files.
80296         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80297
80298 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80299             Bruno Haible  <bruno@clisp.org>
80300
80301         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80302         (fwrite_success_callback): New declaration.
80303         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80304         print_unicode_char. Call failure callback instead of error.
80305         (fwrite_success_callback): New function.
80306         (exit_failure_callback): New function.
80307         (fallback_failure_callback): New function.
80308         (print_unicode_char): Call unicode_to_mb.
80309
80310 2002-01-26  Jim Meyering  <meyering@lucent.com>
80311
80312         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80313         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80314
80315 2002-01-26  Jim Meyering  <meyering@lucent.com>
80316
80317         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80318
80319 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80320
80321         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80322
80323 2002-01-22  Jim Meyering  <meyering@lucent.com>
80324
80325         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80326         Otherwise, some versions of automake would omit the rule that makes
80327         Makefile from Makefile.in.
80328
80329 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80330
80331         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80332         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80333         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80334         (memcoll): Set errno to zero if there is no error.
80335
80336         * lib/quotearg.c (quotearg_buffer_restyled):
80337         Fix bug with quoting buffers containing NUL when backslashing escapes.
80338         This bug was exposed by the other changes in this patch.
80339         (quotearg_n_options): New arg ARGSIZE.
80340         All callers changed.
80341         (quoting_options_from_style): New function.
80342         (quotearg_n_style): Use it.
80343         (quotearg_n_style_mem): New function.
80344
80345         * lib/quotearg.h (quotearg_n_style_mem): New function.
80346
80347 2002-01-19  Jim Meyering  <meyering@lucent.com>
80348
80349         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80350         Remove useless quotes: DF_PROG="df".
80351         * m4/strnlen.m4: New file.
80352
80353 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80354
80355         * lib/backupfile.c (ISDIGIT): Comment fix.
80356         * lib/getdate.y (ISDIGIT): Likewise.
80357         * lib/posixtm.c (ISDIGIT, year): Likewise.
80358         * lib/strverscmp.c (ISDIGIT): Likewise.
80359         * lib/userspec.c (ISDIGIT): Likewise.
80360
80361 2002-01-16  Jim Meyering  <meyering@lucent.com>
80362
80363         * lib/getdate.y: Add three semicolons, each just before a closing
80364         brace. Bison (as of version 1.31) no longer papers over that mistake.
80365
80366 2002-01-05  Jim Meyering  <meyering@lucent.com>
80367
80368         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80369
80370 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80371
80372         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80373         not silently exit merely because the output buffer happens to
80374         have nothing pending.
80375
80376 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80377
80378         See the big note in ../ChangeLog.
80379         * lib/human.c (suffixes): Prefer K to k for 1024.
80380         (generate_suffix_backwards): New function.
80381         (human_readable_inexact): Use it.
80382         * lib/xstrtol.c (__xstrtol): If there is no number but there
80383         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80384         Accept 'K' as well as 'k'.
80385
80386 2001-12-15  Jim Meyering  <meyering@lucent.com>
80387
80388         * lib/regex.h (__restrict_arr): Update from libc.
80389
80390         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80391         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80392         (STREQ): Define.
80393
80394 2001-12-14  Jim Meyering  <meyering@lucent.com>
80395
80396         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80397         Suggestion from Bruno Haible.
80398
80399 2001-12-10  Jim Meyering  <meyering@lucent.com>
80400
80401         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80402         xrealloc, Instead, include "xalloc.h".
80403         (initbuffer): Don't cast xmalloc return value to char*.
80404         (readline): Reword comment.
80405         Don't cast xrealloc return value to char*
80406         Return NULL, not 0.
80407
80408 2001-12-09  Jim Meyering  <meyering@lucent.com>
80409
80410         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80411         about `signed and unsigned type in conditional expression'.
80412         * lib/posixtm.c (posix_time_parse): Likewise.
80413
80414         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80415
80416         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80417         to avoid a pedantic warning.
80418
80419         * lib/getstr.c: Don't include assert.h.
80420         (getstr): Remove warning-evoking assertions.
80421         Return -1 if offset parameter is out of bounds.
80422         Change the type of a local from int to size_t.
80423
80424         * lib/strftime.c (my_strftime_localtime_r): Include this function
80425         definition in the `#if ! HAVE_TM_GMTOFF' block.
80426
80427         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80428         Include xalloc.h instead.
80429
80430 2001-12-02  Jim Meyering  <meyering@lucent.com>
80431
80432         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80433         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80434         included.
80435
80436         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80437         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80438
80439 2001-11-30  Akim Demaille  <akim@epita.fr>
80440
80441         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80442         before being defined.
80443
80444 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80445
80446         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80447         First arg is int, not unsigned.
80448         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80449         (SIZE_MAX, UINT_MAX): New macros.
80450         (quotearg_n_options): Abort if N is negative.
80451         Avoid overflow check on hosts where size_t is 64 bits and int
80452         is 32 bits, as overflow is impossible there.
80453         Fix off-by-one typo that caused unnecessary reallocation.
80454
80455 2001-11-27  Jim Meyering  <meyering@lucent.com>
80456
80457         * lib/tempname.c: Merge with version from libc.
80458         * lib/regex.c: Likewise.
80459
80460         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80461         systems for which STDC_HEADERS is 0, it was not included, resulting in
80462         a warning about an integer-to-pointer conversion problem with getenv.
80463         Reported by Volker Borchert.
80464
80465 2001-11-26  Jim Meyering  <meyering@lucent.com>
80466
80467         * lib/gtod.h: Remove file.
80468         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80469         * lib/gettimeofday.c: Don't include gtod.h.
80470         (GTOD_init): Remove function.
80471         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80472         Suggestion from Volker Borchert.
80473
80474 2001-11-23  Jim Meyering  <meyering@lucent.com>
80475
80476         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80477         it.
80478         * lib/hash.c (struct hash_table): Define it here instead.
80479
80480 2001-11-22  Jim Meyering  <meyering@lucent.com>
80481
80482         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80483
80484 2001-11-20  Jim Meyering  <meyering@lucent.com>
80485
80486         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80487         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80488
80489 2001-11-19  Jim Meyering  <meyering@lucent.com>
80490
80491         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80492         directory.  Use "conftestXXXXXX" as the template.
80493         Suggestion from Paul Eggert.
80494
80495         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80496         immediately, so the test doesn't mistakenly hit the max-open-files
80497         limit.
80498
80499 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80500
80501         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80502         (TEMPORARIES): New macro.
80503         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80504         removes an artificial limitation (e.g. HP-UX 10.20, where
80505         TMP_MAX is 17576).
80506
80507 2001-11-18  Jim Meyering  <meyering@lucent.com>
80508
80509         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80510
80511 2001-11-18  Jim Meyering  <meyering@lucent.com>
80512
80513         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80514         on SunOS 4.
80515
80516         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80517         files will be created before anything else.
80518
80519 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80520
80521         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80522         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80523
80524 2001-11-17  Jim Meyering  <meyering@lucent.com>
80525
80526         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80527         Prompted by a report from Bob Proulx.
80528
80529         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80530         Instead, require UTILS_FUNC_MKSTEMP.
80531
80532 2001-11-17  Jim Meyering  <meyering@lucent.com>
80533
80534         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80535         Now, that's done as part of AC_FUNC_STRTOD.
80536
80537 2001-11-17  Jim Meyering  <meyering@lucent.com>
80538
80539         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80540         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80541         rather than group writable.  Patch by Juan F. Codagnone.
80542
80543         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80544         xrealloc, Instead, include "xalloc.h".
80545
80546         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80547         Remove explicit declarations of xmalloc, xrealloc,
80548         and xstrdup.  Instead, include "xalloc.h".
80549
80550         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80551         unlocked-io.h.
80552         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80553         Likewise.
80554         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80555
80556         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80557         Reported by Padraig Brady.
80558
80559         * lib/mkstemp.c: #undef mkstemp.
80560         Include config.h.
80561         (rpl_mkstemp): Rename from mkstemp.
80562         Protoize.
80563
80564 2001-11-16  Jim Meyering  <meyering@lucent.com>
80565
80566         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80567         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80568         determine the amount of total physical memory, use pstat_getstatic.
80569         HPUX-11 doesn't define _SC_PHYS_PAGES.
80570         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80571         If sysconf couldn't be used to determine the amount of available
80572         physical memory, use both pstat_getstatic and pstat_getdynamic.
80573         Based on a patch from Bob Proulx.
80574
80575 2001-11-10  Jim Meyering  <meyering@lucent.com>
80576
80577         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80578         (jm_PREREQ): Use it.
80579
80580 2001-11-09  Jim Meyering  <meyering@lucent.com>
80581
80582         * m4/jm-macros.m4: Require autoconf-2.52f.
80583         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80584         Use these AC_-prefixed names, not the AM_-prefixed ones.
80585
80586         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80587
80588 2001-11-05  Jim Meyering  <meyering@lucent.com>
80589
80590         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80591
80592 2001-11-04  Jim Meyering  <meyering@lucent.com>
80593
80594         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80595         $DEFS.
80596
80597 2001-11-03  Jim Meyering  <meyering@lucent.com>
80598
80599         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80600         of AC_DEFUN.
80601
80602         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80603         know the name of the variable in the macro definition.
80604
80605 2001-11-03  Jim Meyering  <meyering@lucent.com>
80606
80607         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80608         in argmatch_to_argument call.
80609
80610         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80611         argument.
80612
80613         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80614         e.g., a fault due to an attempt to free a NULL pointer.
80615
80616 2001-11-01  Jim Meyering  <meyering@lucent.com>
80617
80618         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80619         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80620
80621 2001-11-01  Jim Meyering  <meyering@lucent.com>
80622
80623         * lib/dirfd.c, lib/dirfd.h: New files.
80624         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80625
80626         * lib/hash.c (hash_print) [TESTING]: Clean up.
80627
80628 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80629
80630         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80631         to avoid a warning if -Wall.
80632
80633 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80634
80635         * README: New file
80636         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80637         (per RMS's instructions, this is now the canonical source)
80638         * lgpl/, gpl/: New directories.
80639
80640 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80641
80642         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80643
80644 2001-10-21  Jim Meyering  <meyering@lucent.com>
80645
80646         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80647         this code would end up calling gettext even in packages built
80648         with --disable-nls.
80649         * lib/getopt.c (_): Likewise.
80650         * lib/regex.c (_): Likewise.
80651
80652 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80653
80654         * m4/error.m4 (jm_PREREQ_ERROR):
80655         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80656         AC_FUNC_STRERROR_R does that.
80657         Check for strerror declaration.
80658
80659         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80660         are supposed to have them these days.
80661         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80662         Merge changes from latest Autoconf CVS.
80663         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80664         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80665         POSIX decided to standardize on the int flavor of strerror_r.
80666
80667 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80668
80669         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80670         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80671         Use strerror_r that is only a macro, even if it is not a function.
80672         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80673         (private_strerror): Use prototypes, not old-style function definition.
80674         (print_errno_message): New function.
80675         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80676         char*-flavored one.
80677         (error_tail, error, error_at_line): Use it.
80678
80679 2001-10-11  Jim Meyering  <meyering@lucent.com>
80680
80681         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80682         and quote_n (1, ... to avoid clobbering a buffer.
80683
80684 2001-10-05  Jim Meyering  <meyering@lucent.com>
80685
80686         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80687         hash-pjw.h.
80688         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80689         * lib/hash-pjw.h: New file.
80690
80691 2001-09-30  Jim Meyering  <meyering@lucent.com>
80692
80693         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80694         `struct fsstat' has the `f_fstypename' member.
80695         Use that to define FS_TYPE, which is now used to make
80696         the getfsstat link test tighter.
80697
80698 2001-09-30  Jim Meyering  <meyering@lucent.com>
80699
80700         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80701         Include <sys/ucred.h>, for Apple Darwin.
80702         Include sys/mount.h and sys/fs_types.h only if available.
80703         (FS_TYPE): Define.
80704         (read_filesystem_list): Use FS_TYPE.
80705
80706 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80707
80708         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80709         a boolean context.
80710
80711 2001-09-29  Jim Meyering  <meyering@lucent.com>
80712
80713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80714         [one-argument getmntent function]): Include stdio.h before mntent.h.
80715         SunOS 4.1.x needs it for the declaration of `FILE'.
80716         Patch by Volker Borchert.
80717
80718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80719         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80720         sys/fs_types.h, and make the link-test for getfsstat guard #include
80721         directives with appropriate #if HAVE_*_H tests so that we can
80722         detect getfsstat on Apple Darwin1.3.7 systems.
80723         Reported by Nelson Beebe.
80724         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80725
80726 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80727
80728         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80729         #defines strtoimax.  Also treat the other strto* functions
80730         like strtoimax.
80731
80732         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80733         Check for strtoul and strtoumax,
80734         as those declarations are made even in the signed case.
80735         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80736         Likewise, for strtol and strtoimax.
80737
80738 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80739
80740         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80741         #defines strtoimax.  Also treat the other strto* functions
80742         like strtoimax.
80743
80744         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80745         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80746         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80747
80748 2001-09-26  Jim Meyering  <meyering@lucent.com>
80749
80750         Most macros in unlocked-io.h had the wrong number of arguments.
80751         * lib/gen-uio: New script.
80752         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80753         * lib/unlocked-io.hin: Remove file.
80754         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80755         rather than trying to embed it here.
80756         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80757         Reported by Padraig Brady.
80758
80759 2001-09-25  Volker Borchert  <bt@teknon.de>
80760
80761         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80762         `result'.
80763
80764 2001-09-24  Jim Meyering  <meyering@lucent.com>
80765
80766         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80767
80768 2001-09-23  Jim Meyering  <meyering@lucent.com>
80769
80770         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80771         instead of the mere test for existence of mntent.h.  The latter
80772         would get a false-positive on AIX 3.4 systems.
80773         In the outer getmntent if-block, don't die if neither of the getmntent
80774         tests succeeds.  Instead, just fall through and continue with the
80775         remaining tests.
80776
80777 2001-09-23  Jim Meyering  <meyering@lucent.com>
80778
80779         * lib/mountlist.c: Remove useless parentheses in #if directives.
80780         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80781         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80782
80783 2001-09-22  Jim Meyering  <meyering@lucent.com>
80784
80785         * m4/gettext.m4: New file.  From gettext.
80786         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80787         * m4/progtest.m4: Likewise
80788         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80789         * m4/glibc21.m4: Likewise.
80790
80791         * m4/libintl.m4: Remove.  No longer used.
80792
80793 2001-09-22  Jim Meyering  <meyering@lucent.com>
80794
80795         * lib/localcharset.c: Update from latest gettext.
80796         * lib/config.charset: Likewise.
80797
80798 2001-09-20  Jim Meyering  <meyering@lucent.com>
80799
80800         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80801         strtoimax.
80802         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80803         strtoumax.
80804
80805 2001-09-20  Jim Meyering  <meyering@lucent.com>
80806
80807         * lib/xstrtol.c (strtoimax): Guard declaration with
80808         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80809         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80810         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80811         (strtoumax): Likewise, for completeness (it wasn't necessary).
80812
80813 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80814
80815         * lib/strtoimax.c (HAVE_LONG_LONG):
80816         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80817         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80818         to work around bug in IBM C compiler.
80819
80820 2001-09-17  Jim Meyering  <meyering@lucent.com>
80821
80822         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80823         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80824         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80825         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80826         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80827         whenever the right hand side need not be expanded by the shell.
80828
80829 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80830
80831         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80832         library.  It's not correct, as some older glibcs are buggy.
80833         fnmatch wasn't fixed until glibc 2.2.
80834
80835         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80836         special shell magic here.
80837
80838 2001-09-16  Jim Meyering  <meyering@lucent.com>
80839
80840         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80841         * m4/jm-macros.m4: Require it.
80842
80843 2001-09-16  Jim Meyering  <meyering@lucent.com>
80844
80845         * lib/mkdir.c: New file.
80846
80847 2001-09-15  Jim Meyering  <meyering@lucent.com>
80848
80849         * m4/jm-macros.m4: Check for help2man.
80850
80851 2001-09-11  Jim Meyering  <meyering@lucent.com>
80852
80853         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80854         The body, by Paul Eggert, was moved here from configure.in.
80855         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80856
80857 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80858
80859         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80860         (jm_PREREQ): Use it.
80861
80862 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80863
80864         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80865         Use ssize_t, not int, to store result of readlink.
80866         Check for ssize_t overflow as well as size_t overflow,
80867         as POSIX says the result of readlink is implementation-defined
80868         when ssize_t overflows.
80869         Remove unnecessary cast to char*.
80870         Use free+malloc instead of realloc, as the storage doesn't need
80871         to be preserved and it's clearer and can be more efficient that way.
80872         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80873         * lib/xreadlink.h (xreadlink): Update prototype.
80874
80875 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80876
80877         * lib/xgetcwd.c: Revert some of the previous change; intead,
80878         fix the HAVE_GETCWD_NULL code to behave more like the
80879         !HAVE_GETCWD_NULL code used to.
80880
80881         Include "xalloc.h".
80882         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80883         invoke xalloc_die.
80884
80885 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80886
80887         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80888         sys/param.h, as pathmax.h includes them.
80889
80890 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80891
80892         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80893         (jm_PREREQ_XGETCWD): New macro.
80894
80895         * m4/getcwd.m4: New file.
80896
80897 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80898
80899         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80900         like the HAVE_GETCWD_NULL code.
80901         Include pathmax.h if not HAVE_GETCWD.
80902         Do not include xalloc.h.
80903         (INITIAL_BUFFER_SIZE): New symbol.
80904         Do not use xmalloc / xrealloc, since the caller is responsible for
80905         handling errors.  Preserve errno around `free' during failure.
80906         Do not overrun buffer when using getwd.
80907
80908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80909
80910         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80911         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80912         getcwd (NULL, 0).
80913
80914 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80915
80916         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80917         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80918         spotted by Jim Meyering.
80919
80920 2001-09-03  Jim Meyering  <meyering@lucent.com>
80921
80922         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80923         failure.
80924
80925 2001-09-02  Jim Meyering  <meyering@lucent.com>
80926
80927         * lib/error.c: Update from GNU libc.
80928
80929 2001-09-01  Jim Meyering  <meyering@lucent.com>
80930
80931         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80932         Used by df.
80933
80934 2001-09-01  Jim Meyering  <meyering@lucent.com>
80935
80936         * lib/xreadlink.c: New file.
80937         * lib/xreadlink.h: New file.
80938         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80939         xreadlink.h.
80940
80941         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80942         doesn't conflict with sparc Solaris 7's definition in
80943         /usr/include/sys/int_types.h.
80944
80945         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80946         files.
80947         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80948         and strncasecmp as r-values.  Unixware didn't have declarations.
80949
80950 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80951
80952         * lib/xstrtol.h: Add copyright notice.
80953         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80954         LONGINT_INVALID_SUFFIX_CHAR.
80955
80956 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80957
80958         * lib/xstrtol.c (strtoimax): New decl.
80959
80960 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80961
80962         * lib/xgetcwd.c: Don't include pathmax.h.
80963         Include stdlib.h and unistd.h if available.
80964         Include xalloc.h.
80965         (xmalloc, xstrdup, free): Remove decls.
80966         (xgetcwd): Don't assume sizes fit in unsigned.
80967         Check for overflow when computing sizes.
80968         Simplify reallocation code.
80969
80970 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80971
80972         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80973         a directory's st_size can have an arbitrary value, so the old
80974         usage could waste an arbitrary amount of memory.  All uses
80975         changed.
80976         * lib/savedir.h: Update prototype.
80977
80978 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80979
80980         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80981
80982         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80983         old strtoimax.c.
80984
80985         Also, make the following further changes to make this file's
80986         configuration more similar to that of strtol.c:
80987         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80988         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80989         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80990         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80991         changed to signed values.
80992
80993         And make the following changes as well:
80994         Fix copyright notice, as 1999 was missing.
80995         (verify): New macro.
80996         (strtoimax): Check sizes at compile-time, not run-time.
80997         Prefer strtol to strtoll if both work.
80998         (main): Remove; it was not that useful and was a pain to maintain.
80999
81000         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81001
81002 2001-08-31  Jim Meyering  <meyering@lucent.com>
81003
81004         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81005         Use an initial, malloc'd, buffer of length 128 rather than
81006         a statically allocated one of length 1024.
81007
81008 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81009
81010         Simplify code, partly by assuming autoconf 2.52 semantics.
81011
81012         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81013
81014         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81015         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81016         All uses removed.
81017         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81018         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81019         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81020         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81021         jm_AC_HEADER_INTTYPES_H.
81022         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81023
81024         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81025
81026         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81027         Quote first arg of AC_DEFUN.
81028         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81029         since they are needed to parse the include file even if we need
81030         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81031         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81032         but with opposite signedness.
81033
81034 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81035
81036         Merge 'exclude' changes from tar 1.13.22.
81037         This fixes one or two unlikely storage allocation overflow bugs,
81038         but doesn't change user-visible behavior otherwise.
81039
81040 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81041
81042         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81043         (jm_PREREQ_EXCLUDE): New macro.
81044
81045 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81046
81047         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81048         tm to be declared.
81049
81050 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81051
81052         * lib/hash.c: Remove '2001' from copyright notice.
81053
81054 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81055
81056         * lib/full-write.h: New file.
81057         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81058         * lib/full-write.c: Correct credits, as cccp.c no longer
81059         exists and anyway it was so heavily changed from the old cccp
81060         code as to be unrecognizable.  Include full-write.h.
81061         (full_write): Return size_t, with short writes meaning failure.
81062         All callers changed.  This fixes a bug with large buffers
81063         on 64-bit hosts.
81064         * lib/utime.c: Include full-write.h.
81065
81066 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81067
81068         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81069         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81070         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81071         Include if available.
81072         (<xalloc.h>): Include
81073         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81074         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81075         collide with FNM macros.
81076         (struct patopts): New struct.
81077         (struct exclude): Use it, as exclude patterns now come with options.
81078         (new_exclude): Support above changes.
81079         (new_exclude, add_exclude_file):
81080         Initial size must now be a power of two to simplify overflow checking.
81081         (free_exclude, fnmatch_no_wildcards): New function.
81082         (excluded_filename): No longer requires options arg, as the options
81083         are determined by add_exclude.  Now returns bool, not int.
81084         (excluded_filename, add_exclude):
81085         Add support for the fancy new exclusion options.
81086         (add_exclude, add_exclude_file): Now takes int options arg.
81087         Check for arithmetic overflow when computing sizes.
81088         (add_exclude_file): xrealloc might modify errno, so don't
81089         realloc until after errno might be used.
81090
81091         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81092         New macros.
81093         (free_exclude): New decl.
81094         (add_exclude, add_exclude_file): Now takes int options arg.
81095         (excluded_filename): No longer requires options arg, as the options
81096         are determined by add_exclude.  Now returns bool, not int.
81097
81098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81099
81100         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81101
81102 2001-08-27  Jim Meyering  <meyering@lucent.com>
81103
81104         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81105
81106         * lib/version-etc.c (N_): Remove definition.
81107         Revert most of last change.
81108         Instead, simply don't mark the `Copyright...' string for translation.
81109         Based on advice from Paul Eggert.
81110
81111         * lib/strtoxmax.c: Tweak comment.
81112
81113 2001-08-26  Jim Meyering  <meyering@lucent.com>
81114
81115         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81116
81117         * m4/xstrtoimax.m4: New file.
81118         * m4/xstrtoumax.m4: Add comments explaining why we
81119         AC_REPLACE_FUNCS(strtol).
81120
81121 2001-08-26  Jim Meyering  <meyering@lucent.com>
81122
81123         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81124         of copyright with `%s' so translators don't get an untranslated
81125         message in 2002.
81126         (COPYRIGHT_YEAR): Define.
81127         (version_etc): Use fprintf rather than fputs.
81128         Suggestion from Ulrich Drepper.
81129
81130         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81131
81132         * lib/strtoll.c: New file, from GNU libc.
81133         * lib/xstrtoimax.c: New file.
81134
81135         * lib/xstrtol.h: Add xstrtoimax.
81136         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81137         * lib/strtoimax.c: New file.  Likewise, but first define
81138         STRTOUXMAX_SIGNED.
81139
81140         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81141         ...
81142         * lib/strtoxmax.c: ... then renamed to this.
81143
81144 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81145
81146         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81147         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81148         (jm_AC_TYPE_INTMAX_T): New macro.
81149         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81150
81151         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81152
81153         * m4/longlong.m4: Renamed from ulonglong.m4.
81154         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81155         * m4/uintmax_t.m4: Removed.
81156
81157 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81158
81159         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81160         Port to Solaris 8, where 'sed' requires a space after the 'r'
81161         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81162         Redirect output to $tmp just once.
81163
81164 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81165
81166         * lib/addext.c (<errno.h>): Include.
81167         (errno): Declare if not defined.
81168         (addext): Work correctly when pathconf returns -1 and leaves
81169         errno alone because there is no limit.  Also, work even if
81170         pathconf returns a value greater than SIZE_MAX.
81171
81172 2001-08-12  Jim Meyering  <meyering@lucent.com>
81173
81174         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81175         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81176         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81177         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81178         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81179         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81180         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81181         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81182         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81183         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81184         utime.m4, utimes.m4, xstrtoumax.m4:
81185         Quote the first argument in each use of AC_DEFUN.
81186
81187 2001-08-12  Jim Meyering  <meyering@lucent.com>
81188
81189         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81190         Simply `return getcwd (NULL, 0);'.
81191         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81192         Use 1300 as initial value for length, not PATH_MAX.
81193
81194         * lib/pathmax.h: Clean up cpp syntax.
81195
81196 2001-08-12  Jim Meyering  <meyering@lucent.com>
81197
81198         * lib/gettimeofday.c: New file.
81199         * lib/gtod.h: New file.
81200         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81201
81202 2001-08-05  Jim Meyering  <meyering@lucent.com>
81203
81204         * m4/jm-macros.m4: Require autoconf-2.52.
81205
81206 2001-08-04  Jim Meyering  <meyering@lucent.com>
81207
81208         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81209         stmt, to get in sync with glibc.
81210
81211 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81212
81213         The following changes are from gettext 0.10.39 as maintained by
81214         Bruno Haible.
81215
81216         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81217         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81218         with inverted sense.  All uses changed.
81219
81220         * lib/mbswidth.c: Don't include <limits.h>.
81221         Include <stdlib.h> and <string.h> unconditionally.
81222         (iswcntrl, mbsinit, ISCNTRL): New macros.
81223         (mbsnwidth): Use K&R style function declarations.
81224         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81225         can optimize it when MB_CUR_MAX == 1.
81226         The width of control characters is zero, not 1.
81227
81228 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81229
81230         The following changes are from gettext 0.10.39 as maintained by
81231         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81232
81233         * m4/codeset.m4: Upgrade to serial AM1.
81234         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81235         all uses changed.  Quote first arg of AC_DEFUN.
81236         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81237
81238         * m4/iconv.m4: Upgrade to serial AM2.
81239         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81240         Add --with-libconv-prefix.
81241         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81242         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81243         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81244         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81245         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81246
81247         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81248         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81249         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81250         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81251         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81252         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81253         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81254         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81255         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81256
81257         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81258         string.h any more.
81259
81260         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81261         not the default value.
81262
81263         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81264         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81265         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81266         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81267         Also check for iswcntrl, used for wcwidth fallback.
81268         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81269         to Autoconf 2.13.
81270
81271 2001-08-03  Jim Meyering  <meyering@lucent.com>
81272
81273         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81274         as it was in the original.  Reported by Paul Eggert.
81275
81276 2001-07-16  Jim Meyering  <meyering@lucent.com>
81277
81278         * m4/gettimeofday.m4: New file.
81279         Prompted by a report from Bernhard Baehr.
81280
81281 2001-07-15  Jim Meyering  <meyering@lucent.com>
81282
81283         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81284         stuff. Now it's in ../Makefile.cfg.
81285
81286 2001-07-15  Jim Meyering  <meyering@lucent.com>
81287
81288         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81289         (BUILT_SOURCES): Add unlocked-io.h.
81290         (io_functions): Define.
81291         (unlocked-io.h): New rule.
81292         (DISTCLEANFILES): Add unlocked-io.h.
81293         (all-local): Depend on unlocked-io.h, to ensure it is created.
81294
81295         * lib/unlocked-io.hin: New file
81296
81297         * lib/regex.c: Update from glibc.
81298
81299 2001-07-05  Jim Meyering  <meyering@lucent.com>
81300
81301         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81302         recommendation.
81303         (libfetish_a_SOURCES): Put all .h files here instead.
81304         Remove a thus-exposed (better checks in automake) duplicate and
81305         two unnecessary .h files.
81306
81307 2001-07-04  Jim Meyering  <meyering@lucent.com>
81308
81309         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81310         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81311         distcheck failure.
81312
81313 2001-07-02  Jim Meyering  <meyering@lucent.com>
81314
81315         The following changes were prompted by suggestions from Bruno Haible.
81316
81317         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81318         is now generated.
81319         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81320         definition of EXTRA_DIST.
81321         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81322         ensure that the generated file is created/updated whenever the list
81323         of $(unlocked_functions) is changed.
81324         (jm-glibc-io.m4): New rule.
81325         (unlocked-io.h): New rule -- currently unused.
81326
81327 2001-06-24  Jim Meyering  <meyering@lucent.com>
81328
81329         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81330         unmatched right bracket, rather than kludging it with an extra,
81331         falsely-matching quote in a comment.  Patch by Akim Demaille.
81332
81333 2001-06-11  Jim Meyering  <meyering@lucent.com>
81334
81335         * lib/regex.c: Update from GNU libc.
81336
81337 2001-05-27  Jim Meyering  <meyering@lucent.com>
81338
81339         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81340         Check for ut_type in struct utmp.
81341
81342 2001-05-27  Jim Meyering  <meyering@lucent.com>
81343
81344         * lib/readutmp.h (UT_TYPE): Define.
81345
81346 2001-05-24  Jim Meyering  <meyering@lucent.com>
81347
81348         * lib/argmatch.c: Include "quote.h".
81349         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81350         quote function.  Reported by Göran Uddeborg.
81351
81352 2001-05-22  Jim Meyering  <meyering@lucent.com>
81353
81354         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81355         now that we use the package-supplied version unconditionally.
81356         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81357
81358 2001-05-21  Jim Meyering  <meyering@lucent.com>
81359
81360         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81361         shell syntax errors.
81362
81363 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81364
81365         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81366
81367 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81368
81369         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81370         Don't bother to check library strftime, since
81371         we'll be using our own my_strftime function anyway.
81372         Define my_strftime instead of strftime.
81373
81374 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81375
81376         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81377         which is not yet declared.
81378
81379 2001-05-15  Jim Meyering  <meyering@lucent.com>
81380
81381         * m4/regex.m4: Use proper quoting so brackets appear in the test
81382         program.
81383         Reported by, and with help from, Bruno Haible.
81384
81385 2001-05-13  Jim Meyering  <meyering@lucent.com>
81386
81387         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81388         undefined.
81389
81390 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81391
81392         dirname code cleanup.  base_name now behaves more compatibly
81393         with POSIX basename when given file names that have trailing
81394         slashes, and similarly for dir_name.  Add new primitives
81395         base_len and dir_len.  Put the directory-name-related decls
81396         into dirname.h.
81397
81398         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81399         * lib/backupfile.c (base_name): Likewise.
81400         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81401         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81402         * lib/makepath.c (strip_trailing_slashes): Likewise.
81403         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81404         ISSLASH): Likewise.
81405         * lib/rename.c (strip_trailing_slashes): Likewise.
81406         * lib/same.c (base_name): Likewise.
81407         * lib/stripslash.c (ISSLASH): Likewise.
81408
81409         * lib/addext.c: Include <dirname.h> after size_t is defined.
81410         * lib/backupfile.c: Likewise.
81411
81412         * lib/addext.c (addext): Use base_len to trim redundant
81413         trailing slashes instead of doing it ourselves.
81414         But do not trim the last slash if it is not redundant.
81415
81416         * lib/backupfile.c (find_backup_file_name,
81417         max_backup_version): Use base_len instead of rolling it ourselves.
81418         Handle the case of "" and (on DOS) "C:" correctly.
81419
81420         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81421         needed. Include <string.h>, <dirname.h>.
81422         (base_name): Allow file names ending in slashes, other than names
81423         that are all slashes.  In this case, return the basename followed
81424         by the slashes.  This is more general, and can be used in places
81425         where the original base_name purposely had an assertion failure.
81426         (base_len): New function.
81427
81428         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81429         Do not include <assert.h>; no longer needed.
81430         Include xalloc.h.
81431         (memrchr): Remove decl.
81432         (dir_name_r): Remove.
81433         (dir_len): Renamed from dirlen.  All callers changed.
81434         Rewrite in terms of base_name, for simplicity and consistency.
81435         (dir_name): Never return NULL.  All callers changed.
81436         Do not include <stdlib.h> in test program; no longer needed.
81437         return 0; is fine for test program.
81438
81439         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81440         New macros.
81441         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81442
81443         * lib/path-concat.c (path_concat): Use base_len to compute
81444         base length, not strlen; this means we cannot rely on memcpy
81445         to null-terminate.
81446
81447         * lib/same.c (STREQ): Remove.
81448         (same_name): Handle the case where the basename ends in trailing '/'.
81449
81450         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81451         a slash was stripped.  Do not strip the last slash after a
81452         file system prefix.
81453
81454 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81455
81456         * lib/Makefile.am (libfetish_a_SOURCES):
81457         Add strftime.c, since we now compile it on all hosts.
81458
81459         * lib/strftime.c (my_strftime):
81460         Define to nstrftime if emacs, but only if my_strftime is not defined.
81461         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81462         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81463         Add one more extra argument: a nanoseconds value.
81464         All uses changed.
81465         (ns): New macro.
81466         (my_strftime function): Add %N format.
81467         (emacs_strftimeu): Renamed from emacs_strftime,
81468         with extra ut argument.
81469
81470 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81471
81472         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81473
81474 2001-04-21  Jim Meyering  <meyering@lucent.com>
81475
81476         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81477         doesn't interfere.
81478
81479 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81480
81481         * m4/ftruncate.m4: Check for chsize.
81482         Link with ftruncate.o unconditionally if ftruncate is missing.
81483         This was required when cross-compiling to i586-mingw32msvc.
81484
81485 2001-04-08  Jim Meyering  <meyering@lucent.com>
81486
81487         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81488         recomputed; that's necessary when the offset spans a DST transition.
81489         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81490
81491 2001-04-02  Jim Meyering  <meyering@lucent.com>
81492
81493         * lib/regex.h, regex.c: Update from GNU libc.
81494
81495 2001-03-24  Jim Meyering  <meyering@lucent.com>
81496
81497         * m4/jm-macros.m4: Require autoconf-2.49d.
81498
81499 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81500
81501         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81502
81503 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81504
81505         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81506
81507 2001-03-17  Jim Meyering  <meyering@lucent.com>
81508
81509         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81510         now that the version in autoconf is equivalent.
81511         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81512
81513         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81514         Suggestion from Akim Demaille.
81515
81516         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81517         (jm_PREREQ_TEMPNAME): New function.
81518
81519 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81520
81521         * lib/tempname.c (uint64_t): Define to uintmax_t if
81522         not defined, and if UINT64_MAX is not defined.
81523         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81524         Reported by John David Anglin.
81525
81526 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81527
81528         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81529         resolve alias if codeset is empty.
81530         * lib/config.charset (BeOS): Use wildcard syntax.
81531
81532 2001-03-13  Jim Meyering  <meyering@lucent.com>
81533
81534         * lib/path-concat.c (path_concat)
81535         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81536         concatenating e.g., `C:' and `foo'.
81537         From Bruno Haible.
81538
81539 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81540
81541         * lib/localcharset.c (locale_charset): Don't use
81542         setlocale(LC_CTYPE,NULL). Don't return NULL.
81543         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81544
81545 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81546
81547         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81548         support for DOS/DJGPP.
81549
81550 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81551
81552         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81553         lacks mkstemp.  Compile our own tempname.c if we compile our own
81554         mkstemp.c, as mkstemp relies on tempname.
81555
81556 2001-03-01  Jim Meyering  <meyering@lucent.com>
81557
81558         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81559         AH_VERBATIM really does output its argument verbatim.
81560
81561 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81562
81563         * lib/Makefile.am (libfetish_a_SOURCES):
81564         Add dup-safer.c, fopen-safer.c.
81565         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81566
81567         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81568         * lib/unistd-safer.h: New files.
81569
81570 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81571
81572         The mkstemp replacement is taken from glibc 2.2.2, with some
81573         portability fixes for use outside glibc, as follows:
81574
81575         * lib/tempname.c (struct_stat64): New macro.
81576         (direxists, __gen_tempname): Use it.
81577         This avoids a portability problem with Solaris 8.
81578
81579         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81580         (<stddef.h>, <stdint.h>, <string.h>):
81581         Include only if STDC_HEADERS || _LIBC.
81582         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81583         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81584         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81585         (__set_errno): Define this macro if <errno.h> doesn't.
81586         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81587         Define these macros if <stdio.h> doesn't.
81588         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81589         Define these macros if <sys/stat.h>
81590         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81591         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81592         __xstat64): Define if not _LIBC.
81593         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81594         (__gen_tempname): Invoke gettimeofday only if
81595         HAVE_GETTIMEOFDAY || _LIBC;
81596         otherwise, fall back on plain "time".
81597         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81598
81599         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81600
81601         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81602
81603 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81604
81605         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81606
81607 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81608
81609         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81610         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81611         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81613
81614 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81615
81616         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81617         Remove workaround macros for hosts that have mbrtowc but not
81618         mbstate_t, as we now insist on proper declarations for both
81619         before using mbrtowc.
81620
81621 2001-02-17  Jim Meyering  <meyering@lucent.com>
81622
81623         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81624         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81625         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81626         UnixWare 7.1.1.
81627
81628         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81629         rather than AC_CACHE_VAL.
81630
81631 2001-02-17  Jim Meyering  <meyering@lucent.com>
81632
81633         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81634         around included file name.
81635
81636         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81637
81638         * lib/strftime.c: Update from GNU libc (the only changes were to
81639         comments).
81640
81641 2001-02-17  Jim Meyering  <meyering@lucent.com>
81642
81643         * lib/regex.c: Update from libc.
81644
81645 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81646
81647         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81648         clash.
81649
81650 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81651
81652         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81653         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81654         Reported by Mark Hounschell via Paul Eggert.
81655
81656 2001-02-07  Jim Meyering  <meyering@lucent.com>
81657
81658         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81659
81660 2001-02-05  Jim Meyering  <meyering@lucent.com>
81661
81662         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81663         it includes the patch required for `large file' support with at least
81664         HP-UX's 10.20 /bin/cc.
81665
81666 2001-02-03  Jim Meyering  <meyering@lucent.com>
81667
81668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81669         AS_IF, now that it works once again (mysteriously).
81670         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81671
81672 2001-01-30  Jim Meyering  <meyering@lucent.com>
81673
81674         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81675         * m4/chown.m4: Rename conftestchown to conftest.chown.
81676         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81677         s/conftestdir2/conftest.d2/.
81678         * m4/utimes.m4: s/conftestdata/conftest.data/
81679         Inspired by Pavel Roskin's change in autoconf.
81680
81681 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81682
81683         * lib/config.charset: Update for FreeBSD 4.2.
81684
81685 2001-01-27  Jim Meyering  <meyering@lucent.com>
81686
81687         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81688         a use of AS_IF.
81689         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81690
81691 2001-01-26  Jim Meyering  <meyering@lucent.com>
81692
81693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81694         quotearg.c includes it.
81695
81696 2001-01-26  Jim Meyering  <meyering@lucent.com>
81697
81698         * lib/quotearg.c: Include stddef.h.
81699         * lib/quote.c: Include stddef.h.
81700         Reported by Axel Kittenberger.
81701
81702         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81703         line in double quotes so that it evokes a better diagnostic.
81704         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81705         Reported by Axel Kittenberger.
81706
81707 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81708
81709         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81710         as if it was a `charset'.
81711
81712 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81713
81714         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81715         has const.
81716
81717 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81718
81719         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81720         to avoid a warning.  Add back 'const' to inptr.
81721
81722 2001-01-20  Jim Meyering  <meyering@lucent.com>
81723
81724         Be sure that headers are checked before used in code compiled
81725         for the type checks.
81726         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81727         In place of that, invoke jm_CHECK_ALL_TYPES.
81728         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81729         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81730         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81731         The check for ssize_t was mistakenly run before the test for unistd.h.
81732
81733         The configure-time check for stdbool.h was missing.
81734         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81735         (jm_PREREQ_HASH): New function.
81736
81737 2001-01-17  Jim Meyering  <meyering@lucent.com>
81738
81739         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81740         for autoconf-2.49c.
81741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81742
81743 2001-01-16  Jim Meyering  <meyering@lucent.com>
81744
81745         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81746         From Bruno Haible.
81747
81748 2001-01-14  Jim Meyering  <meyering@lucent.com>
81749
81750         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81751         foo and bar.  Create conftestdir/ in the script, not in the C code.
81752         Remove directories in the script, not in the C code.
81753         Remove conftestdir{,2} before trying to create the directory.
81754         Make the entire configure script fail if the mkdir fails.
81755
81756 2001-01-14  Jim Meyering  <meyering@lucent.com>
81757
81758         * lib/rename.c: New file.  From Volker Borchert.
81759         Include stdlib.h, string.h or strings.h, and xalloc.h.
81760         Use strip_trailing_slashes rather than open-coding it.
81761
81762 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81763
81764         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81765
81766 2001-01-03  Jim Meyering  <meyering@lucent.com>
81767
81768         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81769         of local `inptr' to avoid warning with some system declarations of
81770         iconv.
81771
81772 2001-01-02  Volker Borchert  <bt@teknon.de>
81773
81774         * m4/rename.m4: New file.
81775         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81776
81777 2001-01-01  Jim Meyering  <meyering@lucent.com>
81778
81779         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81780         even on systems with utmpx.h.  It's necessary for the declaration of
81781         utmp's ut_user member.  Reported by Andreas Jaeger.
81782
81783         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81784         available. They are required for the declarations of getgrgid and
81785         getpwuid resp.
81786         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81787         Reported by Andreas Jaeger.
81788
81789 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81790
81791         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81792         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81793         so `make install' also works in VPATH builds.
81794
81795 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81796
81797         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81798         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81799         can be used in subdirectories.
81800
81801 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81802
81803         * lib/modechange.c: Do not assume that mode_t uses the
81804         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81805         the other-execute bit of FOO even if S_IXOTH != 1.
81806
81807         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81808         WOTH, XOTH, ALLM): New macros.
81809         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81810          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81811         Use them.
81812         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81813         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81814         (mode_compile):
81815         No need to use uintmax_t; unsigned long is long enough.
81816         Don't bother to get suffix since we don't use it.
81817
81818 2000-12-26  Jim Meyering  <meyering@lucent.com>
81819
81820         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81821         better with autoheader.
81822
81823 2000-12-24  Jim Meyering  <meyering@lucent.com>
81824
81825         * lib/hash.c (is_prime): Return explicit boolean values.
81826         (hash_get_first): Return NULL to appease Irix5.6's 89.
81827         Reported by Nelson Beebe.
81828
81829 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81830
81831         * lib/localcharset.c (locale_charset): Add support for Win32.
81832
81833 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81834
81835         * lib/physmem.h, lib/physmem.c: New files.
81836
81837         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81838         (noinst_HEADERS): Add physmem.h.
81839
81840         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81841         't' for compatibility with Solaris 8 sort.
81842
81843 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81844
81845         * lib/config.charset: Add support for BeOS.
81846
81847 2000-12-17  Jim Meyering  <meyering@lucent.com>
81848
81849         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81850         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81851
81852 2000-12-16  Jim Meyering  <meyering@lucent.com>
81853
81854         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81855         N and M) would have treated it like `chown N:N FILE'.
81856
81857         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81858
81859 2000-12-16  Jim Meyering  <meyering@lucent.com>
81860
81861         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81862         SHELLS_FILE to a file name that's useful on djgpp systems.
81863         Include stdlib.h.
81864         (ADDITIONAL_DEFAULT_SHELLS): Define.
81865         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81866         Based mostly on a patch from Prashant TR.
81867
81868 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81869
81870         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81871         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81872         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81873
81874 2000-12-08  Andreas Schwab  <schwab@suse.de>
81875
81876         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81877         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81878
81879 2000-12-07  Jim Meyering  <meyering@lucent.com>
81880
81881         * lib/stripslash.c (ISSLASH): Define.
81882         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81883         `/'.
81884         From Prashant TR.
81885
81886         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81887         (dir_name_r): Declare this function as static.
81888         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81889         manifest itself on a name containing a mix of slashes and
81890         backslashes.
81891         Make this function work with names starting with a DOS-style
81892         drive letter and colon prefix.
81893         (dir_name): Append `.' if necessary.
81894         Based mostly on patches from Prashant TR and Eli Zaretskii.
81895
81896         * lib/dirname.h (dir_name_r): Remove prototype.
81897
81898 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81899
81900         * m4/off_t-format.m4: Remove this file.
81901         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81902
81903 2000-12-06  Jim Meyering  <meyering@lucent.com>
81904
81905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81906         replacement strtoull, we may well need the replacement strtoul, too.
81907         Check for declarations of strtoul and strtoull.
81908         Check for strtol.  Mainly as a cue to cause automake to include
81909         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81910         Check for limits.h -- strtol.c needs it.
81911
81912 2000-12-05  Jim Meyering  <meyering@lucent.com>
81913
81914         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81915
81916 2000-12-04  Jim Meyering  <meyering@lucent.com>
81917
81918         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81919         Also include memory.h, stdlib.h, unistd.h if appropriate.
81920         Reported by Andreas Jaeger (conflicting declaration of malloc).
81921
81922 2000-12-02  Jim Meyering  <meyering@lucent.com>
81923
81924         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81925         * m4/jm-macros.m4 (jm_MACROS): require it.
81926
81927 2000-12-02  Jim Meyering  <meyering@lucent.com>
81928
81929         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81930
81931 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81932
81933         * lib/memrchr.c: Include <config.h> before any system include file.
81934
81935 2000-11-30  Jim Meyering  <meyering@lucent.com>
81936
81937         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81938
81939 2000-11-30  Jim Meyering  <meyering@lucent.com>
81940
81941         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81942
81943 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81944
81945         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81946
81947 2000-11-26  Jim Meyering  <meyering@lucent.com>
81948
81949         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81950
81951 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81952
81953         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81954         size of (size_t) -1; it's not portable.
81955
81956 2000-11-17  Jim Meyering  <meyering@lucent.com>
81957
81958         * lib/strstr.c: Update from GNU libc.
81959
81960 2000-11-17  Akim Demaille  <akim@epita.fr>
81961
81962         * lib/obstack.h: Formatting changes.
81963         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81964         prevent type checking.
81965         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81966         cast the value to (void *): assigning a `foo *' to a `void *'
81967         variable is valid.
81968         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81969
81970 2000-11-16  Jim Meyering  <meyering@lucent.com>
81971
81972         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81973
81974 2000-11-11  Jim Meyering  <meyering@lucent.com>
81975
81976         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81977
81978 2000-11-10  Jim Meyering  <meyering@lucent.com>
81979
81980         * lib/obstack.h: Update from GNU libc.
81981         * lib/obstack.c: Likewise.
81982
81983 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81984
81985         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81986
81987 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81988
81989         * lib/getusershell.c (setusershell): Use rewind rather than
81990         fseek/fseeko, to avoid configuration hassles with fseeko.
81991         Don't bother opening SHELLS_FILE if shellstream is NULL;
81992         it's not necessary.
81993
81994 2000-11-05  Jim Meyering  <meyering@lucent.com>
81995
81996         * lib/makepath.h (make_dir): Declare.
81997         * lib/makepath.c (make_dir): Remove `static' attribute.
81998         Tweak a comment.
81999
82000 2000-11-04  Jim Meyering  <meyering@lucent.com>
82001
82002         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82003
82004 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82005
82006         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82007         last one in a bucket, advance to the next bucket.
82008
82009 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82010
82011         * lib/fnmatch.c: Do not comment out all the code if we are using
82012         the GNU C library, because in some cases we are replacing buggy
82013         code in the GNU C library itself.
82014
82015 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82016
82017         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82018         (regex_compile): Catch bogus \(\1\).
82019
82020 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82021
82022         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82023         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82024         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82025
82026 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82027
82028         * lib/error.h, getline.h, modechange.h:
82029         Remove "2000" from Copyright line, as the file hasn't been
82030         changed this year other than in the copyright notice.
82031
82032         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82033         was changed this year.
82034
82035 2000-10-29  Jim Meyering  <meyering@lucent.com>
82036
82037         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82038         renaming.
82039         * m4/ls-mntd-fs.m4: Likewise
82040
82041 2000-10-29  Jim Meyering  <meyering@lucent.com>
82042
82043         * lib/xstat.in: Fix grammar in comment.
82044
82045 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82046
82047         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82048         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82049         doesn't define __restrict_arr.
82050
82051 2000-10-28  Jim Meyering  <meyering@lucent.com>
82052
82053         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82054         (jm_PREREQ_MEMCHR): New function.
82055
82056 2000-10-28  Jim Meyering  <meyering@lucent.com>
82057
82058         * lib/memchr.c: Update from libc.
82059         Adjust for portability:
82060         [HAVE_STDLIB_H]: Include stdlib.h.
82061         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82062         Undef __memchr, too.
82063         [!weak_alias]: Define __memchr to memchr.
82064
82065         * lib/regex.c: Update from libc.
82066         * lib/regex.h: Likewise.
82067         * lib/getopt1.c: Likewise.
82068         * lib/memcmp.c: Likewise.
82069
82070         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82071         Avoid using fseek, when possible -- it's broken by design.
82072         Patch by Ulrich Drepper.
82073
82074 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82075
82076         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82077         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82078         Giving in to popular pressure to shut up the compiler with casts.
82079
82080 2000-10-26  Jim Meyering  <meyering@lucent.com>
82081
82082         * lib/strftime.c: Update from libc.
82083
82084 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82085
82086         * regex.c: More `unsigned char' -> `re_char' changes.
82087         Also change several `int' into `re_wchar_t'.
82088         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82089         (PUSH_FAILURE_POINTER): Don't cast any more.
82090         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82091         We want GCC to complain, since this piece of code makes
82092         re_match non-reentrant, which *should* be fixed.
82093         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82094         (EXTEND_BUFFER): Use RETALLOC.
82095         (SET_LIST_BIT): Don't cast.
82096         (re_wchar_t): New type.
82097         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82098         that those two functions will always properly return.
82099         (IMMEDIATE_QUIT_CHECK): Cast to void.
82100         (analyse_first): Use recursion rather than an explicit stack.
82101         (re_compile_fastmap): Can't fail anymore.
82102         (re_search_2): Don't check re_compile_fastmap for failure.
82103         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82104         Now also sets the new value (passed in a new argument).
82105         (re_match_2_internal): Use it.
82106         Also, use a new var `reg' of type size_t when looping through regs
82107         rather than reuse the inappropriate `mcnt'.
82108
82109 2000-10-25  Jim Meyering  <meyering@lucent.com>
82110
82111         * lib/obstack.c: Update from libc.
82112
82113 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82114
82115         * regex.c (regex_compile): Change the way of handling a range from
82116         a char less than 256 to a char not less than 256.
82117
82118 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82119
82120         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82121         NT-Emacs only.
82122         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82123         so that re_search functions only quit when callers expect them to.
82124
82125 2000-10-23  Jim Meyering  <meyering@lucent.com>
82126
82127         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82128         wrong.  That set_locale call must not have any side effects.
82129         From Paul Eggert.
82130
82131 2000-10-22  Jim Meyering  <meyering@lucent.com>
82132
82133         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82134         [CYCLIC]: Remove now-unused definition.
82135
82136         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82137         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82138         Suggestion from Ulrich Drepper.
82139
82140 2000-10-21  Jim Meyering  <meyering@lucent.com>
82141
82142         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82143         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82145
82146 2000-10-21  Jim Meyering  <meyering@lucent.com>
82147
82148         * lib/dirname.c (memrchr): Declare if necessary.
82149         (dir_name): Remove the restriction that there be no
82150         trailing slashes.  Now, this code skips past them, effectively
82151         ignoring them.
82152         [TEST_DIRNAME] (main): New unit tests.
82153
82154         * lib/memrchr.c: New file from GNU libc.
82155         Undef __memrchr, too.
82156         [!weak_alias]: Define __memrchr to memrchr.
82157         Guard weak_alias use with `#ifdef weak_alias'.
82158
82159 2000-10-21  Jim Meyering  <meyering@lucent.com>
82160
82161         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82162         (dir_name): Use dir_name_r.
82163         * lib/dirname.h (dir_name_r): Declare it.
82164
82165 2000-10-17  Jim Meyering  <meyering@lucent.com>
82166
82167         * lib/quote.h (PARAMS): Define and use.
82168         Reported by Akim Demaille.
82169
82170         * lib/getopt.c: Update from libc.
82171
82172 2000-10-16  Jim Meyering  <meyering@lucent.com>
82173
82174         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82175         setlocale.
82176         From Jan Fedak.
82177
82178 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82179
82180         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82181
82182 2000-09-25  Jim Meyering  <meyering@lucent.com>
82183
82184         * lib/md5.h (rol): Define (from GnuPG).
82185
82186         * lib/sha.c: Give credit (GnuPG) where due.
82187         (M): Use rol rather than open-coding it.
82188         Add a FIXME comment.
82189
82190 2000-09-21  Jim Meyering  <meyering@lucent.com>
82191
82192         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82193         Reported by Michael Stone.
82194
82195 2000-09-20  Jim Meyering  <meyering@lucent.com>
82196
82197         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82198         (noinst_HEADERS): Add sha.h.
82199         Based on code from Scott G. Miller and from GnuPG.
82200
82201 2000-09-18  Jim Meyering  <meyering@lucent.com>
82202
82203         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82204         LIBS. Otherwise, everyone ends up linking with -lelf for some
82205         configurations.
82206         Reported by Mike Stone.
82207
82208 2000-09-15  Jim Meyering  <meyering@lucent.com>
82209
82210         * lib/regex.c: Update from libc.
82211
82212 2000-09-10  Jim Meyering  <meyering@lucent.com>
82213
82214         * lib/getopt.c (_getopt_internal): Update from glibc.
82215
82216 2000-09-09  Jim Meyering  <meyering@lucent.com>
82217
82218         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82219         think it should be used as a general replacement for isascii.
82220         * lib/fnmatch.c: Likewise.
82221         * lib/mbswidth.c: Likewise
82222         * lib/regex.c: Likewise.
82223
82224         Don't use atoi.
82225         * lib/userspec.c: Include sys/param.h and limits.h.
82226         Include xstrtol.h.
82227         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82228         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82229         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82230         UID, GID.  Check range.
82231
82232 2000-09-06  Jim Meyering  <meyering@lucent.com>
82233
82234         * lib/getopt.c (_getopt_internal): Update from glibc.
82235
82236 2000-08-30  Jim Meyering  <meyering@lucent.com>
82237
82238         * lib/strftime.c: Merge in changes from GNU libc.
82239
82240 2000-08-26  Jim Meyering  <meyering@lucent.com>
82241
82242         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82243         * m4/fpending.m4: New file.
82244
82245 2000-08-26  Jim Meyering  <meyering@lucent.com>
82246
82247         * lib/closeout.c: Include "__fpending.h".
82248         (close_stdout_status): Return right away if there's nothing to flush.
82249
82250         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82251         * lib/__fpending.c: New file.
82252         * lib/__fpending.h: New file.
82253
82254 2000-08-20  Jim Meyering  <meyering@lucent.com>
82255
82256         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82257         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82258         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82259
82260 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82261
82262         Improve fileutils installation on systems where running
82263         programs (like install) can't be unlinked.
82264         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82265         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82266
82267 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82268
82269         Standardize on "memory exhausted" instead of "Memory exhausted"
82270         or "virtual memory exhausted".
82271         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82272         "virtual memory exhausted".
82273         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82274         our own message.
82275         * lib/userspec.c (parse_user_spec): Likewise.
82276         * lib/bumpalloc.h: comment fix
82277         * lib/same.c, userspec.c: Include xalloc.h.
82278
82279         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82280         not char *const and pointing to a constant array.
82281         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82282         (xrealloc): Comment fix.
82283
82284         * lib/userspec.c (parse_user_spec):
82285         Don't translate a message until just before returning,
82286         to avoid unnecessary translation.
82287
82288 2000-08-07  Jim Meyering  <meyering@lucent.com>
82289
82290         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82291         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82292         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82293         getgroups.c, gethostname.c, getopt.h, group-member.c,
82294         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82295         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82296         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82297         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82298         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82299         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82300         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82301         yesno.c: Back out Copyright date changes for each file with no change
82302         this year.  This eases coordination with other programs using the same
82303         source code modules.  From Paul Eggert.
82304
82305 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82306
82307         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82308         not char, for compatibility with glibc 2.1.3 strftime.c.
82309
82310 2000-08-03  Greg McGary  <greg@mcgary.org>
82311
82312         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82313         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82314         (EXTEND_BUFFER): Use them.
82315
82316 2000-08-01  Jim Meyering  <meyering@lucent.com>
82317
82318         * lib/dirname.c (ISSLASH): Define.
82319         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82320         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82321         both `\' and `/' may be use as path separators.
82322         Based on a patch from Prashant TR.
82323
82324 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82325
82326         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82327         slot vector a constant, since it might get modified.
82328
82329 2000-07-31  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/xmalloc.c: Use `virtual memory exhausted', not
82332         `Memory exhausted'.
82333         * lib/obstack.c (print_and_abort): Likewise.
82334
82335 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82336
82337         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82338         buffer, so that the caller can always quote one small
82339         component of a "memory exhausted" message in slot 0.
82340         From a suggestion by Jim Meyering.
82341
82342 2000-07-30  Jim Meyering  <meyering@lucent.com>
82343
82344         * lib/makepath.c (make_path): Quote the other instance, too.
82345
82346         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82347         (STATIC_BUF_SIZE): Define.
82348         (quotearg_n_options): Use only statically allocated storage when
82349         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82350         than STATIC_BUF_SIZE.
82351
82352 2000-07-29  Jim Meyering  <meyering@lucent.com>
82353
82354         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82355         * lib/dirname.c (dir_name): Likewise.
82356
82357         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82358         `/'.
82359
82360         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82361         (dir_name): Assert that there are no trailing slashes.
82362
82363 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82364
82365         * lib/mbswidth.h (mbswidth): Add a flags argument.
82366         (mbswidth): New declaration.
82367         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82368         * lib/mbswidth.c (mbswidth): Add a flags argument.
82369         (mbsnwidth): New function.
82370
82371 2000-07-24  Jim Meyering  <meyering@lucent.com>
82372
82373         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82374
82375 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82376
82377         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82378
82379 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82380
82381         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82382         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82383         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82384         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82385         invoke multibyte primitives.
82386
82387 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82388
82389         * lib/quotearg.c:
82390         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82391         so that mbstate_t is always defined.
82392
82393         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82394         be 1 in at least one GCC installation, and this configuration
82395         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82396         performance on hosts that have mbrtowc but have only unibyte
82397         locales, but I assume these hosts are rare.
82398
82399 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82400
82401         * lib/mbswidth.c (_XOPEN_SOURCE):
82402         Don't define; this causes problems on Solaris 7.
82403         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82404
82405 2000-07-23  Jim Meyering  <meyering@lucent.com>
82406
82407         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82408         too: getgrgid, getpwuid, getuid.
82409
82410 2000-07-23  Jim Meyering  <meyering@lucent.com>
82411
82412         * lib/basename.c (base_name): Add an assertion.
82413
82414 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82415
82416         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82417         shadow its mbsinit function.
82418
82419 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82420
82421         * lib/mbswidth.h: New file.
82422         * lib/mbswidth.c: New file.
82423         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82424         (noinst_HEADERS): Add mbswidth.h.
82425
82426 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82427
82428         * lib/config.charset: Add support for FreeBSD. Improve support for
82429         HP-UX and IRIX 6.
82430
82431 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82432
82433         * m4/mbswidth.m4: New file.
82434         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82435
82436 2000-07-15  Jim Meyering  <meyering@lucent.com>
82437
82438         * lib/makepath.c: Include quote.h.
82439         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82440         corresponding argument in a `quote (...)' call.
82441         Give better diagnostics.
82442
82443         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82444         (noinst_HEADERS): Add quote.h.
82445
82446         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82447         from tar's src/misc.c.
82448         * lib/quote.h: New file.  Prototypes for same.
82449
82450 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82451
82452         From a suggestion by Bruno Haible.
82453         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82454         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82455         to decide whether to define the BeOS workaround macro;
82456         this adjusts to the change to AC_MBSTATE_T.
82457
82458 2000-07-14  Jim Meyering  <meyering@lucent.com>
82459
82460         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82461         jm_AC_TYPE_UINTMAX_T.
82462
82463 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82464
82465         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82466
82467         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82468         quotearg_buffer_restyled): Add support for
82469         clocale_quoting_style.  Undo previous change to
82470         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82471         and "{RIGHT QUOTATION MARK}" msgids.
82472
82473 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82474
82475         From a suggestion by Bruno Haible.
82476         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82477         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82478         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82479         and mbstate_t, to a single-part test that simply defines mbstate_t.
82480         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82481         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82482
82483 2000-07-10  Jim Meyering  <meyering@lucent.com>
82484
82485         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82486
82487         * m4/gnu-source.m4: Output to confdefs.h directly.
82488         Suggestion from Akim Demaille.
82489
82490 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82491
82492         The old behavior of quoting `like this' doesn't look good with
82493         newer, ISO-style fonts.  See:
82494         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82495
82496         Instead, quote "like this" by default.  Let the translator
82497         tailor the locale-specific quoting behavior by providing
82498         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82499
82500         * lib/quotearg.c (N_): New macro.
82501         (gettext_default): New function.
82502         (quotearg_buffer_restyled): Use
82503         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82504         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82505
82506 2000-07-09  Jim Meyering  <meyering@lucent.com>
82507
82508         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82509         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82510
82511         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82513
82514 2000-07-09  Jim Meyering  <meyering@lucent.com>
82515
82516         * lib/Most files: Update copyright dates to include 2000.
82517
82518 2000-07-08  Jim Meyering  <meyering@lucent.com>
82519
82520         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82521         if not defined.
82522         (xgethostname): Remove now-unnecessary #ifdef.
82523         Move declaration of `err' into loop where it's used.
82524
82525 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82526         and Bruno Haible  <haible@clisp.cons.org>
82527
82528         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82529         only if the test for an object-type mbstate_t fails.  This
82530         prevents us from mistakenly reporting that mbstate_t is a
82531         system object type after we "#define mbstate_t int" to work
82532         around its lack.
82533
82534 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82535         and Bruno Haible  <haible@clisp.cons.org>
82536
82537         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82538
82539 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82540
82541         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82542         to strerror_r.
82543         Include <ctype.h> for use of isalpha.
82544
82545 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82546
82547         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82548         by allocating a larger buffer. Test the gethostname return value for
82549         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82550         returns an error and ENAMETOOLONG isn't defined.
82551
82552 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82553
82554         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82555         dimension.
82556
82557 2000-07-04  Jim Meyering  <meyering@lucent.com>
82558
82559         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82560         of the deprecated AC_CHECKING.
82561
82562 2000-07-04  Jim Meyering  <meyering@lucent.com>
82563
82564         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82565         Reported by Bruno Haible.
82566
82567 2000-07-04  Jim Meyering  <meyering@lucent.com>
82568
82569         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82570         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82571         lacks mbrtowc.
82572
82573 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82574
82575         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82576         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82577
82578 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82579         and Bruno Haible  <haible@clisp.cons.org>
82580
82581         * lib/quotearg.c (mbrtowc):
82582         Assign to *pwc, and return 1 only if result is nonzero.
82583         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82584
82585 2000-07-03  Jim Meyering  <meyering@lucent.com>
82586
82587         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82588
82589 2000-07-03  Jim Meyering  <meyering@lucent.com>
82590
82591         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82592         This is necessary to get a definition of e.g., UTMP_FILE on
82593         HP-UX 10.20.
82594         From Bob Proulx.
82595
82596 2000-07-02  Jim Meyering  <meyering@lucent.com>
82597
82598         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82599
82600         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82601         AC_LIBOBJ(function_name).
82602         * m4/chown.m4: Likewise.
82603         * m4/fnmatch.m4: Likewise.
82604         * m4/ftruncate.m4: Likewise.
82605         * m4/getgroups.m4: Likewise.
82606         * m4/getline.m4: Likewise.
82607         * m4/group-member.m4: Likewise.
82608         * m4/jm-macros.m4: Likewise.
82609         * m4/lstat.m4: Likewise.
82610         * m4/malloc.m4: Likewise.
82611         * m4/memcmp.m4: Likewise.
82612         * m4/nanosleep.m4: Likewise.
82613         * m4/putenv.m4: Likewise.
82614         * m4/realloc.m4: Likewise.
82615         * m4/regex.m4: Likewise.
82616         * m4/stat.m4: Likewise.
82617         * m4/strftime.m4: Likewise.
82618
82619 2000-07-02  Jim Meyering  <meyering@lucent.com>
82620
82621         * lib/quotearg.c (mbstate_t): Don't define here.
82622
82623 2000-07-02  Jim Meyering  <meyering@lucent.com>
82624
82625         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82626
82627 2000-07-01  Jim Meyering  <meyering@lucent.com>
82628
82629         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82630
82631 2000-07-01  Jim Meyering  <meyering@lucent.com>
82632
82633         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82634         problem.
82635
82636 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82637
82638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82639         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82640
82641 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82642
82643         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82644         per change in ../m4/ls-mntd-fs.m4.
82645         (read_filesystem_list): Ignore symbolic links.
82646
82647 2000-06-29  Jim Meyering  <meyering@lucent.com>
82648
82649         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82650         for declaration of strcmp.
82651
82652         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82653
82654         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82655         Avoid warning by casting result to `char *' to remove `const'.
82656
82657 2000-06-28  Jim Meyering  <meyering@lucent.com>
82658
82659         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82660         included by quotearg.c, for which we perform this test.  From
82661         Bruno Haible.
82662
82663 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82664
82665         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82666         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82667         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82668
82669 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82670
82671         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82672
82673 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82674
82675         savedir now sets errno on failure and invokes xmalloc to get memory.
82676         Fix a couple of other minor bugs while we're at it.
82677
82678         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82679         (NAMLEN): Remove macro.
82680         (malloc, realloc): Remove decls.
82681         (stpcpy): Likewise.
82682         ("xalloc.h"): Include.
82683         (NAME_SIZE_DEFAULT): New macro.
82684         (savedir): Use xmalloc / xrealloc to allocate memory.
82685         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82686         Skip "" directory entries.
82687         Use strlen to calculate directory entry length, since the old method
82688         is rarely used these days and isn't worth supporting.
82689         Don't use a pointer after freeing it.
82690         Check for integer overflow when calculating allocation size.
82691         Use memcpy to copy entries, instead of stpcpy.
82692         Set errno properly when returning NULL.
82693         Check for readdir error.
82694
82695 2000-06-26  Jim Meyering  <meyering@lucent.com>
82696
82697         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82698
82699 2000-06-25  Jim Meyering  <meyering@lucent.com>
82700
82701         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82702         Linux header bug when _XOPEN_SOURCE is defined to 500.
82703
82704 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82705
82706         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82707         deficiency.
82708
82709 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82710
82711         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82712         Include xalloc.h.
82713         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82714
82715 2000-06-24  Jim Meyering  <meyering@lucent.com>
82716
82717         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82718         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82719         for which strerror does return char*, but which lacks a conveniently
82720         accessible declaration of the function.  If the compile-test says
82721         strerror_r doesn't work, then resort to a `run'-test that works on
82722         BeOS and segfaults on DEC Unix.
82723
82724 2000-06-24  Jim Meyering  <meyering@lucent.com>
82725
82726         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82727
82728 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82729
82730         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82731         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82732
82733 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82734
82735         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82736         (mbrtowc, mbstate_t): Define substitutes if
82737         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82738         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82739         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82740
82741 2000-06-23  Jim Meyering  <meyering@lucent.com>
82742
82743         * m4/afs.m4: Add missing AC_MSG_RESULT.
82744         Reported by Bruno Haible.
82745
82746         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82747         Suggestion from Bruno Haible.
82748
82749 2000-06-23  Jim Meyering  <meyering@lucent.com>
82750
82751         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82752
82753 2000-06-21  Jim Meyering  <meyering@lucent.com>
82754
82755         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82756
82757 2000-06-21  Jim Meyering  <meyering@lucent.com>
82758
82759         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82760         (noinst_HEADERS): Add getstr.h.
82761
82762         * lib/getline.c (getstr): Move into a separate file.
82763         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82764         the following changes: new parameter, delim2; both delim[12]
82765         parameters have type `int', not `char'.  The latter would lose
82766         with 8-bit delimiters.
82767         * lib/getstr.h: New file.
82768
82769 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82770
82771         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82772         than 1024, return a memory chunk of least possible size, instead
82773         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82774         Use free/xmalloc instead of xrealloc to avoid copying for very long
82775         paths.
82776
82777 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82778
82779         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82780         the empty string.
82781
82782 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82783
82784         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82785         address, not strdup.  Include <stdlib.h> and don't declare free().
82786
82787 2000-06-19  Jim Meyering  <meyering@lucent.com>
82788
82789         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82790
82791 2000-06-18  Jim Meyering  <meyering@lucent.com>
82792
82793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82794
82795         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82796         `checking whether...' message to be consistent with that of the
82797         lstat test.
82798
82799 2000-06-18  Jim Meyering  <meyering@lucent.com>
82800
82801         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82802         Besides, these days every porting target provides a mkdir function.
82803
82804         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82805         needed. (this snippet comes from src/system.h).
82806
82807 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82808
82809         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82810
82811 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82812
82813         * lib/human.c (adjust_value): New function.
82814         (human_readable_inexact): Apply rounding style even when
82815         printing approximate values.
82816
82817 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82818
82819         * lib/human.c (human_readable_inexact): Allow an input block
82820         size that is not a multiple of the output block size, and vice versa.
82821         Reported by Piergiorgio Sartor.
82822
82823 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82824
82825         * lib/getdate.y (get_date): Apply relative times after time
82826         zone indicator, not before.  Reported by Todd A. Jacobs.
82827
82828 2000-06-13  Jim Meyering  <meyering@lucent.com>
82829
82830         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82831
82832         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82833
82834 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82835
82836         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82837
82838 2000-06-12  Jim Meyering  <meyering@lucent.com>
82839
82840         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82841         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82842         optional argument.
82843         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82844         the optional argument, `lib'.
82845
82846 2000-06-08  Jim Meyering  <meyering@lucent.com>
82847
82848         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82849
82850 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82851
82852         Rewrite largefile configuration so that we don't need to run
82853         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82854         AC_CANONICAL_HOST in configure.in -- jmm]
82855
82856         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82857         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82858         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82859         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82860         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82861         All uses changed.
82862         Instead of inspecting the output of getconf, try to compile the
82863         test program without and with the macro definition.
82864         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82865         for getconf.  Instead, check for the needed flags by compiling
82866         test programs.
82867
82868 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82869
82870         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82871
82872 2000-06-04  Jim Meyering  <meyering@lucent.com>
82873
82874         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82875         SunOS 4.1.4 for which gid_t is an unsigned type.
82876
82877 2000-06-03  Jim Meyering  <meyering@lucent.com>
82878
82879         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82880         now that autoconf requires that.
82881
82882         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82883         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82884         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82885
82886 2000-06-03  Jim Meyering  <meyering@lucent.com>
82887
82888         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82889
82890 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82891
82892         * m4/glibc21.m4: New file.
82893         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82894
82895 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82896
82897         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82898         newer, don't install charset.alias.
82899         * lib/config.charset: Change the Linux/glibc rules so they become empty
82900         on glibc-2.1 or newer.
82901
82902 2000-06-02  Jim Meyering  <meyering@lucent.com>
82903
82904         * lib/mountlist.c: Back out last change.  Instead, do this...
82905         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82906         me_dummy member using the same `ignore'-testing code.
82907         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82908         fs_type strings.
82909         From Mark D. Roth.
82910
82911 2000-05-29  Jim Meyering  <meyering@lucent.com>
82912
82913         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82914         mounts with the `ignore' attribute.  Based on a patch from
82915         Mark D. Roth.
82916
82917 2000-05-28  Jim Meyering  <meyering@lucent.com>
82918
82919         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82920         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82921         * m4/stat.m4: Likewise.
82922         * m4/lstat.m4: Likewise.
82923         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82924
82925         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82926         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82927
82928 2000-05-26  Jim Meyering  <meyering@lucent.com>
82929
82930         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82931
82932 2000-05-24  Jim Meyering  <meyering@lucent.com>
82933
82934         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82935         autoconf requires that.
82936         * m4/lib-check.m4: Likewise.
82937         * m4/jm-macros.m4: Likewise.
82938         * m4/strftime.m4: Likewise.
82939
82940         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82941         AC_CHECK_DECLS, now that autoconf requires that.
82942
82943 2000-05-22  Jim Meyering  <meyering@lucent.com>
82944
82945         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82946         * m4/lstat.m4: Likewise.
82947
82948 2000-05-22  Jim Meyering  <meyering@lucent.com>
82949
82950         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82951
82952 2000-05-20  Jim Meyering  <meyering@lucent.com>
82953
82954         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82955         (jm_PREREQ): Use it.
82956
82957 2000-05-18  Jim Meyering  <meyering@lucent.com>
82958
82959         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82960         back, too, since it may have been modified by allocate_entry.
82961         (hash_delete): Rewrite to use neither the assignment operator
82962         nor the comma operator in an if-expression.
82963
82964 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82965
82966         * lib/closeout.c:
82967         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82968         Remove; no longer needed.
82969         "quotearg.h": Add include.
82970         (file_name): Do not bother to explicitly initialize to NULL; it's less
82971         efficient on some hosts.
82972         (close_stdout_status): Remove test as to whether stdout was already
82973         closed; it breaks for the case "echo x | sort >&-".
82974         Quote file name colons.
82975         Do not assume that _("write error") lacks format strings.
82976
82977 2000-05-15  Jim Meyering  <meyering@lucent.com>
82978
82979         * lib/version-etc.c (version_etc_copyright): Update the copyright
82980         string used in all --version output.
82981
82982 2000-05-14  Jim Meyering  <meyering@lucent.com>
82983
82984         * lib/closeout.c (close_stdout_set_file_name): New function.
82985         (close_stdout_status): Use new file-scoped global.
82986         Return right away if fstat says the stdout file descriptor is invalid.
82987         * lib/closeout.h (close_stdout_set_file_name): Declare.
82988
82989 2000-05-10  Jim Meyering  <meyering@lucent.com>
82990
82991         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82992         (close_stdout_set_status): New function.
82993         * lib/closeout.h (close_stdout_set_status): Declare.
82994
82995 2000-05-09  Jim Meyering  <meyering@lucent.com>
82996
82997         * m4/gettext.m4: Rename this...
82998         * m4/libintl.m4: ...to this.
82999
83000 2000-05-08  Jim Meyering  <meyering@lucent.com>
83001
83002         * lib/long-options.c: Don't include closeout.h.
83003         (parse_long_options): Don't call close_stdout for --version.
83004
83005 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83006
83007         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83008         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83009         2.1.3 bug.  This avoids a clash when files like regex.c define
83010         _GNU_SOURCE.
83011
83012 2000-05-06  Jim Meyering  <meyering@lucent.com>
83013
83014         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83015         (AC_REPLACE_FUNCS): Add strnlen.
83016
83017         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83018         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83019
83020         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83021         AC_SEARCH_LIBS call for nanosleep.
83022         (LIB_NANOSLEEP): Set and AC_SUBST.
83023
83024 2000-05-06  Jim Meyering  <meyering@lucent.com>
83025
83026         * lib/strnlen.c: Undefine __strnlen and strnlen.
83027         [!weak_alias]: Define __strnlen to strnlen.
83028
83029         * lib/atexit.c: New file, from libiberty.
83030
83031 2000-05-06  Jim Meyering  <meyering@lucent.com>
83032
83033         * lib/closeout.c (close_stdout_status): Also check for errors on the
83034         stderr stream.
83035
83036 2000-05-05  Jim Meyering  <meyering@lucent.com>
83037
83038         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83039         AC_SEARCH_LIBS call for clock_gettime.
83040         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83041
83042         * m4/search-libs.m4: Update from autoconf.
83043
83044         su doesn't work on Solaris 2.6.
83045         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83046         <shadow.h>.  Reported by Dragos Harabor.
83047
83048 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83049
83050         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83051         memcpy instead of xmalloc, xrealloc, path_concat.
83052         (locale_charset): Treat empty environment variables as absent.
83053         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83054
83055 2000-05-04  Jim Meyering  <meyering@lucent.com>
83056
83057         * lib/getopt.c: Update from glibc.
83058         * lib/obstack.c: Likewise.
83059         * lib/obstack.h: Likewise.
83060         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83061         file
83062
83063         * lib/regex.h: Likewise.
83064         * lib/strndup.c: Likewise.
83065         * lib/strnlen.c: New file, from glibc.
83066
83067 2000-05-03  Jim Meyering  <meyering@lucent.com>
83068
83069         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83070
83071 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83072
83073         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83074         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83075         compile-time test, rather than inspecting host and OS, to
83076         decide whether to define _LARGEFILE_SOURCE.
83077
83078 2000-05-01  Jim Meyering  <meyering@lucent.com>
83079
83080         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83081
83082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83083         Based on a patch from Bruno Haible.
83084
83085 2000-05-01  Jim Meyering  <meyering@lucent.com>
83086
83087         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83088
83089 2000-04-29  Jim Meyering  <meyering@lucent.com>
83090
83091         * lib/path-concat.c: Declare strdup only if it's not defined.
83092         * lib/canon-host.c: Likewise.
83093
83094 2000-04-28  Jim Meyering  <meyering@lucent.com>
83095
83096         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83097         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83098         is included first, then limits.h is included by locale.h by libintl.h.
83099         From John David Anglin.
83100
83101 2000-04-25  Jim Meyering  <meyering@lucent.com>
83102
83103         * lib/makepath.c (S_IRWXUGO): Define.
83104         (make_path): Always perform explicit chmod if MODE specifies any
83105         of the `special' permission bits.  Prompted by a bug report against
83106         install from Mate Wierdl and Joost van Baal.
83107
83108 2000-04-18  Jim Meyering  <meyering@lucent.com>
83109
83110         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83111         (jm_PREREQ): Use it.
83112
83113 2000-04-18  Jim Meyering  <meyering@lucent.com>
83114
83115         * lib/README: New file.
83116
83117         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83118         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83119
83120 2000-04-17  Jim Meyering  <meyering@lucent.com>
83121
83122         Get it right :-)
83123         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83124         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83125         Suggestion from Akim Demaille.
83126
83127 2000-04-17  Jim Meyering  <meyering@lucent.com>
83128
83129         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83130         the definition of it to rpl_strftime also defined-away the system's
83131         declaration.
83132
83133 2000-04-15  Jim Meyering  <meyering@lucent.com>
83134
83135         Use `C' to denote so-called `contiguous' files, the same way
83136         that tar does.
83137         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83138         (ftypelet): Use S_ISCTG.
83139         From Michael Deutschmann.
83140
83141 2000-04-14  Jim Meyering  <meyering@lucent.com>
83142
83143         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83144         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83145         clobbered.
83146
83147 2000-04-14  Jim Meyering  <meyering@lucent.com>
83148
83149         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83150
83151 2000-04-13  Jim Meyering  <meyering@lucent.com>
83152
83153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83154         AH_VERBATIM to insert required #ifndef into config.h.in.
83155         Suggestion from Akim Demaille.
83156
83157 2000-04-12  Jim Meyering  <meyering@lucent.com>
83158
83159         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83160         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83161         Christian Krackowizer.
83162
83163         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83164         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83165         (AC_SYS_LARGEFILE): Require.
83166         (AM_C_PROTOTYPES): Require.
83167
83168 2000-04-08  Jim Meyering  <meyering@lucent.com>
83169
83170         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83171         names don't conflict.  Reported by Eli Zaretskii.
83172
83173 2000-04-07  Jim Meyering  <meyering@lucent.com>
83174
83175         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83176         sys/types.h, to work around system header problems on AIX 3.2.5.
83177         From Bruno Haible.
83178
83179 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83180
83181         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83182         bug.  Deal with the different error behavior of Irix iconv.
83183
83184 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83185
83186         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83187         IRIX if the installer said otherwise.
83188
83189 2000-04-05  Jim Meyering  <meyering@lucent.com>
83190
83191         Portability tweaks required for ultrix4.3.
83192         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83193         (jm_CHECK_DECLS): Add getutent to the list of functions.
83194         (_jm_DECL_HEADERS): Add utmpx.h.
83195         From John David Anglin.
83196
83197         * m4/strftime.m4: Back out the 2000-04-02 change.
83198         Instead of that change, simply undefine putenv in the test program.
83199
83200 2000-04-05  Jim Meyering  <meyering@lucent.com>
83201
83202         Portability tweaks required for ultrix4.3.
83203         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83204         getutent.
83205         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83206         * lib/canon-host.c: Declare strdup.
83207         * lib/path-concat.c: Likewise.
83208         From John David Anglin.
83209
83210 2000-04-04  Jim Meyering  <meyering@lucent.com>
83211
83212         Be more DOS 8.3-friendly.
83213         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83214         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83215         * lib/Makefile.am: Reflect renaming.
83216         Reported by Eli Zaretskii.
83217
83218         Use a temporary file name that won't clash with `charset.alias'
83219         in the DOS 8.3 name space.
83220         * lib/Makefile.am (charset_tmp): Define.
83221         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83222         (uninstall-local): Likewise.
83223         Reported by Eli Zaretskii.
83224
83225 2000-04-03  Jim Meyering  <meyering@lucent.com>
83226
83227         * m4/gettext.m4: Fix typo in comment.
83228
83229         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83230         textutils/configure.in).  Suggestion from Paul Eggert.
83231         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83232
83233 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83234
83235         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83236         variable in the shell rather than using putenv, which isn't
83237         portable.  This avoids the configure-time inter-test dependency
83238         on the potentially-renamed putenv function.
83239
83240 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83241
83242         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83243         before checking struct stat.st_blksize, so that
83244         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83245
83246 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83247
83248         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83249         since strftime.c uses HAVE_STRFTIME to decide whether to use
83250         the underlying strftime.
83251
83252 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83253
83254         * lib/time/strftime.c (my_strftime): Make sure we call the system
83255         strftime, not ourselves, when invoking the underlying strftime.
83256
83257 2000-03-24  Jim Meyering  <meyering@lucent.com>
83258
83259         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83260         (charset_alias): Define.
83261         (install-exec-local): Factor out common code.
83262         (uninstall-local): Split lines longer than 80.
83263         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83264         (SUFFIXES): Define.
83265         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83266         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83267
83268 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83269
83270         * lib/config.charset: Output a line containing "Packages using this
83271         file".
83272         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83273         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83274         ref-del.sed): New rules.
83275
83276 2000-03-17  Jim Meyering  <meyering@lucent.com>
83277
83278         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83279         Otherwise, include <strings.h>
83280
83281 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83282
83283         * lib/unicodeio.c (utf8_wctomb): New function.
83284         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83285         format instead of in UCS-4 with platform dependent endianness.
83286
83287 2000-03-10  Jim Meyering  <meyering@lucent.com>
83288
83289         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83290         From Marco Franzen.
83291
83292 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83293
83294         * lib/savedir.c (savedir): Work even if directory size is
83295         negative; this can happen with some screwy NFS configurations.
83296
83297 2000-03-06  Jim Meyering  <meyering@lucent.com>
83298
83299         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83300         if it's NULL (because we ran out of memory).  From Bruno Haible.
83301
83302 2000-03-05  Jim Meyering  <meyering@lucent.com>
83303
83304         * lib/localcharset.c ("path-concat.h"): Include.
83305         (get_charset_aliases): Use path_concat instead of ANSI string
83306         concatenation.
83307
83308         * lib/unicodeio.h (PARAMS): Define.
83309         Use it to guard prototype.
83310
83311 2000-03-04  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83314         for lib/localcharset.c.
83315
83316 2000-03-04  Jim Meyering  <meyering@lucent.com>
83317
83318         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83319         installing into it.
83320         (uninstall-local): Uncomment this rule so `make distcheck' works
83321         once again.
83322
83323         * lib/unicodeio.c (<errno.h>): Include it.
83324         (errno): Declare if not defined.
83325
83326         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83327
83328         * lib/config.charset: New version, incorporating remarks from a linux
83329         i18n mailing list.  From Bruno Haible.
83330
83331 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83332
83333         * m4/codeset.m4: New file.
83334         * m4/iconv.m4: New file.
83335         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83336
83337 2000-03-03  Jim Meyering  <meyering@lucent.com>
83338
83339         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83340
83341 2000-03-02  Jim Meyering  <meyering@lucent.com>
83342
83343         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83344         the messages come out on separate lines.
83345
83346         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83347         rather than jm_CHECK_DECLARATIONS.
83348         * m4/decl.m4: Remove now-unused file.
83349
83350         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83351         geteuid.
83352
83353 2000-03-02  Jim Meyering  <meyering@lucent.com>
83354
83355         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83356
83357 2000-03-01  Jim Meyering  <meyering@lucent.com>
83358
83359         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83360         * lib/unicodeio.c: Likewise.
83361
83362 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83363
83364         * lib/config.charset: New file.
83365         * lib/localcharset.c: New file.
83366         * lib/unicodeio.h, lib/unicodeio.c: New files.
83367         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83368         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83369         (noinst_HEADERS): Add unicodeio.h.
83370         (all-local, install-exec-local, charset.alias): New targets.
83371
83372 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83373
83374         * lib/quotearg.c (ALERT_CHAR): New macro.
83375         (quotearg_buffer_restyled): Use it.
83376
83377 2000-02-27  Jim Meyering  <meyering@lucent.com>
83378
83379         * m4/check-decl.m4: Add getenv to the list.
83380
83381 2000-02-27  Jim Meyering  <meyering@lucent.com>
83382
83383         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83384         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83385
83386         * lib/backupfile.c: Guard inclusion of stdlib.h with
83387         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83388         Declare malloc if needed.
83389
83390         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83391         `#ifndef HAVE_DECL..'
83392         now that autoconf always defines the HAVE_DECL_ symbols.
83393         * lib/human.c: Likewise.
83394         * lib/same.c: Likewise.
83395         * lib/strtoumax.c: Likewise.
83396
83397         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83398         declaration check was not run.
83399         * lib/hash.c: Likewise.
83400         * lib/human.c: Likewise.
83401         * lib/same.c: Likewise.
83402         * lib/strtoumax.c: Likewise.
83403
83404         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83405         `.', then first look up the entire `.'-containing string as a login
83406         name.
83407
83408 2000-02-23  Jim Meyering  <meyering@lucent.com>
83409
83410         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83411         in place of my hack.
83412
83413 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83414
83415         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83416         (textint): New typedef.
83417         (parser_control): Member year changed from int to textint.
83418         All uses changed.
83419         (YYSTYPE): Removed; replaced by %union with int and textint members.
83420         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83421         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83422         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83423         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83424         (date, number, to_year): Use width of number in digits, not its value,
83425         to determine whether it's a 2-digit year, or a 2-digit time.
83426         (yylex): Store number of digits of numeric tokens.
83427         Reported by John Kendall.
83428
83429         (parser_control): Changed from struct parser_control to typedef (for
83430         consistency).  All uses changed.
83431
83432         (tID): Removed; not used.
83433         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83434
83435 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83436
83437         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83438         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83439
83440 2000-02-12  Jim Meyering  <meyering@lucent.com>
83441
83442         * lib/userspec.c (ISDIGIT): Define it.
83443         (isdigit): Remove definition.
83444         (is_number): Use ISDIGIT, not isdigit.
83445         <libintl.h>: Include.
83446         (_ and N_): Define.
83447         (parse_user_spec): Mark translatable strings.
83448
83449 2000-02-10  Jim Meyering  <meyering@lucent.com>
83450
83451         With these changes, nanosleep.[ch] are finally enough like the other
83452         lib/* replacement files to compile on a few more losing systems.
83453
83454         * lib/nanosleep.h: Don't include config.h.
83455         Remove prototype from declaration of nanosleep.
83456         (PARAMS): Remove now-unneeded definition.
83457         * lib/nanosleep.c: #undef nanosleep.
83458         (rpl_nanosleep): Rename from nanosleep.
83459
83460 2000-02-10  Jim Meyering  <meyering@lucent.com>
83461
83462         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83463         gnu_nanosleep to rpl_nanosleep.
83464
83465 2000-02-09  Jim Meyering  <meyering@lucent.com>
83466
83467         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83468         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83469
83470 2000-02-08  Akim Demaille  <akim@epita.fr>
83471
83472         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83473         `[' and `]' and remove uses of `changequote'.
83474         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83475         (AC_SYS_LARGEFILE): Likewise.
83476         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83477         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83478         of changequote.
83479         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83480         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83481         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83482         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83483
83484 2000-02-05  Jim Meyering  <meyering@lucent.com>
83485
83486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83487         Remove explicit use of AC_HEADER_TIME.  It is required by
83488         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83489         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83490         in autoconf whereby the expansion of the latter ended up preceding
83491         the expansion of its prerequisite, AC_HEADER_TIME.
83492         Reported by Volker Borchert.
83493
83494 2000-02-03  Jim Meyering  <meyering@lucent.com>
83495
83496         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83497
83498 2000-02-03  Jim Meyering  <meyering@lucent.com>
83499
83500         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83501         rather than with `#if HAVE_UTMPNAME'.
83502
83503 2000-02-02  Jim Meyering  <meyering@lucent.com>
83504
83505         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83506         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83507         Reported by Eli Zaretskii.
83508
83509 2000-02-01  Jim Meyering  <meyering@lucent.com>
83510
83511         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83512
83513 2000-01-31  Jim Meyering  <meyering@lucent.com>
83514
83515         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83516         functions.  Add the time.h and sys/time.h headers along with the
83517         AC_REQUIRE'ment of AC_HEADER_TIME.
83518
83519 2000-01-31  Jim Meyering  <meyering@lucent.com>
83520
83521         * lib/nanosleep.h (nanosleep): Guard declaration with
83522         `#if ! HAVE_DECL_NANOSLEEP'.
83523         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83524         the declaration in that vendor's sys/timers.h.
83525         Reported by Christian Krackowizer.
83526
83527         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83528         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83529         (ISPRINT): Likewise.
83530         Reported by Tom Tromey.
83531
83532 2000-01-30  Jim Meyering  <meyering@lucent.com>
83533
83534         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83535
83536         * m4/prereq.m4 (utmp_includes): Define.
83537         Check for ut_user and ut_name members in both struct utmpx
83538         and struct utmp.
83539
83540 2000-01-30  Jim Meyering  <meyering@lucent.com>
83541
83542         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83543         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83544         header files where only utmpx.ut_user is declared.
83545
83546         * lib/readutmp.h (UT_USER): Define.
83547
83548 2000-01-29  Jim Meyering  <meyering@lucent.com>
83549
83550         * m4/lib-check.m4: New file containing library-related checks from
83551         fileutils and sh-utils (textutils had none).
83552
83553 2000-01-28  Jim Meyering  <meyering@lucent.com>
83554
83555         * m4/perl.m4: Change format of warning message to look more like that
83556         from the missing script.  Suggestion from François Pinard.
83557
83558 2000-01-25  Jim Meyering  <meyering@lucent.com>
83559
83560         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83561         well as time.h in the compile check.
83562         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83563         Fix typo in cross-compiling case: s/yes/no/.
83564
83565 2000-01-23  Jim Meyering  <meyering@lucent.com>
83566
83567         * m4/jm-macros.m4: Move df-related tests here from
83568         fileutils/configure.in
83569
83570         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83571         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83572
83573         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83574         s/space/ac_fsusage_space/.
83575         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83576
83577         * m4/ftruncate.m4: New file (derived from part of
83578         fileutils/configure.in).
83579         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83580         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83581
83582         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83583         AC_SUBST these here, rather than just in sh-util/configure.in, so
83584         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83585         all the same.
83586         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83587         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83588         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83589         (AC_SUBST(POW_LIBM)): Likewise.
83590         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83591
83592 2000-01-23  Jim Meyering  <meyering@lucent.com>
83593
83594         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83595         obstack.c.
83596
83597 2000-01-22  Jim Meyering  <meyering@lucent.com>
83598
83599         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83600
83601         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83602
83603         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83604         configure.in
83605         (AC_CHECK_HEADERS): Likewise for sh-utils.
83606         (AC_CHECK_HEADERS): Likewise for textutils.
83607         Merge the three lists of headers.
83608
83609         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83610         from fileutils' configure.in.
83611
83612         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83613         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83614         check-decl.m4.
83615
83616         * m4/check-decl.m4: Use #if rather than #ifdef.
83617         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83618         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83619         (_jm_DECL_HEADERS): Define new function.
83620         (jm_CHECK_DECLARATIONS): Require it.
83621
83622 2000-01-22  Jim Meyering  <meyering@lucent.com>
83623
83624         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83625         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83626         Required for some AIX systems.  Reported by Christian Krackowizer.
83627         [TESTING] (main): New function.
83628
83629         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83630         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83631         letters.
83632
83633         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83634         iswprint.
83635
83636         * lib/strverscmp.c (ISDIGIT): Define.
83637         (strverscmp): Use ISDIGIT, not isdigit.
83638
83639 2000-01-19  Jim Meyering  <meyering@lucent.com>
83640
83641         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83642         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83643         defines `struct timespec' in <sys/time.h>
83644
83645         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83646         Thanks to Akim for explaining.
83647
83648 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83649
83650         * lib/nanosleep.c (nanosleep):
83651         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83652         POSIX.1 doesn't require SA_INTERRUPT and some systems
83653         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83654         it's been part of POSIX.1 since day 1 (in 1988).
83655
83656 2000-01-17  Jim Meyering  <meyering@lucent.com>
83657
83658         * lib/interlock: Remove unused file.  Reported by François Pinard.
83659
83660 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83661
83662         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83663         alert, backslash, formfeed, and vertical tab unnecessarily in
83664         shell quoting style.
83665
83666 2000-01-16  Jim Meyering  <meyering@lucent.com>
83667
83668         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83669         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83670         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83671         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83672
83673 2000-01-16  Jim Meyering  <meyering@lucent.com>
83674
83675         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83676         because the latter didn't work.
83677
83678 2000-01-15  Jim Meyering  <meyering@lucent.com>
83679
83680         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83681         (AC_REPLACE_FUNCS): Add memcpy and memset.
83682         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83683         Add strpbrk.
83684         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83685
83686 2000-01-12  Jim Meyering  <meyering@lucent.com>
83687
83688         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83689         (jm_PREREQ): Use it.
83690         (jm_PREREQ_READUTMP): New macro.
83691         (jm_PREREQ): Use it.
83692
83693 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83694
83695         Quote multibyte characters correctly.
83696         * m4/c-bs-a.m4: New file.
83697         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83698         (jm_PREREQ): Use it.
83699
83700 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83701
83702         * m4/uintmax_t.m4: Port to autoconf 2.13.
83703
83704 2000-01-08  Jim Meyering  <meyering@ascend.com>
83705
83706         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83707         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83708
83709 2000-01-04  Jim Meyering  <meyering@ascend.com>
83710
83711         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83712         jm_STRUCT_DIRENT_D_TYPE.
83713         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83714         jm_STRUCT_DIRENT_D_INO.
83715         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83716         jm_STRUCT_UTIMBUF.
83717         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83718         renamings.
83719         * m4/utime.m4: Likewise.
83720
83721         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83722         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83723
83724 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83725
83726         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83727         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83728
83729 2000-01-02  Jim Meyering  <meyering@ascend.com>
83730
83731         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83732         remember if this is necessary.
83733
83734 1999-12-26  Jim Meyering  <meyering@ascend.com>
83735
83736         * m4/jm-macros.m4: Use it here.
83737         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83738
83739 1999-12-23  Jim Meyering  <meyering@ascend.com>
83740
83741         * m4/jm-macros.m4: Check for clock_gettime (moved from
83742         fileutils/configure.in)
83743         Check for gettimeofday.
83744
83745 1999-12-20  Jim Meyering  <meyering@ascend.com>
83746
83747         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83748         autoconf-2.14a-1999-12-20.
83749
83750 1999-12-19  Jim Meyering  <meyering@ascend.com>
83751
83752         * m4/lstat-slash.m4: New file.
83753         * m4/jm-macros.m4: Use the new macro:
83754         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83755
83756 1999-12-07  Jim Meyering  <meyering@ascend.com>
83757
83758         * m4/perl.m4: Require that File::Compare be available, too.
83759         Too many systems seem to lack it.
83760
83761         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83762         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83763
83764 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83765
83766         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83767         problem with the QNX 4.25 shell, which doesn't propagate exit
83768         status of failed commands inside shell assignments.
83769
83770 1999-11-17  Jim Meyering  <meyering@ascend.com>
83771
83772         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83773
83774 1999-11-07  Jim Meyering  <meyering@ascend.com>
83775
83776         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83777
83778 1999-11-06  Jim Meyering  <meyering@ascend.com>
83779
83780         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83781         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83782
83783 1999-11-05  Jim Meyering  <meyering@ascend.com>
83784
83785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83786         configure.in of textutils, fileutils, and sh-utils into this one
83787         (shared between those packages) file.
83788         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83789         AC_STRUCT_ST_BLKSIZE.
83790
83791 1999-11-03  Jim Meyering  <meyering@ascend.com>
83792
83793         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83794         of AC_CHECK_TYPE checks includes unistd.h.
83795         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83796         Suggestion from Akim Demaille.
83797
83798 1999-10-30  Jim Meyering  <meyering@ascend.com>
83799
83800         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83801         m4-quoted string.
83802         * m4/ls-mntd-fs.m4: Likewise.
83803         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83804         * m4/jm-winsz1.m4: Likewise.
83805
83806         * m4/const.m4: Remove file, since the fix made it into the experimental
83807         version of autoconf.
83808         * m4/mktime.m4: Likewise.
83809
83810         * m4/check-type.m4: Remove file, now that the latest version of
83811         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83812
83813         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83814         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83815         AC_CHECK_TYPE.
83816
83817 1999-10-04  Jim Meyering  <meyering@ascend.com>
83818
83819         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83820
83821 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83822
83823         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83824         2.95.1 bug with HP-UX 10.20.
83825
83826 1999-09-17  Jim Meyering  <meyering@ascend.com>
83827
83828         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83829         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83830         due to missing strdup (against sh-utils-2.0).
83831
83832 1999-08-29  Jim Meyering  <meyering@ascend.com>
83833
83834         * m4/jm-macros.m4: Require jm_BISON.
83835         * m4/bison.m4: New file.
83836
83837 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83838
83839         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83840         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83841
83842 1999-08-05  Jim Meyering  <meyering@ascend.com>
83843
83844         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83845         to avoid conflicts with `conftest' on 8+3 filesystems.
83846         Suggestion from Eli Zaretskii.
83847
83848 1999-08-04  Jim Meyering  <meyering@ascend.com>
83849
83850         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83851         fileutils and sh-utils (textutils's getline test was inadequate).
83852         (AM_FUNC_GETLINE): Run this test.
83853         (AC_CHECK_FUNCS): Check for getdelim.
83854         Reported by Bob Proulx.
83855
83856 1999-08-02  Jim Meyering  <meyering@ascend.com>
83857
83858         * m4/jm-macros.m4: Add a comment.
83859
83860 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83861
83862         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83863         <inttypes.h> defines strtoumax as a macro (and not as a
83864         function).
83865
83866 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83867
83868         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83869         that we can shift, multiply and divide unsigned long long
83870         values; Ultrix cc can't do it.
83871
83872 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83873
83874         * m4/mktime.m4: New file, which is a preview of what should appear
83875         in the next public autoconf release.
83876
83877 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83878
83879         * m4/lfs.m4: Remove this file.
83880         * m4/largefile.m4: New file.  It contains the old contents of
83881         lfs.m4, except that all names with prefix AC_LFS have been
83882         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83883         compatible with future autoconf versions.  Also, some minor m4
83884         quoting problems have been fixed.
83885
83886 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83887
83888         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83889         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83890         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83891         and simplify the shell code.
83892
83893 1999-08-01  Jim Meyering  <meyering@ascend.com>
83894
83895         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83896         m4.
83897
83898 1999-07-20  Jim Meyering  <meyering@ascend.com>
83899
83900         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83901
83902 1999-07-15  Jim Meyering  <meyering@ascend.com>
83903
83904         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83905
83906 1999-05-22  Jim Meyering  <meyering@ascend.com>
83907
83908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83909
83910 1999-05-20  Jim Meyering  <meyering@ascend.com>
83911
83912         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83913         Add a colon after each `then' in case $4 is empty.
83914
83915 1999-05-16  Jim Meyering  <meyering@ascend.com>
83916
83917         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83918
83919 1999-05-10  Jim Meyering  <meyering@ascend.com>
83920
83921         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83922
83923         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83924         AC_FUNC_MKTIME.
83925
83926 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83927
83928         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83929
83930 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83931
83932         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83933         not CPPFLAGS, so that linking works correctly in IRIX.
83934
83935 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83936
83937         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83938
83939 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83940
83941         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83942         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83944         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83945         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83946
83947         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83948
83949 1999-04-20  Jim Meyering  <meyering@ascend.com>
83950
83951         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83952         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83953         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83954
83955 1999-04-18  Jim Meyering  <meyering@ascend.com>
83956
83957         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83958         * m4/jm-macros.m4: Use it.
83959
83960 1999-04-06  Jim Meyering  <meyering@ascend.com>
83961
83962         * m4/strftime.m4: Remove test for %f.
83963
83964 1999-03-29  Jim Meyering  <meyering@ascend.com>
83965
83966         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83967         superset of the AC_TYPE_* checks in the textutils, fileutils,
83968         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83969         AC_TYPE_PID_T.
83970
83971 1999-03-28  Jim Meyering  <meyering@ascend.com>
83972
83973         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83974         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83975         replaced e.g., in the *.sh files of the sh-utils.
83976
83977 1999-03-20  Jim Meyering  <meyering@ascend.com>
83978
83979         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83980         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83981         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83982
83983 1999-03-19  Jim Meyering  <meyering@ascend.com>
83984
83985         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83986
83987 1999-03-12  Jim Meyering  <meyering@ascend.com>
83988
83989         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83990
83991 1999-03-07  Jim Meyering  <meyering@ascend.com>
83992
83993         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83994         declared.
83995
83996 1999-02-17  Jim Meyering  <meyering@ascend.com>
83997
83998         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83999         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84000
84001 1999-02-07  Jim Meyering  <meyering@ascend.com>
84002
84003         * m4/group-member.m4: New file -- extracted from sh-utils'
84004         configure.in.
84005
84006         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84007         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84008
84009 1999-02-06  Jim Meyering  <meyering@ascend.com>
84010
84011         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84012         * m4/fnmatch.m4: Likewise.
84013         * m4/getgroups.m4: Likewise.
84014         * m4/lstat.m4: Likewise.
84015         * m4/malloc.m4: Likewise.
84016         * m4/putenv.m4: Likewise.
84017         * m4/realloc.m4: Likewise.
84018         * m4/regex.m4: Likewise.
84019         * m4/stat.m4: Likewise.
84020         * m4/strftime.m4: Likewise.
84021         Suggestion from Alain Magloire.
84022
84023         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84024         * m4/fnmatch.m4: Likewise.
84025         * m4/getgroups.m4: Likewise.
84026         * m4/getline.m4: Likewise.
84027         * m4/lstat.m4: Likewise.
84028         * m4/malloc.m4: Likewise.
84029         * m4/memcmp.m4: Likewise.
84030         * m4/putenv.m4: Likewise.
84031         * m4/realloc.m4: Likewise.
84032         * m4/regex.m4: Likewise.
84033         * m4/stat.m4: Likewise.
84034         * m4/strftime.m4: Likewise.
84035         Suggestion from Alain Magloire.
84036
84037         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84038         an argument.
84039
84040         * m4/regex.m4: Add a run-time Test for proper operation of
84041         re_compile_pattern.
84042
84043 1999-01-31  Jim Meyering  <meyering@ascend.com>
84044
84045         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84046
84047 1999-01-30  Jim Meyering  <meyering@ascend.com>
84048
84049         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84050
84051         * m4/jm-mktime.m4: Make this a wrapper around the official
84052         AM_FUNC_MKTIME rather than my private copy, now that the official one
84053         is up to date.
84054         * m4/mktime.m4: Remove file.
84055
84056         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84057         * m4/uptime.m4: Likewise.
84058         * m4/uintmax_t.m4: Likewise.
84059
84060 1999-01-28  Jim Meyering  <meyering@ascend.com>
84061
84062         * m4/jm-macros.m4: Use jm_AFS.
84063         * m4/afs.m4: New file (from fileutils' configure.in).
84064
84065         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84066         * m4/chown.m4: Likewise.
84067         * m4/d-ino.m4: Likewise.
84068         * m4/d-type.m4: Likewise.
84069         * m4/fnmatch.m4: Likewise.
84070         * m4/getgroups.m4: Likewise.
84071         * m4/gettext.m4: Likewise.
84072         * m4/jm-mktime.m4: Likewise.
84073         * m4/jm-winsz2.m4: Likewise.
84074         * m4/lcmessage.m4: Likewise.
84075         * m4/ls-mntd-fs.m4: Likewise.
84076         * m4/malloc.m4: Likewise.
84077         * m4/memcmp.m4: Likewise.
84078         * m4/putenv.m4: Likewise.
84079         * m4/realloc.m4: Likewise.
84080         * m4/st_mtim.m4: Likewise.
84081         * m4/strftime.m4: Likewise.
84082
84083 1999-01-16  Jim Meyering  <meyering@ascend.com>
84084
84085         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84086         (ARGMATCH_DIE_DECL): Define.
84087
84088 1999-01-12  Jim Meyering  <meyering@ascend.com>
84089
84090         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84091         Reported by Lars Hecking.
84092
84093 1999-01-10  Jim Meyering  <meyering@ascend.com>
84094
84095         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84096         gross kludge.
84097         * m4/inttypes_h.m4: Likewise.
84098         * m4/lstat.m4: Likewise.
84099         * m4/malloc.m4: Likewise.
84100         * m4/readdir.m4: Likewise.
84101         * m4/realloc.m4: Likewise.
84102         * m4/st_dm_mode.m4: Likewise.
84103         * m4/stat.m4: Likewise.
84104         * m4/utimbuf.m4: Likewise.
84105         * m4/utimes.m4: Likewise.
84106
84107         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84108         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84109         comments in config.h.in are meaningful.
84110
84111         * m4/jm-macros.m4: Require autoconf-2.13 here.
84112
84113         * m4/regex.m4: By default, don't use the included regex.c on systems
84114         with glibc 2.  Suggestion from Uli Drepper.
84115
84116 1999-01-02  Jim Meyering  <meyering@ascend.com>
84117
84118         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84119
84120 1998-12-18  Jim Meyering  <meyering@ascend.com>
84121
84122         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84123         Based on a suggestion from Lars Hecking.
84124
84125 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84126
84127         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84128
84129 1998-11-16  Jim Meyering  <meyering@ascend.com>
84130
84131         * m4/lfs.m4: Double-quote the `uname...` expression.
84132
84133 1998-11-14  Jim Meyering  <meyering@ascend.com>
84134
84135         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84136         * m4/stat.m4: Likewise.
84137
84138 1998-11-03  Jim Meyering  <meyering@ascend.com>
84139
84140         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84141         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84142
84143 1998-10-18  Jim Meyering  <meyering@ascend.com>
84144
84145         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84146
84147 1998-10-17  Jim Meyering  <meyering@ascend.com>
84148
84149         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84150         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84151         calls for those previously hard-coded headers.  Instead, take a new
84152         parameter.
84153         (jm_CHECK_DECLARATIONS): Reflect interface change.
84154         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84155         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84156
84157         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84158
84159 1998-10-14  Jim Meyering  <meyering@ascend.com>
84160
84161         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84162         instead of "TZ=America/Vancouver".  From Paul Eggert.
84163
84164 1998-10-11  Jim Meyering  <meyering@ascend.com>
84165
84166         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84167         This adds a test for a recently added compatibility fix for mktime.c.
84168         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84169
84170 1998-09-27  Jim Meyering  <meyering@ascend.com>
84171
84172         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84173
84174         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84175         ../configure.in, including a change from Gordon Matzigkeit to allow
84176         cross-compiling for the Hurd.
84177
84178         * m4/glibc.m4: New file/macro to test for the GNU C Library
84179         versions 1 and 2.  From Gordon Matzigkeit.
84180         Indent.
84181
84182 1998-09-21  Jim Meyering  <meyering@ascend.com>
84183
84184         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84185
84186 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84187
84188         Port nanosecond-resolution times to UnixWare 2.1.2 and
84189         pedantic Solaris 2.6.
84190
84191         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84192         AC_STRUCT_ST_MTIM.
84193         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84194         Generate name of ns member, instead of just 1 or undef.
84195         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84196
84197 1998-08-15  Jim Meyering  <meyering@ascend.com>
84198
84199         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84200         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84201         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84202         instead of jm_TYPE_SSIZE_T.
84203
84204 1998-08-12  Jim Meyering  <meyering@ascend.com>
84205
84206         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84207
84208 1998-08-02  Jim Meyering  <meyering@ascend.com>
84209
84210         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84211         in acconfig.h manually.
84212
84213 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84214
84215         * m4/st_mtim.m4: New file.
84216
84217 1998-07-28  Jim Meyering  <meyering@ascend.com>
84218
84219         * m4/utimes.m4: Undef stat.
84220
84221 1998-07-25  Jim Meyering  <meyering@ascend.com>
84222
84223         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84224         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84225
84226 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84227
84228         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84229         uid and gid actually remain unchanged.
84230
84231 1998-07-07  Jim Meyering  <meyering@ascend.com>
84232
84233         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84234
84235 1998-07-04  Jim Meyering  <meyering@ascend.com>
84236
84237         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84238         to prove that this macro can be used in packages without regex.c.
84239
84240 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84241
84242         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84243         is to be used.
84244
84245 1998-07-03  Jim Meyering  <meyering@ascend.com>
84246
84247         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84248
84249         * m4/gettext.m4: New file -- from gettext-0.10.35.
84250         * m4/lcmessage.m4: Likewise.
84251         * m4/progtest.m4: Likewise.
84252
84253         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84254         * m4/jm-macros.m4: Require the new macro.
84255
84256 1998-06-29  Jim Meyering  <meyering@ascend.com>
84257
84258         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84259         for the definition of NGROUPS (used in a system header included
84260         by sys/mount.h).
84261
84262 1998-06-28  Jim Meyering  <meyering@ascend.com>
84263
84264         * m4/ls-mntd-fs.m4: New file.
84265         * m4/fstypename.m4: New file.
84266
84267         * m4/jm-macros.m4: Require the new macro.
84268         * m4/jm-glibc-io.m4: New file.
84269
84270 1998-05-19  Jim Meyering  <meyering@ascend.com>
84271
84272         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84273         * m4/lchown.m4: New file.
84274
84275         * m4/Makefile.am.in: New file.
84276         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84277
84278 1998-05-14  Jim Meyering  <meyering@ascend.com>
84279
84280         * m4/Makefile.am (EXTRA_DIST): Add them.
84281         * m4/jm-macros.m4: New file.
84282         * m4/utimbuf.m4: New file.
84283
84284 1998-05-12  Jim Meyering  <meyering@ascend.com>
84285
84286         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84287
84288 1998-05-11  Jim Meyering  <meyering@ascend.com>
84289
84290         * m4/isc-posix.m4: New file.
84291
84292 1998-05-10  Jim Meyering  <meyering@ascend.com>
84293
84294         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84295
84296 1998-05-09  Jim Meyering  <meyering@ascend.com>
84297
84298         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84299         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84300         with automake.
84301
84302         * m4/ssize_t.m4: New file.
84303         * m4/mktime.m4: Remove file -- the new automake has this now.
84304
84305 1998-04-26  Jim Meyering  <meyering@ascend.com>
84306
84307         * m4/assert.m4: New file.
84308         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84309
84310 1998-04-05  Jim Meyering  <meyering@ascend.com>
84311
84312         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84313         (jm_PREREQ): Use it here.
84314
84315 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84316
84317         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84318         in acconfig.h.
84319
84320 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84321
84322         * m4/prereq.m4: New file.
84323         * m4/error.m4: New file.
84324         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84325
84326 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84327
84328         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84329         cache-check for the same variable -- that defeated the purpose of
84330         the test; the test program was never run.  This was a problem only
84331         on systems with losing getline functions -- HP-UX 10.20 is one.
84332         Reported by Bjorn Helgaas.
84333
84334 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84335
84336         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84337
84338 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84339
84340         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84341
84342         * m4/const.m4: New file.  Use an initializer in this declaration
84343         typedef int charset[2]; const charset x;
84344         Reported by Bob Glickstein.
84345
84346 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84347
84348         * m4/chown.m4: Fix reversed types on -1 args to chown.
84349         From Kaveh Ghazi.
84350
84351 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84352
84353         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84354         Add lseek and memchr.
84355
84356         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84357         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84358         have a 20-character limit on names.
84359
84360 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84361
84362         * m4/inttypes_h.m4: New file.
84363         * m4/uintmax_t.m4: New file.
84364         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84365
84366
84367         -----
84368
84369         Local Variables:
84370         coding: utf-8
84371         End:
84372
84373         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84374
84375         Copying and distribution of this file, with or without
84376         modification, are permitted provided the copyright notice
84377         and this notice are preserved.