0e6eb43f779acb9e360d096262215a624824a629
[gnulib.git] / ChangeLog
1 2011-07-12  Bruno Haible  <bruno@clisp.org>
2
3         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5         (Files, Makefile.am): Update.
6         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7         * modules/stdlib (Depends-on): Update.
8
9 2011-07-12  Bruno Haible  <bruno@clisp.org>
10
11         * NEWS: Mention the changes.
12
13         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15         (Files, Makefile.am): Update.
16         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
17         * modules/arpa_inet (Depends-on): Update.
18         * modules/ctype (Depends-on): Update.
19         * modules/dirent (Depends-on): Update.
20         * modules/fcntl-h (Depends-on): Update.
21         * modules/glob (Depends-on): Update.
22         * modules/iconv-h (Depends-on): Update.
23         * modules/inttypes-incomplete (Depends-on): Update.
24         * modules/langinfo (Depends-on): Update.
25         * modules/locale (Depends-on): Update.
26         * modules/math (Depends-on): Update.
27         * modules/netdb (Depends-on): Update.
28         * modules/poll-h (Depends-on): Update.
29         * modules/pty (Depends-on): Update.
30         * modules/search (Depends-on): Update.
31         * modules/signal (Depends-on): Update.
32         * modules/spawn (Depends-on): Update.
33         * modules/stdio (Depends-on): Update.
34         * modules/stdlib (Depends-on): Update.
35         * modules/string (Depends-on): Update.
36         * modules/strings (Depends-on): Update.
37         * modules/sys_file (Depends-on): Update.
38         * modules/sys_ioctl (Depends-on): Update.
39         * modules/sys_select (Depends-on): Update.
40         * modules/sys_socket (Depends-on): Update.
41         * modules/sys_stat (Depends-on): Update.
42         * modules/sys_time (Depends-on): Update.
43         * modules/sys_times (Depends-on): Update.
44         * modules/sys_utsname (Depends-on): Update.
45         * modules/sys_wait (Depends-on): Update.
46         * modules/termios (Depends-on): Update.
47         * modules/time (Depends-on): Update.
48         * modules/unistd (Depends-on): Update.
49         * modules/wchar (Depends-on): Update.
50         * modules/wctype-h (Depends-on): Update.
51         * MODULES.html.sh (Support for building libraries and executables):
52         Update.
53
54         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
55         * modules/snippet/unused-parameter: Renamed from
56         modules/unused-parameter.
57         (Files, Makefile.am): Update.
58         * build-aux/snippet/unused-parameter.h: Renamed from
59         build-aux/unused-parameter.h.
60         * modules/selinux-h (Depends-on): Update.
61         * modules/unistr/base (Depends-on): Update.
62         * MODULES.html.sh (Core language properties): Update.
63
64         Rename module 'link-warning' to 'snippet/link-warning'.
65         * modules/snippet/link-warning: Renamed from modules/link-warning.
66         (Files, Makefile.am): Update.
67         * build-aux/snippet/link-warning.h: Renamed from
68         build-aux/link-warning.h.
69         * MODULES.html.sh (Support for building libraries and executables):
70         Update.
71
72         Rename module 'c++defs' to 'snippet/c++defs'.
73         * modules/snippet/c++defs: Renamed from modules/c++defs.
74         (Files, Makefile.am): Update.
75         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
76         * modules/arpa_inet (Depends-on): Update.
77         * modules/ctype (Depends-on): Update.
78         * modules/dirent (Depends-on): Update.
79         * modules/fcntl-h (Depends-on): Update.
80         * modules/glob (Depends-on): Update.
81         * modules/iconv-h (Depends-on): Update.
82         * modules/langinfo (Depends-on): Update.
83         * modules/locale (Depends-on): Update.
84         * modules/math (Depends-on): Update.
85         * modules/netdb (Depends-on): Update.
86         * modules/poll-h (Depends-on): Update.
87         * modules/pty (Depends-on): Update.
88         * modules/search (Depends-on): Update.
89         * modules/signal (Depends-on): Update.
90         * modules/spawn (Depends-on): Update.
91         * modules/stdio (Depends-on): Update.
92         * modules/stdlib (Depends-on): Update.
93         * modules/string (Depends-on): Update.
94         * modules/strings (Depends-on): Update.
95         * modules/sys_ioctl (Depends-on): Update.
96         * modules/sys_select (Depends-on): Update.
97         * modules/sys_socket (Depends-on): Update.
98         * modules/sys_stat (Depends-on): Update.
99         * modules/sys_time (Depends-on): Update.
100         * modules/sys_wait (Depends-on): Update.
101         * modules/termios (Depends-on): Update.
102         * modules/time (Depends-on): Update.
103         * modules/unistd (Depends-on): Update.
104         * modules/wchar (Depends-on): Update.
105         * modules/wctype-h (Depends-on): Update.
106
107         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
108         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
109         (Files, Makefile.am): Update.
110         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
111         * modules/argv-iter (Depends-on): Update.
112         * modules/arpa_inet (Depends-on): Update.
113         * modules/dirent (Depends-on): Update.
114         * modules/fcntl-h (Depends-on): Update.
115         * modules/fnmatch (Depends-on): Update.
116         * modules/getopt-posix (Depends-on): Update.
117         * modules/glob (Depends-on): Update.
118         * modules/iconv-h (Depends-on): Update.
119         * modules/inttypes-incomplete (Depends-on): Update.
120         * modules/locale (Depends-on): Update.
121         * modules/math (Depends-on): Update.
122         * modules/netdb (Depends-on): Update.
123         * modules/search (Depends-on): Update.
124         * modules/signal (Depends-on): Update.
125         * modules/spawn (Depends-on): Update.
126         * modules/stdio (Depends-on): Update.
127         * modules/stdlib (Depends-on): Update.
128         * modules/string (Depends-on): Update.
129         * modules/strings (Depends-on): Update.
130         * modules/sys_socket (Depends-on): Update.
131         * modules/sys_stat (Depends-on): Update.
132         * modules/sys_time (Depends-on): Update.
133         * modules/sys_times (Depends-on): Update.
134         * modules/sys_utsname (Depends-on): Update.
135         * modules/time (Depends-on): Update.
136         * modules/unistd (Depends-on): Update.
137         * modules/wchar (Depends-on): Update.
138         * MODULES.html.sh (Support for building libraries and executables):
139         Update.
140
141 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
142
143         Improvements on _Noreturn and related modules.
144
145         modules/_Exit-tests: test _Noreturn too
146         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
147         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
148         (main): Use them.
149
150         stdnoreturn, stdnoreturn-tests: remove modules
151         They're not needed here and a bit premature for use elsewhere.  See
152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
153         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
154         * tests/test-stdnoreturn.c: Remove files.
155         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
156         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
157         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
158         and using noreturn.
159         * modules/openat, modules/sigpipe-die, modules/xalloc:
160         * modules/xmemdup0, modules/xstrtol:
161         Remove dependency on stdnoreturn.
162
163         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
164         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
165         Reparenthesize to avoid GCC warning.
166         Support Microsoft's syntax.
167         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
168
169         _Noreturn-tests: remove module
170         * modules/_Noreturn-tests: Remove.
171         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
172         * tests/test-_Noreturn.c: Remove.
173         * tests/test-stdnoreturn.c: Merge from the old
174         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
175
176 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
177
178         _Noreturn, stdnoreturn, and related modules.
179
180         * top/maint.mk: Adjust to new noreturn support.
181         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
182         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
183
184         xalloc: use stdnoreturn.h
185         * lib/xalloc.h: Include <stdnoreturn.h>.
186         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
187         * modules/xalloc (Depends-on): Add stdnoreturn.
188
189         xstrtol: use stdnoreturn.h
190         * lib/xstrtol.h: Include <stdnoreturn.h>.
191         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
192         * modules/xstrtol (Depends-on): Add stdnoreturn.
193
194         xmemdup0: use stdnoreturn.h
195         * lib/xmemdup0.h: Include <stdnoreturn.h>.
196         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
197         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
198
199         sigpipe-die: use stdnoreturn.h
200         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
201         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
202         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
203
204         openat: use stdnoreturn.h
205         * lib/openat.h: Include <stdnoreturn.h>.
206         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
207         * modules/openat (Depends-on): Add stdnoreturn.
208
209         * lib/openat-die.c (openat_save_fail): Modernize comment.
210
211         * lib/xalloc-die.c (xalloc_die): Modernize comment.
212
213         * lib/glthread/thread.h: Modernize comment.
214
215         obstack: use _Noreturn
216         * lib/obstack.c (__attribute__): Remove macro.
217         (print_and_abort): Use _Noreturn.
218
219         c-stack: use _Noreturn
220         * lib/c-stack.c (die, overflow_handler, segv_handler):
221         Use _Noreturn rather than __attribute__((noreturn)).
222
223         argmatch-tests, exclude_tests: use _Noreturn
224         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
225         Remove.
226         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
227
228         stdlib: use _Noreturn
229         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
230         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
231         * modules/stdlib (Depends-on): Add _Noreturn.
232         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
233
234         stdnoreturn-tests: new module
235         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
236
237         stdnoreturn: new module
238         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
239         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
240
241         _Noreturn-tests: new module
242         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
243
244         _Noreturn: new module
245         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
246         New section, mentioning it.
247         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
248
249         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
250
251 2011-07-11  Eric Blake  <eblake@redhat.com>
252
253         ffs: new module
254         * modules/ffs: New file.
255         * m4/ffs.m4: Likewise.
256         * lib/ffs.c: Likewise.
257         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
258         * modules/strings (Makefile.am): Substitute witness.
259         (Depends-on): Add c++defs.
260         * lib/strings.in.h (ffs): Declare.
261         * modules/ffs-tests: New test file.
262         * tests/test-ffs.c: Test new module.
263         * MODULES.html.sh (Integer arithmetic functions): Mention it.
264         * doc/posix-functions/ffs.texi (ffs): Likewise.
265
266         regex: avoid compiler warning
267         * lib/regex.c (includes): Include <strings.h>, for use of
268         strcasecmp in regcomp.c.
269         Reported by Joachim Schmitz.
270
271 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
272
273         stdint: respect system's intmax_t if INTMAX_MAX
274         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
275         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
276         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
277         long but int64_t is long long, and where we will clash with the
278         system intmax_t if we override it.  See
279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
280         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
281         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
282         similarly for UINTMAX_C.
283
284 2011-07-08  Bruno Haible  <bruno@clisp.org>
285
286         pthread_sigmask tests: Avoid a compiler warning.
287         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
288         non-zero.
289
290         sigprocmask tests: A better way to avoid a compiler warning.
291         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
292         (main): Complain if system() returns non-zero.
293         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
294
295 2011-07-08  Bruno Haible  <bruno@clisp.org>
296
297         pthread_sigmask: Work around IRIX bug.
298         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
299         bug.
300         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
301         there may be unblocked pending signals.
302         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
303
304 2011-07-08  Bruno Haible  <bruno@clisp.org>
305
306         pthread_sigmask: Work around Cygwin bug.
307         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
308         bug.
309         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
310         the system's pthread_sigmask function.
311         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
312
313 2011-07-08  Bruno Haible  <bruno@clisp.org>
314
315         pthread_sigmask: Work around bug in single-threaded implementation.
316         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
317         FreeBSD, HP-UX, Solaris bug.
318         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
319         * lib/pthread_sigmask.c: Include <stddef.h>.
320         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
321         the system's pthread_sigmask function.
322         * modules/pthread_sigmask (configure.ac): Invoke
323         gl_PREREQ_PTHREAD_SIGMASK.
324         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
325         HP-UX, Solaris.
326
327 2011-07-08  Eric Blake  <eblake@redhat.com>
328
329         test-sigprocmask: avoid compiler warning
330         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
331         * tests/test-sigprocmask.c (main): Use it to silence warning.
332         Reported by Jim Meyering.
333
334         test-snprintf: avoid compiler warning
335         * tests/test-snprintf.c (main): Avoid shadowed declaration.
336         * tests/test-vsnprintf.c (main): Likewise.
337         Reported by Jim Meyering.
338
339 2011-07-08  Bruno Haible  <bruno@clisp.org>
340
341         Tests for module 'pthread_sigmask'.
342         * modules/pthread_sigmask-tests: New file.
343         * tests/test-pthread_sigmask1.c: New file, based on
344         tests/test-sigprocmask.c.
345         * tests/test-pthread_sigmask2.c: New file.
346
347 2011-07-08  Jim Meyering  <meyering@redhat.com>
348
349         test-getopt.h: avoid warning about an unused variable
350         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
351
352 2011-07-07  Jim Meyering  <meyering@redhat.com>
353
354         maint: reduce list of files exempt from sc_prohibit_leading_TABs
355         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
356         now that it no longer contains leading TABs.
357         Remove unused "url=FIXME" statement.
358
359 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
360
361         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
362         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
363         When gl_THREADLIB is not in use, assume that the POSIX sematics
364         are desired.  This is better for Emacs, which uses POSIX semantics
365         on GNUish and/or POSIXish platforms, and does not use threads at
366         all otherwise.
367
368         pthread_sigmask: fix typo when testing for libraries
369         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
370         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
371
372 2011-07-08  Eric Blake  <eblake@redhat.com>
373
374         fts: introduce FTS_NOATIME
375         * lib/fts_.h (FTS_NOATIME): New bit flag.
376         (FTS_OPTIONMASK): Adjust.
377         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
378         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
379
380 2011-07-08  Bruno Haible  <bruno@clisp.org>
381
382         Tests for module 'thread'.
383         * modules/thread-tests: New file.
384         * tests/test-thread_self.c: New file.
385         * tests/test-thread_create.cc: New file.
386
387 2011-07-08  Bruno Haible  <bruno@clisp.org>
388
389         thread: Avoid gcc warnings when using gl_thread_self().
390         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
391         'void *'.
392         (gl_thread_self_pointer): Update.
393
394 2011-07-07  Bruno Haible  <bruno@clisp.org>
395
396         signal-c++-tests: Check declaration of pthread_sigmask.
397         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
398         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
399         $(LIB_PTHREAD_SIGMASK).
400
401 2011-07-07  Bruno Haible  <bruno@clisp.org>
402
403         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
404         * lib/signal.in.h (pthread_sigmask): Override if
405         REPLACE_PTHREAD_SIGMASK is 1.
406         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
407         REPLACE_PTHREAD_SIGMASK.
408         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
409         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
410         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
411         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
412         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
413
414 2011-07-07  Bruno Haible  <bruno@clisp.org>
415
416         pthread_sigmask: Ensure declaration in <signal.h>.
417         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
418         include <pthread.h>.
419         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
420         problem.
421
422 2011-07-07  Bruno Haible  <bruno@clisp.org>
423
424         pthread_sigmask: Document the module.
425         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
426
427 2011-07-07  Bruno Haible  <bruno@clisp.org>
428
429         pthread_sigmask: Follow gnulib conventions.
430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
431         gl_PTHREAD_SIGMASK.
432         * modules/pthread_sigmask (configure.ac): Update.
433
434 2011-07-07  Bruno Haible  <bruno@clisp.org>
435
436         pthread_sigmask: Make declaration C++ safe.
437         * lib/signal.in.h: In two special conditions, just do an #include_next.
438         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
439         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
440         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
441         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
442         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
443         not REPLACE_PTHREAD_MASK.
444         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
445         not REPLACE_PTHREAD_MASK.
446         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
447
448 2011-07-07  Bruno Haible  <bruno@clisp.org>
449
450         pthread_sigmask: Fix return value.
451         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
452         * lib/pthread_sigmask.c: New file.
453         * modules/pthread_sigmask (Files): Add it.
454         (configure.ac): Invoke AC_LIBOBJ.
455
456 2011-07-07  Eric Blake  <eblake@redhat.com>
457
458         getopt: more portable argv creation
459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
460         const, use char arrays rather than strings.
461         Suggested by Paul Eggert.
462
463 2011-07-07  Bruno Haible  <bruno@clisp.org>
464
465         Tests for module 'sigprocmask'.
466         * modules/sigprocmask-tests: New file.
467         * tests/test-sigprocmask.c: New file.
468
469 2011-07-07  Bruno Haible  <bruno@clisp.org>
470
471         float tests: Tweak.
472         * tests/test-float.c (main): Tweak skip message.
473
474 2011-07-07  Eric Blake  <eblake@redhat.com>
475
476         getopt: avoid compiler warning during configure
477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
478         assigning string literals to non-const pointer.
479
480         getopt-gnu: avoid crash in glibc getopt
481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
482         * tests/test-getopt.h (test_getopt): Enhance test.
483         * tests/test-getopt_long.h (test_getopt_long): Likewise.
484         * doc/posix-functions/getopt.texi (getopt): Document it.
485         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
486         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
487         Likewise.
488
489 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
490
491         getopt: handle W; without long options in getopt [BZ #12922]
492         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
493         but no long options are defined, just return 'W'.
494
495 2011-07-07  Bruno Haible  <bruno@clisp.org>
496
497         Avoid literal tabs.
498         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
499         variable containing a tab instead of a literal tab.
500         Reported by Jim Meyering.
501
502 2011-07-07  Bruno Haible  <bruno@clisp.org>
503
504         Comments.
505         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
506
507 2011-07-06  Bruno Haible  <bruno@clisp.org>
508
509         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
510         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
511         <winsock2.h>.
512         (rpl_fd_isset, FD_ISSET): New definitions, copied from
513         lib/sys_socket.in.h.
514         (close, gethostname): Hide declarations from <winsock2.h>.
515         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
516         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
517         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
518         (select): Don't override if gnulib's <sys/select.h> was already
519         included.
520         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
521         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
522         setsockopt, shutdown, select): Tweak indentation.
523
524 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
525
526         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
527         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
528         in an application that does not use the sys_select module.
529
530 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
531
532         poll: do not return 0 on timeout=-1
533         * lib/poll.c: Loop with yield if no events occured
534
535 2011-07-06  Eric Blake  <eblake@redhat.com>
536
537         pthread_sigmask: always replace when not using pthread
538         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
539         replacement when using some threading other than pthread.  Fix
540         logic bug.
541
542 2011-07-06  Bruno Haible  <bruno@clisp.org>
543
544         Comments.
545         * m4/printf.m4: Update comments about mingw.
546
547 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
548
549         sys_select: define sigset_t more portably
550         * lib/sys_select.in.h: Always include <sys/types.h>, since
551         we now need sigset_t and mingw defines it there.
552         Include <signal.h> before split inclusion guard, to avoid
553         mishaps on Solaris, whose <signal.h> eventually includes us.
554         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
555         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
556         which come from ...
557         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
558         gl_CHECK_TYPE_SIGSET_T.
559         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
560         does the real work.
561         * modules/sys_select (Depends-on): Add 'signal'.
562
563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
564         Suggested by Bruno Haible.
565
566         pselect: Use pthread_sigmask, not sigprocmask.
567         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
568         multithreaded apps better than sigprocmask does.
569         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
570         sigprocmask directly.
571
572 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
573
574         * lib/pselect.c (pselect): Use plain name, without "rpl_".
575         Don't #undef,  since we don't need any underlying pselect.
576         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
577         (Depends-on): Add select.
578         (Link): Add $(LIBSOCKET).
579         These changes suggested by Bruno Haible.
580
581         pselect: document better
582         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
583         * doc/posix-functions/pselect.texi (pselect): Document new module.
584
585         pthread_sigmask: new module
586         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
587         * doc/posix-functions/pthread_sigmask.texi: Document new module.
588         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
589         This is done only as a macro; I don't know how well that'll
590         work for C++.  Move <sys/types.h> include before the include_next,
591         to avoid mishap on Solaris.
592         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
593         * modules/signal (Makefile.am): Substitute the check's results.
594         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
595
596         test-pselect: new module
597         * modules/pselect-tests, tests/test-pselect.c: New files.
598         * tests/test-select.c, tests/test-sys_select-c++.cc:
599         If TEST_PSELECT is defined, test pselect instead of testing select.
600
601         * tests/test-sys_select.c (sigset_t): Test for it, too.
602         Suggested by Bruno Haible.
603
604 2011-07-05  Eric Blake  <eblake@redhat.com>
605
606         snprintf: guarantee %1$d, for libintl
607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
608         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
609         * doc/posix-functions/snprintf.texi (snprintf): Update.
610         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
611         * tests/test-snprintf.c (main): Enhance test.
612         * tests/test-vsnprintf.c (main): Likewise.
613
614 2011-07-05  Jim Meyering  <meyering@redhat.com>
615
616         maint: exempt stdio-read.c and stdio-write.c from the cppi check
617         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
618         per Bruno's request, to accommodate this idiom (no space after "#")
619         even when the function is inside an #if block:
620         char *
621         gets (char *s)
622         #undef gets
623         {
624           ...
625         }
626
627 2011-07-04  Jim Meyering  <meyering@redhat.com>
628
629         maint: indent with spaces, not TABs, and add a rule to check this
630         * tests/test-userspec.c: Indent with spaces, not TABs.
631         * tests/test-argp.c: Likewise.
632         * tests/test-c-stack2.sh: Likewise.
633         * tests/test-parse-duration.sh: Likewise
634         * m4/strtod.m4: Likewise.
635         * m4/alloca.m4: Likewise.
636         * m4/pselect.m4: Likewise.
637         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
638
639 2011-07-03  Jim Meyering  <meyering@redhat.com>
640
641         maint.mk: correct omissions in prohibit_argmatch_without_use check
642         This rule would mistakenly report that argmatch.h is included without
643         use even when both the argmatch and invalid_arg macro were used.
644         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
645         of argmatch and invalid_arg.
646
647 2011-07-03  Bruno Haible  <bruno@clisp.org>
648
649         Comments about EINTR.
650         * lib/safe-read.h: Explain the purpose of this module.
651         * lib/safe-write.h: Likewise.
652         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
653         module.
654         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
655         module.
656         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
657
658 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
659
660         xnanosleep: Rewrite to use new dtotimespec module.
661         It has the conversion code that used to be in xnanosleep.
662         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
663         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
664         (TIME_T_MAX): Remove.
665         (xnanosleep): Rewrite in terms of dtotimespec.
666         * modules/xnanosleep (Depends-on): Add dtotimespec.
667         Remove intprops, stdbool.
668
669         timespec-add, timespec-sub: new modules
670         * lib/timespec.h (timespec_add, timespec_sub): New decls.
671         * lib/timespec-add.c, lib/timespec-sub.c:
672         * modules/timespec-add, modules/timespec-sub: New files.
673
674         dtotimespec: new module
675         * lib/timespec.h (dtotimespec): New decl.
676         * lib/dtotimespec.c, modules/dtotimespec: New files.
677
678         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
679
680         pselect: new module
681         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
682         (pselect): New decls.
683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
684         since the standard pselect decl uses 'restrict'.
685         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
686         HAVE_PSELECT, REPLACE_PSELECT.
687         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
688         HAVE_PSELECT, REPLACE_PSELECT.
689         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
690
691         sys_select: don't depend on sys_socket
692         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
694         This fix works on GNU and GNU-like platforms, but has not been tested
695         on native Windows.
696         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
697         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
698         gl_HEADER_SYS_SOCKET.
699         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
700         gl_PREREQ_SYS_H_WINSOCK2.
701
702 2011-06-29  Eric Blake  <eblake@redhat.com>
703
704         pipe2: fix C89 compile problem
705         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
706         Reported by Bruno Haible.
707
708         pipe, pipe2: don't corrupt fd on error
709         * lib/pipe.c (pipe): Leave fd unchanged on error.
710         * lib/pipe2.c (pipe2): Likewise.
711         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
712         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
713
714 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
715
716         mmap-anon: do not use regular expressions inadvertently
717         * m4/mmap-anon.m4: Remove trailing period from strings sought
718         in the output.
719
720 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
721
722         nanosleep: fix integer overflow problem
723         * lib/nanosleep.c (my_usleep): Don't assume signed integer
724         arithmetic wraps around on overflow.
725
726         nanosleep: simplify carrying
727         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
728         first call to the underyling nanosleep, not for the last one.
729         This doesn't fix any bugs, but it simplifies the computation of
730         the remaining delay.  Found while auditing integer overflow issues.
731
732         dup2: remove test for existence of fcntl
733         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
734         "#if HAVE_FCNTL", in the configure-time test program.
735         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
736         and therefore speeds up "configure" a bit.  Found while
737         adding the dup2 module to Emacs.
738
739 2011-06-24  Eric Blake  <eblake@redhat.com>
740
741         maint.mk: enhance useless header checks
742         * top/maint.mk (_sc_header_without_use): Check both include
743         styles.
744         (sc_prohibit_assert_without_use)
745         (sc_prohibit_close_stream_without_use)
746         (sc_prohibit_getopt_without_use)
747         (sc_prohibit_quotearg_without_use)
748         (sc_prohibit_quote_without_use)
749         (sc_prohibit_long_options_without_use)
750         (sc_prohibit_inttostr_without_use)
751         (sc_prohibit_ignore_value_without_use)
752         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
753         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
754         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
755         (sc_prohibit_hash_pjw_without_use)
756         (sc_prohibit_safe_read_without_use)
757         (sc_prohibit_argmatch_without_use)
758         (sc_prohibit_canonicalize_without_use)
759         (sc_prohibit_root_dev_ino_without_use)
760         (sc_prohibit_openat_without_use)
761         (sc_prohibit_c_ctype_without_use)
762         (sc_prohibit_signal_without_use)
763         (sc_prohibit_stdio--_without_use)
764         (sc_prohibit_stdio-safer_without_use)
765         (sc_prohibit_strings_without_use)
766         (sc_prohibit_intprops_without_use)
767         (sc_prohibit_stddef_without_use)
768         (sc_prohibit_xfreopen_without_use): Update clients.
769
770 2011-06-24  Jim Meyering  <meyering@redhat.com>
771
772         syntax-check: keep one maint.mk rule in sync with its header
773         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
774         of the bug Eric has just fixed, with today's commit 25e4c2ec.
775         I prefer to avoid temporary files here, so use <(...), but that
776         is not supported by /bin/sh, so...
777         (SHELL): Define to /bin/bash.
778
779 2011-06-24  Eric Blake  <eblake@redhat.com>
780
781         maint.mk: update sc_prohibit_intprops_without_use
782         * top/maint.mk (_intprops_names): Match recent changes.
783
784 2011-06-24  Bruno Haible  <bruno@clisp.org>
785
786         strerror-override: No-op tweak.
787         * lib/strerror-override.h (strerror_override): Reorder conditions,
788         for consistency with lib/strerror-override.c.
789
790 2011-06-23  Eric Blake  <eblake@redhat.com>
791
792         maint.mk: test further PATH_MAX issues
793         * top/maint.mk (sc_prohibit_path_max_array): Rename...
794         (sc_prohibit_path_max_allocation): ...and also test alloca.
795         Suggested by Jim Meyering.
796
797 2011-06-22  Eric Blake  <eblake@redhat.com>
798
799         maint.mk: add syntax-check to avoid char[PATH_MAX]
800         * top/maint.mk (sc_prohibit_path_max_array): New rule.
801
802         stat: be robust to PATH_MAX definition
803         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
804         * modules/stat (Depends-on): Add verify.
805
806         link: work around IRIX bug
807         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
808         * lib/link.c (rpl_link): Work around it.
809         * tests/test-link.h (test_link): Enhance test.
810         * doc/posix-functions/link.texi (link): Document the bug.
811
812         getopt: silence clang warning
813         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
814         dereference.
815         Reported by Gustavo Martin Domato.
816
817 2011-06-22  Jim Meyering  <meyering@redhat.com>
818
819         bootstrap: do not insert a blank line into each .gitignore file
820         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
821
822 2011-06-21  Eric Blake  <eblake@redhat.com>
823
824         perror: test for output mismatch
825         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
826         perror on IRIX.
827
828         strerror_r: fix OpenBSD behavior on out-of-range
829         * lib/strerror_r.c (strerror_r): Always use maximal string.
830         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
831
832         strerror_r: fix OpenBSD behavior on 0
833         * lib/strerror-override.c (strerror_override): Also override 0
834         when needed.
835         * lib/strerror-override.h (strerror_override): Likewise.
836         * lib/strerror.c (strerror): Simplify, now that 0 override is done
837         earlier.
838         * lib/strerror_r.c (strerror_r): Likewise.
839         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
840         behavior...
841         (gl_FUNC_STRERROR_0): ...into new macro.
842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
843         is overridden.
844         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
845         * modules/strerror-override (Files): Add strerror.m4.
846         (configure.ac): Also provide override for 0 when needed.
847         * doc/posix-functions/strerror.texi (strerror): Document this.
848         * doc/posix-functions/perror.texi (perror): Likewise.
849
850         perror: adjust array size
851         * modules/perror (Depends-on): Add strerror-override.
852         * lib/perror.c (perror): Use it to avoid magic number.
853
854         strerror-override: reduce size
855         * lib/strerror-override.c (strerror_override): Use fewer lines.
856
857 2011-06-20  Bruno Haible  <bruno@clisp.org>
858
859         pathmax: Ensure correct value for PATH_MAX on HP-UX.
860         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
861
862 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
863
864         alloca: port to compilers that can optimize like GCC 4.6.0
865         * lib/alloca.c (find_stack_direction): New signature, taken from
866         Autoconf git.  This works with GCC 4.6.0.  This code should never
867         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
868         be used with other compilers that optimize as well as GCC 4.6.0 does.
869         (alloca): Adjust to new signature.
870         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
871         New macro, which patches Autoconf in a similar way.
872
873         c-stack: stop worrying about stack direction
874         * lib/c-stack.c (find_stack_direction): Remove.
875         (segv_handler): Don't worry about stack direction growth, as it's
876         too much of a pain to configure this correctly, given how compilers
877         are optimizing-away our stack-growth detection code.  Instead, assume
878         that any access to just before or just after the stack is OK.
879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
880         Don't require AC_FUNC_ALLOCA; no longer needed.
881
882 2011-06-20  Eric Blake  <eblake@redhat.com>
883
884         test-stat: don't allocate PATH_MAX bytes
885         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
886         PATH_MAX-sized buffer.
887         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
888         * modules/stat-tests (Depends-on): Likewise.
889         * tests/test-fstatat.c (includes): Drop pathmax.h.
890         * tests/test-stat.c (includes): Likewise.
891         Reported by Bruno Haible.
892
893 2011-06-20  Bruno Haible  <bruno@clisp.org>
894
895         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
896         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
897         * lib/float.c: New file.
898         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
899         REPLACE_FLOAT_LDBL.
900         * modules/float (Files): Add lib/float.c.
901         (configure.ac): Invoke AC_LIBOBJ.
902         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
903
904 2011-06-20  Bruno Haible  <bruno@clisp.org>
905
906         Tests for module 'float'.
907         * modules/float-tests: New file.
908         * tests/test-float.c: New file.
909
910 2011-06-19  Bruno Haible  <bruno@clisp.org>
911
912         isinf: Coding style.
913         * lib/isinf.c: Use GNU coding style.
914
915 2011-06-19  Bruno Haible  <bruno@clisp.org>
916
917         linkat test: Avoid test failure on AIX 7.1.
918         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
919         * tests/test-link.h (test_link): Likewise.
920
921 2011-06-19  Bruno Haible  <bruno@clisp.org>
922
923         pread test: Avoid test failure on OpenBSD 4.9.
924         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
925
926 2011-06-19  Bruno Haible  <bruno@clisp.org>
927
928         sprintf-posix: Fix test failure on AIX 7.1.
929         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
930         * doc/posix-functions/dprintf.texi: Mention limited precision problem
931         on AIX.
932         * doc/posix-functions/fprintf.texi: Likewise.
933         * doc/posix-functions/printf.texi: Likewise.
934         * doc/posix-functions/snprintf.texi: Likewise.
935         * doc/posix-functions/sprintf.texi: Likewise.
936         * doc/posix-functions/vdprintf.texi: Likewise.
937         * doc/posix-functions/vfprintf.texi: Likewise.
938         * doc/posix-functions/vprintf.texi: Likewise.
939         * doc/posix-functions/vsnprintf.texi: Likewise.
940         * doc/posix-functions/vsprintf.texi: Likewise.
941
942 2011-06-19  Bruno Haible  <bruno@clisp.org>
943
944         roundl-ieee: Fix test failure on AIX 7.1.
945         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
946         * doc/posix-functions/roundl.texi: Mention problem with negative
947         arguments.
948
949 2011-06-19  Bruno Haible  <bruno@clisp.org>
950
951         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
952         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
953         * doc/posix-functions/round.texi: Mention problem with negative
954         arguments.
955         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
956
957 2011-06-19  Bruno Haible  <bruno@clisp.org>
958
959         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
960         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
961         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
962         * doc/posix-functions/roundf.texi: Mention problem with negative
963         arguments.
964         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
965
966 2011-06-19  Bruno Haible  <bruno@clisp.org>
967
968         ceilf-ieee: Work around bug on MacOS X 10.5.
969         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
970
971         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
972         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
973         IEEE compliant, avoid compiler optimizations.
974         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
975         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
976         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
977         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
978         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
979         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
980         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
982         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
984
985 2011-06-19  Bruno Haible  <bruno@clisp.org>
986
987         ceilf-ieee: Work around bug on AIX 7.1.
988         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
989         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
990
991 2011-06-19  Bruno Haible  <bruno@clisp.org>
992
993         ceil-ieee: Work around bug on AIX 7.1.
994         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
995         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
996
997 2011-06-18  Bruno Haible  <bruno@clisp.org>
998
999         fsync test: Avoid test failure on MacOS X and AIX.
1000         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1001         EINVAL.
1002
1003 2011-06-18  Bruno Haible  <bruno@clisp.org>
1004
1005         openat, fdopendir tests: Fix link errors.
1006         * modules/openat-tests (Depends-on): Add progname.
1007         * modules/fdopendir-tests (Depends-on): Likewise.
1008         * tests/test-fchownat.c: Include progname.h.
1009         (main): Call set_program_name.
1010         * tests/test-fstatat.c: Include progname.h.
1011         (main): Call set_program_name.
1012         * tests/test-mkdirat.c: Include progname.h.
1013         (main): Call set_program_name.
1014         * tests/test-openat.c: Include progname.h.
1015         (main): Call set_program_name.
1016         * tests/test-unlinkat.c: Include progname.h.
1017         (main): Call set_program_name.
1018         * tests/test-fdopendir.c: Include progname.h.
1019         (main): Call set_program_name.
1020
1021 2011-06-18  Bruno Haible  <bruno@clisp.org>
1022
1023         Doc update.
1024         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1025         HP-UX.
1026         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1027
1028 2011-06-18  Bruno Haible  <bruno@clisp.org>
1029
1030         getcwd tests: Avoid compilation error on HP-UX 11.31.
1031         * modules/getcwd-tests (Depends-on): Add pathmax.
1032         * tests/test-getcwd.c: Include pathmax.h.
1033
1034 2011-06-18  Bruno Haible  <bruno@clisp.org>
1035
1036         isfinite, isinf: Fix link error on AIX 6 and 7.
1037         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1038         needed, also test the macro with a 'float' argument.
1039         * m4/isinf.m4 (gl_ISINF): Likewise.
1040
1041 2011-06-18  Bruno Haible  <bruno@clisp.org>
1042
1043         getloadavg: Don't clobber LIBS. Regression from previous commit.
1044         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1045         AC_CHECK_LIB from here...
1046         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1047         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1048         gl_func_getloadavg_done.
1049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1050
1051 2011-06-18  Bruno Haible  <bruno@clisp.org>
1052
1053         clean-temp: Improve documentation.
1054         * lib/clean-temp.h: Explain better how to use this module.
1055         Reported by John Darrington <john@darrington.wattle.id.au>.
1056
1057 2011-06-17  Bruno Haible  <bruno@clisp.org>
1058
1059         pread, pwrite: Avoid cc warning on AIX.
1060         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1061         (pwrite): Likewise.
1062
1063 2011-06-17  Bruno Haible  <bruno@clisp.org>
1064
1065         spawn-pipe tests: Fix link error.
1066         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1068
1069 2011-06-17  Bruno Haible  <bruno@clisp.org>
1070
1071         Tests: Remove unnecessary dependency.
1072         * modules/canonicalize-tests (Depends-on): Remove progname.
1073         * modules/chown-tests (Depends-on): Likewise.
1074         * modules/dirname-tests (Depends-on): Likewise.
1075         * modules/fdopendir-tests (Depends-on): Likewise.
1076         * modules/fdutimensat-tests (Depends-on): Likewise.
1077         * modules/hash-tests (Depends-on): Likewise.
1078         * modules/lchown-tests (Depends-on): Likewise.
1079         * modules/linkat-tests (Depends-on): Likewise.
1080         * modules/renameat-tests (Depends-on): Likewise.
1081         * modules/spawn-pipe-tests (Depends-on): Likewise.
1082         * modules/utimensat-tests (Depends-on): Likewise.
1083
1084 2011-06-17  Bruno Haible  <bruno@clisp.org>
1085
1086         spawn-pipe tests: Fix link error.
1087         * tests/test-spawn-pipe-child.c: Undefine fflush.
1088
1089 2011-06-17  Bruno Haible  <bruno@clisp.org>
1090
1091         Fix tests link errors.
1092         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1093         * modules/chown-tests (Makefile.am): Don't link test-chown with
1094         LIBINTL.
1095         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1096         LIBINTL.
1097         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1098         LIBINTL.
1099         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1100         LIBINTL.
1101
1102 2011-06-16  Bruno Haible  <bruno@clisp.org>
1103
1104         crypto/gc-sha1: Fix recent regression.
1105         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1106         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1107
1108         crypto/gc-md5: Fix recent regression.
1109         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1110
1111         crypto/gc-md4: Fix recent regression.
1112         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1113         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1114
1115         crypto/gc-arctwo: Fix recent regression.
1116         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1117         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1118
1119         crypto/gc-rijndael: Fix recent regression.
1120         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1121         (configure.ac): Invoke AC_LIBOBJ here.
1122         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1124
1125         crypto/gc-hmac-sha1: Fix recent regression.
1126         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1127         (configure.ac): Invoke AC_LIBOBJ here.
1128         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1130
1131         crypto/gc-hmac-md5: Fix recent regression.
1132         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1133         (configure.ac): Invoke AC_LIBOBJ here.
1134         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1135         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1136
1137         crypto/gc-des: Fix recent regression.
1138         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1139         (configure.ac): Invoke AC_LIBOBJ here.
1140         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1142
1143         crypto/gc-arcfour: Fix recent regression.
1144         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1145         (configure.ac): Invoke AC_LIBOBJ here.
1146         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1148
1149 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1150
1151         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1152         After the 2011-05-21 change, this macro requires
1153         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1154         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1155
1156 2011-06-16  Bruno Haible  <bruno@clisp.org>
1157
1158         fprintftime: Move AC_LIBOBJ invocations to module description.
1159         * m4/fprintftime.m4: Remove file.
1160         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1161         (configure.ac): Remove gl_FPRINTFTIME call.
1162         (Makefile.am): Augment lib_SOURCES.
1163         Reported by Jim Meyering.
1164
1165 2011-06-16  Bruno Haible  <bruno@clisp.org>
1166
1167         tmpfile-safer: Finish 2011-05-23 commit.
1168         * m4/stdio-safer.m4: Really remove file.
1169         Reported by Jim Meyering.
1170
1171 2011-06-16  Bruno Haible  <bruno@clisp.org>
1172
1173         syntax-check: Fix typo.
1174         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1175         printf-posix.m4.
1176         Reported by Jim Meyering.
1177
1178 2011-06-13  Jim Meyering  <meyering@redhat.com>
1179
1180         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1181         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1182
1183 2011-05-23  Bruno Haible  <bruno@clisp.org>
1184
1185         yesno: Move AC_LIBOBJ invocations to module description.
1186         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1187         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1188
1189 2011-05-23  Bruno Haible  <bruno@clisp.org>
1190
1191         xstrtol: Move AC_LIBOBJ invocations to module description.
1192         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1193         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1194
1195 2011-05-23  Bruno Haible  <bruno@clisp.org>
1196
1197         xstrtold: Move AC_LIBOBJ invocations to module description.
1198         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1199         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1200
1201 2011-05-23  Bruno Haible  <bruno@clisp.org>
1202
1203         xstrtod: Move AC_LIBOBJ invocations to module description.
1204         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1205         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1206
1207 2011-05-23  Bruno Haible  <bruno@clisp.org>
1208
1209         xnanosleep: Move AC_LIBOBJ invocations to module description.
1210         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1211         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1212
1213 2011-05-23  Bruno Haible  <bruno@clisp.org>
1214
1215         xgetcwd: Move AC_LIBOBJ invocations to module description.
1216         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1217         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1218
1219 2011-05-23  Bruno Haible  <bruno@clisp.org>
1220
1221         xalloc: Move AC_LIBOBJ invocations to module description.
1222         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1223         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1224
1225 2011-05-23  Bruno Haible  <bruno@clisp.org>
1226
1227         write-any-file: Move AC_LIBOBJ invocations to module description.
1228         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1229         invocation.
1230         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1231
1232 2011-05-23  Bruno Haible  <bruno@clisp.org>
1233
1234         utimens: Move AC_LIBOBJ invocations to module description.
1235         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1236         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1237
1238 2011-05-23  Bruno Haible  <bruno@clisp.org>
1239
1240         utimecmp: Move AC_LIBOBJ invocations to module description.
1241         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1242         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1243
1244 2011-05-23  Bruno Haible  <bruno@clisp.org>
1245
1246         userspec: Move AC_LIBOBJ invocations to module description.
1247         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1248         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1249
1250 2011-05-23  Bruno Haible  <bruno@clisp.org>
1251
1252         unlinkdir: Move AC_LIBOBJ invocations to module description.
1253         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1254         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1255
1256 2011-05-23  Bruno Haible  <bruno@clisp.org>
1257
1258         unistd-safer: Move AC_LIBOBJ invocations to module description.
1259         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1260         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1261
1262 2011-05-23  Bruno Haible  <bruno@clisp.org>
1263
1264         tempname: Move AC_LIBOBJ invocations to module description.
1265         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1266         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1267
1268 2011-05-23  Bruno Haible  <bruno@clisp.org>
1269
1270         strftime: Move AC_LIBOBJ invocations to module description.
1271         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1272         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1273
1274 2011-05-23  Bruno Haible  <bruno@clisp.org>
1275
1276         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1277         * m4/stdlib-safer.m4: Remove file.
1278         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1279         (configure.ac): Remove gl_STDLIB_SAFER call.
1280         (Makefile.am): Augment lib_SOURCES.
1281
1282 2011-05-23  Bruno Haible  <bruno@clisp.org>
1283
1284         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1285         * m4/stdio-safer.m4: Remove file.
1286         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1287         (configure.ac): Remove gl_TMPFILE_SAFER call.
1288         (Makefile.am): Augment lib_SOURCES.
1289
1290 2011-05-23  Bruno Haible  <bruno@clisp.org>
1291
1292         popen-safer: Move AC_LIBOBJ invocations to module description.
1293         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1294         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1295         (configure.ac): Remove gl_POPEN_SAFER call.
1296         (Makefile.am): Augment lib_SOURCES.
1297
1298 2011-05-23  Bruno Haible  <bruno@clisp.org>
1299
1300         freopen-safer: Move AC_LIBOBJ invocations to module description.
1301         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1302         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1303         (configure.ac): Remove gl_FREOPEN_SAFER call.
1304         (Makefile.am): Augment lib_SOURCES.
1305
1306 2011-05-23  Bruno Haible  <bruno@clisp.org>
1307
1308         fopen-safer: Move AC_LIBOBJ invocations to module description.
1309         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1310         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1311         (configure.ac): Remove gl_FOPEN_SAFER call.
1312         (Makefile.am): Augment lib_SOURCES.
1313
1314 2011-05-23  Bruno Haible  <bruno@clisp.org>
1315
1316         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1317         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1318         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1319
1320 2011-05-23  Bruno Haible  <bruno@clisp.org>
1321
1322         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1323         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1324         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1325
1326 2011-05-23  Bruno Haible  <bruno@clisp.org>
1327
1328         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1329         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1330         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1331
1332 2011-05-23  Bruno Haible  <bruno@clisp.org>
1333
1334         settime: Move AC_LIBOBJ invocations to module description.
1335         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1336         * modules/settime (Makefile.am): Augment lib_SOURCES.
1337
1338 2011-05-23  Bruno Haible  <bruno@clisp.org>
1339
1340         savedir: Move AC_LIBOBJ invocations to module description.
1341         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1342         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1343
1344 2011-05-23  Bruno Haible  <bruno@clisp.org>
1345
1346         save-cwd: Move AC_LIBOBJ invocations to module description.
1347         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1348         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1349
1350 2011-05-23  Bruno Haible  <bruno@clisp.org>
1351
1352         same: Move AC_LIBOBJ invocations to module description.
1353         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1354         * modules/same (Makefile.am): Augment lib_SOURCES.
1355
1356 2011-05-23  Bruno Haible  <bruno@clisp.org>
1357
1358         safe-write: Move AC_LIBOBJ invocations to module description.
1359         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1360         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1361         instead of gl_SAFE_WRITE.
1362         (Makefile.am): Augment lib_SOURCES.
1363
1364 2011-05-23  Bruno Haible  <bruno@clisp.org>
1365
1366         safe-read: Move AC_LIBOBJ invocations to module description.
1367         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1368         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1369         of gl_SAFE_READ.
1370         (Makefile.am): Augment lib_SOURCES.
1371
1372 2011-05-23  Bruno Haible  <bruno@clisp.org>
1373
1374         safe-alloc: Move AC_LIBOBJ invocations to module description.
1375         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1376         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1377
1378 2011-05-23  Bruno Haible  <bruno@clisp.org>
1379
1380         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1381         * m4/rijndael.m4: Remove file.
1382         * modules/crypto/rijndael (Files): Remove it.
1383         (configure.ac): Remove gl_RIJNDAEL call.
1384         (Makefile.am): Augment lib_SOURCES.
1385
1386 2011-05-23  Bruno Haible  <bruno@clisp.org>
1387
1388         readtokens: Move AC_LIBOBJ invocations to module description.
1389         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1390         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1391
1392 2011-05-23  Bruno Haible  <bruno@clisp.org>
1393
1394         read-file: Move AC_LIBOBJ invocations to module description.
1395         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1396         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1397         of gl_FUNC_READ_FILE.
1398         (Makefile.am): Augment lib_SOURCES.
1399
1400 2011-05-23  Bruno Haible  <bruno@clisp.org>
1401
1402         quotearg: Move AC_LIBOBJ invocations to module description.
1403         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1404         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1405
1406 2011-05-23  Bruno Haible  <bruno@clisp.org>
1407
1408         quote: Move AC_LIBOBJ invocations to module description.
1409         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1410         * modules/quote (Makefile.am): Augment lib_SOURCES.
1411
1412 2011-05-23  Bruno Haible  <bruno@clisp.org>
1413
1414         posixver: Move AC_LIBOBJ invocations to module description.
1415         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1416         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1417
1418 2011-05-23  Bruno Haible  <bruno@clisp.org>
1419
1420         posixtm: Move AC_LIBOBJ invocations to module description.
1421         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1422         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1423
1424 2011-05-23  Bruno Haible  <bruno@clisp.org>
1425
1426         physmem: Move AC_LIBOBJ invocations to module description.
1427         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1428         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1429
1430 2011-05-23  Bruno Haible  <bruno@clisp.org>
1431
1432         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1433         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1434         invocation.
1435         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1436
1437 2011-05-23  Bruno Haible  <bruno@clisp.org>
1438
1439         mpsort: Move AC_LIBOBJ invocations to module description.
1440         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1441         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1442
1443 2011-05-23  Bruno Haible  <bruno@clisp.org>
1444
1445         modechange: Move AC_LIBOBJ invocations to module description.
1446         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1447         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1448
1449 2011-05-23  Bruno Haible  <bruno@clisp.org>
1450
1451         mkdir-p: Move AC_LIBOBJ invocations to module description.
1452         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1453         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1454
1455 2011-05-23  Bruno Haible  <bruno@clisp.org>
1456
1457         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1458         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1459         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1460
1461 2011-05-23  Bruno Haible  <bruno@clisp.org>
1462
1463         mgetgroups: Move AC_LIBOBJ invocations to module description.
1464         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1465         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1466
1467 2011-05-23  Bruno Haible  <bruno@clisp.org>
1468
1469         memxor: Move AC_LIBOBJ invocations to module description.
1470         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1471         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1472
1473 2011-05-23  Bruno Haible  <bruno@clisp.org>
1474
1475         memcoll: Move AC_LIBOBJ invocations to module description.
1476         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1477         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1478
1479 2011-05-23  Bruno Haible  <bruno@clisp.org>
1480
1481         memcasecmp: Move AC_LIBOBJ invocations to module description.
1482         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1483         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1484
1485 2011-05-23  Bruno Haible  <bruno@clisp.org>
1486
1487         crypto/md5: Move AC_LIBOBJ invocations to module description.
1488         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1489         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1490
1491 2011-05-23  Bruno Haible  <bruno@clisp.org>
1492
1493         crypto/md4: Move AC_LIBOBJ invocations to module description.
1494         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1495         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1496
1497 2011-05-23  Bruno Haible  <bruno@clisp.org>
1498
1499         crypto/md2: Move AC_LIBOBJ invocations to module description.
1500         * m4/md2.m4: Remove file.
1501         * modules/crypto/md2 (Files): Remove it.
1502         (configure.ac): Remove gl_MD2 call.
1503         (Makefile.am): Augment lib_SOURCES.
1504
1505 2011-05-23  Bruno Haible  <bruno@clisp.org>
1506
1507         long-options: Move AC_LIBOBJ invocations to module description.
1508         * m4/long-options.m4: Remove file.
1509         * modules/long-options (Files): Remove it.
1510         (configure.ac): Remove gl_LONG_OPTIONS call.
1511         (Makefile.am): Augment lib_SOURCES.
1512
1513 2011-05-23  Bruno Haible  <bruno@clisp.org>
1514
1515         i-ring: Move AC_LIBOBJ invocations to module description.
1516         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1517         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1518
1519 2011-05-23  Bruno Haible  <bruno@clisp.org>
1520
1521         idcache: Move AC_LIBOBJ invocations to module description.
1522         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1523         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1524
1525 2011-05-23  Bruno Haible  <bruno@clisp.org>
1526
1527         human: Move AC_LIBOBJ invocations to module description.
1528         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1529         * modules/human (Makefile.am): Augment lib_SOURCES.
1530
1531 2011-05-23  Bruno Haible  <bruno@clisp.org>
1532
1533         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1534         * m4/hmac-sha1.m4: Remove file.
1535         * modules/crypto/hmac-sha1 (Files): Remove it.
1536         (configure.ac): Remove gl_HMAC_SHA1 call.
1537         (Makefile.am): Augment lib_SOURCES.
1538
1539 2011-05-23  Bruno Haible  <bruno@clisp.org>
1540
1541         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1542         * m4/hmac-md5.m4: Remove file.
1543         * modules/crypto/hmac-md5 (Files): Remove it.
1544         (configure.ac): Remove gl_HMAC_MD5 call.
1545         (Makefile.am): Augment lib_SOURCES.
1546
1547 2011-05-23  Bruno Haible  <bruno@clisp.org>
1548
1549         hash: Move AC_LIBOBJ invocations to module description.
1550         * m4/hash.m4: Remove file.
1551         * modules/hash (Files): Remove it.
1552         (configure.ac): Remove gl_HASH call.
1553         (Makefile.am): Augment lib_SOURCES.
1554
1555 2011-05-23  Bruno Haible  <bruno@clisp.org>
1556
1557         hard-locale: Move AC_LIBOBJ invocations to module description.
1558         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1559         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1560
1561 2011-05-23  Bruno Haible  <bruno@clisp.org>
1562
1563         getugroups: Move AC_LIBOBJ invocations to module description.
1564         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1565         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1566
1567 2011-05-23  Bruno Haible  <bruno@clisp.org>
1568
1569         gettime: Move AC_LIBOBJ invocations to module description.
1570         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1571         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1572
1573 2011-05-23  Bruno Haible  <bruno@clisp.org>
1574
1575         getndelim2: Move AC_LIBOBJ invocations to module description.
1576         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1577         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1578
1579 2011-05-23  Bruno Haible  <bruno@clisp.org>
1580
1581         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1582         * m4/gc-pbkdf2-sha1.m4: Remove file.
1583         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1584         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1585         (Makefile.am): Augment lib_SOURCES.
1586
1587 2011-05-23  Bruno Haible  <bruno@clisp.org>
1588
1589         fts: Move AC_LIBOBJ invocations to module description.
1590         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1591         * modules/fts (configure.ac): ... to here.
1592
1593 2011-05-23  Bruno Haible  <bruno@clisp.org>
1594
1595         file-type: Move AC_LIBOBJ invocations to module description.
1596         * m4/file-type.m4: Remove file.
1597         * modules/file-type (Files): Remove it.
1598         (configure.ac): Remove gl_FILE_TYPE call.
1599         (Makefile.am): Augment lib_SOURCES.
1600
1601 2011-05-23  Bruno Haible  <bruno@clisp.org>
1602
1603         filenamecat*: Respect rules for use of AC_LIBOBJ.
1604         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1605         Remove AC_LIBOBJ invocation.
1606         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1607         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1608
1609 2011-05-23  Bruno Haible  <bruno@clisp.org>
1610
1611         filemode: Move AC_LIBOBJ invocations to module description.
1612         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1613         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1614
1615 2011-05-23  Bruno Haible  <bruno@clisp.org>
1616
1617         openat-safer: Move AC_LIBOBJ invocations to module description.
1618         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1619         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1620
1621 2011-05-23  Bruno Haible  <bruno@clisp.org>
1622
1623         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1624         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1625         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1626
1627 2011-05-23  Bruno Haible  <bruno@clisp.org>
1628
1629         exclude: Move AC_LIBOBJ invocations to module description.
1630         * m4/exclude.m4: Remove file.
1631         * modules/exclude (Files): Remove it.
1632         (configure.ac): Remove gl_EXCLUDE call.
1633         (Makefile.am): Augment lib_SOURCES.
1634
1635 2011-05-23  Bruno Haible  <bruno@clisp.org>
1636
1637         dirname*: Respect rules for use of AC_LIBOBJ.
1638         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1639         invocations.
1640         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1641         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1642
1643 2011-05-23  Bruno Haible  <bruno@clisp.org>
1644
1645         dirent-safer: Move AC_LIBOBJ invocations to module description.
1646         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1647         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1648
1649 2011-05-23  Bruno Haible  <bruno@clisp.org>
1650
1651         crypto/des: Move AC_LIBOBJ invocations to module description.
1652         * m4/des.m4: Remove file.
1653         * modules/crypto/des (Files): Remove it.
1654         (configure.ac): Remove gl_DES call.
1655         (Makefile.am): Augment lib_SOURCES.
1656
1657 2011-05-23  Bruno Haible  <bruno@clisp.org>
1658
1659         cycle-check: Move AC_LIBOBJ invocations to module description.
1660         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1661         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1662
1663 2011-05-23  Bruno Haible  <bruno@clisp.org>
1664
1665         c-strtold: Move AC_LIBOBJ invocations to module description.
1666         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1667         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1668
1669 2011-05-23  Bruno Haible  <bruno@clisp.org>
1670
1671         c-strtod: Move AC_LIBOBJ invocations to module description.
1672         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1673         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1674
1675 2011-05-23  Bruno Haible  <bruno@clisp.org>
1676
1677         crc: Move AC_LIBOBJ invocations to module description.
1678         * m4/crc.m4: Remove file.
1679         * modules/crc (Files): Remove it.
1680         (configure.ac): Remove gl_CRC call.
1681         (Makefile.am): Augment lib_SOURCES.
1682
1683 2011-05-23  Bruno Haible  <bruno@clisp.org>
1684
1685         close-stream: Move AC_LIBOBJ invocations to module description.
1686         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1687         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1688
1689 2011-05-23  Bruno Haible  <bruno@clisp.org>
1690
1691         closeout: Move AC_LIBOBJ invocations to module description.
1692         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1693         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1694
1695 2011-05-23  Bruno Haible  <bruno@clisp.org>
1696
1697         closein: Move AC_LIBOBJ invocations to module description.
1698         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1699         * modules/closein (Makefile.am): Augment lib_SOURCES.
1700
1701 2011-05-23  Bruno Haible  <bruno@clisp.org>
1702
1703         cloexec: Move AC_LIBOBJ invocations to module description.
1704         * m4/cloexec.m4: Remove file.
1705         * modules/cloexec (Files): Remove it.
1706         (configure.ac): Remove gl_CLOEXEC call.
1707         (Makefile.am): Augment lib_SOURCES.
1708
1709 2011-05-23  Bruno Haible  <bruno@clisp.org>
1710
1711         check-version: Move AC_LIBOBJ invocations to module description.
1712         * m4/check-version.m4: Remove file.
1713         * modules/check-version (Files): Remove it.
1714         (configure.ac): Remove gl_CHECK_VERSION call.
1715         (Makefile.am): Augment lib_SOURCES.
1716
1717 2011-05-23  Bruno Haible  <bruno@clisp.org>
1718
1719         chdir-safer: Move AC_LIBOBJ invocations to module description.
1720         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1721         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1722
1723 2011-05-23  Bruno Haible  <bruno@clisp.org>
1724
1725         canonicalize: Move AC_LIBOBJ invocations to module description.
1726         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1727         AC_LIBOBJ invocation.
1728         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1729
1730 2011-05-23  Bruno Haible  <bruno@clisp.org>
1731
1732         canon-host: Move AC_LIBOBJ invocations to module description.
1733         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1734         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1735         instead of gl_CANON_HOST.
1736         (Makefile.am): Augment lib_SOURCES.
1737
1738 2011-05-23  Bruno Haible  <bruno@clisp.org>
1739
1740         backupfile: Move AC_LIBOBJ invocations to module description.
1741         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1742         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1743
1744 2011-05-23  Bruno Haible  <bruno@clisp.org>
1745
1746         argmatch: Move AC_LIBOBJ invocations to module description.
1747         * m4/argmatch.m4: Remove file.
1748         * modules/argmatch (Files): Remove it.
1749         (configure.ac): Remove gl_ARGMATCH call.
1750         (Makefile.am): Augment lib_SOURCES.
1751
1752 2011-05-23  Bruno Haible  <bruno@clisp.org>
1753
1754         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1755         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1756         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1757
1758 2011-05-23  Bruno Haible  <bruno@clisp.org>
1759
1760         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1761         * m4/arcfour.m4: Remove file.
1762         * modules/crypto/arcfour (Files): Remove it.
1763         (configure.ac): Remove gl_ARCFOUR call.
1764         (Makefile.am): Augment lib_SOURCES.
1765
1766 2011-05-22  Bruno Haible  <bruno@clisp.org>
1767
1768         write: Move AC_LIBOBJ invocations to module description.
1769         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1770         * modules/write (configure.ac): ... to here.
1771
1772 2011-05-22  Bruno Haible  <bruno@clisp.org>
1773
1774         wmemset: Move AC_LIBOBJ invocations to module description.
1775         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1776         here...
1777         * modules/wmemset (configure.ac): ... to here.
1778
1779 2011-05-22  Bruno Haible  <bruno@clisp.org>
1780
1781         wmemmove: Move AC_LIBOBJ invocations to module description.
1782         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1783         here...
1784         * modules/wmemmove (configure.ac): ... to here.
1785
1786 2011-05-22  Bruno Haible  <bruno@clisp.org>
1787
1788         wmemcpy: Move AC_LIBOBJ invocations to module description.
1789         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1790         here...
1791         * modules/wmemcpy (configure.ac): ... to here.
1792
1793 2011-05-22  Bruno Haible  <bruno@clisp.org>
1794
1795         wmemcmp: Move AC_LIBOBJ invocations to module description.
1796         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1797         here...
1798         * modules/wmemcmp (configure.ac): ... to here.
1799
1800 2011-05-22  Bruno Haible  <bruno@clisp.org>
1801
1802         wmemchr: Move AC_LIBOBJ invocations to module description.
1803         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1804         here...
1805         * modules/wmemchr (configure.ac): ... to here.
1806
1807 2011-05-22  Bruno Haible  <bruno@clisp.org>
1808
1809         wcswidth: Move AC_LIBOBJ invocations to module description.
1810         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1811         here...
1812         * modules/wcswidth (configure.ac): ... to here.
1813
1814 2011-05-22  Bruno Haible  <bruno@clisp.org>
1815
1816         wcwidth: Respect rules for use of AC_LIBOBJ.
1817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1818         invocation from here...
1819         * modules/wcwidth (configure.ac): ... to here.
1820         (Depends-on): Update conditions.
1821
1822 2011-05-22  Bruno Haible  <bruno@clisp.org>
1823
1824         wctype: Move AC_LIBOBJ invocations to module description.
1825         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1826         invocation from here...
1827         * modules/wctype (configure.ac): ... to here.
1828         (Depends-on): Update conditions.
1829
1830 2011-05-22  Bruno Haible  <bruno@clisp.org>
1831
1832         wctrans: Move AC_LIBOBJ invocations to module description.
1833         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1834         invocation from here...
1835         * modules/wctrans (configure.ac): ... to here.
1836
1837 2011-05-22  Bruno Haible  <bruno@clisp.org>
1838
1839         wctomb: Move AC_LIBOBJ invocations to module description.
1840         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1841         invocations from here...
1842         * modules/wctomb (configure.ac): ... to here.
1843
1844 2011-05-22  Bruno Haible  <bruno@clisp.org>
1845
1846         wctob: Move AC_LIBOBJ invocations to module description.
1847         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1848         gl_PREREQ_WCTOB invocations from here...
1849         * modules/wctob (configure.ac): ... to here.
1850         (Depends-on): Update conditions.
1851
1852 2011-05-22  Bruno Haible  <bruno@clisp.org>
1853
1854         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1855         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1856         here...
1857         * modules/wcsxfrm (configure.ac): ... to here.
1858
1859 2011-05-22  Bruno Haible  <bruno@clisp.org>
1860
1861         wcstok: Move AC_LIBOBJ invocations to module description.
1862         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1863         * modules/wcstok (configure.ac): ... to here.
1864
1865 2011-05-22  Bruno Haible  <bruno@clisp.org>
1866
1867         wcsstr: Move AC_LIBOBJ invocations to module description.
1868         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1869         * modules/wcsstr (configure.ac): ... to here.
1870
1871 2011-05-22  Bruno Haible  <bruno@clisp.org>
1872
1873         wcsspn: Move AC_LIBOBJ invocations to module description.
1874         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1875         * modules/wcsspn (configure.ac): ... to here.
1876
1877 2011-05-22  Bruno Haible  <bruno@clisp.org>
1878
1879         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1880         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1881         gl_PREREQ_WCSRTOMBS invocations from here...
1882         * modules/wcsrtombs (configure.ac): ... to here.
1883
1884 2011-05-22  Bruno Haible  <bruno@clisp.org>
1885
1886         wcsrchr: Move AC_LIBOBJ invocations to module description.
1887         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1888         here...
1889         * modules/wcsrchr (configure.ac): ... to here.
1890
1891 2011-05-22  Bruno Haible  <bruno@clisp.org>
1892
1893         wcspbrk: Move AC_LIBOBJ invocations to module description.
1894         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1895         here...
1896         * modules/wcspbrk (configure.ac): ... to here.
1897
1898 2011-05-22  Bruno Haible  <bruno@clisp.org>
1899
1900         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1901         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1902         gl_PREREQ_WCSNRTOMBS invocations from here...
1903         * modules/wcsnrtombs (configure.ac): ... to here.
1904
1905 2011-05-22  Bruno Haible  <bruno@clisp.org>
1906
1907         wcsnlen: Move AC_LIBOBJ invocations to module description.
1908         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1909         here...
1910         * modules/wcsnlen (configure.ac): ... to here.
1911
1912 2011-05-22  Bruno Haible  <bruno@clisp.org>
1913
1914         wcsncpy: Move AC_LIBOBJ invocations to module description.
1915         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1916         here...
1917         * modules/wcsncpy (configure.ac): ... to here.
1918
1919 2011-05-22  Bruno Haible  <bruno@clisp.org>
1920
1921         wcsncmp: Move AC_LIBOBJ invocations to module description.
1922         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1923         here...
1924         * modules/wcsncmp (configure.ac): ... to here.
1925
1926 2011-05-22  Bruno Haible  <bruno@clisp.org>
1927
1928         wcsncat: Move AC_LIBOBJ invocations to module description.
1929         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1930         here...
1931         * modules/wcsncat (configure.ac): ... to here.
1932
1933 2011-05-22  Bruno Haible  <bruno@clisp.org>
1934
1935         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1936         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1937         from here...
1938         * modules/wcsncasecmp (configure.ac): ... to here.
1939
1940 2011-05-22  Bruno Haible  <bruno@clisp.org>
1941
1942         wcslen: Move AC_LIBOBJ invocations to module description.
1943         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1944         * modules/wcslen (configure.ac): ... to here.
1945
1946 2011-05-22  Bruno Haible  <bruno@clisp.org>
1947
1948         wcsdup: Move AC_LIBOBJ invocations to module description.
1949         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1950         * modules/wcsdup (configure.ac): ... to here.
1951
1952 2011-05-22  Bruno Haible  <bruno@clisp.org>
1953
1954         wcscspn: Move AC_LIBOBJ invocations to module description.
1955         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1956         here...
1957         * modules/wcscspn (configure.ac): ... to here.
1958
1959 2011-05-22  Bruno Haible  <bruno@clisp.org>
1960
1961         wcscpy: Move AC_LIBOBJ invocations to module description.
1962         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1963         * modules/wcscpy (configure.ac): ... to here.
1964
1965 2011-05-22  Bruno Haible  <bruno@clisp.org>
1966
1967         wcscoll: Move AC_LIBOBJ invocations to module description.
1968         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1969         here...
1970         * modules/wcscoll (configure.ac): ... to here.
1971
1972 2011-05-22  Bruno Haible  <bruno@clisp.org>
1973
1974         wcscmp: Move AC_LIBOBJ invocations to module description.
1975         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1976         * modules/wcscmp (configure.ac): ... to here.
1977
1978 2011-05-22  Bruno Haible  <bruno@clisp.org>
1979
1980         wcschr: Move AC_LIBOBJ invocations to module description.
1981         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1982         * modules/wcschr (configure.ac): ... to here.
1983
1984 2011-05-22  Bruno Haible  <bruno@clisp.org>
1985
1986         wcscat: Move AC_LIBOBJ invocations to module description.
1987         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1988         * modules/wcscat (configure.ac): ... to here.
1989
1990 2011-05-22  Bruno Haible  <bruno@clisp.org>
1991
1992         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1993         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1994         here...
1995         * modules/wcscasecmp (configure.ac): ... to here.
1996
1997 2011-05-22  Bruno Haible  <bruno@clisp.org>
1998
1999         wcrtomb: Move AC_LIBOBJ invocations to module description.
2000         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2001         invocations from here...
2002         * modules/wcrtomb (configure.ac): ... to here.
2003
2004 2011-05-22  Bruno Haible  <bruno@clisp.org>
2005
2006         wcpncpy: Move AC_LIBOBJ invocations to module description.
2007         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2008         here...
2009         * modules/wcpncpy (configure.ac): ... to here.
2010
2011 2011-05-22  Bruno Haible  <bruno@clisp.org>
2012
2013         wcpcpy: Move AC_LIBOBJ invocations to module description.
2014         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2015         * modules/wcpcpy (configure.ac): ... to here.
2016
2017 2011-05-22  Bruno Haible  <bruno@clisp.org>
2018
2019         waitpid: Move AC_LIBOBJ invocations to module description.
2020         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2021         invocation from here...
2022         * modules/waitpid (configure.ac): ... to here.
2023
2024 2011-05-22  Bruno Haible  <bruno@clisp.org>
2025
2026         utimensat: Move AC_LIBOBJ invocations to module description.
2027         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2028         here...
2029         * modules/utimensat (configure.ac): ... to here.
2030
2031 2011-05-22  Bruno Haible  <bruno@clisp.org>
2032
2033         usleep: Move AC_LIBOBJ invocations to module description.
2034         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2035         here...
2036         * modules/usleep (configure.ac): ... to here.
2037
2038 2011-05-22  Bruno Haible  <bruno@clisp.org>
2039
2040         unlockpt: Move AC_LIBOBJ invocations to module description.
2041         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2042         gl_PREREQ_UNLOCKPT invocations from here...
2043         * modules/unlockpt (configure.ac): ... to here.
2044
2045 2011-05-22  Bruno Haible  <bruno@clisp.org>
2046
2047         unlink: Respect rules for use of AC_LIBOBJ.
2048         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2049         * modules/unlink (configure.ac): ... to here.
2050
2051 2011-05-22  Bruno Haible  <bruno@clisp.org>
2052
2053         uname: Move AC_LIBOBJ invocations to module description.
2054         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2056         here...
2057         * modules/uname (configure.ac): ... to here.
2058
2059 2011-05-22  Bruno Haible  <bruno@clisp.org>
2060
2061         ttyname_r: Move AC_LIBOBJ invocations to module description.
2062         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2063         gl_PREREQ_TTYNAME_R invocations from here...
2064         * modules/ttyname_r (configure.ac): ... to here.
2065
2066 2011-05-22  Bruno Haible  <bruno@clisp.org>
2067
2068         tsearch: Move AC_LIBOBJ invocations to module description.
2069         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2070         invocations from here...
2071         * modules/tsearch (configure.ac): ... to here.
2072
2073 2011-05-22  Bruno Haible  <bruno@clisp.org>
2074
2075         towctrans: Move AC_LIBOBJ invocations to module description.
2076         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2077         AC_LIBOBJ invocation from here...
2078         * modules/towctrans (configure.ac): ... to here.
2079
2080 2011-05-22  Bruno Haible  <bruno@clisp.org>
2081
2082         tmpfile: Move AC_LIBOBJ invocations to module description.
2083         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2084         invocations from here...
2085         * modules/tmpfile (configure.ac): ... to here.
2086
2087 2011-05-22  Bruno Haible  <bruno@clisp.org>
2088
2089         times: Move AC_LIBOBJ invocations to module description.
2090         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2091         * modules/times (configure.ac): ... to here.
2092
2093 2011-05-22  Bruno Haible  <bruno@clisp.org>
2094
2095         time_r: Move AC_LIBOBJ invocations to module description.
2096         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2097         invocations from here...
2098         * modules/time_r (configure.ac): ... to here.
2099
2100 2011-05-22  Bruno Haible  <bruno@clisp.org>
2101
2102         timegm: Move AC_LIBOBJ invocations to module description.
2103         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2104         invocations from here...
2105         * modules/timegm (configure.ac): ... to here.
2106
2107 2011-05-22  Bruno Haible  <bruno@clisp.org>
2108
2109         tcgetsid: Move AC_LIBOBJ invocations to module description.
2110         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2111         and gl_PREREQ_TCGETSID invocations from here...
2112         * modules/tcgetsid (configure.ac): ... to here.
2113         (Depends-on): Update conditions.
2114
2115 2011-05-22  Bruno Haible  <bruno@clisp.org>
2116
2117         symlinkat: Move AC_LIBOBJ invocations to module description.
2118         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2119         here...
2120         * modules/symlinkat (configure.ac): ... to here.
2121
2122 2011-05-22  Bruno Haible  <bruno@clisp.org>
2123
2124         symlink: Move AC_LIBOBJ invocations to module description.
2125         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2126         here...
2127         * modules/symlink (configure.ac): ... to here.
2128
2129 2011-05-22  Bruno Haible  <bruno@clisp.org>
2130
2131         strverscmp: Move AC_LIBOBJ invocations to module description.
2132         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2134         from here...
2135         * modules/strverscmp (configure.ac): ... to here.
2136
2137 2011-05-22  Bruno Haible  <bruno@clisp.org>
2138
2139         strtok_r: Move AC_LIBOBJ invocations to module description.
2140         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2141         and gl_PREREQ_STRTOK_R invocations from here...
2142         * modules/strtok_r (configure.ac): ... to here.
2143         (Depends-on): Update conditions.
2144
2145 2011-05-22  Bruno Haible  <bruno@clisp.org>
2146
2147         strtoumax: Move AC_LIBOBJ invocations to module description.
2148         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2150         from here...
2151         * modules/strtoumax (configure.ac): ... to here.
2152
2153 2011-05-22  Bruno Haible  <bruno@clisp.org>
2154
2155         strtoimax: Move AC_LIBOBJ invocations to module description.
2156         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2158         from here...
2159         * modules/strtoimax (configure.ac): ... to here.
2160
2161 2011-05-22  Bruno Haible  <bruno@clisp.org>
2162
2163         strtoull: Move AC_LIBOBJ invocations to module description.
2164         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2166         from here...
2167         * modules/strtoull (configure.ac): ... to here.
2168
2169 2011-05-22  Bruno Haible  <bruno@clisp.org>
2170
2171         strtoll: Move AC_LIBOBJ invocations to module description.
2172         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2174         here...
2175         * modules/strtoll (configure.ac): ... to here.
2176
2177 2011-05-22  Bruno Haible  <bruno@clisp.org>
2178
2179         strtoul: Move AC_LIBOBJ invocations to module description.
2180         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2181         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2182         * modules/strtoul (configure.ac): ... to here.
2183
2184 2011-05-22  Bruno Haible  <bruno@clisp.org>
2185
2186         strtol: Move AC_LIBOBJ invocations to module description.
2187         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2188         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2189         * modules/strtol (configure.ac): ... to here.
2190
2191 2011-05-22  Bruno Haible  <bruno@clisp.org>
2192
2193         strtod: Move AC_LIBOBJ invocations to module description.
2194         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2195         invocations from here...
2196         * modules/strtod (configure.ac): ... to here.
2197
2198 2011-05-22  Bruno Haible  <bruno@clisp.org>
2199
2200         strstr*: Move AC_LIBOBJ invocations to module description.
2201         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2202         invocations from here...
2203         * modules/strstr-simple (configure.ac): ... to here.
2204         * modules/strstr (configure.ac): ... and here.
2205
2206 2011-05-22  Bruno Haible  <bruno@clisp.org>
2207
2208         strsignal: Move AC_LIBOBJ invocations to module description.
2209         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2210         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2211         * modules/strsignal (configure.ac): ... to here.
2212         (Depends-on): Update conditions.
2213
2214 2011-05-22  Bruno Haible  <bruno@clisp.org>
2215
2216         strsep: Move AC_LIBOBJ invocations to module description.
2217         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2219         here...
2220         * modules/strsep (configure.ac): ... to here.
2221
2222 2011-05-22  Bruno Haible  <bruno@clisp.org>
2223
2224         strptime: Move AC_LIBOBJ invocations to module description.
2225         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2226         gl_PREREQ_STRPTIME invocations from here...
2227         * modules/strptime (configure.ac): ... to here.
2228
2229 2011-05-22  Bruno Haible  <bruno@clisp.org>
2230
2231         strpbrk: Move AC_LIBOBJ invocations to module description.
2232         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2234         here...
2235         * modules/strpbrk (configure.ac): ... to here.
2236
2237 2011-05-22  Bruno Haible  <bruno@clisp.org>
2238
2239         strnlen: Move AC_LIBOBJ invocations to module description.
2240         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2241         invocations from here...
2242         * modules/strnlen (configure.ac): ... to here.
2243
2244 2011-05-22  Bruno Haible  <bruno@clisp.org>
2245
2246         strndup: Move AC_LIBOBJ invocations to module description.
2247         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2248         invocations from here...
2249         * modules/strndup (configure.ac): ... to here.
2250         (Depends-on): Update conditions.
2251
2252 2011-05-22  Bruno Haible  <bruno@clisp.org>
2253
2254         strncat: Move AC_LIBOBJ invocations to module description.
2255         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2256         invocations from here...
2257         * modules/strncat (configure.ac): ... to here.
2258
2259 2011-05-22  Bruno Haible  <bruno@clisp.org>
2260
2261         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2262         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2263         invocations from here...
2264         * modules/strdup (configure.ac): ... to here.
2265         * modules/strdup-posix (configure.ac): ... and here.
2266
2267 2011-05-22  Bruno Haible  <bruno@clisp.org>
2268
2269         strcspn: Move AC_LIBOBJ invocations to module description.
2270         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2272         here...
2273         * modules/strcspn (configure.ac): ... to here.
2274
2275 2011-05-22  Bruno Haible  <bruno@clisp.org>
2276
2277         strchrnul: Move AC_LIBOBJ invocations to module description.
2278         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2279         gl_PREREQ_STRCHRNUL invocations from here...
2280         * modules/strchrnul (configure.ac): ... to here.
2281
2282 2011-05-22  Bruno Haible  <bruno@clisp.org>
2283
2284         strcasestr*: Move AC_LIBOBJ invocations to module description.
2285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2286         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2287         * modules/strcasestr-simple (configure.ac): ... to here.
2288         * modules/strcasestr (configure.ac): ... and here.
2289
2290 2011-05-22  Bruno Haible  <bruno@clisp.org>
2291
2292         strcase: Move AC_LIBOBJ invocations to module description.
2293         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2294         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2295         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2296         gl_PREREQ_STRNCASECMP invocations from here...
2297         * modules/strcase (configure.ac): ... to here.
2298
2299 2011-05-22  Bruno Haible  <bruno@clisp.org>
2300
2301         stpncpy: Move AC_LIBOBJ invocations to module description.
2302         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2303         here...
2304         * modules/stpncpy (configure.ac): ... to here.
2305
2306 2011-05-22  Bruno Haible  <bruno@clisp.org>
2307
2308         stpcpy: Move AC_LIBOBJ invocations to module description.
2309         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2310         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2311         here...
2312         * modules/stpcpy (configure.ac): ... to here.
2313
2314 2011-05-21  Bruno Haible  <bruno@clisp.org>
2315
2316         stat: Move AC_LIBOBJ invocations to module description.
2317         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2318         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2319         here...
2320         * modules/stat (configure.ac): ... to here.
2321
2322 2011-05-21  Bruno Haible  <bruno@clisp.org>
2323
2324         sleep: Move AC_LIBOBJ invocations to module description.
2325         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2326         * modules/sleep (configure.ac): ... to here.
2327
2328 2011-05-21  Bruno Haible  <bruno@clisp.org>
2329
2330         signbit: Move AC_LIBOBJ invocations to module description.
2331         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2332         * modules/signbit (configure.ac): ... to here.
2333
2334 2011-05-21  Bruno Haible  <bruno@clisp.org>
2335
2336         sigprocmask: Move AC_LIBOBJ invocations to module description.
2337         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2338         gl_PREREQ_SIGPROMASK invocations from here...
2339         * modules/sigprocmask (configure.ac): ... to here.
2340
2341 2011-05-21  Bruno Haible  <bruno@clisp.org>
2342
2343         sigaction: Move AC_LIBOBJ invocations to module description.
2344         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2345         gl_PREREQ_SIGACTION invocations from here...
2346         * modules/sigaction (configure.ac): ... to here.
2347
2348 2011-05-21  Bruno Haible  <bruno@clisp.org>
2349
2350         sig2str: Move AC_LIBOBJ invocations to module description.
2351         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2353         here...
2354         * modules/sig2str (configure.ac): ... to here.
2355
2356 2011-05-21  Bruno Haible  <bruno@clisp.org>
2357
2358         setlocale: Move AC_LIBOBJ invocations to module description.
2359         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2360         gl_PREREQ_SETLOCALE invocations from here...
2361         * modules/setlocale (configure.ac): ... to here.
2362
2363 2011-05-21  Bruno Haible  <bruno@clisp.org>
2364
2365         unsetenv: Move AC_LIBOBJ invocations to module description.
2366         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2367         and gl_PREREQ_UNSETENV invocations from here...
2368         * modules/unsetenv (configure.ac): ... to here.
2369         (Depends-on): Update.
2370
2371 2011-05-21  Bruno Haible  <bruno@clisp.org>
2372
2373         setenv: Move AC_LIBOBJ invocations to module description.
2374         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2375         here...
2376         * modules/setenv (configure.ac): ... to here.
2377
2378 2011-05-21  Bruno Haible  <bruno@clisp.org>
2379
2380         selinux-h: Move AC_LIBOBJ invocations to module description.
2381         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2382         AC_LIBOBJ invocation from here...
2383         * modules/selinux-h (configure.ac): ... to here.
2384
2385 2011-05-21  Bruno Haible  <bruno@clisp.org>
2386
2387         select: Respect rules for use of AC_LIBOBJ.
2388         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2389         here...
2390         * modules/select (configure.ac): ... to here.
2391
2392 2011-05-21  Bruno Haible  <bruno@clisp.org>
2393
2394         scandir: Move AC_LIBOBJ invocations to module description.
2395         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2396         invocations from here...
2397         * modules/scandir (configure.ac): ... to here.
2398
2399 2011-05-21  Bruno Haible  <bruno@clisp.org>
2400
2401         rpmatch: Move AC_LIBOBJ invocations to module description.
2402         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2403         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2404         here...
2405         * modules/rpmatch (configure.ac): ... to here.
2406
2407 2011-05-21  Bruno Haible  <bruno@clisp.org>
2408
2409         rmdir: Respect rules for use of AC_LIBOBJ.
2410         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2411         * modules/rmdir (configure.ac): ... to here.
2412
2413 2011-05-21  Bruno Haible  <bruno@clisp.org>
2414
2415         renameat: Move AC_LIBOBJ invocations to module description.
2416         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2417         here...
2418         * modules/renameat (configure.ac): ... to here.
2419
2420 2011-05-21  Bruno Haible  <bruno@clisp.org>
2421
2422         rename: Respect rules for use of AC_LIBOBJ.
2423         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2424         here...
2425         * modules/rename (configure.ac): ... to here.
2426
2427 2011-05-21  Bruno Haible  <bruno@clisp.org>
2428
2429         remove: Move AC_LIBOBJ invocations to module description.
2430         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2431         here...
2432         * modules/remove (configure.ac): ... to here.
2433
2434 2011-05-21  Bruno Haible  <bruno@clisp.org>
2435
2436         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2437         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2438         macro.
2439         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2440         * modules/relocatable-lib (configure.ac): ... to here.
2441         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2442         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2443
2444 2011-05-21  Bruno Haible  <bruno@clisp.org>
2445
2446         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2447         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2448         here...
2449         * modules/relocatable-prog (configure.ac): ... to here.
2450
2451 2011-05-21  Bruno Haible  <bruno@clisp.org>
2452
2453         regex: Move AC_LIBOBJ invocations to module description.
2454         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2455         invocations from here...
2456         * modules/regex (configure.ac): ... to here.
2457
2458 2011-05-21  Bruno Haible  <bruno@clisp.org>
2459
2460         realloc-*: Move AC_LIBOBJ invocations to module description.
2461         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2462         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2463         AC_LIBOBJ invocations from here...
2464         * modules/realloc-gnu (configure.ac): ... to here.
2465         * modules/realloc-posix (configure.ac): ... and here.
2466
2467 2011-05-21  Bruno Haible  <bruno@clisp.org>
2468
2469         readutmp: Move AC_LIBOBJ invocations to module description.
2470         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2471         * modules/readutmp (configure.ac): ... to here.
2472
2473 2011-05-21  Bruno Haible  <bruno@clisp.org>
2474
2475         readlinkat: Move AC_LIBOBJ invocations to module description.
2476         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2477         here...
2478         * modules/readlinkat (configure.ac): ... to here.
2479
2480 2011-05-21  Bruno Haible  <bruno@clisp.org>
2481
2482         readlink: Move AC_LIBOBJ invocations to module description.
2483         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2484         gl_PREREQ_READLINK invocations from here...
2485         * modules/readlink (configure.ac): ... to here.
2486
2487 2011-05-21  Bruno Haible  <bruno@clisp.org>
2488
2489         readline: Move AC_LIBOBJ invocations to module description.
2490         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2491         gl_PREREQ_READLINE invocations from here...
2492         * modules/readline (configure.ac): ... to here.
2493
2494 2011-05-21  Bruno Haible  <bruno@clisp.org>
2495
2496         read: Move AC_LIBOBJ invocations to module description.
2497         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2498         * modules/read (configure.ac): ... to here.
2499
2500 2011-05-21  Bruno Haible  <bruno@clisp.org>
2501
2502         rawmemchr: Move AC_LIBOBJ invocations to module description.
2503         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2505         from here...
2506         * modules/rawmemchr (configure.ac): ... to here.
2507
2508 2011-05-21  Bruno Haible  <bruno@clisp.org>
2509
2510         random_r: Move AC_LIBOBJ invocations to module description.
2511         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2512         gl_PREREQ_RANDOM_R invocations from here...
2513         * modules/random_r (configure.ac): ... to here.
2514
2515 2011-05-21  Bruno Haible  <bruno@clisp.org>
2516
2517         pwrite: Move AC_LIBOBJ invocations to module description.
2518         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2519         * modules/pwrite (configure.ac): ... to here.
2520
2521 2011-05-21  Bruno Haible  <bruno@clisp.org>
2522
2523         putenv: Move AC_LIBOBJ invocations to module description.
2524         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2525         * modules/putenv (configure.ac): ... to here.
2526
2527 2011-05-21  Bruno Haible  <bruno@clisp.org>
2528
2529         login_tty: Move AC_LIBOBJ invocations to module description.
2530         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2531         * modules/login_tty (configure.ac): ... to here.
2532
2533 2011-05-21  Bruno Haible  <bruno@clisp.org>
2534
2535         openpty: Move AC_LIBOBJ invocations to module description.
2536         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2537         * modules/openpty (configure.ac): ... to here.
2538
2539 2011-05-21  Bruno Haible  <bruno@clisp.org>
2540
2541         forkpty: Move AC_LIBOBJ invocations to module description.
2542         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2543         * modules/forkpty (configure.ac): ... to here.
2544
2545 2011-05-21  Bruno Haible  <bruno@clisp.org>
2546
2547         ptsname: Move AC_LIBOBJ invocations to module description.
2548         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2549         invocations from here...
2550         * modules/ptsname (configure.ac): ... to here.
2551
2552 2011-05-21  Bruno Haible  <bruno@clisp.org>
2553
2554         pread: Move AC_LIBOBJ invocations to module description.
2555         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2556         * modules/pread (configure.ac): ... to here.
2557
2558 2011-05-21  Bruno Haible  <bruno@clisp.org>
2559
2560         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2561         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2562         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2563         * modules/posix_spawn (configure.ac): ... to here.
2564         * modules/posix_spawnp (configure.ac): ... and here.
2565
2566 2011-05-21  Bruno Haible  <bruno@clisp.org>
2567
2568         popen: Move AC_LIBOBJ invocations to module description.
2569         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2570         invocations from here...
2571         * modules/popen (configure.ac): ... to here.
2572
2573 2011-05-21  Bruno Haible  <bruno@clisp.org>
2574
2575         poll: Move AC_LIBOBJ invocations to module description.
2576         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2577         invocations from here...
2578         * modules/poll (configure.ac): ... to here.
2579
2580 2011-05-21  Bruno Haible  <bruno@clisp.org>
2581
2582         pipe-posix: Move AC_LIBOBJ invocations to module description.
2583         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2584         * modules/pipe-posix (configure.ac): ... to here.
2585
2586 2011-05-21  Bruno Haible  <bruno@clisp.org>
2587
2588         openat: Respect rules for use of AC_LIBOBJ.
2589         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2590         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2591         * modules/openat (configure.ac): ... to here.
2592
2593 2011-05-21  Bruno Haible  <bruno@clisp.org>
2594
2595         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2596         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2597         invocation from here...
2598         * modules/obstack-printf (configure.ac): ... to here.
2599         * modules/obstack-printf-posix (configure.ac): ... and here.
2600
2601 2011-05-21  Bruno Haible  <bruno@clisp.org>
2602
2603         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2604         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2605         from here...
2606         * modules/nl_langinfo (configure.ac): ... to here.
2607
2608 2011-05-21  Bruno Haible  <bruno@clisp.org>
2609
2610         nanosleep: Move AC_LIBOBJ invocations to module description.
2611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2612         gl_PREREQ_NANOSLEEP invocations from here...
2613         * modules/nanosleep (configure.ac): ... to here.
2614
2615 2011-05-21  Bruno Haible  <bruno@clisp.org>
2616
2617         mountlist: Move AC_LIBOBJ invocations to module description.
2618         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2619         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2620         * modules/mountlist (configure.ac): ... to here.
2621
2622 2011-05-21  Bruno Haible  <bruno@clisp.org>
2623
2624         mktime: Respect rules for use of AC_LIBOBJ.
2625         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2626         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2627         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2628         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2629         * modules/mktime (configure.ac): ... to here.
2630         * modules/mktime-internal (configure.ac): ... and here.
2631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2632
2633 2011-05-21  Bruno Haible  <bruno@clisp.org>
2634
2635         mkstemps: Move AC_LIBOBJ invocations to module description.
2636         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2637         here...
2638         * modules/mkstemps (configure.ac): ... to here.
2639
2640 2011-05-21  Bruno Haible  <bruno@clisp.org>
2641
2642         mkstemp: Move AC_LIBOBJ invocations to module description.
2643         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2644         gl_PREREQ_MKSTEMP invocations from here...
2645         * modules/mkstemp (configure.ac): ... to here.
2646
2647 2011-05-21  Bruno Haible  <bruno@clisp.org>
2648
2649         mkostemps: Move AC_LIBOBJ invocations to module description.
2650         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2651         here...
2652         * modules/mkostemps (configure.ac): ... to here.
2653
2654 2011-05-21  Bruno Haible  <bruno@clisp.org>
2655
2656         mkostemp: Move AC_LIBOBJ invocations to module description.
2657         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2658         gl_PREREQ_MKOSTEMP invocations from here...
2659         * modules/mkostemp (configure.ac): ... to here.
2660
2661 2011-05-21  Bruno Haible  <bruno@clisp.org>
2662
2663         mknod: Move AC_LIBOBJ invocations to module description.
2664         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2665         * modules/mknod (configure.ac): ... to here.
2666
2667 2011-05-21  Bruno Haible  <bruno@clisp.org>
2668
2669         mkfifoat: Move AC_LIBOBJ invocations to module description.
2670         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2671         here...
2672         * modules/mkfifoat (configure.ac): ... to here.
2673
2674 2011-05-21  Bruno Haible  <bruno@clisp.org>
2675
2676         mkfifo: Respect rules for use of AC_LIBOBJ.
2677         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2678         here...
2679         * modules/mkfifo (configure.ac): ... to here.
2680
2681 2011-05-21  Bruno Haible  <bruno@clisp.org>
2682
2683         mkdtemp: Move AC_LIBOBJ invocations to module description.
2684         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2685         invocations from here...
2686         * modules/mkdtemp (configure.ac): ... to here.
2687
2688 2011-05-21  Bruno Haible  <bruno@clisp.org>
2689
2690         mkdir: Move AC_LIBOBJ invocations to module description.
2691         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2692         * modules/mkdir (configure.ac): ... to here.
2693
2694 2011-05-21  Bruno Haible  <bruno@clisp.org>
2695
2696         memset: Move AC_LIBOBJ invocations to module description.
2697         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2699         here...
2700         * modules/memset (configure.ac): ... to here.
2701
2702 2011-05-21  Bruno Haible  <bruno@clisp.org>
2703
2704         memrchr: Move AC_LIBOBJ invocations to module description.
2705         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2707         here...
2708         * modules/memrchr (configure.ac): ... to here.
2709
2710 2011-05-21  Bruno Haible  <bruno@clisp.org>
2711
2712         mempcpy: Move AC_LIBOBJ invocations to module description.
2713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2715         here...
2716         * modules/mempcpy (configure.ac): ... to here.
2717
2718 2011-05-21  Bruno Haible  <bruno@clisp.org>
2719
2720         memmove: Move AC_LIBOBJ invocations to module description.
2721         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2723         here...
2724         * modules/memmove (configure.ac): ... to here.
2725
2726 2011-05-21  Bruno Haible  <bruno@clisp.org>
2727
2728         memmem*: Move AC_LIBOBJ invocations to module description.
2729         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2730         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2731         here...
2732         (gl_FUNC_MEMMEM): ... and here...
2733         * modules/memmem-simple (configure.ac): ... to here.
2734         * modules/memmem (configure.ac): ... and here.
2735
2736 2011-05-21  Bruno Haible  <bruno@clisp.org>
2737
2738         memcpy: Move AC_LIBOBJ invocations to module description.
2739         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2741         here...
2742         * modules/memcpy (configure.ac): ... to here.
2743
2744 2011-05-21  Bruno Haible  <bruno@clisp.org>
2745
2746         memcmp: Simplify autoconf macro.
2747         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2748         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2749         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2750
2751 2011-05-21  Bruno Haible  <bruno@clisp.org>
2752
2753         memcmp: Move AC_LIBOBJ invocations to module description.
2754         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2755         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2756         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2757         * modules/memcmp (configure.ac): ... to here.
2758         (Depends-on): Update conditions.
2759
2760 2011-05-21  Bruno Haible  <bruno@clisp.org>
2761
2762         memchr: Respect rules for use of AC_LIBOBJ.
2763         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2764         invocations from here...
2765         * modules/memchr (configure.ac): ... to here.
2766
2767 2011-05-21  Bruno Haible  <bruno@clisp.org>
2768
2769         mbtowc: Move AC_LIBOBJ invocations to module description.
2770         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2771         invocations from here...
2772         * modules/mbtowc (configure.ac): ... to here.
2773
2774 2011-05-21  Bruno Haible  <bruno@clisp.org>
2775
2776         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2777         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2778         gl_PREREQ_MBSRTOWCS invocations from here...
2779         * modules/mbsrtowcs (configure.ac): ... to here.
2780
2781 2011-05-21  Bruno Haible  <bruno@clisp.org>
2782
2783         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2784         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2785         gl_PREREQ_MBSNRTOWCS invocations from here...
2786         * modules/mbsnrtowcs (configure.ac): ... to here.
2787
2788 2011-05-21  Bruno Haible  <bruno@clisp.org>
2789
2790         mbsinit: Move AC_LIBOBJ invocations to module description.
2791         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2792         invocations from here...
2793         * modules/mbsinit (configure.ac): ... to here.
2794
2795 2011-05-21  Bruno Haible  <bruno@clisp.org>
2796
2797         mbrlen: Move AC_LIBOBJ invocations to module description.
2798         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2799         invocations from here...
2800         * modules/mbrlen (configure.ac): ... to here.
2801
2802 2011-05-21  Bruno Haible  <bruno@clisp.org>
2803
2804         mbrtowc: Respect rules for use of AC_LIBOBJ.
2805         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2806         invocations from here...
2807         * modules/mbrtowc (configure.ac): ... to here.
2808
2809 2011-05-21  Bruno Haible  <bruno@clisp.org>
2810
2811         malloc-*: Move AC_LIBOBJ invocations to module description.
2812         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2813         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2814         AC_LIBOBJ invocations from here...
2815         * modules/malloc-gnu (configure.ac): ... to here.
2816         * modules/malloc-posix (configure.ac): ... and here.
2817
2818 2011-05-21  Bruno Haible  <bruno@clisp.org>
2819
2820         lstat, openat: Respect rules for use of AC_LIBOBJ.
2821         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2822         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2823         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2824         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2825         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2826         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2827         here.
2828         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2829
2830 2011-05-21  Bruno Haible  <bruno@clisp.org>
2831
2832         lseek: Move AC_LIBOBJ invocations to module description.
2833         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2834         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2835         * modules/lseek (configure.ac): ... to here.
2836
2837 2011-05-21  Bruno Haible  <bruno@clisp.org>
2838
2839         linkat: Move AC_LIBOBJ invocations to module description.
2840         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2841         here...
2842         * modules/linkat (configure.ac): ... to here.
2843
2844 2011-05-21  Bruno Haible  <bruno@clisp.org>
2845
2846         link: Respect rules for use of AC_LIBOBJ.
2847         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2848         * modules/link (configure.ac): ... to here.
2849
2850 2011-05-21  Bruno Haible  <bruno@clisp.org>
2851
2852         lchown: Move AC_LIBOBJ invocations to module description.
2853         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2854         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2855         * modules/lchown (configure.ac): ... to here.
2856
2857 2011-05-21  Bruno Haible  <bruno@clisp.org>
2858
2859         iswctype: Move AC_LIBOBJ invocations to module description.
2860         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2861         here...
2862         * modules/iswctype (configure.ac): ... to here.
2863
2864 2011-05-21  Bruno Haible  <bruno@clisp.org>
2865
2866         iswblank: Move AC_LIBOBJ invocations to module description.
2867         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2868         here...
2869         * modules/iswblank (configure.ac): ... to here.
2870
2871 2011-05-21  Bruno Haible  <bruno@clisp.org>
2872
2873         atanl: Move AC_LIBOBJ invocations to module description.
2874         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2875         * modules/atanl (configure.ac): ... to here.
2876
2877 2011-05-21  Bruno Haible  <bruno@clisp.org>
2878
2879         acosl: Move AC_LIBOBJ invocations to module description.
2880         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2881         * modules/acosl (configure.ac): ... to here.
2882
2883 2011-05-21  Bruno Haible  <bruno@clisp.org>
2884
2885         asinl: Respect rules for use of AC_LIBOBJ.
2886         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2887         * modules/asinl (configure.ac): ... to here.
2888
2889 2011-05-21  Bruno Haible  <bruno@clisp.org>
2890
2891         tanl: Move AC_LIBOBJ invocations to module description.
2892         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2893         * modules/tanl (configure.ac): ... to here.
2894
2895 2011-05-21  Bruno Haible  <bruno@clisp.org>
2896
2897         cosl: Move AC_LIBOBJ invocations to module description.
2898         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2899         * modules/cosl (configure.ac): ... to here.
2900
2901 2011-05-21  Bruno Haible  <bruno@clisp.org>
2902
2903         sinl: Move AC_LIBOBJ invocations to module description.
2904         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2905         * modules/sinl (configure.ac): ... to here.
2906
2907 2011-05-21  Bruno Haible  <bruno@clisp.org>
2908
2909         logl: Move AC_LIBOBJ invocations to module description.
2910         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2911         * modules/logl (configure.ac): ... to here.
2912
2913 2011-05-21  Bruno Haible  <bruno@clisp.org>
2914
2915         expl: Move AC_LIBOBJ invocations to module description.
2916         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2917         * modules/expl (configure.ac): ... to here.
2918
2919 2011-05-21  Bruno Haible  <bruno@clisp.org>
2920
2921         roundl: Move AC_LIBOBJ invocations to module description.
2922         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2923         * modules/roundl (configure.ac): ... to here.
2924
2925 2011-05-21  Bruno Haible  <bruno@clisp.org>
2926
2927         round: Move AC_LIBOBJ invocations to module description.
2928         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2929         * modules/round (configure.ac): ... to here.
2930
2931 2011-05-21  Bruno Haible  <bruno@clisp.org>
2932
2933         roundf: Move AC_LIBOBJ invocations to module description.
2934         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2935         * modules/roundf (configure.ac): ... to here.
2936
2937 2011-05-21  Bruno Haible  <bruno@clisp.org>
2938
2939         truncl: Move AC_LIBOBJ invocations to module description.
2940         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2941         * modules/truncl (configure.ac): ... to here.
2942
2943 2011-05-21  Bruno Haible  <bruno@clisp.org>
2944
2945         trunc: Move AC_LIBOBJ invocations to module description.
2946         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2947         * modules/trunc (configure.ac): ... to here.
2948
2949 2011-05-21  Bruno Haible  <bruno@clisp.org>
2950
2951         truncf: Move AC_LIBOBJ invocations to module description.
2952         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2953         * modules/truncf (configure.ac): ... to here.
2954
2955 2011-05-21  Bruno Haible  <bruno@clisp.org>
2956
2957         ceill: Move AC_LIBOBJ invocations to module description.
2958         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2959         * modules/ceill (configure.ac): ... to here.
2960
2961 2011-05-21  Bruno Haible  <bruno@clisp.org>
2962
2963         ceil: Move AC_LIBOBJ invocations to module description.
2964         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2965         * modules/ceil (configure.ac): ... to here.
2966
2967 2011-05-21  Bruno Haible  <bruno@clisp.org>
2968
2969         ceilf: Move AC_LIBOBJ invocations to module description.
2970         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2971         * modules/ceilf (configure.ac): ... to here.
2972
2973 2011-05-21  Bruno Haible  <bruno@clisp.org>
2974
2975         floorl: Respect rules for use of AC_LIBOBJ.
2976         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2977         * modules/floorl (configure.ac): ... to here.
2978
2979 2011-05-21  Bruno Haible  <bruno@clisp.org>
2980
2981         floor: Respect rules for use of AC_LIBOBJ.
2982         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2983         * modules/floor (configure.ac): ... to here.
2984
2985 2011-05-21  Bruno Haible  <bruno@clisp.org>
2986
2987         floorf: Move AC_LIBOBJ invocations to module description.
2988         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2989         * modules/floorf (configure.ac): ... to here.
2990
2991 2011-05-20  Bruno Haible  <bruno@clisp.org>
2992
2993         sqrtl: Respect rules for use of AC_LIBOBJ.
2994         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2995         * modules/sqrtl (configure.ac): ... to here.
2996
2997 2011-05-20  Bruno Haible  <bruno@clisp.org>
2998
2999         ldexpl: Respect rules for use of AC_LIBOBJ.
3000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3001         * modules/ldexpl (configure.ac): ... to here.
3002
3003 2011-05-20  Bruno Haible  <bruno@clisp.org>
3004
3005         frexpl*: Respect rules for use of AC_LIBOBJ.
3006         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3007         invocation from here...
3008         * modules/frexpl (configure.ac): ... to here.
3009         * modules/frexpl-nolibm (configure.ac): ... and here.
3010
3011 2011-05-20  Bruno Haible  <bruno@clisp.org>
3012
3013         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3014         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3015         invocation from here...
3016         * modules/frexp (configure.ac): ... to here.
3017         * modules/frexp-nolibm (configure.ac): ... and here.
3018
3019 2011-05-20  Bruno Haible  <bruno@clisp.org>
3020
3021         isnan: Respect rules for use of AC_LIBOBJ.
3022         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3023         invocations here.
3024         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3025         REPLACE_ISNAN.
3026         * modules/isnand (configure.ac): Likewise.
3027         * modules/isnanl (configure.ac): Likewise.
3028
3029 2011-05-20  Bruno Haible  <bruno@clisp.org>
3030
3031         isnanl*: Respect rules for use of AC_LIBOBJ.
3032         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3033         invocation from here...
3034         * modules/isnanl (configure.ac): ... to here.
3035         * modules/isnanl-nolibm (configure.ac): ... and here.
3036
3037 2011-05-20  Bruno Haible  <bruno@clisp.org>
3038
3039         isnand*: Move AC_LIBOBJ invocations to module description.
3040         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3041         invocation from here...
3042         * modules/isnand (configure.ac): ... to here.
3043         * modules/isnand-nolibm (configure.ac): ... and here.
3044
3045 2011-05-20  Bruno Haible  <bruno@clisp.org>
3046
3047         isnanf*: Move AC_LIBOBJ invocations to module description.
3048         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3049         invocation from here...
3050         * modules/isnanf (configure.ac): ... to here.
3051         * modules/isnanf-nolibm (configure.ac): ... and here.
3052
3053 2011-05-20  Bruno Haible  <bruno@clisp.org>
3054
3055         isnan*: Separate the AC_LIBOBJ invocations.
3056         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3057         AC_LIBOBJ invocation.
3058         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3059         here.
3060         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3061         AC_LIBOBJ invocation.
3062         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3063         here.
3064         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3065         AC_LIBOBJ invocation.
3066         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3067         here.
3068         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3069
3070 2011-05-08  Bruno Haible  <bruno@clisp.org>
3071
3072         isinf: Move AC_LIBOBJ invocations to module description.
3073         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3074         * modules/isinf (configure.ac): ... to here.
3075
3076 2011-05-08  Bruno Haible  <bruno@clisp.org>
3077
3078         isfinite: Move AC_LIBOBJ invocations to module description.
3079         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3080         * modules/isfinite (configure.ac): ... to here.
3081
3082 2011-05-08  Bruno Haible  <bruno@clisp.org>
3083
3084         isblank: Move AC_LIBOBJ invocations to module description.
3085         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3086         here...
3087         * modules/isblank (configure.ac): ... to here.
3088
3089 2011-05-08  Bruno Haible  <bruno@clisp.org>
3090
3091         isapipe: Move AC_LIBOBJ invocations to module description.
3092         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3093         gl_PREREQ_ISAPIPE invocations from here...
3094         * modules/isapipe (configure.ac): ... to here.
3095         (Depends-on): Update condition.
3096
3097 2011-05-08  Bruno Haible  <bruno@clisp.org>
3098
3099         ioctl: Move AC_LIBOBJ invocations to module description.
3100         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3101         invocations from here...
3102         * modules/ioctl (configure.ac): ... to here.
3103         (Depends-on): Update condition.
3104
3105 2011-05-08  Bruno Haible  <bruno@clisp.org>
3106
3107         imaxdiv: Move AC_LIBOBJ invocations to module description.
3108         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3109         invocations from here...
3110         * modules/imaxdiv (configure.ac): ... to here.
3111
3112 2011-05-08  Bruno Haible  <bruno@clisp.org>
3113
3114         imaxabs: Move AC_LIBOBJ invocations to module description.
3115         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3116         invocations from here...
3117         * modules/imaxabs (configure.ac): ... to here.
3118
3119 2011-05-08  Bruno Haible  <bruno@clisp.org>
3120
3121         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3122         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3123         AC_LIBOBJ invocations from here...
3124         * modules/getaddrinfo (configure.ac): ... to here.
3125         (Depends-on): Add conditions.
3126
3127 2011-05-08  Bruno Haible  <bruno@clisp.org>
3128
3129         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3130         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3131         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3132         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3133         (gl_PREREQ_INET_PTON): ... from here.
3134         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3135         gl_PREREQ_INET_PTON here.
3136         (Depends-on): Update condition.
3137
3138 2011-05-08  Bruno Haible  <bruno@clisp.org>
3139
3140         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3141         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3142         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3143         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3144         (gl_PREREQ_INET_NTOP): ... from here.
3145         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3146         gl_PREREQ_INET_NTOP here.
3147         (Depends-on): Update condition.
3148
3149 2011-05-08  Bruno Haible  <bruno@clisp.org>
3150
3151         iconv_open: Move AC_LIBOBJ invocations to module description.
3152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3153         AC_LIBOBJ invocations from here...
3154         * modules/iconv_open (configure.ac): ... to here.
3155
3156 2011-05-08  Bruno Haible  <bruno@clisp.org>
3157
3158         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3159         If module 'iconv_open' is among the main modules and module
3160         'iconv_open-utf' is among the tests dependencies, then
3161         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3162         return the special iconv_t values. Therefore iconv() and iconv_close()
3163         must support these special iconv_t values, already in lib, not only in
3164         tests.
3165         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3166         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3167         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3168         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3169         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3170         (Depends-on): Add the dependencies of iconv_open-utf.
3171         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3172         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3173         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3174
3175 2011-05-08  Bruno Haible  <bruno@clisp.org>
3176
3177         group-member: Move AC_LIBOBJ invocations to module description.
3178         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3179         gl_PREREQ_GROUP_MEMBER invocations from here...
3180         * modules/group-member (configure.ac): ... to here.
3181
3182 2011-05-08  Bruno Haible  <bruno@clisp.org>
3183
3184         grantpt: Move AC_LIBOBJ invocations to module description.
3185         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3186         invocations from here...
3187         * modules/grantpt (configure.ac): ... to here.
3188
3189 2011-05-08  Bruno Haible  <bruno@clisp.org>
3190
3191         glob: Move AC_LIBOBJ invocations to module description.
3192         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3193         from here...
3194         * modules/glob (configure.ac): ... to here.
3195
3196 2011-05-08  Bruno Haible  <bruno@clisp.org>
3197
3198         getusershell: Move AC_LIBOBJ invocations to module description.
3199         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3200         Move AC_LIBOBJ invocation from here...
3201         * modules/getusershell (configure.ac): ... to here.
3202         (Depends-on): Update condition.
3203
3204 2011-05-08  Bruno Haible  <bruno@clisp.org>
3205
3206         gettimeofday: Move AC_LIBOBJ invocations to module description.
3207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3208         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3209         gl_PREREQ_GETTIMEOFDAY invocations from here...
3210         * modules/gettimeofday (configure.ac): ... to here.
3211
3212 2011-05-08  Bruno Haible  <bruno@clisp.org>
3213
3214         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3215         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3216         just gl_FUNC_TZSET.
3217         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3218         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3219         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3220         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3221
3222 2011-05-08  Bruno Haible  <bruno@clisp.org>
3223
3224         getsubopt: Move AC_LIBOBJ invocations to module description.
3225         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3226         gl_PREREQ_GETSUBOPT invocations from here...
3227         * modules/getsubopt (configure.ac): ... to here.
3228
3229 2011-05-08  Bruno Haible  <bruno@clisp.org>
3230
3231         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3232         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3233         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3234         * modules/getpass-gnu (configure.ac): ... to here.
3235
3236 2011-05-08  Bruno Haible  <bruno@clisp.org>
3237
3238         getpass: Move AC_LIBOBJ invocations to module description.
3239         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3240         gl_PREREQ_GETPASS invocations from here...
3241         * modules/getpass (configure.ac): ... to here.
3242
3243 2011-05-08  Bruno Haible  <bruno@clisp.org>
3244
3245         getpagesize: Move AC_LIBOBJ invocations to module description.
3246         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3247         from here...
3248         * modules/getpagesize (configure.ac): ... to here.
3249
3250 2011-05-08  Bruno Haible  <bruno@clisp.org>
3251
3252         getopt: Move AC_LIBOBJ invocations to module description.
3253         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3254         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3255         invocations from here...
3256         * modules/getopt-gnu (configure.ac): ... to here.
3257         * modules/getopt-posix (configure.ac): ... and here.
3258         (Depends-on): Update condition.
3259
3260 2011-05-08  Bruno Haible  <bruno@clisp.org>
3261
3262         getopt, argp: Respect rules for use of AC_LIBOBJ.
3263         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3264         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3265         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3266         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3267
3268 2011-05-08  Bruno Haible  <bruno@clisp.org>
3269
3270         getlogin_r: Move AC_LIBOBJ invocations to module description.
3271         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3272         gl_PREREQ_GETLOGIN_R invocations from here...
3273         * modules/getlogin_r (configure.ac): ... to here.
3274
3275 2011-05-08  Bruno Haible  <bruno@clisp.org>
3276
3277         getlogin: Move AC_LIBOBJ invocations to module description.
3278         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3279         here...
3280         * modules/getlogin (configure.ac): ... to here.
3281
3282 2011-05-08  Bruno Haible  <bruno@clisp.org>
3283
3284         getloadavg: Move AC_LIBOBJ invocations to module description.
3285         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3286         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3287         * modules/getloadavg (configure.ac): ... to here.
3288
3289 2011-05-08  Bruno Haible  <bruno@clisp.org>
3290
3291         gethrxtime: Move AC_LIBOBJ invocations to module description.
3292         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3293         LIB_GETHRXTIME from here...
3294         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3295         invocations from here...
3296         * modules/gethrxtime (configure.ac): ... to here.
3297
3298 2011-05-08  Bruno Haible  <bruno@clisp.org>
3299
3300         gethostname: Move AC_LIBOBJ invocations to module description.
3301         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3302         gl_PREREQ_GETHOSTNAME invocations from here...
3303         * modules/gethostname (configure.ac): ... to here.
3304
3305 2011-05-08  Bruno Haible  <bruno@clisp.org>
3306
3307         getgroups: Move AC_LIBOBJ invocations to module description.
3308         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3309         here...
3310         * modules/getgroups (configure.ac): ... to here.
3311
3312 2011-05-08  Bruno Haible  <bruno@clisp.org>
3313
3314         getdtablesize: Move AC_LIBOBJ invocations to module description.
3315         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3316         invocation from here...
3317         * modules/getdtablesize (configure.ac): ... to here.
3318
3319 2011-05-08  Bruno Haible  <bruno@clisp.org>
3320
3321         getdomainname: Move AC_LIBOBJ invocations to module description.
3322         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3323         gl_PREREQ_GETDOMAINNAME invocations from here...
3324         * modules/getdomainname (configure.ac): ... to here.
3325
3326 2011-05-08  Bruno Haible  <bruno@clisp.org>
3327
3328         getline: Move AC_LIBOBJ invocations to module description.
3329         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3330         invocations from here...
3331         * modules/getline (configure.ac): ... to here.
3332
3333 2011-05-08  Bruno Haible  <bruno@clisp.org>
3334
3335         getline: Simplify.
3336         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3337         It's already handled through the module dependency.
3338
3339 2011-05-08  Bruno Haible  <bruno@clisp.org>
3340
3341         getdelim: Move AC_LIBOBJ invocations to module description.
3342         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3343         and gl_PREREQ_GETDELIM invocations from here...
3344         * modules/getdelim (configure.ac): ... to here.
3345         (Depends-on): Fix condition.
3346
3347 2011-05-08  Bruno Haible  <bruno@clisp.org>
3348
3349         getcwd: Move AC_LIBOBJ invocations to module description.
3350         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3351         invocations from here...
3352         * modules/getcwd (configure.ac): ... to here.
3353
3354 2011-05-08  Bruno Haible  <bruno@clisp.org>
3355
3356         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3357         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3358         here...
3359         * modules/getcwd-lgpl (configure.ac): ... to here.
3360
3361 2011-05-07  Bruno Haible  <bruno@clisp.org>
3362
3363         crypto/gc: Move AC_LIBOBJ invocations to module description.
3364         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3365         * modules/crypto/gc (configure.ac): ... to here.
3366
3367 2011-05-07  Bruno Haible  <bruno@clisp.org>
3368
3369         fwriting: Move AC_LIBOBJ invocations to module description.
3370         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3371         here...
3372         * modules/fwriting (configure.ac): ... to here.
3373
3374 2011-05-07  Bruno Haible  <bruno@clisp.org>
3375
3376         fwritable: Move AC_LIBOBJ invocations to module description.
3377         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3378         here...
3379         * modules/fwritable (configure.ac): ... to here.
3380
3381 2011-05-07  Bruno Haible  <bruno@clisp.org>
3382
3383         futimens: Move AC_LIBOBJ invocations to module description.
3384         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3385         here...
3386         * modules/futimens (configure.ac): ... to here.
3387
3388 2011-05-07  Bruno Haible  <bruno@clisp.org>
3389
3390         ftruncate: Move AC_LIBOBJ invocations to module description.
3391         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3392         gl_PREREQ_FTRUNCATE invocations from here...
3393         * modules/ftruncate (configure.ac): ... to here.
3394
3395 2011-05-07  Bruno Haible  <bruno@clisp.org>
3396
3397         fsync: Move AC_LIBOBJ invocations to module description.
3398         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3399         invocations from here...
3400         * modules/fsync (configure.ac): ... to here.
3401
3402 2011-05-07  Bruno Haible  <bruno@clisp.org>
3403
3404         fsusage: Move AC_LIBOBJ invocations to module description.
3405         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3406         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3407         * modules/fsusage (configure.ac): ... to here.
3408
3409 2011-05-07  Bruno Haible  <bruno@clisp.org>
3410
3411         freopen: Move AC_LIBOBJ invocations to module description.
3412         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3413         invocations from here...
3414         * modules/freopen (configure.ac): ... to here.
3415
3416 2011-05-07  Bruno Haible  <bruno@clisp.org>
3417
3418         free: Move AC_LIBOBJ invocations to module description.
3419         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3420         invocations from here...
3421         * modules/free (configure.ac): ... to here.
3422
3423 2011-05-07  Bruno Haible  <bruno@clisp.org>
3424
3425         freadable: Move AC_LIBOBJ invocations to module description.
3426         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3427         here...
3428         * modules/freadable (configure.ac): ... to here.
3429
3430 2011-05-07  Bruno Haible  <bruno@clisp.org>
3431
3432         fpurge: Move AC_LIBOBJ invocations to module description.
3433         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3434         invocations from here...
3435         * modules/fpurge (configure.ac): ... to here.
3436
3437 2011-05-07  Bruno Haible  <bruno@clisp.org>
3438
3439         fpending: Move AC_LIBOBJ invocations to module description.
3440         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3441         gl_FUNC_FPENDING.
3442         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3443         invocations from here...
3444         * modules/fpending (configure.ac): ... to here.
3445
3446 2011-05-07  Bruno Haible  <bruno@clisp.org>
3447
3448         fopen: Move AC_LIBOBJ invocations to module description.
3449         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3450         invocations from here...
3451         * modules/fopen (configure.ac): ... to here.
3452
3453 2011-05-07  Bruno Haible  <bruno@clisp.org>
3454
3455         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3456         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3457         gl_FUNC_FNMATCH_POSIX.
3458         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3459         invocations from here...
3460         * modules/fnmatch (configure.ac): ... to here.
3461         * modules/fnmatch-gnu (configure.ac): ... and here.
3462
3463 2011-05-07  Bruno Haible  <bruno@clisp.org>
3464
3465         flock: Move AC_LIBOBJ invocations to module description.
3466         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3467         invocations from here...
3468         * modules/flock (configure.ac): ... to here.
3469
3470 2011-05-07  Bruno Haible  <bruno@clisp.org>
3471
3472         fileblocks: Move AC_LIBOBJ invocations to module description.
3473         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3474         gl_PREREQ_FILEBLOCKS invocations from here...
3475         * modules/fileblocks (configure.ac): ... to here.
3476
3477 2011-05-06  Bruno Haible  <bruno@clisp.org>
3478
3479         fflush: Move AC_LIBOBJ invocations to module description.
3480         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3481         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3482         invocations from here...
3483         * modules/fflush (configure.ac): ... to here.
3484
3485 2011-05-06  Bruno Haible  <bruno@clisp.org>
3486
3487         fdopendir: Move AC_LIBOBJ invocations to module description.
3488         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3489         here...
3490         * modules/fdopendir (configure.ac): ... to here.
3491         (Depends-on): Improve conditions.
3492
3493 2011-05-06  Bruno Haible  <bruno@clisp.org>
3494
3495         _Exit: Move AC_LIBOBJ invocations to module description.
3496         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3497         invocations from here...
3498         * modules/_Exit (configure.ac): ... to here.
3499
3500 2011-05-21  Bruno Haible  <bruno@clisp.org>
3501
3502         euidaccess: Respect rules for use of AC_LIBOBJ.
3503         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3505         from here...
3506         * modules/euidaccess (configure.ac): ... to here.
3507
3508 2011-05-06  Bruno Haible  <bruno@clisp.org>
3509
3510         error: Move AC_LIBOBJ invocations to module description.
3511         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3512         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3513         invocations from here...
3514         * modules/error (configure.ac): ... to here.
3515
3516 2011-05-06  Bruno Haible  <bruno@clisp.org>
3517
3518         duplocale: Move AC_LIBOBJ invocations to module description.
3519         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3520         gl_PREREQ_DUPLOCALE invocations from here...
3521         * modules/duplocale (configure.ac): ... to here.
3522
3523 2011-05-05  Bruno Haible  <bruno@clisp.org>
3524
3525         dirfd: Move AC_LIBOBJ invocations to module description.
3526         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3527         gl_FUNC_DIRFD.
3528         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3529         here...
3530         * modules/dirfd (configure.ac): ... to here.
3531         (Depends-on): Fix condition.
3532
3533 2011-05-05  Bruno Haible  <bruno@clisp.org>
3534
3535         chown: Respect rules for use of AC_LIBOBJ.
3536         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3537         * modules/chown (configure.ac): ... to here.
3538
3539 2011-05-05  Bruno Haible  <bruno@clisp.org>
3540
3541         chdir-long: Move AC_LIBOBJ invocations to module description.
3542         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3543         gl_PREREQ_CHDIR_LONG invocations from here...
3544         * modules/chdir-long (configure.ac): ... to here.
3545
3546 2011-05-05  Bruno Haible  <bruno@clisp.org>
3547
3548         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3549         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3550         from here...
3551         * modules/canonicalize-lgpl (configure.ac): ... to here.
3552
3553 2011-05-05  Bruno Haible  <bruno@clisp.org>
3554
3555         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3556         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3557         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3558         REPLACE_CALLOC.
3559         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3560         * modules/calloc-gnu (configure.ac): Likewise.
3561
3562 2011-05-05  Bruno Haible  <bruno@clisp.org>
3563
3564         btowc: Move AC_LIBOBJ invocations to module description.
3565         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3566         invocations from here...
3567         * modules/btowc (configure.ac): ... to here.
3568
3569 2011-05-21  Bruno Haible  <bruno@clisp.org>
3570
3571         atexit: Move AC_LIBOBJ invocations to module description.
3572         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3573         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3574         here...
3575         * modules/atexit (configure.ac): ... to here.
3576
3577 2011-05-05  Bruno Haible  <bruno@clisp.org>
3578
3579         atoll: Move AC_LIBOBJ invocations to module description.
3580         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3581         invocations from here...
3582         * modules/atoll (configure.ac): ... to here.
3583
3584 2011-05-05  Bruno Haible  <bruno@clisp.org>
3585
3586         argz: Move AC_LIBOBJ invocations to module description.
3587         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3588         * modules/argz (configure.ac): ... to here.
3589
3590 2011-05-05  Bruno Haible  <bruno@clisp.org>
3591
3592         alphasort: Move AC_LIBOBJ invocations to module description.
3593         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3594         gl_PREREQ_ALPHASORT invocations from here...
3595         * modules/alphasort (configure.ac): ... to here.
3596
3597 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3598
3599         verify: new macro verify_expr; verify_true deprecated
3600         * NEWS: Mention this.
3601         * doc/verify.texi (Compile-time Assertions): Document this.
3602         * lib/verify.h (verify_true): Deprecate.
3603         (verify_expr): New macro.
3604         * tests/test-verify.c (function): Test verify_expr.
3605
3606 2011-06-14  Jim Meyering  <meyering@redhat.com>
3607
3608         init.sh: give more portable redirection-related advice in a comment
3609         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3610         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3611         for lots of discussion.  Stefano Lattarini suggested the solution
3612         of putting "9>&2" after the command.  Reported by Bruno Haible.
3613
3614 2011-06-13  Bruno Haible  <bruno@clisp.org>
3615
3616         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3617         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3618         'none'.
3619
3620 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3621
3622         ftoastr: use strtof only if HAVE_STRTOF
3623         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3625         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3626         * modules/ftoastr (configure.ac): Check for strtof.
3627
3628 2011-06-13  Bruno Haible  <bruno@clisp.org>
3629
3630         gnulib-tool: Addendum to 2011-06-08 commit.
3631         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3632         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3633
3634 2011-06-13  Bruno Haible  <bruno@clisp.org>
3635
3636         fseeko: Provide a non-inline replacement of fseek().
3637         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3638         * modules/fseeko (Depends-on): Add fseek.
3639         * modules/fseek (License): Change to LGPLv2+.
3640
3641 2011-06-13  Bruno Haible  <bruno@clisp.org>
3642
3643         ftello: Provide a non-inline replacement of ftell().
3644         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3645         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3646         not have ftello() (such as on mingw).
3647         * modules/ftello (Depends-on): Add ftell.
3648         * modules/ftell (License): Change to LGPLv2+.
3649
3650 2011-05-07  Bruno Haible  <bruno@clisp.org>
3651
3652         ftell: Move AC_LIBOBJ invocations to module description.
3653         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3654         * modules/ftell (configure.ac): ... to here.
3655
3656 2011-05-07  Bruno Haible  <bruno@clisp.org>
3657
3658         ftello: Respect rules for use of AC_LIBOBJ.
3659         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3660         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3661         here...
3662         * modules/ftello (configure.ac): ... to here.
3663
3664 2011-05-07  Bruno Haible  <bruno@clisp.org>
3665
3666         fseeko: Simplify.
3667         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3668         (gl_FUNC_FSEEKO): Inline it here.
3669
3670 2011-05-07  Bruno Haible  <bruno@clisp.org>
3671
3672         fseek: Move AC_LIBOBJ invocations to module description.
3673         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3674         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3675         * modules/fseek (configure.ac): ... to here.
3676
3677 2011-05-07  Bruno Haible  <bruno@clisp.org>
3678
3679         fseek: Respect rules for use of AC_LIBOBJ.
3680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3681         here...
3682         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3683
3684 2011-05-07  Bruno Haible  <bruno@clisp.org>
3685
3686         fseeko: Respect rules for use of AC_LIBOBJ.
3687         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3688         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3689         here...
3690         * modules/fseeko (configure.ac): ... to here.
3691
3692 2011-06-13  Bruno Haible  <bruno@clisp.org>
3693
3694         gnulib-tool: Allow comments in the 'Depends-on' section.
3695         * doc/gnulib.texi (Module description): Mention comment syntax in the
3696         Depends-on section.
3697         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3698
3699 2011-06-13  Bruno Haible  <bruno@clisp.org>
3700
3701         file-set.h: guard __attibute__ use, now that it's not always defined
3702         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3703         versions that support it.  This fixes a coreutils build failure with
3704         the vendor cc on HP-UX 11.31.
3705
3706 2011-06-12  Bruno Haible  <bruno@clisp.org>
3707
3708         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3709         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3710         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3711         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3712         (acl, aclsort): New declarations.
3713         (aclv_nontrivial): New declaration.
3714         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3715         (file_has_acl): Read also the second kind of HP-UX ACLs.
3716         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3717         kind of HP-UX ACLs if the first kind fails.
3718         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3719         second kind of HP-UX ACLs.
3720         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3721         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3722         agree.
3723         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3724         hpuxjfs.
3725         Handle hpuxjfs.
3726         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3727         hpuxjfs.
3728         Handle hpuxjfs.
3729         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3730         (func_test_same_acls): Use both lsacl and getacl.
3731         Handle hpuxjfs.
3732         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3733         (func_test_same_acls): Use both lsacl and getacl.
3734         Handle hpuxjfs.
3735
3736 2011-06-12  Bruno Haible  <bruno@clisp.org>
3737
3738         acl: Complete the 2010-08-10 fix.
3739         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3740         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3741         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3742         explicitly.
3743         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3744         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3745
3746 2011-06-12  Bruno Haible  <bruno@clisp.org>
3747
3748         spawn-pipe tests: Comments.
3749         * tests/test-spawn-pipe-child.c (main): Update comment.
3750         Reported by James Youngman <jay@gnu.org>.
3751
3752 2011-06-11  James Youngman  <jay@gnu.org>
3753
3754         New module 'stat-size'.
3755         * modules/stat-size: New module.  Provides macros for accessing
3756         file size information in instances of struct stat.  Depends on the
3757         fileblocks module because it calls st_blocks.
3758         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3759         * doc/gnulib.texi: Include stat-size.texi.
3760         * doc/stat-size.texi: Documentation for this module.
3761         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3762         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3763         AC_STRUCT_ST_BLOCKS.
3764
3765 2011-06-09  Bruno Haible  <bruno@clisp.org>
3766
3767         thread: Support pthreads-win32.
3768         * lib/glthread/thread.h (gl_thread_self): Define differently on
3769         pthreads-win32.
3770         (gl_null_thread): New declaration.
3771         (gl_thread_self_pointer): New macro.
3772         * lib/glthread/thread.c (gl_null_thread): New constant.
3773         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3774         gl_thread_self.
3775         * tests/test-tls.c: Likewise.
3776         Suggested by Paul Eggert. Reported by Eric Blake.
3777
3778 2011-06-09  Bruno Haible  <bruno@clisp.org>
3779
3780         thread: Fix confusion between NULL and 0.
3781         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3782         Reported by Paul Eggert.
3783
3784 2011-06-09  Bruno Haible  <bruno@clisp.org>
3785
3786         spawn-pipe tests: Avoid test failure on HP-UX 11.
3787         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3788         is closed.
3789
3790 2011-06-09  Bruno Haible  <bruno@clisp.org>
3791
3792         acl tests: Fix compilation error on HP-UX 11.
3793         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3794
3795 2011-06-09  Bruno Haible  <bruno@clisp.org>
3796
3797         rmdir: Avoid test failure on HP-UX 10.20.
3798         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3799         EEXIST.
3800
3801 2011-06-08  Eric Blake  <eblake@redhat.com>
3802
3803         perror: fix test on mingw
3804         * modules/perror-tests (Depends-on): Add dup2.
3805
3806         strerror_r-posix: fix on MacOS
3807         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3809         logic bug.
3810         * lib/strerror_r.c (strerror_r): Fix the bug.
3811         * lib/strerror.c (strerror): Likewise.
3812         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3813         problem.
3814         * doc/posix-functions/strerror.texi (strerror): Likewise.
3815         * doc/posix-functions/perror.texi (perror): Likewise.
3816         * tests/test-strerror.c (main): Enhance test.
3817         * tests/test-strerror_r.c (main): Likewise.
3818
3819 2011-06-08  Bruno Haible  <bruno@clisp.org>
3820
3821         gnulib-tool: Better isolation between different gnulib-tool invocations.
3822         * gnulib-tool: New option --witness-c-macro.
3823         (witness_c_macro): New variable.
3824         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3825         AM_CPPFLAGS define it as a C macro.
3826         (func_emit_tests_Makefile_am): Likewise.
3827         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3828         read it from there.
3829         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3830         m4_define, not AC_DEFUN.
3831         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3832         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3833         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3834         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3835         s|...|...|, to substitute the values of the GNULIB_* module indicator
3836         variables.
3837         * modules/dirent (Makefile.am): Likewise.
3838         * modules/fcntl-h (Makefile.am): Likewise.
3839         * modules/iconv-h (Makefile.am): Likewise.
3840         * modules/langinfo (Makefile.am): Likewise.
3841         * modules/locale (Makefile.am): Likewise.
3842         * modules/math (Makefile.am): Likewise.
3843         * modules/netdb (Makefile.am): Likewise.
3844         * modules/poll-h (Makefile.am): Likewise.
3845         * modules/pty (Makefile.am): Likewise.
3846         * modules/search (Makefile.am): Likewise.
3847         * modules/signal (Makefile.am): Likewise.
3848         * modules/spawn (Makefile.am): Likewise.
3849         * modules/stdio (Makefile.am): Likewise.
3850         * modules/stdlib (Makefile.am): Likewise.
3851         * modules/string (Makefile.am): Likewise.
3852         * modules/sys_ioctl (Makefile.am): Likewise.
3853         * modules/sys_select (Makefile.am): Likewise.
3854         * modules/sys_socket (Makefile.am): Likewise.
3855         * modules/sys_stat (Makefile.am): Likewise.
3856         * modules/sys_times (Makefile.am): Likewise.
3857         * modules/sys_utsname (Makefile.am): Likewise.
3858         * modules/sys_wait (Makefile.am): Likewise.
3859         * modules/termios (Makefile.am): Likewise.
3860         * modules/time (Makefile.am): Likewise.
3861         * modules/unistd (Makefile.am): Likewise.
3862         * modules/wchar (Makefile.am): Likewise.
3863
3864 2011-06-08  Eric Blake  <eblake@redhat.com>
3865
3866         strerror: simplify replacement
3867         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3868         * modules/strerror (configure.ac): No prereqs needed here...
3869         * modules/strerror-override (configure.ac): ...but this needs it.
3870         (Files): Add file for needed prereq macro.
3871
3872 2011-06-08  Bruno Haible  <bruno@clisp.org>
3873
3874         strerror_r-posix: Tweaks.
3875         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3876         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3877         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3878         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3879         (gl_FUNC_STRERROR_R): ... to here.
3880         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3881
3882 2011-06-07  Eric Blake  <eblake@redhat.com>
3883
3884         perror: document fixed bugs
3885         * doc/posix-functions/perror.texi (perror): Document recent
3886         patches.
3887
3888 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3889
3890         stat-time: get_stat_birthtime failure is better-defined
3891         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3892         return a timestamp whose tv_sec and tv_nsec values are both -1.
3893         Previously, the spec said only that the tv_nsec value was negative.
3894         This upward-compatible change simplifies GNU tar a bit.
3895
3896 2011-06-07  Eric Blake  <eblake@redhat.com>
3897
3898         strerror_r-posix: work around cygwin 1.7.9
3899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3900         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3901         bug without replacing strerror_r.
3902         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3903         strerror_r is buggy, but without requiring strerror_r compilation.
3904         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3905
3906         test-perror: relax test to ignore cygwin bug
3907         * tests/test-perror2.c (main): Relax test on requiring detection
3908         of stream errors, and use unbuffered stream.
3909         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3910         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3911         * doc/posix-functions/fputc.texi (fputc): Likewise.
3912         * doc/posix-functions/fputs.texi (fputs): Likewise.
3913         * doc/posix-functions/fputws.texi (fputws): Likewise.
3914         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3915         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3916         * doc/posix-functions/getopt.texi (getopt): Likewise.
3917         * doc/posix-functions/perror.texi (perror): Likewise.
3918         * doc/posix-functions/printf.texi (printf): Likewise.
3919         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3920         * doc/posix-functions/psignal.texi (psignal): Likewise.
3921         * doc/posix-functions/putc.texi (putc): Likewise.
3922         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3923         Likewise.
3924         * doc/posix-functions/putchar.texi (putchar): Likewise.
3925         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3926         Likewise.
3927         * doc/posix-functions/puts.texi (puts): Likewise.
3928         * doc/posix-functions/putwc.texi (putwc): Likewise.
3929         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3930         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3931         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3932         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3933         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3934         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3935         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3936         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3937
3938 2011-05-22  Bruno Haible  <bruno@clisp.org>
3939
3940         strerror: Move AC_LIBOBJ invocations to module description.
3941         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3942         gl_PREREQ_STRERROR invocations from here...
3943         * modules/strerror (configure.ac): ... to here.
3944
3945 2011-05-21  Bruno Haible  <bruno@clisp.org>
3946
3947         perror: Use common idiom.
3948         * modules/perror (configure.ac): Reorder statements.
3949
3950 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3951
3952         tests: fix usage message in 'mktempd_'
3953         * tests/init.sh (mktempd_): In the usage message, use literal
3954         'mktempd_', not '$ME' (which is even undefined), as the name of
3955         the subroutine.
3956
3957 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3958
3959         tests init: new function 'fatal_', for hard errors
3960         Before this patch, the only way offered by tests/init.sh to
3961         properly signal a hard error was the `framework_failure_'
3962         function.  But the error message issued by that function,
3963         as its name would suggest, refers to a set-up failure in the
3964         testsuite, while hard errors can obviously also be due to
3965         other reasons.  The best way to fix this inconsistency is to
3966         introduce a new function with a more general error message.
3967         * tests/init.sh (fatal_): New function.
3968
3969 2011-06-06  Eric Blake  <eblake@redhat.com>
3970
3971         canonicalize-lgpl: use common idiom
3972         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3973         over newer POSIX -Rf.
3974         Reported by Bruno Haible.
3975
3976         canonicalize-lgpl: work around AIX realpath bug
3977         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3978         * doc/posix-functions/realpath.texi (realpath): Document it.
3979         Reported by Bruno Haible.
3980
3981         strerror: work around FreeBSD bug
3982         * lib/strerror.c (strerror): Special case 0.
3983         Reported by Bruno Haible.
3984
3985         strerror-override: avoid bloating errno module
3986         * modules/errno (Files, configure.ac): Move replacement strings...
3987         * modules/strerror-override: ...to new module.
3988         * modules/strerror (Depends-on): Add strerror-override.
3989         * modules/strerror_r-posix (Depends-on): Likewise.
3990         * MODULES.html.sh: Document new module.
3991         Reported by Bruno Haible.
3992
3993 2011-06-06  Bruno Haible  <bruno@clisp.org>
3994
3995         spawn-pipe tests: Rename program.
3996         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3997         * tests/test-spawn-pipe-child.c: Update comment.
3998         * tests/test-spawn-pipe.sh: Update.
3999         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4000
4001         spawn-pipe tests: Link the child program only against libc.
4002         * tests/test-spawn-pipe-child.c: New file, extracted from
4003         tests/test-spawn-pipe.c.
4004         (main): Expect only one argument.
4005         (is_open): New function, copied from tests/test-pipe.c.
4006         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4007         (child_main): Remove function.
4008         (test_pipe): Pass only one argument to the child program.
4009         (main): Remove child process code. Expect the child program's name as
4010         first argument.
4011         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4012         argument.
4013         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4014         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4015         test-spawn-pipe-child against no libraries.
4016
4017 2011-06-06  Bruno Haible  <bruno@clisp.org>
4018
4019         careadlinkat: Avoid mismatch between ssize_t and int.
4020         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4021         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4022
4023 2011-06-06  Jim Meyering  <meyering@redhat.com>
4024
4025         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4026         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4027         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4028
4029 2011-06-05  Bruno Haible  <bruno@clisp.org>
4030
4031         ansi-c++-opt: Interoperability with libtool.
4032         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4033         set the variable to "no", not to ":".
4034         * NEWS: Mention the change.
4035
4036 2011-06-05  Bruno Haible  <bruno@clisp.org>
4037
4038         acl: Fix test failure on AIX 7.
4039         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4040         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4041
4042 2011-06-05  Bruno Haible  <bruno@clisp.org>
4043
4044         pipe-filter-ii: Fix test failure on AIX and IRIX.
4045         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4046         with EAGAIN, retry with a smaller buffer size.
4047
4048 2011-06-05  Bruno Haible  <bruno@clisp.org>
4049
4050         localename: Fix link dependencies.
4051         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4052         * modules/localename-tests (Makefile.am): Link test-localename with
4053         $(LIBTHREAD).
4054
4055 2011-06-05  Bruno Haible  <bruno@clisp.org>
4056
4057         error: Avoid gcc warning.
4058         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4059
4060 2011-06-05  Bruno Haible  <bruno@clisp.org>
4061
4062         unsetenv: Avoid gcc warning.
4063         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4064
4065 2011-06-05  Bruno Haible  <bruno@clisp.org>
4066
4067         setenv: Avoid gcc warning.
4068         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4069
4070 2011-06-05  Bruno Haible  <bruno@clisp.org>
4071
4072         sys_select: Ensure memset is declared also on AIX 7.
4073         * lib/sys_select.in.h: Include <string.h> also on AIX.
4074         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4075         self-contained also on AIX 7.1.
4076
4077 2011-06-04  Jim Meyering  <meyering@redhat.com>
4078
4079         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4080         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4081         function name, "error".
4082         (_gl_translatable_diag_func_re): New configurable variable.
4083
4084 2011-06-04  Bruno Haible  <bruno@clisp.org>
4085
4086         getopt: Avoid gcc warning.
4087         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4088
4089 2011-06-04  Bruno Haible  <bruno@clisp.org>
4090
4091         strerror_r: Fix comments.
4092         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4093         commit.
4094
4095 2011-06-04  Bruno Haible  <bruno@clisp.org>
4096
4097         perror: Fix compilation error.
4098         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4099         Undefine fprintf, not sprintf.
4100         * modules/perror (Depends-on): Remove intprops, verify.
4101
4102 2011-06-04  Bruno Haible  <bruno@clisp.org>
4103
4104         setlocale: Enable replacement on Cygwin 1.5.
4105         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4106         Cygwin 1.5.x.
4107         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4108         LC_CTYPE category also exists on Cygwin 1.5.x.
4109
4110 2011-06-04  Bruno Haible  <bruno@clisp.org>
4111
4112         strerror-override: Don't disable symbol renamings.
4113         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4114         * lib/strerror-override.c: Include config.h.
4115         (strerror_override): Don't undefine.
4116
4117 2011-06-03  Bruno Haible  <bruno@clisp.org>
4118
4119         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4120         * lib/localename.h: Update copyright header.
4121         * lib/localename.c: Likewise.
4122         * lib/relocatable.h: Likewise.
4123         * lib/relocatable.c: Likewise.
4124
4125 2011-06-02  Bruno Haible  <bruno@clisp.org>
4126
4127         doc: Fix a module name.
4128         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4129
4130 2011-06-02  Bruno Haible  <bruno@clisp.org>
4131
4132         pipe2: Remove dependency on 'nonblocking' module.
4133         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4134         O_NONBLOCK is defined by gnulib.
4135         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4136         is zero.
4137         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4138         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4139         defined by gnulib.
4140         (get_nonblocking_flag): New function.
4141         (main): Test O_NONBLOCK flag only if it is nonzero.
4142         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4143
4144 2011-06-03  Jim Meyering  <meyering@redhat.com>
4145
4146         maint: three new prohibit-header-without-use rules
4147         Prohibit use of cloexec.h, posixver.h, same.h without use.
4148         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4149         (sc_prohibit_posixver_without_use): Likewise.
4150         (sc_prohibit_same_without_use): Likewise.
4151
4152 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4153
4154         allocator: 'die' routine is now given requested size
4155         * lib/allocator.h (struct allocator.die): New size arg.
4156         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4157         If the actual problem is an ssize_t limitation, not a size_t or
4158         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4159
4160 2011-06-01  Eric Blake  <eblake@redhat.com>
4161
4162         strerror: drop strerror_r dependency
4163         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4164         * lib/strerror-override.c (strerror_override): ...to new file.
4165         * lib/strerror-override.h: Add prototype.
4166         * lib/strerror-impl.h: Delete.
4167         * lib/strerror.c (strerror): New implementation.
4168         * modules/errno (Files): Add new files.
4169         (configure.ac): Compile new file as appropriate.
4170         * modules/strerror (Files): Drop unused file.
4171         (Depends-on): Drop strerror_r-posix.
4172         * MODULES.html.sh: Document strerror_r-posix.
4173         Requested by Sam Steingold.
4174
4175         perror: call strerror_r directly
4176         * modules/perror (Files): Drop strerror-impl.h.
4177         * lib/perror.c (perror): Use our own stack buffer, rather than
4178         calling a wrapper that uses static storage.
4179         * doc/posix-functions/perror.texi (perror): Document a limitation
4180         of our replacement.
4181
4182         strerror_r: fix includes for FreeBSD
4183         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4184         since we use abort on some platforms.
4185         Reported by Matthias Bolte.
4186
4187 2011-05-31  Bruno Haible  <bruno@clisp.org>
4188
4189         Fix link errors in tests: openat-die uses gettext-h.
4190         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4191         against $(LIBINTL).
4192         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4193         against $(LIBINTL).
4194         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4195         $(LIBINTL).
4196         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4197         against $(LIBINTL).
4198         * modules/linkat-tests (Makefile.am): Link test-linkat against
4199         $(LIBINTL).
4200         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4201         $(LIBINTL).
4202         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4203         against $(LIBINTL).
4204         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4205         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4206         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4207         $(LIBINTL).
4208         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4209         $(LIBINTL).
4210         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4211         $(LIBINTL).
4212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4213
4214 2011-05-31  Bruno Haible  <bruno@clisp.org>
4215
4216         Fix link errors in tests: wait-process uses gettext-h.
4217         * modules/nonblocking-pipe-tests (Makefile.am): Set
4218         test_nonblocking_pipe_main_LDADD.
4219         * modules/nonblocking-socket-tests (Makefile.am): Link
4220         test-nonblocking-socket-main against $(LIBINTL).
4221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4222
4223 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4224
4225         assert-h: work around 'verify' incompatibility
4226         * lib/verify.h: Use @...@ directives, not ifdef.
4227         * modules/assert-h (assert.h): Implement the directives.
4228         (assert.h): Substitute the symbol-prefix more consistently.
4229
4230 2011-05-29  Jim Meyering  <meyering@redhat.com>
4231
4232         trim: remove three superfluous assignments
4233         * lib/trim.c (trim2): Remove three superfluous assignments
4234         and correct brace positioning.
4235
4236 2011-05-29  Bruno Haible  <bruno@clisp.org>
4237
4238         wctype-h: Avoid namespace pollution on Solaris 2.6.
4239         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4240         identifiers.
4241         * doc/posix-headers/wctype.texi: Mention the problem.
4242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4243
4244 2011-05-28  Jim Meyering  <meyering@redhat.com>
4245
4246         parse-datetime.y: accommodate -Wstrict-overflow
4247         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4248         placate -Wstrict-overflow.
4249
4250         trim: avoid a warning from -O2 -Wstrict-overflow
4251         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4252
4253 2011-05-29  Bruno Haible  <bruno@clisp.org>
4254
4255         gnulib-tool: Fix bug in yesterday's commit.
4256         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4257         twice.
4258
4259 2011-05-29  Bruno Haible  <bruno@clisp.org>
4260
4261         Allow multiple gnulib generated include files to be combined.
4262         * gnulib-tool (func_compute_include_guard_prefix): New function.
4263         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4264         ${gl_include_guard_prefix} references.
4265         (func_import, func_create_testdir): Invoke
4266         func_compute_include_guard_prefix.
4267         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4268         * lib/ctype.in.h: Likewise.
4269         * lib/dirent.in.h: Likewise.
4270         * lib/errno.in.h: Likewise.
4271         * lib/fcntl.in.h: Likewise.
4272         * lib/float.in.h: Likewise.
4273         * lib/getopt.in.h: Likewise.
4274         * lib/iconv.in.h: Likewise.
4275         * lib/langinfo.in.h: Likewise.
4276         * lib/locale.in.h: Likewise.
4277         * lib/math.in.h: Likewise.
4278         * lib/netdb.in.h: Likewise.
4279         * lib/netinet_in.in.h: Likewise.
4280         * lib/poll.in.h: Likewise.
4281         * lib/pthread.in.h: Likewise.
4282         * lib/pty.in.h: Likewise.
4283         * lib/sched.in.h: Likewise.
4284         * lib/se-selinux.in.h: Likewise.
4285         * lib/search.in.h: Likewise.
4286         * lib/signal.in.h: Likewise.
4287         * lib/spawn.in.h: Likewise.
4288         * lib/stdarg.in.h: Likewise.
4289         * lib/stddef.in.h: Likewise.
4290         * lib/stdint.in.h: Likewise.
4291         * lib/stdio.in.h: Likewise.
4292         * lib/stdlib.in.h: Likewise.
4293         * lib/string.in.h: Likewise.
4294         * lib/strings.in.h: Likewise.
4295         * lib/sys_file.in.h: Likewise.
4296         * lib/sys_ioctl.in.h: Likewise.
4297         * lib/sys_select.in.h: Likewise.
4298         * lib/sys_socket.in.h: Likewise.
4299         * lib/sys_stat.in.h: Likewise.
4300         * lib/sys_time.in.h: Likewise.
4301         * lib/sys_times.in.h: Likewise.
4302         * lib/sys_uio.in.h: Likewise.
4303         * lib/sys_utsname.in.h: Likewise.
4304         * lib/sys_wait.in.h: Likewise.
4305         * lib/sysexits.in.h: Likewise.
4306         * lib/termios.in.h: Likewise.
4307         * lib/time.in.h: Likewise.
4308         * lib/unistd.in.h: Likewise.
4309         * lib/wchar.in.h: Likewise.
4310         * lib/wctype.in.h: Likewise.
4311         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4312         * modules/ctype (Makefile.am): Likewise.
4313         * modules/dirent (Makefile.am): Likewise.
4314         * modules/errno (Makefile.am): Likewise.
4315         * modules/fcntl-h (Makefile.am): Likewise.
4316         * modules/float (Makefile.am): Likewise.
4317         * modules/getopt-posix (Makefile.am): Likewise.
4318         * modules/iconv-h (Makefile.am): Likewise.
4319         * modules/langinfo (Makefile.am): Likewise.
4320         * modules/locale (Makefile.am): Likewise.
4321         * modules/math (Makefile.am): Likewise.
4322         * modules/netdb (Makefile.am): Likewise.
4323         * modules/netinet_in (Makefile.am): Likewise.
4324         * modules/poll-h (Makefile.am): Likewise.
4325         * modules/pthread (Makefile.am): Likewise.
4326         * modules/pty (Makefile.am): Likewise.
4327         * modules/sched (Makefile.am): Likewise.
4328         * modules/search (Makefile.am): Likewise.
4329         * modules/selinux-h (Makefile.am): Likewise.
4330         * modules/signal (Makefile.am): Likewise.
4331         * modules/spawn (Makefile.am): Likewise.
4332         * modules/stdarg (Makefile.am): Likewise.
4333         * modules/stddef (Makefile.am): Likewise.
4334         * modules/stdint (Makefile.am): Likewise.
4335         * modules/stdio (Makefile.am): Likewise.
4336         * modules/stdlib (Makefile.am): Likewise.
4337         * modules/string (Makefile.am): Likewise.
4338         * modules/strings (Makefile.am): Likewise.
4339         * modules/sys_file (Makefile.am): Likewise.
4340         * modules/sys_ioctl (Makefile.am): Likewise.
4341         * modules/sys_select (Makefile.am): Likewise.
4342         * modules/sys_socket (Makefile.am): Likewise.
4343         * modules/sys_stat (Makefile.am): Likewise.
4344         * modules/sys_time (Makefile.am): Likewise.
4345         * modules/sys_times (Makefile.am): Likewise.
4346         * modules/sys_uio (Makefile.am): Likewise.
4347         * modules/sys_utsname (Makefile.am): Likewise.
4348         * modules/sys_wait (Makefile.am): Likewise.
4349         * modules/sysexits (Makefile.am): Likewise.
4350         * modules/termios (Makefile.am): Likewise.
4351         * modules/time (Makefile.am): Likewise.
4352         * modules/unistd (Makefile.am): Likewise.
4353         * modules/wchar (Makefile.am): Likewise.
4354         * modules/wctype-h (Makefile.am): Likewise.
4355         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4356
4357 2011-05-29  Bruno Haible  <bruno@clisp.org>
4358
4359         assert-h: Allow multiple gnulib generated replacements to coexist.
4360         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4361
4362 2011-05-29  Bruno Haible  <bruno@clisp.org>
4363
4364         argp: Allow coexistence with strerror_r-posix module.
4365         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4366         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4367         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4368         not the glibc signature.
4369
4370 2011-05-28  Bruno Haible  <bruno@clisp.org>
4371
4372         gnulib-tool: Alternative structure of testdirs, similar to --import.
4373         * gnulib-tool: New option --single-configure.
4374         (func_usage): Document it.
4375         (single_configure): New variable.
4376         (func_modules_transitive_closure_separately,
4377         func_modules_transitive_closure_separately,
4378         func_determine_use_libtests, func_modules_add_dummy_separately,
4379         func_modules_to_filelist_separately): New functions, extracted from
4380         func_import.
4381         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4382         (func_import): Use the new functions.
4383         (func_create_testdir): Set final_modules. Handle $single_configure =
4384         true case.
4385
4386 2011-05-28  Bruno Haible  <bruno@clisp.org>
4387
4388         getloadavg: Remove an unreliable safety check.
4389         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4390         getloadavg.c is in place.
4391         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4392         Reported by Sam Steingold <sds@gnu.org>.
4393
4394 2011-05-28  Bruno Haible  <bruno@clisp.org>
4395
4396         doc: Cleanup yet another file produced by texinfo.tex.
4397         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4398
4399 2011-05-28  Bruno Haible  <bruno@clisp.org>
4400
4401         Finish the conditional dependencies mechanism.
4402         * gnulib-tool: New option --no-conditional-dependencies.
4403         (func_usage): Document it. Don't mark --conditional-dependencies as
4404         experimental.
4405         (cond_dependencies): The possible values can now be true, false, empty.
4406         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4407         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4408         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4409
4410 2011-05-28  Bruno Haible  <bruno@clisp.org>
4411
4412         doc: Use a recent texinfo.tex.
4413         * doc/Makefile (tex_opts): New variable.
4414         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4415
4416 2011-05-28  Jim Meyering  <meyering@redhat.com>
4417
4418         intprops.h: adjust comment to match code change
4419         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4420         only once, it *may* have side effects.  Also fix an unrelated typo.
4421         (_GL_INT_SIGNED): Likewise.
4422
4423 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4424
4425         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4426
4427 2011-05-26  Bruno Haible  <bruno@clisp.org>
4428
4429         mbsrchr: Avoid collision with system function on Interix.
4430         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4431         Reported by Markus Duft <mduft@gentoo.org>.
4432
4433 2011-05-15  James Youngman  <jay@gnu.org>
4434
4435         getopt: for ambiguous options, enumerate the possibilities.
4436         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4437         the ambiguous options when an ambiguous prefix is given. This was
4438         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4439         glibc change was
4440         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4441
4442 2011-05-25  Eric Blake  <eblake@redhat.com>
4443
4444         getcwd: work around mingw bug
4445         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4446         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4447         Reported by Matthias Bolte.
4448
4449 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4450
4451         test-intprops: disable -Wtype-limits diagnostics
4452         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4453         diagnostics.  Otherwise, the integer overflow macros generate many
4454         diagnostics.  Reported by Jim Meyering in
4455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4456
4457         intprops: shorten, to pacify gcc -Woverlength-strings
4458         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4459         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4460         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4461         likely to run afoul of C compiler limits for string constant lengths.
4462         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4463
4464 2011-05-24  Eric Blake  <eblake@redhat.com>
4465
4466         docs: document recently fixed glibc printf bug
4467         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4468         * doc/posix-functions/printf.texi (printf): Likewise.
4469         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4470         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4471
4472         closein-tests: convert to init.sh
4473         * modules/closein-tests (Files): Add init.sh
4474         * tests/test-closein.sh Use it.
4475
4476         yesno-tests: convert to init.sh
4477         * modules/yesno-tests (Files): Add init.sh.
4478         * tests/test-yesno.sh: Use it.
4479
4480         atexit-tests: ensure reliable exit status
4481         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4482         Reported by Bruno Haible.
4483
4484 2011-05-24  Bruno Haible  <bruno@clisp.org>
4485
4486         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4487         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4488         gl_PREREQ_STRERROR_R invocations from here...
4489         * modules/strerror_r-posix (configure.ac): ... to here.
4490
4491 2011-05-24  Eric Blake  <eblake@redhat.com>
4492
4493         strerror_r: fix missing header
4494         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4495
4496         strerror_r: fix AIX test failures
4497         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4498         ERANGE failure.
4499
4500         strerror_r: fix Solaris test failures
4501         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4502         failures.
4503         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4504
4505         strerror_r: enforce POSIX recommendations
4506         * lib/strerror_r.c (safe_copy): New helper method.
4507         (strerror_r): Guarantee a non-empty string.
4508         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4509         recent POSIX rulings and to match our strerror guarantees.
4510         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4511
4512 2011-05-24  Jim Meyering  <meyering@redhat.com>
4513
4514         test-perror2.c: avoid warning about unused variable
4515         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4516
4517 2011-05-24  Eric Blake  <eblake@redhat.com>
4518
4519         perror: avoid spurious test failure on HP-UX
4520         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4521
4522         tests: fix logic bug in init.sh
4523         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4524         shell.
4525
4526 2011-05-24  Jim Meyering  <meyering@redhat.com>
4527
4528         utimensat: do not reference an out-of-scope buffer
4529         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4530         declared in an inner scope, yet "times" would be dereferenced outside
4531         the scope in which "ts" was valid.
4532         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4533         of ts[2] "out/up", so that the use of aliased "times" (via
4534         "times = ts;") does not end up referencing an out-of-scope "ts"
4535
4536         opendir-safer.c: don't clobber errno; don't close negative FD
4537         * lib/opendir-safer.c (opendir_safer):
4538         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4539         file descriptor, and more importantly, don't clobber the
4540         offending errno value with EINVAL.  Before, upon failure
4541         of dup_safer, we would pass the negative file descriptor to
4542         fdopendir, which would clobber errno.
4543
4544 2011-05-23  Bruno Haible  <bruno@clisp.org>
4545
4546         idcache: Fix module description.
4547         * modules/idcache (Include): Set to "idcache.h".
4548
4549 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4550
4551         gnulib-tool: fix portability problem with MacOS sed
4552         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4553         before the "}".  Problem reported by Leo in
4554         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4555         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4556         sed_extract_condition1, sed_extract_condition2.
4557
4558 2011-05-23  Bruno Haible  <bruno@clisp.org>
4559
4560         hash: Simplify autoconf macro.
4561         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4562
4563 2011-05-23  Bruno Haible  <bruno@clisp.org>
4564
4565         getugroups: Fix module description.
4566         * modules/getugroups (Include): Set to "getugroups.h".
4567
4568 2011-05-23  Bruno Haible  <bruno@clisp.org>
4569
4570         linkat: Simplify autoconf macro.
4571         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4572
4573 2011-05-23  Bruno Haible  <bruno@clisp.org>
4574             Eric Blake  <eblake@redhat.com>
4575
4576         linkat, renameat: Update dependencies.
4577         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4578         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4579         symlinkat.
4580
4581 2011-05-23  Jim Meyering  <meyering@redhat.com>
4582
4583         maint.mk: more tight_scope improvements
4584         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4585         (_gl_TS_headers): Define only in if-0'd block.
4586         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4587         sometimes we must *not* use it.  Adjust uses accordingly.
4588         (sc_tight_scope): Use much simpler grep-based test to determine
4589         whether we skip this rule.
4590
4591         maint.mk: generalize/improve the tight-scope rule
4592         * top/maint.mk: Emit a warning when the test is skipped.
4593         (_gl_TS_dir): Add $(srcdir)/ prefix.
4594         (_gl_TS_function_match): Simplify, rather than trying
4595         to enumerate common types.  Otherwise, it would fail to match an
4596         "extern unsigned char const *" declaration in idutils.
4597         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4598         a way to support use of that type of macro.
4599         (_gl_TS_var_match): Simplify regexp.
4600         (_gl_TS_obj_files): New configurable variable.
4601         (_gl_TS_headers): Likewise.
4602
4603 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4604
4605         verify: fix bug when gnulib <assert.h> is also included
4606         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4607         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4608         Perhaps there's a better way, but this fixes the immediate problem.
4609         Problem reported by Bruno Haible in
4610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4611
4612 2011-05-22  Bruno Haible  <bruno@clisp.org>
4613
4614         xgetcwd: Simplify autoconf macro.
4615         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4616
4617 2011-05-22  Bruno Haible  <bruno@clisp.org>
4618
4619         New module 'mktime-internal'.
4620         * modules/mktime-internal: New file.
4621         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4622         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4623         mktime_internal as a C macro if libc has __mktime_internal.
4624         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4625         conditions.
4626         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4627
4628 2011-05-22  Bruno Haible  <bruno@clisp.org>
4629
4630         timegm: Correct mktime replacement statements.
4631         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4632         defining mktime as a C macro. This completes a 2009-07-28 commit.
4633
4634 2011-05-22  Bruno Haible  <bruno@clisp.org>
4635
4636         timegm: Simplify autoconf macro.
4637         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4638
4639 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4640
4641         clock-time: change to LGPLv2+.
4642         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4643         BSD-like but we have no mark for that; this is good enough for now.
4644
4645 2011-05-21  Bruno Haible  <bruno@clisp.org>
4646
4647         strerror_r: Fix comments.
4648         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4649
4650 2011-05-21  Bruno Haible  <bruno@clisp.org>
4651
4652         relocatable-prog-wrapper: Fix possible link error.
4653         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4654         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4655         (gl_FUNC_SETENV): ... to here.
4656         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4657         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4658
4659 2011-05-21  Bruno Haible  <bruno@clisp.org>
4660
4661         relocatable-prog-wrapper: Assume strerror() exists.
4662         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4663         m4/strerror.m4.
4664         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4665         * lib/relocwrapper.c: Remove mention of strerror module.
4666         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4667         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4668         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4669         C macro.
4670
4671 2011-05-21  Bruno Haible  <bruno@clisp.org>
4672
4673         select: Simplify replacement idiom.
4674         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4675         Win32 platforms.
4676         * lib/sys_select.in.h (select): Simplify accordingly.
4677         * modules/select (Depends-on): Likewise.
4678
4679 2011-05-21  Bruno Haible  <bruno@clisp.org>
4680
4681         mkdir-p: Simplify autoconf macro.
4682         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4683         gl_FUNC_LCHOWN.
4684
4685 2011-05-21  Eric Blake  <eblake@redhat.com>
4686
4687         strerror_r: avoid clobbering strerror on cygwin
4688         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4689         fall back instead to sys_errlist.
4690         * modules/strerror (configure.ac): Add witness.
4691         * tests/test-strerror_r.c (main): Enhance test.
4692         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4693         * tests/test-perror2.c (main): Free memory before exit.
4694
4695 2011-05-21  Bruno Haible  <bruno@clisp.org>
4696
4697         mkdtemp: Use gnulib naming conventions.
4698         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4699         * modules/mkdtemp (configure.ac): Update.
4700
4701 2011-05-20  Eric Blake  <eblake@redhat.com>
4702
4703         strerror_r: avoid corrupting errno on Solaris
4704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4705         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4706
4707         strerror_r: avoid compiler warning
4708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4709
4710         strerror_r: simplify AIX code
4711         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4712
4713         test-perror: avoid spurious failure on FreeBSD
4714         * modules/perror-tests (Depends-on): Add strerror, now that
4715         strerror_r no longer pulls it in.
4716
4717 2011-05-20  Bruno Haible  <bruno@clisp.org>
4718
4719         strerror_r-posix: Remove unused dependencies.
4720         * modules/strerror_r-posix (Depends-on): Remove strerror.
4721         Reported by Eric Blake.
4722
4723 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4724
4725         intprops: remove assumption about A|B representation
4726         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4727         is a valid integer if both A and B are.  Although this is true for
4728         all known practical hosts, the C standard doesn't guarantee it,
4729         and the code need not assume it.  Also, this change may work around
4730         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4732
4733 2011-05-20  Eric Blake  <eblake@redhat.com>
4734
4735         perror: work around FreeBSD bug
4736         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4737         is broken.  Move AC_LIBOBJ...
4738         * modules/perror (configure.ac): Here.
4739         * doc/posix-functions/perror.texi (perror): Document this.
4740         * tests/test-perror2.c (main): Enhance test.
4741
4742         test-perror: check for strerror interactions
4743         * tests/macros.h (STREQ): Add macro.
4744         * modules/perror-tests (Files): Add second test.
4745         * tests/test-perror2.c (main): New file.
4746         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4747
4748         test-perror: rewrite to use init script
4749         * modules/perror-tests (Files): Add init.sh.
4750         * tests/test-perror.sh: Use temporary directory.
4751
4752 2011-05-20  Jim Meyering  <meyering@redhat.com>
4753
4754         maint: replace misused "a" with "an"
4755         * doc/intprops.texi: "a integer"
4756         * doc/regex.texi: "a explanation"
4757         * lib/alignof.h: "a object"
4758         * lib/argmatch.h: "a explanation"
4759         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4760         * lib/stdint.in.h: "a integer"
4761         * lib/userspec.c: "a owner"
4762         * doc/gnulib.texi: Fix "a idea", and reword.
4763
4764 2011-05-19  Jim Meyering  <meyering@redhat.com>
4765
4766         maint: correct misuse of "a" and "an"
4767         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4768         * lib/argp-help.c: "an docum...": s/an/a/
4769         * lib/argp-parse.c: "An vector": s/An/A/
4770         * lib/execute.c: "an native": s/an/a/
4771         * lib/spawn-pipe.c: Likewise.
4772         * lib/gc.h: "an Gc_rc": s/an/a/
4773         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4774         * lib/fts.c: "an stat.st_dev": s/an/a/
4775
4776 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4777
4778         intprops-tests: work around HP-UX 11.23 cc bug with constants
4779         * tests/test-intprops.c (VERIFY): New macro.
4780         (main): Use it, instead of verify, to work around the compiler bug; see
4781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4782
4783         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4784         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4785         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4786         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4787         (_GL_REMAINDER_OVERFLOW): Use it.
4788
4789         intprops-tests: revert unsigned part of previous change
4790         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4791         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4792         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4794
4795 2011-05-19  Bruno Haible  <bruno@clisp.org>
4796
4797         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4798         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4799         strerror_r() returned without filling the buffer.
4800         Reported by Eric Blake.
4801
4802 2011-05-19  Eric Blake  <eblake@redhat.com>
4803
4804         strerror_r: guarantee unchanged errno
4805         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4806         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4807         failure.
4808         * tests/test-strerror_r.c (main): Enhance test.
4809
4810 2011-05-19  Bruno Haible  <bruno@clisp.org>
4811
4812         strerror_r: Reorder #if blocks.
4813         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4814         for consistency with the previous commit.
4815
4816 2011-05-19  Bruno Haible  <bruno@clisp.org>
4817
4818         perror: Avoid clobbering the strerror buffer when possible.
4819         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4820         * lib/strerror.c: Include it.
4821         * modules/strerror (Files): Add lib/strerror-impl.h.
4822         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4823         (my_strerror): New function, defined through lib/strerror-impl.h.
4824         (perror): Use it instead of strerror.
4825         * modules/perror (Files): Add lib/strerror-impl.h.
4826         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4827
4828 2011-05-19  Eric Blake  <eblake@redhat.com>
4829
4830         strerror_r: fix on newer cygwin
4831         * lib/strerror_r.c (strerror_r): Cygwin now has
4832         __xpg_strerror_r, use it.
4833
4834 2011-05-19  Bruno Haible  <bruno@clisp.org>
4835
4836         strerror_r: Avoid clobbering the strerror buffer when possible.
4837         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4838         (sys_nerr, sys_errlist): New declarations.
4839         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4840         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4841         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4842
4843 2011-05-19  Bruno Haible  <bruno@clisp.org>
4844
4845         strerror_r: Fix test failure on mingw.
4846         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4847         EXTEND_STRERROR_R.
4848         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4849         macros from errno.in.h instead.
4850
4851 2011-05-19  Eric Blake  <eblake@redhat.com>
4852
4853         strerror: relax test for Solaris
4854         * tests/test-strerror.c (main): Permit Solaris behavior.
4855         * tests/test-strerror_r.c (main): Likewise.
4856
4857         strerror: enforce POSIX ruling on strerror(0)
4858         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4859         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4860         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4861         * doc/posix-functions/strerror.texi (strerror): Document it.
4862         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4863         * tests/test-strerror.c (main): Strengthen test.
4864         * tests/test-strerror_r.c (main): Likewise.
4865
4866 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4867
4868         intprop-tests: port to older and more-pedantic compilers
4869         * modules/intprops-tests (Files): Add tests/macros.h.
4870         * tests/test-intprops.c: Include macros.h.
4871         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4872         it's no longer documented to expand to an integer constant expression.
4873         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4874         argument is floating point, as it's no longer documented to expand
4875         to an integer constant expression in that case.
4876         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4877         compiler bugs reported by Bruno Haible.  See
4878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4879         (U0, U1): New constants, to work around the same bugs.  Also,
4880         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4881
4882         intprops: work around C compiler bugs
4883         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4884         bug in Sun C 5.11 2010/08/13 and other compilers; see
4885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4886
4887         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4888         * doc/intprops.texi (Integer Type Determination): Fix
4889         documentation for TYPE_IS_INTEGER: it returns an constant
4890         expression, not an integer constant expression.  Fix doc for
4891         TYPE_SIGNED: it returns an integer constant expression only if its
4892         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4893         hardly worth documented that way....)
4894
4895 2011-05-18  Bruno Haible  <bruno@clisp.org>
4896
4897         strerror_r: Avoid clobbering the strerror buffer when possible.
4898         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4899         Handle gnulib defined errno values here. When strerror() returns NULL
4900         or an empty string, return EINVAL.
4901         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4902         gnulib defined errno values here.
4903         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4904
4905 2011-05-18  Eric Blake  <eblake@redhat.com>
4906
4907         fnmatch: avoid compiler warning
4908         * lib/fnmatch_loop.c (FCT): Use correct type.
4909         Reported by Matthias Bolte.
4910
4911 2011-05-13  Jim Meyering  <meyering@redhat.com>
4912
4913         maint.mk: three new prohibit_<HDR>_without_use rules
4914         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4915         (sc_prohibit_stdio-safer_without_use): Likewise.
4916         (sc_prohibit_xfreopen_without_use): Likewise.
4917
4918 2011-05-17  Jim Meyering  <meyering@redhat.com>
4919
4920         announce-gen: fail if the NEWS delta is empty
4921         If there's nothing noteworthy in NEWS, then either you forgot
4922         or you shouldn't be releasing.
4923         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4924
4925 2011-05-17  Pádraig Brady <P@draigBrady.com>
4926
4927         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4928         reserved symbols starting with double underscore from the check.
4929
4930 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4931
4932         intprops: add doc
4933         * doc/intprops.texi: New file, documenting intprops.
4934         * doc/gnulib.texi (Particular Modules): Include it.
4935
4936         verify: add doc to gnulib manual and fix example
4937         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4938         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4939         (Compile-time Assertions): Fix example so it can't overflow.
4940
4941 2011-05-17  Jim Meyering  <meyering@redhat.com>
4942
4943         warnings.m4: don't usurp save_CPPFLAGS variable name
4944         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4945
4946         doc: fix typo
4947         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4948
4949 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4950             Bruno Haible  <bruno@clisp.org>
4951
4952         doc: Tweak recent change.
4953         * README (Portability guidelines): Tweak new text.
4954         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4955         Interix 6.1.
4956
4957 2011-05-16  Eric Blake  <eblake@redhat.com>
4958
4959         inttypes: avoid autoconf warning
4960         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4961         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4962
4963 2011-05-16  Sam Steingold <sds@gnu.org>
4964         and Eric Blake  <eblake@redhat.com>
4965
4966         vc-list-files: accept multiple directory operands
4967         * build-aux/vc-list-files: Iterate over all remaining operands.
4968
4969 2011-05-16  Bruno Haible  <bruno@clisp.org>
4970
4971         Fix confusion regarding deprecated modules.
4972         * modules/calloc (Status, Notice): Mark module as deprecated, not
4973         obsolete.
4974         * modules/fnmatch-posix (Status, Notice): Likewise.
4975         * modules/getdate (Status, Notice): Likewise.
4976         * modules/getopt (Status, Notice): Likewise.
4977         * modules/malloc (Status, Notice): Likewise.
4978         * modules/pipe (Status, Notice): Likewise.
4979         * modules/realloc (Status, Notice): Likewise.
4980         * modules/rename-dest-slash (Status, Notice): Likewise.
4981         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4982         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4983         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4984         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4985         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4986
4987 2011-05-16  Bruno Haible  <bruno@clisp.org>
4988
4989         doc: List the target platforms.
4990         * doc/gnulib-intro.texi (Target Platforms): New section.
4991         * doc/gnulib.texi (Introduction): Update menu.
4992         * README (Portability guidelines): Refer to the new section. Update
4993         statement about oldest supported environment. Remove rationale why
4994         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4995         unportable C89 function.
4996         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4997         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4998
4999 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5000
5001         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5002
5003 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5004
5005         intprops-tests: new module
5006         * modules/intprops-tests, tests/test-intprops.c: New files.
5007
5008         intprops: add safe, portable integer overflow checking
5009         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5010         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5011         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5012         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5013         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5014         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5015         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5016         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5017         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5018         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5019         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5020
5021 2011-05-12  James Youngman  <jay@gnu.org>
5022
5023         Add a test for glibc's Bugzilla bug #12378.
5024         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5025         doesn't allow the literal matching of a lone "[" (which is
5026         required by POSIX).
5027         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5028
5029 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5030
5031         Sync glibc change fixing Bugzilla bug #12378.
5032         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5033         beginning and fall back to matching as normal character if the
5034         string ends before the matching ']' is found.  This is what POSIX
5035         requires.
5036
5037 2011-05-13  Eric Blake  <eblake@redhat.com>
5038
5039         getcwd-lgpl: relax test for FreeBSD
5040         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5041         issue.
5042         * tests/test-getcwd-lgpl.c (main): Relax test.
5043         Reported by Matthias Bolte.
5044
5045 2011-05-11  Eric Blake  <eblake@redhat.com>
5046
5047         test-fflush: silence compiler warning
5048         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5049
5050 2011-05-11  Bruno Haible  <bruno@clisp.org>
5051
5052         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5053         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5054         * modules/canonicalize (Depends-on): Add 'nocrash'.
5055         * modules/canonicalize-lgpl (Depends-on): Likewise.
5056         * doc/posix-functions/realpath.texi: Update platforms list.
5057         Reported by Ryan Schmidt <ryandesign@macports.org>.
5058
5059 2011-05-11  Bruno Haible  <bruno@clisp.org>
5060
5061         group-member: Declare function in <unistd.h>.
5062         * lib/unistd.in.h (group_member): New declaration.
5063         * lib/group-member.h: Remove file.
5064         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5065         * tests/test-unistd-c++.cc: Check signature of group_member.
5066         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5067         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5068         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5069         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5070         HAVE_GROUP_MEMBER.
5071         * modules/group-member (Files): Remove lib/group-member.h.
5072         (Depends-on): Add unistd. Specify conditions.
5073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5074         (Include): Change to <unistd.h>.
5075         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5076         HAVE_GROUP_MEMBER.
5077         * NEWS: Mention the change.
5078         * lib/euidaccess.c: Don't include group-member.h.
5079
5080 2011-05-11  Bruno Haible  <bruno@clisp.org>
5081
5082         group-member: Document module.
5083         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5084         module.
5085
5086 2011-05-11  Bruno Haible  <bruno@clisp.org>
5087
5088         fclose: Fix mistake earlier today.
5089         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5090
5091 2011-05-11  Eric Blake  <eblake@redhat.com>
5092
5093         fclose: preserve fflush errors
5094         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5095         Reported by Jim Meyering.
5096
5097         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5098         * build-aux/bootstrap (check_versions): When no specific version
5099         is required, merely check that the app produces an exit status
5100         that indicates its existence.
5101
5102         maint.mk: drop redundant check
5103         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5104         the same but better.
5105
5106 2011-05-11  Bruno Haible  <bruno@clisp.org>
5107
5108         fclose: Fix possible link error.
5109         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5110         unregister_shadow_fd. Improve comments.
5111         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5112         Eric Blake.
5113
5114 2011-05-11  Jim Meyering  <meyering@redhat.com>
5115
5116         maint.mk: improve "can not" detection and generalize rule name
5117         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5118         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5119         Use the same technique as in sc_prohibit_doubled_word, so that
5120         we recognize "can not" also when the words are separated by a newline.
5121         Suggested by Eric Blake.
5122         (perl_filename_lineno_text_): Define.  Factored out of...
5123         (prohibit_doubled_word_): ...here.  Use the new definition.
5124         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5125         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5126         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5127
5128 2011-05-10  Eric Blake  <eblake@redhat.com>
5129
5130         fclose: avoid double close race when possible
5131         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5132         all but WINDOWS_SOCKETS.
5133
5134 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5135
5136         openat: correct new comment
5137         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5138
5139 2011-05-10  Jim Meyering  <meyering@redhat.com>
5140
5141         openat: add comments
5142         * lib/openat-proc.c (openat_proc_name): Add comments,
5143         mostly from Eric Blake.
5144
5145 2011-05-09  Eric Blake  <eblake@redhat.com>
5146
5147         openat: reduce syscalls in first probe of /proc
5148         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5149         be a directory.  Simplify the probe for .. bugs.
5150         * modules/openat (Depends-on): Drop same-inode.
5151         Reported by Bastien ROUCARIES.
5152
5153 2011-05-09  Jim Meyering  <meyering@redhat.com>
5154
5155         maint.mk: change semantics/name of tight_scope variables
5156         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5157         Rename variables to align with semantics that make them more useful.
5158
5159         maint.mk: tweak new rule's name not to impinge
5160         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5161         (sc_tight_scope): Use new rule name rather than $@-0.
5162
5163         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5164         * top/maint.mk (sc_tight_scope): New rule.
5165         (sc_tight_scope-0): New rule, ifdef'd out.
5166         (_gl_TS_dir): Default.
5167         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5168         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5169
5170 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5171
5172         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5173         Haible <bruno@clisp.org>.
5174
5175 2011-05-08  Bruno Haible  <bruno@clisp.org>
5176
5177         Comments.
5178         * m4/isnanf.m4: Add comment.
5179         * m4/isnanl.m4: Likewise.
5180
5181 2011-05-08  Bruno Haible  <bruno@clisp.org>
5182
5183         glob: Remove obsolete macro.
5184         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5185
5186 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5187
5188         intprops: Sun C 5.11 supports __typeof__
5189         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5190         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5191         which is new.
5192         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5193
5194         intprops: switch to usual gnulib indenting and naming
5195         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5196         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5197
5198         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5199
5200 2011-05-08  Jim Meyering  <meyering@redhat.com>
5201
5202         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5203         * top/maint.mk (release-prep): Use make's --no-print-directory
5204         option when generating the announcement.  This eliminates the
5205         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5206         generated announcement template.
5207
5208 2011-05-08  Bruno Haible  <bruno@clisp.org>
5209
5210         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5211         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5212         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5213
5214 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         ignore-value, verify: Omit include files from lib_SOURCES.
5217         * modules/ignore-value, modules/verify (Makefile.am):
5218         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5219         that leads Automake to duplicate use of am__objects_... variables
5220         in Makefile.in.  See
5221         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5222
5223 2011-05-07  Bruno Haible  <bruno@clisp.org>
5224
5225         fclose: Simplify autoconf macro.
5226         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5227         defined.
5228
5229 2011-05-07  Bruno Haible  <bruno@clisp.org>
5230
5231         canonicalize-lgpl: Fix autoconf macro ordering bug.
5232         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5233         gl_STDLIB_H_DEFAULTS.
5234
5235 2011-05-06  Eric Blake  <eblake@redhat.com>
5236
5237         maintainer-makefile: make sc_po_check easier to tune
5238         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5239         to probe for strings, such as an alternate location for gnulib.
5240
5241         fclose: guarantee behavior on seekable stdin
5242         * modules/fclose (Depends-on): Add fflush.
5243         * doc/posix-functions/fclose.texi (fclose): Document this.
5244         * tests/test-fclose.c (main): Make test for this unconditional.
5245
5246 2011-05-06  Bruno Haible  <bruno@clisp.org>
5247
5248         fflush, fpurge: Relicense under LGPLv2+.
5249         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5250         * modules/fpurge (License): Likewise.
5251         With permission from Eric Blake and Jim Meyering.
5252         Suggested by Eric Blake.
5253
5254 2011-05-06  Karl Berry  <karl@gnu.org>
5255
5256         * MODULES.html.sh (func_all_modules): remove exit.
5257
5258 2011-05-06  Jim Meyering  <meyering@redhat.com>
5259
5260         maint.mk: use info-gnu@ as the default only for a stable release
5261         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5262         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5263         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5264         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5265
5266 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5267
5268         assert-h: new module, which supports C1X-style static_assert
5269         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5270         * lib/verify.h: Revamp so that this can be copied into assert.h,
5271         while retaining the ability to use it standalone as before.
5272         Rename private identifiers so as not to encroach on the
5273         standard C namespace, since this is now used by assert.h.
5274         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5275         the old verify_true.
5276         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5277         the old verify_true.  Use _GL_VERIFY_TYPE.
5278         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5279         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5280         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5281         defined when this file is copied into the replacement assert.h.
5282         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5283         and _Static_assert is not built in.
5284         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5285         defined, and use the new macros mentioned above.
5286         * doc/posix-headers/assert.texi: Document this.
5287
5288 2011-05-05  Bruno Haible  <bruno@clisp.org>
5289
5290         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5291         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5292         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5293         gl_REPLACE_FCLOSE here.
5294         * modules/fflush (Depends-on): Remove fclose.
5295         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5296         combination with module 'fclose'.
5297
5298 2011-05-05  Bruno Haible  <bruno@clisp.org>
5299
5300         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5301         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5302         gl_FUNC_FFLUSH.
5303         (gl_FUNC_FFLUSH): Use it.
5304         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5305         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5306         gl_REPLACE_FSEEKO here.
5307
5308 2011-05-05  Bruno Haible  <bruno@clisp.org>
5309
5310         tzset: Relicense under LGPL.
5311         * modules/tzset (License): Change to LGPL.
5312         No agreement needed; it's a no-op.
5313
5314         strtoimax, strtoumax: Relicense under LGPL.
5315         * modules/strtoimax (License): Change to LGPL.
5316         * modules/strtoumax (License): Likewise.
5317         With permission from Jim Meyering, Paul Eggert:
5318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5320
5321         getgroups: Relicense under LGPL.
5322         * modules/getgroups (License): Change to LGPL.
5323         With permission from Jim Meyering, Paul Eggert, Eric Blake:
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
5328         nanosleep: Relicense under LGPL.
5329         * modules/nanosleep (License): Change to LGPL.
5330         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5331         Haible:
5332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5336
5337         futimens: Relicense under LGPL.
5338         * modules/futimens (License): Change to LGPL.
5339         With permission from Eric Blake:
5340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5341
5342         fflush: Relicense under LGPL.
5343         * modules/fflush (License): Change to LGPL.
5344         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5348
5349         tmpfile: Relicense under LGPL.
5350         * modules/tmpfile (License): Change to LGPL.
5351         With permission from Ben Pfaff:
5352         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5353
5354         isfinite: Relicense under LGPL.
5355         * modules/isfinite (License): Change to LGPL.
5356         With permission from Ben Pfaff, Bruno Haible:
5357         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5359
5360         acosl..tanl: Relicense under LGPL.
5361         * modules/acosl (License): Change to LGPL.
5362         * modules/asinl (License): Likewise.
5363         * modules/atanl (License): Likewise.
5364         * modules/cosl (License): Likewise.
5365         * modules/expl (License): Likewise.
5366         * modules/logl (License): Likewise.
5367         * modules/sinl (License): Likewise.
5368         * modules/sqrtl (License): Likewise.
5369         * modules/tanl (License): Likewise.
5370         Source code originally from glibc and Paolo Bonzini. Agreements:
5371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5373
5374 2011-05-05  Bruno Haible  <bruno@clisp.org>
5375
5376         signal: Define sighandler_t.
5377         * lib/signal.in.h (sighandler_t): New type.
5378         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5379         whether sighandler_t is defined.
5380         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5381         * modules/signal (Depends-on): Add extensions.
5382         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5383         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5384         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5385
5386 2011-05-05  Eric Blake  <eblake@redhat.com>
5387
5388         maint: remove useless REPLACE_*_H macros
5389         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5390         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5391         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5392         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5393         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5394         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5395         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5396         * m4/btowc.m4: Update callers.
5397         * m4/dirfd.m4: Likewise.
5398         * m4/duplocale.m4: Likewise.
5399         * m4/fchdir.m4: Likewise.
5400         * m4/fdopendir.m4: Likewise.
5401         * m4/inet_ntop.m4: Likewise.
5402         * m4/inet_pton.m4: Likewise.
5403         * m4/ioctl.m4: Likewise.
5404         * m4/mbrlen.m4: Likewise.
5405         * m4/mbrtowc.m4: Likewise.
5406         * m4/mbsinit.m4: Likewise.
5407         * m4/mbsnrtowcs.m4: Likewise.
5408         * m4/mbsrtowcs.m4: Likewise.
5409         * m4/poll.m4: Likewise.
5410         * m4/setlocale.m4: Likewise.
5411         * m4/wcrtomb.m4: Likewise.
5412         * m4/wcsnrtombs.m4: Likewise.
5413         * m4/wcsrtombs.m4: Likewise.
5414         * m4/wctob.m4: Likewise.
5415         * m4/wcwidth.m4: Likewise.
5416         * modules/posix_spawn: Likewise.
5417         * modules/posix_spawn_file_actions_addclose: Likewise.
5418         * modules/posix_spawn_file_actions_adddup2: Likewise.
5419         * modules/posix_spawn_file_actions_addopen: Likewise.
5420         * modules/posix_spawn_file_actions_destroy: Likewise.
5421         * modules/posix_spawn_file_actions_init: Likewise.
5422         * modules/posix_spawnattr_destroy: Likewise.
5423         * modules/posix_spawnattr_getflags: Likewise.
5424         * modules/posix_spawnattr_getpgroup: Likewise.
5425         * modules/posix_spawnattr_getschedparam: Likewise.
5426         * modules/posix_spawnattr_getschedpolicy: Likewise.
5427         * modules/posix_spawnattr_getsigdefault: Likewise.
5428         * modules/posix_spawnattr_getsigmask: Likewise.
5429         * modules/posix_spawnattr_init: Likewise.
5430         * modules/posix_spawnattr_setflags: Likewise.
5431         * modules/posix_spawnattr_setpgroup: Likewise.
5432         * modules/posix_spawnattr_setschedparam: Likewise.
5433         * modules/posix_spawnattr_setschedpolicy: Likewise.
5434         * modules/posix_spawnattr_setsigdefault: Likewise.
5435         * modules/posix_spawnattr_setsigmask: Likewise.
5436         * modules/posix_spawnp: Likewise.
5437
5438 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5439
5440         Add option to do-release-commit-and-tag to specify branch.
5441         * build-aux/do-release-commit-and-tag: Add --branch.
5442
5443 2011-05-03  Bruno Haible  <bruno@clisp.org>
5444
5445         Avoid unnecessary compilation units, through conditional dependencies.
5446         * modules/accept (Depends-on): Add conditions to the dependencies.
5447         * modules/acosl (Depends-on): Likewise.
5448         * modules/argz (Depends-on): Likewise.
5449         * modules/asinl (Depends-on): Likewise.
5450         * modules/atanl (Depends-on): Likewise.
5451         * modules/atoll (Depends-on): Likewise.
5452         * modules/bind (Depends-on): Likewise.
5453         * modules/btowc (Depends-on): Likewise.
5454         * modules/canonicalize-lgpl (Depends-on): Likewise.
5455         * modules/ceil (Depends-on): Likewise.
5456         * modules/ceilf (Depends-on): Likewise.
5457         * modules/ceill (Depends-on): Likewise.
5458         * modules/chdir-long (Depends-on): Likewise.
5459         * modules/chown (Depends-on): Likewise.
5460         * modules/close (Depends-on): Likewise.
5461         * modules/connect (Depends-on): Likewise.
5462         * modules/cosl (Depends-on): Likewise.
5463         * modules/dirfd (Depends-on): Likewise.
5464         * modules/dprintf (Depends-on): Likewise.
5465         * modules/dprintf-posix (Depends-on): Likewise.
5466         * modules/error (Depends-on): Likewise.
5467         * modules/euidaccess (Depends-on): Likewise.
5468         * modules/expl (Depends-on): Likewise.
5469         * modules/faccessat (Depends-on): Likewise.
5470         * modules/fchdir (Depends-on): Likewise.
5471         * modules/fclose (Depends-on): Likewise.
5472         * modules/fcntl (Depends-on): Likewise.
5473         * modules/fdopendir (Depends-on): Likewise.
5474         * modules/fflush (Depends-on): Likewise.
5475         * modules/floor (Depends-on): Likewise.
5476         * modules/floorf (Depends-on): Likewise.
5477         * modules/floorl (Depends-on): Likewise.
5478         * modules/fnmatch (Depends-on): Likewise.
5479         * modules/fopen (Depends-on): Likewise.
5480         * modules/fprintf-posix (Depends-on): Likewise.
5481         * modules/frexp (Depends-on): Likewise.
5482         * modules/frexp-nolibm (Depends-on): Likewise.
5483         * modules/frexpl (Depends-on): Likewise.
5484         * modules/frexpl-nolibm (Depends-on): Likewise.
5485         * modules/fseek (Depends-on): Likewise.
5486         * modules/fsusage (Depends-on): Likewise.
5487         * modules/ftell (Depends-on): Likewise.
5488         * modules/ftello (Depends-on): Likewise.
5489         * modules/futimens (Depends-on): Likewise.
5490         * modules/getcwd (Depends-on): Likewise.
5491         * modules/getcwd-lgpl (Depends-on): Likewise.
5492         * modules/getdelim (Depends-on): Likewise.
5493         * modules/getdomainname (Depends-on): Likewise.
5494         * modules/getgroups (Depends-on): Likewise.
5495         * modules/gethostname (Depends-on): Likewise.
5496         * modules/getline (Depends-on): Likewise.
5497         * modules/getlogin_r (Depends-on): Likewise.
5498         * modules/getopt-posix (Depends-on): Likewise.
5499         * modules/getpeername (Depends-on): Likewise.
5500         * modules/getsockname (Depends-on): Likewise.
5501         * modules/getsockopt (Depends-on): Likewise.
5502         * modules/getsubopt (Depends-on): Likewise.
5503         * modules/getusershell (Depends-on): Likewise.
5504         * modules/glob (Depends-on): Likewise.
5505         * modules/grantpt (Depends-on): Likewise.
5506         * modules/iconv_open (Depends-on): Likewise.
5507         * modules/iconv_open-utf (Depends-on): Likewise.
5508         * modules/inet_ntop (Depends-on): Likewise.
5509         * modules/inet_pton (Depends-on): Likewise.
5510         * modules/ioctl (Depends-on): Likewise.
5511         * modules/isapipe (Depends-on): Likewise.
5512         * modules/isfinite (Depends-on): Likewise.
5513         * modules/isinf (Depends-on): Likewise.
5514         * modules/lchown (Depends-on): Likewise.
5515         * modules/ldexpl (Depends-on): Likewise.
5516         * modules/link (Depends-on): Likewise.
5517         * modules/linkat (Depends-on): Likewise.
5518         * modules/listen (Depends-on): Likewise.
5519         * modules/logl (Depends-on): Likewise.
5520         * modules/lstat (Depends-on): Likewise.
5521         * modules/mbrlen (Depends-on): Likewise.
5522         * modules/mbrtowc (Depends-on): Likewise.
5523         * modules/mbsinit (Depends-on): Likewise.
5524         * modules/mbsnrtowcs (Depends-on): Likewise.
5525         * modules/mbsrtowcs (Depends-on): Likewise.
5526         * modules/mbtowc (Depends-on): Likewise.
5527         * modules/memcmp (Depends-on): Likewise.
5528         * modules/mkdir (Depends-on): Likewise.
5529         * modules/mkdtemp (Depends-on): Likewise.
5530         * modules/mkfifo (Depends-on): Likewise.
5531         * modules/mkfifoat (Depends-on): Likewise.
5532         * modules/mknod (Depends-on): Likewise.
5533         * modules/mkostemp (Depends-on): Likewise.
5534         * modules/mkostemps (Depends-on): Likewise.
5535         * modules/mkstemp (Depends-on): Likewise.
5536         * modules/mkstemps (Depends-on): Likewise.
5537         * modules/mktime (Depends-on): Likewise.
5538         * modules/nanosleep (Depends-on): Likewise.
5539         * modules/open (Depends-on): Likewise.
5540         * modules/openat (Depends-on): Likewise.
5541         * modules/perror (Depends-on): Likewise.
5542         * modules/poll (Depends-on): Likewise.
5543         * modules/popen (Depends-on): Likewise.
5544         * modules/posix_spawn (Depends-on): Likewise.
5545         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5546         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5547         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5548         * modules/posix_spawnp (Depends-on): Likewise.
5549         * modules/pread (Depends-on): Likewise.
5550         * modules/printf-posix (Depends-on): Likewise.
5551         * modules/ptsname (Depends-on): Likewise.
5552         * modules/putenv (Depends-on): Likewise.
5553         * modules/pwrite (Depends-on): Likewise.
5554         * modules/readline (Depends-on): Likewise.
5555         * modules/readlink (Depends-on): Likewise.
5556         * modules/readlinkat (Depends-on): Likewise.
5557         * modules/recv (Depends-on): Likewise.
5558         * modules/recvfrom (Depends-on): Likewise.
5559         * modules/regex (Depends-on): Likewise.
5560         * modules/remove (Depends-on): Likewise.
5561         * modules/rename (Depends-on): Likewise.
5562         * modules/renameat (Depends-on): Likewise.
5563         * modules/rmdir (Depends-on): Likewise.
5564         * modules/round (Depends-on): Likewise.
5565         * modules/roundf (Depends-on): Likewise.
5566         * modules/roundl (Depends-on): Likewise.
5567         * modules/rpmatch (Depends-on): Likewise.
5568         * modules/select (Depends-on): Likewise.
5569         * modules/send (Depends-on): Likewise.
5570         * modules/sendto (Depends-on): Likewise.
5571         * modules/setenv (Depends-on): Likewise.
5572         * modules/setlocale (Depends-on): Likewise.
5573         * modules/setsockopt (Depends-on): Likewise.
5574         * modules/shutdown (Depends-on): Likewise.
5575         * modules/sigaction (Depends-on): Likewise.
5576         * modules/signbit (Depends-on): Likewise.
5577         * modules/sigprocmask (Depends-on): Likewise.
5578         * modules/sinl (Depends-on): Likewise.
5579         * modules/sleep (Depends-on): Likewise.
5580         * modules/snprintf (Depends-on): Likewise.
5581         * modules/snprintf-posix (Depends-on): Likewise.
5582         * modules/socket (Depends-on): Likewise.
5583         * modules/sprintf-posix (Depends-on): Likewise.
5584         * modules/sqrtl (Depends-on): Likewise.
5585         * modules/stat (Depends-on): Likewise.
5586         * modules/strchrnul (Depends-on): Likewise.
5587         * modules/strdup-posix (Depends-on): Likewise.
5588         * modules/strerror (Depends-on): Likewise.
5589         * modules/strerror_r-posix (Depends-on): Likewise.
5590         * modules/strndup (Depends-on): Likewise.
5591         * modules/strnlen (Depends-on): Likewise.
5592         * modules/strptime (Depends-on): Likewise.
5593         * modules/strsep (Depends-on): Likewise.
5594         * modules/strsignal (Depends-on): Likewise.
5595         * modules/strstr-simple (Depends-on): Likewise.
5596         * modules/strtod (Depends-on): Likewise.
5597         * modules/strtoimax (Depends-on): Likewise.
5598         * modules/strtok_r (Depends-on): Likewise.
5599         * modules/strtoumax (Depends-on): Likewise.
5600         * modules/symlink (Depends-on): Likewise.
5601         * modules/symlinkat (Depends-on): Likewise.
5602         * modules/tanl (Depends-on): Likewise.
5603         * modules/tcgetsid (Depends-on): Likewise.
5604         * modules/tmpfile (Depends-on): Likewise.
5605         * modules/trunc (Depends-on): Likewise.
5606         * modules/truncf (Depends-on): Likewise.
5607         * modules/truncl (Depends-on): Likewise.
5608         * modules/uname (Depends-on): Likewise.
5609         * modules/unlink (Depends-on): Likewise.
5610         * modules/unlockpt (Depends-on): Likewise.
5611         * modules/unsetenv (Depends-on): Likewise.
5612         * modules/usleep (Depends-on): Likewise.
5613         * modules/utimensat (Depends-on): Likewise.
5614         * modules/vasprintf (Depends-on): Likewise.
5615         * modules/vdprintf (Depends-on): Likewise.
5616         * modules/vdprintf-posix (Depends-on): Likewise.
5617         * modules/vfprintf-posix (Depends-on): Likewise.
5618         * modules/vprintf-posix (Depends-on): Likewise.
5619         * modules/vsnprintf (Depends-on): Likewise.
5620         * modules/vsnprintf-posix (Depends-on): Likewise.
5621         * modules/vsprintf-posix (Depends-on): Likewise.
5622         * modules/wcrtomb (Depends-on): Likewise.
5623         * modules/wcscasecmp (Depends-on): Likewise.
5624         * modules/wcscspn (Depends-on): Likewise.
5625         * modules/wcsdup (Depends-on): Likewise.
5626         * modules/wcsncasecmp (Depends-on): Likewise.
5627         * modules/wcsnrtombs (Depends-on): Likewise.
5628         * modules/wcspbrk (Depends-on): Likewise.
5629         * modules/wcsrtombs (Depends-on): Likewise.
5630         * modules/wcsspn (Depends-on): Likewise.
5631         * modules/wcsstr (Depends-on): Likewise.
5632         * modules/wcstok (Depends-on): Likewise.
5633         * modules/wcswidth (Depends-on): Likewise.
5634         * modules/wctob (Depends-on): Likewise.
5635         * modules/wctomb (Depends-on): Likewise.
5636         * modules/wctype (Depends-on): Likewise.
5637         * modules/wcwidth (Depends-on): Likewise.
5638         * modules/write (Depends-on): Likewise.
5639
5640 2011-05-03  Bruno Haible  <bruno@clisp.org>
5641
5642         Support for conditional dependencies.
5643         * doc/gnulib.texi (Module description): Document the syntax of
5644         conditional dependencies.
5645         * gnulib-tool: New option --conditional-dependencies.
5646         (func_usage): Document it.
5647         (cond_dependencies): New variable.
5648         (func_get_automake_snippet_conditional,
5649         func_get_automake_snippet_unconditional): New functions, extracted from
5650         func_get_automake_snippet.
5651         (func_get_automake_snippet): Use them.
5652         (sed_first_32_chars): New variable.
5653         (func_module_shellfunc_name): New function.
5654         (func_module_shellvar_name): New function.
5655         (func_module_conditional_name): New function.
5656         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5657         func_cond_module_condition): New functions.
5658         (func_modules_transitive_closure): Add support for conditional
5659         dependencies.
5660         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5661         conditional automake snippet in an automake conditional.
5662         (func_emit_autoconf_snippets): Emit shell functions that contain the
5663         code for conditional modules.
5664         (func_import, func_create_testdir): Update specification.
5665
5666 2011-05-03  Eric Blake  <eblake@redhat.com>
5667
5668         test-getaddrinfo: report error information
5669         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5670
5671 2011-05-03  Jim Meyering  <meyering@redhat.com>
5672
5673         bootstrap: avoid build failure when $GZIP is set
5674         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5675         program name.  If defined at all, it is supposed to list gzip options.
5676         Reported by Alan Curry in http://debbugs.gnu.org/8609
5677
5678 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5679
5680         readme-release: new module with release instructions
5681         * modules/readme-release: New module.
5682         * top/README-release: New file, from coreutils, grep, diffutils.
5683         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5684
5685 2011-05-02  Eric Blake  <eblake@redhat.com>
5686
5687         fflush: also replace fclose when fixing fflush
5688         * modules/fflush (Depends-on): Add fclose.
5689         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5690         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5691         memstreams with no backing fd.
5692         * doc/posix-functions/fclose.texi (fclose): Document the use of
5693         fflush module to fix the bug.
5694         * tests/test-fclose.c (main): Relax test when fclose is used in
5695         isolation.
5696
5697         fclose: add some tests
5698         * modules/fclose-tests: New test module.
5699         * tests/test-fclose.c: New file.
5700         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5701
5702         fclose: reduced dependencies
5703         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5704         simpler lseek.
5705         * lib/fclose.c (rpl_fclose): Likewise.
5706         Reported by Simon Josefsson.
5707
5708         exit: drop remaining clients
5709         * modules/argmatch (Depends-on): Replace exit with stdlib.
5710         * modules/copy-file (Depends-on): Likewise.
5711         * modules/execute (Depends-on): Likewise.
5712         * modules/exitfail (Depends-on): Likewise.
5713         * modules/obstack (Depends-on): Likewise.
5714         * modules/pagealign_alloc (Depends-on): Likewise.
5715         * modules/pipe-filter-gi (Depends-on): Likewise.
5716         * modules/pipe-filter-ii (Depends-on): Likewise.
5717         * modules/savewd (Depends-on): Likewise.
5718         * modules/spawn-pipe (Depends-on): Likewise.
5719         * modules/wait-process (Depends-on): Likewise.
5720         * modules/xsetenv (Depends-on): Likewise.
5721         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5722         * modules/git-merge-changelog (Depends-on): Likewise.
5723         * modules/long-options (Depends-on): Likewise.
5724         * modules/pt_chown (Depends-on): Likewise.
5725         * modules/sysexits (Depends-on): Likewise.
5726
5727         freading: relax license from LGPLv3+ to LGPLv2+
5728         * modules/freading (License): Relax LGPL version.
5729
5730 2011-05-02  Bruno Haible  <bruno@clisp.org>
5731
5732         fchdir: Remove unused dependencies.
5733         * modules/fchdir (Depends-on): Remove include_next.
5734
5735 2011-05-02  Bruno Haible  <bruno@clisp.org>
5736
5737         gnulib-tool: Refactor.
5738         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5739         from func_emit_autoconf_snippets.
5740         (func_emit_autoconf_snippets): Use it.
5741
5742 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5743
5744         * NEWS: Document removal of 'exit'.
5745         * modules/exit: Remove file.
5746
5747 2011-05-01  Bruno Haible  <bruno@clisp.org>
5748
5749         Update DEPENDENCIES.
5750         * DEPENDENCIES (gettext): Recommend the newest release.
5751         Reported by Simon Josefsson.
5752
5753 2011-05-01  Bruno Haible  <bruno@clisp.org>
5754
5755         gnulib-tool: Reduce code duplication.
5756         * gnulib-tool (func_emit_autoconf_snippets): New function.
5757         (func_import, func_create_testdir): Use it.
5758
5759 2011-04-30  Eric Blake  <eblake@redhat.com>
5760
5761         fclose: don't fail on non-seekable input stream
5762         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5763         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5764         since fflush is allowed to fail in that case.
5765
5766 2011-04-30  Bruno Haible  <bruno@clisp.org>
5767
5768         dup3: cleanup
5769         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5770
5771 2011-04-30  Bruno Haible  <bruno@clisp.org>
5772
5773         netdb: Make it work in C++ mode.
5774         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5775         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5776         module.
5777         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5778         gl_MODULE_INDICATOR_FOR_TESTS.
5779         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5780         * modules/netdb-c++-tests: New file.
5781         * tests/test-netdb-c++.cc: New file.
5782
5783 2011-04-30  Bruno Haible  <bruno@clisp.org>
5784
5785         New modules 'vfscanf', 'vscanf'.
5786         * modules/vfscanf: New file.
5787         * modules/vscanf: New file.
5788         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5789         here.
5790         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5791         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5792
5793 2011-04-30  Bruno Haible  <bruno@clisp.org>
5794
5795         passfd: Add comments.
5796         * lib/passfd.c: Add comments about platforms.
5797
5798 2011-04-30  Bruno Haible  <bruno@clisp.org>
5799
5800         sys_uio: Make <sys/uio.h> self-contained.
5801         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5802         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5803
5804 2011-04-30  Bruno Haible  <bruno@clisp.org>
5805
5806         sys_socket: Ensure 'struct iovec' definition.
5807         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5808         <sys/socket.h>.
5809         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5810
5811 2011-04-30  Bruno Haible  <bruno@clisp.org>
5812
5813         sys_uio: Protect definition of 'struct iovec'.
5814         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5815         it as a C struct.
5816
5817 2011-04-30  Bruno Haible  <bruno@clisp.org>
5818
5819         manywarnings: fix indentation
5820         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5821
5822 2011-04-30  Pádraig Brady <P@draigBrady.com>
5823
5824         manywarnings: add -Wno-missing-field-initializers if needed.
5825         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5826         option if it's needed to allow initialization with { 0, }
5827
5828 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5829
5830         announce-gen: cosmetic improvement
5831         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5832
5833 2011-04-29  Jim Meyering  <meyering@redhat.com>
5834
5835         vc-list-files: indent with spaces, not TABs
5836         * build-aux/vc-list-files: Convert leading TABs to spaces,
5837         to match the style of most other files in gnulib.
5838
5839         announce-gen: indent with spaces, not TABs
5840         * build-aux/announce-gen: Convert all TABs to spaces, to match
5841         the style of most other files in gnulib.
5842
5843 2011-04-29  Eric Blake  <eblake@redhat.com>
5844
5845         quotearg: avoid uninitialized variable use
5846         * lib/quotearg.c (quoting_options_from_style): Initialize
5847         remaining fields, and ensure that custom styles are only used via
5848         quoting_options rather than quoting_style.
5849
5850 2011-04-29  Jim Meyering  <meyering@redhat.com>
5851
5852         maint.mk: remove unused VC-tag variable
5853         * top/maint.mk (VC-tag): Remove unused variable.
5854
5855 2011-04-29  Bruno Haible  <bruno@clisp.org>
5856
5857         netdb: fix gai_strerror replacements
5858         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5859         * modules/netdb: Substitute it.
5860
5861 2011-04-29  Jim Meyering  <meyering@redhat.com>
5862
5863         test-getcwd.c: avoid new set-but-not-used warning
5864         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5865         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5866         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5867         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5868
5869         test-hash.c: avoid a new shadowing warning
5870         * tests/test-hash.c (main): Don't shadow "dup".
5871
5872 2011-04-28  Eric Blake  <eblake@redhat.com>
5873
5874         getaddrinfo: fix gai_strerror signature
5875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5876         and work around mingw with UNICODE defined.
5877         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5878         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5879         * modules/netdb (Makefile.am): Substitute it.
5880         * lib/netdb.in.h (gai_strerror): Declare replacement.
5881         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5882         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5883         the fix.
5884
5885         getsockopt: avoid compiler warning
5886         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5887         Reported by Matthias Bolte.
5888
5889         tests: drop unused link dependency
5890         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5891         * modules/dirent-safer-tests (Makefile.am): Likewise.
5892         * modules/fdopendir-tests (Makefile.am): Likewise.
5893         * modules/mkfifoat-tests (Makefile.am): Likewise.
5894         * modules/openat-safer-tests (Makefile.am): Likewise.
5895         * modules/openat-tests (Makefile.am): Likewise.
5896         * modules/readlinkat-tests (Makefile.am): Likewise.
5897         * modules/symlinkat-tests (Makefile.am): Likewise.
5898         * modules/linkat-tests (Makefile.am): Likewise.
5899         (Depends-on): Switch to filenamecat-lgpl.
5900         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5901         LIBINTL.
5902         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5903         * tests/test-linkat.c (main): Don't require xalloc.
5904
5905         hash, mgetgroups: drop xalloc dependency
5906         * lib/hash.c (includes): Adjust includes.
5907         * lib/mgetgroups.c (includes): Likewise.
5908         (xgetgroups): Move...
5909         * lib/xgetgroups.c: ...to new file.
5910         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5911         * modules/xgetgroups: New file, split from...
5912         * modules/mgetgroups: ...here.
5913         (Depends-on): Add xalloc-oversized.
5914         * modules/hash (Depends-on): Likewise.
5915         * modules/hash-tests (Depends-on): Drop xalloc.
5916         (test_hash_LDADD): Drop unused library.
5917         * tests/test-hash.c (main): Break xalloc dependency.
5918         (includes): Drop unused include.
5919
5920         xalloc-oversized: new module
5921         * modules/xalloc-oversized: New module.
5922         * modules/xalloc (Depends-on): Add it.
5923         * lib/xalloc.h (xalloc_oversized): Move...
5924         * lib/xalloc-oversized.h: ...into new file.
5925
5926         utimecmp: drop dependency on xmalloc
5927         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5928         due to memory pressure.
5929         * modules/utimecmp (Depends-on): Drop xalloc.
5930
5931 2011-04-27  Eric Blake  <eblake@redhat.com>
5932
5933         getcwd: fix mingw bugs
5934         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5935         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5936         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5937
5938 2011-04-27  Bruno Haible  <bruno@clisp.org>
5939
5940         mkstemps: Ensure declaration on MacOS X 10.5.
5941         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5942         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5943         MacOS X.
5944
5945 2011-04-27  Bruno Haible  <bruno@clisp.org>
5946
5947         mkstemp: More documentation.
5948         * doc/posix-functions/mkstemp.texi: Document header file problem on
5949         MacOS X.
5950
5951 2011-04-27  Bruno Haible  <bruno@clisp.org>
5952
5953         mkstemp: Tweak configure message when cross-compiling.
5954         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5955         result as a guess.
5956
5957 2011-04-27  Bruno Haible  <bruno@clisp.org>
5958
5959         clean-temp: Clarify what it does.
5960         * lib/clean-temp.h: Add more comments.
5961         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5962         module.
5963         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5964         * doc/glibc-functions/mkstemps.texi: Likewise.
5965         * doc/glibc-functions/mkostemps.texi: Likewise.
5966
5967 2011-04-27  Eric Blake  <eblake@redhat.com>
5968
5969         fchdir: avoid extra chdir and fix test
5970         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5971         getcwd-lgpl.
5972         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5973         have to be canonical.
5974         (canonicalize_file_name): Drop unused macro.
5975         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5976
5977         filenamecat-lgpl: fix licence
5978         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5979         when it was first created.
5980
5981         linkat, renameat: add missing dependency
5982         * modules/linkat (Depends-on): Require getcwd-lgpl.
5983         * modules/renameat (Depends-on): Likewise.
5984
5985         tests: reduce dependencies
5986         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5987         * tests/test-renameat.c (main): Likewise.
5988         * modules/linkat-tests (Depends-on): Relax dependency.
5989         * modules/renameat-tests (Depends-on): Likewise.
5990         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5991         dependency explicit.
5992
5993         save-cwd: reduce default dependency
5994         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5995         * lib/save-cwd.c: Update comments.
5996         * NEWS: Document the semantic change.
5997
5998         getcwd: enhance tests
5999         * tests/test-getcwd-lgpl.c: New file, taken from...
6000         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6001         repeat long path stress tests from m4 probe.
6002         * modules/getcwd-lgpl-tests: New module.
6003         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6004         * m4/getcwd-abort-bug.m4: Update comment.
6005         * m4/getcwd-path-max.m4: Likewise.
6006
6007         getcwd-lgpl: new module
6008         * modules/getcwd-lgpl: New module.
6009         * lib/getcwd-lgpl.c: New file.
6010         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6011         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6012         * modules/getcwd (configure.ac): Set C witness.
6013         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6014
6015         getcwd: tweak comments
6016         * m4/getcwd-abort-bug.m4: Fix comments.
6017         * m4/getcwd-path-max.m4: Likewise.
6018         * m4/getcwd.m4: Likewise.
6019
6020 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6021         and Eric Blake  <eblake@redhat.com>
6022
6023         mkstemp: replace if system version uses wrong permissions
6024         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6025         read/write mode bits set in file created by mkstemp.
6026         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6027
6028 2011-04-27  Eric Blake  <eblake@redhat.com>
6029
6030         passfd: avoid compiler warning
6031         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6032         Reported by Laine Stump.
6033
6034 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6035
6036         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6037         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6038
6039 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6040         and Eric Blake  <eblake@redhat.com>
6041
6042         mkstemp: mention clean-temp module
6043         * lib/mkstemp.c: Add comment.
6044         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6045
6046 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6047
6048         inttypes: also provide default values for 32-bit tests
6049         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6050         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6051
6052 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6053
6054         strtoumax: remove dependency on strtoimax
6055         This is like the strtoull change of yesterday.
6056         * modules/strtoumax (Files): Add lib/strtoimax.c.
6057         (Depends-on): Remove strtoimax and add verify.
6058
6059         inttypes-incomplete: new module
6060         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6061         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6062         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6063         of gl_INTTYPES_H.
6064         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6065         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6066         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6067         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6068         * modules/strtoumax, modules/xstrtol (Depends-on):
6069         Depend on inttypes-incomplete, not inttypes.
6070         * modules/inttypes-incomplete: New module, containing the contents
6071         of the old modules/inttypes module, except that the Files: section
6072         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6073         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6074         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6075         (Depends-on): Depend only on inttypes-incomplete.
6076         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6077
6078         inttypes: omit now-redundant strtoimax and strtoumax work
6079         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6080         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6081
6082         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6083         This supports apps that need pointers to strtoimax and strtoumax,
6084         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6085         nonexistent functions.  See
6086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6087         et seq.
6088         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6089         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6090         a macro.
6091         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6092
6093 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6094
6095         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6096
6097 2011-04-25  Bruno Haible  <bruno@clisp.org>
6098
6099         strtol, strtoul: Mark modules as obsolete.
6100         * modules/strtol (Status, Notice): New sections.
6101         * modules/strtoul (Status, Notice): New sections.
6102
6103 2011-04-25  Bruno Haible  <bruno@clisp.org>
6104
6105         strtod: Remove check for strtod, unless supporting old platforms.
6106         * modules/strtod-obsolete: New file.
6107         * m4/strtod-obsolete.m4: New file.
6108         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6109         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6110         * modules/strtod (Depends-on): Add strtod-obsolete.
6111         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6112
6113 2011-04-25  Bruno Haible  <bruno@clisp.org>
6114
6115         strcase: Make module obsolete.
6116         * modules/strcase (Status, Notice): New sections.
6117
6118 2011-04-25  Bruno Haible  <bruno@clisp.org>
6119
6120         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6121         * modules/dup2-obsolete: New file.
6122         * m4/dup2-obsolete.m4: New file.
6123         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6124         gl_FUNC_DUP2_OBSOLETE is not also defined.
6125         * modules/dup2 (Depends-on): Add dup2-obsolete.
6126         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6127
6128 2011-04-25  Bruno Haible  <bruno@clisp.org>
6129
6130         strnlen: Avoid memchr related link error on old obsolete platforms.
6131         * modules/memchr-obsolete: New file.
6132         * m4/memchr-obsolete.m4: New file.
6133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6134         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6135         * modules/memchr (Depends-on): Add memchr-obsolete.
6136         * modules/strnlen (Depends-on): Likewise.
6137         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6138
6139 2011-04-25  Jim Meyering  <meyering@redhat.com>
6140
6141         maint.mk: makefile_at_at_check extend and clean up
6142         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6143         in addition to */Makefile.am.
6144         Exempt legitimate uses of @VAR@ notation, e.g.,
6145         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6146         Remove obsolete coreutils-specific comment.
6147         Prompted by discussion here:
6148         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6149
6150 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6151
6152         strtoul: remove dependency on strtol
6153         This is so that 'configure' need not check for strtol merely because
6154         the application needs strtoul.
6155         * modules/strtoul (Files): Add lib/strtol.c.
6156         (Depends-on): Remove strtol.
6157
6158         strtoull: remove dependency on strtoul
6159         This is like the strtoll change.
6160         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6161         (Depends-on): Remove strtoul.
6162
6163         strtoll: remove dependency on strtol
6164         This is so that 'configure' need not check for strtol merely because
6165         the application needs strtoll.
6166         * modules/strtoll (Files): Add lib/strtol.c.
6167         (Depends-on): Remove strtol.
6168
6169 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6170
6171         inttypes: Move some configure check to module 'imaxdiv'.
6172         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6173         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6174         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6175
6176 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6177
6178         inttypes: Move some configure check to module 'imaxabs'.
6179         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6180         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6181         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6182
6183 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6184
6185         inttypes: Remove configure tests that are not needed since 2009-12-31.
6186         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6187         gl_cv_header_working_inttypes_h.
6188
6189 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6190
6191         * modules/strnlen (Depends-on): Remove memchr.
6192         The strnlen implementation doesn't need the memchr module's fixes; see
6193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6194
6195         strtol: remove dependency on wchar
6196         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6197         * modules/strtol (Depends-on): Remove wchar.
6198
6199 2011-04-21  Eric Blake  <eblake@redhat.com>
6200
6201         passfd: fix test regression on Linux
6202         * modules/passfd-tests (configure.ac): Correct socketpair check.
6203
6204         passfd: speed up configure and drop unused code
6205         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6206         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6207         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6208         Instead of probing at configure for unix_scm_rights_bsd44_way,
6209         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6210         check to a struct member probe.
6211         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6212         (sendfd, recvfd): Update preprocessor checks.
6213         * modules/passfd (Files): Reflect rename, and drop unused file.
6214         (Depends-on): Drop unused dependency.
6215
6216         passfd: allow compilation on mingw
6217         * modules/sys_socket (Depends-on): Add sys_uio.
6218         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6219         iovec and a minimal struct msghdr.
6220         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6221         * tests/test-sys_socket.c (main): Enhance test.
6222         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6223         guaranteed to provide what we need.
6224         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6225         * modules/passfd-tests (Depends-on): Add sys_wait.
6226         * tests/test-passfd.c (main): Skip test on mingw, for now.
6227         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6228         partial 'struct msghdr' implementation.
6229
6230         sys_uio: new module
6231         * modules/sys_uio: New module.
6232         * modules/sys_uio-tests: Likewise.
6233         * lib/sys_uio.in.h: New file.
6234         * m4/sys_uio_h.m4: Likewise.
6235         * tests/test-sys_uio.c: Likewise.
6236         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6237         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6238
6239 2011-04-20  Jim Meyering  <meyering@redhat.com>
6240
6241         useless-if-before-free: avoid false-positive
6242         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6243         disjunct so that it too requires a terminating ";".  Without that,
6244         this script would identify as useless one statement from gcc that
6245         was not:
6246           if (aligned_ptr)
6247             free (((void **) aligned_ptr) [-1]);
6248
6249 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6250
6251         doc: update users.txt.
6252         * users.txt: Add barcode.
6253
6254 2011-04-19  Bruno Haible  <bruno@clisp.org>
6255
6256         ioctl: Remove link dependency on native Windows.
6257         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6258         (gl_close_fn, gl_ioctl_fn): New types.
6259         (struct fd_hook): Renamed from struct close_hook. Change type of
6260         private_close_fn field. Add private_ioctl_fn field.
6261         (close_hook_fn): Add parameter for primary close method.
6262         (execute_close_hooks, execute_all_close_hooks): Likewise.
6263         (ioctl_hook_fn): New type.
6264         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6265         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6266         argument.
6267         (unregister_fd_hook): Renamed from unregister_close_hook.
6268         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6269         Don't include <unistd.h>.
6270         (close): Remove undef.
6271         (anchor): Update.
6272         (execute_close_hooks): Add argument for primary close method.
6273         (execute_all_close_hooks): Likewise.
6274         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6275         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6276         argument. Allow each argument to be NULL.
6277         (unregister_fd_hook): Renamed from unregister_close_hook.
6278         * lib/close.c (rpl_close): Pass 'close' function pointer to
6279         execute_all_close_hooks.
6280         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6281         (primary_ioctl): New function.
6282         (ioctl): Don't call ioctlsocket here. Instead, call
6283         execute_all_ioctl_hooks.
6284         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6285         close method.
6286         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6287         (fd_sockets_hook): Renamed from close_sockets_hook.
6288         (gl_sockets_startup, gl_sockets_cleanup): Update.
6289         * modules/fd-hook: Renamed from modules/close-hook. Update.
6290         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6291         * modules/sockets (Depends-on): Likewise.
6292         * modules/ioctl (Depends-on): Add fd-hook.
6293         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6294         GNULIB_SOCKET.
6295
6296 2011-04-19  Bruno Haible  <bruno@clisp.org>
6297
6298         Move the support of O_NONBLOCK in open() to the 'open' module.
6299         * modules/nonblocking (Depends-on): Remove 'open'.
6300         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6301         gl_cv_have_open_O_NONBLOCK.
6302         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6303         O_NONBLOCK support.
6304         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6305
6306 2011-04-17  Bruno Haible  <bruno@clisp.org>
6307
6308         pipe2: Simplify code.
6309         * lib/pipe2.c (pipe2): Reduce code duplication.
6310
6311 2011-04-17  Bruno Haible  <bruno@clisp.org>
6312
6313         nonblocking: Add comment.
6314         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6315
6316 2011-04-17  Bruno Haible  <bruno@clisp.org>
6317
6318         nonblocking: Add tests for sockets.
6319         * tests/test-nonblocking-socket.sh: New file.
6320         * tests/test-nonblocking-socket-main.c: New file.
6321         * tests/test-nonblocking-socket-child.c: New file.
6322         * tests/test-nonblocking-socket.h: New file.
6323         * tests/socket-server.h: New file.
6324         * tests/socket-client.h: New file.
6325         * modules/nonblocking-socket-tests: New file.
6326         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6327
6328 2011-04-17  Bruno Haible  <bruno@clisp.org>
6329
6330         nonblocking: Add tests for pipes.
6331         * tests/test-nonblocking-pipe.sh: New file.
6332         * tests/test-nonblocking-pipe-main.c: New file.
6333         * tests/test-nonblocking-pipe-child.c: New file.
6334         * tests/test-nonblocking-pipe.h: New file.
6335         * tests/test-nonblocking-writer.h: New file.
6336         * tests/test-nonblocking-reader.h: New file.
6337         * tests/test-nonblocking-misc.h: New file.
6338         * modules/nonblocking-pipe-tests: New file.
6339         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6340
6341 2011-04-16  Bruno Haible  <bruno@clisp.org>
6342
6343         gettext: Clarify the needed programmer actions.
6344         * modules/gettext (Notice): New field.
6345         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6346
6347 2011-04-16  Bruno Haible  <bruno@clisp.org>
6348
6349         strchrnul: Tweak last commit.
6350         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6351         bug.
6352         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6353         as in _GL_FUNCDECL_SYS.
6354         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6355         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6356
6357 2011-04-15  Eric Blake  <eblake@redhat.com>
6358
6359         strchrnul: work around cygwin bug
6360         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6361         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6363         * modules/string (Makefile.am): Substitute it.
6364         * lib/string.in.h (strchrnul): Use it.
6365
6366 2011-04-15  Bruno Haible  <bruno@clisp.org>
6367
6368         Don't require lib/stdio-write.c when only module 'stdio' is used.
6369         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6370         invocation.
6371         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6372
6373 2011-04-14  Bruno Haible  <bruno@clisp.org>
6374
6375         Support non-blocking pipe I/O in read() on native Windows.
6376         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6377         (read): New declaration.
6378         * lib/read.c: New file.
6379         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6380         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6381         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6382         vscanf): New declarations.
6383         * lib/stdio-read.c: New file.
6384         * m4/read.m4: New file.
6385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6386         REPLACE_READ.
6387         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6388         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6389         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6390         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6391         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6392         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6393         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6394         * modules/read: New file.
6395         * modules/nonblocking (Files): Add lib/stdio-read.c.
6396         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6397         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6398         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6399         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6400         * modules/pread (Depends-on): Add read.
6401         * modules/safe-read (Depends-on): Likewise.
6402         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6403         gets, scanf, vfscanf, vscanf): Verify signatures.
6404         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6405         problem with non-blocking pipes.
6406         * doc/posix-functions/fgetc.texi: Likewise.
6407         * doc/posix-functions/fgets.texi: Likewise.
6408         * doc/posix-functions/fread.texi: Likewise.
6409         * doc/posix-functions/fscanf.texi: Likewise.
6410         * doc/posix-functions/getc.texi: Likewise.
6411         * doc/posix-functions/getchar.texi: Likewise.
6412         * doc/posix-functions/gets.texi: Likewise.
6413         * doc/posix-functions/scanf.texi: Likewise.
6414         * doc/posix-functions/vfscanf.texi: Likewise.
6415         * doc/posix-functions/vscanf.texi: Likewise.
6416
6417 2011-04-14  Bruno Haible  <bruno@clisp.org>
6418
6419         Support non-blocking pipe I/O in write() on native Windows.
6420         * lib/write.c (rpl_write): Split a write request that failed merely
6421         because the byte count was larger than the pipe buffer's size.
6422         * doc/posix-functions/write.texi: Mention the problem with large byte
6423         counts.
6424
6425 2011-04-14  Bruno Haible  <bruno@clisp.org>
6426
6427         wchar: Ensure that wchar_t gets defined on uClibc.
6428         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6429         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6430
6431 2011-04-13  Bruno Haible  <bruno@clisp.org>
6432
6433         safe-write, full-read: Avoid unnecessary compilation units.
6434         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6435         (Depends-on): Remove safe-read. Add ssize_t.
6436         * modules/full-read (Files): Add lib/full-write.c.
6437         (Depends-on): Add full-write.
6438
6439 2011-04-13  Bruno Haible  <bruno@clisp.org>
6440
6441         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6442         * modules/pwrite (Depends-on): Add 'write'.
6443
6444 2011-04-13  Bruno Haible  <bruno@clisp.org>
6445
6446         Support non-blocking pipe I/O in write() on native Windows.
6447         * lib/unistd.in.h (write): Enable replacement also if
6448         GNULIB_UNISTD_H_NONBLOCKING is 1.
6449         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6450         (rpl_write): When failing to write on a non-blocking pipe, change
6451         errno from ENOSPC to EAGAIN.
6452         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6453         putchar, puts, vfprintf, vprintf): Enable replacement also if
6454         GNULIB_STDIO_H_NONBLOCKING is 1.
6455         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6456         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6457         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6458         CALL_WITH_SIGPIPE_EMULATION.
6459         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6460         * m4/nonblocking.m4: New file.
6461         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6462         for non-blocking I/O support.
6463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6464         GNULIB_UNISTD_H_NONBLOCKING.
6465         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6466         required for non-blocking I/O support.
6467         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6468         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6469         lib/stdio-write.c, m4/asm-underscore.m4.
6470         (Depends-on): Add stdio, unistd.
6471         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6472         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6473         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6474         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6475         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6476         problem with non-blocking pipes.
6477         * doc/posix-functions/fputc.texi: Likewise.
6478         * doc/posix-functions/fputs.texi: Likewise.
6479         * doc/posix-functions/fwrite.texi: Likewise.
6480         * doc/posix-functions/printf.texi: Likewise.
6481         * doc/posix-functions/putc.texi: Likewise.
6482         * doc/posix-functions/putchar.texi: Likewise.
6483         * doc/posix-functions/puts.texi: Likewise.
6484         * doc/posix-functions/vfprintf.texi: Likewise.
6485         * doc/posix-functions/vprintf.texi: Likewise.
6486         * doc/posix-functions/write.texi: Likewise.
6487
6488 2011-04-10  Jim Meyering  <meyering@redhat.com>
6489
6490         maint.mk: prohibit doubled words
6491         Detect them also when they're separated by a newline.
6492         There are 3 ways to customize it:
6493           - disable the test on a per file basis, as usual with rules using
6494             $(VC_LIST_EXCEPT)
6495           - replace the default doubled-word-selecting regexp (affects all files)
6496           - ignore a particular file-vs-doubled-word match
6497         I nearly used that last one to ignore the "is is" match in
6498         coreutils' NEWS file, since the text was "ls -is is ..."
6499         To do that, I would have added this line to cfg.mk:
6500           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6501         but it would have ignored any "is is" match in NEWS.
6502         Low probability, but still...
6503         Instead, I changed the text, slightly:
6504           -  ls -is is now consistent with ls -lis in ignoring values returned
6505           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6506         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6507         (prohibit_doubled_word_): Define.
6508         (sc_prohibit_doubled_word): New rule.
6509         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6510
6511 2011-04-10  Jim Meyering  <meyering@redhat.com>
6512
6513         maint: fix doubled-word typo in comment
6514         * m4/gethostname.m4: s/is is/it is/
6515         * m4/getdomainname.m4: Likewise.
6516
6517 2011-04-10  Jim Meyering  <meyering@redhat.com>
6518
6519         maint: remove doubled word: s/it it/it/
6520         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6521
6522 2011-04-10  Jim Meyering  <meyering@redhat.com>
6523
6524         maint.mk: remove useless semicolon and backslash
6525         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6526         semicolon and backslash.
6527
6528 2011-04-10  Bruno Haible  <bruno@clisp.org>
6529
6530         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6531         * modules/stdint-tests (Depends-on): Add wchar.
6532
6533 2011-04-10  Jim Meyering  <meyering@redhat.com>
6534
6535         maint: remove doubled words in comments, e.g., s/a a/a/
6536         * lib/strptime.c (day_of_the_week): s/the the/the/
6537         * tests/test-chown.h (test_chown): s/a a/a/
6538
6539         test-chown.h: correct a cast
6540         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6541         when the destination is a stat.st_gid.
6542
6543 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6544
6545         getaddrinfo: Fix test for sa_len member.
6546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6547         include <sys/types.h> before <sys/socket.h>.
6548
6549 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6550
6551         maint: change "can not" to "cannot"
6552         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6553         boundaries.
6554
6555 2011-04-09  Jim Meyering  <meyering@redhat.com>
6556
6557         maint: change "a a" to "a"
6558         * tests/test-lchown.h (test_lchown): s/a a/a/
6559
6560         maint.mk: prohibit \<the the\>
6561         * top/maint.mk (sc_prohibit_the_the): New rule.
6562
6563         maint: fix "the the" in comment
6564         * lib/count-one-bits.h: s/the the/the/
6565
6566         maint: change "can not" to "cannot"
6567         But do not change the occurrences in maintain.texi or in
6568         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6569         * doc/gnulib-tool.texi: s/can not/cannot/
6570         * doc/posix-functions/accept.texi (accept): Likewise.
6571         * doc/posix-functions/socket.texi (socket): Likewise.
6572         * lib/mbrtowc.c: Likewise.
6573
6574         maint.mk: prohibit use of "can not"
6575         * top/maint.mk (sc_prohibit_can_not): New rule.
6576         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6577
6578 2011-04-09  Bruno Haible  <bruno@clisp.org>
6579
6580         careadlinkat: Guard against misuse of careadlinkatcwd.
6581         * lib/careadlinkat.c: Include <stdlib.h>.
6582         (careadlinkatcwd): Check that the fd argument is as expected.
6583
6584 2011-04-09  Bruno Haible  <bruno@clisp.org>
6585
6586         careadlinkat: Use common coding style.
6587         * lib/careadlinkat.c: Move gnulib includes after system includes.
6588
6589 2011-04-09  Bruno Haible  <bruno@clisp.org>
6590
6591         careadlinkat: Clarify specification.
6592         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6593         (careadlinkatcwd): Add comment.
6594         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6595
6596 2011-04-09  Bruno Haible  <bruno@clisp.org>
6597
6598         areadlinkat: Avoid link error on many platforms.
6599         * modules/areadlinkat (Depends-on): Add areadlink.
6600
6601 2011-04-09  Bruno Haible  <bruno@clisp.org>
6602
6603         allocator, careadlinkat: Fix double-inclusion guard.
6604         * lib/allocator.h: Fix double-inclusion guard.
6605         * lib/careadlinkat.h: Likewise.
6606
6607 2011-04-09  Bruno Haible  <bruno@clisp.org>
6608
6609         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6610         * lib/relocwrapper.c: Update dependencies hierarchy.
6611         * build-aux/install-reloc: Update list of files to be compiled.
6612         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6613         lib/allocator.[hc].
6614
6615 2011-04-08  Eric Blake  <eblake@redhat.com>
6616
6617         strftime: silence gnulib-tool warning
6618         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6619
6620 2011-04-08  Bruno Haible  <bruno@clisp.org>
6621
6622         verify: Fix syntax error with GCC 4.6 in C++ mode.
6623         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6624         (HAVE_STATIC_ASSERT): New macro.
6625         (verify_true, verify): Use 'static_assert' if it is supported and
6626         '_Static_assert' is not supported.
6627
6628 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6629
6630         allocator: New module.
6631         * modules/allocator, lib/allocator.c: New files.
6632         * lib/allocator.h (stdlib_allocator): New decl.
6633         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6634         Remove.  Do not include <stdlib.h>.
6635         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6636         * modules/careadlinkat (Files): Remove lib/allocator.h.
6637         (Depends-on): Add allocator.
6638
6639         stdlib: let modules use system malloc, realloc
6640         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6641         if !_GL_USE_STDLIB_ALLOC.
6642         (malloc, realloc): Limit this change to a smaller scope.
6643
6644         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6645         (malloc, realloc): Don't #undef; no longer needed.
6646         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6647         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6648         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6649         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6650         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6651         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6652         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6653         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6654
6655         careadlinkat: rename members to avoid problem
6656         * lib/allocator.h (struct allocator): Rename members from
6657         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6658         and realloc are #define'd.  Reported by Eric Blake in
6659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6660         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6661
6662 2011-04-08  Eric Blake  <eblake@redhat.com>
6663
6664         nonblocking: reduce dependency
6665         * tests/test-nonblocking.c: Only test sockets when in use.
6666         * modules/nonblocking-tests (Depends-on): Drop socket.
6667         (Makefile.am): Link even if sockets are not present.
6668         * modules/pipe2-tests (Makefile.am): Likewise.
6669         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6670
6671         pipe2: fix O_NONBLOCK support on mingw
6672         * modules/pipe2 (Depends-on): Add nonblocking.
6673         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6674         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6675         * tests/test-nonblocking.c (main): Likewise.
6676         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6677
6678         fcntl-h: fix O_ACCMODE on cygwin
6679         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6680         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6681
6682         pipe-filter: drop O_NONBLOCK workarounds
6683         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6684         * modules/pipe-filter-ii (Depends-on): Likewise.
6685         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6686
6687         nonblocking: provide O_NONBLOCK for mingw
6688         * modules/nonblocking (Depends-on): Add open.
6689         (configure.ac): Set new witness macro.
6690         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6691         * modules/fcntl-h (Makefile.am): Substitute it.
6692         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6693         nonblocking module is in use.
6694         * lib/nonblocking.c: Adjust portability test.
6695         * lib/open.c (open): Don't let native open see gnulib flag.
6696         * tests/test-fcntl-h.c (main): Enhance test.
6697         * tests/test-open.h (test_open): Likewise.
6698         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6699
6700         careadlinkat: fix compilation error on mingw
6701         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6702         within struct allocator.
6703
6704 2011-04-06  Eric Blake  <eblake@redhat.com>
6705
6706         binary-io: relicense under LGPLv2+
6707         * modules/binary-io (License): Relax to LGPLv2+.
6708         Requested for libvirt, and required by pipe2.
6709
6710 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6711
6712         verify: use _Static_assert if available
6713         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6714         (verify_true, verify): Use it if available.  This generates better
6715         diagnostics with GCC 4.6.0 and later.
6716
6717 2011-04-05  Bruno Haible  <bruno@clisp.org>
6718
6719         Remove leftover generated .h files after config.status changed.
6720
6721         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6722         GL_GENERATE_ALLOCA_H.
6723         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6724         GL_GENERATE_ALLOCA_H evaluates to false.
6725
6726         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6727         GL_GENERATE_ARGZ_H.
6728         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6729         evaluates to false.
6730
6731         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6732         GL_GENERATE_BYTESWAP_H.
6733         * modules/byteswap (Makefile.am): Remove byteswap.h if
6734         GL_GENERATE_BYTESWAP_H evaluates to false.
6735
6736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6737         GL_GENERATE_ERRNO_H.
6738         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6739         evaluates to false.
6740
6741         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6742         GL_GENERATE_FLOAT_H.
6743         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6744         evaluates to false.
6745
6746         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6747         GL_GENERATE_FNMATCH_H.
6748         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6749         GL_GENERATE_FNMATCH_H evaluates to false.
6750
6751         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6752         GL_GENERATE_GLOB_H.
6753         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6754         evaluates to false.
6755
6756         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6757         automake conditional GL_GENERATE_ICONV_H.
6758         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6759         evaluates to false.
6760
6761         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6762         GL_GENERATE_NETINET_IN_H.
6763         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6764         GL_GENERATE_NETINET_IN_H evaluates to false.
6765
6766         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6767         conditional GL_GENERATE_PTHREAD_H.
6768         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6769         * modules/pthread (Makefile.am): Remove pthread.h if
6770         GL_GENERATE_PTHREAD_H evaluates to false.
6771
6772         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6773         GL_GENERATE_SCHED_H.
6774         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6775         evaluates to false.
6776
6777         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6778         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6779         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6780         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6781
6782         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6783         GL_GENERATE_STDARG_H.
6784         * modules/stdarg (Makefile.am): Remove stdarg.h if
6785         GL_GENERATE_STDARG_H evaluates to false.
6786
6787         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6788         GL_GENERATE_STDBOOL_H.
6789         * modules/stdbool (Makefile.am): Remove stdbool.h if
6790         GL_GENERATE_STDBOOL_H evaluates to false.
6791
6792         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6793         conditional GL_GENERATE_STDDEF_H.
6794         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6795         * modules/stddef (Makefile.am): Remove stddef.h if
6796         GL_GENERATE_STDDEF_H evaluates to false.
6797
6798         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6799         GL_GENERATE_STDINT_H.
6800         * modules/stdint (Makefile.am): Remove stdint.h if
6801         GL_GENERATE_STDINT_H evaluates to false.
6802
6803         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6804         GL_GENERATE_SYSEXITS_H.
6805         * modules/sysexits (Makefile.am): Remove sysexits.h if
6806         GL_GENERATE_SYSEXITS_H evaluates to false.
6807
6808         Reported by Karl Berry and Ralf Wildenhues.
6809
6810 2011-04-05  Bruno Haible  <bruno@clisp.org>
6811
6812         Ensure to rebuild generated .h files when config.status has changed.
6813         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6814         config.status.
6815         * modules/ctype (Makefile.am): Likewise.
6816         * modules/dirent (Makefile.am): Likewise.
6817         * modules/errno (Makefile.am): Likewise.
6818         * modules/fcntl-h (Makefile.am): Likewise.
6819         * modules/float (Makefile.am): Likewise.
6820         * modules/getopt-posix (Makefile.am): Likewise.
6821         * modules/glob (Makefile.am): Likewise.
6822         * modules/iconv-h (Makefile.am): Likewise.
6823         * modules/inttypes (Makefile.am): Likewise.
6824         * modules/langinfo (Makefile.am): Likewise.
6825         * modules/locale (Makefile.am): Likewise.
6826         * modules/math (Makefile.am): Likewise.
6827         * modules/netdb (Makefile.am): Likewise.
6828         * modules/netinet_in (Makefile.am): Likewise.
6829         * modules/poll-h (Makefile.am): Likewise.
6830         * modules/pthread (Makefile.am): Likewise.
6831         * modules/pty (Makefile.am): Likewise.
6832         * modules/sched (Makefile.am): Likewise.
6833         * modules/search (Makefile.am): Likewise.
6834         * modules/selinux-h (Makefile.am): Likewise.
6835         * modules/signal (Makefile.am): Likewise.
6836         * modules/spawn (Makefile.am): Likewise.
6837         * modules/stdarg (Makefile.am): Likewise.
6838         * modules/stdbool (Makefile.am): Likewise.
6839         * modules/stddef (Makefile.am): Likewise.
6840         * modules/stdint (Makefile.am): Likewise.
6841         * modules/stdio (Makefile.am): Likewise.
6842         * modules/stdlib (Makefile.am): Likewise.
6843         * modules/string (Makefile.am): Likewise.
6844         * modules/strings (Makefile.am): Likewise.
6845         * modules/sys_file (Makefile.am): Likewise.
6846         * modules/sys_ioctl (Makefile.am): Likewise.
6847         * modules/sys_select (Makefile.am): Likewise.
6848         * modules/sys_socket (Makefile.am): Likewise.
6849         * modules/sys_stat (Makefile.am): Likewise.
6850         * modules/sys_time (Makefile.am): Likewise.
6851         * modules/sys_times (Makefile.am): Likewise.
6852         * modules/sys_utsname (Makefile.am): Likewise.
6853         * modules/sys_wait (Makefile.am): Likewise.
6854         * modules/sysexits (Makefile.am): Likewise.
6855         * modules/termios (Makefile.am): Likewise.
6856         * modules/time (Makefile.am): Likewise.
6857         * modules/unistd (Makefile.am): Likewise.
6858         * modules/wchar (Makefile.am): Likewise.
6859         * modules/wctype-h (Makefile.am): Likewise.
6860         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6861
6862 2011-04-05  Bruno Haible  <bruno@clisp.org>
6863
6864         pipe2: Relicense under LGPLv2+.
6865         * modules/pipe2 (License): Change to LGPLv2+.
6866         Requested by Eric Blake, for libvirt.
6867
6868 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6869
6870         bootstrap: compute gnulib_extra_files after updating build_aux
6871         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6872         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6873
6874 2011-04-05  Eric Blake  <eblake@redhat.com>
6875
6876         bootstrap: preserve git whitelist item sorting
6877         * build-aux/bootstrap (sort_patterns): New function.
6878         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6879
6880 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6881
6882         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6883         sc_space_tab check.
6884
6885 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6886
6887         areadlink, areadlinkat: rewrite in terms of careadlinkat
6888         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6889         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6890         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6891         (malloc, realloc): Remove #undefs.
6892         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6893         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6894         readlink, ssize_t, stdint, unistd.
6895         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6896         areadlink, stdint.
6897
6898         careadlinkat: new module
6899         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6900         * modules/careadlinkat: New files, written by me with
6901         a review and feedback from Ben Pfaff in
6902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6903
6904 2011-04-01  Bruno Haible  <bruno@clisp.org>
6905
6906         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6907         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6908         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6909         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6910         Reported by Bruce Korb <bruce.korb@gmail.com>.
6911
6912 2011-04-01  Bruno Haible  <bruno@clisp.org>
6913
6914         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6915         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6916         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6917         * modules/wcpcpy (Depends-on): Add extensions.
6918         * modules/wcpncpy (Depends-on): Likewise.
6919         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6920         systems.
6921         * doc/posix-functions/wcpncpy.texi: Likewise.
6922         * doc/posix-functions/wcwidth.texi: Likewise.
6923
6924 2011-03-31  Eric Blake  <eblake@redhat.com>
6925
6926         nonblocking: fix mingw test failures
6927         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6928         non-blocking flag on regular file.
6929         (get_nonblocking_flag): Set errno on invalid fd.
6930         * tests/test-nonblocking.c (main): Avoid test failure on
6931         directories if fchdir is not active.
6932         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6933
6934 2011-03-31  Bruno Haible  <bruno@clisp.org>
6935
6936         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6937         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6938         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6939         Reported by Simon Josefsson <simon@josefsson.org>.
6940
6941 2011-03-31  Bruno Haible  <bruno@clisp.org>
6942         and Eric Blake  <eblake@redhat.com>
6943
6944         nonblocking: new module
6945         * modules/nonblocking: New module.
6946         * modules/nonblocking-tests: Likewise.
6947         * lib/nonblocking.h: New file.
6948         * lib/nonblocking.c: Likewise.
6949         * tests/test-nonblocking.c: New test.
6950         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6951
6952 2011-03-30  Bruno Haible  <bruno@clisp.org>
6953
6954         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6955         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6956         instead of 'printf' format for GCC >= 4.4.
6957         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6958         (fprintf, printf, vfprintf, vprintf): Declare with
6959         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6960         the system's vfprintf() function.
6961         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6962
6963 2011-03-30  Eric Blake  <eblake@redhat.com>
6964
6965         passfd: fix scoping bug
6966         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6967         before sendmsg/recvmsg.
6968
6969         passfd: standardize coding conventions
6970         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6971         can be learned at compile time.
6972         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6973         ifdefs.
6974         (sendfd, recvfd): Follow gnulib code conventions.
6975
6976         passfd: fix incorrect sendmsg arguments
6977         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6978         incorrect msg_controllen value.
6979         * modules/passfd-tests (Depends-on): Check for alarm.
6980         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6981         Reported by Bastien ROUCARIES.
6982
6983 2011-03-30  Bruno Haible  <bruno@clisp.org>
6984
6985         c-strcasestr: Relicense under LGPLv2+.
6986         * modules/c-strcasestr (License): Change to LGPLv2+.
6987         Requested by Eric Blake, for libvirt.
6988
6989 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6990
6991         * users.txt: Add libidn2.  Fix libtasn1 link.
6992
6993 2011-03-30  Jim Meyering  <meyering@redhat.com>
6994
6995         tests: readlink* ("",... fails with EINVAL on newer kernels
6996         readlink and readlinkat have typically failed with ENOENT for
6997         the invalid, empty file name,  "".  However, with the advent
6998         of linux-2.6.39, they fail with EINVAL.
6999         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7000         when operating on the empty file name.
7001         * tests/test-readlink.h (test_readlink): Likewise.
7002
7003 2011-03-29  Bruno Haible  <bruno@clisp.org>
7004
7005         Relicense some modules under LGPLv2+, for libidn2.
7006         * modules/array-mergesort (License): Change to LGPLv2+.
7007         * modules/c-strcaseeq (License): Likewise.
7008         * modules/striconveh (License): Likewise.
7009         * modules/striconveha (License): Likewise.
7010         * modules/uniconv/base (License): Likewise.
7011         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7012         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7013         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7014         * modules/unictype/base (License): Likewise.
7015         * modules/unictype/bidiclass-of (License): Likewise.
7016         * modules/unictype/category-M (License): Likewise.
7017         * modules/unictype/category-none (License): Likewise.
7018         * modules/unictype/category-of (License): Likewise.
7019         * modules/unictype/category-test (License): Likewise.
7020         * modules/unictype/category-test-withtable (License): Likewise.
7021         * modules/unictype/combining-class (License): Likewise.
7022         * modules/unictype/joiningtype-of (License): Likewise.
7023         * modules/unictype/scripts (License): Likewise.
7024         * modules/uninorm/base (License): Likewise.
7025         * modules/uninorm/canonical-decomposition (License): Likewise.
7026         * modules/uninorm/composition (License): Likewise.
7027         * modules/uninorm/decompose-internal (License): Likewise.
7028         * modules/uninorm/decomposition-table (License): Likewise.
7029         * modules/uninorm/nfc (License): Likewise.
7030         * modules/uninorm/nfd (License): Likewise.
7031         * modules/uninorm/u32-normalize (License): Likewise.
7032         * modules/unistr/base (License): Likewise.
7033         * modules/unistr/u32-cpy (License): Likewise.
7034         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7035         * modules/unistr/u32-to-u8 (License): Likewise.
7036         * modules/unistr/u32-uctomb (License): Likewise.
7037         * modules/unistr/u8-check (License): Likewise.
7038         * modules/unistr/u8-mblen (License): Likewise.
7039         * modules/unistr/u8-mbtouc (License): Likewise.
7040         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7041         * modules/unistr/u8-mbtoucr (License): Likewise.
7042         * modules/unistr/u8-prev (License): Likewise.
7043         * modules/unistr/u8-strlen (License): Likewise.
7044         * modules/unistr/u8-to-u32 (License): Likewise.
7045         * modules/unistr/u8-uctomb (License): Likewise.
7046         * modules/unitypes (License): Likewise.
7047         Requested by Simon Josefsson.
7048
7049 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7050
7051         lib-symbol-visibility: Add a notice.
7052         * modules/lib-symbol-visibility (Notice): New field.
7053
7054 2011-03-29  Bruno Haible  <bruno@clisp.org>
7055
7056         getaddrinfo: Doc fix.
7057         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7058         section "fixed in Gnulib".
7059
7060 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7061
7062         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7063         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7064
7065 2011-03-26  Bruno Haible  <bruno@clisp.org>
7066
7067         unictype/property-byname: Reduce the number of load-time relocations.
7068         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7069         (UC_PROPERTY_INDEX_*): New enumeration values.
7070         (uc_property_byname): Convert an index from the lookup table to an
7071         uc_property_t.
7072         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7073         values.
7074
7075 2011-03-26  Bruno Haible  <bruno@clisp.org>
7076
7077         unictype/property-byname: Allow omitted word separators and aliases.
7078         * lib/unictype/pr_byname.gperf: Add property names without word
7079         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7080         for 'space'.
7081
7082 2011-03-26  Bruno Haible  <bruno@clisp.org>
7083
7084         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7085         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7086         also hyphens to space.
7087         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7088         without spaces.
7089         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7090
7091 2011-03-26  Bruno Haible  <bruno@clisp.org>
7092
7093         unictype/joiningtype-byname: Recognize long names as well.
7094         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7095         a long name.
7096         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7097         unictype/joiningtype_byname.h.
7098         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7099         * lib/unictype/joiningtype_byname.gperf: New file.
7100         * modules/unictype/joiningtype-byname (Files): Add
7101         lib/unictype/joiningtype_byname.gperf.
7102         (Depends-on): Add gperf.
7103         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7104         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7105         long names.
7106
7107         Tests for module 'unictype/joiningtype-longname'.
7108         * modules/unictype/joiningtype-longname-tests: New file.
7109         * tests/unictype/test-joiningtype_longname.c: New file.
7110
7111         New module 'unictype/joiningtype-longname'.
7112         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7113         * lib/unictype/joiningtype_longname.c: New file.
7114         * modules/unictype/joiningtype-longname: New file.
7115         * modules/unictype/joiningtype-all (Depends-on): Add
7116         unictype/joiningtype-longname.
7117
7118 2011-03-26  Bruno Haible  <bruno@clisp.org>
7119
7120         unictype/bidiclass-byname: Recognize long names as well.
7121         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7122         name.
7123         * lib/unictype/bidi_byname.c: Include <string.h>,
7124         unictype/bidi_byname.h.
7125         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7126         * lib/unictype/bidi_byname.gperf: New file.
7127         * modules/unictype/bidiclass-byname (Files): Add
7128         lib/unictype/bidi_byname.gperf.
7129         (Depends-on): Add gperf.
7130         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7131         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7132         long names.
7133
7134         Tests for module 'unictype/bidiclass-longname'.
7135         * modules/unictype/bidiclass-longname-tests: New file.
7136         * tests/unictype/test-bidi_longname.c: New file.
7137
7138         New module 'unictype/bidiclass-longname'.
7139         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7140         * lib/unictype/bidi_longname.c: New file.
7141         * modules/unictype/bidiclass-longname: New file.
7142         * modules/unictype/bidiclass-all (Depends-on): Add
7143         unictype/bidiclass-longname.
7144
7145 2011-03-26  Bruno Haible  <bruno@clisp.org>
7146
7147         unictype/bidi*: Rename modules.
7148         * modules/unictype/bidiclass-all: Renamed from
7149         modules/unictype/bidicategory-all.
7150         * modules/unictype/bidiclass-name: Renamed from
7151         modules/unictype/bidiclass-name.
7152         (Description): Update.
7153         * modules/unictype/bidiclass-name-tests: Renamed from
7154         modules/unictype/bidicategory-name-tests.
7155         * modules/unictype/bidiclass-byname: Renamed from
7156         modules/unictype/bidicategory-byname.
7157         (Description): Update.
7158         * modules/unictype/bidiclass-byname-tests: Renamed from
7159         modules/unictype/bidicategory-byname-tests.
7160         * modules/unictype/bidiclass-of: Renamed from
7161         modules/unictype/bidicategory-of.
7162         (Description): Update.
7163         * modules/unictype/bidiclass-of-tests: Renamed from
7164         modules/unictype/bidicategory-of-tests.
7165         * modules/unictype/bidiclass-test: Renamed from
7166         modules/unictype/bidicategory-test.
7167         (Description): Update.
7168         * modules/unictype/bidiclass-test-tests: Renamed from
7169         modules/unictype/bidicategory-test-tests.
7170         * modules/unictype/bidicategory-all: New file, a simple redirection.
7171         * modules/unictype/bidicategory-name: Likewise.
7172         * modules/unictype/bidicategory-byname: Likewise.
7173         * modules/unictype/bidicategory-of: Likewise.
7174         * modules/unictype/bidicategory-test: Likewise.
7175         * modules/unictype/property-bidi-* (Dependencies): Update.
7176         * lib/unictype/bidi_*.c: Update comment.
7177
7178 2011-03-26  Bruno Haible  <bruno@clisp.org>
7179
7180         unictype/bidi*: Rename functions, part 2.
7181         * modules/unictype/bidicategory-name (configure.ac): Update required
7182         libunistring version.
7183         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7184
7185 2011-03-25  Bruno Haible  <bruno@clisp.org>
7186
7187         New module 'unictype/combining-class-all'.
7188         * modules/unictype/combining-class-all: New file.
7189
7190         Tests for module 'unictype/combining-class-byname'.
7191         * modules/unictype/combining-class-byname-tests: New file.
7192         * tests/unictype/test-combiningclass_byname.c: New file.
7193
7194         New module 'unictype/combining-class-byname'.
7195         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7196         * lib/unictype/combiningclass_byname.c: New file.
7197         * lib/unictype/combiningclass_byname.gperf: New file.
7198         * modules/unictype/combining-class-byname: New file.
7199
7200         Tests for module 'unictype/combining-class-longname'.
7201         * modules/unictype/combining-class-longname-tests: New file.
7202         * tests/unictype/test-combiningclass_longname.c: New file.
7203
7204         New module 'unictype/combining-class-longname'.
7205         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7206         * lib/unictype/combiningclass_longname.c: New file.
7207         * modules/unictype/combining-class-longname: New file.
7208
7209         Tests for module 'unictype/combining-class-name'.
7210         * modules/unictype/combining-class-name-tests: New file.
7211         * tests/unictype/test-combiningclass_name.c: New file.
7212
7213         New module 'unictype/combining-class-name'.
7214         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7215         * lib/unictype/combiningclass_name.c: New file.
7216         * modules/unictype/combining-class-name: New file.
7217
7218 2011-03-25  Bruno Haible  <bruno@clisp.org>
7219
7220         unictype/combining-class: Rename source files.
7221         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7222         of unictype/combining.h.
7223         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7224         Update.
7225         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7226         * modules/unictype/combining-class (Description): Fix.
7227         (Files, Makefile.am): Update.
7228         * tests/unictype/test-combiningclass.c: Renamed from
7229         tests/unictype/test-combining.c.
7230         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7231
7232 2011-03-25  Bruno Haible  <bruno@clisp.org>
7233
7234         unictype: Update list of canonical combining classes.
7235         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7236
7237 2011-03-25  Bruno Haible  <bruno@clisp.org>
7238
7239         unictype/category-byname: Recognize long names as well.
7240         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7241         a long name.
7242         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7243         unictype/categ_byname.h.
7244         (UC_CATEGORY_INDEX_*): New enumeration values.
7245         (uc_general_category_byname): Use uc_general_category_lookup and
7246         convert from index to value.
7247         * lib/unictype/categ_byname.gperf: New file.
7248         * modules/unictype/category-byname (Files): Add
7249         lib/unictype/categ_byname.gperf.
7250         (Depends-on): Add gperf.
7251         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7252         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7253         long names.
7254
7255         Tests for module 'unictype/category-longname'.
7256         * modules/unictype/category-longname-tests: New file.
7257         * tests/unictype/test-categ_longname.c: New file.
7258
7259         New module 'unictype/category-longname'.
7260         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7261         * lib/unictype/categ_longname.c: New file.
7262         * modules/unictype/category-longname: New file.
7263         * modules/unictype/category-all (Depends-on): Add it.
7264
7265 2011-03-25  Bruno Haible  <bruno@clisp.org>
7266
7267         Tests for module 'unictype/category-LC'.
7268         * modules/unictype/category-LC-tests: New file.
7269         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7270
7271         New module 'unictype/category-LC'.
7272         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7273         (UC_CATEGORY_LC): New declaration.
7274         (UC_CASED_LETTER): New macro.
7275         * lib/gen-uni-tables.c (is_category_LC): New function.
7276         (output_categories): Also handle category LC.
7277         (UC_CATEGORY_MASK_LC): New enumeration value.
7278         (general_category_byname): Also handle category LC.
7279         * lib/unictype/categ_LC.c: New file.
7280         * lib/unictype/categ_LC.h: New file, automatically generated.
7281         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7282         category LC.
7283         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7284         * modules/unictype/category-LC: New file.
7285         * modules/unictype/category-byname (Depends-on): Add
7286         unictype/category-LC.
7287         * modules/unictype/category-all (Depends-on): Likewise.
7288
7289 2011-03-25  Eric Blake  <eblake@redhat.com>
7290
7291         xmalloc: revert yesterday's regression
7292         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7293         realloc's underlying behavior (allowing allocation of zero-size
7294         objects, especially if malloc-gnu is also in use).
7295
7296 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7297
7298         maint.mk: add missing version to VC-tag
7299         * top/maint.mk: git tag was missing actual tag name; add it.
7300
7301         valgrind: do leak checking, and exit with code 1 on error (not 0)
7302         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7303         to VALGRIND.
7304
7305 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7306
7307         posix-modules: say what it does.
7308         * posix-modules: Add a line to the --help output saying what it does.
7309
7310 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7311
7312         xmalloc: Do not leak if underlying realloc is C99 compatible.
7313         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7314         This avoids a leak on C99-based systems.  See
7315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7316
7317 2011-03-24  Eric Blake  <eblake@redhat.com>
7318
7319         realloc: document portability problem
7320         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7321         passing 0 size to realloc.
7322
7323 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7324
7325         doc: update users.txt
7326         * users.txt: Add cvsps, tmpwatch
7327
7328 2011-03-23  Matt Rice  <ratmice@gmail.com>
7329
7330         doc: update users.txt
7331         * users.txt: Add gdb.
7332
7333 2011-03-23  Jim Meyering  <meyering@redhat.com>
7334
7335         doc: update users.txt
7336         Looking through matches up to the following URL (there are still
7337         several more pages), I found several projects that use gnulib:
7338         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7339         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7340         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7341
7342 2011-03-22  Bruno Haible  <bruno@clisp.org>
7343
7344         unictype/bidi*: Rename functions.
7345         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7346         uc_bidi_class, uc_is_bidi_class): New declarations.
7347         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7348         uc_bidi_category_byname.
7349         (uc_bidi_category_byname): New function.
7350         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7351         u_bidi_category_name.
7352         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7353         (uc_bidi_category_name): New function.
7354         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7355         uc_bidi_category.
7356         (uc_bidi_category): New function.
7357         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7358         uc_is_bidi_category. Invoke uc_bidi_class.
7359         (uc_is_bidi_category): New function.
7360         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7361         instead of uc_bidi_category_byname.
7362         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7363         instead of uc_bidi_category_name.
7364         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7365         uc_bidi_category.
7366         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7367         instead of uc_is_bidi_category.
7368
7369 2011-03-21  Bruno Haible  <bruno@clisp.org>
7370
7371         New module 'unictype/joininggroup-all'.
7372         * modules/unictype/joininggroup-all: New file.
7373
7374         Tests for module 'unictype/joininggroup-of'.
7375         * modules/unictype/joininggroup-of-tests: New file.
7376         * tests/unictype/test-joininggroup_of.c: New file.
7377         * tests/unictype/test-joininggroup_of.h: New file, automatically
7378         generated by gen-uni-tables.
7379
7380         New module 'unictype/joininggroup-of'.
7381         * modules/unictype/joininggroup-of: New file.
7382         * lib/unictype/joininggroup_of.c: New file.
7383         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7384         gen-uni-tables.
7385
7386         Tests for module 'unictype/joininggroup-byname'.
7387         * modules/unictype/joininggroup-byname-tests: New file.
7388         * tests/unictype/test-joininggroup_byname.c: New file.
7389
7390         New module 'unictype/joininggroup-byname'.
7391         * modules/unictype/joininggroup-byname: New file.
7392         * lib/unictype/joininggroup_byname.c: New file.
7393         * lib/unictype/joininggroup_byname.gperf: New file.
7394
7395         Tests for module 'unictype/joininggroup-name'.
7396         * modules/unictype/joininggroup-name-tests: New file.
7397         * tests/unictype/test-joininggroup_name.c: New file.
7398
7399         New module 'unictype/joininggroup-name'.
7400         * modules/unictype/joininggroup-name: New file.
7401         * lib/unictype/joininggroup_name.c: New file.
7402         * lib/unictype/joininggroup_name.h: New file.
7403
7404         New module 'unictype/joiningtype-all'.
7405         * modules/unictype/joiningtype-all: New file.
7406
7407         Tests for module 'unictype/joiningtype-of'.
7408         * modules/unictype/joiningtype-of-tests: New file.
7409         * tests/unictype/test-joiningtype_of.c: New file.
7410         * tests/unictype/test-joiningtype_of.h: New file, automatically
7411         generated by gen-uni-tables.
7412
7413         New module 'unictype/joiningtype-of'.
7414         * modules/unictype/joiningtype-of: New file.
7415         * lib/unictype/joiningtype_of.c: New file.
7416         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7417         gen-uni-tables.
7418
7419         Tests for module 'unictype/joiningtype-byname'.
7420         * modules/unictype/joiningtype-byname-tests: New file.
7421         * tests/unictype/test-joiningtype_byname.c: New file.
7422
7423         New module 'unictype/joiningtype-byname'.
7424         * modules/unictype/joiningtype-byname: New file.
7425         * lib/unictype/joiningtype_byname.c: New file.
7426
7427         Tests for module 'unictype/joiningtype-name'.
7428         * modules/unictype/joiningtype-name-tests: New file.
7429         * tests/unictype/test-joiningtype_name.c: New file.
7430
7431         New module 'unictype/joiningtype-name'.
7432         * modules/unictype/joiningtype-name: New file.
7433         * lib/unictype/joiningtype_name.c: New file.
7434
7435         unictype: Add support for Arabic shaping properties.
7436         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7437         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7438         declarations.
7439         (UC_JOINING_GROUP_*): New enumeration values.
7440         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7441         declarations.
7442         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7443         (unicode_joining_type): New variable.
7444         (UC_JOINING_GROUP_*): New enumeration values.
7445         (unicode_joining_group): New variable.
7446         (fill_arabicshaping, joining_type_as_c_identifier,
7447         output_joining_type_test, output_joining_type,
7448         joining_group_as_c_identifier, output_joining_group_test,
7449         output_joining_group): New functions.
7450         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7451         fill_arabicshaping and output_joining_type_test, output_joining_type,
7452         output_joining_group_test, output_joining_group.
7453         Reported by Simon Josefsson.
7454
7455 2011-03-21  Jim Meyering  <meyering@redhat.com>
7456
7457         strftime: fix a bug in yesterday's change
7458         * lib/strftime.c (add): Accommodate width's initial value of -1.
7459         Otherwise, nstrftime would copy uninitialized data into
7460         the result buffer.
7461
7462 2011-03-21  Jim Meyering  <meyering@redhat.com>
7463
7464         tests: add strftime-tests module
7465         * tests/test-strftime.c: New file.
7466         * modules/strftime-tests: New module.
7467
7468 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7469
7470         strftime: don't assume a byte count fits in 'int'
7471         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7472         found this problem by static analysis, using gcc -Wstrict-overflow
7473         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7474         on an integer overflow having undefined behavior, but it turns out
7475         that the argument is a size, which might not fit in 'int' anyway,
7476
7477 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7478
7479         stdio: don't require ignore_value around fwrite
7480
7481         This patch works around libc bug 11959
7482         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7483         Without this patch, applications must often write
7484         ignore_value (fwrite (...)) even though the ignore_value is
7485         not helpful here.  It's common to write many objects, using
7486         fwrite/printf/etc., and then use ferror to detect output error.
7487
7488         I considered making this patch optional, but decided against it,
7489         because libc is obviously being inconsistent here: there is no
7490         reason libc should insist that user code must inspect fwrite
7491         return's value without also insisting that it inspect printf's,
7492         putchar's, etc.  If user code wants to have a strict style where
7493         all these functions' values are checked (so that ferror need not
7494         be checked), we could add support for that style in a new gnulib
7495         module, but in the meantime it's better to be consistent and to
7496         support common usage.
7497
7498         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7499         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7500         that we are compiling in checking mode, and if not C++, and
7501         if not already wrapping fwrite for some other reason.
7502         (fwrite): #define to rpl_fwrite if the latter is defined.
7503
7504 2011-03-20  Bruno Haible  <bruno@clisp.org>
7505
7506         verror: Fix compilation error introduced on 2011-02-13.
7507         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7508         instead of __attribute__.
7509         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7510
7511 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7512             Bruno Haible  <bruno@clisp.org>
7513
7514         socklen: do not depend on sys_socket
7515         While trying to modify Emacs to use gnulib's socklen module,
7516         I discovered a circular dependency: socklen depends on sys_socket
7517         and vice versa.  Emacs can use socklen, but it does not need
7518         sys_socket because it has its own substitute for sys/socket.h.
7519         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7520         gl_TYPE_SOCKLEN_T.
7521         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7522         gl_PREREQ_SYS_H_SOCKET.
7523         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7524         gl_PREREQ_SYS_H_SOCKET.
7525         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7526         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7527         * modules/socklen (Depends-on): Do not depend on sys_socket.
7528         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7529
7530 2011-03-20  Jim Meyering  <meyering@redhat.com>
7531
7532         maint.mk: sort file names *after* new transformation
7533         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7534         prefix would have led to an unwarranted failure in GNU parted.
7535         Sort after that transformation.
7536
7537 2011-03-19  Jim Meyering  <meyering@redhat.com>
7538
7539         maint.mk: fix po-file syntax-check rule
7540         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7541         Patch by Bruno Haible.
7542
7543 2011-03-19  Bruno Haible  <bruno@clisp.org>
7544
7545         socklen: Update comment.
7546         * m4/socklen.m4: Update comment about platforms.
7547
7548 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7549             Bruno Haible  <bruno@clisp.org>
7550
7551         inet_ntop, inet_pton: Simplify.
7552         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7553         documented to provide socklen_t and we already depend on sys_socket.
7554         * modules/inet_pton (Depends-on): Likewise.
7555         * lib/arpa_inet.in.h: Adjust comment.
7556
7557 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7558             Bruno Haible  <bruno@clisp.org>
7559
7560         netdb: Simplify.
7561         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7562         documented to provide socklen_t and we already depend on sys_socket.
7563         * lib/netdb.in.h: Adjust comment.
7564
7565 2011-03-19  Bruno Haible  <bruno@clisp.org>
7566
7567         sys_socket, netdb: Document problem with socklen_t.
7568         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7569         platforms.
7570         * doc/posix-headers/netdb.texi: Likewise.
7571
7572 2011-03-18  Eric Blake  <eblake@redhat.com>
7573
7574         maint.mk: let po check work in VPATH build
7575         * top/maint.mk (po_file): Allow cfg.mk override.
7576         (sc_po_check): Allow VPATH use.
7577         Reported by Jiri Denemark.
7578
7579 2011-03-16  Jim Meyering  <meyering@redhat.com>
7580
7581         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7582         Before, you would have had to create one .x-sc_ file per rule in order
7583         to exempt offending files.  Now, you may instead use a Make variable --
7584         usually defined in cfg.mk -- whose name identifies the affected rule.
7585         * top/maint.mk (_sc_excl): Define.
7586         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7587         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7588
7589 2011-03-13  Bruno Haible  <bruno@clisp.org>
7590
7591         ignore-value tests: Avoid warnings.
7592         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7593         empty for gcc < 3.4.
7594
7595 2011-03-13  Bruno Haible  <bruno@clisp.org>
7596
7597         passfd: Fix link error on Solaris.
7598         * modules/passfd (Description): Correct.
7599         (Depends-on): Add socketlib.
7600         (Link): New section.
7601         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7602
7603 2011-03-13  Bruno Haible  <bruno@clisp.org>
7604
7605         passfd: Fix link error on AIX 5.2.
7606         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7607
7608 2011-03-13  Bruno Haible  <bruno@clisp.org>
7609
7610         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7611         * lib/sys_socket.in.h: Include <stddef.h>.
7612         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7613         CMSG_FIRSTHDR. Remove unused variable.
7614
7615 2011-03-13  Bruno Haible  <bruno@clisp.org>
7616
7617         passfd: Fix compilation error on OpenBSD.
7618         * lib/passfd.c: Include <sys/uio.h>.
7619
7620 2011-03-13  Bruno Haible  <bruno@clisp.org>
7621
7622         passfd test: Fix warnings.
7623         * tests/test-passfd.c: Include <sys/wait.h>.
7624         (main): Fix typo.
7625
7626 2011-03-13  Bruno Haible  <bruno@clisp.org>
7627
7628         passfd module, part 4, tweaks.
7629         * tests/test-passfd.c: Reorder includes.
7630         (main): Fix perror and printf calls.
7631
7632 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7633
7634         passfd module, part 4.
7635         * modules/passfd-tests: New file.
7636         * tests/test-passfd.c: New file.
7637
7638 2011-03-13  Jim Meyering  <meyering@redhat.com>
7639
7640         Makefile: rely on GNU make; derive syntax-check rule names
7641         Rather than requiring that each sc_ rule be listed as a dependent
7642         of "check", use features of GNU make to derive the list.
7643         * Makefile (syntax-check-rules): Define.
7644         (check): Depend on the new variable, not the hard-coded list.
7645
7646 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7647             Bruno Haible  <bruno@clisp.org>
7648
7649         passfd module, part 3.
7650         * lib/passfd.h (recvfd): Add a flags argument.
7651         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7652         (recvfd): Add a flags argument.
7653         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7654         exists.
7655         * modules/passfd (Depends-on): Add cloexec.
7656         Suggested by Eric Blake.
7657
7658 2011-03-13  Bruno Haible  <bruno@clisp.org>
7659
7660         passfd module, part 2, tweaks.
7661         * modules/passfd (Files): Reorder.
7662         (Depends-on): Remove errno.
7663         (Include): Remove <sys/socket.h>, <sys/un.h>.
7664         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7665         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7666         specification header. Include <sys/socket.h> always. Don't include
7667         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7668         (sendfd): Clarify that it sets errno when it fails.
7669         (recvfd): Fix specification.
7670
7671 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7672
7673         passfd module, part 2.
7674         * modules/passfd: New file.
7675         * lib/passfd.h: New file.
7676         * lib/passfd.c: New file.
7677
7678 2011-03-12  Bruno Haible  <bruno@clisp.org>
7679
7680         wcswidth, mbswidth: Avoid integer overflow.
7681         * lib/wcswidth.c: Include <limits.h>.
7682         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7683         * lib/mbswidth.c: Include <limits.h>.
7684         (mbsnwidth): Avoid 'int' overflow.
7685         Reported by Jim Meyering.
7686
7687 2011-03-12  Bruno Haible  <bruno@clisp.org>
7688
7689         futimens, utimensat: Avoid endless recursion on Solaris 10.
7690         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7691         Solaris.
7692         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7693         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7694
7695 2011-03-11  Jim Meyering  <meyering@redhat.com>
7696
7697         maint.mk: relax a regexp to accommodate other formatting styles
7698         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7699         between "ngettext" and the following "(".
7700
7701 2011-03-11  Pádraig Brady <P@draigBrady.com>
7702
7703         maint.mk: suppress a false positive warning
7704         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7705         diagnostics are marked with ngettext.
7706
7707 2011-03-10  Eric Blake  <eblake@redhat.com>
7708
7709         wchar: add explicit dependencies, for Tru64
7710         * modules/mbmemcasecoll (Depends-on): Add wchar.
7711         * modules/mbtowc (Depends-on): Likewise.
7712         * modules/vasnprintf (Depends-on): Likewise.
7713         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7714         * modules/wctomb (Depends-on): Likewise.
7715         Reported by Peter O'Gorman.
7716
7717 2011-03-08  Bruno Haible  <bruno@clisp.org>
7718
7719         passfd module, part 1, tweaks.
7720         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7721         Improve indentation. Improve AC_MSG_CHECKING messages.
7722         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7723         gl_SOCKET_FAMILIES.
7724
7725 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7726
7727         passfd module, part 1.
7728         * m4/afunix.m4: New file.
7729         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7730         sockets.
7731
7732 2011-03-08  Bruno Haible  <bruno@clisp.org>
7733
7734         regex-quote: New API.
7735         * lib/regex-quote.h: Include <stdbool.h>.
7736         (struct regex_quote_spec): New type.
7737         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7738         New declarations.
7739         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7740         'const struct regex_quote_spec *' argument.
7741         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7742         (pcre_special): New constant.
7743         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7744         New functions.
7745         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7746         'const struct regex_quote_spec *' argument.
7747         * modules/regex-quote (Depends-on): Add stdbool.
7748         * tests/test-regex-quote.c (check): Update for new API. Add test for
7749         anchored results.
7750         * NEWS: Mention the API change.
7751         Reported by Reuben Thomas and Eric Blake.
7752
7753 2011-03-06  Bruno Haible  <bruno@clisp.org>
7754
7755         regex-quote: Fix creation of POSIX extended regular expressions.
7756         * lib/regex-quote.c (ere_special): Add grouping and alternation
7757         operators.
7758
7759 2011-03-05  Bruno Haible  <bruno@clisp.org>
7760
7761         doc: Improve doc regarding autopoint vs. gnulib.
7762         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7763         disable autopoint while running autoreconf.
7764         Suggested by Ralf Wildenhues.
7765
7766 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7767
7768         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7769         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7770
7771 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7772
7773         parse-duration: remove xalloc.h dependency
7774         * lib/parse-duration.c (parse_period): handle NULL return from
7775         strdup instead of calling xstrdup().
7776         * modules/parse-duration: remove "xalloc" dependency
7777
7778 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7779
7780         bootstrap: honor m4_base when running aclocal
7781         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7782
7783 2011-03-02  Jim Meyering  <meyering@redhat.com>
7784
7785         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7786         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7787         on request from Matt Booth.
7788
7789 2011-03-01  Eric Blake  <eblake@redhat.com>
7790
7791         test-link: work on Hurd
7792         * tests/test-link.h (test_link): Hurd rejects linking directories
7793         with EISDIR instead of the POSIX-mandated EPERM.
7794
7795 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7796
7797         stdio: simplify by moving files to printf-posix, sigpipe
7798         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7799         since this symbol is needed only if printf is replaced.
7800         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7801         Require gl_ASM_SYMBOL_PREFIX.
7802         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7803         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7804         (Depends-on): Add 'raise'.
7805         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7806         * modules/stdio (Files): Remove lib/stdio-write.c,
7807         m4/asm-underscore.m4.
7808         (Depends-on): Remove 'raise'.
7809
7810         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7811         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7812         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7813         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7814
7815 2011-02-28  Bruno Haible  <bruno@clisp.org>
7816
7817         localcharset: Assume ANSI C behaviour of free().
7818         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7819         calling free().
7820         Suggested by Simon Josefsson <simon@josefsson.org>.
7821
7822 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7823             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7824             Bruno Haible  <bruno@clisp.org>  (tiny change)
7825
7826         On Cygwin, use /proc file system instead of win32 API.
7827         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7828         Win32 file names.
7829         (DllMain): Simplify by removing Cygwin specific code.
7830         (find_shared_library_fullname): Use Linux specific implementation also
7831         for Cygwin.
7832         (get_shared_library_fullname): Update accordingly.
7833         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7834         Win32 file names.
7835         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7836         Cygwin specific code.
7837
7838 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7839             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7840
7841         Fix OpenMP flag detection for various Fortran compilers.
7842         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7843         OpenMP-conditional compilation construct, to force compile
7844         failure with missing OpenMP flag.
7845         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7846
7847 2011-02-25  Eric Blake  <eblake@redhat.com>
7848
7849         strstr: expand test coverage
7850         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7851         compilation.
7852         * tests/test-memmem.c (main): Duplicate tests.
7853         * tests/test-strcasestr.c (main): Likewise.
7854         * tests/test-c-strcasestr.c (main): Likewise.
7855
7856 2011-02-25  Jim Meyering  <meyering@redhat.com>
7857
7858         maint.mk: detect missing-NL-at-EOF, too
7859         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7860         it also detects when a file lacks a newline at EOF.
7861         (require_exactly_one_NL_at_EOF_): Renamed from
7862         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7863         since people may well have .x-sc_... file names tied to the
7864         existing name.  Suggested by Eric Blake.
7865
7866 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7867
7868         dirname: move m4/dos.m4 functionality into lib/dosname.h
7869
7870         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7871         extracts symbols from it, puts them into config.h; but it's much
7872         easier to use the symbols directly.  filename.h already does this,
7873         but it disagrees with dos.m4 in some respects.  This patch
7874         introduces a different include file dosname.h that packages up
7875         dos.m4, and then later we can work on merging filename.h and
7876         dosname.h.  Applications that need only the easy-to-configure
7877         symbols should consider including dosname.h rather than dirname.h.
7878         * NEWS: Mention incompatible changes.
7879         * m4/dos.m4: Remove.
7880         * lib/dosname.h, modules/dosname: New files.
7881         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7882         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7883         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7884         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7885         Include dosname.h, not dirname.h.
7886         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7887         Include dosname.h, for definitions of symbols like ISSLASH
7888         that used to be in config.h.
7889         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7891         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7892         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7893         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7894         * modules/rmdir (Files): Likewise.
7895         * modules/stat (Files): Likewise.
7896         * modules/unlink (Files): Likewise.
7897         * modules/dirname-lgpl (Depends-on): Add dosname.
7898         * modules/lstat (Depends-on): Likewise.
7899         * modules/openat (Depends-on): Likewise.
7900         * modules/rmdir (Depends-on): Likewise.
7901         * modules/savewd (Depends-on): Likewise.
7902         * modules/stat (Depends-on): Likewise.
7903         * modules/unlink (Depends-on): Likewise.
7904         * modules/openat (Depends-on): Remove dirname-lgpl.
7905         * modules/savewd (Depends-on): Likewise.
7906         * tests/test-dirname.c: Do not use removed symbols like
7907         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7908         the remaining symbols, e.g., ISSLASH ('\\').
7909
7910 2011-02-25  Eric Blake  <eblake@redhat.com>
7911
7912         strstr: revert patches that introduced bug and pessimization
7913         * lib/str-two-way.h: Add another reference.
7914         (two_way_short_needle, two_way_long_needle): Revert changes from
7915         2011-02-24; they pessimize search speed.
7916         (critical_factorization): Partially revert changes from
7917         2010-06-22; they violate the requirement that the left half of the
7918         needle be smaller than the period of the needle.
7919
7920 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7921
7922         filenamecat: remove unnecessary dependency on dirname-lgpl
7923         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7924         is no direct dependency, just an indirect one via filenamecat-lgpl.
7925
7926         remove: remove unnecessary use of m4/dos.m4
7927         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7928         * modules/remove (FILES): Remove m4/dos.m4.
7929
7930         * lib/openat-proc.c: Don't include dirname.h; not needed.
7931
7932         backupfile: remove unnecessary use of m4/dos.m4
7933         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7934         of its symbols are used by the backupfile code.  backupfile.c does
7935         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7936         for the rare case of programs that want all their backup file
7937         names to live within 8+3 limits, and dos.m4 doesn't address that.
7938         * modules/backupfile (Files): Remove m4/dos.m4.
7939
7940 2011-02-24  Jim Meyering  <meyering@redhat.com>
7941
7942         strstr: fix a bug whereby strstr would mistakenly return NULL
7943         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7944         in period calculation.
7945         (two_way_long_needle): Likewise.
7946         The original problem was reported by Mike Stump in
7947         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7948         Ralf Wildenhues provided the short needle and haystack.
7949         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7950         Add a more involved test to trigger the bug in two_way_long_needle.
7951
7952 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7953
7954         gnulib-tool: remove use of bold display in help screen
7955         * gnulib-tool (func_usage): Do not use bold display anymore in the
7956         help screen.  That was just meant to be a temporary emphasis for a
7957         backward-incompatible change.
7958
7959 2011-02-23  Bruno Haible  <bruno@clisp.org>
7960
7961         Fix misindentation of preprocessor directives.
7962         * lib/argp-namefrob.h: Reindent preprocessor directives.
7963         * lib/getopt_int.h (struct _getopt_data): Likewise.
7964         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7965         * lib/vasnprintf.c (decode_long_double): Likewise.
7966         * tests/test-argmatch.c: Insert blank lines, for clarity.
7967         * tests/test-exclude.c: Likewise.
7968
7969 2011-02-22  Bruno Haible  <bruno@clisp.org>
7970
7971         ioctl: Fix for MacOS X in 64-bit mode.
7972         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7973         value.
7974         Suggested by Eric Blake.
7975         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7976
7977 2011-02-22  Jim Meyering  <meyering@redhat.com>
7978
7979         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7980         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7981         in lib/.
7982
7983 2011-02-22  Eric Blake  <eblake@redhat.com>
7984
7985         maint: avoid any CDPATH issue
7986         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7987
7988         maint: adjust cpp indentation for my modules, as well
7989         * Makefile (sc_cpp_indent_check): Add my name.
7990         * lib/fbufmode.c: Filter through cppi.
7991         * lib/fpurge.c: Likewise.
7992         * lib/freadable.c: Likewise.
7993         * lib/freading.c: Likewise.
7994         * lib/fwritable.c: Likewise.
7995         * lib/fwriting.c: Likewise.
7996         * lib/sigaction.c: Likewise.
7997
7998 2011-02-22  Jim Meyering  <meyering@redhat.com>
7999
8000         maint: adjust cpp indentation to reflect nesting depth
8001         I.e., in a block of code that begins with an unnested "#if",
8002         put one space between the "#" in column 1 and following token.
8003         For example,
8004         -#include <sys/vfs.h>
8005         +# include <sys/vfs.h>
8006         Do this only in .c files that are part of a module I maintain.
8007         * lib/linkat.c: Filter through cppi.
8008         * lib/nanosleep.c: Likewise.
8009         * lib/openat.c: Likewise.
8010         * lib/openat-die.c: Likewise.
8011         * lib/dup3.c: Likewise.
8012         * lib/fchownat.c: Likewise.
8013         * lib/flock.c: Likewise.
8014         * lib/fsync.c: Likewise.
8015         * lib/fts.c: Likewise.
8016         * lib/getpass.c: Likewise.
8017         * lib/gettimeofday.c: Likewise.
8018         * lib/userspec.c: Likewise.
8019         * Makefile (sc_cpp_indent_check): New rule, to check this.
8020
8021 2011-02-22  Bruno Haible  <bruno@clisp.org>
8022
8023         New module 'wctomb'.
8024         * lib/stdlib.in.h (wctomb): New declaration.
8025         * lib/wctomb.c: New file.
8026         * lib/wctomb-impl.h: New file.
8027         * m4/wctomb.m4: New file.
8028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8029         REPLACE_WCTOMB.
8030         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8031         REPLACE_WCTOMB.
8032         * modules/wctomb: New file.
8033         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8034         * doc/posix-functions/wctomb.texi: Mention the new module.
8035         * modules/wctob (Depends-on): Add wctomb.
8036
8037 2011-02-22  Bruno Haible  <bruno@clisp.org>
8038
8039         New module 'mbtowc'.
8040         * lib/stdlib.in.h (mbtowc): New declaration.
8041         * lib/mbtowc.c: New file.
8042         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8043         * m4/mbtowc.m4: New file.
8044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8045         REPLACE_MBTOWC.
8046         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8047         REPLACE_MBTOWC.
8048         * modules/mbtowc: New file.
8049         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8050         * doc/posix-functions/mbtowc.texi: Mention the new module.
8051         * modules/btowc (Depends-on): Add mbtowc.
8052
8053 2011-02-22  Bruno Haible  <bruno@clisp.org>
8054
8055         wcrtomb: Add more tests for native Windows platforms.
8056         * tests/test-wcrtomb-w32-1.sh: New file.
8057         * tests/test-wcrtomb-w32-2.sh: New file.
8058         * tests/test-wcrtomb-w32-3.sh: New file.
8059         * tests/test-wcrtomb-w32-4.sh: New file.
8060         * tests/test-wcrtomb-w32-5.sh: New file.
8061         * tests/test-wcrtomb-w32.c: New file.
8062         * modules/wcrtomb-tests (Files): Add them.
8063         (Makefile.am): Arrange to run these tests.
8064         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8065         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8066
8067 2011-02-20  Bruno Haible  <bruno@clisp.org>
8068
8069         wcrtomb: Enhance test.
8070         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8071
8072 2011-02-20  Bruno Haible  <bruno@clisp.org>
8073
8074         mbrtowc: Tiny optimization.
8075         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8076
8077 2011-02-20  Jim Meyering  <meyering@redhat.com>
8078
8079         test-exclude.c: remove unmatched #endif
8080         * tests/test-exclude.c: Remove stray #endif, left over from
8081         the change of a week ago.
8082
8083 2011-02-19  Jim Meyering  <meyering@redhat.com>
8084
8085         git-version-gen: skip "-dirty" check when appropriate
8086         * build-aux/git-version-gen: Don't run any git commands when the
8087         version string comes from .tarball-version.  Prior to this, we
8088         would run git update-index --refresh even from a just-unpacked
8089         tarball directory, and that could affect a .git/ directory in a
8090         parent of the build directory.  Reported by Mike Frysinger.
8091
8092 2011-02-19  Bruno Haible  <bruno@clisp.org>
8093
8094         unictype/property-byname: Reduce the size of the 'data' segment.
8095         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8096
8097 2011-02-19  Bruno Haible  <bruno@clisp.org>
8098
8099         unictype/scripts: Reduce the size of the 'data' segment.
8100         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8101         '%pic'.
8102         * lib/unictype/scripts_byname.gperf: Regenerated.
8103
8104 2011-02-19  Bruno Haible  <bruno@clisp.org>
8105
8106         stdint: Update documentation.
8107         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8108
8109 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         stdint: omit redundant check for wchar.h
8112         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8113         always tests whether wchar.h exists, so remove the now-redundant test.
8114
8115 2011-02-18  Bruno Haible  <bruno@clisp.org>
8116
8117         stdint: Cut dependency to module 'wchar'.
8118         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8119         include the necessary prerequisites.
8120         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8121         * modules/stdint (Depends-on): Remove wchar.
8122         (Makefile.am): Substitute HAVE_WCHAR_H.
8123         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8124
8125 2011-02-18  Eric Blake  <eblake@redhat.com>
8126
8127         longlong: skip, rather than fail, on cross-compilation
8128         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8129         when cross-compiling; regression from 2011-02-16.
8130
8131 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8132
8133         * NEWS: Mention 2011-02-08 change to stdlib.
8134
8135 2011-02-17  Bruno Haible  <bruno@clisp.org>
8136
8137         getloadavg: Add comments about platforms.
8138         * m4/getloadavg.m4: Add comment.
8139         * lib/getloadavg.c: Likewise.
8140
8141 2011-02-17  Bruno Haible  <bruno@clisp.org>
8142
8143         getloadavg: Fix link error on Solaris 2.6.
8144         * modules/getloadavg (Link): New section.
8145         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8146         linking test-getloadavg.
8147         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8148         getloadavg.
8149
8150 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8151
8152         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8153         It was 'int', but this doesn't match the IRIX 6.5 manual.
8154         Suggested by Bruno Haible in
8155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8156
8157 2011-02-17  Bruno Haible  <bruno@clisp.org>
8158
8159         havelib: Fix comments.
8160         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8161         change.
8162
8163 2011-02-17  Bruno Haible  <bruno@clisp.org>
8164
8165         havelib: Update config.rpath.
8166         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8167
8168 2011-02-17  Bruno Haible  <bruno@clisp.org>
8169
8170         getloadavg test: Add some plausibility checks.
8171         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8172         is improbable.
8173
8174 2011-02-16  Eric Blake  <eblake@redhat.com>
8175
8176         maintainer-makefile: make syntax-check a no-op from tarballs
8177         * top/maint.mk (no-vc-detected): New rule.
8178         (local-checks-available): Use it to avoid hanging if someone tries
8179         'make syntax-check' from a tarball.  Also append to any non-syntax
8180         checks already defined in cfg.mk.
8181
8182 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8183
8184         longlong: tune, particularly for common case of c99
8185
8186         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8187         or running anything if c99, or if unsigned long long int does not
8188         work.  In either case, we know the answer without further tests.
8189         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8190         it at most once, and use its results for both long long int and
8191         unsigned long long int.  This is more likely to be efficient in
8192         the common case where the program wants to check for both long
8193         long int and unsigned long long int.
8194         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8195         since the answer is already known.
8196
8197 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8198
8199         getloadavg: set errno
8200         * lib/getloadavg.c: Set errno when returning -1.  If no other
8201         error number looks appropriate, set it to ENOSYS if the getloadavg
8202         looks like it can't possibly ever work, ENOTSUP otherwise.
8203         Suggested by Bruno Haible in
8204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8205
8206         getloadavg: trim unused parts and speed up 'configure'
8207         * NEWS: Document this.
8208         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8209         always compiled if getloadavg is absent.
8210         Move test code to ...
8211         * tests/test-getloadavg.c: New file, containing previous
8212         contents of test from lib/getloadavg.c.  It also contains
8213         suggestions by Bruno Haible in
8214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8215         * modules/getloadavg-tests: New file.
8216         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8217         Do tests in the same order as they're needed for getloadavg.c.
8218         Omit setgid-related tests that generate symbols KMEM_GROUP,
8219         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8220         Do only the tests that are needed to see whether the system has
8221         getloadavg, moving the other tests into ...
8222         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8223         NLIST_NAME_UNION; nobody should be using it.  Do not define
8224         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8225         relevant, as the user of this module shouldn't care how getloadavg
8226         is implemented.
8227
8228         getloadavg: omit unused var
8229         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8230
8231 2011-02-15  Jim Meyering  <meyering@redhat.com>
8232
8233         doc: update users.txt
8234         * users.txt: Update iwhd's URL.
8235
8236 2011-02-13  Bruno Haible  <bruno@clisp.org>
8237
8238         Consistent macro naming for macros that use GCC __attribute__.
8239         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8240         _ATTRIBUTE_NONNULL_.
8241         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8242         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8243         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8244         ATTRIBUTE_DEPRECATED.
8245         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8246         ATTRIBUTE_NORETURN.
8247         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8248         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8249         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8250         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8251         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8252         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8253         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8254         ATTRIBUTE_SENTINEL.
8255         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8256         ATTRIBUTE_RETURN_CHECK.
8257         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8258         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8259         ATTRIBUTE_NORETURN.
8260         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8261         Reported by Paul Eggert.
8262
8263 2011-02-13  Bruno Haible  <bruno@clisp.org>
8264
8265         Don't interfere with a program's definition of __attribute__.
8266         * lib/argp.h (__attribute__): Remove definition.
8267         (_GL_ATTRIBUTE_FORMAT): New macro.
8268         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8269         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8270         (_GL_ATTRIBUTE_FORMAT): New macro.
8271         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8272         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8273         GCC 3 or newer.
8274         * lib/error.h (__attribute__): Remove definition.
8275         (_GL_ATTRIBUTE_FORMAT): New macro.
8276         (error, error_at_line): Use it.
8277         * lib/hash.h (__attribute__): Remove definition.
8278         (ATTRIBUTE_WUR): Update definition. Define always.
8279         * lib/openat.h (__attribute__): Remove definition.
8280         (ATTRIBUTE_NORETURN): Update definition. Define always.
8281         * lib/sigpipe-die.h (__attribute__): Remove definition.
8282         (ATTRIBUTE_NORETURN): Update definition. Define always.
8283         * lib/vasnprintf.h (__attribute__): Remove definition.
8284         (_GL_ATTRIBUTE_FORMAT): New macro.
8285         (asnprintf, vasnprintf): Use it.
8286         * lib/xalloc.h (__attribute__): Remove definition.
8287         (ATTRIBUTE_NORETURN): Update definition. Define always.
8288         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8289         * lib/xmemdup0.h (__attribute__): Remove definition.
8290         (ATTRIBUTE_NORETURN): Update definition. Define always.
8291         * lib/xprintf.h (__attribute__): Remove definition.
8292         (_GL_ATTRIBUTE_FORMAT): New macro.
8293         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8294         * lib/xstrtol.h (__attribute__): Remove definition.
8295         (ATTRIBUTE_NORETURN): Update definition. Define always.
8296         * lib/xvasprintf.h (__attribute__): Remove definition.
8297         (_GL_ATTRIBUTE_FORMAT): New macro.
8298         (xasprintf, xvasprintf): Use it.
8299         * tests/test-argmatch.c (__attribute__): Remove definition.
8300         (ATTRIBUTE_NORETURN): Update definition. Define always.
8301         * tests/test-exclude.c (__attribute__): Remove definition.
8302         (ATTRIBUTE_NORETURN): Update definition. Define always.
8303         Reported by Paul Eggert.
8304
8305 2011-02-13  Bruno Haible  <bruno@clisp.org>
8306
8307         mbrtowc: Add more tests for native Windows platforms.
8308         * tests/test-mbrtowc-w32-1.sh: New file.
8309         * tests/test-mbrtowc-w32-2.sh: New file.
8310         * tests/test-mbrtowc-w32-3.sh: New file.
8311         * tests/test-mbrtowc-w32-4.sh: New file.
8312         * tests/test-mbrtowc-w32-5.sh: New file.
8313         * tests/test-mbrtowc-w32.c: New file.
8314         * modules/mbrtowc-tests (Files): Add them.
8315         (Makefile.am): Arrange to run these tests.
8316         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8317         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8318
8319 2011-02-13  Bruno Haible  <bruno@clisp.org>
8320
8321         mbrtowc: Work around native Windows bug.
8322         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8323         guess when no suitable locale for testing was found.
8324         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8325
8326 2011-02-13  Bruno Haible  <bruno@clisp.org>
8327
8328         mbsinit: Work around mingw bug.
8329         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8330         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8331         Windows.
8332         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8333
8334 2011-02-13  Bruno Haible  <bruno@clisp.org>
8335
8336         mbsinit: Don't crash for a NULL argument.
8337         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8338         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8339
8340 2011-02-13  Bruno Haible  <bruno@clisp.org>
8341
8342         Don't interfere with a program's definition of __attribute__.
8343         * lib/stdio.in.h (__attribute__): Remove definition.
8344         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8345         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8346         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8347         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8348         * lib/string.in.h (__attribute__): Remove definition.
8349         Reported by Paul Eggert.
8350
8351 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8352
8353         stdlib: don't get in the way of non-GCC __attribute__
8354         See thread starting at
8355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8356         Revert previous stdlib change, installing the following instead:
8357         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8358         to get in the way of a non-GCC compiler that supports __attribute__.
8359         (_GL_ATTRIBUTE_RETURN): New macro.
8360         (_Exit): Use it instead of __attribute__.
8361
8362 2011-02-12  Bruno Haible  <bruno@clisp.org>
8363
8364         quotearg test: Avoid test failure on mingw.
8365         * tests/test-quotearg.sh: Convert the locale identifier from native
8366         Windows syntax to Unix syntax.
8367
8368 2011-02-12  Bruno Haible  <bruno@clisp.org>
8369
8370         setlocale: Prefer gnulib's override over libintl's override.
8371         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8372         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8373         GNULIB_defined_setlocale is set.
8374
8375 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8376
8377         stdlib: support non-GCC __attribute__
8378
8379         Fix a serious and tricky problem encountered when attempting to
8380         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8381         5.5, but it crashed due to memory corruption on Solaris 10 with
8382         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8383         bits that are otherwise zero.  This tagging is optional inside
8384         Emacs but is preferred and is used when __attribute__ ((__aligned
8385         (8))) works, as it does with both recent-enough GCC and with Sun C
8386         5.11.  However, Sun C 5.11 is not GCC and does not #define
8387         __GNUC__ and __GNUC_MINOR__.
8388
8389         When I added the getloadavg module to Emacs, it brought in
8390         stdlib.in.h, which contained this fragment:
8391
8392            #ifndef __attribute__
8393            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8394            #  define __attribute__(Spec)   /* empty */
8395            # endif
8396            #endif
8397
8398         When files that include <stdlib.h> were compiled with Sun C 5.11,
8399         the above code disabled __attribute__ ((__aligned (8))), which
8400         caused variables to not be properly aligned, which eventually led
8401         to the pointer corruption mentioned above.  (This was a bit hard
8402         to diagnose, unfortunately.)
8403
8404         Several "#define __attribute__(X) /* empty */" code snippets need
8405         to be eradicated from Gnulib to work with non-GCC compilers that
8406         support __attribute__.  The Autoconf way to do this is to test for
8407         each kind of attribute that we want support for, and selectively
8408         enable that in source code.
8409
8410         Fix this problem just for stdlib.h, by adding a test for the
8411         __noreturn__ attribute, and change stdlib.in.h to use that test
8412         when needed.  This technique can be easily generalized to the
8413         other *.in.h files and attributes, and a similar technique can be
8414         used for *.h and *.c files.  This patch is enough to solve the
8415         problem for Emacs + getloadavg, and I thought I'd publish it for
8416         feedback before undertaking further, similar fixes in other
8417         modules.
8418
8419         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8420         because it's not needed for stdlib.h.  It merely substitutes the
8421         value directly into stdlib.h.  We may well need to #define it, or
8422         similar symbols, for other modules, but it's nice to also have an
8423         option to not #define it for applications like Emacs that do not
8424         need it.
8425
8426         * lib/stdlib.in.h (__attribute__): Do not #define.
8427         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8428         be defined only if the _Exit module is also used.
8429         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8431         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8432         platforms.
8433         * modules/_Exit (Files): Add m4/attribute.m4.
8434         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8435         * m4/attribute.m4: New file.
8436
8437 2011-02-12  Bruno Haible  <bruno@clisp.org>
8438
8439         wcsrtombs: Work around bug on native Windows.
8440         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8441         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8442         instead of len.
8443         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8444
8445 2011-02-12  Bruno Haible  <bruno@clisp.org>
8446
8447         mbsrtowcs: Work around bug on native Windows.
8448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8449         against mingw bug.
8450         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8451
8452 2011-02-12  Bruno Haible  <bruno@clisp.org>
8453
8454         Avoid setlocale bugs in tests.
8455         * modules/btowc (Dependencies): Add setlocale.
8456         * modules/c-strcase (Dependencies): Likewise.
8457         * modules/mbmemcasecmp (Dependencies): Likewise.
8458         * modules/mbmemcasecoll (Dependencies): Likewise.
8459         * modules/mbrtowc (Dependencies): Likewise.
8460         * modules/mbscasecmp (Dependencies): Likewise.
8461         * modules/mbscasestr (Dependencies): Likewise.
8462         * modules/mbschr (Dependencies): Likewise.
8463         * modules/mbscspn (Dependencies): Likewise.
8464         * modules/mbsinit (Dependencies): Likewise.
8465         * modules/mbsncasecmp (Dependencies): Likewise.
8466         * modules/mbsnrtowcs (Dependencies): Likewise.
8467         * modules/mbspbrk (Dependencies): Likewise.
8468         * modules/mbspcasecmp (Dependencies): Likewise.
8469         * modules/mbsrchr (Dependencies): Likewise.
8470         * modules/mbsrtowcs (Dependencies): Likewise.
8471         * modules/mbsspn (Dependencies): Likewise.
8472         * modules/mbsstr (Dependencies): Likewise.
8473         * modules/nl_langinfo (Dependencies): Likewise.
8474         * modules/quotearg (Dependencies): Likewise.
8475         * modules/unicase/locale-language (Dependencies): Likewise.
8476         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8477         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8478         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8479         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8480         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8481         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8482         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8483         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8484         * modules/vasnprintf-posix (Dependencies): Likewise.
8485         * modules/wcrtomb (Dependencies): Likewise.
8486         * modules/wcsnrtombs (Dependencies): Likewise.
8487         * modules/wcsrtombs (Dependencies): Likewise.
8488
8489 2011-02-12  Bruno Haible  <bruno@clisp.org>
8490
8491         setlocale: Workaround native Windows bug.
8492         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8493         succeeds but sets LC_CTYPE to "C", report a failure.
8494         * tests/test-setlocale2.sh: New file.
8495         * tests/test-setlocale2.c: New file.
8496         * modules/setlocale-tests (Files): Add the new files.
8497         (Makefile.am): Enable test-setlocale2.sh test.
8498         * doc/posix-functions/setlocale.texi: Mention workaround.
8499
8500 2011-02-11  Bruno Haible  <bruno@clisp.org>
8501
8502         Tests for module 'setlocale'.
8503         * modules/setlocale-tests: New file.
8504         * tests/test-setlocale1.sh: New file.
8505         * tests/test-setlocale1.c: New file.
8506
8507         New module 'setlocale'.
8508         * lib/locale.in.h (setlocale): New declaration.
8509         * lib/setlocale.c: New file, based on
8510         gettext/gettext-runtime/intl/setlocale.c.
8511         * m4/setlocale.m4: New file.
8512         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8513         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8514         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8515         REPLACE_SETLOCALE.
8516         * modules/setlocale: New file.
8517         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8518         * doc/posix-functions/setlocale.texi: Mention the new module.
8519
8520 2011-02-11  Bruno Haible  <bruno@clisp.org>
8521
8522         Prepare for locale dependent tests on mingw.
8523         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8524         because it has the wrong locale encoding.
8525         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8526         French_France.1252 instead of "fr".
8527         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8528         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8529         because it has the wrong locale encoding.
8530         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8531         native Windows, try Turkish_Turkey.65001.
8532         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8533         Chinese_China.54936.
8534
8535         Prepare for locale dependent tests on mingw.
8536         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8537         differently.
8538         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8539         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8540         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8541         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8542
8543 2011-02-11  Eric Blake  <eblake@redhat.com>
8544
8545         strptime: avoid compiler warnings
8546         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8547         compiler warnings about dead code.
8548         Reported by Daniel P. Berrange.
8549
8550 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8551
8552         doc: update users.txt
8553         * users.txt: Add rcs.
8554
8555 2011-02-10  John W. Eaton  <jwe@gnu.org>
8556
8557         doc: update users.txt
8558         * users.txt: Add octave.
8559
8560 2011-02-10  Jim Meyering  <meyering@redhat.com>
8561
8562         doc: update users.txt
8563         * users.txt: Add iwhd.
8564
8565 2011-02-09  Bruno Haible  <bruno@clisp.org>
8566
8567         gnulib-tool: Make copyright notice adjustment more robust.
8568         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8569         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8570         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8571         License".
8572         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8573
8574 2011-02-06  Bruno Haible  <bruno@clisp.org>
8575
8576         New module 'towctrans'.
8577         * modules/towctrans: New file.
8578         * lib/wctype.in.h (towctrans): New declaration.
8579         * lib/towctrans.c: New file.
8580         * lib/towctrans-impl.h: New file.
8581         * m4/towctrans.m4: New file.
8582         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8583         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8584         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8585         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8586         * doc/posix-functions/towctrans.texi: Mention the new module.
8587
8588 2011-02-06  Bruno Haible  <bruno@clisp.org>
8589
8590         New module 'wctrans'.
8591         * modules/wctrans: New file.
8592         * lib/wctype.in.h (wctrans): New declaration.
8593         * lib/wctrans.c: New file.
8594         * lib/wctrans-impl.h: New file.
8595         * m4/wctrans.m4: New file.
8596         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8597         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8598         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8599         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8600         * doc/posix-functions/wctrans.texi: Mention the new module.
8601
8602 2011-02-06  Bruno Haible  <bruno@clisp.org>
8603
8604         New module 'iswctype'.
8605         * modules/iswctype: New file.
8606         * lib/wctype.in.h (iswctype): New declaration.
8607         * lib/iswctype.c: New file.
8608         * lib/iswctype-impl.h: New file.
8609         * m4/iswctype.m4: New file.
8610         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8611         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8612         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8613         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8614         * doc/posix-functions/iswctype.texi: Mention the new module and the
8615         HP-UX 11.00 problem.
8616
8617 2011-02-06  Bruno Haible  <bruno@clisp.org>
8618
8619         New module 'wctype'.
8620         * modules/wctype: Change to represent the wctype() substitute.
8621         * lib/wctype.in.h (wctype): New declaration.
8622         * lib/wctype.c: New file.
8623         * lib/wctype-impl.h: New file.
8624         * m4/wctype.m4: New file.
8625         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8626         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8627         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8628         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8629         * doc/posix-functions/wctype.texi: Mention the new module and the
8630         HP-UX 11.00 problem.
8631
8632 2011-02-06  Bruno Haible  <bruno@clisp.org>
8633
8634         wctype-h: Ensure wctype_t and wctrans_t are defined.
8635         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8636         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8637         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8638         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8639         HAVE_WCTRANS_T.
8640         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8641
8642 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8643
8644         flock: fix license typo
8645
8646         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8647         omitted.
8648
8649 2011-02-08  Bruno Haible  <bruno@clisp.org>
8650
8651         Split large sed scripts, for HP-UX sed.
8652         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8653         to avoid HP-UX limit of 99 commands, in the near future.
8654         * modules/stdlib (Makefile.am): Likewise.
8655         * modules/unistd (Makefile.am): Likewise.
8656         * modules/wchar (Makefile.am): Likewise.
8657         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8658         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8659         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8660
8661 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8662             Bruno Haible  <bruno@clisp.org>
8663
8664         stdlib: improve random_r modularization
8665         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8666         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8667         you also need the random_r module to get this material right.
8668         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8669         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8670         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8671
8672 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8673
8674         stdlib: don't depend on stdint
8675         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8676         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8677         be independent of whether stdint.h is needed.
8678         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8679         here, instead of ...
8680         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8681         struct random_data should be using the random_r module, not just
8682         the stdlib module (which wouldn't make sense: what package needs
8683         just struct random_data without also needing random_r?).
8684         * modules/stdlib (Depends-on): Remove stdint.
8685
8686         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8687         See the thread rooted at
8688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8689         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8690         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8691         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8692         __VMS)); previously it was always included (via fcntl--.h).
8693         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8694         hand; this is good enough for load averages.  Also, do not use
8695         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8696         flags directly if available and don't bother otherwise.  (Packages
8697         that need the extra reliability should use the modules that define
8698         these flags on older platforms that lack them.)
8699         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8700         fcntl-safer.
8701
8702 2011-02-08  Jim Meyering  <meyering@redhat.com>
8703
8704         di-set.h, ino-map.h: add multiple-inclusion guard
8705         Technically, the guard is required only for ino-map.h, due to its
8706         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8707         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8708         * lib/ino-map.h: Likewise.
8709
8710 2011-02-06  Bruno Haible  <bruno@clisp.org>
8711
8712         iswblank: Ensure declaration on glibc systems.
8713         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8714         * modules/iswblank (Dependencies): Add 'extensions'.
8715         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8716
8717 2011-02-06  Bruno Haible  <bruno@clisp.org>
8718
8719         New module 'iswblank'.
8720         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8721         * modules/iswblank: New file.
8722         * modules/wctype-h (Files): Remove lib/iswblank.c.
8723         (Makefile.am): Substitute GNULIB_ISWBLANK.
8724         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8725         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8726         (gl_WCTYPE_H_DEFAULTS): New macro.
8727         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8728         * modules/iswblank-tests: New file.
8729         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8730         * tests/test-wctype-h.c (main): Remove iswblank tests.
8731         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8732         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8733         of 'wctype-h'.
8734         * NEWS: Mention the change.
8735         * modules/mbchar (Depends-on): Add iswblank.
8736
8737 2011-02-08  Bruno Haible  <bruno@clisp.org>
8738
8739         di-set tests: Refactor.
8740         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8741         unnecessary includes.
8742         (ASSERT): Remove macro.
8743         (main): Make C90 compliant by avoiding variable declaration after
8744         statement.
8745         * modules/di-set-tests (Files): Add tests/macros.h.
8746
8747 2011-02-08  Bruno Haible  <bruno@clisp.org>
8748
8749         ino-map tests: Refactor.
8750         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8751         unnecessary includes.
8752         (ASSERT): Remove macro.
8753         (main): Make C90 compliant by avoiding variable declaration after
8754         statement.
8755         * modules/ino-map-tests (Files): Add tests/macros.h.
8756
8757 2011-02-08  Jim Meyering  <meyering@redhat.com>
8758
8759         di-set: add "const" to a cast
8760         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8761         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8762
8763 2011-02-06  Bruno Haible  <bruno@clisp.org>
8764
8765         Rename module 'wctype' to 'wctype-h'.
8766         * modules/wctype-h: Renamed from modules/wctype.
8767         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8768         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8769         (Files, Depends-on, Makefile.am): Update.
8770         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8771         (Files, Makefile.am): Update.
8772         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8773         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8774         * doc/posix-headers/wctype.texi: Update.
8775         * doc/posix-functions/iswalnum.texi: Update.
8776         * doc/posix-functions/iswalpha.texi: Update.
8777         * doc/posix-functions/iswblank.texi: Update.
8778         * doc/posix-functions/iswcntrl.texi: Update.
8779         * doc/posix-functions/iswdigit.texi: Update.
8780         * doc/posix-functions/iswgraph.texi: Update.
8781         * doc/posix-functions/iswlower.texi: Update.
8782         * doc/posix-functions/iswprint.texi: Update.
8783         * doc/posix-functions/iswpunct.texi: Update.
8784         * doc/posix-functions/iswspace.texi: Update.
8785         * doc/posix-functions/iswupper.texi: Update.
8786         * doc/posix-functions/iswxdigit.texi: Update.
8787         * doc/posix-functions/towlower.texi: Update.
8788         * doc/posix-functions/towupper.texi: Update.
8789         * NEWS: Mention the change.
8790         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8791         * modules/mbchar (Dependencies): Likewise.
8792         * modules/mbswidth (Dependencies): Likewise.
8793         * modules/quotearg (Dependencies): Likewise.
8794         * modules/regex (Dependencies): Likewise.
8795         * modules/wcscasecmp (Dependencies): Likewise.
8796         * modules/wcsncasecmp (Dependencies): Likewise.
8797         * modules/wcwidth (Dependencies): Likewise.
8798
8799 2011-02-06  Bruno Haible  <bruno@clisp.org>
8800
8801         New module 'wcswidth'.
8802         * modules/wcswidth: New file.
8803         * lib/wchar.in.h (wcswidth): New declaration.
8804         * lib/wcswidth.c: New file.
8805         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8806         * m4/wcswidth.m4: New file.
8807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8809         REPLACE_WCSWIDTH.
8810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8811         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8812         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8813         * doc/posix-functions/wcswidth.texi: Mention the new module.
8814
8815 2011-02-06  Bruno Haible  <bruno@clisp.org>
8816
8817         New module 'wcstok'.
8818         * modules/wcstok: New file.
8819         * lib/wchar.in.h (wcstok): New declaration.
8820         * lib/wcstok.c: New file.
8821         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8822         * m4/wcstok.m4: New file.
8823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8826         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8827         * doc/posix-functions/wcstok.texi: Mention the new module.
8828
8829 2011-02-06  Bruno Haible  <bruno@clisp.org>
8830
8831         New module 'wcsstr'.
8832         * modules/wcsstr: New file.
8833         * lib/wchar.in.h (wcsstr): New declaration.
8834         * lib/wcsstr.c: New file.
8835         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8836         * m4/wcsstr.m4: New file.
8837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8840         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8841         * doc/posix-functions/wcsstr.texi: Mention the new module.
8842
8843 2011-02-06  Bruno Haible  <bruno@clisp.org>
8844
8845         New module 'wcspbrk'.
8846         * modules/wcspbrk: New file.
8847         * lib/wchar.in.h (wcspbrk): New declaration.
8848         * lib/wcspbrk.c: New file.
8849         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8850         * m4/wcspbrk.m4: New file.
8851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8854         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8855         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8856
8857 2011-02-06  Bruno Haible  <bruno@clisp.org>
8858
8859         New module 'wcsspn'.
8860         * modules/wcsspn: New file.
8861         * lib/wchar.in.h (wcsspn): New declaration.
8862         * lib/wcsspn.c: New file.
8863         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8864         * m4/wcsspn.m4: New file.
8865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8868         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8869         * doc/posix-functions/wcsspn.texi: Mention the new module.
8870
8871 2011-02-06  Bruno Haible  <bruno@clisp.org>
8872
8873         New module 'wcscspn'.
8874         * modules/wcscspn: New file.
8875         * lib/wchar.in.h (wcscspn): New declaration.
8876         * lib/wcscspn.c: New file.
8877         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8878         * m4/wcscspn.m4: New file.
8879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8882         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8883         * doc/posix-functions/wcscspn.texi: Mention the new module.
8884
8885 2011-02-06  Bruno Haible  <bruno@clisp.org>
8886
8887         New module 'wcsrchr'.
8888         * modules/wcsrchr: New file.
8889         * lib/wchar.in.h (wcsrchr): New declaration.
8890         * lib/wcsrchr.c: New file.
8891         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8892         * m4/wcsrchr.m4: New file.
8893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8896         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8897         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8898
8899 2011-02-06  Bruno Haible  <bruno@clisp.org>
8900
8901         New module 'wcschr'.
8902         * modules/wcschr: New file.
8903         * lib/wchar.in.h (wcschr): New declaration.
8904         * lib/wcschr.c: New file.
8905         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8906         * m4/wcschr.m4: New file.
8907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8910         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8911         * doc/posix-functions/wcschr.texi: Mention the new module.
8912
8913 2011-02-06  Bruno Haible  <bruno@clisp.org>
8914
8915         New module 'wcsdup'.
8916         * modules/wcsdup: New file.
8917         * lib/wchar.in.h (wcsdup): New declaration.
8918         * lib/wcsdup.c: New file.
8919         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8920         * m4/wcsdup.m4: New file.
8921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8924         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8925         * doc/posix-functions/wcsdup.texi: Mention the new module.
8926
8927 2011-02-06  Bruno Haible  <bruno@clisp.org>
8928
8929         New module 'wcsxfrm'.
8930         * modules/wcsxfrm: New file.
8931         * lib/wchar.in.h (wcsxfrm): New declaration.
8932         * lib/wcsxfrm.c: New file.
8933         * lib/wcsxfrm-impl.h: New file.
8934         * m4/wcsxfrm.m4: New file.
8935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8938         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8939         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8940
8941 2011-02-06  Bruno Haible  <bruno@clisp.org>
8942
8943         New module 'wcscoll'.
8944         * modules/wcscoll: New file.
8945         * lib/wchar.in.h (wcscoll): New declaration.
8946         * lib/wcscoll.c: New file.
8947         * lib/wcscoll-impl.h: New file.
8948         * m4/wcscoll.m4: New file.
8949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8952         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8953         * doc/posix-functions/wcscoll.texi: Mention the new module.
8954
8955 2011-02-06  Bruno Haible  <bruno@clisp.org>
8956
8957         New module 'wcsncasecmp'.
8958         * modules/wcsncasecmp: New file.
8959         * lib/wchar.in.h (wcsncasecmp): New declaration.
8960         * lib/wcsncasecmp.c: New file.
8961         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8962         * m4/wcsncasecmp.m4: New file.
8963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8966         HAVE_WCSNCASECMP.
8967         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8968         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8969
8970 2011-02-06  Bruno Haible  <bruno@clisp.org>
8971
8972         New module 'wcscasecmp'.
8973         * modules/wcscasecmp: New file.
8974         * lib/wchar.in.h (wcscasecmp): New declaration.
8975         * lib/wcscasecmp.c: New file.
8976         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8977         * m4/wcscasecmp.m4: New file.
8978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8981         HAVE_WCSCASECMP.
8982         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8983         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8984
8985 2011-02-05  Bruno Haible  <bruno@clisp.org>
8986
8987         New module 'wcsncmp'.
8988         * modules/wcsncmp: New file.
8989         * lib/wchar.in.h (wcsncmp): New declaration.
8990         * lib/wcsncmp.c: New file.
8991         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8992         * m4/wcsncmp.m4: New file.
8993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8996         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8997         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8998
8999 2011-02-05  Bruno Haible  <bruno@clisp.org>
9000
9001         New module 'wcscmp'.
9002         * modules/wcscmp: New file.
9003         * lib/wchar.in.h (wcscmp): New declaration.
9004         * lib/wcscmp.c: New file.
9005         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9006         * m4/wcscmp.m4: New file.
9007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9010         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9011         * doc/posix-functions/wcscmp.texi: Mention the new module.
9012
9013 2011-02-05  Bruno Haible  <bruno@clisp.org>
9014
9015         New module 'wcsncat'.
9016         * modules/wcsncat: New file.
9017         * lib/wchar.in.h (wcsncat): New declaration.
9018         * lib/wcsncat.c: New file.
9019         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9020         * m4/wcsncat.m4: New file.
9021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9024         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9025         * doc/posix-functions/wcsncat.texi: Mention the new module.
9026
9027 2011-02-05  Bruno Haible  <bruno@clisp.org>
9028
9029         New module 'wcscat'.
9030         * modules/wcscat: New file.
9031         * lib/wchar.in.h (wcscat): New declaration.
9032         * lib/wcscat.c: New file.
9033         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9034         * m4/wcscat.m4: New file.
9035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9038         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9039         * doc/posix-functions/wcscat.texi: Mention the new module.
9040
9041 2011-02-05  Bruno Haible  <bruno@clisp.org>
9042
9043         New module 'wcpncpy'.
9044         * modules/wcpncpy: New file.
9045         * lib/wchar.in.h (wcpncpy): New declaration.
9046         * lib/wcpncpy.c: New file.
9047         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9048         * m4/wcpncpy.m4: New file.
9049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9051         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9052         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9053         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9054
9055 2011-02-05  Bruno Haible  <bruno@clisp.org>
9056
9057         New module 'wcsncpy'.
9058         * modules/wcsncpy: New file.
9059         * lib/wchar.in.h (wcsncpy): New declaration.
9060         * lib/wcsncpy.c: New file.
9061         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9062         * m4/wcsncpy.m4: New file.
9063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9066         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9067         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9068
9069 2011-02-05  Bruno Haible  <bruno@clisp.org>
9070
9071         New module 'wcpcpy'.
9072         * modules/wcpcpy: New file.
9073         * lib/wchar.in.h (wcpcpy): New declaration.
9074         * lib/wcpcpy.c: New file.
9075         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9076         * m4/wcpcpy.m4: New file.
9077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9079         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9080         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9081         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9082
9083 2011-02-05  Bruno Haible  <bruno@clisp.org>
9084
9085         New module 'wcscpy'.
9086         * modules/wcscpy: New file.
9087         * lib/wchar.in.h (wcscpy): New declaration.
9088         * lib/wcscpy.c: New file.
9089         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9090         * m4/wcscpy.m4: New file.
9091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9094         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9095         * doc/posix-functions/wcscpy.texi: Mention the new module.
9096
9097 2011-02-05  Bruno Haible  <bruno@clisp.org>
9098
9099         New module 'wcsnlen'.
9100         * modules/wcsnlen: New file.
9101         * lib/wchar.in.h (wcsnlen): New declaration.
9102         * lib/wcsnlen.c: New file.
9103         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9104         * m4/wcsnlen.m4: New file.
9105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9108         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9109         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9110
9111 2011-02-05  Bruno Haible  <bruno@clisp.org>
9112
9113         New module 'wcslen'.
9114         * modules/wcslen: New file.
9115         * lib/wchar.in.h (wcslen): New declaration.
9116         * lib/wcslen.c: New file.
9117         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9118         * m4/wcslen.m4: New file.
9119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9122         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9123         * doc/posix-functions/wcslen.texi: Mention the new module.
9124
9125 2011-02-05  Bruno Haible  <bruno@clisp.org>
9126
9127         New module 'wmemset'.
9128         * modules/wmemset: New file.
9129         * lib/wchar.in.h (wmemset): New declaration.
9130         * lib/wmemset.c: New file.
9131         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9132         * m4/wmemset.m4: New file.
9133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9135         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9136         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9137         * doc/posix-functions/wmemset.texi: Mention the new module.
9138
9139 2011-02-05  Bruno Haible  <bruno@clisp.org>
9140
9141         New module 'wmemmove'.
9142         * modules/wmemmove: New file.
9143         * lib/wchar.in.h (wmemmove): New declaration.
9144         * lib/wmemmove.c: New file.
9145         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9146         * m4/wmemmove.m4: New file.
9147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9149         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9150         HAVE_WMEMMOVE.
9151         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9152         * doc/posix-functions/wmemmove.texi: Mention the new module.
9153
9154 2011-02-05  Bruno Haible  <bruno@clisp.org>
9155
9156         New module 'wmemcpy'.
9157         * modules/wmemcpy: New file.
9158         * lib/wchar.in.h (wmemcpy): New declaration.
9159         * lib/wmemcpy.c: New file.
9160         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9161         * m4/wmemcpy.m4: New file.
9162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9164         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9165         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9166         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9167
9168 2011-02-05  Bruno Haible  <bruno@clisp.org>
9169
9170         New module 'wmemcmp'.
9171         * modules/wmemcmp: New file.
9172         * lib/wchar.in.h (wmemcmp): New declaration.
9173         * lib/wmemcmp.c: New file.
9174         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9175         * m4/wmemcmp.m4: New file.
9176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9178         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9179         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9180         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9181
9182 2011-02-07  Jim Meyering  <meyering@redhat.com>
9183
9184         di-set, ino-map: new modules, from coreutils
9185         * lib/di-set.c: New file.
9186         * lib/di-set.h: Likewise.
9187         * lib/ino-map.c: Likewise.
9188         * lib/ino-map.h: Likewise.
9189         * modules/di-set: Likewise.
9190         * modules/di-set-tests: Likewise.
9191         * modules/ino-map: Likewise.
9192         * modules/ino-map-tests: Likewise.
9193         * tests/test-di-set.c: Likewise.
9194         * tests/test-ino-map.c: Likewise.
9195
9196 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9197
9198         getloadavg: merge minor changes from Emacs
9199
9200         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9201         (getloadavg): Use memset, not bzero.
9202
9203         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9204         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9205         clash (bug#86).
9206
9207 2010-11-14  Bruno Haible  <bruno@clisp.org>
9208
9209         Allow multiple gnulib generated replacements to coexist.
9210         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9211         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9212         * lib/langinfo.in.h (nl_item): Likewise.
9213         * lib/math.in.h (_NaN, NAN): Likewise.
9214         * lib/netdb.in.h (struct addrinfo): Likewise.
9215         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9216         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9217         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9218         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9219         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9220         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9221         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9222         pthread_mutexattr_init, pthread_mutexattr_settype,
9223         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9224         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9225         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9226         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9227         * lib/sched.in.h (struct sched_param): Likewise.
9228         * lib/se-selinux.in.h (security_class_t, security_context_t,
9229         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9230         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9231         lsetfilecon, fsetfilecon, security_check_context,
9232         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9233         Likewise.
9234         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9235         Likewise.
9236         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9237         _gl_function_taking_int_returning_void_t, union sigval,
9238         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9239         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9240         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9241         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9242         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9243         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9244         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9245         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9246         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9247         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9248         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9249         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9250         socklen_t, rpl_fd_isset): Likewise.
9251         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9252         * lib/sys_time.in.h (struct timeval): Likewise.
9253         * lib/sys_times.in.h (struct tms): Likewise.
9254         * lib/sys_utsname.in.h (struct utsname):
9255         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9256         * lib/unistd.in.h (getpagesize): Likewise.
9257         * lib/wchar.in.h (mbstate_t): Likewise.
9258         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9259         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9260         towlower, towupper): Likewise.
9261         Reported by Sam Steingold <sds@gnu.org>.
9262
9263 2011-02-05  Eric Blake  <eblake@redhat.com>
9264
9265         unsetenv: work around Haiku issues
9266         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9267         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9268
9269 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9270
9271         libposix: avoid calling error() within libposix
9272         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9273         is defined.
9274
9275 2011-02-05  Eric Blake  <eblake@redhat.com>
9276
9277         strerror_r-posix: port to cygwin
9278         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9279         implementation.
9280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9281         * tests/test-strerror_r.c (main): Fix test.
9282         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9283         issue.
9284
9285 2011-02-05  Bruno Haible  <bruno@clisp.org>
9286
9287         New module 'wmemchr'.
9288         * modules/wmemchr: New file.
9289         * lib/wchar.in.h (wmemchr): New declaration.
9290         * lib/wmemchr.c: New file.
9291         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9292         * m4/wmemchr.m4: New file.
9293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9295         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9296         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9297         * doc/posix-functions/wmemchr.texi: Mention the new module.
9298
9299 2011-02-04  Eric Blake  <eblake@redhat.com>
9300
9301         fdopendir: detect FreeBSD bug
9302         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9303         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9304
9305 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9306
9307         stdbool: do not define HAVE_STDBOOL_H
9308         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9309         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9310         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9311         imported from the latest Autoconf git.  It was motivated by Emacs,
9312         which uses gnulib but does not need HAVE_STDBOOL_H.
9313
9314 2011-02-04  Bruno Haible  <bruno@clisp.org>
9315
9316         wcsnrtombs: Prepare for new module wwcsnrtombs.
9317         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9318         * lib/wcsnrtombs.c: Include it.
9319         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9320
9321         wcsrtombs: Prepare for new module wwcsrtombs.
9322         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9323         * lib/wcsrtombs.c: Include it.
9324         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9325
9326         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9327         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9328         * lib/mbsnrtowcs.c: Include it.
9329         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9330
9331         mbsrtowcs: Prepare for new module mbsrtowwcs.
9332         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9333         * lib/mbsrtowcs.c: Include it.
9334         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9335
9336 2011-02-04  Bruno Haible  <bruno@clisp.org>
9337
9338         vasnprintf: Reduce use of malloc for small format strings.
9339         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9340         (arguments): Add room for the first 7 arguments.
9341         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9342         (char_directives, u8_directives, u16_directives, u32_directives): Add
9343         room for the first 7 directives.
9344         * lib/printf-parse.c: Include <string.h>.
9345         (PRINTF_PARSE): Change memory handling code so that it uses the first
9346         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9347         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9348         Reported by Pádraig Brady <P@draigbrady.com>.
9349
9350 2011-01-31  Eric Blake  <eblake@redhat.com>
9351
9352         dup2: work around Haiku bug
9353         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9354         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9355         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9356         * tests/test-dup2.c (main): Enhance test.
9357
9358 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9359
9360         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9361         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9362         declared by eglibc 2.11.2.
9363         * lib/stdio.in.h: Likewise.
9364
9365 2011-01-31  Eric Blake  <eblake@redhat.com>
9366
9367         ignore-value: add missing test dependency
9368         * tests/test-ignore-value.c: Revert previous change; stdio.h
9369         provides off_t.
9370         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9371
9372 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         mktime: clarify long_int width checking
9375         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9376         the top level, to make it clearer that the assumption about
9377         long_int width is being checked.  See
9378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9379
9380 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9381
9382         ignore-value: Fix self-test.
9383         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9384
9385 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9386
9387         TYPE_MAXIMUM: avoid theoretically undefined behavior
9388         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9389         negative number, which the C Standard says has undefined behavior.
9390         In practice this is not a problem, but might as well do it by the book.
9391         Reported by Rich Felker and Eric Blake; see
9392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9393         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9394         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9396         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9397         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9398         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9399
9400         mktime: #undef mktime before #defining it
9401         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9402
9403         mktime: systematically normalize tm_isdst comparisons
9404         * lib/mktime.c (isdst_differ): New function.
9405         (__mktime_internal): Use it systematically for all isdst comparisons.
9406         This completes the fix for libc BZ #6723, and removes the need for
9407         normalizing tm_isdst.  See
9408         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9409         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9410
9411         mktime: fix some integer overflow issues and sidestep the rest
9412
9413         This was prompted by a bug report by Benjamin Lindner for MinGW
9414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9415         His bug is due to signed integer overflow (0 - INT_MIN), and I
9416         I scanned through mktime.c looking for other integer overflow
9417         problems, fixing all the bugs I found.
9418
9419         Although the C Standard says the resulting code is still not safe
9420         in the presence of integer overflow, in practice it should be good
9421         enough for all real-world two's-complement implementations, except
9422         for debugging environments that deliberately trap on integer
9423         overflow (e.g., gcc -ftrapv).
9424
9425         * lib/mktime.c (WRAPV): New macro.
9426         (SHR): Also check that long_int and time_t shift right in the
9427         usual way, before using the fast-but-unportable method.
9428         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9429         used.  The code already assumed two's complement, so there's
9430         no need to test for alternatives.  All uses removed.
9431         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9432         the C standard.  Problem reported by Rich Felker in
9433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9434         (twos_complement_arithmetic): Also check long_int and time_t.
9435         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9436         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9437         (__mktime_internal): Avoid integer overflow with unary subtraction
9438         in two instances where -1 - X is an adequate replacement for -X,
9439         since the calculations are approximate.
9440
9441 2011-01-29  Eric Blake  <eblake@redhat.com>
9442
9443         mktime: avoid infinite loop
9444         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9445         type; behavior is still undefined but portable to all known targets.
9446         Reported by Rich Felker.
9447
9448 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9449
9450         rename, unlink, same-inode: Relicense.
9451         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9452         * modules/unlink (License): Likewise.
9453         * modules/same-inode (License): Likewise.
9454
9455 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         mktime: avoid problems on NetBSD 5 / i386
9458         * lib/mktime.c (long_int): New type.  This works around a problem
9459         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9460         but time_t is 64 bits, and where I expect the existing code is
9461         wrong in some cases.
9462         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9463         (ydhms_diff): Bring back the compile-time check for wide-enough
9464         year and yday.
9465
9466         mktime: fix misspelling in comment
9467         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9468         This merges all recent glibc changes of importance.
9469
9470 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9471
9472         move-if-change: cope with concurrent mv of identical file.
9473         * build-aux/move-if-change (CMPPROG): Accept environment
9474         variable as an override for `cmp'.
9475         (usage): Document CMPPROG.
9476         Adjust comparison to drop stdout.  Cope with failure of mv if
9477         the target file exists and is identical to the source, for
9478         parallel builds.
9479         Report from H.J. Lu against binutils in PR binutils/12283.
9480
9481 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9482
9483         * users.txt: Mention sharutils.
9484
9485 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9486
9487         * users.txt: Mention OATH Toolkit.
9488
9489 2011-01-27  Bruno Haible  <bruno@clisp.org>
9490
9491         Prepare for supporting FreeBSD 10.
9492         * build-aux/config.libpath: Remove handling of freebsd1*.
9493
9494 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9495
9496         Prepare for supporting FreeBSD 10.
9497         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9498         match FreeBSD 10.0.
9499
9500 2011-01-27  Bruno Haible  <bruno@clisp.org>
9501
9502         vma-iter, get-rusage-as: Add OpenBSD support.
9503         * modules/vma-iter (configure.ac): Test for mquery.
9504         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9505         * lib/vma-iter.c: Include <sys/mman.h>.
9506         (vma_iterate): Add an implementation based on mquery().
9507         * lib/resource-ext.h (get_rusage_as): Update comments.
9508         * lib/get-rusage-as.c: Likewise.
9509         * lib/get-rusage-data.c: Likewise.
9510
9511 2011-01-26  Karl Berry  <karl@gnu.org>
9512
9513         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9514         variables to make it easier to override the makeinfo program used.
9515
9516 2011-01-26  Eric Blake  <eblake@redhat.com>
9517
9518         fcntl: work around Haiku F_DUPFD bugs
9519         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9520         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9521         cloexec bit on duplication.
9522         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9523
9524 2011-01-26  Bruno Haible  <bruno@clisp.org>
9525
9526         Enable memory leak tests on AIX.
9527         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9528         * tests/test-fprintf-posix3.c (main): Likewise.
9529
9530 2011-01-26  Bruno Haible  <bruno@clisp.org>
9531
9532         Tests for module 'get-rusage-data'.
9533         * modules/get-rusage-data-tests: New file.
9534         * tests/test-get-rusage-data.c: New file.
9535
9536         New module 'get-rusage-data'.
9537         * lib/resource-ext.h (get_rusage_data): New declaration.
9538         * lib/get-rusage-data.c: New file.
9539         * modules/get-rusage-data: New file.
9540
9541 2011-01-25  Bruno Haible  <bruno@clisp.org>
9542
9543         get-rusage-as: Allow for easier testing.
9544         * lib/resource-ext.h (get_rusage_as): Add comment.
9545         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9546         (main): New function for interactive testing.
9547
9548 2011-01-25  Bruno Haible  <bruno@clisp.org>
9549
9550         vma-iter: Treat Haiku like BeOS.
9551         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9552         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9553
9554 2011-01-25  Eric Blake  <eblake@redhat.com>
9555
9556         c-stack: fix regression on cygwin when libsigsegv is present
9557         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9558
9559 2011-01-24  Bruno Haible  <bruno@clisp.org>
9560
9561         vma-iter: Avoid empty intervals.
9562         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9563         on an empty interval.
9564
9565 2011-01-24  Jim Meyering  <meyering@redhat.com>
9566
9567         u64: remove unnecessary #include
9568         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9569
9570 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9571
9572         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9573         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9574
9575 2011-01-23  Bruno Haible  <bruno@clisp.org>
9576
9577         New module 'vma-iter'.
9578         * lib/vma-iter.h: New file.
9579         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9580         * modules/vma-iter: New file.
9581         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9582         for get_rusage_as_via_iterator.
9583         (vma_iterate_callback): New function.
9584         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9585         * modules/get-rusage-as (Depends-on): Add vma-iter.
9586
9587 2011-01-23  Bruno Haible  <bruno@clisp.org>
9588
9589         uninorm: Tweak includes.
9590         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9591         Reported by Jim Meyering.
9592
9593 2011-01-23  Bruno Haible  <bruno@clisp.org>
9594
9595         get-rusage-as: Improve on NetBSD.
9596         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9597         /proc, like on FreeBSD.
9598
9599 2011-01-23  Jim Meyering  <meyering@redhat.com>
9600
9601         xreadlink.h: remove unnecessary #include
9602         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9603
9604         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9605         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9606
9607 2011-01-23  Bruno Haible  <bruno@clisp.org>
9608
9609         get-rusage-as: Fix bug.
9610         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9611         original limit when aborting the first loop.
9612
9613 2011-01-23  Bruno Haible  <bruno@clisp.org>
9614
9615         wctype: Ensure valid C syntax.
9616         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9617         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9618
9619 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9620
9621         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9623         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9624         as they are needed only for configure's test case.
9625         This removes two unnecessary symbols from config.h.
9626
9627         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9628         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9630         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9631         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9632         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9633         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9634         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9635         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9636         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9637         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9639         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9641         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9642         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9643         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9644         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9645
9646 2011-01-21  Eric Blake  <eblake@redhat.com>
9647
9648         maintainer-makefile: work with older git for submodule check
9649         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9650         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9651         Reported by Matthias Bolte.
9652
9653         bootstrap: minor portability fixes
9654         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9655         (usage): Omit leading capital and trailing . on help phrases, per
9656         GNU Coding Standards.
9657         (check_versions, top level): Prefix messages with script name.
9658
9659 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9660
9661         bootstrap: support --no-git option
9662         * build-aux/bootstrap: Add --no-git option, to be used when
9663         --gnulib-srcdir points to the exact desired checkout.
9664
9665 2011-01-21  Eric Blake  <eblake@redhat.com>
9666
9667         strerror_r-posix: work with glibc 2.13
9668         * lib/strerror_r.c (strerror_r): Fix return type.
9669
9670 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9671             Bruno Haible  <bruno@clisp.org>
9672
9673         uN_strstr: New unit tests.
9674         * modules/unistr/u8-strstr-tests: New file.
9675         * modules/unistr/u16-strstr-tests: New file.
9676         * modules/unistr/u32-strstr-tests: New file.
9677         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9678         * tests/unistr/test-u8-strstr.c: New file.
9679         * tests/unistr/test-u16-strstr.c: New file.
9680         * tests/unistr/test-u32-strstr.c: New file.
9681
9682 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9683             Bruno Haible  <bruno@clisp.org>
9684
9685         Make uN_strstr functions O(n) worst-case.
9686         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9687         16-bit and 32-bit unit cases, use the unibyte algorithm from
9688         lib/mbsstr.c.
9689         * lib/unistr/u8-strstr.c: Include <string.h>.
9690         (UNIT_IS_UINT8_T): New macro.
9691         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9692         (U_STRLEN, U_STRNLEN): New macros.
9693         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9694         (U_STRLEN, U_STRNLEN): New macros.
9695         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9696         (configure.ac): Update required libunistring version.
9697         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9698         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9699         malloca.
9700         (configure.ac): Update required libunistring version.
9701         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9702         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9703         malloca.
9704         (configure.ac): Update required libunistring version.
9705
9706 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9707             Bruno Haible  <bruno@clisp.org>
9708
9709         Prepare for faster uN_strstr functions.
9710         * lib/str-kmp.h: Support definable UNITs.
9711         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9712         needle_len argument.
9713         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9714         * lib/mbscasestr.c (mbscasestr): Likewise.
9715
9716 2011-01-21  Pádraig Brady <P@draigBrady.com>
9717
9718         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9719         * tests/test-malloca.c (main): Unset the environment variable
9720         to greatly speed up the test.
9721         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9722         * modules/malloca-tests: Depend on unsetenv.
9723
9724 2011-01-21  Pádraig Brady <P@draigBrady.com>
9725
9726         ignore-value: remove stdint dependency
9727         * lib/ignore-value.h: Remove <stdint.h>
9728         * modules/ignore-value: Remove stdint dependency.
9729
9730 2011-01-21  Jim Meyering  <meyering@redhat.com>
9731
9732         maint.mk: adjust variable name to be consistent with other gl_ vars
9733         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9734         to be lower case.
9735
9736 2011-01-20  Jim Meyering  <meyering@redhat.com>
9737
9738         maint.mk: make "check" depend on public-submodule-commit by default
9739         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9740
9741 2011-01-20  Bruno Haible  <bruno@clisp.org>
9742
9743         mbfile, mbiter: Complete change from 2008-12-21.
9744         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9745         * m4/mbiter.m4 (gl_MBITER): Likewise.
9746
9747 2011-01-20  Jim Meyering  <meyering@redhat.com>
9748
9749         init.sh: insert space between each function name and "()"
9750         * tests/init.sh: Make it a little easier to see that a function's
9751         name is "warn_", and not "warn" when looking at the first part of
9752         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9753
9754 2011-01-20  Jim Meyering  <meyering@redhat.com>
9755
9756         mountlist: clean up code formatting
9757         * lib/mountlist.c (read_file_system_list): Split a long line,
9758         correct bracing style, use NULL in place of "(struct statfs *)0",
9759         don't parenthesize return value, add spaces around "=" and after
9760         ";-in-for-stmt".
9761
9762 2011-01-14  Markus Duft <mduft@gentoo.org>
9763
9764         mountlist: add support for Interix
9765         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9766         Apply statvfs to all entries of /dev/fs.
9767         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9768         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9769
9770 2011-01-20  Jim Meyering  <meyering@redhat.com>
9771
9772         maint.mk: improve the public-submodule-commit rule
9773         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9774         to suppress printing of its commands... unless V=1.
9775         Add git submodule's --quiet option to suppress printing of e.g.,
9776         "Entering gnulib" output.
9777         "cd" into $(srcdir) before running git submodule.
9778
9779 2011-01-20  Bruno Haible  <bruno@clisp.org>
9780
9781         include_next: Fix bug introduced on 2011-01-18.
9782         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9783         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9784         ac_cv_header_... variable if the second argument is not 'check'.
9785         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9786         gl_NEXT_HEADERS_INTERNAL.
9787
9788 2011-01-20  Bruno Haible  <bruno@clisp.org>
9789
9790         Allow the user to avoid the GNULIB_TEST_* macros.
9791         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9792         Suggested by Paul Eggert.
9793
9794 2011-01-14  Jim Meyering  <meyering@redhat.com>
9795
9796         bootstrap: avoid failure when there is no .gitmodules file
9797         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9798         has been assigned to, even when its value is the empty string.
9799         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9800         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9801         Reported by John W. Eaton <jwe@gnu.org>.
9802
9803 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9804
9805         assume <ctype.h>, ..., <time.h> exist
9806         For years gnulib has been assuming the existence of the headers
9807         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9808         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9809         them, since they don't appear to be needed.
9810         * README (Portability guidelines): Document this.
9811         * lib/flock.c: Assume <fcntl.h> exists.
9812         * lib/regex_internal.h: Assume <locale.h> exists.
9813         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9814         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9815         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9816         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9817         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9818         * m4/regex.m4 (gl_REGEX): Likewise.
9819         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9820         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9821         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9822         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9823         * tests/test-argp.c: Likewise.
9824         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9825
9826         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9827         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9828         AA_APPLE_UNIVERSAL_BUILD.  See
9829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9830         * NEWS: Document this.
9831
9832 2011-01-19  Eric Blake  <eblake@redhat.com>
9833
9834         c-stack: assume stack overflow if SA_SIGINFO unsupported
9835         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9836         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9837         sigaction will work.
9838         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9839         behavior match Linux.
9840         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9841
9842         stdbool-tests: accomodate Haiku
9843         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9844
9845         binary-io: fix O_TEXT on Haiku
9846         * modules/binary-io (Depends-on): Add fcntl-h.
9847         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9848         than blindly undefining O_TEXT.
9849         Reported by Scott McCreary.
9850
9851 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9852
9853         include_next: do not check for standard headers like stddef.h
9854
9855         I found this problem when modifying Emacs to use gnulib.
9856         I noticed that it added HAVE_STDDEF_H to config.h, even though
9857         gnulib always assumes <stddef.h> exists as per README and this
9858         symbol is unnecessary.
9859         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9860         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9861         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9862         faster for headers like stddef.h that are known to exist.
9863         (gl_CHECK_NEXT_HEADERS): Use it.
9864         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9865         rather than gl_CHECK_NEXT_HEADERS.
9866         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9867         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9868
9869 2011-01-18  Eric Blake  <eblake@redhat.com>
9870
9871         ansi-c++-opt: skip C++ dependency style if C++ is unused
9872         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9873         tests when we know C++ compilation is not desired.
9874         Reported by Scott McCreary.
9875
9876 2011-01-18  Bruno Haible  <bruno@clisp.org>
9877
9878         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9879         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9880         (main): Perform test also when getrlimit and setrlimit don't exist or
9881         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9882         limiting the address space size using setrlimit, compare the address
9883         space size before and after the the test.
9884         * tests/test-dprintf-posix2.c: Likewise.
9885         * tests/test-fprintf-posix3.sh: Update skip messages.
9886         * tests/test-dprintf-posix2.sh: Likewise.
9887         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9888         * modules/dprintf-posix-tests (Depends-on): Likewise.
9889         Reported by Bruce Korb <bkorb@gnu.org> and
9890         Gary V. Vaughan <gary@gnu.org>.
9891
9892 2011-01-18  Bruno Haible  <bruno@clisp.org>
9893
9894         get-rusage-as: Improvement for Cygwin.
9895         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9896         areas that are merely reserved.
9897
9898 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9899
9900         strftime: remove dependencies on multibyte modules
9901
9902         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9903         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9904         only if __osf__ is defined, and I suspect OSF doesn't need these
9905         other modules.  If my guess is wrong, we'll need to come up with a
9906         variant of strftime that doesn't need the multibyte modules.
9907
9908         I discovered this problem when attempting modify Emacs to use the
9909         strftime module.  With the previous gnulib, this caused Emacs to
9910         need 31 new files, ranging from lib/config.charset to
9911         m4/wint_t.m4.  This was overkill and I expect would be offputting
9912         to the Emacs maintainers.  After this change, only 6 new files are
9913         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9914         stdbool.m4, and tm_gmtoff.m4.
9915
9916         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9917         Suggested by Bruno Haible in
9918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9919         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9920         and do not check for wchar.h.
9921         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9922         (Depends-on): Remove mbrlen, mbsinit, wchar.
9923
9924 2011-01-18  Bruno Haible  <bruno@clisp.org>
9925
9926         Tests for module 'get-rusage-as'.
9927         * modules/get-rusage-as-tests: New file.
9928         * tests/test-get-rusage-as.c: New file.
9929
9930         New module 'get-rusage-as'.
9931         * modules/get-rusage-as: New file.
9932         * lib/resource-ext.h: New file.
9933         * lib/get-rusage-as.c: New file.
9934
9935 2011-01-17  Eric Blake  <eblake@redhat.com>
9936
9937         sigaction: relax license from LGPLv3+ to LGPLv2+
9938         * modules/sigaction (License): Relax to LGPLv2+.
9939
9940 2011-01-14  Bruno Haible  <bruno@clisp.org>
9941
9942         filemode: Make function declarations usable in C++ mode.
9943         * lib/filemode.h: Enclose function declarations in extern "C" block.
9944         Reported by John W. Eaton <jwe@gnu.org>.
9945
9946 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9947
9948         save-cwd: no longer include "xgetcwd.h"
9949         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9950         This avoids a compilation failure in projects that use save-cwd
9951         without also using the xgetcwd module.
9952
9953 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9954
9955         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9956         This is so that a program like Emacs, which needs only dtoastr,
9957         does not have to bother with distributing and compiling ftoastr
9958         and ldtoastr.
9959         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9960         * modules/dtoastr, modules/ldtoastr: New files.
9961         * modules/ftoastr: Now works just for 'float'.
9962         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9963         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9964         dtoastr.c, ldtoastr.c.
9965
9966 2011-01-11  Jim Meyering  <meyering@redhat.com>
9967
9968         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9969         There is no need to work around the lack of the fchdir function,
9970         since gnulib can now provide a replacement when required.
9971         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9972         * modules/save-cwd (Depends-on): Add fchdir.
9973
9974 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9975
9976         openat, save-cwd: avoid xmalloc
9977
9978         This removes a direct (but undocumented) dependency of openat on
9979         xalloc, along with an indirect dependency via save-cwd.  It also
9980         removes a dependency of save-cwd on xgetcwd, and thereby
9981         indirectly on xalloc.  This change causes the openat substitute
9982         to fall back on save_cwd when memory is tight, and for save_cwd to
9983         fail instead of dying when memory is tight, but that's good enough.
9984         Problem and initial idea for fix reported by Bastien Roucaries in
9985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9986
9987         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9988         xalloc.h (for xmalloc).
9989         (openat_proc_name): Use malloc, not xmalloc.
9990         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9991         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9992
9993         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9994         This avoids heap allocation for file names whose lengths are in
9995         the range 512..1023, with the upper bound increasing to at most
9996         4031 depending on the platform's PATH_MAX.  (We do not want
9997         pathmax.h here as it might supply a non-constant PATH_MAX.)
9998         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9999         Perhaps they should be moved to malloca.h?
10000         (OPENAT_BUFFER_SIZE): Use them.
10001
10002 2011-01-10  Bruno Haible  <bruno@clisp.org>
10003
10004         doc: Update users.txt.
10005         * users.txt: Add recutils.
10006
10007 2011-01-09  Karl Berry  <karl@gnu.org>
10008
10009         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10010
10011         * doc/configmake.texi: New file.
10012         * doc/gnulib.texi: Include it.
10013         * modules/configmake: Move documentation from here.
10014
10015 2011-01-09  Bruno Haible  <bruno@clisp.org>
10016
10017         Update to Unicode 6.0.0.
10018         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10019         (get_lbp): Update for Unicode 6.0.0.
10020         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10021         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10022         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10023         U+11001, U+11038..U+11046. Remove U+06DE.
10024         (uc_width): Fix bounds of planes.
10025         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10026         lib/uniwidth/width.c.
10027         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10028         trailing whitespace removed.
10029         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10030         without comments, but with the original copyright notice.
10031         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10032         * lib/unicase/ignorable.h: Likewise.
10033         * lib/unicase/tocasefold.h: Likewise.
10034         * lib/unicase/tolower.h: Likewise.
10035         * lib/unicase/totitle.h: Likewise.
10036         * lib/unicase/toupper.h: Likewise.
10037         * lib/unictype/bidi_of.h: Likewise.
10038         * lib/unictype/blocks.h: Likewise.
10039         * lib/unictype/categ_C.h: Likewise.
10040         * lib/unictype/categ_Cn.h: Likewise.
10041         * lib/unictype/categ_L.h: Likewise.
10042         * lib/unictype/categ_Ll.h: Likewise.
10043         * lib/unictype/categ_Lm.h: Likewise.
10044         * lib/unictype/categ_Lo.h: Likewise.
10045         * lib/unictype/categ_Lu.h: Likewise.
10046         * lib/unictype/categ_M.h: Likewise.
10047         * lib/unictype/categ_Mc.h: Likewise.
10048         * lib/unictype/categ_Me.h: Likewise.
10049         * lib/unictype/categ_Mn.h: Likewise.
10050         * lib/unictype/categ_N.h: Likewise.
10051         * lib/unictype/categ_Nd.h: Likewise.
10052         * lib/unictype/categ_No.h: Likewise.
10053         * lib/unictype/categ_P.h: Likewise.
10054         * lib/unictype/categ_Po.h: Likewise.
10055         * lib/unictype/categ_S.h: Likewise.
10056         * lib/unictype/categ_Sc.h: Likewise.
10057         * lib/unictype/categ_Sk.h: Likewise.
10058         * lib/unictype/categ_Sm.h: Likewise.
10059         * lib/unictype/categ_So.h: Likewise.
10060         * lib/unictype/categ_of.h: Likewise.
10061         * lib/unictype/combining.h: Likewise.
10062         * lib/unictype/ctype_alnum.h: Likewise.
10063         * lib/unictype/ctype_alpha.h: Likewise.
10064         * lib/unictype/ctype_graph.h: Likewise.
10065         * lib/unictype/ctype_lower.h: Likewise.
10066         * lib/unictype/ctype_print.h: Likewise.
10067         * lib/unictype/ctype_punct.h: Likewise.
10068         * lib/unictype/ctype_upper.h: Likewise.
10069         * lib/unictype/decdigit.h: Likewise.
10070         * lib/unictype/digit.h: Likewise.
10071         * lib/unictype/numeric.h: Likewise.
10072         * lib/unictype/pr_alphabetic.h: Likewise.
10073         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10074         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10075         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10076         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10077         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10078         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10079         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10080         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10081         * lib/unictype/pr_case_ignorable.h: Likewise.
10082         * lib/unictype/pr_cased.h: Likewise.
10083         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10084         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10085         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10086         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10087         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10088         * lib/unictype/pr_combining.h: Likewise.
10089         * lib/unictype/pr_composite.h: Likewise.
10090         * lib/unictype/pr_currency_symbol.h: Likewise.
10091         * lib/unictype/pr_decimal_digit.h: Likewise.
10092         * lib/unictype/pr_deprecated.h: Likewise.
10093         * lib/unictype/pr_format_control.h: Likewise.
10094         * lib/unictype/pr_grapheme_base.h: Likewise.
10095         * lib/unictype/pr_grapheme_extend.h: Likewise.
10096         * lib/unictype/pr_grapheme_link.h: Likewise.
10097         * lib/unictype/pr_id_continue.h: Likewise.
10098         * lib/unictype/pr_id_start.h: Likewise.
10099         * lib/unictype/pr_ideographic.h: Likewise.
10100         * lib/unictype/pr_lowercase.h: Likewise.
10101         * lib/unictype/pr_math.h: Likewise.
10102         * lib/unictype/pr_numeric.h: Likewise.
10103         * lib/unictype/pr_other_alphabetic.h: Likewise.
10104         * lib/unictype/pr_other_id_continue.h: Likewise.
10105         * lib/unictype/pr_other_math.h: Likewise.
10106         * lib/unictype/pr_punctuation.h: Likewise.
10107         * lib/unictype/pr_sentence_terminal.h: Likewise.
10108         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10109         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10110         * lib/unictype/pr_unified_ideograph.h: Likewise.
10111         * lib/unictype/pr_uppercase.h: Likewise.
10112         * lib/unictype/pr_xid_continue.h: Likewise.
10113         * lib/unictype/pr_xid_start.h: Likewise.
10114         * lib/unictype/scripts.h: Likewise.
10115         * lib/unictype/scripts_byname.gperf: Likewise.
10116         * lib/unictype/sy_java_ident.h: Likewise.
10117         * lib/unigbrk/gbrkprop.h: Likewise.
10118         * lib/unilbrk/lbrkprop1.h: Likewise.
10119         * lib/unilbrk/lbrkprop2.h: Likewise.
10120         * lib/uninorm/decomposition-table2.h: Likewise.
10121         * lib/uniwbrk/wbrkprop.h: Likewise.
10122         * tests/unicase/test-cased.c: Likewise.
10123         * tests/unicase/test-ignorable.c: Likewise.
10124         * tests/unicase/test-uc_tolower.c: Likewise.
10125         * tests/unicase/test-uc_totitle.c: Likewise.
10126         * tests/unicase/test-uc_toupper.c: Likewise.
10127         * tests/unictype/test-categ_C.c: Likewise.
10128         * tests/unictype/test-categ_Cn.c: Likewise.
10129         * tests/unictype/test-categ_L.c: Likewise.
10130         * tests/unictype/test-categ_Ll.c: Likewise.
10131         * tests/unictype/test-categ_Lm.c: Likewise.
10132         * tests/unictype/test-categ_Lo.c: Likewise.
10133         * tests/unictype/test-categ_Lu.c: Likewise.
10134         * tests/unictype/test-categ_M.c: Likewise.
10135         * tests/unictype/test-categ_Mc.c: Likewise.
10136         * tests/unictype/test-categ_Me.c: Likewise.
10137         * tests/unictype/test-categ_Mn.c: Likewise.
10138         * tests/unictype/test-categ_N.c: Likewise.
10139         * tests/unictype/test-categ_Nd.c: Likewise.
10140         * tests/unictype/test-categ_No.c: Likewise.
10141         * tests/unictype/test-categ_P.c: Likewise.
10142         * tests/unictype/test-categ_Po.c: Likewise.
10143         * tests/unictype/test-categ_S.c: Likewise.
10144         * tests/unictype/test-categ_Sc.c: Likewise.
10145         * tests/unictype/test-categ_Sk.c: Likewise.
10146         * tests/unictype/test-categ_Sm.c: Likewise.
10147         * tests/unictype/test-categ_So.c: Likewise.
10148         * tests/unictype/test-ctype_alnum.c: Likewise.
10149         * tests/unictype/test-ctype_alpha.c: Likewise.
10150         * tests/unictype/test-ctype_graph.c: Likewise.
10151         * tests/unictype/test-ctype_lower.c: Likewise.
10152         * tests/unictype/test-ctype_print.c: Likewise.
10153         * tests/unictype/test-ctype_punct.c: Likewise.
10154         * tests/unictype/test-ctype_upper.c: Likewise.
10155         * tests/unictype/test-decdigit.h: Likewise.
10156         * tests/unictype/test-digit.h: Likewise.
10157         * tests/unictype/test-numeric.h: Likewise.
10158         * tests/unictype/test-pr_alphabetic.c: Likewise.
10159         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10160         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10161         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10162         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10163         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10164         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10165         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10166         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10167         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10168         * tests/unictype/test-pr_cased.c: Likewise.
10169         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10170         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10171         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10172         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10173         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10174         * tests/unictype/test-pr_combining.c: Likewise.
10175         * tests/unictype/test-pr_composite.c: Likewise.
10176         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10177         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10178         * tests/unictype/test-pr_deprecated.c: Likewise.
10179         * tests/unictype/test-pr_format_control.c: Likewise.
10180         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10181         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10182         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10183         * tests/unictype/test-pr_id_continue.c: Likewise.
10184         * tests/unictype/test-pr_id_start.c: Likewise.
10185         * tests/unictype/test-pr_ideographic.c: Likewise.
10186         * tests/unictype/test-pr_lowercase.c: Likewise.
10187         * tests/unictype/test-pr_math.c: Likewise.
10188         * tests/unictype/test-pr_numeric.c: Likewise.
10189         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10190         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10191         * tests/unictype/test-pr_other_math.c: Likewise.
10192         * tests/unictype/test-pr_punctuation.c: Likewise.
10193         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10194         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10195         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10196         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10197         * tests/unictype/test-pr_uppercase.c: Likewise.
10198         * tests/unictype/test-pr_xid_continue.c: Likewise.
10199         * tests/unictype/test-pr_xid_start.c: Likewise.
10200         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10201         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10202         changes.
10203         * lib/unictype/categ_Cc.h: Likewise.
10204         * lib/unictype/categ_Cf.h: Likewise.
10205         * lib/unictype/categ_Co.h: Likewise.
10206         * lib/unictype/categ_Cs.h: Likewise.
10207         * lib/unictype/categ_Lt.h: Likewise.
10208         * lib/unictype/categ_Nl.h: Likewise.
10209         * lib/unictype/categ_Pc.h: Likewise.
10210         * lib/unictype/categ_Pd.h: Likewise.
10211         * lib/unictype/categ_Pe.h: Likewise.
10212         * lib/unictype/categ_Pf.h: Likewise.
10213         * lib/unictype/categ_Pi.h: Likewise.
10214         * lib/unictype/categ_Ps.h: Likewise.
10215         * lib/unictype/categ_Z.h: Likewise.
10216         * lib/unictype/categ_Zl.h: Likewise.
10217         * lib/unictype/categ_Zp.h: Likewise.
10218         * lib/unictype/categ_Zs.h: Likewise.
10219         * lib/unictype/ctype_blank.h: Likewise.
10220         * lib/unictype/ctype_cntrl.h: Likewise.
10221         * lib/unictype/ctype_digit.h: Likewise.
10222         * lib/unictype/ctype_space.h: Likewise.
10223         * lib/unictype/ctype_xdigit.h: Likewise.
10224         * lib/unictype/mirror.h: Likewise.
10225         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10226         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10227         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10228         * lib/unictype/pr_bidi_control.h: Likewise.
10229         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10230         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10231         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10232         * lib/unictype/pr_bidi_pdf.h: Likewise.
10233         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10234         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10235         * lib/unictype/pr_dash.h: Likewise.
10236         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10237         * lib/unictype/pr_diacritic.h: Likewise.
10238         * lib/unictype/pr_extender.h: Likewise.
10239         * lib/unictype/pr_hex_digit.h: Likewise.
10240         * lib/unictype/pr_hyphen.h: Likewise.
10241         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10242         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10243         * lib/unictype/pr_ignorable_control.h: Likewise.
10244         * lib/unictype/pr_iso_control.h: Likewise.
10245         * lib/unictype/pr_join_control.h: Likewise.
10246         * lib/unictype/pr_left_of_pair.h: Likewise.
10247         * lib/unictype/pr_line_separator.h: Likewise.
10248         * lib/unictype/pr_logical_order_exception.h: Likewise.
10249         * lib/unictype/pr_non_break.h: Likewise.
10250         * lib/unictype/pr_not_a_character.h: Likewise.
10251         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10252         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10253         * lib/unictype/pr_other_id_start.h: Likewise.
10254         * lib/unictype/pr_other_lowercase.h: Likewise.
10255         * lib/unictype/pr_other_uppercase.h: Likewise.
10256         * lib/unictype/pr_paired_punctuation.h: Likewise.
10257         * lib/unictype/pr_paragraph_separator.h: Likewise.
10258         * lib/unictype/pr_pattern_syntax.h: Likewise.
10259         * lib/unictype/pr_pattern_white_space.h: Likewise.
10260         * lib/unictype/pr_private_use.h: Likewise.
10261         * lib/unictype/pr_quotation_mark.h: Likewise.
10262         * lib/unictype/pr_radical.h: Likewise.
10263         * lib/unictype/pr_soft_dotted.h: Likewise.
10264         * lib/unictype/pr_space.h: Likewise.
10265         * lib/unictype/pr_titlecase.h: Likewise.
10266         * lib/unictype/pr_variation_selector.h: Likewise.
10267         * lib/unictype/pr_white_space.h: Likewise.
10268         * lib/unictype/pr_zero_width.h: Likewise.
10269         * lib/unictype/sy_c_ident.h: Likewise.
10270         * lib/unictype/sy_c_whitespace.h: Likewise.
10271         * lib/unictype/sy_java_whitespace.h: Likewise.
10272         * lib/uninorm/composition-table.gperf: Likewise.
10273         * lib/uninorm/decomposition-table1.h: Likewise.
10274         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10275         LB8.
10276         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10277         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10278         * modules/unictype/*: Bump version number of expected libunistring
10279         version.
10280
10281 2011-01-09  Bruno Haible  <bruno@clisp.org>
10282
10283         Update to Unicode 5.2.0.
10284         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10285         trailing whitespace removed.
10286
10287 2011-01-09  Bruno Haible  <bruno@clisp.org>
10288
10289         New Unicode character properties, from Unicode 5.2.0.
10290         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10291         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10292         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10293         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10294         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10295         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10296         uc_is_property_cased, uc_is_property_case_ignorable,
10297         uc_is_property_changes_when_lowercased,
10298         uc_is_property_changes_when_uppercased,
10299         uc_is_property_changes_when_titlecased,
10300         uc_is_property_changes_when_casefolded,
10301         uc_is_property_changes_when_casemapped): New declarations.
10302         * lib/unictype/pr_byname.gperf: Add the new properties.
10303         * modules/unictype/property-byname (Depends-on): Depend on the new
10304         properties modules.
10305         * modules/unictype/property-all (Depends-on): Likewise.
10306         * MODULES.html.sh (Unicode string functions): Add
10307         unictype/property-case-ignorable, unictype/property-cased,
10308         unictype/property-changes-when-casefolded,
10309         unictype/property-changes-when-casemapped,
10310         unictype/property-changes-when-lowercased,
10311         unictype/property-changes-when-titlecased,
10312         unictype/property-changes-when-uppercased.
10313
10314         New module 'unictype/property-changes-when-casemapped'.
10315         * modules/unictype/property-changes-when-casemapped: New file.
10316         * lib/unictype/pr_changes_when_casemapped.c: New file.
10317         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10318         generated by gen-uni-tables.
10319         * modules/unictype/property-changes-when-casemapped-tests: New file.
10320         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10321         automatically generated by gen-uni-tables.
10322
10323         New module 'unictype/property-changes-when-casefolded'.
10324         * modules/unictype/property-changes-when-casefolded: New file.
10325         * lib/unictype/pr_changes_when_casefolded.c: New file.
10326         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10327         generated by gen-uni-tables.
10328         * modules/unictype/property-changes-when-casefolded-tests: New file.
10329         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10330         automatically generated by gen-uni-tables.
10331
10332         New module 'unictype/property-changes-when-titlecased'.
10333         * modules/unictype/property-changes-when-titlecased: New file.
10334         * lib/unictype/pr_changes_when_titlecased.c: New file.
10335         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10336         generated by gen-uni-tables.
10337         * modules/unictype/property-changes-when-titlecased-tests: New file.
10338         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10339         automatically generated by gen-uni-tables.
10340
10341         New module 'unictype/property-changes-when-uppercased'.
10342         * modules/unictype/property-changes-when-uppercased: New file.
10343         * lib/unictype/pr_changes_when_uppercased.c: New file.
10344         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10345         generated by gen-uni-tables.
10346         * modules/unictype/property-changes-when-uppercased-tests: New file.
10347         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10348         automatically generated by gen-uni-tables.
10349
10350         New module 'unictype/property-changes-when-lowercased'.
10351         * modules/unictype/property-changes-when-lowercased: New file.
10352         * lib/unictype/pr_changes_when_lowercased.c: New file.
10353         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10354         generated by gen-uni-tables.
10355         * modules/unictype/property-changes-when-lowercased-tests: New file.
10356         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10357         automatically generated by gen-uni-tables.
10358
10359         New module 'unictype/property-case-ignorable'.
10360         * modules/unictype/property-case-ignorable: New file.
10361         * lib/unictype/pr_case_ignorable.c: New file.
10362         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10363         by gen-uni-tables.
10364         * modules/unictype/property-case-ignorable-tests: New file.
10365         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10366         generated by gen-uni-tables.
10367
10368         New module 'unictype/property-cased'.
10369         * modules/unictype/property-cased: New file.
10370         * lib/unictype/pr_cased.c: New file.
10371         * lib/unictype/pr_cased.h: New file, automatically generated by
10372         gen-uni-tables.
10373         * modules/unictype/property-cased-tests: New file.
10374         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10375         gen-uni-tables.
10376
10377 2011-01-09  Bruno Haible  <bruno@clisp.org>
10378
10379         Update to Unicode 5.2.0.
10380         * lib/gen-uni-tables.c (output_predicate, output_category,
10381         output_combclass, output_bidi_category, output_decimal_digit_test,
10382         output_decimal_digit, output_digit_test, output_digit,
10383         output_numeric_test, output_numeric, output_mirror, output_scripts,
10384         output_scripts_byname, output_blocks, output_ident_category): Fix
10385         comment header.
10386         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10387         get_wbp.
10388         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10389         items.
10390         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10391         Changes_When_Lowercased, Changes_When_Uppercased,
10392         Changes_When_Titlecased, Changes_When_Casefolded,
10393         Changes_When_Casemapped.
10394         (is_property_alphabetic, is_property_default_ignorable_code_point):
10395         Update for Unicode 5.2.0.
10396         (is_property_cased, is_property_case_ignorable,
10397         is_property_changes_when_lowercased,
10398         is_property_changes_when_uppercased,
10399         is_property_changes_when_titlecased,
10400         is_property_changes_when_casefolded,
10401         is_property_changes_when_casemapped): New functions.
10402         (output_properties): Output also the properties cased, case_ignorable,
10403         changes_when_lowercased, changes_when_uppercased,
10404         changes_when_titlecased, changes_when_casefolded,
10405         changes_when_casemapped.
10406         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10407         Unicode TR#11 revision 17 -> 19.
10408         (LBP_CP): New enumeration value.
10409         (LBP_*): Adjust values accordingly.
10410         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10411         TR#14 revision 22 -> 24.
10412         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10413         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10414         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10415         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10416         is_WBP_MIDLETTER.
10417         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10418         the code1 and code2 of each composition rule.
10419         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10420         * lib/unicase/ignorable.h: Likewise.
10421         * lib/unicase/tocasefold.h: Likewise.
10422         * lib/unicase/tolower.h: Likewise.
10423         * lib/unicase/totitle.h: Likewise.
10424         * lib/unicase/toupper.h: Likewise.
10425         * lib/unictype/bidi_of.h: Likewise.
10426         * lib/unictype/blocks.h: Likewise.
10427         * lib/unictype/categ_C.h: Likewise.
10428         * lib/unictype/categ_Cf.h: Likewise.
10429         * lib/unictype/categ_Cn.h: Likewise.
10430         * lib/unictype/categ_L.h: Likewise.
10431         * lib/unictype/categ_Ll.h: Likewise.
10432         * lib/unictype/categ_Lm.h: Likewise.
10433         * lib/unictype/categ_Lo.h: Likewise.
10434         * lib/unictype/categ_Lu.h: Likewise.
10435         * lib/unictype/categ_M.h: Likewise.
10436         * lib/unictype/categ_Mc.h: Likewise.
10437         * lib/unictype/categ_Mn.h: Likewise.
10438         * lib/unictype/categ_N.h: Likewise.
10439         * lib/unictype/categ_Nd.h: Likewise.
10440         * lib/unictype/categ_Nl.h: Likewise.
10441         * lib/unictype/categ_No.h: Likewise.
10442         * lib/unictype/categ_P.h: Likewise.
10443         * lib/unictype/categ_Pd.h: Likewise.
10444         * lib/unictype/categ_Po.h: Likewise.
10445         * lib/unictype/categ_S.h: Likewise.
10446         * lib/unictype/categ_Sc.h: Likewise.
10447         * lib/unictype/categ_So.h: Likewise.
10448         * lib/unictype/categ_of.h: Likewise.
10449         * lib/unictype/combining.h: Likewise.
10450         * lib/unictype/ctype_alnum.h: Likewise.
10451         * lib/unictype/ctype_alpha.h: Likewise.
10452         * lib/unictype/ctype_graph.h: Likewise.
10453         * lib/unictype/ctype_lower.h: Likewise.
10454         * lib/unictype/ctype_print.h: Likewise.
10455         * lib/unictype/ctype_punct.h: Likewise.
10456         * lib/unictype/ctype_upper.h: Likewise.
10457         * lib/unictype/decdigit.h: Likewise.
10458         * lib/unictype/digit.h: Likewise.
10459         * lib/unictype/numeric.h: Likewise.
10460         * lib/unictype/pr_alphabetic.h: Likewise.
10461         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10462         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10463         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10464         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10465         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10466         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10467         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10468         * lib/unictype/pr_combining.h: Likewise.
10469         * lib/unictype/pr_composite.h: Likewise.
10470         * lib/unictype/pr_currency_symbol.h: Likewise.
10471         * lib/unictype/pr_dash.h: Likewise.
10472         * lib/unictype/pr_decimal_digit.h: Likewise.
10473         * lib/unictype/pr_deprecated.h: Likewise.
10474         * lib/unictype/pr_diacritic.h: Likewise.
10475         * lib/unictype/pr_extender.h: Likewise.
10476         * lib/unictype/pr_grapheme_base.h: Likewise.
10477         * lib/unictype/pr_grapheme_extend.h: Likewise.
10478         * lib/unictype/pr_grapheme_link.h: Likewise.
10479         * lib/unictype/pr_id_continue.h: Likewise.
10480         * lib/unictype/pr_id_start.h: Likewise.
10481         * lib/unictype/pr_ideographic.h: Likewise.
10482         * lib/unictype/pr_ignorable_control.h: Likewise.
10483         * lib/unictype/pr_logical_order_exception.h: Likewise.
10484         * lib/unictype/pr_lowercase.h: Likewise.
10485         * lib/unictype/pr_numeric.h: Likewise.
10486         * lib/unictype/pr_other_alphabetic.h: Likewise.
10487         * lib/unictype/pr_punctuation.h: Likewise.
10488         * lib/unictype/pr_sentence_terminal.h: Likewise.
10489         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10490         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10491         * lib/unictype/pr_unified_ideograph.h: Likewise.
10492         * lib/unictype/pr_uppercase.h: Likewise.
10493         * lib/unictype/pr_xid_continue.h: Likewise.
10494         * lib/unictype/pr_xid_start.h: Likewise.
10495         * lib/unictype/pr_zero_width.h: Likewise.
10496         * lib/unictype/scripts.h: Likewise.
10497         * lib/unictype/scripts_byname.gperf: Likewise.
10498         * lib/unictype/sy_java_ident.h: Likewise.
10499         * lib/unigbrk/gbrkprop.h: Likewise.
10500         * lib/unilbrk/lbrkprop1.h: Likewise.
10501         * lib/unilbrk/lbrkprop2.h: Likewise.
10502         * lib/unilbrk/lbrktables.h: Likewise.
10503         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10504         LBP_CP. Implement rule LB30.
10505         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10506         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10507         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10508         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10509         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10510         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10511         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10512         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10513         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10514         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10515         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10516         bits instead of 16 bits in the code1 and code2 of each composition
10517         rule.
10518         (uc_composition): Update for Unicode 5.2.0.
10519         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10520         * lib/uninorm/decomposition-table2.h: Likewise.
10521         * lib/uniwbrk/wbrkprop.h: Likewise.
10522         * tests/unicase/test-cased.c: Likewise.
10523         * tests/unicase/test-ignorable.c: Likewise.
10524         * tests/unicase/test-uc_tolower.c: Likewise.
10525         * tests/unicase/test-uc_totitle.c: Likewise.
10526         * tests/unicase/test-uc_toupper.c: Likewise.
10527         * tests/unictype/test-categ_C.c: Likewise.
10528         * tests/unictype/test-categ_Cf.c: Likewise.
10529         * tests/unictype/test-categ_Cn.c: Likewise.
10530         * tests/unictype/test-categ_L.c: Likewise.
10531         * tests/unictype/test-categ_Ll.c: Likewise.
10532         * tests/unictype/test-categ_Lm.c: Likewise.
10533         * tests/unictype/test-categ_Lo.c: Likewise.
10534         * tests/unictype/test-categ_Lu.c: Likewise.
10535         * tests/unictype/test-categ_M.c: Likewise.
10536         * tests/unictype/test-categ_Mc.c: Likewise.
10537         * tests/unictype/test-categ_Mn.c: Likewise.
10538         * tests/unictype/test-categ_N.c: Likewise.
10539         * tests/unictype/test-categ_Nd.c: Likewise.
10540         * tests/unictype/test-categ_Nl.c: Likewise.
10541         * tests/unictype/test-categ_No.c: Likewise.
10542         * tests/unictype/test-categ_P.c: Likewise.
10543         * tests/unictype/test-categ_Pd.c: Likewise.
10544         * tests/unictype/test-categ_Po.c: Likewise.
10545         * tests/unictype/test-categ_S.c: Likewise.
10546         * tests/unictype/test-categ_Sc.c: Likewise.
10547         * tests/unictype/test-categ_So.c: Likewise.
10548         * tests/unictype/test-ctype_alnum.c: Likewise.
10549         * tests/unictype/test-ctype_alpha.c: Likewise.
10550         * tests/unictype/test-ctype_graph.c: Likewise.
10551         * tests/unictype/test-ctype_lower.c: Likewise.
10552         * tests/unictype/test-ctype_print.c: Likewise.
10553         * tests/unictype/test-ctype_punct.c: Likewise.
10554         * tests/unictype/test-ctype_upper.c: Likewise.
10555         * tests/unictype/test-decdigit.h: Likewise.
10556         * tests/unictype/test-digit.h: Likewise.
10557         * tests/unictype/test-numeric.h: Likewise.
10558         * tests/unictype/test-pr_alphabetic.c: Likewise.
10559         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10560         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10561         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10562         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10563         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10564         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10565         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10566         * tests/unictype/test-pr_combining.c: Likewise.
10567         * tests/unictype/test-pr_composite.c: Likewise.
10568         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10569         * tests/unictype/test-pr_dash.c: Likewise.
10570         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10571         * tests/unictype/test-pr_deprecated.c: Likewise.
10572         * tests/unictype/test-pr_diacritic.c: Likewise.
10573         * tests/unictype/test-pr_extender.c: Likewise.
10574         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10575         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10576         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10577         * tests/unictype/test-pr_id_continue.c: Likewise.
10578         * tests/unictype/test-pr_id_start.c: Likewise.
10579         * tests/unictype/test-pr_ideographic.c: Likewise.
10580         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10581         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10582         * tests/unictype/test-pr_lowercase.c: Likewise.
10583         * tests/unictype/test-pr_numeric.c: Likewise.
10584         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10585         * tests/unictype/test-pr_punctuation.c: Likewise.
10586         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10587         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10588         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10589         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10590         * tests/unictype/test-pr_uppercase.c: Likewise.
10591         * tests/unictype/test-pr_xid_continue.c: Likewise.
10592         * tests/unictype/test-pr_xid_start.c: Likewise.
10593         * tests/unictype/test-pr_zero_width.c: Likewise.
10594         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10595         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10596         changed behaviour: line breaking is now disallowed between a letter
10597         or '=' and '('.
10598         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10599         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10600         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10601         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10602         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10603         lib/uniwidth/width.c.
10604         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10605         without comments, but with the original copyright notice.
10606         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10607         changes.
10608         * lib/unictype/categ_Cc.h: Likewise.
10609         * lib/unictype/categ_Co.h: Likewise.
10610         * lib/unictype/categ_Cs.h: Likewise.
10611         * lib/unictype/categ_Lt.h: Likewise.
10612         * lib/unictype/categ_Me.h: Likewise.
10613         * lib/unictype/categ_Pc.h: Likewise.
10614         * lib/unictype/categ_Pe.h: Likewise.
10615         * lib/unictype/categ_Pf.h: Likewise.
10616         * lib/unictype/categ_Pi.h: Likewise.
10617         * lib/unictype/categ_Ps.h: Likewise.
10618         * lib/unictype/categ_Sk.h: Likewise.
10619         * lib/unictype/categ_Sm.h: Likewise.
10620         * lib/unictype/categ_Z.h: Likewise.
10621         * lib/unictype/categ_Zl.h: Likewise.
10622         * lib/unictype/categ_Zp.h: Likewise.
10623         * lib/unictype/categ_Zs.h: Likewise.
10624         * lib/unictype/ctype_blank.h: Likewise.
10625         * lib/unictype/ctype_cntrl.h: Likewise.
10626         * lib/unictype/ctype_digit.h: Likewise.
10627         * lib/unictype/ctype_space.h: Likewise.
10628         * lib/unictype/ctype_xdigit.h: Likewise.
10629         * lib/unictype/mirror.h: Likewise.
10630         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10631         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10632         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10633         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10634         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10635         * lib/unictype/pr_bidi_control.h: Likewise.
10636         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10637         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10638         * lib/unictype/pr_bidi_pdf.h: Likewise.
10639         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10640         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10641         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10642         * lib/unictype/pr_format_control.h: Likewise.
10643         * lib/unictype/pr_hex_digit.h: Likewise.
10644         * lib/unictype/pr_hyphen.h: Likewise.
10645         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10646         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10647         * lib/unictype/pr_iso_control.h: Likewise.
10648         * lib/unictype/pr_join_control.h: Likewise.
10649         * lib/unictype/pr_left_of_pair.h: Likewise.
10650         * lib/unictype/pr_line_separator.h: Likewise.
10651         * lib/unictype/pr_math.h: Likewise.
10652         * lib/unictype/pr_non_break.h: Likewise.
10653         * lib/unictype/pr_not_a_character.h: Likewise.
10654         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10655         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10656         * lib/unictype/pr_other_id_continue.h: Likewise.
10657         * lib/unictype/pr_other_id_start.h: Likewise.
10658         * lib/unictype/pr_other_lowercase.h: Likewise.
10659         * lib/unictype/pr_other_math.h: Likewise.
10660         * lib/unictype/pr_other_uppercase.h: Likewise.
10661         * lib/unictype/pr_paired_punctuation.h: Likewise.
10662         * lib/unictype/pr_paragraph_separator.h: Likewise.
10663         * lib/unictype/pr_pattern_syntax.h: Likewise.
10664         * lib/unictype/pr_pattern_white_space.h: Likewise.
10665         * lib/unictype/pr_private_use.h: Likewise.
10666         * lib/unictype/pr_quotation_mark.h: Likewise.
10667         * lib/unictype/pr_radical.h: Likewise.
10668         * lib/unictype/pr_soft_dotted.h: Likewise.
10669         * lib/unictype/pr_space.h: Likewise.
10670         * lib/unictype/pr_titlecase.h: Likewise.
10671         * lib/unictype/pr_variation_selector.h: Likewise.
10672         * lib/unictype/pr_white_space.h: Likewise.
10673         * lib/unictype/sy_c_ident.h: Likewise.
10674         * lib/unictype/sy_c_whitespace.h: Likewise.
10675         * lib/unictype/sy_java_whitespace.h: Likewise.
10676         * modules/uni*/*: Bump version number of expected libunistring version.
10677         Reported by Simon Josefsson.
10678
10679 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10680
10681         useless-if-before-free: fix typo in --help and make the internal,
10682         automatic version date update process work once again.
10683         --help output contained a NUL character instead of the
10684         backslash-zero that was intended.  Also, the "must lie within
10685         the first 8 lines" line is on line 9, and hence not getting
10686         automatically updated.
10687         * build-aux/useless-if-before-free: Fix the former by adding a
10688         backslash, and the latter by condensing the three lines of what-it-does
10689         to a single line, leaving one line of slack for the future.
10690
10691 2011-01-09  Bruno Haible  <bruno@clisp.org>
10692
10693         uniwidth/width: Fix width of U+1D173..U+1D17A.
10694         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10695         symbolic_width, output_width_property_test): New functions.
10696         (main): Invoke output_nonspacing_property, output_width_property_test.
10697         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10698         U+1D173..U+1D17A.
10699         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10700         1.
10701         * modules/uniwidth/*: Bump version number of expected libunistring
10702         version.
10703         * modules/unilbrk/*: Likewise.
10704
10705 2011-01-08  Bruno Haible  <bruno@clisp.org>
10706
10707         uninorm tests: Preserve copyright of Unicode data file.
10708         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10709         Mention modifications.
10710
10711 2011-01-08  Bruno Haible  <bruno@clisp.org>
10712
10713         gen-uni-tables: Prepare for Unicode 5.2.0.
10714         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10715         (debug_output_lbp, output_lbp): Update.
10716
10717 2011-01-08  Bruno Haible  <bruno@clisp.org>
10718
10719         unilbrk: Clarify gen-uni-tables.c code.
10720         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10721         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10722         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10723
10724 2011-01-07  Bruno Haible  <bruno@clisp.org>
10725
10726         strtod: Restore errno when successfully parsing Infinity or NaN.
10727         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10728         restore the original errno.
10729
10730 2011-01-07  Bruno Haible  <bruno@clisp.org>
10731
10732         remove test: Avoid failure on HP-UX 11.
10733         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10734
10735 2011-01-07  Bruno Haible  <bruno@clisp.org>
10736
10737         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10738         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10739         error code.
10740
10741 2011-01-07  Pádraig Brady <P@draigBrady.com>
10742
10743         ignore-value: fixup comments, and add Eric Blake
10744         as an author since he rewrote the macros.
10745         * lib/ignore-value.h (ignore_value):  State that
10746         we now support aggregates.  Also specify exactly
10747         when the GCC warn_unused_result feature was added.
10748
10749 2011-01-06  Eric Blake  <eblake@redhat.com>
10750
10751         ignore-value: support aggregate types
10752         * lib/ignore-value.h (ignore_value): Provide separate gcc
10753         definition.
10754         * modules/ignore-value-tests: New test module.
10755         * tests/test-ignore-value.c: New test.
10756
10757         maint.mk: improve sc_prohibit_strcmp regex
10758         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10759         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10760         definition of STRNEQ.
10761
10762         signal: work around Haiku issue with SIGBUS
10763         * lib/siglist.h: Add comment.
10764         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10765         strsignal's favoring of SIGSEGV.
10766         * tests/test-signal.c (main): Avoid test failure.
10767         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10768         Reported by Scott McCreary.
10769
10770         maint.mk: add pre-release check to ensure submodule commits are public
10771         * top/maint.mk (public-submodule-commit): New rule.
10772         (submodule-checks): New variable.
10773         (alpha beta stable): Depend on the variable.
10774
10775 2011-01-05  Pádraig Brady <P@draigBrady.com>
10776         and Jim Meyering  <meyering@redhat.com>
10777
10778         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10779         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10780         (ATTRIBUTE_DEPRECATED): Define.
10781         (_ignore_case): New function.
10782         (ignore_value): New macro, to replace the old function.
10783         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10784         * modules/ignore-value (Depends-on): Add stdint.
10785
10786 2011-01-04  Eric Blake  <eblake@redhat.com>
10787
10788         doc: regenerate INSTALL
10789         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10790         @firstparagraphindent support, now that autoconf dropped it.
10791         (INSTALL_PRELUDE): Reinstate old macro.
10792         * doc/install.texi: Resync from autoconf.
10793         * doc/INSTALL: Reflect recent autoconf update.
10794         * doc/INSTALL.ISO: Likewise.
10795         * doc/INSTALL.UTF-8: Likewise.
10796         Reported by Karl Berry.
10797
10798 2011-01-04  Bruce Korb  <address@hidden>
10799
10800         git-version-gen: avoid a sub-shell
10801         * build-aux/git-version-gen: Redirect stderr in `...` via
10802         "exec 2>...", rather than via an added sub-shell.
10803
10804 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10805
10806         git-version-gen: use (...) rather than sh -c '...'
10807         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10808         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10809
10810 2011-01-03  Jim Meyering  <meyering@redhat.com>
10811
10812         git-version-gen: convert leading TABs to spaces
10813         * build-aux/git-version-gen: Expand leading TABs.
10814
10815         git-version-gen: handle failed "git rev-list"
10816         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10817         from git and proceeding as if it had succeeded but printed no SHA1
10818         checksums, suppress the diagnostic and handle the failure.
10819         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10820
10821         git-version-gen: include command name in one more diagnostic
10822         * build-aux/git-version-gen: When the required .tarball-version file
10823         was missing or unreadable, you might see the diagnostic from "cat",
10824         but no trace of the name of the invoking script.  Now, you still see
10825         the diagnostic from cat, but also get one from "git-version-gen: ".
10826         Inspired by a patch from Bruce Korb.
10827
10828         update-copyright: adjust test to match changed code
10829         * tests/test-update-copyright.sh: Change test's expected output
10830         to match new actual output.
10831
10832 2011-01-02  Bruno Haible  <bruno@clisp.org>
10833
10834         getlogin_r: Avoid test failure on HP-UX 11.
10835         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10836         ERANGE when the second argument is zero.
10837         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10838         portability problem.
10839
10840 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10841
10842         * build-aux/update-copyright: doc Simon's changes
10843
10844 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10845
10846         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10847         environment variable.
10848
10849 2011-01-02  Bruno Haible  <bruno@clisp.org>
10850
10851         unigbrk: Avoid gcc warnings.
10852         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10853         unused variable.
10854         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10855         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10856         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10857         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10858         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10859         Change type of first argument to 'const char *'.
10860         (main): Remove unused variable.
10861         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10862         type of first argument to 'const char *'.
10863         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10864         Likewise.
10865         (main): Change type of variable 's'.
10866         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10867         to 'int'.
10868
10869 2011-01-02  Bruno Haible  <bruno@clisp.org>
10870
10871         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10872         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10873         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10874         bug.
10875         * lib/pwrite.c: Undo 2010-12-31 patch.
10876         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10877
10878 2011-01-02  Bruno Haible  <bruno@clisp.org>
10879
10880         pread: Fix test whether it works.
10881         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10882
10883 2011-01-02  Bruno Haible  <bruno@clisp.org>
10884
10885         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10886         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10887         ends in "6". Don't require a specific month name. Try also the locale
10888         names found on HP-UX 11 and Solaris 7.
10889
10890 2011-01-02  Bruno Haible  <bruno@clisp.org>
10891
10892         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10893         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10894         C linkage.
10895         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10896
10897 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10898
10899         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10900         for consistency, since the "cluster" term is not used elsewhere.
10901         * lib/unigbrk.in.h: Update name.
10902         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10903         * lib/unigbrk/u16-grapheme-next.c: Update name.
10904         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10905         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10906         * lib/unigbrk/u32-grapheme-next.c: Update name.
10907         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10908         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10909         * lib/unigbrk/u8-grapheme-next.c: Update name.
10910         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10911         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10912         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10913         Suggested by Bruno Haible.
10914
10915 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10916
10917         Remove module 'u8-grapheme-len' as too redundant with
10918         'u8-grapheme-next'.
10919         * modules/unigbrk/u8-grapheme-len: Delete file.
10920         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10921         * lib/unigbrk.in.h: Remove prototype for deleted function.
10922         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10923         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10924
10925         Remove module 'u16-grapheme-len' as too redundant with
10926         'u16-grapheme-next'.
10927         * modules/unigbrk/u16-grapheme-len: Delete file.
10928         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10929         * lib/unigbrk.in.h: Remove prototype for deleted function.
10930         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10931         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10932
10933         Remove module 'u32-grapheme-len' as too redundant with
10934         'u32-grapheme-next'.
10935         * modules/unigbrk/u32-grapheme-len: Delete file.
10936         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10937         * lib/unigbrk.in.h: Remove prototype for deleted function.
10938         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10939         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10940
10941         Suggested by Bruno Haible.
10942
10943 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10944
10945         * unigbrk.in.h: Fix typo: "ben" => "been".
10946         Reported by Bruno Haible.
10947
10948 2011-01-01  Jim Meyering  <meyering@redhat.com>
10949
10950         maint: update almost all copyright ranges to include 2011
10951         Run the new "make update-copyright" rule.
10952
10953 2011-01-01  Jim Meyering  <meyering@redhat.com>
10954
10955         maint: update-copyright: exempt doc/INSTALL*
10956         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10957         since they are generated.  Suggested by Bruno Haible.
10958
10959 2011-01-01  Jim Meyering  <meyering@redhat.com>
10960
10961         maint: refine the update-copyright rule
10962         * Makefile (update-copyright): Also exclude any file that includes
10963         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10964         code that merely generates the comment.
10965
10966 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10967
10968         New module 'u8-grapheme-len'.
10969         * modules/unigbrk/u8-grapheme-len: New file.
10970         * modules/unigbrk/u8-grapheme-len-tests: New file.
10971         * lib/unigbrk.in.h: Add prototype for new function.
10972         * lib/unigbrk/u8-grapheme-len.c: New file.
10973         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10974
10975         New module 'u16-grapheme-len'.
10976         * modules/unigbrk/u16-grapheme-len: New file.
10977         * modules/unigbrk/u16-grapheme-len-tests: New file.
10978         * lib/unigbrk.in.h: Add prototype for new function.
10979         * lib/unigbrk/u16-grapheme-len.c: New file.
10980         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10981
10982         New module 'u32-grapheme-len'.
10983         * modules/unigbrk/u32-grapheme-len: New file.
10984         * modules/unigbrk/u32-grapheme-len-tests: New file.
10985         * lib/unigbrk.in.h: Add prototype for new function.
10986         * lib/unigbrk/u32-grapheme-len.c: New file.
10987         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10988
10989         New module 'u8-grapheme-next'.
10990         * modules/unigbrk/u8-grapheme-next: New file.
10991         * modules/unigbrk/u8-grapheme-next-tests: New file.
10992         * lib/unigbrk.in.h: Add prototype for new function.
10993         * lib/unigbrk/u8-grapheme-next.c: New file.
10994         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10995
10996         New module 'u16-grapheme-next'.
10997         * modules/unigbrk/u16-grapheme-next: New file.
10998         * modules/unigbrk/u16-grapheme-next-tests: New file.
10999         * lib/unigbrk.in.h: Add prototype for new function.
11000         * lib/unigbrk/u16-grapheme-next.c: New file.
11001         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11002
11003         New module 'u32-grapheme-next'.
11004         * modules/unigbrk/u32-grapheme-next: New file.
11005         * modules/unigbrk/u32-grapheme-next-tests: New file.
11006         * lib/unigbrk.in.h: Add prototype for new function.
11007         * lib/unigbrk/u32-grapheme-next.c: New file.
11008         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11009
11010         New module 'u8-grapheme-prev'.
11011         * modules/unigbrk/u8-grapheme-prev: New file.
11012         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11013         * lib/unigbrk.in.h: Add prototype for new function.
11014         * lib/unigbrk/u8-grapheme-prev.c: New file.
11015         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11016
11017         New module 'u16-grapheme-prev'.
11018         * modules/unigbrk/u16-grapheme-prev: New file.
11019         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11020         * lib/unigbrk.in.h: Add prototype for new function.
11021         * lib/unigbrk/u16-grapheme-prev.c: New file.
11022         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11023
11024         New module 'u32-grapheme-prev'.
11025         * modules/unigbrk/u32-grapheme-prev: New file.
11026         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11027         * lib/unigbrk.in.h: Add prototype for new function.
11028         * lib/unigbrk/u32-grapheme-prev.c: New file.
11029         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11030
11031         New module 'u8-grapheme-breaks'.
11032         * modules/unigbrk/u8-grapheme-breaks: New file.
11033         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11034         * lib/unigbrk.in.h: Add prototype for new function.
11035         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11036         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11037
11038         New module 'u16-grapheme-breaks'.
11039         * modules/unigbrk/u16-grapheme-breaks: New file.
11040         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11041         * lib/unigbrk.in.h: Add prototype for new function.
11042         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11043         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11044
11045         New module 'u32-grapheme-breaks'.
11046         * modules/unigbrk/u32-grapheme-breaks: New file.
11047         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11048         * lib/unigbrk.in.h: Add prototype for new function.
11049         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11050         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11051
11052         New module 'ulc-grapheme-breaks'.
11053         * modules/unigbrk/ulc-grapheme-breaks: New file.
11054         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11055         * m4/locale-ar.m4: New file.
11056         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11057         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11058         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11059
11060 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11061
11062         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11063         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11064         modified how this file was generated before I initially submitted
11065         the module, but failed to regenerate it.  This meant that several
11066         of the level2 entries were wrong.
11067         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11068         Remove the division-by-2 that is folded into the table now that
11069         gbrkprop.h has been regenerated properly.  Now -1 entries are
11070         handled correctly.
11071
11072         New module 'unigbrk/uc-gbrk-prop-tests'.
11073         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11074         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11075         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11076         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11077
11078 2011-01-01  Bruno Haible  <bruno@clisp.org>
11079
11080         Avoid use of hexadecimal escapes.
11081         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11082         instead of hexadecimal escapes.
11083
11084 2011-01-01  Jim Meyering  <meyering@redhat.com>
11085
11086         maint: new rule to update copyright year ranges
11087         * Makefile (update-copyright): New rule.
11088
11089         maint: indent with TABs in Makefile
11090         * Makefile: Expand leading sequences of spaces to TABs
11091
11092         version-etc: update the copyright year it reports
11093         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11094
11095 2010-12-31  Bruno Haible  <bruno@clisp.org>
11096
11097         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11098         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11099         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11100         zero.
11101
11102 2010-12-31  Bruno Haible  <bruno@clisp.org>
11103
11104         pwrite: Work around HP-UX 11.11 bug.
11105         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11106         works and set REPLACE_PWRITE if not.
11107         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11108         function.
11109         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11110
11111 2010-12-31  Bruno Haible  <bruno@clisp.org>
11112
11113         pread: Work around HP-UX 11 bugs.
11114         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11115         and set REPLACE_PREAD if not.
11116         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11117
11118 2010-12-31  Eric Blake  <eblake@redhat.com>
11119
11120         nl_langinfo: fix YESEXPR on Irix 6.5
11121         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11122         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11123         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11124         it.
11125
11126 2010-12-31  Bruno Haible  <bruno@clisp.org>
11127
11128         iconv: Document HP-UX 11 bug.
11129         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11130
11131 2010-12-31  Bruno Haible  <bruno@clisp.org>
11132
11133         ldexpl: Fix link error on HP-UX 11.
11134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11135         LDEXPL_LIBM, using $ISNANL_LIBM.
11136
11137 2010-12-31  Eric Blake  <eblake@redhat.com>
11138
11139         ftello: avoid compilation failure with SunStudio c89
11140         * lib/ftello.c (ftello): Use lseek, not llseek.
11141
11142         tests: avoid failing coreutils tests on cygwin
11143         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11144         (create_exe_shims_): Return 0 when skipping.
11145
11146 2010-12-31  Bruno Haible  <bruno@clisp.org>
11147
11148         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11149         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11150
11151 2010-12-31  Bruno Haible  <bruno@clisp.org>
11152
11153         waitpid: Fix link error in C++ mode.
11154         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11155
11156 2010-12-31  Bruno Haible  <bruno@clisp.org>
11157
11158         isnan: Use GCC built-ins when possible.
11159         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11160         __builtin_isnan.
11161         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11162         (isnan): Define using GCC built-ins for GCC >= 4.0.
11163
11164 2010-12-31  Bruno Haible  <bruno@clisp.org>
11165
11166         isnand: Fix mistake.
11167         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11168         __builtin_isnand.
11169
11170 2010-12-31  Bruno Haible  <bruno@clisp.org>
11171
11172         open: Avoid C++ error on HP-UX 11.
11173         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11174
11175 2010-12-31  Bruno Haible  <bruno@clisp.org>
11176
11177         time_r: Add missing declarations on HP-UX 11.
11178         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11179         instead of HAVE_LOCALTIME_R.
11180         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11181         HAVE_LOCALTIME_R always.
11182         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11183         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11184         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11185         HAVE_LOCALTIME_R.
11186         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11187         * doc/posix-functions/localtime_r.texi: Likewise.
11188
11189 2010-12-29  Eric Blake  <eblake@redhat.com>
11190
11191         mountlist: tweak previous commit
11192         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11193         Reported by Paul Eggert.
11194
11195         mountlist: fix local drive detection on cygwin
11196         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11197         that works for cygwin.
11198
11199 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11200
11201         ftoastr, snprintf: ftoastr + snprintf module
11202         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11203         since the snprintf module now should be good enough here.
11204         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11205         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11206         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11207         GNULIB_SNPRINTF only for the test directory, and the latter
11208         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11209         seems to suffice by itself.
11210
11211 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11212
11213         alloca: one step towards thread-safety
11214         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11215         need for a static variable.  All callers changed.  This does not
11216         make the alloca replacement thread-safe, but it's one step.
11217
11218         tests: minor indenting change
11219         * tests/init.sh: Sync from coreutils housekeeping patch
11220         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11221         to keep lines within 80 columns.
11222
11223 2010-12-28  Jim Meyering  <meyering@redhat.com>
11224
11225         regex: don't infloop on persistent failing calloc
11226         * lib/regexec.c (build_trtable): Return failure indication upon
11227         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11228         In glibc, this was fixed for version 2.13:
11229         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11230
11231 2010-12-28  Bruno Haible  <bruno@clisp.org>
11232             Paul Eggert <eggert@cs.ucla.edu>
11233
11234         linkat: Make implementation robust against system behaviour variations.
11235         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11236         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11237         way, and to -2 if it needs a generic runtime test.
11238         * lib/linkat.c (solaris_optimized_link_immediate,
11239         solaris_optimized_link_follow): New functions.
11240         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11241         (check_same_link): Use it.
11242
11243 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11244
11245         New module 'unigbrk/base'.
11246         * modules/unigbrk/base: New file.
11247         * lib/unigbrk.in.h: New file.
11248
11249         New module 'unigbrk/uc-gbrk-prop'.
11250         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11251         * modules/unigbrk/uc-gbrk-prop: New file.
11252         * lib/unigbrk/gbrkprop.h: New file.
11253         * lib/unigbrk/uc-gbrk-prop.c: New file.
11254
11255         New module 'unigbrk/uc-is-grapheme-break'.
11256         * modules/unigbrk/uc-is-grapheme-break: New file.
11257         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11258         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11259         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11260         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11261         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11262
11263         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11264
11265 2010-12-27  Bruno Haible  <bruno@clisp.org>
11266
11267         linkat test: Avoid failure on Solaris 11 2010-11.
11268         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11269
11270 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11271
11272         utimens: work around glibc rounding bug on more platforms
11273         * lib/utimens.c (fdutimens): Work around rounding bug even if
11274         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11276
11277 2010-12-27  Bruno Haible  <bruno@clisp.org>
11278
11279         select tests: Improve comments.
11280         * tests/test-select.c (do_select): Add comments.
11281
11282 2010-12-27  Bruno Haible  <bruno@clisp.org>
11283
11284         select tests: Safer way of handling timeout.
11285         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11286         at every invocation.
11287
11288 2010-12-27  Bruno Haible  <bruno@clisp.org>
11289
11290         select tests: Use 'bool' where appropriate.
11291         * tests/test-select.c (connect_to_socket): Change argument type to
11292         'bool'.
11293
11294 2010-12-27  Bruno Haible  <bruno@clisp.org>
11295
11296         select tests: Use existing modules.
11297         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11298         (configure.ac): Don't test for unistd.h.
11299         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11300         declared in <unistd.h>.
11301
11302 2010-12-27  Bruno Haible  <bruno@clisp.org>
11303
11304         mbrtowc: Work around a Solaris 7 bug.
11305         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11306         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11307         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11308         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11309         MBRTOWC_NULL_ARG1_BUG.
11310         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11311         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11312         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11313         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11314
11315 2010-12-27  Jim Meyering  <meyering@redhat.com>
11316
11317         read-file.c: tweak syntax
11318         * lib/read-file.c (fread_file): Remove space after "*" in function
11319         definitions.
11320
11321 2010-12-27  Bruno Haible  <bruno@clisp.org>
11322
11323         times test: Avoid gcc warnings on OSF/1.
11324         * tests/test-times.c (main): Cast printf arguments from clock_t to
11325         'long int'.
11326
11327 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11328
11329         utimens: work around glibc rounding bug on older Linux kernels
11330         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11331         on Linux with a glibc whose utimes might not work, then work
11332         around a longstanding glibc bug involving rounding rather than
11333         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11334         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11335
11336 2010-12-26  Bruno Haible  <bruno@clisp.org>
11337
11338         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11339         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11340         _GL_CXXALIAS_SYS.
11341         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11342
11343 2010-12-26  Bruno Haible  <bruno@clisp.org>
11344
11345         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11346         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11347         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11348         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11349         looking for the declaration.
11350         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11351         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11352         problem.
11353         * doc/posix-functions/inet_pton.texi: Likewise.
11354
11355 2010-12-26  Bruno Haible  <bruno@clisp.org>
11356
11357         arpa_inet: Use the common idioms with C++ support.
11358         * lib/arpa_inet.in.h: Include c++defs.h.
11359         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11360         support.
11361         * modules/arpa_inet (Depends-on): Add c++defs.
11362         (Makefile.am): Substitute the contents of c++defs.h.
11363         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11364         * modules/arpa_inet-c++-tests: New file.
11365         * tests/test-arpa_inet-c++.cc: New file.
11366
11367 2010-12-25  Bruno Haible  <bruno@clisp.org>
11368
11369         Fix more C++ link errors on Solaris 8.
11370         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11371         $(LIB_EACCESS).
11372         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11373         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11374         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11375         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11376         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11377
11378 2010-12-25  Bruno Haible  <bruno@clisp.org>
11379
11380         printf-posix: Fix link error when a non-GCC compiler is used.
11381         * lib/stdio.in.h (printf): When not using GCC, override printf
11382         correctly.
11383         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11384
11385 2010-12-25  Bruno Haible  <bruno@clisp.org>
11386
11387         strerror_r-posix: Update doc.
11388         * doc/posix-functions/strerror_r.texi: Update doc about the return
11389         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11390
11391 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11392
11393         utimens: simplify the logic of the previous change
11394         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11395         This should not affect whether the test succeeds or fails.
11396
11397         utimens: configure better on hosts with NFS clock skew
11398         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11399         uses the clock of the local host.  It might use the clock of the
11400         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11402
11403 2010-12-25  Bruno Haible  <bruno@clisp.org>
11404
11405         ptsname test: Avoid failure on Solaris.
11406         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11407         open a pseudo-terminal; don't use BSD-style ptys.
11408         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11409
11410 2010-12-25  Bruno Haible  <bruno@clisp.org>
11411
11412         ptsname: Avoid ERANGE failure on some systems.
11413         * lib/ptsname.c (buffer): Increase size.
11414
11415 2010-12-25  Bruno Haible  <bruno@clisp.org>
11416
11417         rename, renameat: Avoid test failures at NFS mounted locations.
11418         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11419         so that subsequent mkdir calls succeed.
11420
11421 2010-12-25  Bruno Haible  <bruno@clisp.org>
11422
11423         iswblank: Fix C++ link error on Solaris 8.
11424         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11425         _GL_FUNCDECL_SYS.
11426
11427 2010-12-25  Bruno Haible  <bruno@clisp.org>
11428
11429         unistd: Fix C++ link error on Solaris 8.
11430         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11431
11432 2010-12-25  Bruno Haible  <bruno@clisp.org>
11433
11434         readlink doc: Mention an old glibc bug.
11435         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11436
11437 2010-12-25  Bruno Haible  <bruno@clisp.org>
11438
11439         fcntl-h: Fix for use of C++ on glibc systems.
11440         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11441         also on glibc systems in C++ mode.
11442         Reported by Gary V. Vaughan <gary@gnu.org>.
11443
11444 2010-12-25  Bruno Haible  <bruno@clisp.org>
11445
11446         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11447         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11448
11449 2010-12-25  Bruno Haible  <bruno@clisp.org>
11450
11451         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11452         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11453         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11454         test whether truncl works according to ISO C 99 with IEC 60559.
11455         * m4/truncl-ieee.m4: New file.
11456         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11457         m4/signbit.m4.
11458         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11459
11460 2010-12-25  Bruno Haible  <bruno@clisp.org>
11461
11462         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11463         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11464         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11465         test whether ceill works according to ISO C 99 with IEC 60559.
11466         * m4/ceill-ieee.m4: New file.
11467         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11468         m4/signbit.m4.
11469         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11470
11471 2010-12-25  Bruno Haible  <bruno@clisp.org>
11472
11473         Ensure all prerequisites of <wchar.h> are included.
11474         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11475         before <wchar.h>.
11476         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11477         gl_MBRLEN_NUL_RETVAL): Likewise.
11478         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11479         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11480         AC_FUNC_MBRTOWC): Likewise.
11481         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11482         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11483         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11484         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11485         Likewise.
11486         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11487         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11488         (gl_WCHAR_H): Improve comments.
11489         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11490
11491 2010-12-25  Bruno Haible  <bruno@clisp.org>
11492
11493         strtok_r: Fix C syntax error in autoconf macro.
11494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11495         characters in test program.
11496
11497 2010-12-24  Bruno Haible  <bruno@clisp.org>
11498
11499         ceil, trunc, round: Fix gcc warnings.
11500         * lib/ceil.c (MIN): Undefine before redefining.
11501         * lib/trunc.c (MIN): Likewise.
11502         * lib/round.c (MIN): Likewise.
11503         Include <math.h> first.
11504
11505 2010-12-24  Bruno Haible  <bruno@clisp.org>
11506
11507         select tests: Avoid failures on OSF/1 5.1.
11508         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11509         failure of closing the last socket; it may fail with ECONNRESET.
11510
11511 2010-12-24  Eric Blake  <eblake@redhat.com>
11512
11513         stdint: avoid HP-UX 10.20 preprocessor bug
11514         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11515         than #if.
11516         * tests/test-floor2.c (main): Likewise.
11517         Reported by Peter O'Gorman.
11518
11519         pipe: make obsoletion transition easier
11520         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11521         * modules/pipe (Files): Include revived file.
11522         (Include): Drop reference, to mirror getdate's behavior.
11523
11524 2010-12-24  Bruno Haible  <bruno@clisp.org>
11525
11526         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11527         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11528         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11529         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11530
11531 2010-12-24  Bruno Haible  <bruno@clisp.org>
11532
11533         gethostname: Ensure declaration on NonStop Kernel.
11534         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11535         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11536
11537 2010-12-24  Bruno Haible  <bruno@clisp.org>
11538
11539         sys_select: Ensure all necessary types on NonStop Kernel.
11540         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11541         include <sys/time.h>.
11542         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11543         NonStop Kernel.
11544         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11545
11546 2010-12-24  Bruno Haible  <bruno@clisp.org>
11547
11548         sys_select: Remove unneeded include.
11549         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11550         have <sys/select.h>.
11551
11552 2010-12-24  Bruno Haible  <bruno@clisp.org>
11553
11554         gethostname: Provide a fallback for HOST_NAME_MAX.
11555         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11556         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11557         instead.
11558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11559
11560 2010-12-24  Bruno Haible  <bruno@clisp.org>
11561
11562         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11563         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11564         (SA_RESTART): Likewise.
11565         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11566
11567 2010-12-24  Bruno Haible  <bruno@clisp.org>
11568
11569         signal: Define NSIG.
11570         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11571         * tests/test-signal.c (nsig): New variable.
11572         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11573
11574 2010-12-24  Bruno Haible  <bruno@clisp.org>
11575
11576         rename, renameat: Avoid test failures on OSF/1 5.1.
11577         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11578         alternative error codes.
11579         * tests/test-renameat.c (main): Likewise.
11580
11581 2010-12-24  Bruno Haible  <bruno@clisp.org>
11582
11583         *printf: Detect large precisions bug on Solaris 10/SPARC.
11584         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11585         by Paul Eggert.
11586         * tests/test-snprintf-posix.h (test_function): Add this test code here
11587         too.
11588         * tests/test-sprintf-posix.h (test_function): Likewise.
11589         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11590         * tests/test-vasprintf-posix.c (test_function): Likewise.
11591         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11592         around by gnulib.
11593         * doc/posix-functions/printf.texi: Likewise.
11594         * doc/posix-functions/snprintf.texi: Likewise.
11595         * doc/posix-functions/sprintf.texi: Likewise.
11596         * doc/posix-functions/vfprintf.texi: Likewise.
11597         * doc/posix-functions/vprintf.texi: Likewise.
11598         * doc/posix-functions/vsnprintf.texi: Likewise.
11599         * doc/posix-functions/vsprintf.texi: Likewise.
11600         * doc/posix-functions/dprintf.texi: Undo last commit.
11601         * doc/posix-functions/vdprintf.texi: Likewise.
11602
11603 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11604
11605         tests: port test-fdutimensat.c to Solaris 8
11606         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11607         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11608         On Solaris 8, it fails with errno == ENOSYS, because there is no
11609         futimens (so it can't use the fd), and there is no lutimens (so it
11610         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11611
11612         vsnprintf: make more consistent with snprintf; doc fixes
11613
11614         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11615         the byte count return problem was promoted from the snprintf-posix
11616         to the snprintf module.
11617         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11618         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11619         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11620         * tests/test-snprintf.c (main): Check the byte count returned.
11621         * tests/test-vsnprintf.c (main): Likewise.
11622
11623 2010-12-23  Eric Blake  <eblake@redhat.com>
11624
11625         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11626         * modules/sigpipe (License): Relax license.
11627
11628 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11629
11630         doc: document Solaris printf bug with large float precisions
11631         * doc/posix-functions/dprintf.texi (dprintf):
11632         * doc/posix-functions/fprintf.texi (fprintf):
11633         * doc/posix-functions/printf.texi (printf):
11634         * doc/posix-functions/snprintf.texi (snprintf):
11635         * doc/posix-functions/sprintf.texi (sprintf):
11636         * doc/posix-functions/vdprintf.texi (vdprintf):
11637         * doc/posix-functions/vfprintf.texi (vfprintf):
11638         * doc/posix-functions/vprintf.texi (vprintf):
11639         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11640         * doc/posix-functions/vsprintf.texi (vsprintf):
11641         Mention that these functions mishandle large floating point
11642         precisions on Solaris 10.  The same bug is also present in Solaris
11643         8, and I assume earlier.  This causes "cd gnulib-tests; make
11644         check" to fail on Solaris 8 (and I assume, later) when building
11645         the latest coreutils, in test-vasprintf-posix's call to
11646         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11647         the wide flavors (e.g., wprintf) so this patch just updates the
11648         documentation for the narrow ones.
11649
11650         test-posixtm.c: add two tests
11651         * tests/test-posixtm.c: Add two tests, to highlight the
11652         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11653         around this bug; this is merely to document it.
11654
11655 2010-12-22  Bruno Haible  <bruno@clisp.org>
11656
11657         getlogin_r: Work around portability problem on OSF/1.
11658         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11659         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11660         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11661         test for a truncated result.
11662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11663         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11664         * modules/getlogin_r (Depends-on): Add memchr.
11665         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11666
11667 2010-12-22  Bruno Haible  <bruno@clisp.org>
11668
11669         ptsname: Avoid test failure on OSF/1 5.1.
11670         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11671         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11672         (same_slave): New function.
11673         (main): Use it to compare ptsname's result with the expected file name.
11674
11675 2010-12-22  Bruno Haible  <bruno@clisp.org>
11676
11677         Port extended stdio modules to HP NonStop Kernel.
11678         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11679         macros.
11680         * lib/fbufmode.c: Update comments.
11681         * lib/fflush.c: Likewise.
11682         * lib/fpurge.c: Likewise.
11683         * lib/freadable.c: Likewise.
11684         * lib/freadahead.c: Likewise.
11685         * lib/freading.c: Likewise.
11686         * lib/freadptr.c: Likewise.
11687         * lib/freadseek.c: Likewise.
11688         * lib/fseeko.c: Likewise.
11689         * lib/fseterr.c: Likewise.
11690         * lib/fwritable.c: Likewise.
11691         * lib/fwriting.c: Likewise.
11692         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11693
11694 2010-12-22  Bruno Haible  <bruno@clisp.org>
11695
11696         ttyname_r: Work around bug on OSF/1 5.1.
11697         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11698         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11699         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11700         present.
11701         * lib/ttyname_r.c (ttyname_r): Update comments.
11702
11703 2010-12-22  Bruno Haible  <bruno@clisp.org>
11704
11705         round: Implement result sign according to IEEE 754.
11706         * lib/round.c (MIN, MINUS_ZERO): New macros.
11707         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11708         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11709         * tests/test-round-ieee.c (main): Likewise.
11710         * tests/test-roundl-ieee.c (main): Likewise.
11711
11712         trunc: Implement result sign according to IEEE 754.
11713         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11714         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11715         * tests/test-trunc2.c: Include minus-zero.h.
11716         (MINUS_ZERO): New macro.
11717         (trunc_reference): Keep in sync with lib/trunc.c.
11718         * tests/test-truncf2.c: Include minus-zero.h.
11719         (MINUS_ZERO): New macro.
11720         (truncf_reference): Keep in sync with lib/trunc.c.
11721         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11722         * tests/test-trunc-ieee.c (main): Likewise.
11723         * tests/test-truncl-ieee.c (main): Likewise.
11724
11725         ceil: Implement result sign according to IEEE 754.
11726         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11727         (FUNC): Return -0.0 for -1 < x < 0.
11728         * tests/test-ceil2.c: Include minus-zero.h.
11729         (MINUS_ZERO): New macro.
11730         (ceil_reference): Keep in sync with lib/ceil.c.
11731         * tests/test-ceilf2.c: Include minus-zero.h.
11732         (MINUS_ZERO): New macro.
11733         (ceilf_reference): Keep in sync with lib/ceil.c.
11734         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11735         * tests/test-ceil-ieee.c (main): Likewise.
11736         * tests/test-ceill-ieee.c (main): Likewise.
11737
11738         floor: Implement result sign according to IEEE 754.
11739         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11740         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11741         * tests/test-floorf2.c (floorf_reference): Likewise.
11742         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11743         * tests/test-floor-ieee.c (main): Likewise.
11744         * tests/test-floorl-ieee.c (main): Likewise.
11745
11746 2010-12-22  Bruno Haible  <bruno@clisp.org>
11747
11748         getaddrinfo: Update doc.
11749         * doc/posix-functions/gai_strerror.texi: Return type is also different
11750         on AIX and HP-UX.
11751
11752 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11753
11754         getaddrinfo, inet_ntop: Update doc for Solaris.
11755         * doc/posix-functions/gai_strerror.texi: Return type is also an
11756         issue on Solaris 9 and earlier.
11757         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11758         on Solaris 10 and earlier.
11759
11760 2010-12-21  Bruno Haible  <bruno@clisp.org>
11761
11762         New module 'roundl-ieee'.
11763         * modules/roundl-ieee: New file.
11764         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11765         test whether roundl works according to ISO C 99 with IEC 60559.
11766         * m4/roundl-ieee.m4: New file.
11767         * modules/roundl-ieee-tests: New file.
11768         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11769         * tests/test-roundl.c (main): Remove signbit tests.
11770         * modules/roundl-tests (Depends-on): Remove signbit.
11771         * doc/posix-functions/roundl.texi: Mention the new module.
11772
11773 2010-12-21  Bruno Haible  <bruno@clisp.org>
11774
11775         New module 'truncl-ieee'.
11776         * modules/truncl-ieee: New file.
11777         * modules/truncl-ieee-tests: New file.
11778         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11779         * tests/test-truncl.c (main): Remove signbit tests.
11780         * modules/truncl-tests (Depends-on): Remove signbit.
11781         * doc/posix-functions/truncl.texi: Mention the new module.
11782
11783 2010-12-21  Bruno Haible  <bruno@clisp.org>
11784
11785         New module 'ceill-ieee'.
11786         * modules/ceill-ieee: New file.
11787         * modules/ceill-ieee-tests: New file.
11788         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11789         * tests/test-ceill.c (main): Remove signbit tests.
11790         * modules/ceill-tests (Depends-on): Remove signbit.
11791         * doc/posix-functions/ceill.texi: Mention the new module.
11792
11793 2010-12-21  Bruno Haible  <bruno@clisp.org>
11794
11795         New module 'floorl-ieee'.
11796         * modules/floorl-ieee: New file.
11797         * modules/floorl-ieee-tests: New file.
11798         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11799         * tests/test-floorl.c (main): Remove signbit tests.
11800         * modules/floorl-tests (Depends-on): Remove signbit.
11801         * doc/posix-functions/floorl.texi: Mention the new module.
11802
11803 2010-12-21  Bruno Haible  <bruno@clisp.org>
11804
11805         New module 'round-ieee'.
11806         * modules/round-ieee: New file.
11807         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11808         whether round works according to ISO C 99 with IEC 60559.
11809         * m4/round-ieee.m4: New file.
11810         * modules/round-ieee-tests: New file.
11811         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11812         * tests/test-round1.c (main): Remove signbit tests.
11813         * modules/round-tests (Depends-on): Remove 'signbit'.
11814         * doc/posix-functions/round.texi: Mention the new module.
11815
11816 2010-12-21  Bruno Haible  <bruno@clisp.org>
11817
11818         New module 'trunc-ieee'.
11819         * modules/trunc-ieee: New file.
11820         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11821         whether trunc works according to ISO C 99 with IEC 60559.
11822         * m4/trunc-ieee.m4: New file.
11823         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11825         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11826         * modules/trunc-ieee-tests: New file.
11827         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11828         * tests/test-trunc1.c (main): Remove signbit tests.
11829         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11830         * doc/posix-functions/trunc.texi: Mention the new module.
11831
11832 2010-12-21  Bruno Haible  <bruno@clisp.org>
11833
11834         New module 'ceil-ieee'.
11835         * modules/ceil-ieee: New file.
11836         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11837         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11838         ISO C 99 with IEC 60559.
11839         * m4/ceil-ieee.m4: New file.
11840         * modules/ceil (Files): Add lib/ceil.c.
11841         (Depends-on): Add 'float'.
11842         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11843         * lib/math.in.h (ceil): New declaration.
11844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11845         REPLACE_CEIL.
11846         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11847         * modules/ceil-ieee-tests: New file.
11848         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11849         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11850         * doc/posix-functions/ceil.texi: Mention the new module.
11851
11852 2010-12-21  Bruno Haible  <bruno@clisp.org>
11853
11854         New module 'floor-ieee'.
11855         * modules/floor-ieee: New file.
11856         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11857         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11858         ISO C 99 with IEC 60559.
11859         * m4/floor-ieee.m4: New file.
11860         * modules/floor (Files): Add lib/floor.c.
11861         (Depends-on): Add 'float'.
11862         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11863         * lib/math.in.h (floor): New declaration.
11864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11865         REPLACE_FLOOR.
11866         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11867         * modules/floor-ieee-tests: New file.
11868         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11869         * tests/test-math-c++.cc: Check the signature of 'floor'.
11870         * doc/posix-functions/floor.texi: Mention the new module.
11871
11872 2010-12-21  Bruno Haible  <bruno@clisp.org>
11873
11874         New module 'roundf-ieee'.
11875         * modules/roundf-ieee: New file.
11876         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11877         test whether roundf works according to ISO C 99 with IEC 60559.
11878         * m4/roundf-ieee.m4: New file.
11879         * modules/roundf-ieee-tests: New file.
11880         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11881         * tests/test-roundf1.c (main): Remove signbit tests.
11882         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11883         * doc/posix-functions/roundf.texi: Mention the new module.
11884
11885 2010-12-21  Bruno Haible  <bruno@clisp.org>
11886
11887         New module 'truncf-ieee'.
11888         * modules/truncf-ieee: New file.
11889         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11890         test whether truncf works according to ISO C 99 with IEC 60559.
11891         * m4/truncf-ieee.m4: New file.
11892         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11894         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11895         * modules/truncf-ieee-tests: New file.
11896         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11897         * tests/test-truncf1.c (main): Remove signbit tests.
11898         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11899         * doc/posix-functions/truncf.texi: Mention the new module.
11900
11901 2010-12-21  Bruno Haible  <bruno@clisp.org>
11902
11903         New module 'ceilf-ieee'.
11904         * modules/ceilf-ieee: New file.
11905         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11906         test whether ceilf works according to ISO C 99 with IEC 60559.
11907         * m4/ceilf-ieee.m4: New file.
11908         * modules/ceilf-ieee-tests: New file.
11909         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11910         * tests/test-ceilf1.c (main): Remove signbit tests.
11911         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11912         * doc/posix-functions/ceilf.texi: Mention the new module.
11913
11914 2010-12-21  Bruno Haible  <bruno@clisp.org>
11915
11916         New module 'floorf-ieee'.
11917         * modules/floorf-ieee: New file.
11918         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11919         test whether floorf works according to ISO C 99 with IEC 60559.
11920         * m4/floorf-ieee.m4: New file.
11921         * modules/floorf-ieee-tests: New file.
11922         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11923         * tests/test-floorf1.c (main): Remove signbit tests.
11924         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11925         * doc/posix-functions/floorf.texi: Mention the new module.
11926
11927 2010-12-21  Bruno Haible  <bruno@clisp.org>
11928
11929         Support for minus zero in autoconf macros.
11930         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11931         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11932         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11933         * tests/minus-zero.h: Update comments.
11934
11935 2010-12-21  Bruno Haible  <bruno@clisp.org>
11936
11937         Tests for module 'ceil'.
11938         * modules/ceil-tests: New file.
11939         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11940         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11941
11942 2010-12-21  Bruno Haible  <bruno@clisp.org>
11943
11944         Tests for module 'floor'.
11945         * modules/floor-tests: New file.
11946         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11947         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11948
11949 2010-12-21  Bruno Haible  <bruno@clisp.org>
11950
11951         math: Fix indentation.
11952         * lib/math.in.h (floorf): Fix indentation.
11953
11954 2010-12-21  Bruno Haible  <bruno@clisp.org>
11955
11956         Fix cross-compilation guesses on Solaris.
11957         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11958         not match "solaris2.10".
11959         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11960         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11961         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11962
11963 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11964
11965         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11966         This fixes a problem observed with the latest coreutils snapshot
11967         that caused a test to fail on Solaris 8.  src/csplit.c's call
11968         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11969         earlier, instead of returning the number of bytes that would have
11970         been generated; this causes csplit to incorrectly report memory
11971         exhaustion.
11972         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11973         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11974         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11975         comments to match.
11976         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11977         Fix typo in matching older versions of Solaris: "solaris2.10"
11978         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11979         only for guessing while cross-compiling.
11980         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11981
11982 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11983
11984         ftoastr: fix comment again
11985         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11986         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11987         Also, simplify example a bit by using flags = 0.
11988
11989 2010-12-20  Bruno Haible  <bruno@clisp.org>
11990
11991         round*, trunc*: Update documentation regarding glibc.
11992         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11993         * doc/posix-functions/round.texi: Likewise.
11994         * doc/posix-functions/roundl.texi: Likewise.
11995         * doc/posix-functions/truncf.texi: Likewise.
11996         * doc/posix-functions/trunc.texi: Likewise.
11997         * doc/posix-functions/truncl.texi: Likewise.
11998
11999 2010-12-20  Bruno Haible  <bruno@clisp.org>
12000
12001         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12002         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12003         * doc/posix-functions/round.texi: Likewise.
12004         * doc/posix-functions/roundl.texi: Likewise.
12005
12006 2010-12-20  Bruno Haible  <bruno@clisp.org>
12007
12008         ttyname_r: Add missing declaration on HP-UX 11.
12009         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12010         HAVE_TTYNAME_R.
12011         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12012         declared. Set HAVE_TTYNAME_R always.
12013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12014         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12015         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12016         HAVE_TTYNAME_R.
12017         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12018
12019 2010-12-20  Bruno Haible  <bruno@clisp.org>
12020
12021         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12022         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12023         * doc/posix-functions/getlogin_r.texi: Likewise.
12024         * tests/test-getlogin.c: Include <errno.h>.
12025         (main): Avoid test failure on HP-UX 11.11.
12026         * tests/test-getlogin_r.c (main): Likewise.
12027
12028 2010-12-20  Bruno Haible  <bruno@clisp.org>
12029
12030         getlogin_r: Add missing declaration on HP-UX 11.
12031         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12032         declared also when it exists as a function.
12033         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12034
12035 2010-12-20  Bruno Haible  <bruno@clisp.org>
12036
12037         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12038         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12039         through wcrtomb.
12040
12041 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12042
12043         ftoastr: fix comment
12044         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12046
12047 2010-12-19  Bruno Haible  <bruno@clisp.org>
12048
12049         isnan: Ensure it is a macro.
12050         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12051         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12052         Solaris.
12053
12054 2010-12-19  Bruno Haible  <bruno@clisp.org>
12055
12056         ldexpl test: Fix link error on OSF/1 5.1.
12057         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12058
12059 2010-12-19  Bruno Haible  <bruno@clisp.org>
12060
12061         wctype: Make it work in C++ mode on OSF/1 5.1.
12062         * lib/wctype.in.h (iswblank): Declare but not define here.
12063         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12064         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12065         * modules/wctype (Files): Add lib/iswblank.c.
12066
12067 2010-12-19  Bruno Haible  <bruno@clisp.org>
12068
12069         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12070         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12071         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12072
12073 2010-12-19  Bruno Haible  <bruno@clisp.org>
12074
12075         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12077         _POSIX_PII_SOCKET.
12078         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12079         * doc/posix-functions/recvfrom.texi: Likewise.
12080         * doc/posix-functions/send.texi: Likewise.
12081         * doc/posix-functions/sendto.texi: Likewise.
12082
12083 2010-12-19  Bruno Haible  <bruno@clisp.org>
12084
12085         tcgetsid: Add missing declaration on OSF/1 5.1.
12086         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12087         HAVE_TCGETSID.
12088         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12089         Don't set HAVE_TCGETSID.
12090         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12091         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12092         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12093         HAVE_TCGETSID.
12094         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12095
12096 2010-12-19  Bruno Haible  <bruno@clisp.org>
12097
12098         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12099         * lib/stdio.in.h: During the include_next statement, let recursive
12100         includes of this file include only the system header file.
12101
12102 2010-12-19  Bruno Haible  <bruno@clisp.org>
12103
12104         iconv_open: Fix regression from 2010-12-04.
12105         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12106         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12107
12108 2010-12-19  Bruno Haible  <bruno@clisp.org>
12109
12110         stdbool test: Avoid a gcc warning.
12111         * tests/test-stdbool.c (main): Fail if e1 is false.
12112         Reported by Jim Meyering.
12113
12114 2010-12-19  Jim Meyering  <meyering@redhat.com>
12115
12116         setenv: restore to working order
12117         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12118         mistakenly removed.
12119         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12120         HAVE_SETENV.
12121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12122         HAVE_SETENV.
12123
12124 2010-12-19  Bruno Haible  <bruno@clisp.org>
12125
12126         Document some different function declarations on OSF/1 5.1.
12127         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12128         * doc/posix-functions/inet_ntop.texi: Likewise.
12129         * doc/posix-functions/gethostname.texi: Likewise.
12130         * lib/unistd.in.h (gethostname): Update comment.
12131
12132 2010-12-19  Bruno Haible  <bruno@clisp.org>
12133
12134         doc: Mention vasprintf-posix module.
12135         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12136         the 'vasprintf-posix' module.
12137         * doc/glibc-functions/vasprintf.texi: Likewise.
12138
12139 2010-12-19  Bruno Haible  <bruno@clisp.org>
12140
12141         unsetenv: Add missing declaration on OSF/1 5.1.
12142         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12144         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12146         not HAVE_UNSETENV.
12147         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12148         HAVE_UNSETENV.
12149         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12150
12151 2010-12-19  Bruno Haible  <bruno@clisp.org>
12152
12153         setenv: Add missing declaration on OSF/1 5.1.
12154         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12156         declared. Don't set HAVE_SETENV.
12157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12158         not HAVE_SETENV.
12159         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12160         HAVE_SETENV.
12161         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12162
12163 2010-12-19  Bruno Haible  <bruno@clisp.org>
12164
12165         nl_langinfo tests: Avoid gcc warning.
12166         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12167
12168 2010-12-19  Bruno Haible  <bruno@clisp.org>
12169
12170         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12171         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12172         _GL_CXXALIAS_SYS.
12173
12174 2010-12-19  Bruno Haible  <bruno@clisp.org>
12175
12176         stdbool: Relax test.
12177         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12178         address to 'bool' work in static initializer, for compilers other than
12179         GCC.
12180
12181 2010-12-19  Bruno Haible  <bruno@clisp.org>
12182
12183         ftello: Add missing declaration on OSF/1 5.1.
12184         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12185         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12187         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12188         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12189
12190 2010-12-19  Bruno Haible  <bruno@clisp.org>
12191
12192         fseeko: Add missing declaration on OSF/1 5.1.
12193         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12196         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12197         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12198
12199 2010-12-19  Bruno Haible  <bruno@clisp.org>
12200
12201         fchdir: Add missing declaration on OSF/1 5.1.
12202         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12205         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12206         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12207
12208 2010-12-19  Bruno Haible  <bruno@clisp.org>
12209
12210         relocatable-prog-wrapper: Separate from relocatable-prog.
12211         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12212         uninstall-relocwrapper rule here.
12213         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12214         Reported by Ian Beckwith <ianb@erislabs.net>.
12215
12216 2010-12-19  Bruno Haible  <bruno@clisp.org>
12217
12218         unistr/u8-mbsnlen: Add missing dependency.
12219         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12220         Reported by Ian Beckwith <ianb@erislabs.net>.
12221
12222 2010-12-19  Bruno Haible  <bruno@clisp.org>
12223
12224         iconv: Make it possible again to use this module without 'iconv-h'.
12225         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12226         if it is not defined.
12227         Reported by Ian Beckwith <ianb@erislabs.net>.
12228
12229 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12230
12231         acl: port to Solaris 8 when copying from tmpfs to ufs
12232         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12233         error number.  Problem observed on Solaris 8 with latest
12234         coreutils, with "mv A B", where A is on a tmpfs file system and B
12235         is on a ufs file system.  This caused coreutils' mv/part-symlink
12236         test to fail.
12237
12238         tests: set fail=0 at start
12239         * tests/init.sh (setup_): Move fail=0 initialization here ...
12240         (mktempd_): ... from here, so that tests can rely on fail being
12241         set to 0 initially.  This fixes a problem in coreutils; see:
12242         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12243
12244 2010-12-18  Bruno Haible  <bruno@clisp.org>
12245
12246         memmem-simple: Stylistic changes.
12247         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12248         Fix preprocessor directive indentation.
12249
12250 2010-12-15  Pádraig Brady <P@draigBrady.com>
12251
12252         memmem, memmem-simple: reorganize and expand empty needle check
12253         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12254         functional checks to memmem-simple so that one has a fully functional
12255         memmem by using just this module.
12256         Restrict the performance only check to the memmem module.
12257         Also expand the empty needle check to ensure the correct
12258         pointer is returned, not just a non NULL pointer.
12259         * doc/glibc-functions/memmem.texi: Rearrange the portability
12260         documentation to correlate with the rearranged checks.
12261         Clarify exactly how the memmem and memmem-simple modules
12262         relate to each other.
12263
12264 2010-12-15  Pádraig Brady <P@draigBrady.com>
12265             Bruno Haible  <bruno@clisp.org>
12266
12267         Improve cross-compilation guesses for uClibc.
12268         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12269         that uClibc does not have the glibc bug.
12270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12271         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12272
12273 2010-12-14  Eric Blake  <eblake@redhat.com>
12274
12275         configmake: provide fallbacks for oldest supported autotools
12276         * m4/configmake.m4: New file.
12277         * modules/configmake (Files): Ship it.
12278         (configure.ac): Use it to guarantee fallbacks.
12279
12280 2010-12-13  Pádraig Brady <P@draigBrady.com>
12281
12282         read-file: Improve handling of large files
12283         * lib/read-file.c (fread_file): Minimize realloc()s
12284         for regular files, and better manage sizes around SIZE_MAX.
12285
12286 2010-12-13  Eric Blake  <eblake@redhat.com>
12287
12288         cloexec, fcntl: relax license
12289         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12290         consent from all contributors.
12291         * modules/fcntl (License): Likewise.
12292
12293 2010-12-10  Bruno Haible  <bruno@clisp.org>
12294
12295         Tests for module 'pipe-posix'.
12296         * modules/pipe-posix-tests: New file.
12297         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12298
12299 2010-12-10  Bruno Haible  <bruno@clisp.org>
12300
12301         pipe-posix: Make it work in C++ mode.
12302         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12303         (pipe): Use common idiom, not a macro definition.
12304         * lib/pipe.c: New file.
12305         * m4/pipe.m4: New file.
12306         * modules/pipe-posix (Description): Enhance.
12307         (Files): Add lib/pipe.c, m4/pipe.m4.
12308         (configure.ac): Invoke gl_FUNC_PIPE.
12309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12310         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12311         * tests/test-unistd-c++.cc: Check the signature of pipe.
12312
12313 2010-12-10  Bruno Haible  <bruno@clisp.org>
12314
12315         Rename module 'pipe' to 'spawn-pipe'.
12316         * modules/spawn-pipe: New file, renamed from modules/pipe.
12317         (Files, configure.ac, Makefile.am): Update.
12318         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12319         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12320         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12321         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12322         "spawn-pipe.h" instead of "pipe.h".
12323         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12324         to gl_SPAWN_PIPE.
12325         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12326         (Files, Makefile.am): Update.
12327         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12328         Update.
12329         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12330         Include "spawn-pipe.h" instead of "pipe.h".
12331         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12332         * lib/javacomp.c: Likewise.
12333         * lib/javaversion.c: Likewise.
12334         * lib/pipe-filter-gi.c: Likewise.
12335         * lib/pipe-filter-ii.c: Likewise.
12336         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12337         * modules/javacomp (Depends-on): Likewise.
12338         * modules/javaversion (Depends-on): Likewise.
12339         * modules/pipe-filter-gi (Depends-on): Likewise.
12340         * modules/pipe-filter-ii (Depends-on): Likewise.
12341         * MODULES.html.sh (Executing programs): Update.
12342         * NEWS: Mention the change.
12343
12344 2010-12-10  Eric Blake  <eblake@redhat.com>
12345
12346         pipe-posix: new module
12347         * modules/pipe-posix: New file.
12348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12349         (gl_UNISTD_H): Check for declaration.
12350         * modules/unistd (Makefile.am): Substitute it.
12351         * lib/unistd.in.h (pipe): Provide it for mingw.
12352         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12353         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12354
12355 2010-12-07  Bruno Haible  <bruno@clisp.org>
12356
12357         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12358         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12359         u8_strcmp_gnu.
12360         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12361
12362 2010-12-06  Bruno Haible  <bruno@clisp.org>
12363
12364         Update internal documentation.
12365         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12366
12367 2010-12-04  Bruno Haible  <bruno@clisp.org>
12368
12369         Put more information about failed tests into the test return codes.
12370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12371         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12372         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12373         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12374         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12375         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12376         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12377         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12378         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12381         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12382         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12383         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12384         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12385         returns a bit mask.
12386         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12387         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12388         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12389         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12390         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12391         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12394         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12395         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12396         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12397         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12398         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12400         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12401         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12402         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12403         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12404         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12405         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12407         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12408         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12409         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12410         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12411         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12412         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12413         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12414         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12415         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12416         gl_PRINTF_PRECISION): Likewise.
12417         * m4/regex.m4 (gl_REGEX): Likewise.
12418         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12419         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12420         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12421         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12422         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12424         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12425         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12426         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12427         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12428         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12429         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12430         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12431         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12432         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12433         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12434         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12435         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12437         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12438         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12439         enumerated value.
12440         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12441
12442 2010-12-04  Bruno Haible  <bruno@clisp.org>
12443
12444         Update for Solaris 11 2010-11.
12445         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12446         Express, released in November 2010.
12447
12448 2010-12-04  Bruno Haible  <bruno@clisp.org>
12449
12450         nproc: Relax license.
12451         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12452         and Paul Eggert.
12453         Requested by Ludovic Courtès <ludo@gnu.org>.
12454
12455 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12456
12457         utimecmp: fine-grained src to nearby coarse-grained dest
12458
12459         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12460         and the source is on a file system with higher-resolution time
12461         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12462         not work, and the time stamps are close together, the algorithm to
12463         determine the exact resolution from the read-back mtime was buggy:
12464         it had a "!=" where it should have had an "==".  This bug has been
12465         in the code ever since it was introduced to gnulib.
12466         Problem reported by Dan Jacobson in
12467         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12468
12469 2010-11-30  Bruno Haible  <bruno@clisp.org>
12470
12471         strerror_r-posix: Fix autoconf test.
12472         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12473
12474 2010-11-28  Bruno Haible  <bruno@clisp.org>
12475             Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         Tests for module 'getdomainname'.
12478         * modules/getdomainname-tests: New file.
12479         * tests/test-getdomainname.c: New file, based on
12480         tests/test-gethostname.c.
12481
12482 2010-11-28  Bruno Haible  <bruno@clisp.org>
12483             Paul Eggert  <eggert@cs.ucla.edu>
12484
12485         getdomainname: Use the system function when possible.
12486         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12487         (getdomainname): Replace if needed. Provide the declaration if it is
12488         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12489         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12490         (getdomainname): When the system has getdomainname, call the system
12491         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12492         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12493         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12494         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12495         the function if its second argument is of type 'int' or if it is found
12496         in libnsl.
12497         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12498         <sys/systeminfo.h> and sysinfo().
12499         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12501         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12502         HAVE_GETDOMAINNAME.
12503         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12504         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12505         * doc/glibc-functions/getdomainname.texi: Document the problems with
12506         the getdomainname declaration.
12507
12508 2010-11-28  Bruno Haible  <bruno@clisp.org>
12509
12510         sys_socket: Ensure ss_family field on AIX.
12511         * lib/sys_socket.in.h (ss_family): New macro definition.
12512         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12513         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12514         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12515         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12516         * modules/sys_socket (Makefile.am): Substitute
12517         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12518         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12519
12520 2010-11-27  Bruno Haible  <bruno@clisp.org>
12521
12522         readline: Improve configure output.
12523         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12524         "checking for readline..." result understandable.
12525
12526 2010-11-27  Bruno Haible  <bruno@clisp.org>
12527
12528         *printf-posix: Detect a bug on Solaris 10/x86.
12529         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12530         for floating-point output.
12531         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12532         directive.
12533         * tests/test-snprintf-posix.h (test_function): Likewise.
12534         * tests/test-sprintf-posix.h (test_function): Likewise.
12535         * tests/test-vasprintf-posix.c (test_function): Likewise.
12536         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12537         * doc/posix-functions/printf.texi: Likewise.
12538         * doc/posix-functions/snprintf.texi: Likewise.
12539         * doc/posix-functions/sprintf.texi: Likewise.
12540         * doc/posix-functions/vfprintf.texi: Likewise.
12541         * doc/posix-functions/vprintf.texi: Likewise.
12542         * doc/posix-functions/vsnprintf.texi: Likewise.
12543         * doc/posix-functions/vsprintf.texi: Likewise.
12544         * doc/glibc-functions/obstack_printf.texi: Likewise.
12545         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12546
12547 2010-11-27  Bruno Haible  <bruno@clisp.org>
12548
12549         Fix link error when module libunistring-optional is in use.
12550         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12551         * modules/striconveha-tests (Makefile.am): Likewise.
12552
12553 2010-11-27  Bruno Haible  <bruno@clisp.org>
12554
12555         regex: Mention link dependencies.
12556         * modules/regex (Link): New section.
12557         * modules/rpmatch (Link): Likewise.
12558         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12559
12560 2010-11-27  Bruno Haible  <bruno@clisp.org>
12561
12562         ftoastr: Fix compilation error on Solaris.
12563         * lib/ftoastr.c: Include <config.h>.
12564
12565 2010-11-27  Bruno Haible  <bruno@clisp.org>
12566
12567         getloadavg: Update documentation.
12568         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12569
12570 2010-11-27  Bruno Haible  <bruno@clisp.org>
12571
12572         sys_socket: Fix test whether the functions are declared.
12573         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12574         not <sys/select.h>.
12575
12576 2010-11-27  Bruno Haible  <bruno@clisp.org>
12577
12578         getpass: Make sure to get system declaration on some platforms.
12579         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12580         gl_USE_SYSTEM_EXTENSIONS.
12581         * modules/getpass (Depends-on): Add extensions.
12582
12583 2010-11-26  Bruno Haible  <bruno@clisp.org>
12584
12585         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12586         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12587         'iconv' module is present.
12588         (ICONV_CONST): New macro.
12589         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12590         ICONV_CONST.
12591         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12592         set ICONV_CONST.
12593         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12594         here.
12595         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12596         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12597         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12598         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12599         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12600         present.
12601
12602 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12603
12604         ftoastr: comment fix
12605         * lib/ftoastr.c: "little" -> "little or no" in comment
12606
12607 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12608
12609         stdint: port to GCC 4.3 + OSX + Octave
12610         On this platform, stdint.h is buggy and defines int64_t to long
12611         long int.  The replacement defined it to long int, causing
12612         problems with C++ style name mangling.  Instead, trust the system
12613         definition if INT64_MAX is defined, and likewise for the unsigned
12614         variant.   Problem reported by Jarno Rajahalme in
12615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12616         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12617         and don't mess with int64_t and INT64_MAX in this case.
12618         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12619
12620 2010-11-24  Bruno Haible  <bruno@clisp.org>
12621
12622         doc: Corrections regarding MacOS X 10.4 and 10.5.
12623         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12624         MacOS X.
12625         Reported by Simon Josefsson.
12626
12627 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12628
12629         Uninstall ".bin" files installed by relocwrapper.
12630         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12631         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12632         unless it is already there.
12633
12634 2010-11-21  Bruno Haible  <bruno@clisp.org>
12635
12636         Update for NetBSD 5.0.
12637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12638         NetBSD; the test fails on NetBSD 5.0.
12639         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12640         about NetBSD.
12641
12642 2010-11-21  Bruno Haible  <bruno@clisp.org>
12643
12644         Update for HP-UX 11.23 and HP-UX 11.31.
12645         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12646         HP-UX.
12647
12648 2010-11-21  Bruno Haible  <bruno@clisp.org>
12649
12650         Update for MacOS X 10.5.
12651         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12652         MacOS X; the test fails on MacOS X 10.5.8.
12653         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12654         about MacOS X.
12655
12656 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12657
12658         bootstrap: add bootstrap_sync option.
12659         See discussion at
12660         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12661         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12662         * build-aux/bootstrap: Accept --bootstrap-sync to update
12663         bootstrap if it is not identical to the local gnulib's
12664         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12665         enable this by default.  Accept --no-bootstrap-sync to disable
12666         it.
12667
12668 2010-11-20  Bruno Haible  <bruno@clisp.org>
12669
12670         Ensure that <features.h> is included before __GLIBC__ is tested.
12671         * lib/printf-parse.h: Include <features.h>.
12672         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12673         Reported by Mike Frysinger <vapier@gentoo.org>.
12674
12675         Ensure that <features.h> is included before __GLIBC__ is tested.
12676         * lib/wchar.in.h: Include <features.h>.
12677         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12678         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12679         Reported by Mike Frysinger <vapier@gentoo.org>.
12680
12681         Ensure that <features.h> is included before __GLIBC__ is tested.
12682         * lib/arpa_inet.in.h: Include <features.h>.
12683         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12684         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12685         Reported by Mike Frysinger <vapier@gentoo.org>.
12686
12687         Ensure that <features.h> is included before __GLIBC__ is tested.
12688         * build-aux/link-warning.h: Include <features.h>.
12689         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12690         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12691         Reported by Mike Frysinger <vapier@gentoo.org>.
12692
12693         Ensure that <features.h> is included before __GLIBC__ is tested.
12694         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12695         Reported by Mike Frysinger <vapier@gentoo.org>.
12696
12697 2010-11-20  Bruno Haible  <bruno@clisp.org>
12698
12699         memmem: Fix autoconf test.
12700         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12701
12702 2010-11-20  Bruno Haible  <bruno@clisp.org>
12703
12704         Port to uClibc.
12705         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12706         * lib/fcntl.in.h: Likewise.
12707         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12708         * lib/mbrtowc.c (mbrtowc): Likewise.
12709         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12710         * lib/strerror_r.c: Likewise.
12711         * lib/unistr/u8-strnlen.c: Likewise.
12712         * lib/vasnprintf.c (decimal_point_char): Likewise.
12713         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12714         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12715         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12716         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12717         * tests/test-sigaction.c (handler, main): Likewise.
12718         * lib/freading.h: Treat uClibc like a non-glibc platform.
12719         * lib/freading.c: Likewise.
12720         * lib/gettext.h: Likewise.
12721         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12722         Likewise.
12723         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12724         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12725         * lib/propername.c (proper_name_utf8): Likewise.
12726         * lib/spawn.in.h: Likewise.
12727         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12728         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12729         mem_cd_iconveh_internal): Likewise.
12730         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12731         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12732         strstr, strcasestr): Likewise.
12733         * lib/unicodeio.c (unicode_to_mb): Likewise.
12734         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12735         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12736         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12737         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12738         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12739         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12740         * lib/unistr/u8-stpncpy.c: Likewise.
12741         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12742         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12743         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12744         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12745         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12747         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12750         Likewise.
12751         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12752         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12753         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12754         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12756         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12757         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12758         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12759         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12760         * tests/test-striconveha.c (main): Likewise.
12761         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12762         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12763         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12764         * doc/posix-functions/getline.texi: Likewise.
12765         Reported by Mike Frysinger <vapier@gentoo.org>.
12766
12767 2010-11-20  Bruno Haible  <bruno@clisp.org>
12768
12769         nproc: Fix condition.
12770         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12771         HAVE_PTHREAD_AFFINITY_NP.
12772
12773 2010-11-20  Bruno Haible  <bruno@clisp.org>
12774
12775         Fix a comment.
12776         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12777
12778 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12779
12780         ftoastr: don't assume snprintf
12781         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12782         Implement a subset of snprintf here, by using sprintf safely.
12783         * modules/ftoastr (Depends-on): Remove snprintf.
12784
12785 2010-11-19  Jim Meyering  <meyering@redhat.com>
12786
12787         test-rename.h: fix compilation failure
12788         * tests/test-rename.h (test_rename): Add omitted "}".
12789
12790 2010-11-17  Jim Meyering  <meyering@redhat.com>
12791
12792         maint.mk: add a URL discussing the no-@acronym policy
12793         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12794
12795 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12796
12797         ftoastr: depend on snprintf, improve comments
12798         * lib/ftoastr.c: Also mention Loitsch's draft.
12799         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12800         needed in the current implementation, but it might simplify
12801         speeding up the code later.
12802         * modules/ftoastr: Depend on snprintf; this improves portability.
12803         Suggested by Bruno Haible in the same email.
12804
12805         ftoastr: port to hosts lacking strtof and strtold
12806         Problem reported by Bruno Haible in
12807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12808         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12809         environment and strtold (and presumably strtof) are not available.
12810         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12811         (configure.ac): Require gl_C99_STRTOLD.
12812
12813 2010-11-18  Bruno Haible  <bruno@clisp.org>
12814
12815         c-strtold: Avoid link error on AIX 7.
12816         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12817         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12818         (gl_C_STRTOLD): Test whether strtold_l exists.
12819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12820
12821 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12822
12823         intprops: new macro INT_BITS_STRLEN_BOUND
12824         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12825         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12826         not exposed.  Also, it uses a slightly tighter bound than before;
12827         though this makes no practical difference, we might as well be as
12828         tight as we easily can.
12829
12830         ftoastr: new module, for lossless conversion of floats to short strings
12831         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12832         * modules/ftoastr: New files.
12833
12834 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12835
12836         bootstrap: port to Solaris sed
12837         * build-aux/bootstrap (get_version): Port to Solaris sed.
12838         See Ralf Wildenhues's note in
12839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12840
12841 2010-11-14  Jim Meyering  <meyering@redhat.com>
12842
12843         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12844         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12845         and move definition closer to sole use.
12846
12847 2010-11-13  Jim Meyering  <meyering@redhat.com>
12848
12849         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12850         Now we require at least autoconf-2.59, which means the work-around
12851         is no longer needed.
12852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12853         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12854         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12855         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12856         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12857
12858 2010-11-13  Bruno Haible  <bruno@clisp.org>
12859
12860         rename, renameat: Avoid test failures at NFS mounted locations.
12861         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12862         functions.
12863         (test_rename): Use assert_nonexistent.
12864         * tests/test-rename.c: Include <dirent.h>.
12865         * tests/test-renameat.c: Likewise.
12866         Reported by Gary V. Vaughan <gary@gnu.org>.
12867
12868         rename, renameat: Document Linux bug with NFS
12869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12870         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12871         * doc/posix-functions/renameat.texi: Likewise.
12872         Suggested by Eric Blake.
12873
12874 2010-11-13  Bruno Haible  <bruno@clisp.org>
12875
12876         rename test: Add comments.
12877         * tests/test-rename.h (test_rename): Add structure and comments.
12878
12879 2010-11-13  Eric Blake  <eblake@redhat.com>
12880
12881         maintainer-makefile: cover a few more files
12882         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12883         scripts generated within C files, for libvirt.
12884
12885 2010-11-13  Bruno Haible  <bruno@clisp.org>
12886
12887         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12888         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12889         character, return the number of bytes that belong together, not always
12890         1.
12891         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12892         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12893         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12894         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12895         number of bytes of an invalid character.
12896         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12897         (main): Invoke it.
12898         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12899         results.
12900         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12901         malformed byte sequences.
12902         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12903         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12904         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12905         Reported by Ben Pfaff and Paolo Bonzini.
12906
12907 2010-11-13  Bruno Haible  <bruno@clisp.org>
12908
12909         openat: Work around glibc bug with fchownat() and empty file names.
12910         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12911         (gl_FUNC_FCHOWNAT): Invoke it.
12912         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12913         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12914         Reported by Gary V. Vaughan <gary@gnu.org>.
12915
12916 2010-11-13  Bruno Haible  <bruno@clisp.org>
12917
12918         openat: Ensure autoconf macro ordering.
12919         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12920         gl_USE_SYSTEM_EXTENSIONS.
12921         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12922
12923 2010-11-13  Bruno Haible  <bruno@clisp.org>
12924
12925         Update comments.
12926         * lib/unistr/u8-check.c: Update file name in comments.
12927         * lib/unistr/u8-mblen.c: Likewise.
12928         * lib/unistr/u8-prev.c: Likewise.
12929         * lib/unistr/u8-strmblen.c: Likewise.
12930         * lib/unistr/u8-strmbtouc.c: Likewise.
12931
12932 2010-11-13  Jim Meyering  <meyering@redhat.com>
12933
12934         tests: avoid test failure on Solaris 10 due to lack of PATH export
12935         * tests/test-update-copyright.sh: Don't forget to export PATH.
12936
12937         init.sh: ensure that IFS is defined, just in case...
12938         * tests/init.sh (setup_): Ensure that IFS is defined,
12939         so that saving and restoring it works as expected.  This
12940         appears to be useful at least for an old version of dash
12941         from a long time ago (RH 6).  See here for details:
12942         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12943
12944         maint.mk: tighten "test a == b" check
12945         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12946         test to files that contain something like #!/bin/sh.
12947         Without this, coreutils would get two false positives in
12948         the comments of C source files.
12949
12950 2010-11-12  Eric Blake  <eblake@redhat.com>
12951
12952         bootstrap: fix typo in previous attempt
12953         * build-aux/bootstrap (buildreq): Correct the grouping.
12954         Reported by Paul Eggert.
12955
12956         maintainer-makefile: prohibit test x == x
12957         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12958         Based on a report by Matthias Bolte.
12959
12960         bootstrap: allow FreeBSD gzip
12961         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12962         which has no '.' and goes to stderr.
12963         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12964         Reported by Matthias Bolte.
12965
12966         maintainer-makefile: check for i18n setup
12967         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12968         will likely work.
12969
12970 2010-11-12  Bruno Haible  <bruno@clisp.org>
12971
12972         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12973         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12974         * lib/nanosleep.c (nanosleep): Likewise.
12975
12976 2010-11-11  Bruno Haible  <bruno@clisp.org>
12977
12978         fcntl-h: Fix for use of C++ on glibc systems.
12979         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12980         also on glibc systems in C++ mode.
12981         Reported by Gary V. Vaughan <gary@gnu.org>.
12982
12983 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12984
12985         mknod: avoid false failure with dash
12986         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12987
12988 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12989
12990         unlink: Fix "is it should" typo in diagnostic.
12991         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12992         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12993
12994 2010-11-11  Bruno Haible  <bruno@clisp.org>
12995
12996         Tests for module 'strerror_r-posix'.
12997         * modules/strerror_r-posix-tests: New file.
12998         * tests/test-strerror_r.c: New file.
12999         * tests/test-string-c++.cc: Check the signature of strerror_r.
13000
13001         New module 'strerror_r-posix'.
13002         * lib/string.in.h (strerror_r): New declaration.
13003         * lib/strerror_r.c: New file.
13004         * m4/strerror_r.m4: New file.
13005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13006         of strerror_r.
13007         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13008         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13009         * modules/strerror_r-posix: New file.
13010         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13011         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13012         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13013         portability problems.
13014
13015 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13016
13017         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13018         line is also considered for output. Quoted function name in shell
13019         command, so temporary files for functions like MyClass::operator()
13020         are removed correctly without errors.
13021
13022 2010-11-09  Bruno Haible  <bruno@clisp.org>
13023
13024         * doc/posix-functions/strerror.texi: List more failing platforms.
13025
13026         * doc/posix-functions/strerror.texi: Add a comment.
13027
13028 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13029
13030         fdopendir: fix bug on MacOS X when low on file descriptors
13031
13032         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13033         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13034         All callers changed.
13035         (fdopendir): Invoke save_cwd at the top level, not after using
13036         multiple dup() calls to use up file descriptors.  Then retry
13037         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13038         less than the maximum number of open file descriptors, because
13039         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13040         on Mac OS X 10.6.4 for tar 1.24
13041         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13042         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13043         and for tar 1.25
13044         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13045
13046 2010-11-07  Bruno Haible  <bruno@clisp.org>
13047
13048         vasnprintf: Support I flag on glibc systems.
13049         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13050         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13051         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13052         snprintf function.
13053         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13054         glibc systems.
13055         * tests/test-vasnprintf-posix3.c: New file.
13056         * modules/vasnprintf-posix-tests (Files): Add it.
13057         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13058
13059 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13060
13061         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13062         * MODULES.html.sh: For compiler warnings, use name
13063         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13064
13065 2010-11-05  Eric Blake  <eblake@redhat.com>
13066
13067         ceil, floor: avoid spurious failure with icc
13068         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13069         [denormals-as-zero] when optimizing without -mieee-fp option.
13070         * tests/test-floorf2.c (floorf_reference): Likewise.
13071         * tests/test-ceilf1.c (dummy): New function.
13072         (main): Use it to outsmart icc's optimization.
13073         * tests/test-floorf1.c (dummy, main): Likewise.
13074
13075         tests: require working signbit
13076         * modules/ceilf-tests (Depends-on): Add signbit.
13077         * modules/ceill-tests (Depends-on): Likewise.
13078         * modules/floorf-tests (Depends-on): Likewise.
13079         * modules/floorl-tests (Depends-on): Likewise.
13080         * modules/round-tests (Depends-on): Likewise.
13081         * modules/roundf-tests (Depends-on): Likewise.
13082         * modules/roundl-tests (Depends-on): Likewise.
13083         * modules/trunc-tests (Depends-on): Likewise.
13084         * modules/truncf-tests (Depends-on): Likewise.
13085         * modules/truncl-tests (Depends-on): Likewise.
13086
13087         strtod: work around icc bug
13088         * lib/strtod.c (minus_zero): Define to working value.
13089         (strtod): Use it to avoid icc bug.
13090
13091         copysign: enhance tests
13092         * modules/copysign-tests (Files): Add minus-zero.h.
13093         * tests/test-copysign.c (main): Also test zeros.
13094
13095 2010-11-04  Eric Blake  <eblake@redhat.com>
13096
13097         ceil, floor, round, trunc: enhance tests of -0
13098         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13099         * tests/test-ceill.c (main): Likewise.
13100         * tests/test-floorf1.c (main): Likewise.
13101         * tests/test-floorl.c (main): Likewise.
13102         * tests/test-round1.c (main): Likewise.
13103         * tests/test-roundf1.c (main): Likewise.
13104         * tests/test-roundl.c (main): Likewise.
13105         * tests/test-trunc1.c (main): Likewise.
13106         * tests/test-truncf1.c (main): Likewise.
13107         * tests/test-truncl.c (main): Likewise.
13108
13109 2010-11-04  Eric Blake  <eblake@redhat.com>
13110
13111         frexp, tests: work around ICC bug with -zero
13112         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13113         works with more compilers.
13114         * tests/minus-zero.h: New file.
13115         * modules/ceilf-tests (Files): Include it.
13116         * modules/ceill-tests (Files): Likewise.
13117         * modules/floorf-tests (Files): Likewise.
13118         * modules/floorl-tests (Files): Likewise.
13119         * modules/frexp-nolibm-tests (Files): Likewise.
13120         * modules/frexp-tests (Files): Likewise.
13121         * modules/frexpl-nolibm-tests (Files): Likewise.
13122         * modules/frexpl-tests (Files): Likewise.
13123         * modules/isnan-tests (Files): Likewise.
13124         * modules/isnand-nolibm-tests (Files): Likewise.
13125         * modules/isnand-tests (Files): Likewise.
13126         * modules/isnanf-nolibm-tests (Files): Likewise.
13127         * modules/isnanf-tests (Files): Likewise.
13128         * modules/isnanl-nolibm-tests (Files): Likewise.
13129         * modules/isnanl-tests (Files): Likewise.
13130         * modules/round-tests (Files): Likewise.
13131         * modules/roundf-tests (Files): Likewise.
13132         * modules/roundl-tests (Files): Likewise.
13133         * modules/ldexpl-tests (Files): Likewise.
13134         * modules/signbit-tests (Files): Likewise.
13135         * modules/snprintf-posix-tests (Files): Likewise.
13136         * modules/sprintf-posix-tests (Files): Likewise.
13137         * modules/strtod-tests (Files): Likewise.
13138         * modules/trunc-tests (Files): Likewise.
13139         * modules/truncf-tests (Files): Likewise.
13140         * modules/truncl-tests (Files): Likewise.
13141         * modules/vsnprintf-posix-tests (Files): Likewise.
13142         * modules/vsprintf-posix-tests (Files): Likewise.
13143         * modules/vasnprintf-posix-tests (Files): Likewise.
13144         * modules/vasprintf-posix-tests (Files): Likewise.
13145         * tests/test-ceilf1.c (main): Use it.
13146         * tests/test-ceill.c (main): Likewise.
13147         * tests/test-floorf1.c (main): Likewise.
13148         * tests/test-floorl.c (main): Likewise.
13149         * tests/test-frexp.c (main): Likewise.
13150         * tests/test-frexpl.c (main): Likewise.
13151         * tests/test-isnan.c (main): Likewise.
13152         * tests/test-isnand.h (main): Likewise.
13153         * tests/test-isnanf.h (main): Likewise.
13154         * tests/test-isnanl.h (main): Likewise.
13155         * tests/test-ldexpl.c (main): Likewise.
13156         * tests/test-round.c (main): Likewise.
13157         * tests/test-roundf.c (main): Likewise.
13158         * tests/test-roundl.c (main): Likewise.
13159         * tests/test-signbit.c (test_signbitf, test_signbitd)
13160         (test_signbitl): Likewise.
13161         * tests/test-snprintf-posix.h (test_function): Likewise.
13162         * tests/test-sprintf-posix.h (test_function): Likewise.
13163         * tests/test-strtod.c (main): Likewise.
13164         * tests/test-trunc1.c (main): Likewise.
13165         * tests/test-truncf1.c (main): Likewise.
13166         * tests/test-truncl.c (main): Likewise.
13167
13168         isnanl: work around icc bug
13169         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13170
13171 2010-11-03  Eric Blake  <eblake@redhat.com>
13172
13173         tests: fix compiler warnings
13174         * tests/test-getopt.h (test_getopt): Fix condition.
13175         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13176         * tests/test-pipe2.c (main): Likewise.
13177         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13178
13179         utimens: fix broken m4 test
13180         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13181
13182 2010-10-28  Bruno Haible  <bruno@clisp.org>
13183
13184         posix_spawn*, getdtablesize: Relax license.
13185         * modules/posix_spawn (License): Change to LGPLv2+.
13186         * modules/posix_spawnp (License): Likewise.
13187         * modules/posix_spawn-internal (License): Likewise.
13188         * modules/posix_spawnattr_init (License): Likewise.
13189         * modules/posix_spawnattr_getflags (License): Likewise.
13190         * modules/posix_spawnattr_setflags (License): Likewise.
13191         * modules/posix_spawnattr_getpgroup (License): Likewise.
13192         * modules/posix_spawnattr_setpgroup (License): Likewise.
13193         * modules/posix_spawnattr_getschedparam (License): Likewise.
13194         * modules/posix_spawnattr_setschedparam (License): Likewise.
13195         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13196         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13197         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13198         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13199         * modules/posix_spawnattr_getsigmask (License): Likewise.
13200         * modules/posix_spawnattr_setsigmask (License): Likewise.
13201         * modules/posix_spawnattr_destroy (License): Likewise.
13202         * modules/posix_spawn_file_actions_init (License): Likewise.
13203         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13204         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13205         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13206         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13207         * modules/getdtablesize (License): Likewise.
13208         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13209
13210 2010-10-26  Bruno Haible  <bruno@clisp.org>
13211
13212         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13213         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13214         Cygwin and mingw.
13215         Suggested by Eric Blake.
13216
13217 2010-10-26  Bruno Haible  <bruno@clisp.org>
13218
13219         stdio: Work around compilation error due to renameat() on Solaris 10.
13220         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13221         * lib/renameat.c: Don't include <unistd.h> here.
13222         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13223         Reported by Paul Eggert and Eric Blake.
13224
13225 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13226
13227         renameat: port to Solaris 10, which declares renameat in unistd.h
13228
13229         * lib/renameat.c: Include unistd.h before stdio.h, because
13230         Solaris 10 declares renameat in unistd.h.  Problem encountered
13231         when building GNU tar 1.24 on Solaris 10.
13232
13233 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13234
13235         fdopendir: fix C89 compilation
13236         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13237         compilers.
13238
13239 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13240
13241         inttostr: simplify by removing unnecessary redundancy
13242         * lib/anytostr.c: Don't include verify.h.
13243         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13244         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13245         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13246         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13247         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13248         Likewise.
13249         * modules/inttostr (Depends-on): Remove 'verify'.
13250
13251 2010-10-23  Bruno Haible  <bruno@clisp.org>
13252
13253         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13254         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13255         Reported by Eric Blake.
13256
13257 2010-10-23  Bruno Haible  <bruno@clisp.org>
13258
13259         Tests: Fix LOCALE_JA on MirBSD 10.
13260         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13261         to an UTF-8 locale.
13262         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13263         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13264         Reported by Eric Blake.
13265
13266 2010-10-21  Bruno Haible  <bruno@clisp.org>
13267
13268         nl_langinfo test: Avoid test failure on NetBSD 5.
13269         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13270         Reported by Eric Blake.
13271
13272 2010-10-21  Eric Blake  <eblake@redhat.com>
13273
13274         c-stack: work around libsigsegv 2.8 bug
13275         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13276         overflow on at least PowerPC64.
13277
13278 2010-10-17  Bruno Haible  <bruno@clisp.org>
13279
13280         userspec: Drop redundant file.
13281         * modules/userspec (Files): Remove lib/inttostr.h.
13282
13283 2010-10-17  Bruno Haible  <bruno@clisp.org>
13284
13285         nl_langinfo tests: Silence some warnings.
13286         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13287         Reported by Jim Meyering.
13288
13289 2010-10-17  Bruno Haible  <bruno@clisp.org>
13290
13291         Make use of GCC's attribute __alloc_size__.
13292         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13293         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13294         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13295         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13296         __alloc_size__.
13297         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13298         Suggested by Jim Meyering.
13299
13300 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13301
13302         bootstrap: anchor .gitignore entries.
13303         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13304         with...
13305         (insert_vc_ignore): ... this new function, which prepends `/' to
13306         all .gitignore entries before passing them to
13307         insert_sorted_if_absent.
13308
13309 2010-10-16  Bruno Haible  <bruno@clisp.org>
13310
13311         nextafter: Fix configure check.
13312         * modules/nextafter (configure.ac): Correct expected prototype.
13313
13314 2010-10-16  Bruno Haible  <bruno@clisp.org>
13315
13316         termios: Update documentation.
13317         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13318
13319 2010-10-16  Bruno Haible  <bruno@clisp.org>
13320
13321         tests: Make them compile with TinyCC.
13322         * tests/test-strstr.c (main): Remove parentheses around array
13323         initializer.
13324
13325 2010-10-15  Eric Blake  <eblake@redhat.com>
13326
13327         ignore-value: make header idempotent
13328         * lib/ignore-value.h: Add double-inclusion guards.
13329         Reported by Stefan Berger.
13330
13331 2010-10-15  Jim Meyering  <meyering@redhat.com>
13332
13333         GNUmakefile: handle "stable" target, not "major"
13334         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13335         lists in maint.mk and announce-gen.  Without this, "make stable"
13336         would fail to ensure that $(VERSION) is up to date.
13337
13338 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13339
13340         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13341         & co.
13342
13343 2010-10-14  Bruno Haible  <bruno@clisp.org>
13344
13345         vasnprintf: Don't set errno to 0.
13346         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13347         block that sets it to 0.
13348         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13349
13350 2010-10-14  Bruno Haible  <bruno@clisp.org>
13351
13352         socketlib: Fix.
13353         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13354         gl_PREREQ_SYS_H_WINSOCK2.
13355         Reported by Ian Beckwith <ianb@erislabs.net>.
13356
13357 2010-10-13  Jim Meyering  <meyering@redhat.com>
13358
13359         test-select-stdin.c: avoid warn_unused_result warnings
13360         * tests/test-select-stdin.c: Include "macros.h".
13361         ASSERT that read and fflush succeed.
13362
13363 2010-10-13  Jim Meyering  <meyering@redhat.com>
13364
13365         git-version-gen: do require git-VC'd files in cwd
13366         * build-aux/git-version-gen: Reject a git version string
13367         if there are no commits associated with the current directory.
13368         This avoids an unlikely false-positive (unrelated dir whose parent
13369         repository also contains a tag matching v*), as pointed out
13370         by Giuseppe Scrivano in
13371         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13372
13373 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13374
13375         argv-iter: omit nonconforming declaration
13376         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13377         enum arg_iter_err declaration, which doesn't conform to C99.
13378         Solaris 10 cc warns about this.
13379
13380 2010-10-13  Eric Blake  <eblake@redhat.com>
13381
13382         termios: fix compilation on mingw
13383         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13384         (gl_TERMIOS_H): Adjust it on mingw.
13385         * modules/termios (Makefile.am): Substitute new key.
13386         * lib/termios.in.h (includes): Make include_next conditional.
13387         * doc/posix-headers/termios.texi (termios.h): Update
13388         documentation.
13389         Reported by Daniel P. Berrange.
13390
13391 2010-10-13  Jim Meyering  <meyering@redhat.com>
13392
13393         git-version-gen: don't require that .git/ be in the current dir
13394         * build-aux/git-version-gen: Adjust this script so that it works
13395         when run from any working directory beneath the top-level .git/-
13396         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13397         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13398
13399         test-select: avoid warn_unused_result warnings
13400         * tests/test-select.c: Include "macros.h".
13401         ASSERT that each call to read, write, and pipe succeeds.
13402         While not technically required, also check each "close".
13403         * modules/select-tests (Files): Add tests/macros.h.
13404
13405         test-symlinkat: remove declaration of unused local
13406         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13407
13408         test-inttostr: avoid shadowing warnings
13409         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13410         and use malloc rather than the stack for the same reason as
13411         mentioned in the comment justifying the other allocation.
13412
13413 2010-10-11  Bruno Haible  <bruno@clisp.org>
13414
13415         stdlib: Allow multiple gnulib generated replacements to coexist.
13416         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13417         Reported by Sam Steingold <sds@gnu.org>.
13418
13419 2010-10-11  Jim Meyering  <meyering@redhat.com>
13420
13421         fix a documentation typo
13422         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13423
13424 2010-10-11  Eric Blake  <eblake@redhat.com>
13425
13426         futimens: work around Solaris 11 bug
13427         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13428         * tests/test-futimens.h (test_futimens): Enhance, rather than
13429         weaken test.
13430         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13431
13432 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13433
13434         Indentation.
13435         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13436         higher-level operators more to the left.
13437
13438 2010-10-11  Jim Meyering  <meyering@redhat.com>
13439
13440         test-futimens: avoid unwarranted test failure on Solaris 5.11
13441         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13442         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13443         because it tries to dereference the NULL name argument.
13444
13445 2010-10-11  Bruno Haible  <bruno@clisp.org>
13446
13447         Indentation.
13448         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13449         indentation.
13450
13451 2010-10-11  Jim Meyering  <meyering@redhat.com>
13452
13453         spawn.in.h: make indentation consistent with parentheses
13454         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13455         Make indentation consistent with parentheses.
13456
13457 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13458
13459         Fix mismatched parens in previous commit
13460         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13461         parens.
13462
13463 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13464
13465         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13466
13467         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13468         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13469         * lib/malloca.c: Include "verify.h".
13470         (verify1): Remove, replacing with a verify call.
13471         * lib/relocwrapper.c (verify1): Likewise.
13472         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13473         Likewise.
13474         * modules/malloca (Depends-on): Add 'verify'.
13475         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13476         * modules/vasnprintf (Depends-on): Add 'verify'.
13477         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13478         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13479         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13480         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13481         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13482         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13483         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13484
13485         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13486
13487         Formerly the style was sometimes 2*X - 1, because the C standard
13488         was wrongly thought to disallow ?: in integral constant expressions.
13489         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13490         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13491         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13492         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13493         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13494         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13495         verify that time_t cannot be floating.
13496
13497 2010-10-08  Eric Blake  <eblake@redhat.com>
13498
13499         time: enforce recent POSIX ruling that time_t is integral
13500         * lib/time.in.h (__time_t_must_be_integral): Detect any
13501         problematic systems, allowing the rest of gnulib to assume POSIX.
13502
13503 2010-10-08  Jim Meyering  <meyering@redhat.com>
13504
13505         fdopendir: fix a bug on systems lacking openat and /proc support
13506         OpenBSD 4.7 is one such system.  The most noticeable effect was
13507         failure of any application making nontrivial use of fts: rm, du,
13508         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13509           ./rm: traversal failed: `a': Bad file descriptor
13510         Debugging that, you see that even though FD 6 was closed just
13511         prior to the opendir call in fd_clone_opendir, its resulting
13512         dir->dd_fd was 8, rather than the expected value of 6:
13513
13514         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13515         93                close (fd);
13516         (gdb) n
13517         94                dir = fd_clone_opendir (dupfd);
13518         (gdb) n
13519         95                saved_errno = errno;
13520         (gdb) p dir->dd_fd
13521         $11 = 8
13522
13523         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13524         The problem is that on OpenBSD, fd_clone_opendir has to resort
13525         to using the old-style save/restore CWD mechanism, due to its
13526         lack of openat/proc support, and *that* would steal the FD (6)
13527         that opendir was supposed to use.
13528
13529         The fix is to squirrel away the desired FD so that save_cwd uses a
13530         different one, and then free the dest FD right before calling opendir.
13531         That guarantees opendir will use the required file descriptor.
13532
13533         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13534
13535 2010-10-08  Bruno Haible  <bruno@clisp.org>
13536
13537         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13538         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13539
13540 2010-10-08  Bruno Haible  <bruno@clisp.org>
13541
13542         nanosleep: Make replacement POSIX compliant.
13543         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13544         is out of range.
13545         Reported by Jim Meyering.
13546
13547 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13548
13549         bootstrap: add hook for altering gnulib.mk, for Bison
13550         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13551         the Bison bootstrapping process can rewrite file names and variables
13552         in this file before later parts of 'bootstrap' use the file.
13553         Bison wants to include lib/gnulib.mk from the top-level makefile,
13554         so it needs the file names in this file to be relative to the top
13555         level, not relative to lib; plus it needs variable names to be
13556         rewritten.
13557         (slurp): Use the new function.
13558
13559         bootstrap: reformat for readability
13560         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13561
13562 2010-10-08  Eric Blake  <eblake@redhat.com>
13563
13564         docs: update cygwin progress
13565         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13566         1.7.7.
13567         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13568         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13569         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13570         * doc/posix-functions/carg.texi (carg): Likewise.
13571         * doc/posix-functions/cargf.texi (cargf): Likewise.
13572         * doc/posix-functions/casin.texi (casin): Likewise.
13573         * doc/posix-functions/casinf.texi (casinf): Likewise.
13574         * doc/posix-functions/casinh.texi (casinh): Likewise.
13575         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13576         * doc/posix-functions/catan.texi (catan): Likewise.
13577         * doc/posix-functions/catanf.texi (catanf): Likewise.
13578         * doc/posix-functions/catanh.texi (catanh): Likewise.
13579         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13580         * doc/posix-functions/ccos.texi (ccos): Likewise.
13581         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13582         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13583         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13584         * doc/posix-functions/cexp.texi (cexp): Likewise.
13585         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13586         * doc/posix-functions/cimag.texi (cimag): Likewise.
13587         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13588         * doc/posix-functions/clog.texi (clog): Likewise.
13589         * doc/posix-functions/clogf.texi (clogf): Likewise.
13590         * doc/posix-functions/conj.texi (conj): Likewise.
13591         * doc/posix-functions/conjf.texi (conjf): Likewise.
13592         * doc/posix-functions/cpow.texi (cpow): Likewise.
13593         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13594         * doc/posix-functions/cproj.texi (cproj): Likewise.
13595         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13596         * doc/posix-functions/creal.texi (creal): Likewise.
13597         * doc/posix-functions/crealf.texi (crealf): Likewise.
13598         * doc/posix-functions/csin.texi (csin): Likewise.
13599         * doc/posix-functions/csinf.texi (csinf): Likewise.
13600         * doc/posix-functions/csinh.texi (csinh): Likewise.
13601         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13602         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13603         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13604         * doc/posix-functions/ctan.texi (ctan): Likewise.
13605         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13606         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13607         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13608         * doc/posix-headers/complex.texi (complex.h): Likewise.
13609
13610 2010-10-07  Jim Meyering  <meyering@redhat.com>
13611
13612         parse-datetime: avoid compilation failure on OpenBSD 4.7
13613         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13614         This works around a compilation failure on OpenBSD 4.7:
13615         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13616
13617 2010-10-07  Eric Blake  <eblake@redhat.com>
13618
13619         docs: update cygwin progress
13620         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13621         1.7.6.
13622         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13623         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13624         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13625         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13626         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13627         Likewise.
13628         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13629         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13630         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13631         Likewise.
13632         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13633         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13634         Likewise.
13635         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13636         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13637         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13638         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13639         Likewise.
13640         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13641         Likewise.
13642         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13643
13644         docs: update parse-datetime history
13645         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13646         documentation of this function's history and alternatives.
13647
13648         cygwin: use more robust version check
13649         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13650         exclude an eventual cygwin 1.9.1.
13651         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13653         (gl_FUNC_STRCASESTR): Likewise.
13654         Reported by Bruno Haible.
13655
13656 2010-10-06  Bruno Haible  <bruno@clisp.org>
13657
13658         string, sys_select: Avoid #including large headers unless necessary.
13659         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13660         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13661         OSF/1, BeOS, Haiku.
13662         Reported by Jim Meyering.
13663
13664 2010-10-05  Eric Blake  <eblake@redhat.com>
13665
13666         memmem, strstr, strcasestr: fix bug with long periodic needle
13667         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13668         periodic needle having false positive.
13669         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13670         and cygwin 1.7.7.
13671         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13673         (gl_FUNC_STRCASESTR): Likewise.
13674         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13675         * tests/test-memmem.c (main): Expose the bug.
13676         * tests/test-strcasestr.c (main): Likewise.
13677         * tests/test-strstr.c (main): Likewise.
13678         * tests/test-c-strcasestr.c (main): Likewise.
13679         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13680         * doc/posix-functions/strstr.texi (strstr): Likewise.
13681         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13682         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13683
13684 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13685
13686         parse-datetime: do some more renaming
13687         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13688         parse_datetime, not get_date.  Mention the renaming.
13689         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13690         in comments.
13691         * m4/bison.m4: Likewise.
13692
13693 2010-10-05  Eric Blake  <eblake@redhat.com>
13694
13695         parse-datetime: better name than get_date
13696         * NEWS: Reword the deprecation notice.
13697         * modules/get_date: Rename to modules/parse-datetime.
13698         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13699         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13700         * lib/get_date.y: Rename to lib/parse-datetime.y.
13701         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13702         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13703         * doc/getdate.texi: Provide fallback wrapper.
13704         * lib/getdate.h: Move guts, and wrap...
13705         * lib/parse-datetime.h: ...new file.
13706         * lib/parse-datetime.y (get_date): Rename...
13707         (parse_datetime): ...to this.
13708         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13709         (gl_PARSE_DATETIME): ...to this.
13710         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13711         documentation.
13712         * modules/getdate (Files): Provide fallback docs and header.
13713         (Notice, Depends-on): Update references.
13714         * tests/test-parse-datetime.c: Likewise.
13715         * DEPENDENCIES: Likewise.
13716         * MODULES.html.sh (Date and time <time.h>): Likewise.
13717         * doc/parse-datetime.texi (Date input formats)
13718         (Authors of parse_datetime): Likewise.
13719         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13720         (Include): Likewise.
13721         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13722         * gnulib-tool: Likewise.
13723         * m4/bison.m4 (gl_BISON): Likewise.
13724         Suggested by Bruno Haible.
13725
13726 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13727
13728         more ports to Solaris tr, which needs [] around ranges
13729         * gnulib-tool: Solaris tr needs [] around ranges.
13730         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13731         * tests/test-pipe-filter-gi1.c (main): Likewise.
13732         * tests/test-pipe-filter-ii1.c (main): Likewise.
13733
13734 2010-10-05  Eric Blake  <eblake@redhat.com>
13735
13736         bootstrap: fix Solaris regression
13737         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13738         around ranges.
13739         Reported by Pádraig Brady.
13740
13741         bootstrap: work with pkg-config
13742         * build-aux/bootstrap (check_versions): Also transliterate - in
13743         prerequisite name.
13744         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13745         prerequisites that were already found, to avoid confusion.
13746         Reported by Justin Clift.
13747
13748         faccessat: remove unused wrappers
13749         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13750         presence of these wrappers dragged in -lgen on Solaris.
13751         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13752
13753 2010-10-05  Jim Meyering  <meyering@redhat.com>
13754
13755         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13756         * Makefile (sc_pragma_columns): New syntax-check rule.
13757
13758 2010-10-04  Bruno Haible  <bruno@clisp.org>
13759
13760         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13761         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13762         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13763         Reported by Bruce Korb and Eric Blake.
13764
13765 2010-10-04  Bruno Haible  <bruno@clisp.org>
13766
13767         threadlib: Make option --with-libpth-prefix work.
13768         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13769         use $LIBPTH, not just -lpth.
13770
13771 2010-10-04  Bruno Haible  <bruno@clisp.org>
13772
13773         Avoid line length limitation from HP NonStop system header files.
13774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13775         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13776         * lib/ctype.in.h: Likewise.
13777         * lib/dirent.in.h: Likewise.
13778         * lib/errno.in.h: Likewise.
13779         * lib/fcntl.in.h: Likewise.
13780         * lib/float.in.h: Likewise.
13781         * lib/getopt.in.h: Likewise.
13782         * lib/iconv.in.h: Likewise.
13783         * lib/inttypes.in.h: Likewise.
13784         * lib/langinfo.in.h: Likewise.
13785         * lib/locale.in.h: Likewise.
13786         * lib/math.in.h: Likewise.
13787         * lib/netdb.in.h: Likewise.
13788         * lib/netinet_in.in.h: Likewise.
13789         * lib/poll.in.h: Likewise.
13790         * lib/pthread.in.h: Likewise.
13791         * lib/pty.in.h: Likewise.
13792         * lib/sched.in.h: Likewise.
13793         * lib/se-selinux.in.h: Likewise.
13794         * lib/search.in.h: Likewise.
13795         * lib/signal.in.h: Likewise.
13796         * lib/spawn.in.h: Likewise.
13797         * lib/stdarg.in.h: Likewise.
13798         * lib/stddef.in.h: Likewise.
13799         * lib/stdint.in.h: Likewise.
13800         * lib/stdio.in.h: Likewise.
13801         * lib/stdlib.in.h: Likewise.
13802         * lib/string.in.h: Likewise.
13803         * lib/strings.in.h: Likewise.
13804         * lib/sys_file.in.h: Likewise.
13805         * lib/sys_ioctl.in.h: Likewise.
13806         * lib/sys_select.in.h: Likewise.
13807         * lib/sys_socket.in.h: Likewise.
13808         * lib/sys_stat.in.h: Likewise.
13809         * lib/sys_time.in.h: Likewise.
13810         * lib/sys_times.in.h: Likewise.
13811         * lib/sys_utsname.in.h: Likewise.
13812         * lib/sys_wait.in.h: Likewise.
13813         * lib/sysexits.in.h: Likewise.
13814         * lib/termios.in.h: Likewise.
13815         * lib/time.in.h: Likewise.
13816         * lib/unistd.in.h: Likewise.
13817         * lib/wchar.in.h: Likewise.
13818         * lib/wctype.in.h: Likewise.
13819         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13820         * modules/ctype (Makefile.am): Likewise.
13821         * modules/dirent (Makefile.am): Likewise.
13822         * modules/errno (Makefile.am): Likewise.
13823         * modules/fcntl-h (Makefile.am): Likewise.
13824         * modules/float (Makefile.am): Likewise.
13825         * modules/getopt-posix (Makefile.am): Likewise.
13826         * modules/iconv-h (Makefile.am): Likewise.
13827         * modules/inttypes (Makefile.am): Likewise.
13828         * modules/langinfo (Makefile.am): Likewise.
13829         * modules/locale (Makefile.am): Likewise.
13830         * modules/math (Makefile.am): Likewise.
13831         * modules/netdb (Makefile.am): Likewise.
13832         * modules/netinet_in (Makefile.am): Likewise.
13833         * modules/poll-h (Makefile.am): Likewise.
13834         * modules/pthread (Makefile.am): Likewise.
13835         * modules/pty (Makefile.am): Likewise.
13836         * modules/sched (Makefile.am): Likewise.
13837         * modules/search (Makefile.am): Likewise.
13838         * modules/selinux-h (Makefile.am): Likewise.
13839         * modules/signal (Makefile.am): Likewise.
13840         * modules/spawn (Makefile.am): Likewise.
13841         * modules/stdarg (Makefile.am): Likewise.
13842         * modules/stddef (Makefile.am): Likewise.
13843         * modules/stdint (Makefile.am): Likewise.
13844         * modules/stdio (Makefile.am): Likewise.
13845         * modules/stdlib (Makefile.am): Likewise.
13846         * modules/string (Makefile.am): Likewise.
13847         * modules/strings (Makefile.am): Likewise.
13848         * modules/sys_file (Makefile.am): Likewise.
13849         * modules/sys_ioctl (Makefile.am): Likewise.
13850         * modules/sys_select (Makefile.am): Likewise.
13851         * modules/sys_socket (Makefile.am): Likewise.
13852         * modules/sys_stat (Makefile.am): Likewise.
13853         * modules/sys_time (Makefile.am): Likewise.
13854         * modules/sys_times (Makefile.am): Likewise.
13855         * modules/sys_utsname (Makefile.am): Likewise.
13856         * modules/sys_wait (Makefile.am): Likewise.
13857         * modules/sysexits (Makefile.am): Likewise.
13858         * modules/termios (Makefile.am): Likewise.
13859         * modules/time (Makefile.am): Likewise.
13860         * modules/unistd (Makefile.am): Likewise.
13861         * modules/wchar (Makefile.am): Likewise.
13862         * modules/wctype (Makefile.am): Likewise.
13863
13864 2010-10-04  Bruno Haible  <bruno@clisp.org>
13865
13866         read-file tests: Avoid a test failure on NonStop Kernel.
13867         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13868         a regular file.
13869         Reported by Joachim Schmitz <schmitz@hp.com>.
13870
13871 2010-10-03  Bruno Haible  <bruno@clisp.org>
13872
13873         gnulib-tool: Fixes for --create-testdir with --libtool.
13874         * gnulib-tool (func_get_automake_snippet): Don't augment
13875         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13876         an executable.
13877         (func_create_testdir): Handle module 'alloca' like func_import.
13878         Reported by Bruce Korb <bruce.korb@gmail.com>.
13879
13880 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13881
13882         Avoid some lines longer than 80 characters.
13883         * lib/stdint.in.h: Break long comment lines.
13884         * lib/math.in.h: Likewise.
13885         (_GL_NUM_UINT_WORDS): New macro, for readability.
13886         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13887         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13888         * lib/stdlib.in.h: Likewise.
13889         * lib/spawn.in.h: Likewise.
13890         * lib/sys_socket.in.h: Update an URL.
13891         * lib/sys_stat.in.h: Break long line.
13892
13893 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13894
13895         Improve pmccabe2html.
13896         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13897         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13898         when the sources change. Remove the line in the HTML about "Used
13899         ranges" (which implied that there might be other unused ranges),
13900         rename "Resume" to "Summary" (easier to understand for more users).
13901         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13902         styles, and some unnecessary blank lines.
13903
13904 2010-10-03  Bruno Haible  <bruno@clisp.org>
13905             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13906
13907         acl: Add support for ACLs on NonStop Kernel.
13908         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13909         Check whether the function aclsort() exists.
13910         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13911         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13912         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13913         (acl_nontrivial [HAVE_ACLSORT]: New function.
13914         (file_has_acl): Implement for NonStop Kernel.
13915         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13916         (qset_acl): Implement for NonStop Kernel.
13917         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13918         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13919         (main): Implement for NonStop Kernel.
13920         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13921         Kernel. Handle this flavor.
13922         * tests/test-set-mode-acl.sh: Likewise.
13923         * tests/test-copy-acl.sh: Likewise.
13924         * tests/test-copy-file.sh: Likewise.
13925
13926 2010-10-03  Bruno Haible  <bruno@clisp.org>
13927
13928         Info about ACLs on NonStop Kernel.
13929         * doc/acl-resources.txt: Add info about NonStop Kernel.
13930         References by Joachim Schmitz <schmitz@hp.com>.
13931
13932 2010-10-02  Bruno Haible  <bruno@clisp.org>
13933
13934         Define missing EDQUOT on NonStop Kernel.
13935         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13936         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13938         missing.
13939         * doc/posix-headers/errno.texi: Mention the NSK bug.
13940         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13941         Reported by Joachim Schmitz <schmitz@hp.com>.
13942
13943 2010-10-02  Bruno Haible  <bruno@clisp.org>
13944
13945         Update doc for POSIX:2008.
13946         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13947         Update URL of POSIX specification.
13948
13949 2010-10-02  Bruno Haible  <bruno@clisp.org>
13950
13951         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13952         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13953         from gnulib, not from Automake.
13954
13955 2010-10-02  Bruno Haible  <bruno@clisp.org>
13956
13957         New module 'system-posix'.
13958         * modules/system-posix: New file.
13959         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13960         module is present.
13961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13962         GNULIB_SYSTEM_POSIX.
13963         * modules/stdlib (Depends-on): Remove sys_wait.
13964         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13965         * doc/posix-functions/system.texi: Mention the new module.
13966         * doc/posix-headers/stdlib.texi: Likewise.
13967         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13968         define test_sys_wait_macros to a no-op.
13969         Reported by Sam Steingold <sds@gnu.org>.
13970
13971 2010-09-30  Bruno Haible  <bruno@clisp.org>
13972
13973         More renaming from 'getdate' to 'get_date'.
13974         * doc/get_date.texi: Renamed from doc/getdate.texi.
13975         * modules/get_date (Files): Update.
13976         * MODULES.html.sh (Date and time <time.h>): Update.
13977         * DEPENDENCIES: Update.
13978         * gnulib-tool: Update comment.
13979         * m4/bison.m4 (gl_BISON): Likewise.
13980         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13981
13982 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13983
13984         bootstrap: support ACLOCAL_FLAGS during aclocal
13985         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13986         can add additional -I dir for third-party .m4 files.
13987
13988 2010-09-30  Eric Blake  <eblake@redhat.com>
13989
13990         bootstrap: use glibtoolize on MacOS
13991         * build-aux/bootstrap (check_versions): Convert libtool into
13992         libtoolize.
13993         (tool search): Move libtool check earlier, and look for
13994         glibtoolize for MacOS.
13995         (gnulib_tool_options): Auto-add --libtool when appropriate.
13996         Reported by Justin Clift.
13997
13998         poll: fix typo that broke test on MacOS
13999         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14000         Reported by Justin Clift.
14001
14002         getdate: rename to get_date
14003         Note: getdate.h is not renamed, to minimize client impact.
14004         * modules/getdate: Mark obsolete.  Move old contents...
14005         * modules/get_date: ...to new module name.
14006         * modules/getdate-tests: Move...
14007         * modules/get_date-tests: ...here.
14008         * m4/getdate.m4: Move...
14009         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14010         * lib/getdate.y: Move...
14011         * lib/get_date.y: ...here.
14012         * tests/test-getdate.c: Move...
14013         * tests/test-get_date.c: ...here.
14014         * doc/posix-functions/getdate.texi (getdate): Update name.
14015         * NEWS: Mention the change.
14016
14017 2010-09-29  Bruno Haible  <bruno@clisp.org>
14018
14019         Separate the module 'waitpid' from the module 'sys_wait'.
14020         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14021         present.
14022         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14023         gl_MODULE_INDICATOR_FOR_TESTS.
14024         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14025         * modules/sys_wait (Depends-on): Remove waitpid.
14026         (Makefile.am): Substitute GNULIB_WAITPID.
14027         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14028         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14029         signature only if the 'waitpid' module is present.
14030         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14031         * NEWS: Mention the change.
14032         * modules/grantpt (Depends-on): Add waitpid.
14033         * modules/wait-process (Depends-on): Likewise.
14034
14035 2010-09-29  Bruno Haible  <bruno@clisp.org>
14036
14037         More tests for module 'sys_wait'.
14038         * modules/sys_wait-c++-tests: New file.
14039         * tests/test-sys_wait-c++.cc: New file.
14040         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14041         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14042
14043 2010-09-29  Bruno Haible  <bruno@clisp.org>
14044
14045         New module 'waitpid'.
14046         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14047         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14048         Don't include <process.h>.
14049         (waitpid): Declare only, using modern idiom.
14050         * m4/waitpid.m4: New file.
14051         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14052         * modules/waitpid: New file.
14053         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14054         (Makefile.am): Update.
14055         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14056
14057 2010-09-28  Bruno Haible  <bruno@clisp.org>
14058
14059         poll: Assume ANSI C.
14060         * lib/poll.c (poll): Use an ANSI C declaration.
14061
14062 2010-09-28  Bruno Haible  <bruno@clisp.org>
14063
14064         poll-h: Create poll.h on all platforms.
14065         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14066         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14067         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14068         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14069         (gl_REPLACE_POLL_H): Don't set POLL_H.
14070         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14071         * modules/poll-h (Depends-on): Add include_next.
14072         (Makefile.am): Create poll.h unconditionally. Substitute also
14073         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14074
14075 2010-09-28  Bruno Haible  <bruno@clisp.org>
14076
14077         Tests for module 'poll-h'.
14078         * modules/poll-h-c++-tests: New file.
14079         * tests/test-poll-h-c++.cc: New file.
14080
14081         Tests for module 'poll-h'.
14082         * modules/poll-h-tests: New file.
14083         * tests/test-poll-h.c: New file.
14084
14085 2010-09-28  Bruno Haible  <bruno@clisp.org>
14086
14087         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14088         * modules/poll-h (Depends-on): Add 'extensions'.
14089
14090 2010-09-28  Bruno Haible  <bruno@clisp.org>
14091
14092         New module 'poll-h'.
14093         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14094         (poll): Use modern idiom.
14095         * modules/poll-h: New file.
14096         * modules/poll (Files): Remove lib/poll.in.h.
14097         (Depends-on): Add poll-h.
14098         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14099         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14100         * m4/poll_h.m4: New file.
14101         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14102         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14103         and invoke gl_REPLACE_POLL_H.
14104         * lib/poll.c: Use common idiom.
14105         * tests/test-poll.c: Likewise.
14106         * doc/posix-headers/poll.texi: Mention the poll-h module.
14107         Suggested by Eric Blake.
14108
14109 2010-09-26  Bruno Haible  <bruno@clisp.org>
14110
14111         sys_wait: Implement WSTOPSIG.
14112         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14113         Reported by Simon Josefsson.
14114
14115 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14116
14117         stdlib, sys_wait: Avoid compilation error on mingw.
14118         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14119
14120 2010-09-26  Bruno Haible  <bruno@clisp.org>
14121
14122         stdlib tests: Avoid code duplication.
14123         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14124         * modules/sys_wait-tests (Files): Likewise.
14125         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14126         * tests/test-stdlib.c: Include test-sys_wait.h.
14127         (main): Invoke test_sys_wait_macros.
14128         * tests/test-sys_wait.c: Include test-sys_wait.h.
14129         (main): Invoke test_sys_wait_macros.
14130
14131 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14132
14133         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14134         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14135         sure Windows sockets are working before calling getaddrinfo.
14136         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14137         * doc/gnulib.texi (Windows sockets): Fix typo.
14138
14139 2010-09-25  Bruno Haible  <bruno@clisp.org>
14140
14141         Tests for module 'regex-quote'.
14142         * modules/regex-quote-tests: New file.
14143         * tests/test-regex-quote.c: New file.
14144
14145         New module 'regex-quote'.
14146         * lib/regex-quote.h: New file.
14147         * lib/regex-quote.c: New file.
14148         * modules/regex-quote: New file.
14149         Suggested by Reuben Thomas <rrt@sc3d.org>.
14150
14151 2010-09-24  Bruno Haible  <bruno@clisp.org>
14152
14153         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14154         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14155
14156 2010-09-23  Bruno Haible  <bruno@clisp.org>
14157
14158         setenv: Relax license.
14159         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14160         Blake.
14161         Requested by Eric Blake.
14162
14163 2010-09-22  Bruno Haible  <bruno@clisp.org>
14164
14165         termios: Relax license.
14166         * modules/termios (License): Change to LGPLv2+.
14167         Requested by Eric Blake.
14168
14169 2010-09-22  Bruno Haible  <bruno@clisp.org>
14170
14171         threadlib: Allow the package to change the default to 'no'.
14172         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14173         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14174         Reported by Paul Eggert.
14175
14176 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14177             Bruno Haible  <bruno@clisp.org>
14178
14179         Fix endless loop in mbmemcasecoll.
14180         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14181         byte.
14182         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14183
14184 2010-09-22  Bruno Haible  <bruno@clisp.org>
14185
14186         Tests for module 'memcoll'.
14187         * modules/memcoll-tests: New file.
14188         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14189
14190         memcoll, xmemcoll: Clarify size vs. length.
14191         * modules/memcoll.c (memcoll0): Clarify specification.
14192         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14193         passed to collate_error.
14194
14195 2010-09-22  Bruno Haible  <bruno@clisp.org>
14196
14197         Tests for module 'memcasecmp'.
14198         * modules/memcasecmp-tests: New file.
14199         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14200
14201 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14202
14203         * lib/pthread.in.h: Add split double-inclusion guard, and include
14204         system <pthread.h> if there is one.  Use @@-style as in other
14205         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14206         pthread.h doesn't.
14207         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14208         (pthread_mutexattr_settype, pthread_mutex_trylock):
14209         New static inline functions, if there's no system <pthread.h>.
14210         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14211         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14212         Approximate with mutexes if the system lacks spinlocks, as in
14213         MacOS.
14214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14215         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14216         @@-style.  Check for spinlocks separately.
14217         (gl_PTHREAD_DEFAULTS): New macro.
14218         * modules/pthread: Redo to use a more typical style for in.h files.
14219
14220 2010-09-21  Eric Blake  <eblake@redhat.com>
14221
14222         net_if: enhance tests
14223         * tests/test-net_if.c (main): Move signature checks earlier.
14224         Print failures to stderr.
14225         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14226         Document the bug that we do not yet fix.
14227
14228 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14229
14230         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14231         about gnulib, not GSS.
14232
14233 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14234
14235         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14236         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14237         for Emacs.
14238         * build-aux/pmccabe2html: Make Makefile.am example code more
14239         cut-and-paste friendly.
14240
14241 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14242
14243         * tests/test-net_if.c: New file.
14244         * modules/net_if-tests: New file.
14245
14246 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14247
14248         pthread: add pthread_spin_destroy
14249         * lib/pthread.in.h (pthread_spin_destroy): New function.
14250
14251 2010-09-19  Bruno Haible  <bruno@clisp.org>
14252
14253         gnulib-tool: Fix --help output.
14254         * gnulib-tool (func_usage): Fix help message.
14255         Reported by Reuben Thomas <rrt@sc3d.org>.
14256
14257 2010-09-18  Jim Meyering  <meyering@redhat.com>
14258
14259         maint.mk: avoid unexpanded \n in two diagnostics
14260         * top/maint.mk (sc_prohibit_always_true_header_tests):
14261         Don't use a literal \n in a halt=... assignment.  It would not be
14262         expanded, and the two \n bytes would appear in the diagnostic output
14263         rather than the desired newline.  Use halt=$$(printf ... instead.
14264         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14265
14266 2010-09-18  Bruno Haible  <bruno@clisp.org>
14267
14268         netinet_in: Doc tweak.
14269         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14270         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14271
14272 2010-09-18  Jim Meyering  <meyering@redhat.com>
14273
14274         init.sh: correct an outdated comment
14275         * tests/init.sh (create_exe_shims_):  s/function/alias/
14276
14277         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14278         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14279         a file named "*.exe" is removed between the glob expansion and the
14280         processing of that oddly named file.
14281
14282 2010-09-17  Eric Blake  <eblake@redhat.com>
14283
14284         mirbsd: add some more support
14285         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14286         in BSD family.
14287         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14288         devices as OpenBSD.
14289         * m4/host-os.m4 (mirbsd): Add MirBSD.
14290
14291         tests: fix unportable assumption on sys/wait.h
14292         * tests/test-sys_wait.c (main): Relax test.
14293         * tests/test-stdlib.c (main): Likewise.
14294
14295         init.sh: accomodate directory with no .exes
14296         * tests/init.sh: Accomodate directory containing only scripts.
14297
14298         tests: avoid compiler warning
14299         * tests/test-stdlib.c (main): Use the variable.
14300
14301         fdutimens, fdutimensat: update signature, again
14302         * lib/utimens.h (gl_futimens): Delete, and move signature...
14303         (fdutimens): ...here.
14304         (fdutimensat): Rearrange signature.
14305         (lutimensat): Rename variable for clarity.
14306         * lib/fdutimensat.c (fdutimensat): Update signature.
14307         * lib/utimens.c (fdutimens): Likewise.
14308         (gl_futimens): Delete.
14309         (utimens, lutimens): Update callers.
14310         * lib/futimens.c (futimens): Likewise.
14311         * tests/test-fdutimensat.c: Likewise.
14312         * tests/test-utimens.c: Likewise.
14313         * tests/test-futimens.h: Update comment.
14314         * NEWS: Mention this.
14315         Suggested by Paul Eggert.
14316
14317 2010-09-17  Bruno Haible  <bruno@clisp.org>
14318
14319         Take over the maintenance of some older macros from Autoconf.
14320         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14321         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14322         GNU Autoconf.
14323         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14324         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14325
14326 2010-09-17  Eric Blake  <eblake@redhat.com>
14327
14328         fdutimensat: drop atflag validation
14329         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14330         with valid fd, to close a race scenario where futimens is
14331         unsupported and FILE was replaced by a symlink.
14332         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14333         accordingly.
14334         Suggested by Paul Eggert.
14335
14336 2010-09-16  Bruno Haible  <bruno@clisp.org>
14337
14338         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14339         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14340
14341 2010-09-16  Bruno Haible  <bruno@clisp.org>
14342
14343         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14344         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14345         login_tty exists.
14346         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14347
14348 2010-09-16  Bruno Haible  <bruno@clisp.org>
14349
14350         login_tty: Make the replacement code work on BSD systems.
14351         * lib/login_tty.c: Include <sys/ioctl.h>.
14352         (login_tty): Use ioctl TIOCSCTTY when available.
14353         * modules/login_tty (Depends-on): Add sys_ioctl.
14354         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14355
14356 2010-09-16  Bruno Haible  <bruno@clisp.org>
14357
14358         login_tty: Stricter unit test.
14359         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14360         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14361         and tcgetsid() after login_tty.
14362         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14363
14364 2010-09-16  Bruno Haible  <bruno@clisp.org>
14365
14366         New module 'tcgetsid'.
14367         * lib/tcgetsid.c: New file.
14368         * m4/tcgetsid.m4: New file.
14369         * modules/tcgetsid: New file.
14370         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14371         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14372         GNULIB_TCGETSID, HAVE_TCGETSID.
14373         * lib/termios.in.h: Include <sys/types.h>.
14374         (tcgetsid): New declaration.
14375         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14376         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14377         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14378         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14379
14380 2010-09-16  Bruno Haible  <bruno@clisp.org>
14381
14382         Tests for module 'termios'.
14383         * modules/termios-c++-tests: New file.
14384         * modules/termios-tests: New file.
14385         * tests/test-termios-c++.cc: New file.
14386         * tests/test-termios.c: New file.
14387
14388         New module 'termios'.
14389         * modules/termios: New file.
14390         * lib/termios.in.h: New file.
14391         * m4/termios_h.m4: New file.
14392         * doc/posix-headers/termios.texi: Mention the new module.
14393
14394 2010-09-16  Eric Blake  <eblake@redhat.com>
14395
14396         fdutimensat: add an atflag parameter
14397         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14398         * lib/utimens.h (fdutimensat): Update prototype.
14399         * tests/test-fdutimensat.c: Adjust test to match.
14400         * NEWS: Document the change.
14401         Suggested by Paul Eggert.
14402
14403 2010-09-16  Bruno Haible  <bruno@clisp.org>
14404
14405         Fix typos in comments.
14406         * lib/striconveh.h: Fix typo in comment.
14407         * lib/login_tty.c (login_tty): Likewise.
14408
14409 2010-09-15  Bruno Haible  <bruno@clisp.org>
14410
14411         stdlib: clarify MirBSD WEXITSTATUS bug
14412         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14413         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14414
14415 2010-09-15  Eric Blake  <eblake@redhat.com>
14416
14417         stdlib: work around MirBSD WEXITSTATUS bug
14418         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14419         * modules/stdlib (Depends-on): Add sys_wait.
14420         * tests/test-sys_wait.c (main): Enhance test.
14421         * tests/test-stdlib.c (main): Likewise.
14422         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14423
14424         docs: mention MacOS issue with WEXITSTATUS(constant)
14425         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14426         issue.
14427         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14428
14429         strnlen: add tests
14430         * modules/strnlen-tests: New file.
14431         * tests/test-strnlen.c: Likewise.
14432
14433 2010-09-14  Bruno Haible  <bruno@clisp.org>
14434
14435         unistr/base: Avoid link errors when module 'libunistring' is also used.
14436         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14437         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14438         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14439         Declare also when HAVE_LIBUNISTRING is set.
14440         Reported by Pádraig Brady <P@draigbrady.com>.
14441
14442 2010-09-14  Eric Blake  <eblake@redhat.com>
14443
14444         test-rawmemchr: make more robust
14445         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14446         (Depends-on, configure.ac): Add needed prerequisites to use it.
14447         * modules/memchr-tests (Files, Depends-on, configure.ac):
14448         Likewise, to avoid implicit reliance on memchr module prereqs.
14449         * tests/test-memchr.c (main): Ensure proper masking.
14450         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14451         reads.
14452
14453         memchr: detect glibc Alpha bug
14454         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14455         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14456         Alpha.
14457         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14458         * tests/test-memchr.c (main): Enhance test.
14459         Reported by Nelson H. F. Beebe.
14460
14461 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14462
14463         fts, getcwd, glob: audit for dirfd returning -1
14464         * lib/fts.c (opendir): Remove #define; no longer used.
14465         (opendirat): New arg PDIR_FD.  All callers changed.
14466         (fts_build, _opendir2): Use new opendirat to avoid the need for
14467         dirfd, or for checking whether dirfd returns a negative value.
14468         Don't use opendir; always use openat followed by fdopendir.
14469         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14470         it.
14471         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14472         returns -1 here.
14473         * modules/fts (Depends-on): Remove dirfd.
14474         * modules/getcwd (Depends-on): Likewise.
14475
14476 2010-09-13  Eric Blake  <eblake@redhat.com>
14477
14478         float: fix broken MirBSD header
14479         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14480         * doc/posix-headers/float.texi (float.h): Document it.
14481
14482 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14483
14484         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14485         * lib/fts.c (opendirat): New arg extra_flags.
14486         (__opendir2): Use it to avoid following symlinks when opening
14487         a directory, if symlinks are not supposed to be followed.  See
14488         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14489
14490         fdopendir: preserve argument fd before returning
14491         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14492         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14493         (fdopendir): Use them, arranging for FD to be open to the same
14494         directory that it was when it started.  (It might be temporarily
14495         closed while fdopendir is running, so this not thread- or
14496         signal-safe.)  Be careful to do the right thing even when file
14497         descriptors are scarce and dup fails with errno == EMFILE.  See
14498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14499
14500 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14501
14502         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14503         * NEWS: Document change.
14504         * m4/regex.m4: Disable test for regoff_t size.
14505
14506 2010-09-13  Jim Meyering  <meyering@redhat.com>
14507
14508         fts: don't operate on an invalid file descriptor after failed dup
14509         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14510         negative file descriptor.
14511
14512 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14513
14514         savedir: add streamsavedir, deprecate fdsavedir
14515         * NEWS: Mention deprecation of fdsavedir.
14516         * lib/savedir.c (streamsavedir): New extern function, whose name
14517         ends in "savedir" to be consistent with the others.  This differs
14518         from savedirstream in that it doesn't close its argument.  The
14519         next version of GNU tar will use this instead of fdsavedir, to
14520         avoid some race conditions and conserve file descriptors.
14521         (savedirstream): Reimplement as a wrapper around streamsavedir.
14522         (fdsavedir): Add a comment deprecating this function.  As far as
14523         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14524         * lib/savedir.h (streamsavedir): New decl.
14525         (fdsavedir): Add a comment deprecating this.
14526
14527 2010-09-10  Bruno Haible  <bruno@clisp.org>
14528
14529         langinfo: Fix last commit.
14530         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14531         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14533
14534 2010-09-10  Bruno Haible  <bruno@clisp.org>
14535
14536         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14537         * lib/progreloc.c (O_EXEC): Define fallback.
14538
14539 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14540
14541         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14542         * NEWS: Document recent changes to fcntl-h.
14543         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14544         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14545         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14546         Similarly for O_SEARCH; this last was already true, but not documented.
14547         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14548         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14549         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14550         Likewise.
14551         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14552         is zero, not whether it is defined.
14553         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14554         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14555         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14556
14557 2010-09-10  Bruno Haible  <bruno@clisp.org>
14558
14559         langinfo, nl_langinfo: Fix for IRIX 5.3.
14560         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14561         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14562         HAVE_LANGINFO_YESEXPR.
14563         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14564         HAVE_LANGINFO_YESEXPR.
14565         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14566         HAVE_LANGINFO_T_FMT_AMPM is 0.
14567         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14568         HAVE_LANGINFO_YESEXPR is 0.
14569         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14570         NOEXPR.
14571         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14572         * doc/posix-functions/nl_langinfo.texi: Likewise.
14573         Reported by Eric Blake.
14574
14575 2010-09-10  Bruno Haible  <bruno@clisp.org>
14576
14577         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14578         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14579         on FreeBSD 8.0 and OpenBSD 4.6.
14580         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14581         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14582         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14583         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14584         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14585         ac_includes_default.
14586         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14587
14588 2010-09-09  Eric Blake  <eblake@redhat.com>
14589
14590         strsignal: work around NetBSD bug
14591         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14592         * lib/string.in.h (includes): Likewise.
14593         * doc/posix-functions/strsignal.texi (strsignal): Document the
14594         bug.
14595         Reported by Nelson H. F. Beebe.
14596
14597         gnulib-tool: work with NetBSD /bin/sh
14598         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14599         (func_get_description, func_get_comment, func_get_status)
14600         (func_get_notice, func_get_applicability, func_get_filelist)
14601         (func_get_dependencies, func_get_autoconf_early_snippet)
14602         (func_get_autoconf_snippet, func_get_automake_snippet)
14603         (func_get_include_directive, func_get_link_directive)
14604         (func_get_license, func_get_maintainer, func_import): Avoid
14605         shell syntax errors from parsing syntax extensions.
14606
14607 2010-09-09  Bruno Haible  <bruno@clisp.org>
14608
14609         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14610         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14611         a reliable way to determine whether the 'alias' command works.
14612
14613 2010-09-08  Jim Meyering  <meyering@redhat.com>
14614
14615         init.sh: penalize a set-x-impaired shell; don't disqualify it
14616         * tests/init.sh: Too many shells corrupt application stderr when
14617         you set -x, so we can't afford to disqualify them, since at least
14618         on Irix-6.5, that would disqualify all bourne shells.
14619         Instead, use a two-pass approach.
14620         On the first pass, try to find a shell that meets the stricter
14621         condition that set -x does not corrupt stderr.
14622         If no shell meets the stricter condition, retest each candidate
14623         shell, but without that extra condition.  Finally, when
14624         VERBOSE=yes is requested and set -x might cause trouble, simply
14625         issue a warning and refrain from enabling debug output.
14626
14627 2010-09-08  Eric Blake  <eblake@redhat.com>
14628
14629         unsetenv: fix OpenBSD bug
14630         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14631         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14632         documentation.
14633         Reported by Jim Meyering.
14634
14635         strtod: work around IRIX 6.5 bug
14636         * lib/strtod.c (strtod): Reparse number on shorter string if
14637         exponent parse was invalid.
14638         * tests/test-strtod.c (main): Add check for "0x1p 2".
14639         Reported by Tom G. Christensen.
14640
14641         getopt: optimize previous patch
14642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14643         empty variable.  Speed up awk script.
14644         Reported by Paolo Bonzini.
14645
14646 2010-09-08  Jim Meyering  <meyering@redhat.com>
14647
14648         test.sh: disqualify shells for which set -x corrupts stderr
14649         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14650         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14651         appear in stderr output.  For example, this command:
14652             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14653         prints "P=1" on those two systems:
14654
14655 2010-09-08  Bruno Haible  <bruno@clisp.org>
14656
14657         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14658         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14659         commands, because some shells ignore redirections when there is an
14660         error in the command lookup.
14661         Reported by Eric Blake.
14662
14663 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14664
14665         * lib/regex.h: Fix a mention of `regex_compile' (should be
14666         `re_compile_pattern').
14667         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14668         (re_set_registers): Correct name of parameter in comment.
14669
14670         * doc/regex.texi: Add documentation for missing syntax flags.
14671         Remove commented-out documentation of defunct syntax option
14672         RE_NO_EMPTY_ALTS.
14673         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14674         Add documentation of re_set_registers.
14675         Document trick to re-use a pattern buffer by setting fastmap manually.
14676         Update documentation of struct re_pattern_buffer per public members.
14677         Uncomment documentation of equivalence class operators and
14678         collating symbol operators, since they are now implemented,
14679         Explain leftmost-longest matching in relation to alternatives.
14680         Tidy documentation of substring matching.
14681         Remove POSIX documentation, which is done better in
14682         glibc, and refer the reader there. Keep BSD API documentation, as
14683         that is not readily available elsewhere.
14684
14685 2010-09-07  Eric Blake  <eblake@redhat.com>
14686
14687         getopt: handle POSIXLY_CORRECT set but not exported
14688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14689         export state of POSIXLY_CORRECT, due to bash set -o posix.
14690         Reported by Dustin J. Mitchell.
14691
14692 2010-09-05  Bruno Haible  <bruno@clisp.org>
14693
14694         gnulib-tool: Highlight the changed options.
14695         * gnulib-tool (func_usage): Display the --import, --add-import,
14696         --remove-import explanations in bold font.
14697
14698 2010-09-06  Karl Berry  <karl@gnu.org>
14699
14700         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14701
14702 2010-09-05  Bruno Haible  <bruno@clisp.org>
14703
14704         uniwidth/width: Update comment.
14705         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14706         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14707
14708 2010-09-05  Bruno Haible  <bruno@clisp.org>
14709
14710         isinf, isnan: Relax license.
14711         * modules/isinf (License): Change from GPL to LGPL, with consent from
14712         Ben Pfaff.
14713         * modules/isnan (License): Likewise.
14714         Requested by Ludovic Courtès.
14715
14716 2010-09-04  Bruno Haible  <bruno@clisp.org>
14717
14718         gnulib-tool: Help migration from --import to --add-import or --update.
14719         * gnulib-tool: Emit a verbose error message when --import is used
14720         without any module name.
14721
14722 2010-09-04  Bruno Haible  <bruno@clisp.org>
14723
14724         Update doc about gnulib-tool.
14725         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14726         'gnulib-tool --update' in more detail.
14727         Reported by Eric Blake.
14728
14729 2010-09-04  Bruno Haible  <bruno@clisp.org>
14730
14731         gnulib-tool: Change --import. New options --add/remove-import.
14732         * gnulib-tool: New options --add-import, --remove-import.
14733         (func_usage): Document them.
14734         (have_associative): Define always.
14735         (func_import): In import mode, don't merge the specified settings with
14736         the cached settings. Implement remove-import mode.
14737         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14738         Explain when to use them versus --import.
14739         (Simple update): Use --add-import instead of --import.
14740         * NEWS: Mention the change.
14741
14742 2010-09-04  Bruno Haible  <bruno@clisp.org>
14743
14744         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14745         separate gnulib.mk.
14746
14747 2010-09-04  Bruno Haible  <bruno@clisp.org>
14748
14749         gnulib-tool: Don't talk about CVS any more.
14750         * gnulib-tool (func_usage, func_import): Write "version control"
14751         instead of CVS.
14752
14753 2010-09-04  Jim Meyering  <meyering@redhat.com>
14754
14755         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14756         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14757         false positives (whose names may be ill-chosen) when searching
14758         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14759         would cause a false-positive.
14760
14761         avoid coreutils "make distcheck" failure
14762         Coreutils tests with an absolute build directory name that contains
14763         a space.  Not quoting this directory name caused a failure.
14764         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14765         * tests/test-vc-list-files-cvs.sh: Likewise.
14766
14767 2010-09-04  Bruno Haible  <bruno@clisp.org>
14768
14769         gnulib-tool: Avoid error when run in a package without Makefile.am.
14770         * gnulib-tool: When collecting the m4dirs in a package that does not
14771         have a Makefile.am, eliminate those directories that contain no
14772         gnulib-cache.m4. Fix expression that counts these directories.
14773
14774 2010-09-04  Bruno Haible  <bruno@clisp.org>
14775
14776         update-copyright test: Improve output when perl is missing or too old.
14777         * tests/test-update-copyright.sh: Move test of Perl version down after
14778         the test whether Perl exists. Provide an explanation relating Perl's
14779         error message to Automake's SKIP: message.
14780
14781 2010-09-04  Bruno Haible  <bruno@clisp.org>
14782
14783         Don't augment PATH in TESTS_ENVIRONMENT.
14784         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14785         set abs_aux_dir instead of augmenting PATH.
14786         * modules/vc-list-files-tests (Makefile.am): Likewise.
14787         * tests/test-update-copyright.sh: Augment PATH here.
14788         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14789         path_prepend_.
14790         * tests/test-vc-list-files-git.sh: Likewise.
14791
14792 2010-09-04  Jim Meyering  <meyering@redhat.com>
14793
14794         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14795         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14796
14797 2010-09-04  Bruno Haible  <bruno@clisp.org>
14798
14799         strdup: Fix compilation error in C++ mode.
14800         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14801         the macro.
14802
14803 2010-09-04  Bruno Haible  <bruno@clisp.org>
14804
14805         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14806         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14807         macro into a function.
14808         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14809
14810 2010-09-04  Bruno Haible  <bruno@clisp.org>
14811
14812         Set PATH_SEPARATOR the same way autoconf does.
14813         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14814         the value of PATH_SEPARATOR the same way autoconf-generated configure
14815         scripts do.
14816         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14817         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14818
14819 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14820
14821         Set PATH_SEPARATOR the same way autoconf does.
14822         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14823         the same way autoconf-generated configure scripts do.
14824         * posix-modules: Likewise.
14825
14826 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14827
14828         hash: fix safe_hasher const typo
14829         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14830         const; otherwise, there is a type error later.
14831
14832 2010-09-02  Jim Meyering  <meyering@redhat.com>
14833
14834         test-update-copyright.sh: require perl 5.8.0
14835         * tests/test-update-copyright.sh: Require 5.8.0,
14836         which Tom G. Christensen has confirmed is adequate,
14837         while 5.6.1 is not.
14838
14839 2010-09-02  Eric Blake  <eblake@redhat.com>
14840
14841         tests: init.sh improvements for re-exec'ing with zsh
14842         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14843         -vx through shell re-exec.
14844         Reported by Tom G. Christensen.
14845
14846         wctype: fix typo in previous commit
14847         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14848         Reported by Ludovic Courtès.
14849
14850 2010-09-02  Jim Meyering  <meyering@redhat.com>
14851
14852         test-update-copyright.sh: skip test if Perl is too old
14853         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14854         Reported by Tom G. Christensen.
14855
14856 2010-09-02  Bruno Haible  <bruno@clisp.org>
14857
14858         wctype: Avoid compilation error on IRIX 6.5.30.
14859         * lib/wctype.in.h (iswblank): Declare with a replacement if
14860         REPLACE_ISWBLANK is set.
14861         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14862         declared. Set REPLACE_ISWBLANK.
14863         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14864         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14865         * doc/posix-headers/wctype.texi: Likewise.
14866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14867
14868 2010-09-01  Bruno Haible  <bruno@clisp.org>
14869
14870         New module 'socketlib'.
14871         * modules/socketlib: New file.
14872         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14873         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14874         * modules/sockets (Depends-on): Add socketlib.
14875         Suggested by Sam Steingold <sds@gnu.org>.
14876
14877 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14878
14879         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14880
14881         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14882         when one needs search access to a directory but not read access.
14883         On systems where it is available, it works in some cases where
14884         O_RDONLY does not, namely on directories that are searchable but
14885         not readable, and which need only to be searchable.  If O_SEARCH
14886         is not available, fall back to the traditional method of using
14887         O_RDONLY.
14888
14889         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14890         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14891         when opening a directory that needs only to be searchable.
14892         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14893         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14894         * lib/openat-proc.c (openat_proc_name): Likewise.
14895         * lib/openat.c (openat_needs_fchdir): Likewise.
14896         * lib/save-cwd.c (save_cwd): Likewise.
14897         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14898
14899 2010-08-28  Bruno Haible  <bruno@clisp.org>
14900
14901         New module 'host-cpu-c-abi'.
14902         * modules/host-cpu-c-abi: New file.
14903         * m4/host-cpu-c-abi.m4: New file, based on part of
14904         clisp/src/m4/general.m4.
14905         Requested by Sam Steingold <sds@gnu.org>.
14906
14907 2010-08-31  Eric Blake  <eblake@redhat.com>
14908         and Jim Meyering  <meyering@redhat.com>
14909
14910         hash: factor, and guard against misbehaving hasher function
14911         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14912         of table->hasher's return value.  Also protect against a hash value
14913         so large that adding it to table->bucket results in a NULL pointer.
14914         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14915         Use it in place of open-coded check-and-abort.
14916
14917 2010-08-30  Bruno Haible  <bruno@clisp.org>
14918
14919         hash: silence spurious clang warning
14920         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14921         Reported by Eric Blake.
14922
14923 2010-08-30  Eric Blake  <eblake@redhat.com>
14924
14925         strstr, memmem, strcasestr: avoid leaked shell message
14926         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14927         FreeBSD.
14928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14930
14931         tests: silence clang warning
14932         * tests/test-malloca.c (do_allocation): Avoid dead store.
14933
14934 2010-08-29  Bruno Haible  <bruno@clisp.org>
14935
14936         gettext: Fix recent mistake.
14937         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14938
14939 2010-08-29  Bruno Haible  <bruno@clisp.org>
14940
14941         selinux-h: Offer a --without-selinux option.
14942         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14943         --without-selinux was specified, skip all tests and define
14944         HAVE_SELINUX_SELINUX_H to 0.
14945         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14946         set LIB_SELINUX to empty.
14947         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14948         gl_LIBSELINUX. If --without-selinux was specified, replace
14949         selinux/context.h.
14950         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14951
14952 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14953             Bruno Haible  <bruno@clisp.org>
14954
14955         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14956         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14957         of HAVE_REALLOC.
14958         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14959         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14960         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14961         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14962
14963 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14964             Bruno Haible  <bruno@clisp.org>
14965
14966         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14967         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14968         HAVE_CALLOC.
14969         * lib/xmalloc.c: Update accordingly.
14970         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14971         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14972         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14973
14974 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14975             Bruno Haible  <bruno@clisp.org>
14976
14977         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14978         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14979         HAVE_MALLOC.
14980         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14981         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14982         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14983
14984 2010-08-29  Bruno Haible  <bruno@clisp.org>
14985
14986         Update modules list.
14987         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14988         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14989         (String handling <string.h>): Add astrxfrm.
14990         (File system functions): Add readlinkat.
14991
14992 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14993
14994         Tests for module 'realloc-gnu'.
14995         * modules/realloc-gnu-tests: New file.
14996         * tests/test-realloc-gnu.c: New file.
14997
14998         Tests for module 'calloc-gnu'.
14999         * modules/calloc-gnu-tests: New file.
15000         * tests/test-calloc-gnu.c: New file.
15001
15002         Tests for module 'malloc-gnu'.
15003         * modules/malloc-gnu-tests: New file.
15004         * tests/test-malloc-gnu.c: New file.
15005
15006 2010-08-28  Bruno Haible  <bruno@clisp.org>
15007
15008         Rename module 'realloc' -> 'realloc-gnu'.
15009         * modules/realloc-gnu: New file, copied from modules/realloc.
15010         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15011         obsolete.
15012         * modules/mgetgroups (Depends-on): Update.
15013         * doc/posix-functions/realloc.texi: Update.
15014         * NEWS: Mention the change.
15015
15016         Rename module 'calloc' -> 'calloc-gnu'.
15017         * modules/calloc-gnu: New file, copied from modules/calloc.
15018         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15019         obsolete.
15020         * doc/posix-functions/calloc.texi: Update.
15021         * NEWS: Mention the change.
15022
15023         Rename module 'malloc' -> 'malloc-gnu'.
15024         * modules/malloc-gnu: New file, copied from modules/malloc.
15025         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15026         obsolete.
15027         * modules/argp (Depends-on): Update.
15028         * modules/regex (Depends-on): Update.
15029         * doc/posix-functions/malloc.texi: Update.
15030         * NEWS: Mention the change.
15031
15032 2010-08-28  Eric Blake  <eblake@redhat.com>
15033
15034         pread, pwrite: add missing dependency
15035         * modules/pread (Depends-on): Add extensions.
15036         * modules/pwrite (Depends-on): Likewise.
15037
15038 2010-08-28  Bruno Haible  <bruno@clisp.org>
15039
15040         unistr/u*-strchr: Fix tests dependencies.
15041         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15042         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15043         Reported by Ian Beckwith <ianb@erislabs.net>.
15044
15045 2010-08-28  Bruno Haible  <bruno@clisp.org>
15046
15047         read-file: Don't occupy too much unused memory.
15048         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15049
15050 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15051             Eric Blake  <eblake@redhat.com>
15052             Bruno Haible  <bruno@clisp.org>
15053
15054         read-file: Avoid memory reallocations with regular files.
15055         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15056         (fread_file): With regular files, use the remaining length as the
15057         initial buffer size.  Check against overflow.
15058         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15059         sys_stat.
15060
15061 2010-08-28  Bruno Haible  <bruno@clisp.org>
15062
15063         ftello: Relax license.
15064         * modules/ftello (License): Relax to LGPLv2+.
15065         Reported by Eric Blake.
15066
15067 2010-08-28  Bruno Haible  <bruno@clisp.org>
15068
15069         Avoid relocwrapper link errors due to gnulib replacement functions.
15070         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15071         function.
15072         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15073
15074 2010-08-28  Bruno Haible  <bruno@clisp.org>
15075
15076         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15077         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15078         defined.
15079         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15080         Suggested by Eric Blake.
15081
15082 2010-08-28  Bruno Haible  <bruno@clisp.org>
15083
15084         sys_socket, netdb: Ensure socklen_t gets defined.
15085         * modules/sys_socket (Depends-on): Add socklen.
15086         * modules/netdb (Depends-on): Likewise.
15087         * modules/getaddrinfo (Depends-on): Remove socklen.
15088         * modules/getsockopt (Depends-on): Likewise.
15089         * modules/setsockopt (Depends-on): Likewise.
15090         * tests/test-sys_socket.c: Check that socklen_t is defined.
15091         * tests/test-netdb.c: Likewise.
15092         * m4/socklen.m4: Update comments.
15093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15094
15095 2010-08-27  Eric Blake  <eblake@redhat.com>
15096
15097         login_tty: add missing dependency
15098         * modules/login_tty (Depends-on): Add pty.
15099
15100 2010-08-26  Eric Blake  <eblake@redhat.com>
15101
15102         lib-symbol-versions: fix m4 quoting
15103         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15104         format for AC_LINK_IFELSE.
15105
15106         glob: fix compile test
15107         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15108
15109         btowc: fix missing file
15110         * modules/btowc (Files): Also ship locale-fr.m4.
15111
15112         lseek: fix link test
15113         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15114         AC_LINK_IFELSE.
15115
15116         include_next: silence autoconf 2.68 warning
15117         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15118         AC_COMPILE_IFELSE as special.
15119         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15120         autoconf < 2.68.
15121
15122         acl: fix compilation test
15123         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15124         AC_COMPILE_IFELSE.
15125
15126 2010-08-26  Bruno Haible  <bruno@clisp.org>
15127
15128         Modernize AC_TRY_RUN invocations.
15129         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15130         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15131         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15132         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15133         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15134         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15136         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15137         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15138         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15139         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15140         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15141         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15142         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15144         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15145         gl_MBRLEN_NUL_RETVAL): Likewise.
15146         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15147         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15148         Likewise.
15149         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15150         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15151         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15152         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15153         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15154         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15155         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15156         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15157         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15158         Likewise.
15159         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15160         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15162         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15163         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15164         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15165         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15166         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15167         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15169
15170 2010-08-26  Bruno Haible  <bruno@clisp.org>
15171
15172         Modernize AC_TRY_LINK invocations.
15173         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15174         AC_TRY_LINK.
15175         * m4/argp.m4 (gl_ARGP): Likewise.
15176         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15177         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15178         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15179         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15180         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15181         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15182         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15183         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15184         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15185         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15186         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15187         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15188         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15189         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15190         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15191         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15192         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15193         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15194         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15195         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15196         Likewise.
15197         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15198         Likewise.
15199         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15200         Likewise.
15201         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15203         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15204         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15205         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15206         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15207         * m4/servent.m4 (gl_SERVENT): Likewise.
15208         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15209         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15210         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15211         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15212         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15213         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15214         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15215         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15216         * modules/tsearch-tests (configure.ac): Likewise.
15217
15218 2010-08-26  Bruno Haible  <bruno@clisp.org>
15219
15220         Modernize AC_TRY_COMPILE invocations.
15221         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15222         AC_TRY_COMPILE.
15223         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15224         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15225         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15226         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15227         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15228         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15229         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15230         * m4/lock.m4 (gl_LOCK): Likewise.
15231         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15232         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15233         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15235         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15236         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15237         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15238         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15239         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15240         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15241         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15242         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15243         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15244         extraneous semicolon.
15245
15246 2010-08-26  Jim Meyering  <meyering@redhat.com>
15247
15248         stat-time: relax license LGPL
15249         * modules/stat-time (License): Change from GPL to LGPL,
15250         with consent from all contributors, for use in libguile.
15251         Requested by Ludovic Courtès.
15252
15253 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15254
15255         poll: return immediately on POLLHUP.
15256         * lib/poll.c (poll): Always set timeout before wait_timeout is
15257         computed.
15258
15259 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15260
15261         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15262         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15263         rmdir ("dir/.//"), unlinkat.
15264
15265 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15266
15267         stdbool: avoid spurious failure with modern xlc
15268         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15269
15270 2010-08-24  Bruno Haible  <bruno@clisp.org>
15271
15272         getloadavg: simplify code
15273         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15274         gl_have_func. Update comments.
15275
15276 2010-08-24  Eric Blake  <eblake@redhat.com>
15277
15278         getloadavg: don't define SVR4 on cygwin
15279         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15280         only define SVR4 when -lkvm is required.
15281         Reported by Yaakov Selkowitz.
15282
15283 2010-08-24  Bruno Haible  <bruno@clisp.org>
15284
15285         priv-set: fix comment
15286         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15287
15288 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15289
15290         priv-set: fix comments
15291         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15292         to match code, as suggested by David Bartley in:
15293         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15294
15295 2010-08-23  Eric Blake  <eblake@redhat.com>
15296
15297         stdbool: avoid rejecting clang
15298         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15299         * tests/test-stdbool.c: Enable more tests if using the system
15300         <stdbool.h> instead of the gnulib replacement.
15301         (main): Move xlc bug test to a runtime test for all compilers.
15302         Reported by Anders Kaseorg.
15303
15304         argz: fix shell quoting issue
15305         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15306         Reported by Charles Wilson.
15307
15308 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15309             Erik Faye-Lund <kusmabite@gmail.com>
15310
15311         poll, select: handle ERROR_BROKEN_PIPE.
15312         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15313         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15314         * lib/select.c (win32_compute_revents): Do not mark a pipe
15315         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15316
15317 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15318
15319         fts: allow compilation with C++
15320         * lib/fts_.h: Specify extern "C" linkage with C++.
15321
15322 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15323
15324         Fix gnulib-tool sed script de-commentation for AIX sed.
15325         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15326         sed.
15327
15328 2010-08-17  Eric Blake  <eblake@redhat.com>
15329
15330         test-stddef: test for (some) offsetof bugs
15331         * tests/test-stddef.c: Enhance test to ensure correct type of
15332         offsetof.
15333         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15334         that we are not fixing at this time.
15335
15336 2010-08-15  Bruno Haible  <bruno@clisp.org>
15337
15338         stpncpy: Allow stpncpy to be defined as a macro.
15339         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15340         if it's already correctly declared.
15341         * lib/string.in.h (stpncpy): Undefine before redefining.
15342         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15343
15344 2010-08-14  Bruno Haible  <bruno@clisp.org>
15345
15346         Rename module 'memxfrm' to 'amemxfrm'.
15347         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15348         (amemxfrm): Renamed from memxfrm.
15349         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15350         (amemxfrm): Renamed from memxfrm.
15351         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15352         * NEWS: Mention the change.
15353         * MODULES.html.sh (String handling <string.h>): Update.
15354         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15355         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15356         * lib/unicase/u16-casexfrm.c: Likewise.
15357         * lib/unicase/u32-casexfrm.c: Likewise.
15358         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15359         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15360         * lib/uninorm/u16-normxfrm.c: Likewise.
15361         * lib/uninorm/u32-normxfrm.c: Likewise.
15362         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15363         memxfrm.
15364         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15365         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15366         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15367         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15368         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15369         Suggested by Paul Eggert.
15370
15371 2010-08-14  Bruno Haible  <bruno@clisp.org>
15372
15373         Tests for module 'astrxfrm'.
15374         * modules/astrxfrm-tests: New file.
15375         * tests/test-astrxfrm.c: New file.
15376
15377         New module 'astrxfrm'.
15378         * lib/astrxfrm.h: New file.
15379         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15380         * modules/astrxfrm: New file.
15381
15382 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15383
15384         regex: Tweak doc.
15385         * doc/regex.texi (Overview): Don't mention regex.c.
15386         (GNU Regular Expression Compiling): Likewise.
15387         (Match-end-of-line Operator): Mention 'not_eol'.
15388
15389 2010-08-14  Brian Gough  <bjg@gnu.org>
15390             Bruno Haible  <bruno@clisp.org>
15391
15392         git-merge-changelog: add doc relating to use with bzr and hg.
15393         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15394
15395 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15396
15397         pthread: fix pthread.h creation for srcdir != builddir
15398         * modules/pthread (Makefile.am): Fix the rule to work also in a
15399         non-srcdir build.
15400
15401 2010-08-13  Karl Berry  <karl@gnu.org>
15402
15403         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15404         * doc/posix-*/*: force line break before @url of POSIX
15405         specifications.
15406         Suggested by Werner Lemberg.
15407
15408 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15409
15410         strtod: fix const diagnostic
15411         * lib/strtod.c (strtod): Don't assign const char * to char *,
15412         as this elicits a warning from GCC when warnings are enabled.
15413
15414 2010-08-10  Pádraig Brady <P@draigbrady.com>
15415         and Eric Blake  <eblake@redhat.com>
15416
15417         copy-acl: ignore ENOTSUP on HP-UX
15418         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15419         so that it is available for HP-UX.
15420         * lib/copy-acl.c (qcopy_acl): Use it.
15421         Reported by Patrick M. Callahan.
15422
15423 2010-08-10  Eric Blake  <eblake@redhat.com>
15424
15425         open, chown: relax license
15426         * modules/open (License): Change to LGPLv2+, with consent by all
15427         authors, for use in augeas.
15428         * modules/chown (License): Likewise.
15429         * modules/lchown (Likewise): Likewise.
15430         Requested by Adam Stokes.
15431
15432 2010-08-09  Karl Berry  <karl@gnu.org>
15433
15434         * build-aux/ar-lib: new file, import from Automake.
15435         * config/srclist.txt: autocheck for updates.
15436
15437 2010-08-09  Eric Blake  <eblake@redhat.com>
15438
15439         readlinkat: adjust client modules
15440         * modules/areadlinkat (Depends-on): Use readlinkat, not
15441         symlinkat.
15442         * modules/areadlinkat-with-size (Depends-on): Likewise.
15443
15444         mknod: be more vocal about danger of running tests as root
15445         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15446         root, since that is just asking for problems.
15447         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15448
15449         readlinkat: split into its own module
15450         * modules/symlinkat: Split readlinkat...
15451         * modules/readlinkat: ...into separate module.
15452         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15453         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15454         * lib/symlinkat.c (readlinkat): Move...
15455         * lib/readlinkat.c: ...into new file.
15456         * modules/symlinkat-tests: Split readlinkat test...
15457         * modules/readlinkat-tests: ...into separate module.
15458         * tests/test-symlinkat.c: Split...
15459         * tests/test-readlinkat.c: ...into new file.
15460         * NEWS: Document the split.
15461         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15462         * lib/unistd.in.h (readlinkat): Likewise.
15463         Suggested by Bruno Haible.
15464
15465 2010-08-08  Bruno Haible  <bruno@clisp.org>
15466
15467         memxfrm: Speed up.
15468         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15469         that usually only one call to strxfrm is necessary for each string
15470         part.
15471         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15472
15473 2010-08-07  Karl Berry  <karl@gnu.org>
15474
15475         * doc/posix-headers/limits.texi,
15476         * doc/posix-functions/malloc.texi,
15477         * doc/posix-functions/strsignal.texi: missing @item.
15478         * doc/ld-version-script.texi: spurious leading i.
15479         * doc/regex.texi (Interval Operators): no commas inside @var.
15480
15481 2010-08-01  Bruno Haible  <bruno@clisp.org>
15482
15483         Integrate the regex documentation.
15484         * doc/gnulib.texi: Define 'cn' index.
15485         (Regular expressions): New a chapter that includes regex.texi and
15486         regexprops-generic.texi.
15487         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15488         syntax.
15489
15490         Whitespace cleanup.
15491         * doc/regex.texi: Remove trailing spaces.
15492
15493         Add regex documentation.
15494         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15495         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15496         Written by Kathy A. Hargreaves and Karl Berry.
15497
15498 2010-08-01  Bruno Haible  <bruno@clisp.org>
15499
15500         link: Update documentation.
15501         * doc/posix-functions/link.texi: Update regarding Solaris.
15502
15503 2010-07-31  Bruno Haible  <bruno@clisp.org>
15504
15505         Update modules list.
15506         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15507         (String handling <string.h>): Add memcmp2, memxfrm.
15508         (Container data structures): Add xlist, xsublist, xoset.
15509         (Core language properties): Add alignof, unused-parameter.
15510         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15511         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15512         (Unibyte characters <ctype.h>): New section.
15513         (String handling <string.h>): New section.
15514         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15515         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15516         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15517         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15518         tan, tanh, tanl, y0, y1, yn.
15519         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15520         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15521         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15522         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15523         unlockpt, vdprintf, vdprintf-posix.
15524         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15525         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15526         xconcat-filename.
15527         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15528         getdtablesize, pipe2, pipe2-safer.
15529         (Security): New section.
15530         (Networking functions): Add accept4.
15531         (Signal handling): Add sigpipe.
15532         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15533         mbmemcasecoll.
15534         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15535         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15536         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15537         pipe-filter-ii.
15538         (Misc): Add argp-version-etc, login_tty, parse-duration.
15539
15540 2010-07-31  Bruno Haible  <bruno@clisp.org>
15541
15542         Improve doc in MODULES.html.
15543         * modules/linkat (Description): Add the word "function".
15544         * modules/mkfifo (Description): Likewise.
15545         * modules/mknod (Description): Likewise.
15546         * modules/remove (Description): Likewise.
15547         * modules/renameat (Description): Likewise.
15548         * modules/stat (Description): Likewise.
15549         * modules/symlink (Description): Likewise.
15550         * modules/unlink (Description): Likewise.
15551
15552 2010-07-31  Bruno Haible  <bruno@clisp.org>
15553
15554         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15555         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15556         option --enable/disable-c++ instead of --enable/disable-cxx.
15557         * NEWS: Mention the change.
15558
15559 2010-07-31  Bruno Haible  <bruno@clisp.org>
15560
15561         readlink, areadlink: Relax test a bit.
15562         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15563         alternative to ENOTDIR.
15564         * tests/test-areadlink.h (test_areadlink): Likewise.
15565         Reported by Rainer Tammer.
15566
15567 2010-07-31  Bruno Haible  <bruno@clisp.org>
15568
15569         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15570         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15571         character, perform the search using U_STRCHR.
15572         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15573         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15574         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15575         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15576         Suggested by Paolo Bonzini.
15577
15578 2010-07-31  Bruno Haible  <bruno@clisp.org>
15579
15580         unistr/u*-strstr: Fix dependencies.
15581         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15582         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15583         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15584
15585 2010-07-31  Bruno Haible  <bruno@clisp.org>
15586
15587         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15588         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15589         the beginning of the loop.
15590         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15591         cases in 'switch' statement.
15592
15593         unistr/u8-strchr: Fix several bugs.
15594         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15595         the string. When not found, return NULL, not a pointer near the end.
15596
15597         More tests for unistr/u8-strchr.
15598         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15599         that the function does not read past the first occurrence of the byte
15600         being searched.
15601         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15602         * tests/unistr/test-u16-strchr.c (main): New function.
15603         * tests/unistr/test-u32-strchr.c (main): New function.
15604
15605 2010-07-31  Bruno Haible  <bruno@clisp.org>
15606
15607         posix-modules: Ignore backup files of documentation files.
15608         * posix-modules: grep only through files named *.texi.
15609
15610 2010-07-31  Bruno Haible  <bruno@clisp.org>
15611
15612         symlinkat: Fix documentation.
15613         * doc/posix-functions/readlinkat.texi: Fix module name.
15614
15615 2010-07-31  Bruno Haible  <bruno@clisp.org>
15616
15617         fchownat: Replace also when chown has the trailing slash bug.
15618         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15619         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15620         introduced on 2010-04-10.
15621         Reported by Rainer Tammer.
15622
15623 2010-07-31  Bruno Haible  <bruno@clisp.org>
15624
15625         linkat: Work around AIX 7.1 bug.
15626         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15627         whether linkat handles trailing slash correctly. If not, replace linkat
15628         and define LINKAT_TRAILING_SLASH_BUG.
15629         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15630         check whether (fd1,file1) points to a directory if file1 or file2 ends
15631         in a slash. Code taken from lib/link.c.
15632         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15633         Reported by Rainer Tammer.
15634
15635 2010-07-31  Bruno Haible  <bruno@clisp.org>
15636
15637         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15638         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15639         This disables an xlc optimization that was causing wrong test results.
15640         Reported by Rainer Tammer.
15641
15642 2010-07-31  Bruno Haible  <bruno@clisp.org>
15643
15644         iconv: Work around AIX 6.1..7.1 bug.
15645         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15646         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15647         cross-compiling, guess no on all versions of AIX.
15648         Reported by Rainer Tammer.
15649
15650 2010-07-31  Bruno Haible  <bruno@clisp.org>
15651
15652         readlink: Relax test a bit.
15653         * tests/test-readlink.h (test_readlink): Allow different errno value
15654         when readlink is called with a file name that ends in / and refers to
15655         a file.
15656         Suggested by Eric Blake.
15657         Reported by Rainer Tammer.
15658
15659 2010-07-31  Bruno Haible  <bruno@clisp.org>
15660
15661         copysign: Does not require -lm on glibc systems.
15662         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15663         gl_COMMON_DOUBLE_MATHFUNC.
15664         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15665
15666 2010-07-31  Bruno Haible  <bruno@clisp.org>
15667
15668         duplocale: Work around AIX 7.1 bug.
15669         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15670         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15671         * lib/duplocale.c (rpl_duplocale): Update comment.
15672         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15673         Reported by Rainer Tammer.
15674
15675 2010-07-30  Bruno Haible  <bruno@clisp.org>
15676
15677         dirfd: Avoid link error on AIX 7.1.
15678         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15679         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15680         exist, set REPLACE_DIRFD.
15681         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15682         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15683         * doc/posix-functions/dirfd.texi: Update.
15684         Reported by Rainer Tammer.
15685
15686 2010-07-30  Eric Blake  <eblake@redhat.com>
15687
15688         strtod: next round of AIX fixes
15689         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15690         exponent.
15691         * tests/test-strtod.c (main): Enhance tests.
15692         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15693         Reported by Rainer Tammer.
15694
15695         futimens: fix configure check
15696         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15697         Reported by Bruno Haible.
15698
15699 2010-07-30  Bruno Haible  <bruno@clisp.org>
15700
15701         getline: Update regarding AIX.
15702         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15703         Reported by Rainer Tammer.
15704
15705 2010-07-30  Bruno Haible  <bruno@clisp.org>
15706
15707         wcwidth: Drop replacement on AIX 7.
15708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15709         AIX 7.
15710         Reported by Rainer Tammer.
15711
15712 2010-07-30  Bruno Haible  <bruno@clisp.org>
15713
15714         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15715         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15716         a 'char *'.
15717         Reported by Rainer Tammer.
15718
15719 2010-07-30  Bruno Haible  <bruno@clisp.org>
15720
15721         unlink: Update regarding AIX.
15722         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15723         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15724         Reported by Rainer Tammer.
15725
15726 2010-07-30  Bruno Haible  <bruno@clisp.org>
15727
15728         symlink: Update regarding AIX.
15729         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15730         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15731         Reported by Rainer Tammer.
15732
15733 2010-07-30  Bruno Haible  <bruno@clisp.org>
15734
15735         strndup: Update regarding AIX.
15736         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15737         AIX 7.
15738         Reported by Rainer Tammer.
15739
15740 2010-07-30  Bruno Haible  <bruno@clisp.org>
15741
15742         stat: Update regarding AIX.
15743         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15744         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15745         Reported by Rainer Tammer.
15746
15747 2010-07-30  Bruno Haible  <bruno@clisp.org>
15748
15749         truncl: Fix autoconf test.
15750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15751         whether truncl works.
15752         Reported by Rainer Tammer.
15753
15754 2010-07-30  Bruno Haible  <bruno@clisp.org>
15755
15756         round: Update regarding AIX.
15757         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15758         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15759         Reported by Rainer Tammer.
15760
15761 2010-07-30  Bruno Haible  <bruno@clisp.org>
15762
15763         rename: Update regarding AIX.
15764         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15765         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15766         Reported by Rainer Tammer.
15767
15768 2010-07-30  Bruno Haible  <bruno@clisp.org>
15769
15770         printf.m4: Update regarding AIX.
15771         * m4/printf.m4: Update comments regarding AIX.
15772         Reported by Rainer Tammer.
15773
15774 2010-07-30  Bruno Haible  <bruno@clisp.org>
15775
15776         iconv: Update regarding AIX.
15777         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15778         AIX 7.
15779         Reported by Rainer Tammer.
15780
15781 2010-07-30  Bruno Haible  <bruno@clisp.org>
15782
15783         getopt: Update regarding AIX.
15784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15785         no on AIX.
15786         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15787         Reported by Rainer Tammer.
15788
15789 2010-07-30  Bruno Haible  <bruno@clisp.org>
15790
15791         ldexpl; Update regarding AIX.
15792         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15793         on AIX 7.
15794         Reported by Rainer Tammer.
15795
15796 2010-07-30  Bruno Haible  <bruno@clisp.org>
15797
15798         frexpl: Update regarding AIX.
15799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15800         on AIX 7.
15801         Reported by Rainer Tammer.
15802
15803 2010-07-30  Bruno Haible  <bruno@clisp.org>
15804
15805         open, fopen: Update regarding AIX.
15806         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15807         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15808         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15809         * doc/posix-functions/fopen.texi: Likewise.
15810         Reported by Rainer Tammer.
15811
15812 2010-07-30  Bruno Haible  <bruno@clisp.org>
15813
15814         chown: Update doc regarding AIX.
15815         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15816         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15817         Reported by Rainer Tammer.
15818
15819 2010-07-30  Eric Blake  <eblake@redhat.com>
15820
15821         strtod: fix bug in replacement function on AIX
15822         * lib/strtod.c (strtod): Special case broken "0x" parse in
15823         underlying strtod.
15824         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15825         * doc/posix-functions/strtod.texi (strtod): Likewise.
15826         Reported by Rainer Tammer.
15827
15828 2010-07-30  Bruno Haible  <bruno@clisp.org>
15829
15830         mbrlen: Fix cross-compilation guess for AIX.
15831         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15832         guess. Leftover from 2008-12-22.
15833
15834 2010-07-30  Bruno Haible  <bruno@clisp.org>
15835
15836         mbrtowc: Fix cross-compilation guess for AIX.
15837         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15838         guess. Leftover from 2008-12-21.
15839
15840 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15841
15842         init.sh: work around trap limitation of some shells
15843         * tests/init.sh (setup_): Move exit trap outside of shell function.
15844
15845 2010-07-29  Eric Blake  <eblake@redhat.com>
15846
15847         strtod: aid debugging
15848         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15849         understanding why strtod is rejected.
15850
15851 2010-07-28  Bruno Haible  <bruno@clisp.org>
15852
15853         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15854         * lib/unistr/u8-chr.c: Include <string.h>.
15855         * tests/unistr/test-u8-chr.c: Likewise.
15856         * tests/unistr/test-u16-chr.c: Likewise.
15857         * tests/unistr/test-u32-chr.c: Likewise.
15858         * tests/unistr/test-u8-strchr.c: Likewise.
15859         * tests/unistr/test-u16-strchr.c: Likewise.
15860         * tests/unistr/test-u32-strchr.c: Likewise.
15861         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15862         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15863         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15864         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15865
15866 2010-07-28  Bruno Haible  <bruno@clisp.org>
15867
15868         Use spaces for indentation, not tabs.
15869         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15870
15871 2010-07-27  Bruno Haible  <bruno@clisp.org>
15872
15873         mbspcasecmp: Fix function specification.
15874         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15875         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15876         Reported by Eric Blake <eblake@redhat.com>.
15877
15878 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15879
15880         timespec: use cast and not conditional, as truncation isn't possible
15881         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15882         instead of a conditional.  Comment about the situation in more detail.
15883         This undoes most of the 2009-10-29 patch.
15884
15885 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15886
15887         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15888         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15889         * lib/unistr/u8-strchr.c: Likewise.
15890         * modules/unistr/u8-chr: Depend on memchr.
15891
15892         unistr/u*-strchr: add tests
15893         * modules/unistr/u8-strchr-tests: New file.
15894         * modules/unistr/u16-strchr-tests: New file.
15895         * modules/unistr/u32-strchr-tests: New file.
15896         * tests/unistr/test-strchr.h: New file.
15897         * tests/unistr/test-u8-strchr.c: New file.
15898         * tests/unistr/test-u16-strchr.c: New file.
15899         * tests/unistr/test-u32-strchr.c: New file.
15900
15901         unistr/u*-chr: test multibyte sequences more
15902         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15903         test vector.
15904         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15905         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15906         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15907
15908         unistr/u*-chr: test multibyte sequences
15909         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15910
15911         unistr/u*-chr: prepare for multibyte tests
15912         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15913         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15914         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15915         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15916         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15917         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15918
15919 2010-07-18  Bruno Haible  <bruno@clisp.org>
15920
15921         unistr/u8-strchr: Optimize non-ASCII argument case.
15922         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15923         because the first byte often matches anyway.
15924         Reported by Pádraig Brady <P@draigbrady.com>.
15925
15926 2010-07-15  Karl Berry  <karl@gnu.org>
15927
15928         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15929
15930 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15931
15932         getcwd: on Solaris, work better if ancestors are inaccessible
15933         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15934         buffer and size, try again with a large buffer.  This works better
15935         on Solaris, since its getcwd succeeds even if the path to the root
15936         is inaccessible, and this is helpful in common cases such as .zfs
15937         hidden directories.  Problem reported by J Chapman Flack in
15938         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15939         Use system getcwd if it's declared, not merely if it's partly
15940         working; use the partly-working test only to avoid needless effort
15941         if the system getcwd fails.
15942         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15943         comment that was already obsolete and is now even more obsolete.
15944         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15945         now might call strdup.
15946
15947 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15948
15949         pthread: Add enough so that coreutils/src/sort.c compiles.
15950         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15951         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15952         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15953         Include <sys/types.h>, in case it defines pthread_t.
15954         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15955         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15956         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15957         (pthread_rwlockattr_t, pthread_spinlock_t):
15958         New typedefs, if HAVE_PTHREAD_T is not defined.
15959         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15960         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15961         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15962         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15963         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15964         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15965         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15966         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15967         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15968         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15969         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15970         New macros.
15971         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15972         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15973         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15974         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15975         (pthread_spin_unlock): New dummy functions.
15976         (pthread_create): Return EAGAIN; don't set errno.
15977         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15978         require AC_C_INLINE.
15979         * modules/pthread (Depends-on): Add sched, time.
15980         (pthread.h): Use AM_V_GEN.
15981
15982 2010-07-13  Bruno Haible  <bruno@clisp.org>
15983
15984         striconveh: Don't malloc memory if the result buffer is sufficient.
15985         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15986         buffer if its size is sufficient.
15987         Reported by Ludovic Courtès <ludo@gnu.org>.
15988
15989 2010-07-13  Bruno Haible  <bruno@clisp.org>
15990
15991         strtod: Add safety check.
15992         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15993
15994 2010-07-12  Bruno Haible  <bruno@clisp.org>
15995
15996         Unify tests that set gl_cv_func_ldexpl_no_libm.
15997         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15998         gl_FUNC_LDEXPL.
15999         (gl_FUNC_LDEXPL): Invoke it.
16000         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16001
16002 2010-07-12  Bruno Haible  <bruno@clisp.org>
16003
16004         Unify tests that set gl_cv_func_ldexp_no_libm.
16005         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16006         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16007         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16008         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16009         * modules/strtod (Files): Add m4/ldexp.m4.
16010
16011 2010-07-12  Bruno Haible  <bruno@clisp.org>
16012
16013         Unify tests that set gl_cv_func_frexpl_no_libm.
16014         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16015         gl_FUNC_FREXPL_NO_LIBM.
16016         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16017         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16018
16019 2010-07-12  Bruno Haible  <bruno@clisp.org>
16020
16021         Unify tests that set gl_cv_func_frexp_no_libm.
16022         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16023         gl_FUNC_FREXP_NO_LIBM.
16024         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16025         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16026
16027 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16028
16029         memcoll: clarify sizes versus lengths, document better, and tweak perf
16030         * lib/memcoll.c (strcoll_loop, memcoll0):
16031         Improve quality of descriptive comments.  Name variables
16032         consistently as to whether they are lengths (which do not include
16033         terminating null) versus sizes (which do).
16034         * lib/xmemcoll.c (xmemcoll0): Likewise.
16035         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16036         returned when s1size == 0; this is easier to compile and saves
16037         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16038
16039 2010-07-12  Bruno Haible  <bruno@clisp.org>
16040
16041         Tests for module '_Exit'.
16042         * modules/_Exit-tests: New file.
16043         * tests/test-_Exit.sh: New file.
16044         * tests/test-_Exit.c: New file.
16045
16046         New module '_Exit'.
16047         * lib/stdlib.in.h (__attribute__): New macro.
16048         (_Exit): New declaration.
16049         * lib/_Exit.c: New file.
16050         * m4/_Exit.m4: New file.
16051         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16052         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16053         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16054         * modules/_Exit: New file.
16055         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16056         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16057
16058 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16059
16060         strtod: make it more-accurate typically, and don't require libm
16061         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16062         Include limits.h.  Don't include string.h.
16063         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16064         (locale_isspace): New function, so that no casts are needed to
16065         check whether *s is a space.
16066         (ldexp): Provide an unused dummy if not available.
16067         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16068         (strtod): Use them.  This implementation prefers to use the
16069         underlying strtod if available, falling back on our own code
16070         only to fix known bugs.  This is more likely to produce an
16071         accurate result.  Also, it avoids the use of libm functions.
16072         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16073         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16074         was absent, but it caused a test failure with coreutils.
16075         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16076         with libm.
16077         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16078         * modules/strtod-tests (Makefile.am): Likewise.
16079
16080 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16081             Bruno Haible  <bruno@clisp.org>
16082
16083         unistr/u8-strchr: Optimize ASCII argument case.
16084         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16085
16086 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16087
16088         (x)memcoll: minor tweaks
16089         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16090         is after the type that it qualifies.
16091         (memcoll0): Likewise.
16092         * lib/memcoll.h (memcoll0): Likewise.
16093         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16094         * lib/xmemcoll.h (xmemcoll0): Likewise.
16095         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16096         differs from memcoll in that the NUL byte is part of the argument.
16097         Omit the abort-checks, as performance is a real issue here.  Plus,
16098         the checks were wrong anyway (an off-by-one error).  Omit local
16099         variable 'diff', as it's a bit clearer that way.
16100         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16101         no longer needed.
16102
16103 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16104
16105         (x)memcoll: speedup when input is known to be NUL delimited
16106         * lib/memcoll.c: Include stdlib.
16107         (memcoll0): New function.
16108         (strcoll_loop): New function, refactored for use in both memcoll
16109         and memcoll0.
16110         * lib/memcoll.h (memcoll0): Add prototype.
16111         * lib/xmemcoll.c (xmemcoll0): New function.
16112         (collate_error): New function, refactored for use in both xmemcoll
16113         and xmemcoll0.
16114         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16115         * m4/memcoll.m4: add inline invocation.
16116
16117 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16118
16119         * build-aux/bootstrap: Remove any local translations
16120         from the translation project synchronization directory,
16121         so that local only translations are not distributed.
16122
16123 2010-07-04  Bruno Haible  <bruno@clisp.org>
16124
16125         fsusage: Clarify which code applies to which platforms.
16126         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16127         platform.
16128         * lib/fsusage.c (get_fs_usage): Likewise.
16129
16130 2010-07-04  Bruno Haible  <bruno@clisp.org>
16131
16132         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16133         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16134         Reported by Martin Lambers <marlam@marlam.de>.
16135
16136 2010-07-04  Jim Meyering  <meyering@redhat.com>
16137
16138         hash: once again explicitly disallow insertion of NULL
16139         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16140         inserting a NULL pointer cannot work with these functions.
16141         Add a comment with details.
16142         This reverts part of the 2010-07-01 commit, 5bef1a35
16143         "hash: extend module to deal with non-pointer keys".
16144
16145 2010-07-01  Bruno Haible  <bruno@clisp.org>
16146
16147         stdbool: Update doc.
16148         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16149         Info from Christian Weisgerber <naddy@mips.inka.de>.
16150
16151 2010-07-01  Jim Meyering  <meyering@redhat.com>
16152
16153         hash: extend module to deal with non-pointer keys
16154         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16155         but that allows insertion of non-pointer entries.
16156         Do not disallow an ENTRY value of NULL.
16157         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16158         * lib/hash.h (hash_insert0): Declare.
16159
16160 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16161
16162         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16163         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16164         not present (i.e. with autoconf 2.59 and when using gettextize, not
16165         gnulib), require AC_GNU_SOURCE instead.
16166
16167 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16168
16169         idpriv-drop: Fix tests.
16170         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16171         not to the test-idpriv-droptemp program.
16172
16173 2010-06-29  Bruno Haible  <bruno@clisp.org>
16174
16175         string: Fix syntax error with g++ 2.96.
16176         * lib/string.in.h (__pure__): Remove definition.
16177         (_GL_ATTRIBUTE_PURE): New macro.
16178         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16179         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16180         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16181
16182 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16183
16184         unitypes: Fix bug introduced on 2010-05-18.
16185         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16186
16187 2010-06-22  Eric Blake  <eblake@redhat.com>
16188
16189         memmem: slight optimization
16190         * lib/str-two-way.h (critical_factorization): Update comments.
16191         Reduce work during factorization phase.
16192         Reported by Carlos Bueno <carlos@bueno.org>.
16193
16194 2010-06-21  Bruno Haible  <bruno@clisp.org>
16195
16196         Fix HAVE_CALLOC_POSIX misnomer.
16197         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16198         !HAVE_CALLOC_POSIX.
16199         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16200         HAVE_CALLOC_POSIX.
16201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16202         instead of HAVE_CALLOC_POSIX.
16203         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16204         HAVE_CALLOC_POSIX.
16205
16206         Use modern idiom for calloc() replacement.
16207         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16208         AC_FUNC_CALLOC.
16209         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16210         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16211         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16212         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16213         (gl_REPLACE_CALLOC): New macro.
16214
16215 2010-06-21  Bruno Haible  <bruno@clisp.org>
16216
16217         Fix HAVE_REALLOC_POSIX misnomer.
16218         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16219         !HAVE_REALLOC_POSIX.
16220         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16221         HAVE_REALLOC_POSIX.
16222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16223         instead of HAVE_REALLOC_POSIX.
16224         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16225         HAVE_REALLOC_POSIX.
16226
16227         Use modern idiom for realloc() replacement.
16228         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16229         AC_FUNC_REALLOC.
16230         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16231         Autoconf's AC_FUNC_REALLOC.
16232         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16233         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16234         (gl_REPLACE_REALLOC): New macro.
16235         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16236
16237 2010-06-21  Bruno Haible  <bruno@clisp.org>
16238
16239         Fix HAVE_MALLOC_POSIX misnomer.
16240         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16241         !HAVE_MALLOC_POSIX.
16242         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16243         HAVE_MALLOC_POSIX.
16244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16245         instead of HAVE_MALLOC_POSIX.
16246         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16247         HAVE_MALLOC_POSIX.
16248
16249         Use modern idiom for malloc() replacement.
16250         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16251         AC_FUNC_MALLOC.
16252         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16253         Autoconf's AC_FUNC_MALLOC.
16254         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16255         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16256         (gl_REPLACE_MALLOC): New macro.
16257         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16258
16259 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16260
16261         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16262         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16263         This macro takes 3 arguments, not 4.
16264
16265 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16266
16267         ipv6: fix detection under mingw
16268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16269         in6_addr.
16270
16271 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16272
16273         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16274         that strtod() works when cross-compiling to a glibc version known
16275         to work.
16276
16277 2010-06-15  Bruno Haible  <bruno@clisp.org>
16278
16279         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16280
16281 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16282
16283         select: Correct timeout.
16284         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16285
16286 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16287
16288         git-version-gen: init shell var to avoid env var influence
16289         * build-aux/git-version-gen (v): Init shell var to empty.
16290
16291 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16292
16293         priv-set: Don't assume that priv.h exists merely because getppriv does.
16294         See Jan Andersen's bug report about AIX 5L in
16295         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16296         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16297         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16298         * lib/priv-set.h: Likewise.
16299         * tests/test-priv-set.c: Likewise.
16300
16301 2010-06-13  Bruno Haible  <bruno@clisp.org>
16302
16303         relocatable: Make it easier to test whether to install wrappers.
16304         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16305         RELOCATABLE_VIA_WRAPPER.
16306
16307 2010-06-13  Bruno Haible  <bruno@clisp.org>
16308
16309         gnulib-tool: Display specified modules and dependencies differently.
16310         * gnulib-tool (func_show_module_list): New function.
16311         (func_import, func_create_testdir): Invoke it.
16312         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16313
16314 2010-06-13  Bruno Haible  <bruno@clisp.org>
16315
16316         gnulib-tool: Align code of func_import and func_create_testdir.
16317         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16318         specified_modules.
16319
16320 2010-06-12  Jim Meyering  <meyering@redhat.com>
16321
16322         test-inttostr: avoid spurious failure on Solaris 9
16323         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16324         to accept "%ju".  Reported by Bruno Haible.
16325
16326 2010-06-11  Jim Meyering  <meyering@redhat.com>
16327
16328         test-sys_socket: mark variables as used more readably
16329         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16330         as "used" explicitly via (void) statement casts.  This is more
16331         readable than using them in an artificial return expression.
16332         Suggestion from Bruno Haible.
16333
16334 2010-06-11  Bruno Haible  <bruno@clisp.org>
16335
16336         Avoid some more warnings from "gcc -Wwrite-strings".
16337         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16338         to 'const char *'.
16339         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16340         * tests/test-c-strcasestr.c (main): Likewise.
16341         * tests/test-mbscasestr1.c (main): Likewise.
16342         * tests/test-mbscasestr2.c (main): Likewise.
16343         * tests/test-memmem.c (main): Likewise.
16344         * tests/test-strstr.c (main): Likewise.
16345         * tests/test-strcasestr.c (main): Likewise.
16346
16347 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16348
16349         init.sh: change framework_failure_ to fail with status 99, not 1
16350         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16351         automake's parallel-tests rule that this is an unexpected failure,
16352         even if the test is listed in XFAIL_TESTS.
16353
16354 2010-06-11  Jim Meyering  <meyering@redhat.com>
16355
16356         test-inttostr: avoid warnings about 4-6KB literal strings
16357         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16358         Include "macros.h", for its definition of ASSERT.
16359         (CK): s/assert/ASSERT/
16360         * modules/inttostr-tests (Files): Add macros.h.
16361
16362         init.sh: don't use $ME_ or skip_ before they are defined
16363         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16364         their first uses.  Also hoist their companions: warn_, fail_,
16365         framework_failure_, $stderr_fileno.  Prompted by a patch from
16366         Stefano Lattarini.
16367
16368         test-sys_socket: avoid set-but-not-used warnings from gcc
16369         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16370         avoid warning about set-but-not-used variables.
16371
16372         test-xvasprintf: avoid 'const' discard warnings
16373         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16374         "const" when assigning from literal strings.
16375         (test_xasprintf): Add "void" in function argument list to placate
16376         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16377
16378         tests: avoid compilation warnings in argmatch and exclude tests...
16379         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16380         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16381         Since it always exits, declare with the "noreturn" attribute.
16382         * tests/test-argmatch.c: Likewise.
16383
16384         tests: avoid 'const' discard warnings in mbsstr tests
16385         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16386         * tests/test-mbsstr2.c (main): Likewise.
16387
16388         test-verify: avoid warning from gcc's -Wmissing-declarations
16389         * tests/test-verify.c (function): Declare to be static.
16390
16391         test-inttostr.c: include <string.h> for use of strcmp
16392         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16393
16394         test-linkat: avoid failed assertion on "other" architectures
16395         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16396         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16397         sparc: https://bugs.launchpad.net/bugs/591968
16398
16399 2010-06-11  Jim Meyering  <meyering@redhat.com>
16400
16401         printf.m4: avoid autoconf's "Expanded Before Required" warning
16402         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16403         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16404         autoconf warning.
16405
16406 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16407
16408         Replacement header templates are now named with ".in", not "_".
16409         * doc/gnulib-intro.texi: Correct.
16410
16411 2010-06-10  Jim Meyering  <meyering@redhat.com>
16412
16413         inttostr-tests: depend on snprintf, not snprintf-posix
16414         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16415         snprintf-posix, to avoid this aclocal failure:
16416           missing file gnulib-tests/vasnprintf.c
16417           configure.ac:45: error: expected source file, required through \
16418           AC_LIBSOURCES, not found
16419
16420 2010-06-10  Jim Meyering  <meyering@redhat.com>
16421
16422         inttostr: add a new function, inttostr, and tests
16423         The namesake function was not available.  The existence of the
16424         template file, inttostr.c makes its addition nontrivial.
16425         * lib/anytostr.c: Rename from inttostr.c.
16426         (anytostr): Rename from inttostr.
16427         * lib/inttostr.c: New file.
16428         * modules/inttostr (Files): Add anytostr.c.
16429         (Makefile.am): Set lib_SOURCES instead of ...
16430         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16431         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16432         * lib/offtostr.c: Likewise.
16433         * lib/uinttostr.c: Likewise.
16434         * lib/umaxtostr.c: Likewise.
16435         * modules/inttostr-tests: New file.
16436         * tests/test-inttostr.c: New file.  Test these functions.
16437
16438 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16439             Bruno Haible  <bruno@clisp.org>
16440
16441         Add "Extending Gnulib" chapter to manual.
16442         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16443         chapter.
16444         (Extending Gnulib): New chapter.
16445         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16446         chapter.
16447
16448 2010-06-09  Bruno Haible  <bruno@clisp.org>
16449
16450         Avoid relocwrapper link errors due to gnulib replacement functions.
16451         * lib/areadlink.c: Use the system's malloc, realloc functions.
16452         (areadlink): Set errno to ENOMEM explicitly.
16453         * modules/areadlink (Depends-on): Remove malloc-posix.
16454         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16455
16456 2010-06-09  Bruno Haible  <bruno@clisp.org>
16457
16458         Avoid relocwrapper link errors due to gnulib replacement functions.
16459         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16460         * lib/malloca.c: Likewise.
16461         * lib/relocatable.c: Likewise.
16462         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16463         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16464         * lib/setenv.c: Use the system's malloc, realloc functions.
16465         * lib/strerror.c: Use the system's sprintf function.
16466         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16467
16468 2010-06-04  Bruno Haible  <bruno@clisp.org>
16469
16470         Prefer documented low-level autoconf macro names.
16471         * m4/lib-link.m4: Use m4_translit instead of translit.
16472         * m4/environ.m4: Likewise.
16473         * m4/mathfunc.m4: Likewise.
16474         * m4/onceonly.m4: Likewise.
16475         * m4/stdint.m4: Likewise.
16476         Suggested by Eric Blake.
16477
16478 2010-06-04  Martin Lambers  <marlam@marlam.de>
16479             Bruno Haible  <bruno@clisp.org>
16480
16481         havelib: Allow library names with '+' characters.
16482         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16483         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16484
16485 2010-06-09  Bruno Haible  <bruno@clisp.org>
16486
16487         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16488         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16489         realloc failed.
16490
16491 2010-06-08  Peter Simons  <simons@cryp.to>
16492
16493         maint.mk: make the news-check rule more configurable
16494         * top/maint.mk (news-check-lines-spec): New variable.
16495         (news-check): Use "sed -n 1,10p" in place of "head".
16496
16497 2010-06-07  Jim Meyering  <meyering@redhat.com>
16498
16499         do-release-commit-and-tag: fix typo in --help
16500         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16501
16502         regex: avoid new dead-code warning with gcc-4.6.0
16503         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16504         if-block containing a while-loop.  It's been unused for at least
16505         5 years.
16506
16507 2010-06-05  Bruno Haible  <bruno@clisp.org>
16508
16509         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16510         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16511
16512 2010-06-04  Bruno Haible  <bruno@clisp.org>
16513
16514         Update to GNU gettext 0.18.1.
16515         * modules/gettext (configure.ac): Require gettext infrastructure from
16516         version 0.18.1.
16517
16518 2010-06-03  Bruno Haible  <bruno@clisp.org>
16519
16520         Don't use AC_LIBOBJ with file names in subdirectories.
16521         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16522         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16523         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16524         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16525         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16526         gl_LIBUNISTRING_LIBSOURCE.
16527         (Makefile.am): Augment lib_SOURCES here, conditionally.
16528         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16529
16530 2010-06-03  Bruno Haible  <bruno@clisp.org>
16531
16532         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16533         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16534         expansion does not end with a newline.
16535         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16536         unnecessary newline.
16537
16538 2010-06-03  Bruno Haible  <bruno@clisp.org>
16539
16540         Reduce dependencies.
16541         * tests/test-quotearg.h: New file, extracted from
16542         tests/test-quotearg.c.
16543         * tests/test-quotearg-simple.c: New file, extracted from
16544         tests/test-quotearg.c.
16545         * tests/test-quotearg.c: Don't include <ctype.h>.
16546         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16547         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16548         use_quote_double_quotes, use_quotearg_colon): Moved to
16549         tests/test-quotearg.h.
16550         (results_g, flag_results, custom_quotes, custom_results): Moved
16551         to tests/test-quotearg-simple.c.
16552         (main): Moved the part that does not depend on gettext to
16553         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16554         performed.
16555         * modules/quotearg-simple: New file.
16556         * modules/quotearg-simple-tests: New file.
16557         * modules/quotearg (Depends-on): Add quotearg-simple.
16558         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16559         (Files): Add tests/test-quotearg.h.
16560         Reported by Paolo Bonzini.
16561
16562 2010-06-03  Bruno Haible  <bruno@clisp.org>
16563
16564         Reduce dependencies.
16565         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16566
16567 2010-06-03  Bruno Haible  <bruno@clisp.org>
16568
16569         time: Undefine more broken macros.
16570         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16571         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16572         Reported by Eric Blake.
16573
16574 2010-06-03  Bruno Haible  <bruno@clisp.org>
16575
16576         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16577         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16578         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16579         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16580         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16581         Reported by Ludovic Courtès <ludo@gnu.org>.
16582
16583 2010-06-02  Eric Blake  <eblake@redhat.com>
16584
16585         time: work with mingw + pthreads-win32 library
16586         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16587         if timespec is defined only in pthread.h.
16588         * modules/time (Makefile.am): Substitute it.
16589         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16590         <pthread.h>, when needed.
16591         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16592         from the library.
16593
16594 2010-05-31  Bruno Haible  <bruno@clisp.org>
16595
16596         Avoid expanding two macros in the wrong order.
16597         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16598         gl_LIBUNISTRING if it is defined.
16599         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16600         autoconf >= 2.64.
16601         Reported by Ludovic Courtès <ludo@gnu.org>.
16602
16603 2010-05-27  Jim Meyering  <meyering@redhat.com>
16604
16605         maint.mk: also prohibit "#undef" of always-defined symbols
16606         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16607         Allow more than one space before the symbol name.
16608         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16609         the regexp uses alternation.
16610
16611 2010-05-26  Eric Blake  <eblake@redhat.com>
16612
16613         maint.mk: avoid echo -e
16614         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16615         Convert all uses of echo -* to printf.
16616         Reported by Matthias Bolte.
16617
16618 2010-05-25  Bruno Haible  <bruno@clisp.org>
16619
16620         Update to GNU gettext 0.18, part 2.
16621         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16622         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16623
16624 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16625
16626         Add missing include in test-pwrite.c.
16627         * tests/test-pwrite.c: Include string.h, for strcmp.
16628
16629 2010-05-24  Bruno Haible  <bruno@clisp.org>
16630
16631         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16632
16633 2010-05-24  Bruno Haible  <bruno@clisp.org>
16634
16635         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16636         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16637         iconveh_error argument.
16638         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16639         U_STRCONV_TO_LOCALE.
16640         * lib/unistr/u16-strcoll.c: Likewise.
16641         * lib/unistr/u32-strcoll.c: Likewise.
16642         * modules/unistr/u8-strcoll (Depends-on): Add
16643         uniconv/u8-strconv-to-enc, localcharset. Remove
16644         uniconv/u8-strconv-to-locale.
16645         (configure.ac): Bump version number.
16646         * modules/unistr/u16-strcoll (Depends-on): Add
16647         uniconv/u16-strconv-to-enc, localcharset. Remove
16648         uniconv/u16-strconv-to-locale.
16649         (configure.ac): Bump version number.
16650         * modules/unistr/u32-strcoll (Depends-on): Add
16651         uniconv/u32-strconv-to-enc, localcharset. Remove
16652         uniconv/u32-strconv-to-locale.
16653         (configure.ac): Bump version number.
16654
16655 2010-05-24  Bruno Haible  <bruno@clisp.org>
16656
16657         Avoid a test failure on NetBSD 5.0.
16658         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16659         an iconv() bug.
16660
16661 2010-05-24  Bruno Haible  <bruno@clisp.org>
16662
16663         Adjust #include directive style.
16664         * modules/regex (Includes): Recommend to write <regex.h>.
16665
16666 2010-05-24  Bruno Haible  <bruno@clisp.org>
16667
16668         regex: Don't require alloca.
16669         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16670         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16671         only inside if (0).
16672
16673 2010-05-23  Jim Meyering  <meyering@redhat.com>
16674
16675         test-renameat.c: include <sys/stat.h>
16676         * tests/test-renameat.c: Include <sys/stat.h>; required for
16677         definition of S_IS* macros.
16678
16679 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16680
16681         Update maintainer documentation for 'relocatable-prog' module.
16682         * doc/relocatable-maint.texi: Update.
16683         Comments by Bruno Haible.
16684
16685 2010-05-23  Bruno Haible  <bruno@clisp.org>
16686
16687         git-merge-changelog: Enable --split-merged-entry by default.
16688         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16689         (usage): Don't mention this option any more.
16690         Reported by Ralf Wildenhues.
16691
16692 2010-05-23  Jim Meyering  <meyering@redhat.com>
16693
16694         test-pwrite: do not leave behind a test file named "out"
16695         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16696         The trivial-looking use of init.sh is really necessary.
16697         It ensures that the temporary file, "out", is created in
16698         a temporary directory, and removed upon termination.
16699         * tests/test-pwrite.sh: Re-add file.
16700         * modules/pwrite-tests: Reference it.
16701
16702 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16703
16704         Fix output redirection buglet in init.sh.
16705         * tests/init.sh: Fix redirection of stderr.
16706
16707 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16708
16709         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16710
16711 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16712
16713         * modules/valgrind-tests: New file.
16714         * m4/valgrind-tests.m4: New file.
16715         * doc/valgrind-tests.texi: New file.
16716         * doc/gnulib.texi (Running self-tests under valgrind): New
16717         section.
16718
16719 2010-05-19  Bruno Haible  <bruno@clisp.org>
16720
16721         Clean up dead code in recent commit.
16722         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16723         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16724         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16725         Suggested by Paolo Bonzini.
16726
16727 2010-05-19  Bruno Haible  <bruno@clisp.org>
16728
16729         Avoid valgrind error reports from libunistring.
16730         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16731         * modules/libunistring (Files): Add it.
16732         * modules/libunistring-optional (Files): Likewise.
16733
16734 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16735             Bruno Haible  <bruno@clisp.org>
16736
16737         New module 'libunistring-optional'.
16738         * modules/libunistring-optional: New file.
16739         * m4/libunistring-base.m4: New file.
16740         * m4/libunistring-optional.m4: New file.
16741         * lib/unicase.in.h: Renamed from lib/unicase.h.
16742         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16743         * lib/unictype.in.h: Renamed from lib/unictype.h.
16744         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16745         * lib/uniname.in.h: Renamed from lib/uniname.h.
16746         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16747         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16748         * lib/unistr.in.h: Renamed from lib/unistr.h.
16749         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16750         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16751         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16752         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16753         gl_LIBUNISTRING. If the library was found, determine the installed
16754         version and set LIBUNISTRING_VERSION.
16755         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16756         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16757         handle a configuration option --with-included-libunistring.
16758         * modules/libunistring (Files): Add m4/absolute-header.m4.
16759         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16760         Add m4/libunistring-base.m4.
16761         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16762         (Makefile.am): Build unicase.h from unicase.in.h.
16763         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16764         Add m4/libunistring-base.m4.
16765         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16766         (Makefile.am): Build uniconv.h from uniconv.in.h.
16767         * modules/unictype/base (Files): Use unictype.in.h instead of
16768         unictype.h. Add m4/libunistring-base.m4.
16769         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16770         (Makefile.am): Build unictype.h from unictype.in.h.
16771         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16772         Add m4/libunistring-base.m4.
16773         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16774         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16775         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16776         Add m4/libunistring-base.m4.
16777         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16778         (Makefile.am): Build uniname.h from uniname.in.h.
16779         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16780         Add m4/libunistring-base.m4.
16781         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16782         (Makefile.am): Build uninorm.h from uninorm.in.h.
16783         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16784         unistdio.h. Add m4/libunistring-base.m4.
16785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16786         (Makefile.am): Build unistdio.h from unistdio.in.h.
16787         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16788         Add m4/libunistring-base.m4.
16789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16790         (Makefile.am): Build unistr.h from unistr.in.h.
16791         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16792         Add m4/libunistring-base.m4.
16793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16794         (Makefile.am): Build unitypes.h from unitypes.in.h.
16795         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16796         Add m4/libunistring-base.m4.
16797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16798         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16799         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16800         uniwidth.h. Add m4/libunistring-base.m4.
16801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16802         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16803         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16804         instead of augmenting lib_SOURCES.
16805         * modules/unicase/empty-suffix-context: Likewise.
16806         * modules/unicase/locale-language: Likewise.
16807         * modules/unicase/tolower: Likewise.
16808         * modules/unicase/totitle: Likewise.
16809         * modules/unicase/toupper: Likewise.
16810         * modules/unicase/u8-casecmp: Likewise.
16811         * modules/unicase/u8-casecoll: Likewise.
16812         * modules/unicase/u8-casefold: Likewise.
16813         * modules/unicase/u8-casexfrm: Likewise.
16814         * modules/unicase/u8-ct-casefold: Likewise.
16815         * modules/unicase/u8-ct-tolower: Likewise.
16816         * modules/unicase/u8-ct-totitle: Likewise.
16817         * modules/unicase/u8-ct-toupper: Likewise.
16818         * modules/unicase/u8-is-cased: Likewise.
16819         * modules/unicase/u8-is-casefolded: Likewise.
16820         * modules/unicase/u8-is-lowercase: Likewise.
16821         * modules/unicase/u8-is-titlecase: Likewise.
16822         * modules/unicase/u8-is-uppercase: Likewise.
16823         * modules/unicase/u8-prefix-context: Likewise.
16824         * modules/unicase/u8-suffix-context: Likewise.
16825         * modules/unicase/u8-tolower: Likewise.
16826         * modules/unicase/u8-totitle: Likewise.
16827         * modules/unicase/u8-toupper: Likewise.
16828         * modules/unicase/u16-casecmp: Likewise.
16829         * modules/unicase/u16-casecoll: Likewise.
16830         * modules/unicase/u16-casefold: Likewise.
16831         * modules/unicase/u16-casexfrm: Likewise.
16832         * modules/unicase/u16-ct-casefold: Likewise.
16833         * modules/unicase/u16-ct-tolower: Likewise.
16834         * modules/unicase/u16-ct-totitle: Likewise.
16835         * modules/unicase/u16-ct-toupper: Likewise.
16836         * modules/unicase/u16-is-cased: Likewise.
16837         * modules/unicase/u16-is-casefolded: Likewise.
16838         * modules/unicase/u16-is-lowercase: Likewise.
16839         * modules/unicase/u16-is-titlecase: Likewise.
16840         * modules/unicase/u16-is-uppercase: Likewise.
16841         * modules/unicase/u16-prefix-context: Likewise.
16842         * modules/unicase/u16-suffix-context: Likewise.
16843         * modules/unicase/u16-tolower: Likewise.
16844         * modules/unicase/u16-totitle: Likewise.
16845         * modules/unicase/u16-toupper: Likewise.
16846         * modules/unicase/u32-casecmp: Likewise.
16847         * modules/unicase/u32-casecoll: Likewise.
16848         * modules/unicase/u32-casefold: Likewise.
16849         * modules/unicase/u32-casexfrm: Likewise.
16850         * modules/unicase/u32-ct-casefold: Likewise.
16851         * modules/unicase/u32-ct-tolower: Likewise.
16852         * modules/unicase/u32-ct-totitle: Likewise.
16853         * modules/unicase/u32-ct-toupper: Likewise.
16854         * modules/unicase/u32-is-cased: Likewise.
16855         * modules/unicase/u32-is-casefolded: Likewise.
16856         * modules/unicase/u32-is-lowercase: Likewise.
16857         * modules/unicase/u32-is-titlecase: Likewise.
16858         * modules/unicase/u32-is-uppercase: Likewise.
16859         * modules/unicase/u32-prefix-context: Likewise.
16860         * modules/unicase/u32-suffix-context: Likewise.
16861         * modules/unicase/u32-tolower: Likewise.
16862         * modules/unicase/u32-totitle: Likewise.
16863         * modules/unicase/u32-toupper: Likewise.
16864         * modules/unicase/ulc-casecmp: Likewise.
16865         * modules/unicase/ulc-casecoll: Likewise.
16866         * modules/unicase/ulc-casexfrm: Likewise.
16867         * modules/uniconv/u8-conv-from-enc: Likewise.
16868         * modules/uniconv/u8-conv-to-enc: Likewise.
16869         * modules/uniconv/u8-strconv-from-enc: Likewise.
16870         * modules/uniconv/u8-strconv-from-locale: Likewise.
16871         * modules/uniconv/u8-strconv-to-enc: Likewise.
16872         * modules/uniconv/u8-strconv-to-locale: Likewise.
16873         * modules/uniconv/u16-conv-from-enc: Likewise.
16874         * modules/uniconv/u16-conv-to-enc: Likewise.
16875         * modules/uniconv/u16-strconv-from-enc: Likewise.
16876         * modules/uniconv/u16-strconv-from-locale: Likewise.
16877         * modules/uniconv/u16-strconv-to-enc: Likewise.
16878         * modules/uniconv/u16-strconv-to-locale: Likewise.
16879         * modules/uniconv/u32-conv-from-enc: Likewise.
16880         * modules/uniconv/u32-conv-to-enc: Likewise.
16881         * modules/uniconv/u32-strconv-from-enc: Likewise.
16882         * modules/uniconv/u32-strconv-from-locale: Likewise.
16883         * modules/uniconv/u32-strconv-to-enc: Likewise.
16884         * modules/uniconv/u32-strconv-to-locale: Likewise.
16885         * modules/unictype/bidicategory-byname: Likewise.
16886         * modules/unictype/bidicategory-name: Likewise.
16887         * modules/unictype/bidicategory-of: Likewise.
16888         * modules/unictype/bidicategory-test: Likewise.
16889         * modules/unictype/block-list: Likewise.
16890         * modules/unictype/block-test: Likewise.
16891         * modules/unictype/category-C: Likewise.
16892         * modules/unictype/category-Cc: Likewise.
16893         * modules/unictype/category-Cf: Likewise.
16894         * modules/unictype/category-Cn: Likewise.
16895         * modules/unictype/category-Co: Likewise.
16896         * modules/unictype/category-Cs: Likewise.
16897         * modules/unictype/category-L: Likewise.
16898         * modules/unictype/category-Ll: Likewise.
16899         * modules/unictype/category-Lm: Likewise.
16900         * modules/unictype/category-Lo: Likewise.
16901         * modules/unictype/category-Lt: Likewise.
16902         * modules/unictype/category-Lu: Likewise.
16903         * modules/unictype/category-M: Likewise.
16904         * modules/unictype/category-Mc: Likewise.
16905         * modules/unictype/category-Me: Likewise.
16906         * modules/unictype/category-Mn: Likewise.
16907         * modules/unictype/category-N: Likewise.
16908         * modules/unictype/category-Nd: Likewise.
16909         * modules/unictype/category-Nl: Likewise.
16910         * modules/unictype/category-No: Likewise.
16911         * modules/unictype/category-P: Likewise.
16912         * modules/unictype/category-Pc: Likewise.
16913         * modules/unictype/category-Pd: Likewise.
16914         * modules/unictype/category-Pe: Likewise.
16915         * modules/unictype/category-Pf: Likewise.
16916         * modules/unictype/category-Pi: Likewise.
16917         * modules/unictype/category-Po: Likewise.
16918         * modules/unictype/category-Ps: Likewise.
16919         * modules/unictype/category-S: Likewise.
16920         * modules/unictype/category-Sc: Likewise.
16921         * modules/unictype/category-Sk: Likewise.
16922         * modules/unictype/category-Sm: Likewise.
16923         * modules/unictype/category-So: Likewise.
16924         * modules/unictype/category-Z: Likewise.
16925         * modules/unictype/category-Zl: Likewise.
16926         * modules/unictype/category-Zp: Likewise.
16927         * modules/unictype/category-Zs: Likewise.
16928         * modules/unictype/category-and: Likewise.
16929         * modules/unictype/category-and-not: Likewise.
16930         * modules/unictype/category-byname: Likewise.
16931         * modules/unictype/category-name: Likewise.
16932         * modules/unictype/category-none: Likewise.
16933         * modules/unictype/category-of: Likewise.
16934         * modules/unictype/category-or: Likewise.
16935         * modules/unictype/category-test: Likewise.
16936         * modules/unictype/combining-class: Likewise.
16937         * modules/unictype/ctype-alnum: Likewise.
16938         * modules/unictype/ctype-alpha: Likewise.
16939         * modules/unictype/ctype-blank: Likewise.
16940         * modules/unictype/ctype-cntrl: Likewise.
16941         * modules/unictype/ctype-digit: Likewise.
16942         * modules/unictype/ctype-graph: Likewise.
16943         * modules/unictype/ctype-lower: Likewise.
16944         * modules/unictype/ctype-print: Likewise.
16945         * modules/unictype/ctype-punct: Likewise.
16946         * modules/unictype/ctype-space: Likewise.
16947         * modules/unictype/ctype-upper: Likewise.
16948         * modules/unictype/ctype-xdigit: Likewise.
16949         * modules/unictype/decimal-digit: Likewise.
16950         * modules/unictype/digit: Likewise.
16951         * modules/unictype/mirror: Likewise.
16952         * modules/unictype/numeric: Likewise.
16953         * modules/unictype/property-alphabetic: Likewise.
16954         * modules/unictype/property-ascii-hex-digit: Likewise.
16955         * modules/unictype/property-bidi-arabic-digit: Likewise.
16956         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16957         * modules/unictype/property-bidi-block-separator: Likewise.
16958         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16959         * modules/unictype/property-bidi-common-separator: Likewise.
16960         * modules/unictype/property-bidi-control: Likewise.
16961         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16962         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16963         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16964         * modules/unictype/property-bidi-european-digit: Likewise.
16965         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16966         * modules/unictype/property-bidi-left-to-right: Likewise.
16967         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16968         * modules/unictype/property-bidi-other-neutral: Likewise.
16969         * modules/unictype/property-bidi-pdf: Likewise.
16970         * modules/unictype/property-bidi-segment-separator: Likewise.
16971         * modules/unictype/property-bidi-whitespace: Likewise.
16972         * modules/unictype/property-byname: Likewise.
16973         * modules/unictype/property-combining: Likewise.
16974         * modules/unictype/property-composite: Likewise.
16975         * modules/unictype/property-currency-symbol: Likewise.
16976         * modules/unictype/property-dash: Likewise.
16977         * modules/unictype/property-decimal-digit: Likewise.
16978         * modules/unictype/property-default-ignorable-code-point: Likewise.
16979         * modules/unictype/property-deprecated: Likewise.
16980         * modules/unictype/property-diacritic: Likewise.
16981         * modules/unictype/property-extender: Likewise.
16982         * modules/unictype/property-format-control: Likewise.
16983         * modules/unictype/property-grapheme-base: Likewise.
16984         * modules/unictype/property-grapheme-extend: Likewise.
16985         * modules/unictype/property-grapheme-link: Likewise.
16986         * modules/unictype/property-hex-digit: Likewise.
16987         * modules/unictype/property-hyphen: Likewise.
16988         * modules/unictype/property-id-continue: Likewise.
16989         * modules/unictype/property-id-start: Likewise.
16990         * modules/unictype/property-ideographic: Likewise.
16991         * modules/unictype/property-ids-binary-operator: Likewise.
16992         * modules/unictype/property-ids-trinary-operator: Likewise.
16993         * modules/unictype/property-ignorable-control: Likewise.
16994         * modules/unictype/property-iso-control: Likewise.
16995         * modules/unictype/property-join-control: Likewise.
16996         * modules/unictype/property-left-of-pair: Likewise.
16997         * modules/unictype/property-line-separator: Likewise.
16998         * modules/unictype/property-logical-order-exception: Likewise.
16999         * modules/unictype/property-lowercase: Likewise.
17000         * modules/unictype/property-math: Likewise.
17001         * modules/unictype/property-non-break: Likewise.
17002         * modules/unictype/property-not-a-character: Likewise.
17003         * modules/unictype/property-numeric: Likewise.
17004         * modules/unictype/property-other-alphabetic: Likewise.
17005         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17006         * modules/unictype/property-other-grapheme-extend: Likewise.
17007         * modules/unictype/property-other-id-continue: Likewise.
17008         * modules/unictype/property-other-id-start: Likewise.
17009         * modules/unictype/property-other-lowercase: Likewise.
17010         * modules/unictype/property-other-math: Likewise.
17011         * modules/unictype/property-other-uppercase: Likewise.
17012         * modules/unictype/property-paired-punctuation: Likewise.
17013         * modules/unictype/property-paragraph-separator: Likewise.
17014         * modules/unictype/property-pattern-syntax: Likewise.
17015         * modules/unictype/property-pattern-white-space: Likewise.
17016         * modules/unictype/property-private-use: Likewise.
17017         * modules/unictype/property-punctuation: Likewise.
17018         * modules/unictype/property-quotation-mark: Likewise.
17019         * modules/unictype/property-radical: Likewise.
17020         * modules/unictype/property-sentence-terminal: Likewise.
17021         * modules/unictype/property-soft-dotted: Likewise.
17022         * modules/unictype/property-space: Likewise.
17023         * modules/unictype/property-terminal-punctuation: Likewise.
17024         * modules/unictype/property-test: Likewise.
17025         * modules/unictype/property-titlecase: Likewise.
17026         * modules/unictype/property-unassigned-code-value: Likewise.
17027         * modules/unictype/property-unified-ideograph: Likewise.
17028         * modules/unictype/property-uppercase: Likewise.
17029         * modules/unictype/property-variation-selector: Likewise.
17030         * modules/unictype/property-white-space: Likewise.
17031         * modules/unictype/property-xid-continue: Likewise.
17032         * modules/unictype/property-xid-start: Likewise.
17033         * modules/unictype/property-zero-width: Likewise.
17034         * modules/unictype/scripts: Likewise.
17035         * modules/unictype/syntax-c-ident: Likewise.
17036         * modules/unictype/syntax-c-whitespace: Likewise.
17037         * modules/unictype/syntax-java-ident: Likewise.
17038         * modules/unictype/syntax-java-whitespace: Likewise.
17039         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17040         * modules/unilbrk/u8-width-linebreaks: Likewise.
17041         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17042         * modules/unilbrk/u16-width-linebreaks: Likewise.
17043         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17044         * modules/unilbrk/u32-width-linebreaks: Likewise.
17045         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17046         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17047         * modules/uniname/uniname: Likewise.
17048         * modules/uninorm/canonical-decomposition: Likewise.
17049         * modules/uninorm/composition: Likewise.
17050         * modules/uninorm/decomposing-form: Likewise.
17051         * modules/uninorm/decomposition: Likewise.
17052         * modules/uninorm/filter: Likewise.
17053         * modules/uninorm/nfc: Likewise.
17054         * modules/uninorm/nfd: Likewise.
17055         * modules/uninorm/nfkc: Likewise.
17056         * modules/uninorm/nfkd: Likewise.
17057         * modules/uninorm/u8-normalize: Likewise.
17058         * modules/uninorm/u8-normcmp: Likewise.
17059         * modules/uninorm/u8-normcoll: Likewise.
17060         * modules/uninorm/u8-normxfrm: Likewise.
17061         * modules/uninorm/u16-normalize: Likewise.
17062         * modules/uninorm/u16-normcmp: Likewise.
17063         * modules/uninorm/u16-normcoll: Likewise.
17064         * modules/uninorm/u16-normxfrm: Likewise.
17065         * modules/uninorm/u32-normalize: Likewise.
17066         * modules/uninorm/u32-normcmp: Likewise.
17067         * modules/uninorm/u32-normcoll: Likewise.
17068         * modules/uninorm/u32-normxfrm: Likewise.
17069         * modules/unistdio/u8-asnprintf: Likewise.
17070         * modules/unistdio/u8-asprintf: Likewise.
17071         * modules/unistdio/u8-snprintf: Likewise.
17072         * modules/unistdio/u8-sprintf: Likewise.
17073         * modules/unistdio/u8-u8-asnprintf: Likewise.
17074         * modules/unistdio/u8-u8-asprintf: Likewise.
17075         * modules/unistdio/u8-u8-snprintf: Likewise.
17076         * modules/unistdio/u8-u8-sprintf: Likewise.
17077         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17078         * modules/unistdio/u8-u8-vasprintf: Likewise.
17079         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17080         * modules/unistdio/u8-u8-vsprintf: Likewise.
17081         * modules/unistdio/u8-vasnprintf: Likewise.
17082         * modules/unistdio/u8-vasprintf: Likewise.
17083         * modules/unistdio/u8-vsnprintf: Likewise.
17084         * modules/unistdio/u8-vsprintf: Likewise.
17085         * modules/unistdio/u16-asnprintf: Likewise.
17086         * modules/unistdio/u16-asprintf: Likewise.
17087         * modules/unistdio/u16-snprintf: Likewise.
17088         * modules/unistdio/u16-sprintf: Likewise.
17089         * modules/unistdio/u16-u16-asnprintf: Likewise.
17090         * modules/unistdio/u16-u16-asprintf: Likewise.
17091         * modules/unistdio/u16-u16-snprintf: Likewise.
17092         * modules/unistdio/u16-u16-sprintf: Likewise.
17093         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17094         * modules/unistdio/u16-u16-vasprintf: Likewise.
17095         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17096         * modules/unistdio/u16-u16-vsprintf: Likewise.
17097         * modules/unistdio/u16-vasnprintf: Likewise.
17098         * modules/unistdio/u16-vasprintf: Likewise.
17099         * modules/unistdio/u16-vsnprintf: Likewise.
17100         * modules/unistdio/u16-vsprintf: Likewise.
17101         * modules/unistdio/u32-asnprintf: Likewise.
17102         * modules/unistdio/u32-asprintf: Likewise.
17103         * modules/unistdio/u32-snprintf: Likewise.
17104         * modules/unistdio/u32-sprintf: Likewise.
17105         * modules/unistdio/u32-u32-asnprintf: Likewise.
17106         * modules/unistdio/u32-u32-asprintf: Likewise.
17107         * modules/unistdio/u32-u32-snprintf: Likewise.
17108         * modules/unistdio/u32-u32-sprintf: Likewise.
17109         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17110         * modules/unistdio/u32-u32-vasprintf: Likewise.
17111         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17112         * modules/unistdio/u32-u32-vsprintf: Likewise.
17113         * modules/unistdio/u32-vasnprintf: Likewise.
17114         * modules/unistdio/u32-vasprintf: Likewise.
17115         * modules/unistdio/u32-vsnprintf: Likewise.
17116         * modules/unistdio/u32-vsprintf: Likewise.
17117         * modules/unistdio/ulc-asnprintf: Likewise.
17118         * modules/unistdio/ulc-asprintf: Likewise.
17119         * modules/unistdio/ulc-fprintf: Likewise.
17120         * modules/unistdio/ulc-snprintf: Likewise.
17121         * modules/unistdio/ulc-sprintf: Likewise.
17122         * modules/unistdio/ulc-vasnprintf: Likewise.
17123         * modules/unistdio/ulc-vasprintf: Likewise.
17124         * modules/unistdio/ulc-vfprintf: Likewise.
17125         * modules/unistdio/ulc-vsnprintf: Likewise.
17126         * modules/unistdio/ulc-vsprintf: Likewise.
17127         * modules/unistr/u8-check: Likewise.
17128         * modules/unistr/u8-chr: Likewise.
17129         * modules/unistr/u8-cmp: Likewise.
17130         * modules/unistr/u8-cmp2: Likewise.
17131         * modules/unistr/u8-cpy: Likewise.
17132         * modules/unistr/u8-cpy-alloc: Likewise.
17133         * modules/unistr/u8-endswith: Likewise.
17134         * modules/unistr/u8-mblen: Likewise.
17135         * modules/unistr/u8-mbsnlen: Likewise.
17136         * modules/unistr/u8-mbtouc: Likewise.
17137         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17138         * modules/unistr/u8-mbtoucr: Likewise.
17139         * modules/unistr/u8-move: Likewise.
17140         * modules/unistr/u8-next: Likewise.
17141         * modules/unistr/u8-prev: Likewise.
17142         * modules/unistr/u8-set: Likewise.
17143         * modules/unistr/u8-startswith: Likewise.
17144         * modules/unistr/u8-stpcpy: Likewise.
17145         * modules/unistr/u8-stpncpy: Likewise.
17146         * modules/unistr/u8-strcat: Likewise.
17147         * modules/unistr/u8-strchr: Likewise.
17148         * modules/unistr/u8-strcmp: Likewise.
17149         * modules/unistr/u8-strcoll: Likewise.
17150         * modules/unistr/u8-strcpy: Likewise.
17151         * modules/unistr/u8-strcspn: Likewise.
17152         * modules/unistr/u8-strdup: Likewise.
17153         * modules/unistr/u8-strlen: Likewise.
17154         * modules/unistr/u8-strmblen: Likewise.
17155         * modules/unistr/u8-strmbtouc: Likewise.
17156         * modules/unistr/u8-strncat: Likewise.
17157         * modules/unistr/u8-strncmp: Likewise.
17158         * modules/unistr/u8-strncpy: Likewise.
17159         * modules/unistr/u8-strnlen: Likewise.
17160         * modules/unistr/u8-strpbrk: Likewise.
17161         * modules/unistr/u8-strrchr: Likewise.
17162         * modules/unistr/u8-strspn: Likewise.
17163         * modules/unistr/u8-strstr: Likewise.
17164         * modules/unistr/u8-strtok: Likewise.
17165         * modules/unistr/u8-to-u16: Likewise.
17166         * modules/unistr/u8-to-u32: Likewise.
17167         * modules/unistr/u8-uctomb: Likewise.
17168         * modules/unistr/u16-check: Likewise.
17169         * modules/unistr/u16-chr: Likewise.
17170         * modules/unistr/u16-cmp: Likewise.
17171         * modules/unistr/u16-cmp2: Likewise.
17172         * modules/unistr/u16-cpy: Likewise.
17173         * modules/unistr/u16-cpy-alloc: Likewise.
17174         * modules/unistr/u16-endswith: Likewise.
17175         * modules/unistr/u16-mblen: Likewise.
17176         * modules/unistr/u16-mbsnlen: Likewise.
17177         * modules/unistr/u16-mbtouc: Likewise.
17178         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17179         * modules/unistr/u16-mbtoucr: Likewise.
17180         * modules/unistr/u16-move: Likewise.
17181         * modules/unistr/u16-next: Likewise.
17182         * modules/unistr/u16-prev: Likewise.
17183         * modules/unistr/u16-set: Likewise.
17184         * modules/unistr/u16-startswith: Likewise.
17185         * modules/unistr/u16-stpcpy: Likewise.
17186         * modules/unistr/u16-stpncpy: Likewise.
17187         * modules/unistr/u16-strcat: Likewise.
17188         * modules/unistr/u16-strchr: Likewise.
17189         * modules/unistr/u16-strcmp: Likewise.
17190         * modules/unistr/u16-strcoll: Likewise.
17191         * modules/unistr/u16-strcpy: Likewise.
17192         * modules/unistr/u16-strcspn: Likewise.
17193         * modules/unistr/u16-strdup: Likewise.
17194         * modules/unistr/u16-strlen: Likewise.
17195         * modules/unistr/u16-strmblen: Likewise.
17196         * modules/unistr/u16-strmbtouc: Likewise.
17197         * modules/unistr/u16-strncat: Likewise.
17198         * modules/unistr/u16-strncmp: Likewise.
17199         * modules/unistr/u16-strncpy: Likewise.
17200         * modules/unistr/u16-strnlen: Likewise.
17201         * modules/unistr/u16-strpbrk: Likewise.
17202         * modules/unistr/u16-strrchr: Likewise.
17203         * modules/unistr/u16-strspn: Likewise.
17204         * modules/unistr/u16-strstr: Likewise.
17205         * modules/unistr/u16-strtok: Likewise.
17206         * modules/unistr/u16-to-u32: Likewise.
17207         * modules/unistr/u16-to-u8: Likewise.
17208         * modules/unistr/u16-uctomb: Likewise.
17209         * modules/unistr/u32-check: Likewise.
17210         * modules/unistr/u32-chr: Likewise.
17211         * modules/unistr/u32-cmp: Likewise.
17212         * modules/unistr/u32-cmp2: Likewise.
17213         * modules/unistr/u32-cpy: Likewise.
17214         * modules/unistr/u32-cpy-alloc: Likewise.
17215         * modules/unistr/u32-endswith: Likewise.
17216         * modules/unistr/u32-mblen: Likewise.
17217         * modules/unistr/u32-mbsnlen: Likewise.
17218         * modules/unistr/u32-mbtouc: Likewise.
17219         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17220         * modules/unistr/u32-mbtoucr: Likewise.
17221         * modules/unistr/u32-move: Likewise.
17222         * modules/unistr/u32-next: Likewise.
17223         * modules/unistr/u32-prev: Likewise.
17224         * modules/unistr/u32-set: Likewise.
17225         * modules/unistr/u32-startswith: Likewise.
17226         * modules/unistr/u32-stpcpy: Likewise.
17227         * modules/unistr/u32-stpncpy: Likewise.
17228         * modules/unistr/u32-strcat: Likewise.
17229         * modules/unistr/u32-strchr: Likewise.
17230         * modules/unistr/u32-strcmp: Likewise.
17231         * modules/unistr/u32-strcoll: Likewise.
17232         * modules/unistr/u32-strcpy: Likewise.
17233         * modules/unistr/u32-strcspn: Likewise.
17234         * modules/unistr/u32-strdup: Likewise.
17235         * modules/unistr/u32-strlen: Likewise.
17236         * modules/unistr/u32-strmblen: Likewise.
17237         * modules/unistr/u32-strmbtouc: Likewise.
17238         * modules/unistr/u32-strncat: Likewise.
17239         * modules/unistr/u32-strncmp: Likewise.
17240         * modules/unistr/u32-strncpy: Likewise.
17241         * modules/unistr/u32-strnlen: Likewise.
17242         * modules/unistr/u32-strpbrk: Likewise.
17243         * modules/unistr/u32-strrchr: Likewise.
17244         * modules/unistr/u32-strspn: Likewise.
17245         * modules/unistr/u32-strstr: Likewise.
17246         * modules/unistr/u32-strtok: Likewise.
17247         * modules/unistr/u32-to-u16: Likewise.
17248         * modules/unistr/u32-to-u8: Likewise.
17249         * modules/unistr/u32-uctomb: Likewise.
17250         * modules/uniwbrk/u8-wordbreaks: Likewise.
17251         * modules/uniwbrk/u16-wordbreaks: Likewise.
17252         * modules/uniwbrk/u32-wordbreaks: Likewise.
17253         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17254         * modules/uniwbrk/wordbreak-property: Likewise.
17255         * modules/uniwidth/u8-strwidth: Likewise.
17256         * modules/uniwidth/u8-width: Likewise.
17257         * modules/uniwidth/u16-strwidth: Likewise.
17258         * modules/uniwidth/u16-width: Likewise.
17259         * modules/uniwidth/u32-strwidth: Likewise.
17260         * modules/uniwidth/u32-width: Likewise.
17261         * modules/uniwidth/width: Likewise.
17262         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17263         with $(LIBUNISTRING).
17264         * modules/unicase/ignorable-tests: Likewise.
17265         * modules/unicase/locale-language-tests: Likewise.
17266         * modules/unicase/tolower-tests: Likewise.
17267         * modules/unicase/totitle-tests: Likewise.
17268         * modules/unicase/toupper-tests: Likewise.
17269         * modules/unicase/u8-casecmp-tests: Likewise.
17270         * modules/unicase/u8-casecoll-tests: Likewise.
17271         * modules/unicase/u8-casefold-tests: Likewise.
17272         * modules/unicase/u8-is-cased-tests: Likewise.
17273         * modules/unicase/u8-is-casefolded-tests: Likewise.
17274         * modules/unicase/u8-is-lowercase-tests: Likewise.
17275         * modules/unicase/u8-is-titlecase-tests: Likewise.
17276         * modules/unicase/u8-is-uppercase-tests: Likewise.
17277         * modules/unicase/u8-tolower-tests: Likewise.
17278         * modules/unicase/u8-totitle-tests: Likewise.
17279         * modules/unicase/u8-toupper-tests: Likewise.
17280         * modules/unicase/u16-casecmp-tests: Likewise.
17281         * modules/unicase/u16-casecoll-tests: Likewise.
17282         * modules/unicase/u16-casefold-tests: Likewise.
17283         * modules/unicase/u16-is-cased-tests: Likewise.
17284         * modules/unicase/u16-is-casefolded-tests: Likewise.
17285         * modules/unicase/u16-is-lowercase-tests: Likewise.
17286         * modules/unicase/u16-is-titlecase-tests: Likewise.
17287         * modules/unicase/u16-is-uppercase-tests: Likewise.
17288         * modules/unicase/u16-tolower-tests: Likewise.
17289         * modules/unicase/u16-totitle-tests: Likewise.
17290         * modules/unicase/u16-toupper-tests: Likewise.
17291         * modules/unicase/u32-casecmp-tests: Likewise.
17292         * modules/unicase/u32-casecoll-tests: Likewise.
17293         * modules/unicase/u32-casefold-tests: Likewise.
17294         * modules/unicase/u32-is-cased-tests: Likewise.
17295         * modules/unicase/u32-is-casefolded-tests: Likewise.
17296         * modules/unicase/u32-is-lowercase-tests: Likewise.
17297         * modules/unicase/u32-is-titlecase-tests: Likewise.
17298         * modules/unicase/u32-is-uppercase-tests: Likewise.
17299         * modules/unicase/u32-tolower-tests: Likewise.
17300         * modules/unicase/u32-totitle-tests: Likewise.
17301         * modules/unicase/u32-toupper-tests: Likewise.
17302         * modules/unicase/ulc-casecmp-tests: Likewise.
17303         * modules/unicase/ulc-casecoll-tests: Likewise.
17304         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17305         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17306         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17307         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17308         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17309         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17310         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17311         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17312         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17313         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17314         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17315         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17316         * modules/unictype/bidicategory-byname-tests: Likewise.
17317         * modules/unictype/bidicategory-name-tests: Likewise.
17318         * modules/unictype/bidicategory-of-tests: Likewise.
17319         * modules/unictype/bidicategory-test-tests: Likewise.
17320         * modules/unictype/block-list-tests: Likewise.
17321         * modules/unictype/block-of-tests: Likewise.
17322         * modules/unictype/block-test-tests: Likewise.
17323         * modules/unictype/category-C-tests: Likewise.
17324         * modules/unictype/category-Cc-tests: Likewise.
17325         * modules/unictype/category-Cf-tests: Likewise.
17326         * modules/unictype/category-Cn-tests: Likewise.
17327         * modules/unictype/category-Co-tests: Likewise.
17328         * modules/unictype/category-Cs-tests: Likewise.
17329         * modules/unictype/category-L-tests: Likewise.
17330         * modules/unictype/category-Ll-tests: Likewise.
17331         * modules/unictype/category-Lm-tests: Likewise.
17332         * modules/unictype/category-Lo-tests: Likewise.
17333         * modules/unictype/category-Lt-tests: Likewise.
17334         * modules/unictype/category-Lu-tests: Likewise.
17335         * modules/unictype/category-M-tests: Likewise.
17336         * modules/unictype/category-Mc-tests: Likewise.
17337         * modules/unictype/category-Me-tests: Likewise.
17338         * modules/unictype/category-Mn-tests: Likewise.
17339         * modules/unictype/category-N-tests: Likewise.
17340         * modules/unictype/category-Nd-tests: Likewise.
17341         * modules/unictype/category-Nl-tests: Likewise.
17342         * modules/unictype/category-No-tests: Likewise.
17343         * modules/unictype/category-P-tests: Likewise.
17344         * modules/unictype/category-Pc-tests: Likewise.
17345         * modules/unictype/category-Pd-tests: Likewise.
17346         * modules/unictype/category-Pe-tests: Likewise.
17347         * modules/unictype/category-Pf-tests: Likewise.
17348         * modules/unictype/category-Pi-tests: Likewise.
17349         * modules/unictype/category-Po-tests: Likewise.
17350         * modules/unictype/category-Ps-tests: Likewise.
17351         * modules/unictype/category-S-tests: Likewise.
17352         * modules/unictype/category-Sc-tests: Likewise.
17353         * modules/unictype/category-Sk-tests: Likewise.
17354         * modules/unictype/category-Sm-tests: Likewise.
17355         * modules/unictype/category-So-tests: Likewise.
17356         * modules/unictype/category-Z-tests: Likewise.
17357         * modules/unictype/category-Zl-tests: Likewise.
17358         * modules/unictype/category-Zp-tests: Likewise.
17359         * modules/unictype/category-Zs-tests: Likewise.
17360         * modules/unictype/category-and-not-tests: Likewise.
17361         * modules/unictype/category-and-tests: Likewise.
17362         * modules/unictype/category-byname-tests: Likewise.
17363         * modules/unictype/category-name-tests: Likewise.
17364         * modules/unictype/category-none-tests: Likewise.
17365         * modules/unictype/category-of-tests: Likewise.
17366         * modules/unictype/category-or-tests: Likewise.
17367         * modules/unictype/category-test-withtable-tests: Likewise.
17368         * modules/unictype/combining-class-tests: Likewise.
17369         * modules/unictype/ctype-alnum-tests: Likewise.
17370         * modules/unictype/ctype-alpha-tests: Likewise.
17371         * modules/unictype/ctype-blank-tests: Likewise.
17372         * modules/unictype/ctype-cntrl-tests: Likewise.
17373         * modules/unictype/ctype-digit-tests: Likewise.
17374         * modules/unictype/ctype-graph-tests: Likewise.
17375         * modules/unictype/ctype-lower-tests: Likewise.
17376         * modules/unictype/ctype-print-tests: Likewise.
17377         * modules/unictype/ctype-punct-tests: Likewise.
17378         * modules/unictype/ctype-space-tests: Likewise.
17379         * modules/unictype/ctype-upper-tests: Likewise.
17380         * modules/unictype/ctype-xdigit-tests: Likewise.
17381         * modules/unictype/decimal-digit-tests: Likewise.
17382         * modules/unictype/digit-tests: Likewise.
17383         * modules/unictype/mirror-tests: Likewise.
17384         * modules/unictype/numeric-tests: Likewise.
17385         * modules/unictype/property-alphabetic-tests: Likewise.
17386         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17387         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17388         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17389         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17390         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17391         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17392         * modules/unictype/property-bidi-control-tests: Likewise.
17393         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17394         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17395         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17396         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17397         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17398         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17399         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17400         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17401         * modules/unictype/property-bidi-pdf-tests: Likewise.
17402         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17403         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17404         * modules/unictype/property-byname-tests: Likewise.
17405         * modules/unictype/property-combining-tests: Likewise.
17406         * modules/unictype/property-composite-tests: Likewise.
17407         * modules/unictype/property-currency-symbol-tests: Likewise.
17408         * modules/unictype/property-dash-tests: Likewise.
17409         * modules/unictype/property-decimal-digit-tests: Likewise.
17410         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17411         * modules/unictype/property-deprecated-tests: Likewise.
17412         * modules/unictype/property-diacritic-tests: Likewise.
17413         * modules/unictype/property-extender-tests: Likewise.
17414         * modules/unictype/property-format-control-tests: Likewise.
17415         * modules/unictype/property-grapheme-base-tests: Likewise.
17416         * modules/unictype/property-grapheme-extend-tests: Likewise.
17417         * modules/unictype/property-grapheme-link-tests: Likewise.
17418         * modules/unictype/property-hex-digit-tests: Likewise.
17419         * modules/unictype/property-hyphen-tests: Likewise.
17420         * modules/unictype/property-id-continue-tests: Likewise.
17421         * modules/unictype/property-id-start-tests: Likewise.
17422         * modules/unictype/property-ideographic-tests: Likewise.
17423         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17424         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17425         * modules/unictype/property-ignorable-control-tests: Likewise.
17426         * modules/unictype/property-iso-control-tests: Likewise.
17427         * modules/unictype/property-join-control-tests: Likewise.
17428         * modules/unictype/property-left-of-pair-tests: Likewise.
17429         * modules/unictype/property-line-separator-tests: Likewise.
17430         * modules/unictype/property-logical-order-exception-tests: Likewise.
17431         * modules/unictype/property-lowercase-tests: Likewise.
17432         * modules/unictype/property-math-tests: Likewise.
17433         * modules/unictype/property-non-break-tests: Likewise.
17434         * modules/unictype/property-not-a-character-tests: Likewise.
17435         * modules/unictype/property-numeric-tests: Likewise.
17436         * modules/unictype/property-other-alphabetic-tests: Likewise.
17437         * modules/unictype/property-other-default-ignorable-code-point-tests:
17438         Likewise.
17439         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17440         * modules/unictype/property-other-id-continue-tests: Likewise.
17441         * modules/unictype/property-other-id-start-tests: Likewise.
17442         * modules/unictype/property-other-lowercase-tests: Likewise.
17443         * modules/unictype/property-other-math-tests: Likewise.
17444         * modules/unictype/property-other-uppercase-tests: Likewise.
17445         * modules/unictype/property-paired-punctuation-tests: Likewise.
17446         * modules/unictype/property-paragraph-separator-tests: Likewise.
17447         * modules/unictype/property-pattern-syntax-tests: Likewise.
17448         * modules/unictype/property-pattern-white-space-tests: Likewise.
17449         * modules/unictype/property-private-use-tests: Likewise.
17450         * modules/unictype/property-punctuation-tests: Likewise.
17451         * modules/unictype/property-quotation-mark-tests: Likewise.
17452         * modules/unictype/property-radical-tests: Likewise.
17453         * modules/unictype/property-sentence-terminal-tests: Likewise.
17454         * modules/unictype/property-soft-dotted-tests: Likewise.
17455         * modules/unictype/property-space-tests: Likewise.
17456         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17457         * modules/unictype/property-test-tests: Likewise.
17458         * modules/unictype/property-titlecase-tests: Likewise.
17459         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17460         * modules/unictype/property-unified-ideograph-tests: Likewise.
17461         * modules/unictype/property-uppercase-tests: Likewise.
17462         * modules/unictype/property-variation-selector-tests: Likewise.
17463         * modules/unictype/property-white-space-tests: Likewise.
17464         * modules/unictype/property-xid-continue-tests: Likewise.
17465         * modules/unictype/property-xid-start-tests: Likewise.
17466         * modules/unictype/property-zero-width-tests: Likewise.
17467         * modules/unictype/scripts-tests: Likewise.
17468         * modules/unictype/syntax-c-ident-tests: Likewise.
17469         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17470         * modules/unictype/syntax-java-ident-tests: Likewise.
17471         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17472         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17473         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17474         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17475         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17476         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17477         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17478         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17479         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17480         * modules/uniname/uniname-tests: Likewise.
17481         * modules/uninorm/canonical-decomposition-tests: Likewise.
17482         * modules/uninorm/compat-decomposition-tests: Likewise.
17483         * modules/uninorm/composition-tests: Likewise.
17484         * modules/uninorm/decomposing-form-tests: Likewise.
17485         * modules/uninorm/decomposition-tests: Likewise.
17486         * modules/uninorm/filter-tests: Likewise.
17487         * modules/uninorm/nfc-tests: Likewise.
17488         * modules/uninorm/nfd-tests: Likewise.
17489         * modules/uninorm/nfkc-tests: Likewise.
17490         * modules/uninorm/nfkd-tests: Likewise.
17491         * modules/uninorm/u8-normcmp-tests: Likewise.
17492         * modules/uninorm/u8-normcoll-tests: Likewise.
17493         * modules/uninorm/u16-normcmp-tests: Likewise.
17494         * modules/uninorm/u16-normcoll-tests: Likewise.
17495         * modules/uninorm/u32-normcmp-tests: Likewise.
17496         * modules/uninorm/u32-normcoll-tests: Likewise.
17497         * modules/unistdio/u8-asnprintf-tests: Likewise.
17498         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17499         * modules/unistdio/u8-vasprintf-tests: Likewise.
17500         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17501         * modules/unistdio/u8-vsprintf-tests: Likewise.
17502         * modules/unistdio/u16-asnprintf-tests: Likewise.
17503         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17504         * modules/unistdio/u16-vasprintf-tests: Likewise.
17505         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17506         * modules/unistdio/u16-vsprintf-tests: Likewise.
17507         * modules/unistdio/u32-asnprintf-tests: Likewise.
17508         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17509         * modules/unistdio/u32-vasprintf-tests: Likewise.
17510         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17511         * modules/unistdio/u32-vsprintf-tests: Likewise.
17512         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17513         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17514         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17515         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17516         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17517         * modules/unistr/u8-check-tests: Likewise.
17518         * modules/unistr/u8-chr-tests: Likewise.
17519         * modules/unistr/u8-cmp-tests: Likewise.
17520         * modules/unistr/u8-cmp2-tests: Likewise.
17521         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17522         * modules/unistr/u8-cpy-tests: Likewise.
17523         * modules/unistr/u8-mblen-tests: Likewise.
17524         * modules/unistr/u8-mbsnlen-tests: Likewise.
17525         * modules/unistr/u8-mbtouc-tests: Likewise.
17526         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17527         * modules/unistr/u8-mbtoucr-tests: Likewise.
17528         * modules/unistr/u8-move-tests: Likewise.
17529         * modules/unistr/u8-next-tests: Likewise.
17530         * modules/unistr/u8-prev-tests: Likewise.
17531         * modules/unistr/u8-set-tests: Likewise.
17532         * modules/unistr/u8-stpcpy-tests: Likewise.
17533         * modules/unistr/u8-stpncpy-tests: Likewise.
17534         * modules/unistr/u8-strcat-tests: Likewise.
17535         * modules/unistr/u8-strcmp-tests: Likewise.
17536         * modules/unistr/u8-strcoll-tests: Likewise.
17537         * modules/unistr/u8-strcpy-tests: Likewise.
17538         * modules/unistr/u8-strdup-tests: Likewise.
17539         * modules/unistr/u8-strlen-tests: Likewise.
17540         * modules/unistr/u8-strmblen-tests: Likewise.
17541         * modules/unistr/u8-strmbtouc-tests: Likewise.
17542         * modules/unistr/u8-strncat-tests: Likewise.
17543         * modules/unistr/u8-strncmp-tests: Likewise.
17544         * modules/unistr/u8-strncpy-tests: Likewise.
17545         * modules/unistr/u8-strnlen-tests: Likewise.
17546         * modules/unistr/u8-to-u16-tests: Likewise.
17547         * modules/unistr/u8-to-u32-tests: Likewise.
17548         * modules/unistr/u8-uctomb-tests: Likewise.
17549         * modules/unistr/u16-check-tests: Likewise.
17550         * modules/unistr/u16-chr-tests: Likewise.
17551         * modules/unistr/u16-cmp-tests: Likewise.
17552         * modules/unistr/u16-cmp2-tests: Likewise.
17553         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17554         * modules/unistr/u16-cpy-tests: Likewise.
17555         * modules/unistr/u16-mblen-tests: Likewise.
17556         * modules/unistr/u16-mbsnlen-tests: Likewise.
17557         * modules/unistr/u16-mbtouc-tests: Likewise.
17558         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17559         * modules/unistr/u16-mbtoucr-tests: Likewise.
17560         * modules/unistr/u16-move-tests: Likewise.
17561         * modules/unistr/u16-next-tests: Likewise.
17562         * modules/unistr/u16-prev-tests: Likewise.
17563         * modules/unistr/u16-set-tests: Likewise.
17564         * modules/unistr/u16-stpcpy-tests: Likewise.
17565         * modules/unistr/u16-stpncpy-tests: Likewise.
17566         * modules/unistr/u16-strcat-tests: Likewise.
17567         * modules/unistr/u16-strcmp-tests: Likewise.
17568         * modules/unistr/u16-strcoll-tests: Likewise.
17569         * modules/unistr/u16-strcpy-tests: Likewise.
17570         * modules/unistr/u16-strdup-tests: Likewise.
17571         * modules/unistr/u16-strlen-tests: Likewise.
17572         * modules/unistr/u16-strmblen-tests: Likewise.
17573         * modules/unistr/u16-strmbtouc-tests: Likewise.
17574         * modules/unistr/u16-strncat-tests: Likewise.
17575         * modules/unistr/u16-strncmp-tests: Likewise.
17576         * modules/unistr/u16-strncpy-tests: Likewise.
17577         * modules/unistr/u16-strnlen-tests: Likewise.
17578         * modules/unistr/u16-to-u32-tests: Likewise.
17579         * modules/unistr/u16-to-u8-tests: Likewise.
17580         * modules/unistr/u16-uctomb-tests: Likewise.
17581         * modules/unistr/u32-check-tests: Likewise.
17582         * modules/unistr/u32-chr-tests: Likewise.
17583         * modules/unistr/u32-cmp-tests: Likewise.
17584         * modules/unistr/u32-cmp2-tests: Likewise.
17585         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17586         * modules/unistr/u32-cpy-tests: Likewise.
17587         * modules/unistr/u32-mblen-tests: Likewise.
17588         * modules/unistr/u32-mbsnlen-tests: Likewise.
17589         * modules/unistr/u32-mbtouc-tests: Likewise.
17590         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17591         * modules/unistr/u32-mbtoucr-tests: Likewise.
17592         * modules/unistr/u32-move-tests: Likewise.
17593         * modules/unistr/u32-next-tests: Likewise.
17594         * modules/unistr/u32-prev-tests: Likewise.
17595         * modules/unistr/u32-set-tests: Likewise.
17596         * modules/unistr/u32-stpcpy-tests: Likewise.
17597         * modules/unistr/u32-stpncpy-tests: Likewise.
17598         * modules/unistr/u32-strcat-tests: Likewise.
17599         * modules/unistr/u32-strcmp-tests: Likewise.
17600         * modules/unistr/u32-strcoll-tests: Likewise.
17601         * modules/unistr/u32-strcpy-tests: Likewise.
17602         * modules/unistr/u32-strdup-tests: Likewise.
17603         * modules/unistr/u32-strlen-tests: Likewise.
17604         * modules/unistr/u32-strmblen-tests: Likewise.
17605         * modules/unistr/u32-strmbtouc-tests: Likewise.
17606         * modules/unistr/u32-strncat-tests: Likewise.
17607         * modules/unistr/u32-strncmp-tests: Likewise.
17608         * modules/unistr/u32-strncpy-tests: Likewise.
17609         * modules/unistr/u32-strnlen-tests: Likewise.
17610         * modules/unistr/u32-to-u16-tests: Likewise.
17611         * modules/unistr/u32-to-u8-tests: Likewise.
17612         * modules/unistr/u32-uctomb-tests: Likewise.
17613         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17614         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17615         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17616         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17617         * modules/uniwidth/u8-strwidth-tests: Likewise.
17618         * modules/uniwidth/u8-width-tests: Likewise.
17619         * modules/uniwidth/u16-strwidth-tests: Likewise.
17620         * modules/uniwidth/u16-width-tests: Likewise.
17621         * modules/uniwidth/u32-strwidth-tests: Likewise.
17622         * modules/uniwidth/u32-width-tests: Likewise.
17623         * modules/uniwidth/width-tests: Likewise.
17624
17625 2010-05-18  Richard Jones  <rjones@redhat.com>
17626
17627         doc: users.txt: list hivex
17628         * users.txt: Add hivex.
17629
17630 2010-05-18  Richard Jones  <rjones@redhat.com>
17631
17632         doc: users.txt: list febootstrap
17633         * users.txt: Add febootstrap.
17634
17635 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17636
17637         bootstrap: fix an error when gnulib is not used as a git submodule
17638         * build-aux/bootstrap (gnulib_path): If its length is zero then
17639         assign "gnulib" to it.
17640         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17641
17642 2010-05-16  Bruno Haible  <bruno@clisp.org>
17643
17644         Avoid autoconf warnings about AM_ICONV.
17645         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17646         2.64.
17647
17648 2010-05-16  Bruno Haible  <bruno@clisp.org>
17649
17650         absolute-header: Make the macro usable in more situations.
17651         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17652         from gl_ABSOLUTE_HEADER.
17653         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17654
17655 2010-05-16  James Youngman  <jay@gnu.org>
17656
17657         doc: update users.txt
17658         * users.txt: Add CSSC.
17659
17660 2010-05-16  Jim Meyering  <meyering@redhat.com>
17661
17662         init.sh: fix an error in the previous change; add more comments
17663         * tests/init.sh: Compare exit code in loop against 9, not 2.
17664         Patch by Bruno Haible.
17665         Make the two tests more similar by adding an empty "then" clause.
17666         Add comments.
17667
17668         init.sh: avoid unnecessary shell re-exec
17669         * tests/init.sh: Improve the re-exec-required check to first test the
17670         current shell.  If it passes the test, do not search for a shell that
17671         does pass, and do not re-exec.  This test is particularly contorted to
17672         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17673         of $(...) evokes a syntax error and causes immediate shell exit with
17674         status 2.  Bruno Haible reported that the re-exec made it impossible
17675         to single-step through any init.sh-using script.
17676
17677 2010-05-16  Bruno Haible  <bruno@clisp.org>
17678
17679         Fix collision between gnulib's and libintl's printf replacements.
17680         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17681         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17682         (printf): When using GNU C, map the __printf__ function to rpl_printf
17683         via __asm__. When not using GNU C, define rpl_printf instead of
17684         __printf__.
17685         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17686         commit.
17687         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17688         commit.
17689         * m4/asm-underscore.m4: New file.
17690         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17691         * modules/stdio (Files): Add m4/asm-underscore.m4.
17692         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17693         Reported by Ben Pfaff.
17694
17695 2010-05-16  Bruno Haible  <bruno@clisp.org>
17696
17697         verify: Avoid skipping the test on openSUSE 11.0.
17698         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17699
17700 2010-05-13  Bruno Haible  <bruno@clisp.org>
17701
17702         Avoid useless warnings from G++.
17703         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17704         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17705         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17706
17707 2010-05-11  Jim Meyering  <meyering@redhat.com>
17708
17709         maint.mk: tweak preceding change
17710         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17711         regexps tighter by anchoring at EOL, and make the new group "shy"
17712         for slightly decreased overhead.
17713
17714 2010-05-11  Eric Blake  <eblake@redhat.com>
17715
17716         maint.mk: gnulib doesn't guarantee NSIG
17717         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17718
17719 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17720
17721         test-pwrite.c: Remove unused variable declaration.
17722         * tests/test-pwrite.c (main): Remove read_buf declaration.
17723
17724         Remove useless test-pwrite.sh file.
17725         * tests/test-pwrite.sh: Delete file.
17726         * modules/pwrite-tests: Remove references.
17727         Reported by Bruno Haible.
17728
17729 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17730
17731         init.sh: fix a typo
17732         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17733
17734 2010-05-10  Jim Meyering  <meyering@redhat.com>
17735
17736         maint.mk: avoid using a temporary file in the always-defined-macros check
17737         * top/maint.mk (.re-defmac): Remove rule.
17738         (gl_trap_): Remove definition.
17739         (sc_prohibit_always-defined_macros): Rewrite not to create and
17740         depend on a temporary file.  Instead, depend on GNU grep's ability
17741         to read a list of regular expressions from stdin when given "-f -".
17742
17743 2010-05-09  Bruno Haible  <bruno@clisp.org>
17744
17745         Update to GNU gettext 0.18, part 1.
17746         * m4/gettext.m4: Update to GNU gettext 0.18.
17747         * m4/intl.m4: Likewise.
17748         * m4/po.m4: Likewise.
17749         * modules/gettext (Files): Add m4/fcntl-o.m4.
17750         (configure.ac): Require gettext infrastructure from version 0.18.
17751
17752 2010-05-09  Jim Meyering  <meyering@redhat.com>
17753
17754         init.sh: enable MALLOC_PERTURB_
17755         * tests/init.sh: Enable glibc's malloc-perturbing option.
17756
17757         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17758         With my recent change in init.sh from the two-line form:
17759             -#   : ${srcdir=.}
17760             -#   . "$srcdir/init.sh"; path_prepend_ .
17761             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17762         I noticed that using the one-line form would cause this test
17763         to fail with a false-positive, or to stop working altogether,
17764         depending on whether help-version changed or all the tests did.
17765         * top/maint.mk (_hv_regex): Remove this definition.
17766         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17767         (_hv_regex_strong): Use a stronger regex to check for conformance.
17768         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17769         Give a separate diagnostic for lack of conforming use.
17770
17771         maint.mk: prohibit definition of symbols defined by gnulib
17772         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17773         definition of symbols defined by gnulib.
17774
17775 2010-05-09  Bruno Haible  <bruno@clisp.org>
17776
17777         acl: Avoid test failure on Cygwin-hosted mingw.
17778         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17779
17780 2010-05-09  Bruno Haible  <bruno@clisp.org>
17781
17782         error: Use system's fcntl function.
17783         * lib/error.c (fcntl): Undefine.
17784
17785 2010-05-09  Jim Meyering  <meyering@redhat.com>
17786
17787         verify: adjust formatting to be more consistent
17788         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17789         argument-list '('s, and after one comma.
17790
17791 2010-05-09  Bruno Haible  <bruno@clisp.org>
17792
17793         error: More reliable output on mingw.
17794         * lib/error.c: Include <windows.h>.
17795         (is_open): New function.
17796         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17797         defined.
17798
17799 2010-05-09  Bruno Haible  <bruno@clisp.org>
17800
17801         vasnprintf: Fix syntax errors in libintl build on mingw.
17802         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17803         pad_ourselves and prec_ourselves after use.
17804
17805 2010-05-08  Bruno Haible  <bruno@clisp.org>
17806
17807         * lib/config.charset: Update comments for Cygwin 1.7.
17808         * lib/localcharset.c: Likewise.
17809
17810 2010-05-07  Jim Meyering  <meyering@redhat.com>
17811
17812         init.sh: improve comments
17813         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17814         . "${srcdir=.}/init.sh"; path_prepend_ .
17815         Add a note about path_prepend_ and the alternative of using
17816         TESTS_ENVIRONMENT.
17817
17818 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17819
17820         exclude: Unescape hashed patterns in wildcard mode.
17821         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17822         to the hash list.
17823         * tests/test-exclude8.sh: New test case.
17824         * modules/exclude-tests: Add new test.
17825
17826 2010-05-05  Eric Blake  <eblake@redhat.com>
17827
17828         verify: automate tests
17829         * modules/verify-tests: New module.
17830         * tests/test-verify.sh: New file.
17831         * tests/test-verify.c: Guard each negative test with a unique id.
17832         Also avoid warning about unused left hand of comma expressions.
17833
17834 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17835
17836         Further improvements to verify.h, suggested by Eric Blake.
17837         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17838         the GL_* versions, to avoid collision with OpenGL.
17839         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17840         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17841         than testing merely whether it's defined.
17842
17843         Modify verify.h to pacify gcc -Wredundant_decls.
17844         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17845         These use the prefix "GL_" since they're likely to be useful elsewhere.
17846         We may need to break them out into a different .h file.
17847         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17848         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17849         of verify_function__.
17850
17851 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17852
17853         Tests for module pwrite.
17854         * modules/pwrite-tests: New file.
17855         * tests/test-pwrite.sh: New file.
17856         * tests/test-pwrite.c: New file.
17857
17858         New module pwrite.
17859         * lib/unistd.in.h (pwrite): New declaration.
17860         * lib/pwrite.c: New file, from glibc with modifications.
17861         * m4/pwrite.m4: New file.
17862         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17863         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17864         REPLACE_PWRITE.
17865         * modules/pwrite: New file.
17866         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17867         REPLACE_PWRITE.
17868         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17869         * doc/posix-functions/pwrite.texi: Mention the new module.
17870
17871 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17872
17873         pread: Update documentation.
17874         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17875
17876 2010-05-04  Eric Blake  <eblake@redhat.com>
17877
17878         docs: update cygwin progress
17879         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17880         this bug.
17881         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17882         Added in cygwin 1.7.2.
17883         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17884         Likewise.
17885         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17886         Likewise.
17887         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17888         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17889         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17890         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17891         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17892         Mention nproc module.
17893         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17894         bug in cygwin 1.7.5 addition.
17895         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17896         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17897         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17898         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17899         1.7.5.
17900         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17901         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17902         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17903         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17904         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17905         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17906         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17907         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17908         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17909         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17910         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17911         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17912         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17913         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17914         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17915         Likewise.
17916         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17917         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17918         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17919         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17920         Likewise.
17921         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17922         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17923         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17924         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17925         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17926         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17927         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17928         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17929         Likewise.
17930         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17931         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17932         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17933         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17934         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17935         Likewise.
17936         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17937         Likewise.
17938         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17939         Likewise.
17940         * doc/glibc-functions/xdrrec_endofrecord.texi
17941         (xdrrec_endofrecord): Likewise.
17942         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17943         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17944         Likewise.
17945         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17946         Likewise.
17947
17948 2010-05-04  Jim Meyering  <meyering@redhat.com>
17949
17950         gendocs.sh: make its "-s FILE" option more useful
17951         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17952         $PACKAGE to reflect the probably-different basename of "FILE".
17953
17954 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17955
17956         bootstrap: don't ignore download_po_files failure
17957         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17958         failure.
17959
17960 2010-05-03  Jim Meyering  <meyering@redhat.com>
17961
17962         maint.mk: allow to pass options to gendocs.sh
17963         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17964         (gendocs_options_): New overridable variable.
17965
17966         gnu-web-doc-update: don't ignore configure or build failure
17967         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17968
17969         announce-gen: backslash-escape '@'s in --help output
17970         * build-aux/announce-gen: Fix syntax errors.
17971
17972         maint.mk, announce-gen: allow project-specific announcement mail headers
17973         * top/maint.mk (translation_project_): Define default.
17974         (announcement_Cc_, announcement_mail_headers_): Likewise.
17975         (announcement): Invoke announce-gen with new --mail-headers option.
17976         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17977
17978         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17979         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17980         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17981         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17982         line in the "err2" output file when running "make check" in verbose
17983         mode (i.e., with set -x enabled).
17984
17985 2010-05-03  Bruno Haible  <bruno@clisp.org>
17986
17987         wctob: Fix for weird platforms.
17988         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17989         argument value.
17990
17991 2010-05-03  Jim Meyering  <meyering@redhat.com>
17992
17993         maint.mk: prohibit unwarranted use of <strings.h>
17994         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17995         strings.h in a file that does not also use strcasecmp, strncasecmp,
17996         ffs or ffsll.
17997
17998         maint.mk: remove obsolete comments
17999         * top/maint.mk: Remove stale, commented-out rules.
18000
18001 2010-05-02  Bruno Haible  <bruno@clisp.org>
18002
18003         wcwidth: Declare also when it's aliased.
18004         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18005         macro.
18006
18007 2010-05-02  Bruno Haible  <bruno@clisp.org>
18008
18009         Fix regression from 2010-04-25.
18010         * gnulib-tool (func_modules_transitive_closure): Check the status of
18011         all modules, not only of the tests that are of the form foo-tests where
18012         foo is a module.
18013
18014 2010-05-02  Bruno Haible  <bruno@clisp.org>
18015
18016         wctob: Work around nasty Cygwin 1.7.2 bug.
18017         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18018         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18019
18020 2010-05-01  Bruno Haible  <bruno@clisp.org>
18021
18022         fpurge: Sharper test.
18023         * tests/test-fpurge.c (main): Add one more ftell check.
18024         * modules/fpurge-tests (Depends-on): Add ftell.
18025         Suggested by Eric Blake.
18026
18027 2010-05-01  Bruno Haible  <bruno@clisp.org>
18028
18029         ftello: Another test.
18030         * tests/test-ftello3.c: New file.
18031         * modules/ftello-tests (Files): Add it.
18032         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18033         MOSTLYCLEANFILES.
18034
18035         ftell: Another test.
18036         * tests/test-ftell3.c: New file.
18037         * modules/ftell-tests (Files): Add it.
18038         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18039         MOSTLYCLEANFILES.
18040
18041 2010-05-01  Bruno Haible  <bruno@clisp.org>
18042
18043         ftell, ftello: Work around Solaris bug.
18044         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18045         * lib/ftello.c: Include stdio-impl.h.
18046         (ftello): On Solaris, when _IOWRT is set, compute the result without
18047         looking at _IOREAD.
18048         * modules/ftello (Files): Add lib/stdio-impl.h.
18049         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18050         * doc/posix-functions/ftello.texi: Likewise.
18051         Reported by Eric Blake.
18052
18053 2010-05-01  Bruno Haible  <bruno@clisp.org>
18054
18055         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18056         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18057         the _IOWRT flag is also set.
18058
18059 2010-05-01  Bruno Haible  <bruno@clisp.org>
18060
18061         Fix doc about a HP-UX stdio bug.
18062         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18063         * doc/posix-functions/ftello.texi: Likewise.
18064
18065 2010-05-01  Bruno Haible  <bruno@clisp.org>
18066
18067         lseek test: Fix failure on Solaris.
18068         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18069         output.
18070
18071 2010-04-30  Jim Meyering  <meyering@redhat.com>
18072
18073         bootstrap: don't ignore failure to generate po*/Makevars
18074         * build-aux/bootstrap (with_gettext): Don't ignore failure
18075         to create po/Makevars or runtime-po/Makevars.
18076
18077 2010-04-29  Eric Blake  <eblake@redhat.com>
18078
18079         headers: relax license to LGPLv2+
18080         * modules/fcntl-h (License): Relax license.
18081         * modules/getopt-posix (License): Likewise.
18082         * modules/locale (License): Likewise.
18083         * modules/math (License): Likewise.
18084         * modules/pty (License): Likewise.
18085         * modules/sched (License): Likewise.
18086         * modules/search (License): Likewise.
18087         * modules/spawn (License): Likewise.
18088         * modules/stdarg (License): Likewise.
18089         * modules/sysexits (License): Likewise.
18090
18091 2010-04-29  Jim Meyering  <meyering@redhat.com>
18092
18093         inttypes: relax license to LGPLv2+
18094         * modules/inttypes (License): Relax license.
18095
18096 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18097
18098         * top/maint.mk (indent): Run twice to produce idempotent results.
18099
18100 2010-04-28  Bruno Haible  <bruno@clisp.org>
18101
18102         getdate: Generate getdate.c in the source directory.
18103         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18104         MOSTLYCLEANFILES.
18105         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18106
18107 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18108
18109         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18110         is not declared as a const *; avoid warnings in that case.
18111
18112 2010-04-28  Eric Blake  <eblake@redhat.com>
18113
18114         canonicalize-lgpl: avoid compiler warning
18115         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18116         declaration' / 'extraneous semicolon' warning with some compilers.
18117         Reported by Andreas Gruenbacher.
18118
18119 2010-04-28  Jim Meyering  <meyering@redhat.com>
18120
18121         init.sh: ensure a more reliable exit status when exiting via trap
18122         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18123         Inspired by patches from Dmitry V. Levin.
18124         Also trap on signal 3 (SIGQUIT).
18125
18126 2010-04-27  Bruno Haible  <bruno@clisp.org>
18127
18128         Update doc about utimes().
18129         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18130         'utimens' module.
18131         Reported by Andreas Gruenbacher <agruen@suse.de>.
18132
18133 2010-04-27  Eric Blake  <eblake@redhat.com>
18134
18135         full-read, full-write: relax license
18136         * modules/full-read (License): Drop to LGPLv2+.
18137         * modules/full-write (License): Likewise.
18138         * modules/safe-read (License): Likewise.
18139         * modules/safe-write (License): Likewise.
18140
18141         pthread: mention library for linking
18142         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18143
18144 2010-04-27  Jim Meyering  <meyering@redhat.com>
18145
18146         maint.mk: fix a bug introduced in last change
18147         * top/maint.mk (gl_assured_headers_): Now that all names are on
18148         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18149         is not anchored to end of word, it should be adequate.
18150
18151         maint.mk: avoid side-effect in latest syntax-check
18152         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18153         to run commands via $(shell...), and hence to incur cost only when
18154         the new rule is actually run.
18155
18156         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18157         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18158         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18159         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18160         (gl_assured_headers_, az_, AZ_): Define.
18161         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18162
18163 2010-04-26  Jim Meyering  <jim@meyering.net>
18164             Bruno Haible  <bruno@clisp.org>
18165
18166         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18167         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18168         Prompted by an exchange with Gilles Espinasse.
18169
18170 2010-04-26  Jim Meyering  <meyering@redhat.com>
18171
18172         git-version-gen: aesthetic tweak
18173         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18174         so that the command remains on a single line.
18175
18176 2010-04-26  Eric Blake  <eblake@redhat.com>
18177
18178         git-version-gen: allow use on EBCDIC hosts
18179         * build-aux/git-version-gen (dirty): Use literal rather than tying
18180         ourselves to ascii.
18181         Reported by Steve Goetze.
18182
18183 2010-04-25  Bruno Haible  <bruno@clisp.org>
18184
18185         netdb: Add support for GNULIB_POSIXCHECK.
18186         * lib/netdb.in.h: Include warn-on-use.h.
18187         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18188         functions are used when GNULIB_POSIXCHECK is defined and the
18189         getaddrinfo module is not in use.
18190         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18191         freeaddrinfo, gai_strerror, getnameinfo are declared.
18192         * modules/netdb (Depends-on): Add warn-on-use.
18193         (Makefile.am): Include warn-on-use.h in netdb.h.
18194
18195 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18196
18197         build: avoid "make check" failure without .git/ directory
18198         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18199         there is no .git/ directory.
18200
18201 2010-04-25  Bruno Haible  <bruno@clisp.org>
18202
18203         ptsname: Fix misuse of ttyname_r.
18204         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18205         of errno.
18206
18207 2010-04-25  Bruno Haible  <bruno@clisp.org>
18208
18209         ttyname_r: Make it work on Solaris 10.
18210         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18211         if the system function has the POSIX declaration. Test whether the
18212         function fails if the buffer is less than 128 bytes large.
18213         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18214         system's ttyname_r function. Provide a reasonably large buffer.
18215         * modules/ttyname_r (Depends-on): Add extensions.
18216         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18217
18218 2010-04-25  Bruno Haible  <bruno@clisp.org>
18219
18220         Use the 'extensions' module for some more functions on Solaris.
18221         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18222         module.
18223         * doc/posix-functions/ctime_r.texi: Likewise.
18224         * doc/posix-functions/getgrgid_r.texi: Likewise.
18225         * doc/posix-functions/getgrnam_r.texi: Likewise.
18226         * doc/posix-functions/getpwnam_r.texi: Likewise.
18227         * doc/posix-functions/getpwuid_r.texi: Likewise.
18228         * doc/posix-functions/readdir_r.texi: Likewise.
18229         * doc/posix-functions/sigwait.texi: Likewise.
18230         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18231         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18232
18233 2010-04-25  Bruno Haible  <bruno@clisp.org>
18234
18235         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18236         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18237         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18238         * lib/ttyname_r.c: Include <limits.h>.
18239         (ttyname_r): Define using the system's ttyname_r function, if it exists
18240         and not on Solaris.
18241         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18242         set.
18243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18244         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18245         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18246         Reported by Simon Josefsson.
18247
18248 2010-04-25  Bruno Haible  <bruno@clisp.org>
18249
18250         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18251         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18252         * doc/posix-functions/ctime_r.texi: Likewise.
18253         * doc/posix-functions/getgrgid_r.texi: Likewise.
18254         * doc/posix-functions/getgrnam_r.texi: Likewise.
18255         * doc/posix-functions/getlogin_r.texi: Likewise.
18256         * doc/posix-functions/getpwnam_r.texi: Likewise.
18257         * doc/posix-functions/getpwuid_r.texi: Likewise.
18258         * doc/posix-functions/readdir_r.texi: Likewise.
18259         * doc/posix-functions/sigwait.texi: Likewise.
18260         * doc/posix-functions/ttyname_r.texi: Likewise.
18261         Reported by Simon Josefsson.
18262
18263 2010-04-25  Bruno Haible  <bruno@clisp.org>
18264
18265         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18266         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18267         also to --create-testdir.
18268         (func_acceptable): Don't consider the status of *-tests modules here.
18269         (func_modules_transitive_closure): Consider it here, before including a
18270         test module.
18271         (func_import, func_create_testdir): Set inc_all_direct_tests,
18272         inc_all_indirect_tests.
18273         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18274         --create-testdir and --create-megatestdir.
18275
18276 2010-04-25  Bruno Haible  <bruno@clisp.org>
18277
18278         gnulib-tool: Add --without-*-tests options.
18279         * gnulib-tool (func_usage): Document the --without-*-tests options.
18280         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18281         excl_unportable_tests): New variables.
18282         Fail if they are specified with --import or --update.
18283         (func_acceptable): Respect the excl_*_tests variables.
18284         (func_import): Set the excl_*_tests variables to empty.
18285
18286 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18287             Bruno Haible  <bruno@clisp.org>
18288
18289         Work around a MacOS X 10.4 bug with openpty.
18290         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18291         * tests/test-openpty.c (main): Close the master side explicitly.
18292
18293 2010-04-25  Bruno Haible  <bruno@clisp.org>
18294
18295         strnlen: Fix a C++ test error on MacOS X and Solaris.
18296         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18297         the function is not declared.
18298         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18299         Simon Josefsson.
18300
18301 2010-04-24  Bruno Haible  <bruno@clisp.org>
18302
18303         Avoid a gcc warning.
18304         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18305         of correct type for %08lx directive.
18306         Reported by Eric Blake.
18307
18308 2010-04-24  Bruno Haible  <bruno@clisp.org>
18309
18310         vasnprintf: Correct errno value in case of out-of-memory.
18311         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18312         or sprintf. Use the errno value from SNPRINTF or sprintf.
18313         Reported by Ian Beckwith <ianb@erislabs.net>.
18314
18315 2010-04-24  Bruno Haible  <bruno@clisp.org>
18316
18317         ansi-c++-opt: Find correct compiler when cross-compiling.
18318         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18319         AC_CHECK_PROGS.
18320         Reported by Simon Josefsson.
18321
18322 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18323
18324         vc-list-files: Add support for subversion
18325         * build-aux/vc-list-files: Use "svn list" to generate the list of
18326         files controlled by subversion.
18327
18328 2010-04-23  Jim Meyering  <meyering@redhat.com>
18329
18330         vc-list-files tests: convert to use init.sh
18331         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18332         path_prepend_.
18333         Use Exit, not exit.
18334         Use skip_ rather than open coding it.
18335         Remove trap set-up and compare definitions.
18336         * tests/test-vc-list-files-git.sh: Likewise.
18337         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18338
18339 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18340
18341         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18342         backup files.
18343
18344 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18345
18346         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18347
18348 2010-04-20  Eric Blake  <eblake@redhat.com>
18349
18350         tests: be robust to ignored SIGPIPE
18351         * tests/test-select-in.sh: Consume all output.
18352         * tests/test-lseek.sh: Check correct exit status, while avoiding
18353         EPIPE.
18354
18355 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18356             Bruno Haible  <bruno@clisp.org>
18357
18358         visibility: Don't use -fvisibility if it leads to a warning.
18359         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18360         yes, don't pretend that visibility works if it leads to a warning.
18361         Reported by Mike Gran <spk121@yahoo.com>.
18362
18363 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18364
18365         * build-aux/bootstrap: Use "git -h" for testing for supported options
18366         instead of "git --help".  The short-form option only shows a summary,
18367         and doesn't layout the full man page.  Grep for the full option name
18368         in the summary, too.
18369
18370 2010-04-19  Bruno Haible  <bruno@clisp.org>
18371
18372         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18373         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18374         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18375         mention of RELOCATABLE_STRIP.
18376         Reported by Sylvain Beucler <beuc@beuc.net>.
18377
18378 2010-04-19  Bruno Haible  <bruno@clisp.org>
18379
18380         * lib/diffseq.h: Fix typo in comment.
18381         Reported by Eric Blake.
18382
18383 2010-04-19  Bruno Haible  <bruno@clisp.org>
18384
18385         ioctl: Move autoconf macro to a .m4 file.
18386         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18387         * modules/ioctl (Files): Add it.
18388         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18389         Reported by Ian Beckwith <ianb@erislabs.net>.
18390
18391 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18392             Bruno Haible  <bruno@clisp.org>
18393
18394         diffseq: Accommodate use-case with abstract arrays.
18395         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18396         is not defined.
18397         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18398         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18399
18400 2010-04-18  Bruno Haible  <bruno@clisp.org>
18401
18402         * doc/posix-headers/stdbool.texi: More precise wording.
18403
18404 2010-04-17  Jim Meyering  <meyering@redhat.com>
18405
18406         maint.mk: use gnu-style indentation in an embedded perl script
18407         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18408         Rename variable: s/two/last_two_bytes/
18409
18410 2010-04-16  Eric Blake  <eblake@redhat.com>
18411
18412         test-stdbool: skip test that fails with Solaris CC
18413         * tests/test-stdbool.c (f): Skip test that causes compilation
18414         error under buggy C++ compiler.
18415         * lib/stdbool.in.h: Document the limitation.
18416         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18417
18418         setenv: allow compilation with C++
18419         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18420         register keyword.
18421
18422         stdint: allow test to pass with C++
18423         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18424
18425         getopt: allow compilation with C++
18426         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18427         struct.
18428         * lib/getopt.c (_getopt_internal_r): Use correct type.
18429         Reported by Dagobert Michelson, via Joel E. Denny.
18430
18431 2010-04-16  Bruno Haible  <bruno@clisp.org>
18432
18433         Override netdb.h always.
18434         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18435         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18436         Reported by Ludovic Courtès <ludo@gnu.org>.
18437
18438 2010-04-15  Bruno Haible  <bruno@clisp.org>
18439
18440         openpty: Fix mistake from 2010-03-21.
18441         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18442         Reported by Simon Josefsson.
18443
18444 2010-04-15  Eric Blake  <eblake@redhat.com>
18445
18446         test-forkpty: fix expected signature
18447         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18448         Reported by Simon Josefsson.
18449
18450 2010-04-15  Jim Meyering  <meyering@redhat.com>
18451
18452         maint.mk: texinfo_suffix_re_: correct the default regexp
18453         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18454
18455         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18456         make it configurable via texinfo_suffix_re_.
18457
18458 2010-04-14  Eric Blake  <eblake@redhat.com>
18459
18460         strtok_r: relax license to LGPLv2+
18461         * modules/strtok_r (License): Relax license.
18462         Reported by Matthias Bolte.
18463
18464 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18465
18466         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18467         version 1.4.4 by default instead of requiring the libgcrypt
18468         version used during build.  This makes it possible to use the
18469         application with older but still binary compatible libgcrypt
18470         versions.
18471
18472 2010-04-13  Eric Blake  <eblake@redhat.com>
18473
18474         getopt-gnu: match recent glibc fixes and posix ruling
18475         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18476         '+' handling, when requesting extensions.
18477         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18478         'W;' handling.
18479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18480         * doc/posix-functions/getopt.texi (getopt): Document this.
18481         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18482         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18483         Likewise.
18484
18485         getopt: merge bug fixes from glibc
18486         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18487         diagnostics.  Honor '+:' correctly.  Reject ';'.
18488
18489         getopt-posix: detect MacOS bug
18490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18491         optind when missing a required argument.
18492         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18493         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18494         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18495         Likewise.
18496
18497         getopt-posix: avoid spurious failure on Solaris
18498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18499         an indicator that setting optind=1 is sufficient for reset.
18500
18501         getopt-posix: avoid spurious failure on FreeBSD
18502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18503         in POSIX mode, since the m4 test uses it.
18504
18505         gnulib-tool: silence warning on BSD sh
18506         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18507
18508 2010-04-13  Jim Meyering  <meyering@redhat.com>
18509
18510         doc: users.txt: GNU patch now uses gnulib
18511         * users.txt: Add patch.
18512
18513 2010-04-12  Jim Meyering  <meyering@redhat.com>
18514
18515         maint.mk: generate more concise timing data for syntax-check rules
18516         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18517         " done" from each line that reports a syntax-check test duration.
18518
18519 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18520
18521         git-version-gen: use "git update-index..." rather than "git status"
18522         * build-aux/git-version-gen: Use git update-index --refresh, not
18523         "git status".  With some versions of git, "git status" would fail
18524         to update the index and result in an unwarranted "-dirty" suffix.
18525
18526 2010-04-11  Jim Meyering  <meyering@redhat.com>
18527
18528         openat: correct formatting (no semantic change)
18529         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18530         Suggested by Bruno Haible.
18531
18532 2010-04-11  Bruno Haible  <bruno@clisp.org>
18533
18534         Stricter declaration checking in testdirs.
18535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18536         If for_tests is true, augment AM_CPPFLAGS to define
18537         GNULIB_STRICT_CHECKING.
18538         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18539         GNULIB_STRICT_CHECKING is defined, verify that the function is
18540         declared.
18541
18542 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18543             Bruno Haible  <bruno@clisp.org>
18544
18545         libunistring: Improve configure output.
18546         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18547         Don't say "consider installing GNU libunistring" when checking again
18548         with libiconv.
18549
18550 2010-04-11  Bruno Haible  <bruno@clisp.org>
18551
18552         libunistring: Correct value of $LTLIBUNISTRING.
18553         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18554         correct the value of $LTLIBUNISTRING.
18555
18556 2010-04-11  Bruno Haible  <bruno@clisp.org>
18557
18558         havelib: Add static libraries to LIBS in the right order.
18559         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18560         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18561
18562 2010-04-11  Bruno Haible  <bruno@clisp.org>
18563
18564         libunistring: Detect libunistring also when it depends on libiconv.
18565         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18566         the second AC_LIB_HAVE_LINKFLAGS invocation.
18567
18568 2010-04-11  James Youngman  <jay@gnu.org>
18569
18570         close-stream: declare local scalars to be "const"
18571         * lib/close-stream.c (close_stream): Make boolean variables const
18572         to document the fact that we set but do not change them.
18573
18574 2010-04-11  Bruno Haible  <bruno@clisp.org>
18575
18576         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18577
18578 2010-04-11  Jim Meyering  <meyering@redhat.com>
18579
18580         maint.mk: don't include dist-check.mk
18581         * top/maint.mk: Remove bogus include directive.
18582
18583         maint.mk: improve empty-line-at-EOF check
18584         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18585         solution, rather than tail+Perl-based one.  The latter would read
18586         a few kilobytes from the end of each file, and did not handle empty
18587         files properly.
18588
18589         maint.mk: print the elapsed time for each syntax-check rule
18590         * top/maint.mk (sc_m_rules_): Save start time in a file.
18591         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18592         (local-check): Interpose the .z rules
18593
18594 2010-04-11  Jim Meyering  <meyering@redhat.com>
18595
18596         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18597         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18598         empty file with one that ends in an empty line.
18599
18600 2010-04-10  Bruno Haible  <bruno@clisp.org>
18601
18602         mkdir: Make it work on mingw64.
18603         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18604         * lib/mkdir.c: Update comment.
18605         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18606
18607 2010-04-10  Bruno Haible  <bruno@clisp.org>
18608
18609         Don't override improved macro from newer autoconf.
18610         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18611         autoconf >= 2.62.
18612         Reported by Joel E. Denny <jdenny@clemson.edu>.
18613
18614 2010-04-10  Jim Meyering  <meyering@redhat.com>
18615
18616         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18617         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18618
18619         maint.mk: correct a diagnostic
18620         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18621         in diagnostic; now use $prohibit.
18622
18623 2010-04-10  Bruno Haible  <address@hidden>
18624
18625         fchownat: Fix a C++ test error on Solaris 8.
18626         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18627         the function does not exist.
18628
18629 2010-04-10  Bruno Haible  <bruno@clisp.org>
18630
18631         vasnprintf: Add more tests.
18632         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18633         (test_function): Test converting an invalid wide string.
18634
18635         vasnprintf: Correct handling of unconvertible wide string arguments.
18636         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18637         VASNPRINTF.
18638         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18639         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18640         smaller than the expected maximum need for the directive. Set errno to
18641         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18642         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18644         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18645         * modules/vasnprintf (Files): Add m4/printf.m4.
18646         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18647
18648 2010-04-10  Bruno Haible  <bruno@clisp.org>
18649
18650         vasnprintf: Fix crash in %ls directive.
18651         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18652         string is passed as argument to %ls, with no precision and no width.
18653         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18654
18655 2010-04-10  Bruno Haible  <bruno@clisp.org>
18656
18657         vasnprintf: Fix multiple test failures on mingw.
18658         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18659         _snprintf, or snwprintf, not _snwprintf.
18660
18661 2010-04-10  Bruno Haible  <bruno@clisp.org>
18662
18663         write: Fix a C++ test error on mingw.
18664         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18665
18666 2010-04-10  Bruno Haible  <bruno@clisp.org>
18667
18668         vasnprintf test: Reduce code duplication.
18669         * tests/test-vasnprintf.c (test_function): New function, extracted from
18670         test_vasnprintf.
18671         (test_vasnprintf, test_asnprintf): Invoke it.
18672
18673 2010-04-10  Bruno Haible  <bruno@clisp.org>
18674
18675         strnlen: Fix warning in C++ mode on MacOS X.
18676         * lib/string.in.h (strnlen): Use the modern idiom.
18677         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18678         defining strnlen as a macro already in <config.h>.
18679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18680         REPLACE_STRNLEN.
18681         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18682         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18683
18684 2010-04-08  James Youngman  <jay@gnu.org>
18685
18686         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18687         the example.
18688
18689 2010-04-09  Jim Meyering  <meyering@redhat.com>
18690
18691         maint.mk: print better diagnostic when there is no $(_hv_file)
18692         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18693         announce that when $(_hv_file) (aka help-version) does not exist.
18694
18695         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18696         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18697         not try to interpret its random input bytes.  Jarno Rajahalme reported
18698         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18699         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18700         (mktempd_): Likewise, just in case.
18701
18702         ftruncate: add two years to projected module removal date: 2012
18703         * m4/ftruncate.m4: Adjust comments.
18704
18705         ftruncate: mark module as obsolete; even MinGW provides it, now
18706         * modules/ftruncate (Status): Obsolete.
18707         (Notice): Say that.
18708         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18709         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18710
18711 2010-04-08  Bruno Haible  <bruno@clisp.org>
18712
18713         Fix side effects from tests-related modules.
18714         * modules/dprintf-posix (Comment): New section.
18715         * modules/fprintf-posix (Comment): Likewise.
18716         * modules/obstack-printf-posix (Comment): Likewise.
18717         * modules/printf-posix (Comment): Likewise.
18718         * modules/snprintf-posix (Comment): Likewise.
18719         * modules/sprintf-posix (Comment): Likewise.
18720         * modules/vasnprintf-posix (Comment): Likewise.
18721         * modules/vasprintf-posix (Comment): Likewise.
18722         * modules/vdprintf-posix (Comment): Likewise.
18723         * modules/vfprintf-posix (Comment): Likewise.
18724         * modules/vprintf-posix (Comment): Likewise.
18725         * modules/vsnprintf-posix (Comment): Likewise.
18726         * modules/vsprintf-posix (Comment): Likewise.
18727         * modules/xprintf-posix (Comment): Likewise.
18728         * modules/xvasprintf-posix (Comment): Likewise.
18729         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18730         * modules/floorf-tests (Depends-on): Likewise.
18731         * modules/round-tests (Depends-on): Likewise.
18732         * modules/roundf-tests (Depends-on): Likewise.
18733         * modules/trunc-tests (Depends-on): Likewise.
18734         * modules/truncf-tests (Depends-on): Likewise.
18735         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18736         'fprintf-posix' module is not present.
18737         * tests/test-floorf2.c (check): Likewise.
18738         * tests/test-trunc2.c (check): Likewise.
18739         * tests/test-truncf2.c (check): Likewise.
18740         * tests/test-round2.c (equal): Likewise.
18741         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18742
18743 2010-04-07  Karl Berry  <karl@gnu.org>
18744
18745         * config/srclist.txt,
18746         * config/srclistvars.sh,
18747         * config/srclist-update: doc fixes.
18748
18749 2010-04-07  Jim Meyering  <meyering@redhat.com>
18750
18751         maint.mk: add a PATH crosschecking syntax-check rule
18752         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18753         Useful if you use a test like the one in help-version (coreutils,
18754         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18755         printed by prog --version.
18756
18757 2010-04-06  Bruno Haible  <bruno@clisp.org>
18758
18759         Fix link error on mingw.
18760         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18761         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18762
18763 2010-04-06  Bruno Haible  <bruno@clisp.org>
18764
18765         Assume rmdir exists.
18766         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18767
18768 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18769
18770         doc: update users.txt
18771         * users.txt: Add gcal.
18772
18773 2010-04-06  Jim Meyering  <meyering@redhat.com>
18774
18775         init.sh: simply unset TMPDIR rather than risking env -i
18776         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18777         although it probably works fine on all Unix-based systems, some
18778         systems (Cygwin?) cannot tolerate a totally cleared environment.
18779         Suggestion from Eric Blake.
18780
18781 2010-04-06  Jim Meyering  <meyering@redhat.com>
18782
18783         init.sh: portability fix: use env's POSIX-specified -i option not -u
18784         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18785         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18786
18787 2010-04-05  Bruno Haible  <bruno@clisp.org>
18788
18789         btowc: Work around Cygwin 1.7.2 bug.
18790         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18791         does not map NUL to 0.
18792         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18793
18794 2010-04-05  Bruno Haible  <bruno@clisp.org>
18795
18796         Make the multithread modules work on Cygwin 1.7.2.
18797         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18798         imported symbols can be declared weak, so that it returns "no" on
18799         Cygwin 1.7.2.
18800
18801 2010-04-05  Bruno Haible  <bruno@clisp.org>
18802
18803         Use the module 'strncat'.
18804         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18805
18806         Tests for module 'strncat'.
18807         * modules/strncat-tests: New file.
18808         * tests/test-strncat.c: New file.
18809
18810         New module 'strncat'.
18811         * lib/string.in.h (strncat): New declaration.
18812         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18813         * m4/strncat.m4: New file, based on m4/memchr.m4.
18814         * modules/strncat: New file.
18815         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18816         is declared.
18817         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18818         REPLACE_STRNCAT.
18819         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18820         REPLACE_STRNCAT.
18821         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18822         module.
18823         * tests/test-string-c++.cc: Check signature of strncat.
18824
18825 2010-04-05  Jim Meyering  <meyering@redhat.com>
18826
18827         xstrtoumax-tests: convert to use init.sh
18828         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18829         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18830         Use Exit, not exit.
18831         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18832
18833         xstrtoimax-tests: convert to use init.sh
18834         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18835         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18836         Use Exit, not exit.
18837         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18838
18839 2010-04-05  Bruno Haible  <bruno@clisp.org>
18840
18841         sys_socket: Avoid #define replacements in C++ mode.
18842         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18843         warning to the function if possible, rather than #defining the symbol
18844         to a dysfunctional alias.
18845
18846 2010-04-05  Bruno Haible  <bruno@clisp.org>
18847
18848         fseeko: Fix C++ test error on mingw.
18849         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18850         gl_FUNC_FSEEKO.
18851         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18852         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18853         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18854         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18855
18856 2010-04-05  Bruno Haible  <bruno@clisp.org>
18857
18858         duplocale: Improve test output.
18859         * tests/test-duplocale.c (main): Print reason for skipped test.
18860
18861 2010-04-05  Bruno Haible  <bruno@clisp.org>
18862
18863         Assume rmdir exists.
18864         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18865         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18866
18867 2010-04-05  Bruno Haible  <bruno@clisp.org>
18868
18869         Fix link error on Solaris 8 with cc.
18870         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18871
18872 2010-04-05  Bruno Haible  <bruno@clisp.org>
18873
18874         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18875         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18876
18877 2010-04-05  Bruno Haible  <bruno@clisp.org>
18878
18879         vasprintf: Update documentation.
18880         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18881
18882 2010-04-05  Bruno Haible  <bruno@clisp.org>
18883
18884         ptsname: Improve test.
18885         * tests/test-ptsname.c (main): Also try the various master names of BSD
18886         systems.
18887
18888 2010-04-05  Bruno Haible  <bruno@clisp.org>
18889
18890         memchr: Avoid a possible C++ test error.
18891         * lib/string.in.h (memchr): Provide declaration if function is missing.
18892         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18893         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18895         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18896
18897 2010-04-05  Bruno Haible  <bruno@clisp.org>
18898
18899         strtok_r: Improve idiom.
18900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18901         AC_LIBOBJ is used.
18902
18903 2010-04-05  Bruno Haible  <bruno@clisp.org>
18904
18905         strdup: Improve idiom.
18906         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18907         AC_LIBOBJ is used.
18908         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18909         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18910         when AC_LIBOBJ is used.
18911
18912 2010-04-05  Bruno Haible  <bruno@clisp.org>
18913
18914         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18915         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18916         don't set REPLACE_MBSINIT to 1.
18917         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18918         don't set REPLACE_MBRTOWC to 1.
18919         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18920         exist, don't set REPLACE_MBSRTOWCS to 1.
18921         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18922         exist, don't set REPLACE_MBSNRTOWCS to 1.
18923         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18924         don't set REPLACE_WCRTOMB to 1.
18925         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18926         exist, don't set REPLACE_WCSRTOMBS to 1.
18927         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18928         exist, don't set REPLACE_WCSNRTOMBS to 1.
18929
18930 2010-04-05  Bruno Haible  <bruno@clisp.org>
18931
18932         ldexpl: Improve idiom.
18933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18934         make sure to set HAVE_DECL_LDEXPL to 0.
18935
18936 2010-04-05  Jim Meyering  <meyering@redhat.com>
18937
18938         xstrtol-tests: convert to use init.sh
18939         * modules/xstrtol-tests (Files): Add tests/init.sh.
18940         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18941         Use Exit, not exit.
18942         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18943
18944         atexit-tests: convert to use init.sh
18945         * modules/atexit-tests (Files): Add tests/init.sh.
18946         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18947         Use Exit, not exit.
18948         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18949
18950         init.sh: fix typo
18951         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18952
18953         init.sh: make it easier for a test script to write to the tty, ...
18954         when using automake's parallel-tests mode.
18955         * tests/init.sh (stderr_fileno_): Define overridable variable.
18956         (warn_): New function, to use it.
18957         (fail_, skip_, framework_failure_): Use warn_.
18958
18959 2010-04-04  Bruno Haible  <bruno@clisp.org>
18960
18961         btowc: Avoid warning.
18962         * lib/btowc.c: Include <stdlib.h>.
18963         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18964
18965 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18966             Bruno Haible  <bruno@clisp.org>
18967
18968         wchar: Port to NetBSD 1.5.
18969         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18970         * lib/wctype.in.h (WEOF): Likewise.
18971
18972 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18973             Bruno Haible  <bruno@clisp.org>
18974
18975         Port extended stdio to NetBSD 1.5.
18976         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18977         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18978         older.
18979
18980 2010-04-04  Bruno Haible  <bruno@clisp.org>
18981
18982         string: Remove unused substitution.
18983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18984         HAVE_DECL_STRERROR.
18985         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18986
18987 2010-04-04  Bruno Haible  <bruno@clisp.org>
18988
18989         strtod: Avoid a possible C++ test error.
18990         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18991         set REPLACE_STRTOD.
18992
18993 2010-04-04  Bruno Haible  <bruno@clisp.org>
18994
18995         strerror: Update documentation.
18996         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18997
18998 2010-04-04  Bruno Haible  <bruno@clisp.org>
18999
19000         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19001         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19002         _GL_CXXALIAS_SYS_CAST.
19003
19004 2010-04-04  Bruno Haible  <bruno@clisp.org>
19005
19006         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19007         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19008         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19009         REPLACE_FREXPL to 1.
19010         * doc/posix-functions/frexpl.texi: Update documentation.
19011
19012 2010-04-04  Bruno Haible  <bruno@clisp.org>
19013
19014         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19015         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19016
19017 2010-04-04  Bruno Haible  <bruno@clisp.org>
19018
19019         Implement nanosleep for native Windows.
19020         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19021
19022 2010-04-04  Bruno Haible  <bruno@clisp.org>
19023
19024         math: Fix some C++ test errors on Solaris 8.
19025         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19026
19027 2010-04-04  Bruno Haible  <bruno@clisp.org>
19028
19029         math: Fix some C++ test errors on Cygwin.
19030         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19031         truncl): Provide declaration if the system does not have it.
19032         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19033         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19034         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19035         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19036         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19037         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19038         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19039         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19040         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19041         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19042         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19043         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19044         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19045         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19046         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19047         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19049         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19050         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19051         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19052         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19053         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19054
19055 2010-04-04  Bruno Haible  <bruno@clisp.org>
19056
19057         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19058         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19059         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19060         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19061         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19062         * m4/isinf.m4 (gl_ISINF): Likewise.
19063         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19064
19065 2010-04-04  Bruno Haible  <bruno@clisp.org>
19066
19067         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19068         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19069
19070 2010-04-04  Bruno Haible  <bruno@clisp.org>
19071
19072         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19073         * modules/tmpfile (configure.ac): Update.
19074
19075         tmpfile: Fix C++ test error on mingw.
19076         * lib/stdio.in.h (tmpfile): New declaration.
19077         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19078         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19079         * modules/tmpfile (Depends-on): Add stdio.
19080         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19081         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19082         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19083         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19084         REPLACE_TMPFILE.
19085         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19086
19087 2010-04-04  Bruno Haible  <bruno@clisp.org>
19088
19089         ioctl: Fix C++ test error on mingw.
19090         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19091         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19092         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19093
19094 2010-04-03  Bruno Haible  <bruno@clisp.org>
19095
19096         wcwidth: Fix C++ test error on mingw.
19097         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19099         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19100
19101 2010-04-03  Bruno Haible  <bruno@clisp.org>
19102
19103         nanosleep: Fix C++ test error on mingw.
19104         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19105         * lib/time.in.h (nanosleep): Use modern idiom.
19106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19107         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19108         REPLACE_NANOSLEEP to 1.
19109         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19110         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19111
19112 2010-04-03  Bruno Haible  <bruno@clisp.org>
19113
19114         strptime: Fix C++ test error on mingw.
19115         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19116         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19117         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19118         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19119         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19120         not REPLACE_STRPTIME.
19121         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19122         REPLACE_STRPTIME.
19123
19124 2010-04-03  Bruno Haible  <bruno@clisp.org>
19125
19126         timegm: Fix C++ test error on mingw.
19127         * lib/time.in.h (timegm): Use modern idiom.
19128         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19129         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19130         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19131         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19132
19133 2010-04-03  Bruno Haible  <bruno@clisp.org>
19134
19135         timegm: Assume declaration if function exists.
19136         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19137         if it exists. Don't clobber ac_cv_func_timegm.
19138
19139 2010-04-03  Bruno Haible  <bruno@clisp.org>
19140
19141         time_r: Fix C++ test error on mingw.
19142         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19143         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19144         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19145         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19146         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19147
19148 2010-04-03  Bruno Haible  <bruno@clisp.org>
19149
19150         time_r: Minor updates.
19151         * modules/time_r (Description): Mention the provided functions.
19152         * lib/time_r.c: Don't include <string.h>.
19153         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19154         * doc/posix-functions/localtime_r.texi: Likewise.
19155
19156 2010-04-03  Bruno Haible  <bruno@clisp.org>
19157
19158         time: Fix regression introduced on 2010-03-08.
19159         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19160         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19161
19162 2010-04-03  Jim Meyering  <meyering@redhat.com>
19163
19164         maint.mk: don't silently disable project-specific syntax-check rules
19165         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19166         that they need to convert their project-specific syntax-check rules
19167         to use the new _sc_search_regexp.
19168
19169 2010-04-03  Bruno Haible  <bruno@clisp.org>
19170
19171         fchdir: Fix regression introduced on 2010-03-08.
19172         * lib/unistd.in.h (fchdir): Fix declaration.
19173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19175         REPLACE_FCHDIR.
19176         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19177         REPLACE_FCHDIR.
19178
19179 2010-04-03  Bruno Haible  <bruno@clisp.org>
19180
19181         getpagesize: Fix C++ test error on mingw.
19182         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19183         system does not declare the function.
19184         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19185         declared.
19186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19187         HAVE_DECL_GETPAGESIZE.
19188         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19189
19190 2010-04-03  Bruno Haible  <bruno@clisp.org>
19191
19192         stdio: Make C++ tests work on mingw.
19193         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19194         does not declare the function.
19195
19196 2010-04-03  Bruno Haible  <bruno@clisp.org>
19197
19198         ftello: Fix C++ test error on mingw.
19199         * lib/stdio.in.h (ftello): Use modern idiom.
19200         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19201         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19202         is missing and that it needs to be replaced.
19203         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19205         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19206
19207 2010-04-03  Bruno Haible  <bruno@clisp.org>
19208
19209         fseeko: Fix C++ test error on mingw.
19210         * lib/stdio.in.h (fseeko): Use modern idiom.
19211         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19212         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19213         is missing and that it needs to be replaced.
19214         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19216         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19217
19218 2010-04-03  Bruno Haible  <bruno@clisp.org>
19219
19220         mkstemp: Fix C++ test error on mingw.
19221         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19222         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19223         function is missing and that it needs to be replaced.
19224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19225         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19226
19227 2010-04-03  Bruno Haible  <bruno@clisp.org>
19228
19229         stpncpy: Fix C++ test error on mingw.
19230         * lib/string.in.h (stpncpy): Use modern idiom.
19231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19232         function is missing and that it needs to be replaced.
19233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19234         REPLACE_STPNCPY.
19235         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19236
19237 2010-04-03  Bruno Haible  <bruno@clisp.org>
19238
19239         sys_stat: Fix C++ test error on mingw.
19240         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19241         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19242
19243 2010-04-03  Bruno Haible  <bruno@clisp.org>
19244
19245         pty: Update doc.
19246         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19247
19248 2010-04-03  Bruno Haible  <bruno@clisp.org>
19249
19250         unistd: Fix C++ test error on mingw.
19251         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19252
19253 2010-04-03  Bruno Haible  <bruno@clisp.org>
19254
19255         Update doc regarding mingw.
19256         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19257         * doc/glibc-functions/login_tty.texi: Likewise.
19258         * doc/glibc-functions/forkpty.texi: Likewise.
19259
19260 2010-04-03  Bruno Haible  <bruno@clisp.org>
19261
19262         stdlib: Avoid compilation failure of c-strtold on mingw.
19263         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19264
19265 2010-04-03  Bruno Haible  <bruno@clisp.org>
19266
19267         locale: Make C++ tests work on Cygwin and mingw.
19268         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19269         cannot provide the function.
19270         Reported by Simon Josefsson.
19271
19272 2010-04-03  Bruno Haible  <bruno@clisp.org>
19273
19274         localename: Port to MacOS X 10.6.
19275         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19276         memory layout of the locales in MacOS X 10.6 as well.
19277         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19278
19279 2010-04-02  Bruno Haible  <bruno@clisp.org>
19280
19281         gnulib-tool: Ensure that long-running tests are executed last.
19282         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19283         running tests after the one for the other tests.
19284
19285 2010-04-02  Bruno Haible  <bruno@clisp.org>
19286
19287         gnulib-tool: Ensure the tests in the main directory are executed first.
19288         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19289         start with the current directory.
19290
19291 2010-04-02  Bruno Haible  <bruno@clisp.org>
19292
19293         Tests for module 'havelib', moved here from GNU gettext.
19294         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19295         modifications.
19296         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19297         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19298         with modifications.
19299         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19300         modifications.
19301         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19302         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19303         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19304         with modifications.
19305         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19306         with modifications.
19307         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19308         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19309         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19310         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19311         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19312         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19313         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19314         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19315         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19316         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19317         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19318         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19319         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19320         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19321         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19322         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19323         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19324         with modifications.
19325         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19326         with modifications.
19327         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19328         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19329         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19330         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19331         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19332         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19333         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19334         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19335         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19336         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19337         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19338         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19339         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19340         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19341         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19342         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19343         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19344         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19345         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19346         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19347         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19348         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19349         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19350         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19351         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19352         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19353         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19354         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19355         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19356         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19357         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19358         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19359         * tests/havelib/rpathx/rpathx.c: New file, from
19360         gettext/autoconf-lib-link.
19361         * tests/havelib/rpathx/Makefile.am: New file, from
19362         gettext/autoconf-lib-link.
19363         * tests/havelib/rpathx/configure.ac: New file, from
19364         gettext/autoconf-lib-link with modifications.
19365         * tests/havelib/rpathy/rpathy.c: New file, from
19366         gettext/autoconf-lib-link.
19367         * tests/havelib/rpathy/Makefile.am: New file, from
19368         gettext/autoconf-lib-link.
19369         * tests/havelib/rpathy/configure.ac: New file, from
19370         gettext/autoconf-lib-link with modifications.
19371         * tests/havelib/rpathz/rpathz.c: New file, from
19372         gettext/autoconf-lib-link.
19373         * tests/havelib/rpathz/Makefile.am: New file, from
19374         gettext/autoconf-lib-link.
19375         * tests/havelib/rpathz/configure.ac: New file, from
19376         gettext/autoconf-lib-link with modifications.
19377         * tests/havelib/rpathlx/usex.c: New file, from
19378         gettext/autoconf-lib-link.
19379         * tests/havelib/rpathlx/Makefile.am: New file, from
19380         gettext/autoconf-lib-link.
19381         * tests/havelib/rpathlx/configure.ac: New file, from
19382         gettext/autoconf-lib-link with modifications.
19383         * tests/havelib/rpathly/usey.c: New file, from
19384         gettext/autoconf-lib-link.
19385         * tests/havelib/rpathly/Makefile.am: New file, from
19386         gettext/autoconf-lib-link.
19387         * tests/havelib/rpathly/configure.ac: New file, from
19388         gettext/autoconf-lib-link with modifications.
19389         * tests/havelib/rpathlz/usez.c: New file, from
19390         gettext/autoconf-lib-link.
19391         * tests/havelib/rpathlz/Makefile.am: New file, from
19392         gettext/autoconf-lib-link.
19393         * tests/havelib/rpathlz/configure.ac: New file, from
19394         gettext/autoconf-lib-link with modifications.
19395         * tests/havelib/rpathlyx/usey.c: New file, from
19396         gettext/autoconf-lib-link.
19397         * tests/havelib/rpathlyx/Makefile.am: New file, from
19398         gettext/autoconf-lib-link.
19399         * tests/havelib/rpathlyx/configure.ac: New file, from
19400         gettext/autoconf-lib-link with modifications.
19401         * tests/havelib/rpathlzyx/usez.c: New file, from
19402         gettext/autoconf-lib-link.
19403         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19404         gettext/autoconf-lib-link.
19405         * tests/havelib/rpathlzyx/configure.ac: New file, from
19406         gettext/autoconf-lib-link with modifications.
19407         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19408         with modifications.
19409
19410 2010-04-02  Bruno Haible  <bruno@clisp.org>
19411
19412         gnulib-tool: Create distributed built sources also for the tests.
19413         * gnulib-tool (func_create_testdir): Also generate distributed built
19414         sources in the tests directory.
19415
19416 2010-04-02  Bruno Haible  <bruno@clisp.org>
19417
19418         gnulib-tool: Obey user's environment variables.
19419         * gnulib-tool (func_create_testdir): When creating built sources,
19420         respect the environment variables for autoconf, automake, etc. given by
19421         the user.
19422
19423 2010-04-02  Bruno Haible  <bruno@clisp.org>
19424
19425         gnulib-tool: Provide the value of --m4-base to modules.
19426         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19427         of gl_m4_base.
19428
19429 2010-04-02  Eric Blake  <eblake@redhat.com>
19430
19431         maint.mk: fix some fallout
19432         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19433         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19434
19435 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19436
19437         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19438         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19439         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19440         (sc_cast_of_x_alloc_return_value): Likewise.
19441         (sc_cast_of_alloca_return_value): Likewise.
19442         (sc_space_tab): Likewise.
19443         (sc_prohibit_atoi_atof): Likewise.
19444         (sc_prohibit_magic_number_exit): Likewise.
19445         (sc_error_exit_success): Likewise.
19446         (sc_file_system): Likewise.
19447         (sc_prohibit_have_config_h): Likewise.
19448         (sc_require_config_h): Likewise.
19449         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19450         (sc_obsolete_symbols): Likewise.
19451         (sc_changelog): Likewise.
19452         (sc_program_name): Likewise.
19453         (sc_the_the): Likewise.
19454         (sc_trailing_blank): Likewise.
19455         (sc_two_space_separator_in_usage): Likewise.
19456         (sc_useless_cpp_parens): Likewise.
19457         (sc_GPL_version): Likewise.
19458         (sc_GFDL_version): Likewise.
19459         (sc_texinfo_acronym): Likewise.
19460         (sc_prohibit_cvs_keyword): Likewise.
19461         (sc_prohibit_stat_st_blocks): Likewise.
19462         (sc_prohibit_S_IS_definition): Likewise.
19463         (sc_redundant_const): Likewise.
19464         (sc_makefile_TAB_only_indentation): Likewise.
19465         (sc_m4_quote_check): Likewise.
19466         (sc_makefile_path_separator_check): Likewise.
19467         (sc_copyright_check): Likewise.
19468         (sc_Wundef_boolean): Likewise.
19469         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19470
19471         maint.mk: match 0 or more whitespace-before-function-call '('
19472         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19473         that have zero or two-and-more spaces between the function name
19474         and the open parenthesis.
19475         (sc_error_message_warn_fatal): Likewise.
19476         (sc_error_message_uppercase): Likewise.
19477         (sc_error_message_period): Likewise.
19478
19479 2010-03-31  Eric Blake  <eblake@redhat.com>
19480
19481         maint.mk: check for [ as well as test
19482         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19483         Based on a libvirt report by Matthias Bolte.
19484
19485         gnumakefile: don't squelch _version output
19486         * top/GNUmakefile (_version): Create one-shot dependency rather
19487         than using $(shell) when version must be regenerated.
19488         (_autoreconf): Run verbosely, by default.
19489
19490         sys_time: avoid compiler warnings
19491         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19492         unconditional, fixing regression from 2010-03-29.
19493         Reported by Simon Josefsson.
19494
19495 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19496
19497         maint.mk: s/_header_without_use/_sc_header_without_use/
19498         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19499         (sc_prohibit_assert_without_use): Use the new name.
19500         (sc_prohibit_close_stream_without_use): Likewise.
19501         (sc_prohibit_getopt_without_use): Likewise.
19502         (sc_prohibit_quotearg_without_use): Likewise.
19503         (sc_prohibit_quote_without_use): Likewise.
19504         (sc_prohibit_long_options_without_use): Likewise.
19505         (sc_prohibit_inttostr_without_use): Likewise.
19506         (sc_prohibit_ignore_value_without_use): Likewise.
19507         (sc_prohibit_error_without_use): Likewise.
19508         (sc_prohibit_xalloc_without_use): Likewise.
19509         (sc_prohibit_hash_without_use): Likewise.
19510         (sc_prohibit_hash_pjw_without_use): Likewise.
19511         (sc_prohibit_safe_read_without_use): Likewise.
19512         (sc_prohibit_argmatch_without_use): Likewise.
19513         (sc_prohibit_canonicalize_without_use): Likewise.
19514         (sc_prohibit_root_dev_ino_without_use): Likewise.
19515         (sc_prohibit_openat_without_use): Likewise.
19516         (sc_prohibit_c_ctype_without_use): Likewise.
19517         (sc_prohibit_signal_without_use): Likewise.
19518         (sc_prohibit_intprops_without_use): Likewise.
19519
19520 2010-03-30  Eric Blake  <eblake@redhat.com>
19521
19522         maint: improve module indicators
19523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19524         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19525         columns, and avoid extra macro expansion.
19526
19527         fdopendir: work around FreeBSD bug
19528         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19529         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19530         * modules/dirent (Makefile.am): Substitute it.
19531         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19532         declaration.
19533         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19534         fix.
19535         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19536
19537 2010-03-29  Bruno Haible  <bruno@clisp.org>
19538
19539         Emit #pragma system_header after the inclusion guard, not before.
19540         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19541         guard that spans the entire file, not before. This enables an
19542         optimization in GCC's preprocessor.
19543         * lib/ctype.in.h: Likewise.
19544         * lib/dirent.in.h: Likewise.
19545         * lib/errno.in.h: Likewise.
19546         * lib/float.in.h: Likewise.
19547         * lib/getopt.in.h: Likewise.
19548         * lib/iconv.in.h: Likewise.
19549         * lib/langinfo.in.h: Likewise.
19550         * lib/locale.in.h: Likewise.
19551         * lib/math.in.h: Likewise.
19552         * lib/netdb.in.h: Likewise.
19553         * lib/netinet_in.in.h: Likewise.
19554         * lib/pty.in.h: Likewise.
19555         * lib/sched.in.h: Likewise.
19556         * lib/se-selinux.in.h: Likewise.
19557         * lib/search.in.h: Likewise.
19558         * lib/spawn.in.h: Likewise.
19559         * lib/stdarg.in.h: Likewise.
19560         * lib/stdint.in.h: Likewise.
19561         * lib/string.in.h: Likewise.
19562         * lib/strings.in.h: Likewise.
19563         * lib/sys_file.in.h: Likewise.
19564         * lib/sys_ioctl.in.h: Likewise.
19565         * lib/sys_time.in.h: Likewise.
19566         * lib/sys_times.in.h: Likewise.
19567         * lib/sys_utsname.in.h: Likewise.
19568         * lib/sys_wait.in.h: Likewise.
19569         * lib/sysexits.in.h: Likewise.
19570         * lib/wctype.in.h: Likewise.
19571
19572 2010-03-28  James Youngman  <jay@gnu.org>
19573
19574         save-cwd: don't leak a file descriptor when the caller execs.
19575         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19576         saved file descriptor.
19577         * modules/save-cwd (Depends-on): Depend on cloexec.
19578
19579 2010-03-29  Bruno Haible  <bruno@clisp.org>
19580
19581         Remove vestiges of fts-lgpl module.
19582         * lib/fts_.h: Assume GNULIB_FTS is 1.
19583         * lib/fts.c: Likewise.
19584         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19585
19586 2010-03-28  Bruno Haible  <bruno@clisp.org>
19587
19588         Fix definition of tests witness macro.
19589         * gnulib-tool (func_import): Fix definition of witness macro.
19590
19591 2010-03-28  Bruno Haible  <bruno@clisp.org>
19592
19593         Fix ioctl's protoype on glibc systems.
19594         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19595         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19596         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19597         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19598         signature. If not, arrange to replace the ioctl function.
19599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19600         REPLACE_IOCTL.
19601         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19602         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19603         Reported by Ludovic Courtès <ludo@gnu.org>.
19604
19605 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19606
19607         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19608         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19609         made it so grep -r --include=GLOB* ... did not work.
19610
19611 2010-03-26  Jim Meyering  <meyering@redhat.com>
19612             Eric Blake  <eblake@redhat.com>
19613
19614         maint.mk: prohibit use of test's -o and -a operators
19615         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19616
19617 2010-03-28  Bruno Haible  <bruno@clisp.org>
19618
19619         Remove unused GNULIB_XYZ macro definitions.
19620         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19621         invocation.
19622
19623 2010-03-28  Bruno Haible  <bruno@clisp.org>
19624
19625         Mark privileged tests modules.
19626         * modules/idpriv-drop-tests (Status): New section.
19627         * modules/idpriv-droptemp-tests (Status): New section.
19628
19629 2010-03-28  Bruno Haible  <bruno@clisp.org>
19630
19631         Split C++ tests into separate tests modules.
19632         * modules/dirent-c++-tests: New file, extracted from
19633         modules/dirent-tests.
19634         * modules/dirent-tests: Depend on it.
19635         * modules/fcntl-h-c++-tests: New file, extracted from
19636         modules/fcntl-h-tests.
19637         * modules/fcntl-h-tests: Depend on it.
19638         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19639         * modules/glob-tests: Depend on it.
19640         * modules/iconv-h-c++-tests: New file, extracted from
19641         modules/iconv-h-tests.
19642         * modules/iconv-h-tests: Depend on it.
19643         * modules/langinfo-c++-tests: New file, extracted from
19644         modules/langinfo-tests.
19645         * modules/langinfo-tests: Depend on it.
19646         * modules/locale-c++-tests: New file, extracted from
19647         modules/locale-tests.
19648         * modules/locale-tests: Depend on it.
19649         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19650         * modules/math-tests: Depend on it.
19651         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19652         * modules/pty-tests: Depend on it.
19653         * modules/search-c++-tests: New file, extracted from
19654         modules/search-tests.
19655         * modules/search-tests: Depend on it.
19656         * modules/signal-c++-tests: New file, extracted from
19657         modules/signal-tests.
19658         * modules/signal-tests: Depend on it.
19659         * modules/spawn-c++-tests: New file, extracted from
19660         modules/spawn-tests.
19661         * modules/spawn-tests: Depend on it.
19662         * modules/stdio-c++-tests: New file, extracted from
19663         modules/stdio-tests.
19664         * modules/stdio-tests: Depend on it.
19665         * modules/stdlib-c++-tests: New file, extracted from
19666         modules/stdlib-tests.
19667         * modules/stdlib-tests: Depend on it.
19668         * modules/string-c++-tests: New file, extracted from
19669         modules/string-tests.
19670         * modules/string-tests: Depend on it.
19671         * modules/sys_ioctl-c++-tests: New file, extracted from
19672         modules/sys_ioctl-tests.
19673         * modules/sys_ioctl-tests: Depend on it.
19674         * modules/sys_select-c++-tests: New file, extracted from
19675         modules/sys_select-tests.
19676         * modules/sys_select-tests: Depend on it.
19677         * modules/sys_socket-c++-tests: New file, extracted from
19678         modules/sys_socket-tests.
19679         * modules/sys_socket-tests: Depend on it.
19680         * modules/sys_stat-c++-tests: New file, extracted from
19681         modules/sys_stat-tests.
19682         * modules/sys_stat-tests: Depend on it.
19683         * modules/sys_time-c++-tests: New file, extracted from
19684         modules/sys_time-tests.
19685         * modules/sys_time-tests: Depend on it.
19686         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19687         * modules/time-tests: Depend on it.
19688         * modules/unistd-c++-tests: New file, extracted from
19689         modules/unistd-tests.
19690         * modules/unistd-tests: Depend on it.
19691         * modules/wchar-c++-tests: New file, extracted from
19692         modules/wchar-tests.
19693         * modules/wchar-tests: Depend on it.
19694         * modules/wctype-c++-tests: New file, extracted from
19695         modules/wctype-tests.
19696         * modules/wctype-tests: Depend on it.
19697         Reported by Simon Josefsson.
19698
19699 2010-03-28  Bruno Haible  <bruno@clisp.org>
19700
19701         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19702         * gnulib-tool (func_exists_module): New function, extracted from
19703         func_verify_module.
19704         (func_verify_module): Use it.
19705         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19706         'foo' only if 'foo' exists.
19707         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19708         module.
19709
19710 2010-03-28  Bruno Haible  <bruno@clisp.org>
19711
19712         gnulib-tool: Add support for special categories of tests.
19713         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19714         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19715         (func_usage): Document them.
19716         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19717         inc_unportable_tests, inc_all_tests): New variables.
19718         (func_acceptable): Consider these variables.
19719         (func_modules_transitive_closure): Make it work when the 'Status' field
19720         consists of multiple words.
19721         (func_import): Store and restore the values of inc_cxx_tests,
19722         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19723         inc_all_tests in gnulib-comp.m4.
19724         (func_create_testdir): Set inc_all_tests to true.
19725         * doc/gnulib.texi (Extra tests modules): New section.
19726         Suggested by Jim Meyering.
19727
19728 2010-03-28  Bruno Haible  <bruno@clisp.org>
19729
19730         ansi-c++-opt: Allow turning off the C++ build by default.
19731         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19732         gl_CXX_CHOICE_DEFAULT_NO is defined.
19733         Requested by Eric Blake.
19734
19735 2010-03-28  Bruno Haible  <bruno@clisp.org>
19736
19737         unistd: Avoid #define replacements in C++ mode.
19738         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19739         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19740         setsockopt, shutdown, select): In C++, attach a warning to the function
19741         if possible, rather than #defining the symbol to a dysfunctional alias.
19742         Reported by John W. Eaton <jwe@gnu.org>.
19743
19744 2010-03-28  Bruno Haible  <bruno@clisp.org>
19745
19746         Fix link errors on mingw.
19747         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19748         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19749         $(LIBSOCKET).
19750         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19751         $(LIBSOCKET).
19752
19753 2010-03-28  Bruno Haible  <bruno@clisp.org>
19754             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19755
19756         lib-ignore: Determine different options for different compilers.
19757         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19758         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19759         Add comments.
19760         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19761         * NEWS: Mention the change.
19762
19763 2010-03-27  Bruno Haible  <bruno@clisp.org>
19764
19765         Remove unused GNULIB_XYZ macro definitions.
19766         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19767         * modules/fseek (configure.ac): Likewise.
19768         * modules/ioctl (configure.ac): Likewise.
19769         * modules/open (configure.ac): Likewise.
19770         * modules/stdlib-safer (configure.ac): Likewise.
19771
19772 2010-03-27  Bruno Haible  <bruno@clisp.org>
19773
19774         Add a remark about certain modules.
19775         * modules/malloc (Comment): New section.
19776         * modules/realloc (Comment): Likewise.
19777         * modules/sigpipe (Comment): Likewise.
19778
19779 2010-03-27  Bruno Haible  <bruno@clisp.org>
19780
19781         Resolve conflict between the two kinds of module indicators.
19782         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19783         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19784         * modules/canonicalize (configure.ac): Invoke
19785         gl_MODULE_INDICATOR_FOR_TESTS.
19786         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19787         GNULIB_XYZ.
19788         * tests/test-dirent-c++.cc: Likewise.
19789         * tests/test-dirent-safer.c: Likewise.
19790         * tests/test-dup2.c: Likewise.
19791         * tests/test-fchdir.c: Likewise.
19792         * tests/test-fcntl-h-c++.cc: Likewise.
19793         * tests/test-getopt.c: Likewise.
19794         * tests/test-getopt.h: Likewise.
19795         * tests/test-langinfo-c++.cc: Likewise.
19796         * tests/test-locale-c++.cc: Likewise.
19797         * tests/test-math-c++.cc: Likewise.
19798         * tests/test-pty-c++.cc: Likewise.
19799         * tests/test-search-c++.cc: Likewise.
19800         * tests/test-signal-c++.cc: Likewise.
19801         * tests/test-spawn-c++.cc: Likewise.
19802         * tests/test-stdio-c++.cc: Likewise.
19803         * tests/test-stdlib-c++.cc: Likewise.
19804         * tests/test-string-c++.cc: Likewise.
19805         * tests/test-sys_ioctl-c++.cc: Likewise.
19806         * tests/test-sys_select-c++.cc: Likewise.
19807         * tests/test-sys_socket-c++.cc: Likewise.
19808         * tests/test-sys_stat-c++.cc: Likewise.
19809         * tests/test-sys_time-c++.cc: Likewise.
19810         * tests/test-time-c++.cc: Likewise.
19811         * tests/test-unistd-c++.cc: Likewise.
19812         * tests/test-wchar-c++.cc: Likewise.
19813         * tests/uninorm/test-u8-nfc.c: Likewise.
19814         * tests/uninorm/test-u8-nfd.c: Likewise.
19815         * tests/uninorm/test-u8-nfkc.c: Likewise.
19816         * tests/uninorm/test-u8-nfkd.c: Likewise.
19817         * tests/uninorm/test-u16-nfc.c: Likewise.
19818         * tests/uninorm/test-u16-nfd.c: Likewise.
19819         * tests/uninorm/test-u16-nfkc.c: Likewise.
19820         * tests/uninorm/test-u16-nfkd.c: Likewise.
19821         * tests/uninorm/test-u32-nfc.c: Likewise.
19822         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19823         * tests/uninorm/test-u32-nfd.c: Likewise.
19824         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19825         * tests/uninorm/test-u32-nfkc.c: Likewise.
19826         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19827         * tests/uninorm/test-u32-nfkd.c: Likewise.
19828         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19829         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19830
19831 2010-03-27  Bruno Haible  <bruno@clisp.org>
19832
19833         Distinguish two kinds of module indicators.
19834         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19835         gl_MODULE_INDICATOR.
19836         (gl_MODULE_INDICATOR): New macro.
19837         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19838         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19839         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19840         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19841         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19842         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19843         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19844         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19845         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19846         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19847         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19848         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19851         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19853         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19854         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19855         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19856         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19857         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19858         * modules/cloexec (configure.ac): Likewise.
19859         * modules/getopt-gnu (configure.ac): Likewise.
19860         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19861         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19862         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19863         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19864
19865 2010-03-27  Bruno Haible  <bruno@clisp.org>
19866
19867         New module description field 'Comment'.
19868         * gnulib-tool: New option --extract-comment.
19869         (func_usage): Document it.
19870         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19871         (func_get_comment): New function.
19872         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19873
19874 2010-03-27  Bruno Haible  <bruno@clisp.org>
19875
19876         Addendum to 2010-02-07 commit.
19877         * gnulib-tool (func_usage): Document --extract-applicability option.
19878
19879 2010-03-27  Bruno Haible  <bruno@clisp.org>
19880
19881         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19882         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19883         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19884         rather than link errors.
19885
19886 2010-03-27  Bruno Haible  <bruno@clisp.org>
19887
19888         Avoid side effects from tests-related modules on the compilation of lib.
19889         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19890         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19891         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19892         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19893         macro.
19894         (func_import): Define a witness macro. Assign it a value that depends
19895         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19896         tests-related modules.
19897         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19898         Reported by Jim Meyering.
19899
19900 2010-03-27  Bruno Haible  <bruno@clisp.org>
19901
19902         Factorize common .m4 code.
19903         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19904         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19905         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19906         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19907         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19908         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19909         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19910         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19911         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19912         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19913         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19914         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19915         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19916         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19917         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19918         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19919         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19920         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19922         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19923         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19924         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19925         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19926         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19927         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19928         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19929         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19930         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19931         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19932         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19933         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19934         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19935
19936 2010-03-27  Bruno Haible  <bruno@clisp.org>
19937
19938         Fix a compilation error on Cygwin with g++ >= 4.3.
19939         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19940         if it is undefined or if we alias it to chmod.
19941         (lstat): Don't warn about the use of this function if it is undefined
19942         or if we alias it to stat.
19943         Reported by Simon Josefsson.
19944
19945 2010-03-27  Bruno Haible  <bruno@clisp.org>
19946
19947         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19948         * modules/getlogin (configure.ac): Update.
19949
19950         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19951         * modules/getlogin_r (configure.ac): Update.
19952
19953         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19955         * modules/inet_ntop (configure.ac): Update.
19956
19957         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19958         * modules/inet_pton (configure.ac): Update.
19959
19960         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19961         * modules/mbslen (configure.ac): Update.
19962
19963         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19964         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19965         * modules/forkpty (configure.ac): Update.
19966         * modules/openpty (configure.ac): Update.
19967
19968 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19969
19970         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19971         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19972
19973 2010-03-25  Eric Blake  <eblake@redhat.com>
19974
19975         maint: use pragma consistently across replacement headers
19976         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19977         * lib/dirent.in.h (system_header): Likewise.
19978         * lib/errno.in.h (system_header): Likewise.
19979         * lib/float.in.h (system_header): Likewise.
19980         * lib/getopt.in.h (system_header): Likewise.
19981         * lib/iconv.in.h (system_header): Likewise.
19982         * lib/inttypes.in.h (system_header): Likewise.
19983         * lib/langinfo.in.h (system_header): Likewise.
19984         * lib/locale.in.h (system_header): Likewise.
19985         * lib/math.in.h (system_header): Likewise.
19986         * lib/netdb.in.h (system_header): Likewise.
19987         * lib/netinet_in.in.h (system_header): Likewise.
19988         * lib/pty.in.h (system_header): Likewise.
19989         * lib/sched.in.h (system_header): Likewise.
19990         * lib/se-selinux.in.h (system_header): Likewise.
19991         * lib/search.in.h (system_header): Likewise.
19992         * lib/spawn.in.h (system_header): Likewise.
19993         * lib/stdarg.in.h (system_header): Likewise.
19994         * lib/stdint.in.h (system_header): Likewise.
19995         * lib/string.in.h (system_header): Likewise.
19996         * lib/strings.in.h (system_header): Likewise.
19997         * lib/sys_file.in.h (system_header): Likewise.
19998         * lib/sys_ioctl.in.h (system_header): Likewise.
19999         * lib/sys_socket.in.h (system_header): Likewise.
20000         * lib/sys_times.in.h (system_header): Likewise.
20001         * lib/sys_utsname.in.h (system_header): Likewise.
20002         * lib/sys_wait.in.h (system_header): Likewise.
20003         * lib/sysexits.in.h (system_header): Likewise.
20004         * lib/unistd.in.h (system_header): Likewise.
20005         * lib/wctype.in.h (system_header): Likewise.
20006
20007         arpa/inet: fix mingw compilation warning
20008         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20009         Reported by Matthew Bolte.
20010
20011 2010-03-25  Bruno Haible  <bruno@clisp.org>
20012
20013         Avoid collision between gnulib wrapper and libintl wrapper.
20014         * lib/printf.c (printf): Don't define if a printf wrapper is already
20015         defined in intl/printf.c.
20016         Reported by Michel Boaventura <michel@michelboaventura.com>.
20017
20018 2010-03-25  Bruno Haible  <bruno@clisp.org>
20019
20020         Use ANSI C.
20021         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20022
20023 2010-03-25  Bruno Haible  <bruno@clisp.org>
20024
20025         Minor formatting changes.
20026         * lib/acosl.c: Insert space before function argument list.
20027         * lib/argz.c: Likewise.
20028         * lib/asinl.c: Likewise.
20029         * lib/expl.c: Likewise.
20030         * lib/gen-uni-tables.c: Likewise.
20031         * lib/gettext.h: Likewise.
20032         * lib/glthread/lock.h: Likewise.
20033         * lib/tanl.c: Likewise.
20034         * lib/uniname/uniname.c: Likewise.
20035         * tests/test-idpriv-drop.c: Likewise.
20036         * tests/test-idpriv-droptemp.c: Likewise.
20037         * tests/test-lock.c: Likewise.
20038         * tests/test-tls.c: Likewise.
20039         * lib/argp-help.c: Insert space before function-like macro argument
20040         list.
20041         * lib/memcmp.c: Likewise.
20042         * tests/test-base64.c: Likewise.
20043         * lib/localename.c: Insert space before sizeof's argument list.
20044         * lib/safe-alloc.h: Likewise.
20045         * lib/file-set.h: Insert space before macro argument list.
20046         * tests/test-argp.c: Likewise.
20047         * lib/argp-namefrob.h: Insert space before function parameter list.
20048         * lib/getaddrinfo.c: Likewise.
20049         * lib/netdb.in.h: Likewise.
20050         * lib/parse-duration.h: Likewise.
20051         * lib/parse-duration.c: Likewise.
20052         * lib/poll.c: Likewise.
20053         * lib/select.c: Likewise.
20054         * lib/trim.h: Likewise.
20055         * tests/test-usleep.c: Likewise.
20056         * lib/ldexpl.c: Insert space before function parameter list and before
20057         function argument list.
20058         * lib/logl.c: Likewise.
20059         * lib/sqrtl.c: Likewise.
20060         * lib/trim.c: Likewise.
20061         * lib/cosl.c: Use GNU style indentation. Insert space before function
20062         argument list.
20063         * lib/sinl.c: Likewise.
20064         * lib/tsearch.c: Insert space after 'for'.
20065         Reported by Jim Meyering.
20066
20067 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20068
20069         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20070         config header before grepping, as it's not present before
20071         autoreconf/configure are run.  Reported by Simon Josefsson.
20072
20073 2010-03-23  Bruno Haible  <bruno@clisp.org>
20074
20075         pt_chown: Make it work with automake < 1.11.
20076         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20077         Reported by Simon Josefsson.
20078
20079 2010-03-23  Bruno Haible  <bruno@clisp.org>
20080
20081         pt_chown: Don't depend on GPLed modules.
20082         * lib/pt_chown.c: Don't include idpriv.h.
20083         (main): Don't drop privileges.
20084         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20085         Reported by Simon Josefsson.
20086
20087 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20088
20089         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20090         suggestions from karl@freefriends.org (Karl Berry).
20091
20092 2010-03-22  Eric Blake  <eblake@redhat.com>
20093
20094         gethostname: further tweaks
20095         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20096         are overriding gethostname.
20097         Suggested by Bruno Haible.
20098
20099 2010-03-21  Bruno Haible  <bruno@clisp.org>
20100
20101         Fix comments.
20102         * lib/forkpty.c (rpl_forkpty): Fix comment.
20103         * lib/openpty.c (rpl_openpty): Likewise.
20104         Reported by Eric Blake.
20105
20106 2010-03-22  Eric Blake  <eblake@redhat.com>
20107
20108         gethostname: fix build on mingw
20109         * lib/unistd.in.h (includes): Work around fact that mingw
20110         <winsock2.h> re-includes <unistd.h>, by avoiding any
20111         redeclarations if we are being included by <winsock2.h>.
20112         Reported by Matthias Bolte.
20113
20114 2010-03-21  Bruno Haible  <bruno@clisp.org>
20115
20116         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20117         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20118         modifications.
20119         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20120         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20121         provide the replacement.
20122         * modules/forkpty (Depends-on): Add openpty, login_tty.
20123         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20124         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20125         * doc/glibc-functions/forkpty.texi: More supported platforms.
20126         * config/srclist.txt: Add forkpty.c (commented).
20127
20128 2010-03-21  Bruno Haible  <bruno@clisp.org>
20129
20130         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20131         (Makefile.am): Verify that PTY_LIB is defined.
20132
20133         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20134
20135 2010-03-21  Bruno Haible  <bruno@clisp.org>
20136
20137         Tests for module 'login_tty'.
20138         * modules/login_tty-tests: New file.
20139         * tests/test-login_tty.c: New file.
20140
20141         New module 'login_tty'.
20142         * lib/login_tty.c: New file.
20143         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20144         * modules/login_tty: New file.
20145         * doc/glibc-functions/login_tty.texi: Mention the new module.
20146
20147 2010-03-21  Bruno Haible  <bruno@clisp.org>
20148
20149         login_tty: Documentation.
20150         * doc/glibc-functions/login_tty.texi: New file.
20151         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20152
20153 2010-03-21  Bruno Haible  <bruno@clisp.org>
20154
20155         pty: Consistent macro naming.
20156         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20157         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20158         * modules/pty (configure.ac): Update.
20159
20160 2010-03-21  Bruno Haible  <bruno@clisp.org>
20161
20162         Tests for openpty: Make stricter.
20163         * tests/test-openpty.c (main): Add test of canonical processing and
20164         erase.
20165         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20166
20167         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20168         * lib/openpty.c (openpty): New replacement function.
20169         * lib/pty.in.h: Include <termios.h>.
20170         (openpty): Update declaration. Add comments.
20171         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20172         is not declared, arrange to provide the replacement. Check for _getpty
20173         and posix_openpt.
20174         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20175         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20176         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20177         * modules/pty-tests (test_pty_c___LDADD): New variable.
20178         * doc/glibc-functions/openpty.texi: More supported platforms.
20179
20180 2010-03-21  Bruno Haible  <bruno@clisp.org>
20181
20182         setenv: Tweaks.
20183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20184         the test program.
20185         * doc/posix-functions/setenv.texi: Update platforms list.
20186
20187 2010-03-21  Bruno Haible  <bruno@clisp.org>
20188
20189         New module 'unlockpt'.
20190         * lib/unlockpt.c: New file, from glibc with modifications.
20191         * m4/unlockpt.m4: New file.
20192         * modules/unlockpt: New file.
20193         * lib/stdlib.in.h (unlockpt): New declaration.
20194         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20195         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20196         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20197         HAVE_UNLOCKPT.
20198         * doc/posix-functions/unlockpt.texi: Mention the new module.
20199         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20200         * config/srclist.txt: Add unlockpt.c (commented).
20201
20202 2010-03-21  Jim Meyering  <meyering@redhat.com>
20203
20204         maint.mk: prohibit inclusion of "intprops.h" without use
20205         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20206
20207 2010-03-21  Bruno Haible  <bruno@clisp.org>
20208
20209         New module 'grantpt'.
20210         * lib/grantpt.c: New file, from glibc with modifications.
20211         * m4/grantpt.m4: New file.
20212         * modules/grantpt: New file.
20213         * lib/stdlib.in.h (grantpt): New declaration.
20214         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20215         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20216         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20217         HAVE_GRANTPT.
20218         * doc/posix-functions/grantpt.texi: Mention the new module.
20219         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20220         * config/srclist.txt: Add grantpt.c (commented).
20221
20222 2010-03-21  Bruno Haible  <bruno@clisp.org>
20223
20224         New module 'pt_chown'.
20225         * lib/pt_chown.c: New file, from glibc with modifications.
20226         * lib/pty-private.h: New file, from glibc with modifications.
20227         * modules/pt_chown: New file.
20228         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20229
20230 2010-03-21  Bruno Haible  <bruno@clisp.org>
20231
20232         Tests for module 'ptsname'.
20233         * modules/ptsname-tests: New file.
20234         * tests/test-ptsname.c: New file.
20235
20236         New module 'ptsname'.
20237         * lib/ptsname.c: New file, from glibc with modifications.
20238         * m4/ptsname.m4: New file.
20239         * modules/ptsname: New file.
20240         * lib/stdlib.in.h (ptsname): New declaration.
20241         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20242         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20243         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20244         HAVE_PTSNAME.
20245         * doc/posix-functions/ptsname.texi: Mention the new module.
20246         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20247         * config/srclist.txt: Add ptsname.c (commented).
20248
20249 2010-03-21  Bruno Haible  <bruno@clisp.org>
20250
20251         Tests for module 'ttyname_r'.
20252         * modules/ttyname_r-tests: New file.
20253         * tests/test-ttyname_r.c: New file.
20254
20255         New module 'ttyname_r'.
20256         * lib/ttyname_r.c: New file.
20257         * m4/ttyname_r.m4: New file.
20258         * modules/ttyname_r: New file.
20259         * lib/unistd.in.h (ttyname_r): New declaration.
20260         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20261         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20262         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20263         HAVE_TTYNAME_R.
20264         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20265         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20266
20267 2010-03-20  Bruno Haible  <bruno@clisp.org>
20268
20269         signal: Undefine macro definitions in C++ mode.
20270         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20271         sigfillset): Undefine macro definitions from the system header in C++
20272         mode.
20273         Reported by John W. Eaton <jwe@gnu.org>.
20274
20275 2010-03-20  Bruno Haible  <bruno@clisp.org>
20276
20277         Ensure no #include statements inside extern "C" { ... }.
20278         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20279         contain #include statements.
20280         * lib/time.in.h: Likewise.
20281
20282 2010-03-20  Bruno Haible  <bruno@clisp.org>
20283
20284         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20285         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20286         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20287         Reported by John W. Eaton <jwe@gnu.org>.
20288
20289 2010-03-20  Bruno Haible  <bruno@clisp.org>
20290
20291         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20292         Reported by Jim Meyering.
20293
20294 2010-03-20  Bruno Haible  <bruno@clisp.org>
20295
20296         pipe: Set errno upon failure.
20297         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20298         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20299         errno value in error message.
20300
20301 2010-03-20  Bruno Haible  <bruno@clisp.org>
20302             Jim Meyering  <meyering@redhat.com>
20303
20304         lchown: Avoid "unused variable" warning.
20305         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20306
20307 2010-03-20  Bruno Haible  <bruno@clisp.org>
20308
20309         Work around unlink() bug on MacOS X 10.5.6.
20310         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20311         attempting to unlink a parent directory.
20312         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20313         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20314         activate for the replacement function.
20315         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20316
20317 2010-03-20  Bruno Haible  <bruno@clisp.org>
20318
20319         Fix link errors on Solaris 8.
20320         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20321         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20322
20323 2010-03-19  Jim Meyering  <meyering@redhat.com>
20324
20325         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20326         The _LIBC implementation of build_range_exp correctly honors the
20327         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20328         However, the non-_LIBC implementation would ignore that syntax-bit
20329         flag and return REG_ERANGE unconditionally.
20330         This change makes it honor that flag.
20331         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20332         Make two pointer parameters "const".
20333         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20334         (parse_bracket_exp): Update caller.
20335
20336         regex.m4: correct the reversed range endpoint ([b-a]) test
20337         * m4/regex.m4: When requiring that [b-a] evoke failure,
20338         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20339         test pass once again for x86-based systems.
20340
20341 2010-03-19  Bruno Haible  <bruno@clisp.org>
20342
20343         scandir: Fix link error on Solaris 8.
20344         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20345         macros.
20346
20347 2010-03-19  Bruno Haible  <bruno@clisp.org>
20348
20349         getusershell: Fix documentation.
20350         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20351         module.
20352         * doc/glibc-functions/setusershell.texi: Likewise.
20353
20354         getusershell: Provide declaration, missing on Solaris 9.
20355         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20356         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20357         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20358         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20360         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20361         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20362         HAVE_GETUSERSHELL.
20363         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20364
20365 2010-03-19  Bruno Haible  <bruno@clisp.org>
20366
20367         wctype: Provide iswblank function.
20368         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20369         exists and is fine.
20370         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20371         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20372         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20373         * doc/posix-functions/iswblank.texi: Update.
20374
20375 2010-03-19  Bruno Haible  <bruno@clisp.org>
20376
20377         Tests of module 'pty' in C++ mode.
20378         * modules/pty-tests: New file.
20379         * tests/test-pty-c++.cc: New file.
20380         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20381
20382 2010-03-19  Eric Blake  <eblake@redhat.com>
20383
20384         logb: fix documentation
20385         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20386         1.5 declaration bug.
20387
20388         forkpty, openpty: prefer glibc's const-safe prototype
20389         * lib/forkpty.c (rpl_forkpty): New file.
20390         * lib/openpty.c (rpl_openpty): Likewise.
20391         * modules/forkpty (Files): Distribute it.
20392         * modules/openpty (Files): Likewise.
20393         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20394         check...
20395         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20396         replacement for for non-const BSD signature.
20397         * modules/pty (Makefile.am): Substitute witnesses.
20398         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20399         * tests/test-forkpty.c: Update signature check.
20400         * tests/test-openpty.c: Likewise.
20401         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20402         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20403
20404         forkpty, openpty: split functions into new modules
20405         * modules/pty (Makefile.am): Substitute new witnesses.
20406         (Libraries): Move library detection...
20407         * modules/forkpty: ...into new module.
20408         * modules/openpty: Another new module.
20409         * modules/pty-tests: Rename and split...
20410         * modules/forkpty-tests: ...to this...
20411         * modules/openpty-tests: ...and this.
20412         * tests/test-pty.c: Rename and split...
20413         * tests/test-forkpty.c: ...to this...
20414         * tests/test-openpty.c: ...and this.
20415         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20416         (gl_PTY): Split library searching...
20417         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20418         (gl_FORKPTY, gl_OPENPTY): New macros.
20419         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20420         * NEWS: Mention the split.
20421         * MODULES.html.sh (Misc): Document the modules.
20422         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20423         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20424
20425         pty: improve replacement header
20426         * lib/pty.in.h: New file.
20427         * modules/pty (Files): Ship it.
20428         (Makefile.am): Always build replacement.
20429         * m4/pty.m4: Rename...
20430         * m4/pty_h.m4: ...to this.
20431         (gl_PTY): Modernize setting of witness macros; update check of
20432         forkpty to take proper advantage of cache.
20433         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20434
20435         getopt: avoid compiler warning
20436         * lib/getopt.c (attribute_hidden): Remove unused macro.
20437
20438 2010-03-18  Bruno Haible  <bruno@clisp.org>
20439
20440         Fix link errors on Solaris 8.
20441         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20442         * modules/search-tests (test_search_c___LDADD): Likewise.
20443         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20444         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20445         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20446         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20447         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20448         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20449         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20450
20451 2010-03-18  Bruno Haible  <bruno@clisp.org>
20452
20453         Fix bug introduced on 2010-03-14.
20454         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20455         (gl_SPAWN_H): Require it.
20456         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20457         Reported by Simon Josefsson.
20458
20459 2010-03-18  Bruno Haible  <bruno@clisp.org>
20460
20461         Fix typo introduced on 2009-12-31.
20462         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20463         posix_spawn_file_actions_adddup2.
20464
20465 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20466         and Eric Blake  <eblake@redhat.com>
20467
20468         test-vc-list-files-git: make more robust
20469         * tests/test-vc-list-files-git.sh: Unset problematic environment
20470         variables.  Chain commands together.
20471
20472 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20473
20474         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20475         `AC_CHECK_DECL' invocation.
20476
20477 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20478
20479         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20480         appears before executable statements. Suggested by Petr Sumbera
20481         <Petr.Sumbera@Sun.COM>.
20482
20483 2010-03-14  Bruno Haible  <bruno@clisp.org>
20484
20485         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20486         portability problems. Instead use a simpler test.
20487         (main): Check that invalid arguments are rejected only on Linux.
20488
20489 2010-03-14  Bruno Haible  <bruno@clisp.org>
20490
20491         Fix bug introduced on 2009-12-31.
20492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20493         gl_PREREQ_SYS_H_WINSOCK2 always.
20494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20495         SYS_SOCKET_H variable.
20496         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20497         Update comments.
20498         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20499         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20500         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20501         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20502         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20503
20504 2010-03-14  Bruno Haible  <bruno@clisp.org>
20505
20506         Fix values returned by sinl, cosl.
20507         * lib/trigl.h: Add specification comments.
20508         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20509         that combines the values from the precomputed table with the values of
20510         the Chebyshev polynomials.
20511
20512 2010-03-14  Bruno Haible  <bruno@clisp.org>
20513
20514         Fix compilation error when modules 'posix_spawn[p]' are not used.
20515         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20517
20518 2010-03-14  Bruno Haible  <bruno@clisp.org>
20519
20520         Fix compilation error on mingw when module 'time_r' is not used.
20521         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20522         is 1.
20523         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20524         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20525         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20526         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20527
20528 2010-03-14  Bruno Haible  <bruno@clisp.org>
20529
20530         Fix compilation error with Sun C.
20531         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20532         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20533         instead of GCC specific ULONG_LONG_MAX.
20534         * lib/xstrtoll.c: Likewise.
20535         * lib/xstrtoull.c: Likewise.
20536
20537 2010-03-13  Bruno Haible  <bruno@clisp.org>
20538
20539         Allow the user to disable C++ code and tests.
20540         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20541         (gl_PROG_ANSI_CXX): Require it.
20542
20543 2010-03-13  Bruno Haible  <bruno@clisp.org>
20544
20545         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20546         cases.
20547
20548 2010-03-13  Bruno Haible  <bruno@clisp.org>
20549
20550         Test that gnulib does not break the standard C++ headers.
20551         * tests/test-locale-c++2.cc: New file.
20552         * modules/locale-tests (Files): Add it.
20553         (Makefile.am): Compile it for test-locale-c++.
20554         * tests/test-math-c++2.cc: New file.
20555         * modules/math-tests (Files): Add it.
20556         (Makefile.am): Compile it for test-math-c++.
20557         * tests/test-signal-c++2.cc: New file.
20558         * modules/signal-tests (Files): Add it.
20559         (Makefile.am): Compile it for test-signal-c++.
20560         * tests/test-stdio-c++2.cc: New file.
20561         * modules/stdio-tests (Files): Add it.
20562         (Makefile.am): Compile it for test-stdio-c++.
20563         * tests/test-stdlib-c++2.cc: New file.
20564         * modules/stdlib-tests (Files): Add it.
20565         (Makefile.am): Compile it for test-stdlib-c++.
20566         * tests/test-string-c++2.cc: New file.
20567         * modules/string-tests (Files): Add it.
20568         (Makefile.am): Compile it for test-string-c++.
20569         * tests/test-time-c++2.cc: New file.
20570         * modules/time-tests (Files): Add it.
20571         (Makefile.am): Compile it for test-time-c++.
20572         Reported by John W. Eaton <jwe@gnu.org>.
20573
20574 2010-03-13  Bruno Haible  <bruno@clisp.org>
20575
20576         * gnulib-tool (func_usage): Clarify which options are available for
20577         --create-testdir and --create-megatestdir.
20578
20579 2010-03-13  Bruno Haible  <bruno@clisp.org>
20580
20581         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20582         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20583         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20584         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20585         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20586         when appropriate.
20587         Reported by Jim Meyering.
20588
20589 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20590
20591         * gnulib-tool (func_import): Explain origin of code.
20592
20593 2010-03-12  Bruno Haible  <bruno@clisp.org>
20594
20595         Fix problem with automake's definition of CXXLINK.
20596         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20597         Reported by Simon Josefsson and Ludovic Courtès.
20598
20599 2010-03-12  Bruno Haible  <bruno@clisp.org>
20600
20601         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20602         stable releases.
20603
20604 2010-03-11  Bruno Haible  <bruno@clisp.org>
20605
20606         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20607         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20608         whether the system provides one variant or multiple variants of the
20609         function.
20610         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20611         C++ compilers.
20612         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20613         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20614         Reported by Jim Meyering.
20615
20616 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20617
20618         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20619
20620 2010-03-08  Bruno Haible  <bruno@clisp.org>
20621
20622         gnulib-tool: Add support for --libtool in --create-testdir.
20623         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20624         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20625
20626 2010-03-08  Eric Blake  <eblake@redhat.com>
20627
20628         gnulib-tool.texi: mention possibility of git submodule
20629         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20630         submodules.
20631         * doc/.gitignore: Ignore another generated file.
20632
20633 2010-03-08  Karl Berry  <karl@gnu.org>
20634
20635         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20636         of committing gnulib files while skipping others.
20637
20638 2010-03-07  Bruno Haible  <bruno@clisp.org>
20639
20640         Tests of module 'wctype' in C++ mode.
20641         * tests/test-wctype-c++.cc: New file.
20642         * modules/wctype-tests (Files): Add it and tests/signature.h.
20643         (Depends-on): Add ansi-c++-opt.
20644         (Makefile.am): Arrange to compile and run test-wctype-c++.
20645
20646         Tests of module 'wchar' in C++ mode.
20647         * tests/test-wchar-c++.cc: New file.
20648         * modules/wchar-tests (Files): Add it and tests/signature.h.
20649         (Depends-on): Add ansi-c++-opt.
20650         (Makefile.am): Arrange to compile and run test-wchar-c++.
20651         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20652         gl_MODULE_INDICATOR.
20653
20654         Tests of module 'unistd' in C++ mode.
20655         * tests/test-unistd-c++.cc: New file.
20656         * modules/unistd-tests (Files): Add it and tests/signature.h.
20657         (Depends-on): Add ansi-c++-opt.
20658         (Makefile.am): Arrange to compile and run test-unistd-c++.
20659         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20660         gl_MODULE_INDICATOR.
20661
20662         Tests of module 'time' in C++ mode.
20663         * tests/test-time-c++.cc: New file.
20664         * modules/time-tests (Files): Add it and tests/signature.h.
20665         (Depends-on): Add ansi-c++-opt.
20666         (Makefile.am): Arrange to compile and run test-time-c++.
20667         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20668
20669         Tests of module 'sys_time' in C++ mode.
20670         * tests/test-sys_time-c++.cc: New file.
20671         * modules/sys_time-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_time-c++.
20674         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20675         gl_MODULE_INDICATOR.
20676
20677         Tests of module 'sys_stat' in C++ mode.
20678         * tests/test-sys_stat-c++.cc: New file.
20679         * modules/sys_stat-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_stat-c++.
20682         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20683         gl_MODULE_INDICATOR.
20684
20685         Tests of module 'sys_socket' in C++ mode.
20686         * tests/test-sys_socket-c++.cc: New file.
20687         * modules/sys_socket-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_socket-c++.
20690         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20691         gl_MODULE_INDICATOR.
20692
20693         Tests of module 'sys_select' in C++ mode.
20694         * tests/test-sys_select-c++.cc: New file.
20695         * modules/sys_select-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_select-c++.
20698         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20699         gl_MODULE_INDICATOR.
20700
20701         Tests of module 'sys_ioctl' in C++ mode.
20702         * tests/test-sys_ioctl-c++.cc: New file.
20703         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20704         (Depends-on): Add ansi-c++-opt.
20705         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20707         gl_MODULE_INDICATOR.
20708
20709         Tests of module 'string' in C++ mode.
20710         * tests/test-string-c++.cc: New file.
20711         * modules/string-tests (Files): Add it and tests/signature.h.
20712         (Depends-on): Add ansi-c++-opt.
20713         (Makefile.am): Arrange to compile and run test-string-c++.
20714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20715         gl_MODULE_INDICATOR.
20716
20717         Tests of module 'stdlib' in C++ mode.
20718         * tests/test-stdlib-c++.cc: New file.
20719         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20720         (Depends-on): Add ansi-c++-opt.
20721         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20722         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20723         gl_MODULE_INDICATOR.
20724
20725         Tests of module 'stdio' in C++ mode.
20726         * tests/test-stdio-c++.cc: New file.
20727         * modules/stdio-tests (Files): Add it and tests/signature.h.
20728         (Depends-on): Add ansi-c++-opt.
20729         (Makefile.am): Arrange to compile and run test-stdio-c++.
20730         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20731         gl_MODULE_INDICATOR.
20732
20733         Tests of module 'spawn' in C++ mode.
20734         * tests/test-spawn-c++.cc: New file.
20735         * modules/spawn-tests (Files): Add it and tests/signature.h.
20736         (Depends-on): Add ansi-c++-opt.
20737         (Makefile.am): Arrange to compile and run test-spawn-c++.
20738         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20739         gl_MODULE_INDICATOR.
20740
20741         Tests of module 'signal' in C++ mode.
20742         * tests/test-signal-c++.cc: New file.
20743         * modules/signal-tests (Files): Add it and tests/signature.h.
20744         (Depends-on): Add ansi-c++-opt.
20745         (Makefile.am): Arrange to compile and run test-signal-c++.
20746         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20747         gl_MODULE_INDICATOR.
20748
20749         Tests of module 'search' in C++ mode.
20750         * tests/test-search-c++.cc: New file.
20751         * modules/search-tests (Files): Add it and tests/signature.h.
20752         (Depends-on): Add ansi-c++-opt.
20753         (Makefile.am): Arrange to compile and run test-search-c++.
20754         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20755         gl_MODULE_INDICATOR.
20756
20757         Tests of module 'math' in C++ mode.
20758         * tests/test-math-c++.cc: New file.
20759         * modules/math-tests (Files): Add it and tests/signature.h.
20760         (Depends-on): Add ansi-c++-opt.
20761         (Makefile.am): Arrange to compile and run test-math-c++.
20762         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20763
20764         Tests of module 'locale' in C++ mode.
20765         * tests/test-locale-c++.cc: New file.
20766         * modules/locale-tests (Files): Add it and tests/signature.h.
20767         (Depends-on): Add ansi-c++-opt.
20768         (Makefile.am): Arrange to compile and run test-locale-c++.
20769         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20770         gl_MODULE_INDICATOR.
20771
20772         Tests of module 'langinfo' in C++ mode.
20773         * tests/test-langinfo-c++.cc: New file.
20774         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20775         (Depends-on): Add ansi-c++-opt.
20776         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20777         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20778         gl_MODULE_INDICATOR.
20779
20780         Tests of module 'iconv-h' in C++ mode.
20781         * tests/test-iconv-h-c++.cc: New file.
20782         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20783         (Depends-on): Add ansi-c++-opt.
20784         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20785
20786         Tests of module 'glob' in C++ mode.
20787         * tests/test-glob-c++.cc: New file.
20788         * modules/glob-tests (Files): Add it.
20789         (Depends-on): Add ansi-c++-opt.
20790         (Makefile.am): Arrange to compile and run test-glob-c++.
20791
20792         Tests of module 'fcntl-h' in C++ mode.
20793         * tests/test-fcntl-h-c++.cc: New file.
20794         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20795         (Depends-on): Add ansi-c++-opt.
20796         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20797         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20798         gl_MODULE_INDICATOR.
20799
20800         Tests of module 'dirent' in C++ mode.
20801         * tests/test-dirent-c++.cc: New file.
20802         * modules/dirent-tests (Files): Add it and tests/signature.h.
20803         (Depends-on): Add ansi-c++-opt.
20804         (Makefile.am): Arrange to compile and run test-dirent-c++.
20805         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20806         gl_MODULE_INDICATOR.
20807
20808         New module 'ansi-c++-opt'.
20809         * modules/ansi-c++-opt: New file.
20810         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20811
20812         Document C++ namespace mode.
20813         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20814
20815         wctype: Avoid #define replacements in C++ mode.
20816         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20817         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20818         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20819         In C++, define a namespaced alias symbol.
20820         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20821         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20822         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20823         rule.
20824
20825         wchar: Avoid #define replacements in C++ mode.
20826         * lib/wchar.in.h: Include c++defs.h.
20827         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20828         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20829         symbol.
20830         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20831         * modules/wchar (Depends-on): Add c++defs.
20832         (Makefile.am): Update wchar.h rule.
20833
20834         unistd: Avoid #define replacements in C++ mode.
20835         * lib/unistd.in.h: Include c++defs.h.
20836         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20837         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20838         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20839         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20840         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20841         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20842         symbol.
20843         (environ): Update.
20844         * modules/unistd (Depends-on): Add c++defs.
20845         (Makefile.am): Update unistd.h rule.
20846
20847         time: Avoid #define replacements in C++ mode.
20848         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20849         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20850         define a namespaced alias symbol.
20851         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20852         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20853         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20854         * modules/time (Depends-on): Add c++defs, warn-on-use.
20855         (Makefile.am): Update time.h rule.
20856         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20857         * modules/nanosleep (configure.ac): Likewise.
20858         * modules/strptime (configure.ac): Likewise.
20859         * modules/timegm (configure.ac): Likewise.
20860
20861         sys_time: Avoid #define replacements in C++ mode.
20862         * lib/sys_time.in.h: Include c++defs.h.
20863         (gettimeofday): In C++, define a namespaced alias symbol.
20864         * modules/sys_time (Depends-on): Add c++defs.
20865         (Makefile.am): Update sys/time.h rule.
20866
20867         sys_stat: Avoid #define replacements in C++ mode.
20868         * lib/sys_stat.in.h: Include c++defs.h.
20869         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20870         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20871         namespaced alias symbol.
20872         In C++, define a namespaced alias symbol.
20873         * modules/sys_stat (Depends-on): Add c++defs.
20874         (Makefile.am): Update sys/stat.h rule.
20875
20876         sys_socket: Avoid #define replacements in C++ mode.
20877         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20878         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20879         definitions also when the system has a <sys/socket.h>.
20880         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20881         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20882         In C++, define a namespaced alias symbol.
20883         * modules/sys_socket (Depends-on): Add c++defs.
20884         (Makefile.am): Update sys/socket.h rule.
20885
20886         sys_select: Avoid #define replacements in C++ mode.
20887         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20888         definitions also when the system has a <sys/select.h>.
20889         (select): In C++, define a namespaced alias symbol.
20890         * modules/sys_select (Depends-on): Add c++defs.
20891         (Makefile.am): Update sys/select.h rule.
20892
20893         sys_ioctl: Avoid #define replacements in C++ mode.
20894         * lib/sys_ioctl.in.h: Include c++defs.h.
20895         (ioctl): In C++, define a namespaced alias symbol.
20896         * modules/sys_ioctl (Depends-on): Add c++defs.
20897         (Makefile.am): Update sys/ioctl.h rule.
20898
20899         string: Avoid #define replacements in C++ mode.
20900         * lib/string.in.h: Include c++defs.h.
20901         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20902         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20903         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20904         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20905         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20906         * modules/string (Depends-on): Add c++defs.
20907         (Makefile.am): Update string.h rule.
20908
20909         stdlib: Avoid #define replacements in C++ mode.
20910         * lib/stdlib.in.h: Include c++defs.h.
20911         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20912         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20913         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20914         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20915         symbol.
20916         * modules/stdlib (Depends-on): Add c++defs.
20917         (Makefile.am): Update stdlib.h rule.
20918
20919         stdio: Avoid #define replacements in C++ mode.
20920         * lib/stdio.in.h: Include c++defs.h.
20921         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20922         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20923         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20924         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20925         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20926         namespaced alias symbol.
20927         * modules/stdio (Depends-on): Add c++defs.
20928         (Makefile.am): Update stdio.h rule.
20929
20930         spawn: Avoid #define replacements in C++ mode.
20931         * lib/spawn.in.h: Include c++defs.h.
20932         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20933         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20934         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20935         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20936         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20937         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20938         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20939         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20940         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20941         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20942         In C++, define a namespaced alias symbol.
20943         * modules/spawn (Depends-on): Add c++defs.
20944         (Makefile.am): Update spawn.h rule.
20945
20946         signal: Avoid #define replacements in C++ mode.
20947         * lib/signal.in.h: Include c++defs.h.
20948         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20949         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20950         namespaced alias symbol.
20951         * modules/signal (Depends-on): Add c++defs.
20952         (Makefile.am): Update signal.h rule.
20953
20954         search: Avoid #define replacements in C++ mode.
20955         * lib/search.in.h: Include c++defs.h.
20956         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20957         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20958         symbol.
20959         * modules/search (Depends-on): Add c++defs.
20960         (Makefile.am): Update search.h rule.
20961
20962         math: Avoid #define replacements in C++ mode.
20963         * lib/math.in.h: Include c++defs.h.
20964         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20965         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20966         trunc, truncl): In C++, define a namespaced alias symbol.
20967         * modules/math (Depends-on): Add c++defs.
20968         (Makefile.am): Update math.h rule.
20969
20970         locale: Avoid #define replacements in C++ mode.
20971         * lib/locale.in.h: Include c++defs.h.
20972         (duplocale): In C++, define a namespaced alias symbol.
20973         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20974         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20975         * modules/locale (Depends-on): Add c++defs.
20976         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20977
20978         langinfo: Avoid #define replacements in C++ mode.
20979         * lib/langinfo.in.h: Include c++defs.h.
20980         (nl_langinfo): In C++, define a namespaced alias symbol.
20981         * modules/langinfo (Depends-on): Add c++defs.
20982         (Makefile.am): Update langinfo.h rule.
20983
20984         iconv-h: Avoid #define replacements in C++ mode.
20985         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20986         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20987         symbol.
20988         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20989         whenever iconv is present.
20990         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20991         (Makefile.am): Update iconv.h rule.
20992
20993         glob: Avoid #define replacements in C++ mode.
20994         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20995         (_gl_glob_errfunc_fn): New type.
20996         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20997         symbol.
20998         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20999         (Makefile.am): Update glob.h rule.
21000
21001         fcntl-h: Avoid #define replacements in C++ mode.
21002         * lib/fcntl.in.h: Include c++defs.h.
21003         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21004         * modules/fcntl-h (Depends-on): Add c++defs.
21005         (Makefile.am): Update fcntl.h rule.
21006
21007         dirent: Avoid #define replacements in C++ mode.
21008         * lib/dirent.in.h: Include c++defs.h.
21009         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21010         namespaced alias symbol.
21011         (dirfd): Update declaration.
21012         * modules/dirent (Depends-on): Add c++defs.
21013         (Makefile.am): Update dirent.h rule.
21014
21015         ctype: Make it usable in C++ code.
21016         * lib/ctype.in.h: Include c++defs.h.
21017         (isblank): Declare as extern "C".
21018         * modules/ctype (Depends-on): Add c++defs.
21019         (Makefile.am): Update ctype.h rule.
21020
21021         New module 'c++defs'.
21022         * modules/c++defs: New file.
21023         * build-aux/c++defs.h: New file.
21024         Reported by John W. Eaton <jwe@gnu.org>.
21025
21026 2010-03-07  Bruno Haible  <bruno@clisp.org>
21027
21028         logb: Provide missing declaration for Cygwin.
21029         * lib/math.in.h (logb): New declaration.
21030         * m4/logb.m4: New file.
21031         * modules/logb (Files): Add m4/logb.m4.
21032         (Depends-on): Add math.
21033         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21034         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21036         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21037         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21038
21039 2010-03-07  Bruno Haible  <bruno@clisp.org>
21040
21041         Fix test-cond link error.
21042         * tests/test-cond.c: Include <stdio.h>.
21043
21044 2010-03-07  Bruno Haible  <bruno@clisp.org>
21045
21046         Fix test-dirent-safer link error.
21047         * modules/dirent-safer-tests (Makefile.am): Define
21048         test_dirent_safer_LDADD.
21049
21050 2010-03-07  Bruno Haible  <bruno@clisp.org>
21051
21052         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21053         among default module list.
21054
21055 2010-03-07  Bruno Haible  <bruno@clisp.org>
21056
21057         Fix link error on platforms with GNU libiconv.
21058         * modules/unistr/u8-strcoll-tests (Makefile): Define
21059         test_u8_strcoll_LDADD.
21060         * modules/unistr/u16-strcoll-tests (Makefile): Define
21061         test_u16_strcoll_LDADD.
21062         * modules/unistr/u32-strcoll-tests (Makefile): Define
21063         test_u32_strcoll_LDADD.
21064
21065 2010-03-07  Bruno Haible  <bruno@clisp.org>
21066
21067         Use POSIX declarations for socket functions.
21068         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21069         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21070         rpl_sendto): Change declaration to match POSIX.
21071         * lib/connect.c (rpl_connect): Likewise.
21072         * lib/accept.c (rpl_accept): Likewise.
21073         * lib/bind.c (rpl_bind): Likewise.
21074         * lib/getpeername.c (rpl_getpeername): Likewise.
21075         * lib/getsockname.c (rpl_getsockname): Likewise.
21076         * lib/recv.c (rpl_recv): Likewise.
21077         * lib/send.c (rpl_send): Likewise.
21078         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21079         * lib/sendto.c (rpl_sendto): Likewise.
21080
21081 2010-03-06  Bruno Haible  <bruno@clisp.org>
21082
21083         Clarify access, euidaccess, faccessat.
21084         * doc/posix-functions/faccessat.texi: Mention security problem under
21085         "Other problems", not "Portability problems".
21086         * doc/posix-functions/access.texi: Likewise. Mention a related security
21087         problem.
21088         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21089         * lib/euidaccess.c: Add comments about platforms.
21090         * lib/unistd.in.h (access, euidaccess): Add warnings.
21091
21092 2010-03-07  Bruno Haible  <bruno@clisp.org>
21093
21094         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21095         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21096         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21097         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21098         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21099         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21100         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21101         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21102         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21104         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21105         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21106         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21107         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21108         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21109         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21110         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21111         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21112         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21113         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21114         Likewise.
21115         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21116         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21117         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21118         Likewise.
21119         * tests/test-spawn.c (main): Make it work when
21120         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21121
21122 2010-03-07  Bruno Haible  <bruno@clisp.org>
21123
21124         Fix incorrect Makefile.am generation in German locale.
21125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21126         Execute sed command with character range in C locale.
21127
21128 2010-03-06  Bruno Haible  <bruno@clisp.org>
21129
21130         Tests for module 'iconv-h'.
21131         * modules/iconv-h-tests: New file.
21132         * tests/test-iconv-h.c: New file.
21133
21134         New module 'iconv-h'.
21135         * modules/iconv-h: New file.
21136         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21137         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21138         (configure.ac): Remove gl_ICONV_H.
21139         (Makefile.am): Remove rule for iconv.h.
21140
21141 2010-03-06  Bruno Haible  <bruno@clisp.org>
21142
21143         More consistent naming of *.m4 files.
21144         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21145         * modules/wctype (Files): Update.
21146
21147         More consistent naming of *.m4 files.
21148         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21149         * modules/wchar (Files): Update.
21150
21151 2010-03-06  Jim Meyering  <meyering@redhat.com>
21152
21153         euidaccess: relax license to LGPLv2+
21154         * modules/euidaccess (License): Relax to LGPLv2+.
21155
21156 2010-03-06  Bruno Haible  <bruno@clisp.org>
21157
21158         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21159         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21160         (Makefile.am): Augment lib_SOURCES instead.
21161
21162 2010-03-04  Jim Meyering  <meyering@redhat.com>
21163
21164         utime: remove obsolete module
21165         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21166         unnecessary for years, and has been marked as obsolete for 10 months.
21167         * modules/utime: Remove file.
21168         * lib/utime.c: Remove file.
21169         * m4/utime.m4: Remove file.
21170         * m4/utimes-null.m4: Remove file.
21171         * doc/posix-functions/utime.texi (utime): Remove reference to
21172         the module.  Move the sole "fixed by gnulib" item into the
21173         "problems not fixed by Gnulib" list.
21174         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21175
21176 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21177
21178         * modules/exit (License): Relax license to LGPLv2+.
21179         (Status): Mark as obsolete.
21180         * NEWS: Mention deprecated 'exit' module.
21181         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21182         of now obsolete 'exit'.
21183
21184 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21185
21186         fts-lgpl: remove unused module
21187         * modules/fts-lgpl: Remove.
21188         * MODULES.html.sh (func_all_modules): Adjust.
21189         * check-module (find_included_lib_files): Adjust.
21190         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21191
21192 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21193
21194         copy-acl: enhance Solaris ACL error handling
21195         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21196         * lib/set-mode-acl.c (qset_acl): Likewise.
21197
21198 2010-03-02  Bruno Haible  <bruno@clisp.org>
21199
21200         spawn: Don't override the system defined values on FreeBSD 8.
21201         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21202         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21203         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21204         if HAVE_POSIX_SPAWN is 1.
21205         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21206
21207 2010-03-01  Bruno Haible  <bruno@clisp.org>
21208
21209         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21210         regarding Automake.
21211
21212 2010-02-25  Bruno Haible  <bruno@clisp.org>
21213
21214         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21215         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21216         setting, not afterwards.
21217         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21218
21219 2010-02-24  Eric Blake  <eblake@redhat.com>
21220
21221         bootstrap, git-version-gen: use timestamp
21222         * build-aux/git-version-gen (scriptversion): Force UTC.
21223         * build-aux/bootstrap (scriptversion): New variable.
21224
21225         bootstrap: allow older git
21226         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21227         older than 1.6.4.  Requested by the libvirt project.
21228
21229 2010-02-23  Eric Blake  <eblake@redhat.com>
21230
21231         warn-on-use: work with old autoconf
21232         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21233         AS_VAR semantics of autoconf 2.60.
21234         Reported by Bruno Haible.
21235
21236         bootstrap: improve some comments
21237         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21238         clarification comments.
21239
21240         gettimeofday: provide correct function
21241         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21242         when replacement is declared, otherwise provide gettimeofday.
21243         Reported by Michael Goffioul.
21244
21245 2010-02-23  Jim Meyering  <meyering@redhat.com>
21246
21247         lib-ignore: relax license to "unlimited", not LGPLv2+
21248         * modules/lib-ignore (License): Relax to "unlimited".
21249
21250 2010-02-23  Jim Meyering  <meyering@redhat.com>
21251
21252         lib-ignore: relax license to LGPLv2+
21253         * modules/lib-ignore (License): Relax to LGPLv2+.
21254
21255 2010-02-22  Eric Blake  <eblake@redhat.com>
21256
21257         lseek: avoid bash 3.2 broken pipe bug
21258         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21259         warning from bash 3.2.
21260         Reported by Ben Pfaff, with analysis from Bruno Haible.
21261
21262         bootstrap: support non-FSF copyright holder
21263         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21264         bootstrap.conf override of COPYRIGHT_HOLDER.
21265         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21266
21267         bootstrap: interoperate with gettext 0.14.1
21268         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21269
21270         bootstrap: allow for alternate submodule location
21271         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21272         hardcoding submodule location.
21273         (gnulib_mk): Allow direct use of Makefile.am.
21274
21275         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21276         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21277         rather than reconfiguring where the submodule points.
21278
21279         gettimeofday: restore support for platforms that lack function
21280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21281         replacement if function is missing.
21282         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21283         * modules/sys_time (Makefile.am): Substitute it.
21284         * lib/sys_time.in.h (gettimeofday): Check it.
21285         Reported by Michael Goffioul.
21286
21287 2010-02-21  Bruno Haible  <bruno@clisp.org>
21288
21289         * lib/stdio.in.h (obstack_printf): Fix typo.
21290
21291 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21292
21293         vc-list-files: use bzr ls's -R option
21294         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21295         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21296
21297 2010-02-21  Jim Meyering  <meyering@redhat.com>
21298
21299         init.sh: fix EXEEXT shims to work also for names like test-prog
21300         * tests/init.sh: Re-exec a better shell, when needed.
21301         If the current shell lacks support for posix $(...), an init.sh-using
21302         test will now try to find a shell that supports that.  If EXEEXT is
21303         nonempty, we also require support for hyphen-in-alias-name and shell
21304         substitutions like ${var#glob}.  Failure to find such a shell results
21305         in a skipped test.
21306
21307 2010-02-21  Bruno Haible  <bruno@clisp.org>
21308
21309         Really work around around "broken pipe" error message from bash 3.2.
21310         * gnulib-tool (func_reset_sigpipe): Remove function.
21311         (echo): In bash 3.2, define to a function that uses printf.
21312         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21313
21314 2010-02-20  Bruno Haible  <bruno@clisp.org>
21315
21316         Restore support for automake 1.9.6 with autoconf 2.61.
21317         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21318         Reported by James Youngman <jay@gnu.org>.
21319
21320 2010-02-20  Bruno Haible  <bruno@clisp.org>
21321
21322         Improve *printf warning condition.
21323         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21324         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21325         and the function is overridden due to SIGPIPE emulation.
21326
21327 2010-02-20  Bruno Haible  <bruno@clisp.org>
21328
21329         * lib/stdio.in.h: Tweak comments.
21330
21331 2010-02-19  Bruno Haible  <bruno@clisp.org>
21332
21333         Make it easier to find modules. New gnulib-tool option '--find'.
21334         * gnulib-tool: New option --find.
21335         (func_usage): Document it.
21336         (func_sanitize_modulelist): New function, extracted from
21337         func_all_modules.
21338         (func_all_modules): Invoke it.
21339         * doc/gnulib-tool.texi (Which modules?): New node.
21340
21341 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21342
21343         * lib/sys_select.in.h: Provide select replacement even if
21344         sys/select.h exists on a system, for Interix.
21345
21346 2010-02-18  Jim Meyering  <meyering@redhat.com>
21347
21348         init.sh: don't use $(...) just yet
21349         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21350         to accommodate e.g., Solaris' /bin/sh.
21351
21352 2010-02-17  Bruno Haible  <bruno@clisp.org>
21353
21354         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21355         Reported by Ludovic Courtès <ludo@gnu.org>.
21356
21357 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21358
21359         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21360         linking with -lintl.
21361
21362 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21363
21364         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21365         if not provided by the system's netdb.h.  Reported by
21366         ludo@gnu.org (Ludovic Courtès).
21367
21368 2010-02-15  Jim Meyering  <meyering@redhat.com>
21369
21370         init.sh: improve portability and efficiency
21371         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21372         "dummy" in a for loop.
21373         Use '!', not '^' to select the complement of a character set used
21374         in a "case" statement.
21375         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21376         Suggestions from Eric Blake.
21377
21378         init.sh: automatically accommodate programs with the .exe suffix
21379         Automatically arrange for an invocation of "prog" to execute the
21380         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21381         may use the simpler "prog", yet still work when built on a system
21382         that requires specifying the added suffix.
21383         Do this by constructing a function named "prog" that invokes
21384         "prog.exe" for each .exe file in selected directories.
21385         * tests/init.sh (find_exe_basenames_): New function.
21386         (create_exe_shim_functions_): New function.
21387         (path_prepend_): Use it.
21388
21389         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21390         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21391         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21392
21393 2010-02-14  Jim Meyering  <meyering@redhat.com>
21394
21395         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21396         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21397         (sc_prohibit_hash_pjw_without_use): New rule.
21398
21399         maint.mk: allow the default upload destination dir to be overridden
21400         * top/maint.mk (upload_dest_dir_): Define with a default that
21401         preserves the status quo.
21402         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21403         Reported by Peter Simons.
21404
21405         maint.mk: prohibit inclusion of "hash.h" without_use
21406         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21407
21408 2010-02-10  Jim Meyering  <meyering@redhat.com>
21409
21410         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21411         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21412
21413 2010-02-09  Eric Blake  <ebb9@byu.net>
21414         and Bruno Haible  <bruno@clisp.org>
21415
21416         obstack-printf-posix: ensure declaration
21417         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21418         extracted from gl_FUNC_OBSTACK_PRINTF.
21419         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21420         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21421         Likewise.
21422         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21423         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21424         0.
21425
21426 2010-02-08  Bruno Haible  <bruno@clisp.org>
21427
21428         gnulib-tool: Fix typo in 2010-02-07 commit.
21429         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21430         Reported by Eric Blake.
21431
21432 2010-02-07  Bruno Haible  <bruno@clisp.org>
21433
21434         gnulib-tool: Fix up caching patches.
21435         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21436         option --no-cache. Use associative arrays when supported by the shell.
21437         (sed_comments): New variable.
21438         (modcache): Renamed from do_cache.
21439         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21440         abbreviate unnecessarily.
21441         (have_associative): New variable.
21442         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21443         way also for ksh and zsh.
21444         (func_init_sed_convert_to_cache_statements): New function, extracted
21445         from func_cache_lookup_module. Add support for associative arrays.
21446         Don't set the c_MODULE_cached variable here. Ignore all lines before
21447         the first field header. Remove only the final newline, not all trailing
21448         newlines. Support empty fields correctly. Limit the use of 'eval' to
21449         assignments.
21450         (func_get_description, func_get_status, func_get_notice,
21451         func_get_applicability, func_get_filelist, func_get_dependencies,
21452         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21453         func_get_automake_snippet, func_get_include_directive,
21454         func_get_link_directive, func_get_license, func_get_maintainer):
21455         Update documentation. List the unoptimized code first. Add support for
21456         associative arrays. Limit the use of 'eval' to assignments.
21457         (func_get_applicability): Undo stylistic pessimisations.
21458         (func_get_automake_snippet, func_get_include_directive): Reduce code
21459         duplication.
21460         (func_modules_transitive_closure, func_modules_add_dummy,
21461         func_modules_notice, func_modules_to_filelist, func_add_file,
21462         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21463         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21464         func_create_testdir, func_create_megatestdir): Update documentation.
21465
21466 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21467
21468         * gnulib-tool (func_cache_lookup_module): Store the module name
21469         belonging to the cache variable; error out if two different
21470         module names map to the same cache variable name.
21471
21472 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21473
21474         gnulib-tool: Make caching optional.
21475         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21476         Update matching short versions of --no-changelog.
21477         (func_usage): Update.
21478         (sed_extract_cache_prog): Renamed from ...
21479         (sed_extract_prog): ... this; revert to old extraction script.
21480         (func_get_description, func_get_status)
21481         (func_get_notice, func_get_applicability, func_get_filelist)
21482         (func_get_dependencies, func_get_autoconf_early_snippet)
21483         (func_get_autoconf_snippet, func_get_automake_snippet)
21484         (func_get_include_directive, func_get_link_directive)
21485         (func_get_license, func_get_maintainer): If $do_cache is false,
21486         use old, non-caching extraction scripts.
21487         Suggestion by Bruno Haible.
21488
21489 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21490
21491         gnulib-tool: cache module metainformation.
21492         * gnulib-tool (sed_extract_prog): Match newline before each
21493         header, and rewrite header to a shell variable suffix.
21494         (func_cache_var, func_cache_lookup_module): New functions,
21495         to turn a module name into a cache variable prefix, and to
21496         look up and cache module metainformation.
21497         (func_get_description, func_get_status)
21498         (func_get_notice, func_get_applicability, func_get_filelist)
21499         (func_get_dependencies, func_get_autoconf_early_snippet)
21500         (func_get_autoconf_snippet, func_get_automake_snippet)
21501         (func_get_include_directive, func_get_link_directive)
21502         (func_get_license, func_get_maintainer): Use
21503         func_cache_lookup_module.
21504
21505 2010-02-07  Bruno Haible  <bruno@clisp.org>
21506
21507         fnctl: Fix missing dependency.
21508         * modules/fcntl (Depends-on): Add getdtablesize.
21509         Reported by John W. Eaton <jwe@gnu.org>.
21510
21511 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21512
21513         Argp: fix recognition of short alias options.
21514
21515         * lib/argp-parse.c (convert_options): Fix improper use of
21516         `|' between character values.
21517         * tests/test-argp.c (group1_option): New alias option
21518         --read (-r).
21519         (group1_parser): Special handling for 'r'.
21520         (test15): New test case.
21521         (test_fun): Add test15.
21522         * tests/test-argp-2.sh: Update expected --help and --usage
21523         outputs.
21524
21525 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21526
21527         * tests/test-argp.c: Fix indentation.
21528
21529 2010-02-04  Eric Blake  <ebb9@byu.net>
21530
21531         gettimeofday: expose type of second argument
21532         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21533         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21534         * tests/test-gettimeofday.c: Use it to silence warning.
21535         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21536         the issue.
21537
21538 2010-02-03  Jim Meyering  <meyering@redhat.com>
21539
21540         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21541         * lib/regcomp.c (TYPE_SIGNED): Define.
21542         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21543
21544         regcomp.c: avoid a new -Wshadow warning
21545         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21546
21547 2010-02-01  Jim Meyering  <meyering@redhat.com>
21548
21549         removing useless parentheses in cpp #define directives
21550         For motivation, see commit c0221df4, "define STREQ(a,b)
21551         consistently, removing useless parentheses"
21552         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21553         * lib/mountlist.c (MNT_IGNORE): Likewise.
21554         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21555
21556 2010-02-01  Eric Blake  <ebb9@byu.net>
21557
21558         sys_time: use link-warning
21559         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21560         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21561         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21562         * modules/sys_time (Depends-on): Add warn-on-use.
21563         (Makefile.am): Always build replacement.
21564         (configure.ac): Update substitutions.
21565         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21566         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21567         bother with SYS_TIME_H.
21568         * modules/gettimeofday (configure.ac): Declare indicator.
21569         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21570         in use.
21571
21572         closein-tests: silence compiler warning
21573         * tests/test-closein.c (main): Ignore fread result.
21574         * modules/closein-tests (Depends-on): Add ignore-value.
21575
21576         tests: silence warning about system return
21577         * tests/test-areadlink-with-size.c (main): Ignore system result.
21578         * tests/test-areadlink.c (main): Likewise.
21579         * tests/test-areadlinkat-with-size.c (main): Likewise.
21580         * tests/test-areadlinkat.c (main): Likewise.
21581         * tests/test-canonicalize-lgpl.c (main): Likewise.
21582         * tests/test-canonicalize.c (main): Likewise.
21583         * tests/test-chown.c (main): Likewise.
21584         * tests/test-fchownat.c (main): Likewise.
21585         * tests/test-fdutimensat.c (main): Likewise.
21586         * tests/test-fstatat.c (main): Likewise.
21587         * tests/test-futimens.c (main): Likewise.
21588         * tests/test-lchown.c (main): Likewise.
21589         * tests/test-link.c (main): Likewise.
21590         * tests/test-linkat.c (main): Likewise.
21591         * tests/test-lstat.c (main): Likewise.
21592         * tests/test-mkdir.c (main): Likewise.
21593         * tests/test-mkdirat.c (main): Likewise.
21594         * tests/test-mkfifo.c (main): Likewise.
21595         * tests/test-mkfifoat.c (main): Likewise.
21596         * tests/test-mknod.c (main): Likewise.
21597         * tests/test-readlink.c (main): Likewise.
21598         * tests/test-remove.c (main): Likewise.
21599         * tests/test-rename.c (main): Likewise.
21600         * tests/test-renameat.c (main): Likewise.
21601         * tests/test-rmdir.c (main): Likewise.
21602         * tests/test-symlink.c (main): Likewise.
21603         * tests/test-symlinkat.c (main): Likewise.
21604         * tests/test-unlink.c (main): Likewise.
21605         * tests/test-unlinkat.c (main): Likewise.
21606         * tests/test-utimens.c (main): Likewise.
21607         * tests/test-utimensat.c (main): Likewise.
21608         * modules/areadlink-tests (Depends-on): Add ignore-value.
21609         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21610         * modules/areadlinkat-tests (Depends-on): Likewise.
21611         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21612         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21613         * modules/canonicalize-tests (Depends-on): Likewise.
21614         * modules/chown-tests (Depends-on): Likewise.
21615         * modules/fdutimensat-tests (Depends-on): Likewise.
21616         * modules/futimens-tests (Depends-on): Likewise.
21617         * modules/lchown-tests (Depends-on): Likewise.
21618         * modules/link-tests (Depends-on): Likewise.
21619         * modules/linkat-tests (Depends-on): Likewise.
21620         * modules/lstat-tests (Depends-on): Likewise.
21621         * modules/mkdir-tests (Depends-on): Likewise.
21622         * modules/mkfifo-tests (Depends-on): Likewise.
21623         * modules/mkfifoat-tests (Depends-on): Likewise.
21624         * modules/mknod-tests (Depends-on): Likewise.
21625         * modules/openat-tests (Depends-on): Likewise.
21626         * modules/readlink-tests (Depends-on): Likewise.
21627         * modules/remove-tests (Depends-on): Likewise.
21628         * modules/rename-tests (Depends-on): Likewise.
21629         * modules/renameat-tests (Depends-on): Likewise.
21630         * modules/rmdir-tests (Depends-on): Likewise.
21631         * modules/symlink-tests (Depends-on): Likewise.
21632         * modules/symlinkat-tests (Depends-on): Likewise.
21633         * modules/unlink-tests (Depends-on): Likewise.
21634         * modules/utimens-tests (Depends-on): Likewise.
21635         * modules/utimensat-tests (Depends-on): Likewise.
21636
21637 2010-01-31  Bruno Haible  <bruno@clisp.org>
21638
21639         Perform the same test for many <math.h> functions.
21640         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21641         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21642         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21643         of gl_MATHFUNC.
21644         * modules/acos (configure.ac): Likewise.
21645         * modules/asin (configure.ac): Likewise.
21646         * modules/atan (configure.ac): Likewise.
21647         * modules/atan2 (configure.ac): Likewise.
21648         * modules/cbrt (configure.ac): Likewise.
21649         * modules/copysign (configure.ac): Likewise.
21650         * modules/cos (configure.ac): Likewise.
21651         * modules/cosh (configure.ac): Likewise.
21652         * modules/erf (configure.ac): Likewise.
21653         * modules/erfc (configure.ac): Likewise.
21654         * modules/exp (configure.ac): Likewise.
21655         * modules/fmod (configure.ac): Likewise.
21656         * modules/hypot (configure.ac): Likewise.
21657         * modules/j0 (configure.ac): Likewise.
21658         * modules/j1 (configure.ac): Likewise.
21659         * modules/jn (configure.ac): Likewise.
21660         * modules/lgamma (configure.ac): Likewise.
21661         * modules/log (configure.ac): Likewise.
21662         * modules/log10 (configure.ac): Likewise.
21663         * modules/log1p (configure.ac): Likewise.
21664         * modules/pow (configure.ac): Likewise.
21665         * modules/remainder (configure.ac): Likewise.
21666         * modules/sin (configure.ac): Likewise.
21667         * modules/sinh (configure.ac): Likewise.
21668         * modules/tan (configure.ac): Likewise.
21669         * modules/tanh (configure.ac): Likewise.
21670         * modules/y0 (configure.ac): Likewise.
21671         * modules/y1 (configure.ac): Likewise.
21672         * modules/yn (configure.ac): Likewise.
21673         Suggested by Paolo Bonzini.
21674
21675 2010-01-31  Bruno Haible  <bruno@clisp.org>
21676
21677         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21678
21679 2010-01-31  Bruno Haible  <bruno@clisp.org>
21680
21681         Work around getdelim() bug on FreeBSD 8.0.
21682         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21683         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21684         not work.
21685         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21686         is 1.
21687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21688         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21689         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21690         a non-zero size.
21691         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21692
21693 2010-01-31  Bruno Haible  <bruno@clisp.org>
21694
21695         Work around getline() bug on FreeBSD 8.0.
21696         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21697         and a non-zero size.
21698         * tests/test-getline.c (main): Likewise.
21699         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21700         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21701
21702 2010-01-28  Eric Blake  <ebb9@byu.net>
21703
21704         regex: fix build failure
21705         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21706         platforms.
21707
21708 2010-01-28  Jim Meyering  <meyering@redhat.com>
21709
21710         regex: do not ignore memory allocation failure
21711         * lib/regex_internal.c (create_cd_newstate): Detect
21712         re_node_set_init_copy failure.   Extracted from glibc commit
21713         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21714
21715         regex: sync more white-space changes from libc
21716         * lib/regex_internal.c: White-space only changes.
21717         * lib/regexec.c: Likewise.
21718
21719         regex: add many uses of __attribute_warn_unused_result__
21720         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21721         * lib/regexec.c: Likewise.
21722         Extracted from a messy glibc commit.
21723
21724         regcomp.c: spelling and merge-artifact from glibc
21725         * lib/regcomp.c: Merge remainder of glibc's
21726         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21727
21728         regcomp.c: sync white-space changes from glibc
21729         * lib/regcomp.c: Merge to accommodate white space
21730         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21731
21732         regcomp.c: do not ignore internal return values
21733         * lib/regcomp.c: Do not ignore internal return values.
21734         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21735         but without its white-space changes and spelling fixes.
21736
21737         regex_internal.h: define __attribute_warn_unused_result__
21738         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21739
21740         maint: add a syntax-check rule to check for vulnerable Makefile.in
21741         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21742
21743 2010-01-27  Jim Meyering  <meyering@redhat.com>
21744
21745         ncftpput-ftp: clean up spaces
21746         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21747         Remove trailing blanks.
21748
21749 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21750
21751         * build-aux/git-version-gen: Fix copyright statement.
21752         * build-aux/gnupload: Likewise.
21753         * tests/test-arcfour.c: Likewise.
21754         * tests/test-arctwo.c: Likewise.
21755         * tests/test-count-one-bits.c: Likewise.
21756         * tests/test-crc.c: Likewise.
21757         * tests/test-des.c: Likewise.
21758         * tests/test-gc-arcfour.c: Likewise.
21759         * tests/test-gc-arctwo.c: Likewise.
21760         * tests/test-gc-des.c: Likewise.
21761         * tests/test-gc-hmac-md5.c: Likewise.
21762         * tests/test-gc-hmac-sha1.c: Likewise.
21763         * tests/test-gc-md2.c: Likewise.
21764         * tests/test-gc-md4.c: Likewise.
21765         * tests/test-gc-md5.c: Likewise.
21766         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21767         * tests/test-gc-rijndael.c: Likewise.
21768         * tests/test-gc-sha1.c: Likewise.
21769         * tests/test-gc.c: Likewise.
21770         * tests/test-gethostname.c: Likewise.
21771         * tests/test-gettimeofday.c: Likewise.
21772         * tests/test-hash.c: Likewise.
21773         * tests/test-hmac-md5.c: Likewise.
21774         * tests/test-hmac-sha1.c: Likewise.
21775         * tests/test-md2.c: Likewise.
21776         * tests/test-md4.c: Likewise.
21777         * tests/test-md5.c: Likewise.
21778         * tests/test-memchr.c: Likewise.
21779         * tests/test-memchr2.c: Likewise.
21780         * tests/test-memcmp.c: Likewise.
21781         * tests/test-memmem.c: Likewise.
21782         * tests/test-memrchr.c: Likewise.
21783         * tests/test-rawmemchr.c: Likewise.
21784         * tests/test-read-file.c: Likewise.
21785         * tests/test-rijndael.c: Likewise.
21786         * tests/test-sockets.c: Likewise.
21787         * tests/test-strchrnul.c: Likewise.
21788         * tests/test-strstr.c: Likewise.
21789         * tests/test-strtod.c: Likewise.
21790         * build-aux/ncftpput-ftp: Likewise.
21791
21792 2010-01-26  Eric Blake  <ebb9@byu.net>
21793
21794         ignore-value: update recommended header name
21795         * modules/ignore-value (Include): Only use <> for headers that
21796         exist in glibc.
21797
21798 2010-01-26  Jim Meyering  <meyering@redhat.com>
21799
21800         test-userspec.c: avoid compiler warnings
21801         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21802         and "initialization discards qualifiers..." warnings.
21803         Put the first "uid" in its own scope, and make char* members "const".
21804
21805 2010-01-25  Bruno Haible  <bruno@clisp.org>
21806
21807         gnulib-tool: Make warning diagnostics consistent.
21808         * gnulib-tool (func_warning): New function.
21809         Use it everywhere where gnulib-tool produces output to stderr and it is
21810         not a fatal error.
21811
21812 2010-01-25  Bruno Haible  <bruno@clisp.org>
21813
21814         Fix test dependencies.
21815         * modules/xstrtol-tests (Depends-on): Add inttypes.
21816         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21817
21818 2010-01-25 Pádraig Brady <P@draigBrady.com>
21819
21820         syntax-check: detect incorrect boolean macro values in config.h
21821         * modules/maintainer-makefile (configure.ac): Parameterize the location
21822         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21823         The logic is from Eric Blake and the location indicated by Jim Meyering.
21824         Note the more natural CONFIG_HEADER name is prohibited by automake
21825         for backwards compatibility reasons.
21826         * top/maint.mk (sc_Wundef_boolean): New rule.
21827
21828 2010-01-25  Jim Meyering  <meyering@redhat.com>
21829
21830         bootstrap: detect MacOS 10.6's shasum, too
21831         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21832         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21833
21834 2010-01-23  Jim Meyering  <meyering@redhat.com>
21835
21836         xstrtoll: new module
21837         * modules/xstrtoll: New file.
21838         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21839         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21840         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21841         ./configure fails if you use this module and lack "long long".
21842         * modules/xstrtoll-tests: New module.
21843         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21844         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21845         new init.sh-based test framework.
21846
21847 2010-01-24  Bruno Haible  <bruno@clisp.org>
21848
21849         Tests for module 'yn'.
21850         * modules/yn-tests: New file.
21851         * tests/test-yn.c: New file.
21852
21853         Tests for module 'y1'.
21854         * modules/y1-tests: New file.
21855         * tests/test-y1.c: New file.
21856
21857         Tests for module 'y0'.
21858         * modules/y0-tests: New file.
21859         * tests/test-y0.c: New file.
21860
21861         Tests for module 'tanh'.
21862         * modules/tanh-tests: New file.
21863         * tests/test-tanh.c: New file.
21864
21865         Tests for module 'tan'.
21866         * modules/tan-tests: New file.
21867         * tests/test-tan.c: New file.
21868
21869         Tests for module 'sqrt'.
21870         * modules/sqrt-tests: New file.
21871         * tests/test-sqrt.c: New file.
21872
21873         Tests for module 'sinh'.
21874         * modules/sinh-tests: New file.
21875         * tests/test-sinh.c: New file.
21876
21877         Tests for module 'sin'.
21878         * modules/sin-tests: New file.
21879         * tests/test-sin.c: New file.
21880
21881         Tests for module 'rint'.
21882         * modules/rint-tests: New file.
21883         * tests/test-rint.c: New file.
21884
21885         Tests for module 'remainder'.
21886         * modules/remainder-tests: New file.
21887         * tests/test-remainder.c: New file.
21888
21889         Tests for module 'pow'.
21890         * modules/pow-tests: New file.
21891         * tests/test-pow.c: New file.
21892
21893         Tests for module 'nextafter'.
21894         * modules/nextafter-tests: New file.
21895         * tests/test-nextafter.c: New file.
21896
21897         Tests for module 'modf'.
21898         * modules/modf-tests: New file.
21899         * tests/test-modf.c: New file.
21900
21901         Tests for module 'logb'.
21902         * modules/logb-tests: New file.
21903         * tests/test-logb.c: New file.
21904
21905         Tests for module 'log1p'.
21906         * modules/log1p-tests: New file.
21907         * tests/test-log1p.c: New file.
21908
21909         Tests for module 'log10'.
21910         * modules/log10-tests: New file.
21911         * tests/test-log10.c: New file.
21912
21913         Tests for module 'log'.
21914         * modules/log-tests: New file.
21915         * tests/test-log.c: New file.
21916
21917         Tests for module 'lgamma'.
21918         * modules/lgamma-tests: New file.
21919         * tests/test-lgamma.c: New file.
21920
21921         Tests for module 'ldexp'.
21922         * modules/ldexp-tests: New file.
21923         * tests/test-ldexp.c: New file.
21924
21925         Tests for module 'jn'.
21926         * modules/jn-tests: New file.
21927         * tests/test-jn.c: New file.
21928
21929         Tests for module 'j1'.
21930         * modules/j1-tests: New file.
21931         * tests/test-j1.c: New file.
21932
21933         Tests for module 'j0'.
21934         * modules/j0-tests: New file.
21935         * tests/test-j0.c: New file.
21936
21937         Tests for module 'hypot'.
21938         * modules/hypot-tests: New file.
21939         * tests/test-hypot.c: New file.
21940
21941         Tests for module 'fmod'.
21942         * modules/fmod-tests: New file.
21943         * tests/test-fmod.c: New file.
21944
21945         Tests for module 'fabs'.
21946         * modules/fabs-tests: New file.
21947         * tests/test-fabs.c: New file.
21948
21949         Tests for module 'exp'.
21950         * modules/exp-tests: New file.
21951         * tests/test-exp.c: New file.
21952
21953         Tests for module 'erfc'.
21954         * modules/erfc-tests: New file.
21955         * tests/test-erfc.c: New file.
21956
21957         Tests for module 'erf'.
21958         * modules/erf-tests: New file.
21959         * tests/test-erf.c: New file.
21960
21961         Tests for module 'cosh'.
21962         * modules/cosh-tests: New file.
21963         * tests/test-cosh.c: New file.
21964
21965         Tests for module 'cos'.
21966         * modules/cos-tests: New file.
21967         * tests/test-cos.c: New file.
21968
21969         Tests for module 'copysign'.
21970         * modules/copysign-tests: New file.
21971         * tests/test-copysign.c: New file.
21972
21973         Tests for module 'cbrt'.
21974         * modules/cbrt-tests: New file.
21975         * tests/test-cbrt.c: New file.
21976
21977         Tests for module 'atan2'.
21978         * modules/atan2-tests: New file.
21979         * tests/test-atan2.c: New file.
21980
21981         Tests for module 'atan'.
21982         * modules/atan-tests: New file.
21983         * tests/test-atan.c: New file.
21984
21985         Tests for module 'asin'.
21986         * modules/asin-tests: New file.
21987         * tests/test-asin.c: New file.
21988
21989         Tests for module 'acos'.
21990         * modules/acos-tests: New file.
21991         * tests/test-acos.c: New file.
21992
21993 2010-01-24  Bruno Haible  <bruno@clisp.org>
21994
21995         Fix tests for common <math.h> functions.
21996         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21997         code snippet that references the function pointer, rather than merely
21998         calling the function. Substitute the FUNC_LIBM variable.
21999         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22000         * modules/acos (configure.ac): Likewise.
22001         * modules/asin (configure.ac): Likewise.
22002         * modules/atan (configure.ac): Likewise.
22003         * modules/atan2 (configure.ac): Likewise.
22004         * modules/cbrt (configure.ac): Likewise.
22005         * modules/copysign (configure.ac): Likewise.
22006         * modules/cos (configure.ac): Likewise.
22007         * modules/cosh (configure.ac): Likewise.
22008         * modules/erf (configure.ac): Likewise.
22009         * modules/erfc (configure.ac): Likewise.
22010         * modules/exp (configure.ac): Likewise.
22011         * modules/fabs (configure.ac): Likewise.
22012         * modules/fmod (configure.ac): Likewise.
22013         * modules/hypot (configure.ac): Likewise.
22014         * modules/j0 (configure.ac): Likewise.
22015         * modules/j1 (configure.ac): Likewise.
22016         * modules/jn (configure.ac): Likewise.
22017         * modules/ldexp (configure.ac): Likewise.
22018         * modules/lgamma (configure.ac): Likewise.
22019         * modules/log (configure.ac): Likewise.
22020         * modules/log10 (configure.ac): Likewise.
22021         * modules/log1p (configure.ac): Likewise.
22022         * modules/logb (configure.ac): Likewise.
22023         * modules/modf (configure.ac): Likewise.
22024         * modules/nextafter (configure.ac): Likewise.
22025         * modules/pow (configure.ac): Likewise.
22026         * modules/remainder (configure.ac): Likewise.
22027         * modules/rint (configure.ac): Likewise.
22028         * modules/sin (configure.ac): Likewise.
22029         * modules/sinh (configure.ac): Likewise.
22030         * modules/tan (configure.ac): Likewise.
22031         * modules/tanh (configure.ac): Likewise.
22032         * modules/y0 (configure.ac): Likewise.
22033         * modules/y1 (configure.ac): Likewise.
22034         * modules/yn (configure.ac): Likewise.
22035
22036 2010-01-24  Bruno Haible  <bruno@clisp.org>
22037
22038         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22039         * tests/test-acosl.c (x): New variable.
22040         (main): Store argument in x and fetch it from x.
22041         * tests/test-asinl.c (x): New variable.
22042         (main): Store argument in x and fetch it from x.
22043         * tests/test-atanl.c (x): New variable.
22044         (main): Store argument in x and fetch it from x.
22045         * tests/test-cosl.c (x): New variable.
22046         (main): Store argument in x and fetch it from x.
22047         * tests/test-expl.c (x): New variable.
22048         (main): Store argument in x and fetch it from x.
22049         * tests/test-logl.c (x): New variable.
22050         (main): Store argument in x and fetch it from x.
22051         * tests/test-sinl.c (x): New variable.
22052         (main): Store argument in x and fetch it from x.
22053         * tests/test-sqrtl.c (x): New variable.
22054         (main): Store argument in x and fetch it from x.
22055         * tests/test-tanl.c (x): New variable.
22056         (main): Store argument in x and fetch it from x.
22057
22058 2010-01-24  Bruno Haible  <bruno@clisp.org>
22059
22060         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22061         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22062         assignments to the initial TESTS_ENVIRONMENT.
22063         * doc/gnulib.texi (Unit test modules): Document it.
22064         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22065         TESTS_ENVIRONMENT.
22066         * modules/btowc-tests (Makefile.am): Likewise.
22067         * modules/c-stack-tests (Makefile.am): Likewise.
22068         * modules/c-strcase-tests (Makefile.am): Likewise.
22069         * modules/copy-file-tests (Makefile.am): Likewise.
22070         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22071         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22072         * modules/mbrtowc-tests (Makefile.am): Likewise.
22073         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22074         * modules/mbscasestr-tests (Makefile.am): Likewise.
22075         * modules/mbschr-tests (Makefile.am): Likewise.
22076         * modules/mbscspn-tests (Makefile.am): Likewise.
22077         * modules/mbsinit-tests (Makefile.am): Likewise.
22078         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22079         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22080         * modules/mbspbrk-tests (Makefile.am): Likewise.
22081         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22082         * modules/mbsrchr-tests (Makefile.am): Likewise.
22083         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22084         * modules/mbsspn-tests (Makefile.am): Likewise.
22085         * modules/mbsstr-tests (Makefile.am): Likewise.
22086         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22087         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22088         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22089         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22090         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22091         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22092         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22093         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22094         * modules/wcrtomb-tests (Makefile.am): Likewise.
22095         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22096         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22097         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22098         assignments from TESTS_ENVIRONMENT.
22099         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22100         augmentation.
22101         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22102         * modules/atexit-tests (Makefile.am): Likewise.
22103         * modules/binary-io-tests (Makefile.am): Likewise.
22104         * modules/closein-tests (Makefile.am): Likewise.
22105         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22106         * modules/exclude-tests (Makefile.am): Likewise.
22107         * modules/fflush-tests (Makefile.am): Likewise.
22108         * modules/fpending-tests (Makefile.am): Likewise.
22109         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22110         * modules/freadahead-tests (Makefile.am): Likewise.
22111         * modules/freadptr-tests (Makefile.am): Likewise.
22112         * modules/freadseek-tests (Makefile.am): Likewise.
22113         * modules/fseek-tests (Makefile.am): Likewise.
22114         * modules/fseeko-tests (Makefile.am): Likewise.
22115         * modules/ftell-tests (Makefile.am): Likewise.
22116         * modules/ftello-tests (Makefile.am): Likewise.
22117         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22118         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22119         * modules/lseek-tests (Makefile.am): Likewise.
22120         * modules/parse-duration-tests (Makefile.am): Likewise.
22121         * modules/perror-tests (Makefile.am): Likewise.
22122         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22123         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22124         * modules/pipe-tests (Makefile.am): Likewise.
22125         * modules/pread-tests (Makefile.am): Likewise.
22126         * modules/printf-posix-tests (Makefile.am): Likewise.
22127         * modules/select-tests (Makefile.am): Likewise.
22128         * modules/sigpipe-tests (Makefile.am): Likewise.
22129         * modules/tsearch-tests (Makefile.am): Likewise.
22130         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22131         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22132         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22133         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22134         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22135         * modules/version-etc-tests (Makefile.am): Likewise.
22136         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22137         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22138         * modules/xalloc-die-tests (Makefile.am): Likewise.
22139         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22140         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22141         * modules/xstrtol-tests (Makefile.am): Likewise.
22142         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22143         * modules/yesno-tests (Makefile.am): Likewise.
22144         Suggested by Jim Meyering.
22145
22146 2010-01-24  Bruno Haible  <bruno@clisp.org>
22147
22148         More documentation.
22149         * doc/gnulib.texi (Writing modules): New chapter.
22150         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22151         the new chapter.
22152
22153 2010-01-24  Jim Meyering  <meyering@redhat.com>
22154
22155         maint.mk: do not prepend "./" after filtering
22156         * top/maint.mk (_prepend_srcdir_prefix): New variable
22157         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22158         "./" when $(srcdir) is ".".
22159
22160         define STREQ(a,b) consistently, removing useless parentheses
22161         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22162         since the only risk is that "a" or "b" contains an unparenthesized
22163         comma, but if either did that, STREQ would have 3 or more arguments.
22164         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22165         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22166         * lib/hash-triple.c (STREQ): Likewise.
22167         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22168         * lib/getugroups.c (STREQ): Likewise.
22169
22170 2010-01-23  Jim Meyering  <meyering@redhat.com>
22171
22172         maint.mk: fix syntax-check in a non-srcdir build directory
22173         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22174         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22175
22176 2010-01-22  Jim Meyering  <meyering@redhat.com>
22177
22178         userspec: add unit tests
22179         * tests/test-userspec.c: New file.
22180         * modules/userspec-tests: Likewise.
22181
22182 2010-01-21  Jim Meyering  <meyering@redhat.com>
22183
22184         maint.mk: handle source file names containing "." robustly
22185         * top/maint.mk (_dot_escaped_srcdir): Define.
22186         (VC_LIST): Use it in LHS of sed substitution.
22187
22188 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22189
22190         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22191         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22192         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22193         from a non-srcdir build.
22194
22195 2010-01-20  Eric Blake  <ebb9@byu.net>
22196
22197         warn-on-use: use instead of link-warning
22198         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22199         * modules/unistd (Depends-on, Makefile.am): Likewise.
22200         * modules/arpa_inet (Depends-on): Replace link-warning with
22201         warn-on-use.
22202         (Makefile.am): Update rules accordingly.
22203         * modules/ctype (Depends-on, Makefile.am): Likewise.
22204         * modules/dirent (Depends-on, Makefile.am): Likewise.
22205         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22206         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22207         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22208         * modules/locale (Depends-on, Makefile.am): Likewise.
22209         * modules/math (Depends-on, Makefile.am): Likewise.
22210         * modules/search (Depends-on, Makefile.am): Likewise.
22211         * modules/signal (Depends-on, Makefile.am): Likewise.
22212         * modules/spawn (Depends-on, Makefile.am): Likewise.
22213         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22214         * modules/string (Depends-on, Makefile.am): Likewise.
22215         * modules/strings (Depends-on, Makefile.am): Likewise.
22216         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22217         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22218         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22219         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22220         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22221         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22222         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22223         * modules/wchar (Depends-on, Makefile.am): Likewise.
22224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22225         should be poisoned.
22226         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22227         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22228         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22229         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22230         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22231         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22232         * m4/math_h.m4 (gl_MATH_H): Likewise.
22233         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22234         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22235         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22236         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22237         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22238         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22239         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22240         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22241         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22242         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22245         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22246         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22247         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22248         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22249         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22250         GL_LINK_WARNING.
22251         * lib/ctype.in.h: Likewise.
22252         * lib/dirent.in.h: Likewise.
22253         * lib/fcntl.in.h: Likewise.
22254         * lib/inttypes.in.h: Likewise.
22255         * lib/langinfo.in.h: Likewise.
22256         * lib/locale.in.h: Likewise.
22257         * lib/math.in.h: Likewise.
22258         * lib/search.in.h: Likewise.
22259         * lib/signal.in.h: Likewise.
22260         * lib/spawn.in.h: Likewise.
22261         * lib/stdio.in.h: Likewise.
22262         * lib/stdlib.in.h: Likewise.
22263         * lib/string.in.h: Likewise.
22264         * lib/strings.in.h: Likewise.
22265         * lib/sys_file.in.h: Likewise.
22266         * lib/sys_ioctl.in.h: Likewise.
22267         * lib/sys_select.in.h: Likewise.
22268         * lib/sys_socket.in.h: Likewise.
22269         * lib/sys_stat.in.h: Likewise.
22270         * lib/sys_times.in.h: Likewise.
22271         * lib/sys_utsname.in.h: Likewise.
22272         * lib/unistd.in.h: Likewise.
22273         * lib/wchar.in.h: Likewise.
22274
22275 2010-01-20  Bruno Haible  <bruno@clisp.org>
22276
22277         Avoid duplicate -lm.
22278         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22279         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22281         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22282         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22283         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22284         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22285         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22286         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22287         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22288         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22289         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22290         Reported by Paolo Bonzini.
22291
22292 2010-01-19  Bruno Haible  <bruno@clisp.org>
22293
22294         langinfo, nl_langinfo: Relicense under LGPLv2+.
22295         * modules/langinfo (License): Change to LGPLv2+.
22296         * modules/nl_langinfo (License): Likewise.
22297         Patch by David Lutterkort <lutter@redhat.com>.
22298
22299 2010-01-19  Bruno Haible  <bruno@clisp.org>
22300
22301         Avoid compilation error with cc on OSF/1 5.1.
22302         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22303         statement, not before.
22304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22305
22306 2010-01-18  Bruno Haible  <bruno@clisp.org>
22307
22308         Avoid a link error due to the __printf__ symbol.
22309         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22310         and 2.6.x.
22311         (__format__, __printf__): Remove definitions.
22312         * lib/argp-fmtstream.h: Likewise.
22313         * lib/argp.h: Likewise.
22314         * lib/error.h: Likewise.
22315         * lib/vasnprintf.h: Likewise.
22316         * lib/xprintf.h: Likewise.
22317         * lib/xvasprintf.h: Likewise.
22318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22319
22320 2010-01-18  Bruno Haible  <bruno@clisp.org>
22321
22322         Tests for module 'tanl'.
22323         * modules/tanl-tests: New file.
22324         * tests/test-tanl.c: New file.
22325
22326         Tests for module 'sqrtl'.
22327         * modules/sqrtl-tests: New file.
22328         * tests/test-sqrtl.c: New file.
22329
22330         Tests for module 'sinl'.
22331         * modules/sinl-tests: New file.
22332         * tests/test-sinl.c: New file.
22333
22334         Tests for module 'logl'.
22335         * modules/logl-tests: New file.
22336         * tests/test-logl.c: New file.
22337
22338         Tests for module 'expl'.
22339         * modules/expl-tests: New file.
22340         * tests/test-expl.c: New file.
22341
22342         Tests for module 'cosl'.
22343         * modules/cosl-tests: New file.
22344         * tests/test-cosl.c: New file.
22345
22346         Tests for module 'atanl'.
22347         * modules/atanl-tests: New file.
22348         * tests/test-atanl.c: New file.
22349
22350         Tests for module 'asinl'.
22351         * modules/asinl-tests: New file.
22352         * tests/test-asinl.c: New file.
22353
22354         Tests for module 'acosl'.
22355         * modules/acosl-tests: New file.
22356         * tests/test-acosl.c: New file.
22357
22358         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22359         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22360         tanl): Use the standard gnulib idiom.
22361         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22362         * lib/sinl.c: Likewise.
22363         * lib/tanl.c: Don't include trigl.c.
22364         (kernel_tanl): Make static.
22365         * lib/sincosl.c: Include trigl.h first.
22366         * lib/trigl.c: Likewise.
22367         * m4/acosl.m4: New file.
22368         * m4/asinl.m4: New file.
22369         * m4/atanl.m4: New file.
22370         * m4/cosl.m4: New file.
22371         * m4/expl.m4: New file.
22372         * m4/logl.m4: New file.
22373         * m4/sinl.m4: New file.
22374         * m4/sqrtl.m4: New file.
22375         * m4/tanl.m4: New file.
22376         * m4/mathl.m4: Remove file.
22377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22378         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22379         Don't initialize GNULIB_MATHL.
22380         * modules/acosl: New file.
22381         * modules/asinl: New file.
22382         * modules/atanl: New file.
22383         * modules/cosl: New file.
22384         * modules/expl: New file.
22385         * modules/logl: New file.
22386         * modules/sinl: New file.
22387         * modules/sqrtl: New file.
22388         * modules/tanl: New file.
22389         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22390         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22391         substitute GNULIB_MATHL.
22392         * modules/mathl: Rewritten.
22393         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22394         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22395         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22396         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22397         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22398         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22399         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22400         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22401         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22402
22403 2010-01-18  Bruno Haible  <bruno@clisp.org>
22404
22405         sqrt: Make gl_FUNC_SQRT requirable.
22406         * m4/sqrt.m4: New file.
22407         * modules/sqrt (Files): Add it.
22408         (configure.ac): Invoke gl_FUNC_SQRT.
22409
22410 2010-01-18  Bruno Haible  <bruno@clisp.org>
22411
22412         New modules for common <math.h> functions.
22413         * m4/mathfunc.m4: New file.
22414         * modules/acos: New file.
22415         * modules/asin: New file.
22416         * modules/atan: New file.
22417         * modules/atan2: New file.
22418         * modules/cbrt: New file.
22419         * modules/copysign: New file.
22420         * modules/cos: New file.
22421         * modules/cosh: New file.
22422         * modules/erf: New file.
22423         * modules/erfc: New file.
22424         * modules/exp: New file.
22425         * modules/fabs: New file.
22426         * modules/fmod: New file.
22427         * modules/hypot: New file.
22428         * modules/j0: New file.
22429         * modules/j1: New file.
22430         * modules/jn: New file.
22431         * modules/ldexp: New file.
22432         * modules/lgamma: New file.
22433         * modules/log: New file.
22434         * modules/log10: New file.
22435         * modules/log1p: New file.
22436         * modules/logb: New file.
22437         * modules/modf: New file.
22438         * modules/nextafter: New file.
22439         * modules/pow: New file.
22440         * modules/remainder: New file.
22441         * modules/rint: New file.
22442         * modules/sin: New file.
22443         * modules/sinh: New file.
22444         * modules/sqrt: New file.
22445         * modules/tan: New file.
22446         * modules/tanh: New file.
22447         * modules/y0: New file.
22448         * modules/y1: New file.
22449         * modules/yn: New file.
22450         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22451         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22452         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22453         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22454         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22455         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22456         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22457         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22458         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22459         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22460         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22461         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22462         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22463         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22464         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22465         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22466         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22467         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22468         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22469         * doc/posix-functions/log.texi: Mention the 'log' module.
22470         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22471         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22472         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22473         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22474         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22475         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22476         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22477         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22478         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22479         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22480         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22481         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22482         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22483         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22484         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22485         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22486
22487 2010-01-18  Jim Meyering  <meyering@redhat.com>
22488
22489         ignore-value: relax license to LGPLv2+
22490         * modules/ignore-value (License): Relax to LGPLv2+.
22491
22492         getdate: don't leak when TZ contains two or more '"'s
22493         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22494         double quote in TZ after the first one.
22495
22496         readtokens: do not leak internal token_lengths buffer
22497         * lib/readtokens.c (readtokens): Free the local, lengths,
22498         when the supplied "token_lengths" parameter is NULL.
22499
22500 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22501
22502         Fix a couple of missing LIBTHREAD link failures on AIX.
22503         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22504         $(LIBTHREAD).
22505         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22506
22507         Link test-poll against INET_PTON_LIB.
22508         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22509         for inet_pton on Solaris 10.
22510
22511 2010-01-17  Bruno Haible  <bruno@clisp.org>
22512
22513         unistdio/*-sprintf: Fix typo in module description.
22514         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22515         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22516         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22517         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22518         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22519         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22520         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22522
22523 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22524
22525         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22526         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22527         variables in shell case patterns, for AIX and HP-UX ksh.
22528
22529         Split large sed scripts, for HP-UX sed.
22530         * modules/stdio: Split sed scripts around 50 sed commands,
22531         to avoid HP-UX limit of 99 commands, in the near future.
22532         * modules/string: Likewise.
22533         * modules/unistd: Likewise.
22534
22535         gnulib-tool: avoid writing in the current directory.
22536         * gnulib-tool (func_emit_lib_Makefile_am)
22537         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22538         not in the current directory, so concurrent gnulib-tool
22539         instances do not interfere.
22540
22541 2010-01-16  Jim Meyering  <meyering@redhat.com>
22542
22543         doc: update users.txt
22544         * users.txt: Add grep.
22545         (diffutils, gzip): Update URLs.
22546
22547 2010-01-12  Bruno Haible  <bruno@clisp.org>
22548
22549         posix_spawn: Avoid test failure on Cygwin.
22550         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22551         characters.
22552         Reported by Simon Josefsson.
22553
22554 2010-01-12  Bruno Haible  <bruno@clisp.org>
22555
22556         * tests/test-cond.c (main): When skipping the test, show the reason.
22557
22558 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22559
22560         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22561
22562 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22563
22564         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22565         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22566
22567 2010-01-12  Eric Blake  <ebb9@byu.net>
22568
22569         build: guarantee AS_VAR_IF
22570         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22571         (gl_AS_VAR_IF): Move...
22572         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22573         Reported by Simon Josefsson.
22574
22575 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22576
22577         * lib/stdio.in.h: Fix typo.
22578
22579 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22580
22581         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22582         libgpg-error.
22583
22584 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22585
22586         * tests/test-xalloc-die.sh: Use $EXEEXT.
22587
22588 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22589             Bruno Haible  <bruno@clisp.org>
22590
22591         getlogin, getlogin_r: Avoid test failure.
22592         * tests/test-getlogin.c: Include <stdio.h>.
22593         (main): Skip the test when the function fails because stdin is not a
22594         tty.
22595         * tests/test-getlogin_r.c: Include <stdio.h>.
22596         (main): Skip the test when the function fails because stdin is not a
22597         tty.
22598
22599 2010-01-11  Eric Blake  <ebb9@byu.net>
22600
22601         tests: avoid more large file warnings
22602         * tests/test-fflush.c: Avoid warning about ftell use.
22603         * tests/test-fseek.c: Avoid warning about fseek use.
22604
22605 2010-01-10  Bruno Haible  <bruno@clisp.org>
22606
22607         nproc: Work better on Linux when /proc and /sys are not mounted.
22608         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22609         as lower bound when, on glibc/Linux systems,
22610         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22611         Suggested by Pádraig Brady <P@draigbrady.com>.
22612         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22613
22614         nproc: Refactor.
22615         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22616         extracted from num_processors.
22617         (num_processors): Call it.
22618
22619 2010-01-11  Jim Meyering  <meyering@redhat.com>
22620
22621         utimecmp: avoid new warning from upcoming gcc-4.5.0
22622         * lib/utimecmp.c (BILLION): Define using #define rather than an
22623         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22624
22625 2010-01-11  Eric Blake  <ebb9@byu.net>
22626
22627         math: add portability warnings for classification macros
22628         * modules/math (Depends-on): Add warn-on-use.
22629         (Makefile.am): Provide new substitutions.
22630         * m4/math_h.m4 (gl_MATH_H): Require inline.
22631         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22632         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22633         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22634         implement warnings.
22635
22636         unistd: warn on use of environ without module
22637         * modules/unistd (Depends-on): Add warn-on-use.
22638         (Makefile.am): Provide new substitutions.
22639         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22640         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22641
22642         stdio: warn on suspicious uses
22643         * modules/stdio (Depends-on): Add warn-on-use.
22644         (Makefile.am): Provide new substitutions.
22645         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22646         fseeko.
22647         * lib/stdio.in.h (gets): Always warn on use.
22648         (fseek, ftell): Adjust when warnings are issued, and honor
22649         _GL_NO_LARGE_FILES as a way to silence the warning.
22650         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22651         any warning about large file offsets.
22652         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22653         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22654         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22655         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22656         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22657         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22658         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22659         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22660
22661         warn-on-use: new module
22662         * modules/warn-on-use: New file.
22663         * build-aux/warn-on-use.h: Likewise.
22664         * m4/warn-on-use.m4: Likewise.
22665         * MODULES.html.sh (Support for building): Mention it.
22666
22667 2010-01-10  Bruno Haible  <bruno@clisp.org>
22668
22669         Tests for module 'unistr/u32-strdup'.
22670         * modules/unistr/u32-strdup-tests: New file.
22671         * tests/unistr/test-u32-strdup.c: New file.
22672
22673         Tests for module 'unistr/u16-strdup'.
22674         * modules/unistr/u16-strdup-tests: New file.
22675         * tests/unistr/test-u16-strdup.c: New file.
22676
22677         Tests for module 'unistr/u8-strdup'.
22678         * modules/unistr/u8-strdup-tests: New file.
22679         * tests/unistr/test-u8-strdup.c: New file.
22680         * tests/unistr/test-strdup.h: New file.
22681
22682         Tests for module 'unistr/u32-strncmp'.
22683         * modules/unistr/u32-strncmp-tests: New file.
22684         * tests/unistr/test-u32-strncmp.c: New file.
22685
22686         Tests for module 'unistr/u16-strncmp'.
22687         * modules/unistr/u16-strncmp-tests: New file.
22688         * tests/unistr/test-u16-strncmp.c: New file.
22689
22690         Tests for module 'unistr/u8-strncmp'.
22691         * modules/unistr/u8-strncmp-tests: New file.
22692         * tests/unistr/test-u8-strncmp.c: New file.
22693         * tests/unistr/test-strncmp.h: New file.
22694
22695         Tests for module 'unistr/u32-strcoll'.
22696         * modules/unistr/u32-strcoll-tests: New file.
22697         * tests/unistr/test-u32-strcoll.c: New file.
22698
22699         Tests for module 'unistr/u16-strcoll'.
22700         * modules/unistr/u16-strcoll-tests: New file.
22701         * tests/unistr/test-u16-strcoll.c: New file.
22702
22703         Tests for module 'unistr/u8-strcoll'.
22704         * modules/unistr/u8-strcoll-tests: New file.
22705         * tests/unistr/test-u8-strcoll.c: New file.
22706
22707         Tests for module 'unistr/u32-strcmp'.
22708         * modules/unistr/u32-strcmp-tests: New file.
22709         * tests/unistr/test-u32-strcmp.c: New file.
22710         * tests/unistr/test-u32-strcmp.h: New file.
22711
22712         Tests for module 'unistr/u16-strcmp'.
22713         * modules/unistr/u16-strcmp-tests: New file.
22714         * tests/unistr/test-u16-strcmp.c: New file.
22715         * tests/unistr/test-u16-strcmp.h: New file.
22716
22717         Tests for module 'unistr/u8-strcmp'.
22718         * modules/unistr/u8-strcmp-tests: New file.
22719         * tests/unistr/test-u8-strcmp.c: New file.
22720         * tests/unistr/test-u8-strcmp.h: New file.
22721         * tests/unistr/test-strcmp.h: New file.
22722
22723         Tests for module 'unistr/u32-strncat'.
22724         * modules/unistr/u32-strncat-tests: New file.
22725         * tests/unistr/test-u32-strncat.c: New file.
22726
22727         Tests for module 'unistr/u16-strncat'.
22728         * modules/unistr/u16-strncat-tests: New file.
22729         * tests/unistr/test-u16-strncat.c: New file.
22730
22731         Tests for module 'unistr/u8-strncat'.
22732         * modules/unistr/u8-strncat-tests: New file.
22733         * tests/unistr/test-u8-strncat.c: New file.
22734         * tests/unistr/test-strncat.h: New file.
22735
22736         Tests for module 'unistr/u32-strcat'.
22737         * modules/unistr/u32-strcat-tests: New file.
22738         * tests/unistr/test-u32-strcat.c: New file.
22739
22740         Tests for module 'unistr/u16-strcat'.
22741         * modules/unistr/u16-strcat-tests: New file.
22742         * tests/unistr/test-u16-strcat.c: New file.
22743
22744         Tests for module 'unistr/u8-strcat'.
22745         * modules/unistr/u8-strcat-tests: New file.
22746         * tests/unistr/test-u8-strcat.c: New file.
22747         * tests/unistr/test-strcat.h: New file.
22748
22749         Tests for module 'unistr/u32-stpncpy'.
22750         * modules/unistr/u32-stpncpy-tests: New file.
22751         * tests/unistr/test-u32-stpncpy.c: New file.
22752
22753         Tests for module 'unistr/u16-stpncpy'.
22754         * modules/unistr/u16-stpncpy-tests: New file.
22755         * tests/unistr/test-u16-stpncpy.c: New file.
22756
22757         Tests for module 'unistr/u8-stpncpy'.
22758         * modules/unistr/u8-stpncpy-tests: New file.
22759         * tests/unistr/test-u8-stpncpy.c: New file.
22760         * tests/unistr/test-stpncpy.h: New file.
22761
22762         Tests for module 'unistr/u32-strncpy'.
22763         * modules/unistr/u32-strncpy-tests: New file.
22764         * tests/unistr/test-u32-strncpy.c: New file.
22765
22766         Tests for module 'unistr/u16-strncpy'.
22767         * modules/unistr/u16-strncpy-tests: New file.
22768         * tests/unistr/test-u16-strncpy.c: New file.
22769
22770         Tests for module 'unistr/u8-strncpy'.
22771         * modules/unistr/u8-strncpy-tests: New file.
22772         * tests/unistr/test-u8-strncpy.c: New file.
22773         * tests/unistr/test-strncpy.h: New file.
22774
22775         Tests for module 'unistr/u32-stpcpy'.
22776         * modules/unistr/u32-stpcpy-tests: New file.
22777         * tests/unistr/test-u32-stpcpy.c: New file.
22778
22779         Tests for module 'unistr/u16-stpcpy'.
22780         * modules/unistr/u16-stpcpy-tests: New file.
22781         * tests/unistr/test-u16-stpcpy.c: New file.
22782
22783         Tests for module 'unistr/u8-stpcpy'.
22784         * modules/unistr/u8-stpcpy-tests: New file.
22785         * tests/unistr/test-u8-stpcpy.c: New file.
22786         * tests/unistr/test-stpcpy.h: New file.
22787
22788         Tests for module 'unistr/u32-strcpy'.
22789         * modules/unistr/u32-strcpy-tests: New file.
22790         * tests/unistr/test-u32-strcpy.c: New file.
22791
22792         Tests for module 'unistr/u16-strcpy'.
22793         * modules/unistr/u16-strcpy-tests: New file.
22794         * tests/unistr/test-u16-strcpy.c: New file.
22795
22796         Tests for module 'unistr/u8-strcpy'.
22797         * modules/unistr/u8-strcpy-tests: New file.
22798         * tests/unistr/test-u8-strcpy.c: New file.
22799         * tests/unistr/test-strcpy.h: New file.
22800
22801         Tests for module 'unistr/u32-strnlen'.
22802         * modules/unistr/u32-strnlen-tests: New file.
22803         * tests/unistr/test-u32-strnlen.c: New file.
22804
22805         Tests for module 'unistr/u16-strnlen'.
22806         * modules/unistr/u16-strnlen-tests: New file.
22807         * tests/unistr/test-u16-strnlen.c: New file.
22808
22809         Tests for module 'unistr/u8-strnlen'.
22810         * modules/unistr/u8-strnlen-tests: New file.
22811         * tests/unistr/test-u8-strnlen.c: New file.
22812         * tests/unistr/test-strnlen.h: New file.
22813
22814         Tests for module 'unistr/u32-strlen'.
22815         * modules/unistr/u32-strlen-tests: New file.
22816         * tests/unistr/test-u32-strlen.c: New file.
22817
22818         Tests for module 'unistr/u16-strlen'.
22819         * modules/unistr/u16-strlen-tests: New file.
22820         * tests/unistr/test-u16-strlen.c: New file.
22821
22822         Tests for module 'unistr/u8-strlen'.
22823         * modules/unistr/u8-strlen-tests: New file.
22824         * tests/unistr/test-u8-strlen.c: New file.
22825
22826         Tests for module 'unistr/u32-prev'.
22827         * modules/unistr/u32-prev-tests: New file.
22828         * tests/unistr/test-u32-prev.c: New file.
22829
22830         Tests for module 'unistr/u16-prev'.
22831         * modules/unistr/u16-prev-tests: New file.
22832         * tests/unistr/test-u16-prev.c: New file.
22833
22834         Tests for module 'unistr/u8-prev'.
22835         * modules/unistr/u8-prev-tests: New file.
22836         * tests/unistr/test-u8-prev.c: New file.
22837
22838         Tests for module 'unistr/u32-next'.
22839         * modules/unistr/u32-next-tests: New file.
22840         * tests/unistr/test-u32-next.c: New file.
22841
22842         Tests for module 'unistr/u16-next'.
22843         * modules/unistr/u16-next-tests: New file.
22844         * tests/unistr/test-u16-next.c: New file.
22845
22846         Tests for module 'unistr/u8-next'.
22847         * modules/unistr/u8-next-tests: New file.
22848         * tests/unistr/test-u8-next.c: New file.
22849
22850         Tests for module 'unistr/u32-strmbtouc'.
22851         * modules/unistr/u32-strmbtouc-tests: New file.
22852         * tests/unistr/test-u32-strmbtouc.c: New file.
22853
22854         Tests for module 'unistr/u16-strmbtouc'.
22855         * modules/unistr/u16-strmbtouc-tests: New file.
22856         * tests/unistr/test-u16-strmbtouc.c: New file.
22857
22858         Tests for module 'unistr/u8-strmbtouc'.
22859         * modules/unistr/u8-strmbtouc-tests: New file.
22860         * tests/unistr/test-u8-strmbtouc.c: New file.
22861
22862         Tests for module 'unistr/u32-strmblen'.
22863         * modules/unistr/u32-strmblen-tests: New file.
22864         * tests/unistr/test-u32-strmblen.c: New file.
22865
22866         Tests for module 'unistr/u16-strmblen'.
22867         * modules/unistr/u16-strmblen-tests: New file.
22868         * tests/unistr/test-u16-strmblen.c: New file.
22869
22870         Tests for module 'unistr/u8-strmblen'.
22871         * modules/unistr/u8-strmblen-tests: New file.
22872         * tests/unistr/test-u8-strmblen.c: New file.
22873
22874         Tests for module 'unistr/u32-cpy-alloc'.
22875         * modules/unistr/u32-cpy-alloc-tests: New file.
22876         * tests/unistr/test-u32-cpy-alloc.c: New file.
22877
22878         Tests for module 'unistr/u16-cpy-alloc'.
22879         * modules/unistr/u16-cpy-alloc-tests: New file.
22880         * tests/unistr/test-u16-cpy-alloc.c: New file.
22881
22882         Tests for module 'unistr/u8-cpy-alloc'.
22883         * modules/unistr/u8-cpy-alloc-tests: New file.
22884         * tests/unistr/test-u8-cpy-alloc.c: New file.
22885         * tests/unistr/test-cpy-alloc.h: New file.
22886
22887         Tests for module 'unistr/u32-mbsnlen'.
22888         * modules/unistr/u32-mbsnlen-tests: New file.
22889         * tests/unistr/test-u32-mbsnlen.c: New file.
22890
22891         Tests for module 'unistr/u16-mbsnlen'.
22892         * modules/unistr/u16-mbsnlen-tests: New file.
22893         * tests/unistr/test-u16-mbsnlen.c: New file.
22894
22895         Tests for module 'unistr/u8-mbsnlen'.
22896         * modules/unistr/u8-mbsnlen-tests: New file.
22897         * tests/unistr/test-u8-mbsnlen.c: New file.
22898
22899         Tests for module 'unistr/u32-chr'.
22900         * modules/unistr/u32-chr-tests: New file.
22901         * tests/unistr/test-u32-chr.c: New file.
22902
22903         Tests for module 'unistr/u16-chr'.
22904         * modules/unistr/u16-chr-tests: New file.
22905         * tests/unistr/test-u16-chr.c: New file.
22906
22907         Tests for module 'unistr/u8-chr'.
22908         * modules/unistr/u8-chr-tests: New file.
22909         * tests/unistr/test-u8-chr.c: New file.
22910         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22911
22912         Tests for module 'unistr/u32-cmp2'.
22913         * modules/unistr/u32-cmp2-tests: New file.
22914         * tests/unistr/test-u32-cmp2.c: New file.
22915
22916         Tests for module 'unistr/u16-cmp2'.
22917         * modules/unistr/u16-cmp2-tests: New file.
22918         * tests/unistr/test-u16-cmp2.c: New file.
22919
22920         Tests for module 'unistr/u8-cmp2'.
22921         * modules/unistr/u8-cmp2-tests: New file.
22922         * tests/unistr/test-u8-cmp2.c: New file.
22923         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22924
22925         Tests for module 'unistr/u32-cmp'.
22926         * modules/unistr/u32-cmp-tests: New file.
22927         * tests/unistr/test-u32-cmp.c: New file.
22928
22929         Tests for module 'unistr/u16-cmp'.
22930         * modules/unistr/u16-cmp-tests: New file.
22931         * tests/unistr/test-u16-cmp.c: New file.
22932
22933         Tests for module 'unistr/u8-cmp'.
22934         * modules/unistr/u8-cmp-tests: New file.
22935         * tests/unistr/test-u8-cmp.c: New file.
22936         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22937
22938         Tests for module 'unistr/u32-set'.
22939         * modules/unistr/u32-set-tests: New file.
22940         * tests/unistr/test-u32-set.c: New file.
22941
22942         Tests for module 'unistr/u16-set'.
22943         * modules/unistr/u16-set-tests: New file.
22944         * tests/unistr/test-u16-set.c: New file.
22945
22946         Tests for module 'unistr/u8-set'.
22947         * modules/unistr/u8-set-tests: New file.
22948         * tests/unistr/test-u8-set.c: New file.
22949         * tests/unistr/test-set.h: New file.
22950
22951         Tests for module 'unistr/u32-move'.
22952         * modules/unistr/u32-move-tests: New file.
22953         * tests/unistr/test-u32-move.c: New file.
22954
22955         Tests for module 'unistr/u16-move'.
22956         * modules/unistr/u16-move-tests: New file.
22957         * tests/unistr/test-u16-move.c: New file.
22958
22959         Tests for module 'unistr/u8-move'.
22960         * modules/unistr/u8-move-tests: New file.
22961         * tests/unistr/test-u8-move.c: New file.
22962         * tests/unistr/test-move.h: New file.
22963
22964         Tests for module 'unistr/u32-cpy'.
22965         * modules/unistr/u32-cpy-tests: New file.
22966         * tests/unistr/test-u32-cpy.c: New file.
22967
22968         Tests for module 'unistr/u16-cpy'.
22969         * modules/unistr/u16-cpy-tests: New file.
22970         * tests/unistr/test-u16-cpy.c: New file.
22971
22972         Tests for module 'unistr/u8-cpy'.
22973         * modules/unistr/u8-cpy-tests: New file.
22974         * tests/unistr/test-u8-cpy.c: New file.
22975         * tests/unistr/test-cpy.h: New file.
22976
22977 2010-01-09  Bruno Haible  <bruno@clisp.org>
22978
22979         Tests for module 'unistr/u32-uctomb'.
22980         * modules/unistr/u32-uctomb-tests: New file.
22981         * tests/unistr/test-u32-uctomb.c: New file.
22982
22983         Tests for module 'unistr/u16-uctomb'.
22984         * modules/unistr/u16-uctomb-tests: New file.
22985         * tests/unistr/test-u16-uctomb.c: New file.
22986
22987         Tests for module 'unistr/u8-uctomb'.
22988         * modules/unistr/u8-uctomb-tests: New file.
22989         * tests/unistr/test-u8-uctomb.c: New file.
22990
22991         Tests for module 'unistr/u32-mbtoucr'.
22992         * modules/unistr/u32-mbtoucr-tests: New file.
22993         * tests/unistr/test-u32-mbtoucr.c: New file.
22994
22995         Tests for module 'unistr/u16-mbtoucr'.
22996         * modules/unistr/u16-mbtoucr-tests: New file.
22997         * tests/unistr/test-u16-mbtoucr.c: New file.
22998
22999         Tests for module 'unistr/u8-mbtoucr'.
23000         * modules/unistr/u8-mbtoucr-tests: New file.
23001         * tests/unistr/test-u8-mbtoucr.c: New file.
23002
23003         Tests for module 'unistr/u32-mbtouc'.
23004         * modules/unistr/u32-mbtouc-tests: New file.
23005         * tests/unistr/test-u32-mbtouc.c: New file.
23006
23007         Tests for module 'unistr/u16-mbtouc'.
23008         * modules/unistr/u16-mbtouc-tests: New file.
23009         * tests/unistr/test-u16-mbtouc.c: New file.
23010
23011         Tests for module 'unistr/u8-mbtouc'.
23012         * modules/unistr/u8-mbtouc-tests: New file.
23013         * tests/unistr/test-u8-mbtouc.c: New file.
23014
23015         Tests for module 'unistr/u32-mbtouc-unsafe'.
23016         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23017         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23018         * tests/unistr/test-u32-mbtouc.h: New file.
23019
23020         Tests for module 'unistr/u16-mbtouc-unsafe'.
23021         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23022         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23023         * tests/unistr/test-u16-mbtouc.h: New file.
23024
23025         Tests for module 'unistr/u8-mbtouc-unsafe'.
23026         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23027         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23028         * tests/unistr/test-u8-mbtouc.h: New file.
23029
23030         Tests for module 'unistr/u32-mblen'.
23031         * modules/unistr/u32-mblen-tests: New file.
23032         * tests/unistr/test-u32-mblen.c: New file.
23033
23034         Tests for module 'unistr/u16-mblen'.
23035         * modules/unistr/u16-mblen-tests: New file.
23036         * tests/unistr/test-u16-mblen.c: New file.
23037
23038         Tests for module 'unistr/u8-mblen'.
23039         * modules/unistr/u8-mblen-tests: New file.
23040         * tests/unistr/test-u8-mblen.c: New file.
23041
23042         Tests for module 'unistr/u32-to-u16'.
23043         * modules/unistr/u32-to-u16-tests: New file.
23044         * tests/unistr/test-u32-to-u16.c: New file.
23045
23046         Tests for module 'unistr/u32-to-u8'.
23047         * modules/unistr/u32-to-u8-tests: New file.
23048         * tests/unistr/test-u32-to-u8.c: New file.
23049
23050         Tests for module 'unistr/u16-to-u32'.
23051         * modules/unistr/u16-to-u32-tests: New file.
23052         * tests/unistr/test-u16-to-u32.c: New file.
23053
23054         Tests for module 'unistr/u16-to-u8'.
23055         * modules/unistr/u16-to-u8-tests: New file.
23056         * tests/unistr/test-u16-to-u8.c: New file.
23057
23058         Tests for module 'unistr/u8-to-u32'.
23059         * modules/unistr/u8-to-u32-tests: New file.
23060         * tests/unistr/test-u8-to-u32.c: New file.
23061
23062         Tests for module 'unistr/u8-to-u16'.
23063         * modules/unistr/u8-to-u16-tests: New file.
23064         * tests/unistr/test-u8-to-u16.c: New file.
23065
23066         Tests for module 'unistr/u32-check'.
23067         * modules/unistr/u32-check-tests: New file.
23068         * tests/unistr/test-u32-check.c: New file.
23069
23070         Tests for module 'unistr/u16-check'.
23071         * modules/unistr/u16-check-tests: New file.
23072         * tests/unistr/test-u16-check.c: New file.
23073
23074         Tests for module 'unistr/u8-check'.
23075         * modules/unistr/u8-check-tests: New file.
23076         * tests/unistr/test-u8-check.c: New file.
23077
23078         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23079         (category_equals): New function.
23080         (main): Add more tests.
23081         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23082
23083         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23084
23085 2010-01-10  Bruno Haible  <bruno@clisp.org>
23086
23087         unistr/u*-strcoll: Try harder to distinguish different strings.
23088         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23089         compare s1 and s2 to see if they are different.
23090
23091 2010-01-10  Bruno Haible  <bruno@clisp.org>
23092
23093         unistr/u*-stpncpy: Fix the return value.
23094         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23095         description of the return value consistent with stpncpy in glibc.
23096         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23097         written non-NUL unit.
23098
23099 2010-01-10  Bruno Haible  <bruno@clisp.org>
23100
23101         unistr/u*-next: Add missing dependencies.
23102         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23103         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23104         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23105
23106 2010-01-10  Bruno Haible  <bruno@clisp.org>
23107
23108         unistr/u8-mbsnlen: Fix return value for incomplete character.
23109         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23110         u8_mblen.
23111         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23112         Remove unistr/u8-mblen.
23113         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23114         u16_mblen.
23115         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23116         Remove unistr/u16-mblen.
23117
23118 2010-01-10  Bruno Haible  <bruno@clisp.org>
23119
23120         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23121         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23122         Reported by Brian Gough <bjg@gnu.org> and
23123         Chris Clayton <chris2553@googlemail.com> via
23124         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23125
23126 2010-01-09  Bruno Haible  <bruno@clisp.org>
23127
23128         unistr/u16-to-u32: Reject invalid input.
23129         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23130         u16_mbtouc.
23131         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23132         Remove unistr/u16-mbtouc.
23133
23134         unistr/u16-to-u8: Reject invalid input.
23135         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23136         u16_mbtouc.
23137         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23138         Remove unistr/u16-mbtouc.
23139
23140         unistr/u8-to-u32: Reject invalid input.
23141         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23142         u8_mbtouc.
23143         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23144         Remove unistr/u8-mbtouc.
23145
23146         unistr/u8-to-u16: Reject invalid input.
23147         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23148         u8_mbtouc.
23149         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23150         Remove unistr/u8-mbtouc.
23151
23152 2010-01-09  Bruno Haible  <bruno@clisp.org>
23153
23154         Tests for module 'getlogin'.
23155         * modules/getlogin-tests: New file.
23156         * tests/test-getlogin.c: New file.
23157
23158         New module 'getlogin'.
23159         * lib/unistd.in.h (getlogin): New declaration.
23160         * lib/getlogin.c: New file.
23161         * m4/getlogin.m4: New file.
23162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23163         HAVE_GETLOGIN.
23164         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23165         HAVE_GETLOGIN.
23166         * modules/getlogin: New file.
23167         * doc/posix-functions/getlogin.texi: Mention the new module.
23168         Reported by John W. Eaton <jwe@gnu.org>.
23169
23170 2010-01-09  Bruno Haible  <bruno@clisp.org>
23171
23172         getlogin_r: Support for native Windows.
23173         * lib/getlogin_r.c: Include <windows.h>
23174         (getlogin_r): Implement for native Windows.
23175         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23176         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23177         via John W. Eaton <jwe@gnu.org>.
23178
23179 2010-01-09  Bruno Haible  <bruno@clisp.org>
23180
23181         getlogin_r: Small fixes.
23182         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23183         succeeds.
23184         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23185         before testing whether getlogin_r is declared. No need to set
23186         HAVE_DECL_GETLOGIN_R to 1.
23187         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23188
23189 2010-01-09  Bruno Haible  <bruno@clisp.org>
23190
23191         * lib/unistd.in.h (getlogin_r): Add comment.
23192
23193 2010-01-09  Bruno Haible  <bruno@clisp.org>
23194
23195         Tests for module 'getlogin_r'.
23196         * modules/getlogin_r-tests: New file.
23197         * tests/test-getlogin_r.c: New file.
23198
23199 2010-01-09  Jim Meyering  <meyering@redhat.com>
23200
23201         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23202         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23203         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23204
23205 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23206
23207         * lib/dup2.c (rpl_dup2): Improve comment.
23208
23209 2010-01-08  Eric Blake  <ebb9@byu.net>
23210
23211         maint.mk: allow packages to add makefile @@ exceptions
23212         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23213         (sc_makefile_check): Rename...
23214         (sc_makefile_at_at_check): ...to this, and use hook.
23215
23216         dup2: work around mingw bug
23217         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23218         Reported by Simon Josefsson.
23219
23220 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23221
23222         glob: Fix C++ compilation.
23223         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23224         C++.
23225
23226 2010-01-07  Bruno Haible  <bruno@clisp.org>
23227
23228         Fix indentation of wctype.in.h, broken since 2007-01-06.
23229         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23230
23231 2010-01-07  Bruno Haible  <bruno@clisp.org>
23232
23233         mbslen: Avoid collision with system function.
23234         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23235         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23236         * m4/mbslen.m4: New file.
23237         * modules/mbslen (Files): Add it.
23238         (configure.ac): Invoke gl_MBSLEN.
23239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23240         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23241         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23242         via Ian Beckwith <ianb@erislabs.net>.
23243
23244 2010-01-07  Bruno Haible  <bruno@clisp.org>
23245
23246         dirent: Document the last fix.
23247         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23248
23249 2010-01-07  Bruno Haible  <bruno@clisp.org>
23250
23251         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23252         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23253         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23254         va_list are defined.
23255         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23256         Reported by Eric Blake.
23257
23258 2010-01-07  Bruno Haible  <bruno@clisp.org>
23259
23260         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23261         * modules/xlist (Depends-on): Add 'list',
23262         * modules/xoset (Depends-on): Add 'oset'.
23263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23264
23265 2010-01-07  Bruno Haible  <bruno@clisp.org>
23266
23267         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23268         * doc/posix-functions/strncasecmp.texi: Likewise.
23269
23270 2010-01-07  Bruno Haible  <bruno@clisp.org>
23271
23272         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23273
23274 2010-01-07  John W. Eaton  <jwe@octave.org>
23275
23276         wctype: allow C++ use
23277         * lib/wctype.in.h: Add extern "C" block for C++.
23278
23279 2010-01-06  Eric Blake  <ebb9@byu.net>
23280
23281         maint.mk: detect incorrect GFDL usage
23282         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23283
23284 2010-01-06  Jim Meyering  <meyering@redhat.com>
23285         and Eric Blake  <ebb9@byu.net>
23286
23287         maint.mk: ignore multi-line copyright in NEWS
23288         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23289
23290 2010-01-06  Eric Blake  <ebb9@byu.net>
23291
23292         select: add missing dependency
23293         * modules/select-tests (Depends-on): Move sockets dependency...
23294         * modules/select (Depends-on): ...here.
23295         Reported by Ian Beckwith.
23296
23297         doc: regenerate INSTALL
23298         * doc/INSTALL: Reflect recent autoconf update.
23299         * doc/INSTALL.ISO: Likewise.
23300         * doc/INSTALL.UTF-8: Likewise.
23301
23302         pread: fix compilation on glibc
23303         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23304         Reported by Ralf Wildenhues.
23305
23306         dirent: fix test failure
23307         * lib/dirent.in.h (includes): Guarantee ino_t.
23308         Reported by Ralf Wildenhues.
23309
23310 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23311
23312         linkat, renameat: avoid bad free
23313         * lib/at-func2.c (at_func2): Fix typo.
23314         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23315
23316 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23317
23318         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23319         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23320         to avoid failure of symlink test later.
23321
23322 2010-01-06  Eric Blake  <ebb9@byu.net>
23323
23324         stdio, unistd: guarantee ssize_t
23325         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23326         2008 are exposed when needed.
23327         * lib/stdio.in.h (includes): Likewise.
23328         Reported by Ralf Wildenhues.
23329
23330 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23331
23332         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23333         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23334         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23335
23336 2010-01-06  Jim Meyering  <meyering@redhat.com>
23337
23338         readtokens: this module *does* require xalloc.h
23339         It uses only functions that were omitted by the old syntax-check rule.
23340         * lib/readtokens.c: Include "xalloc.h" once again.
23341         * modules/readtokens (Depends-on): Add xalloc.
23342         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23343
23344 2010-01-05  Eric Blake  <ebb9@byu.net>
23345
23346         maint: support 'make announcement' from a VPATH build
23347         * top/maint.mk (announcement): Look for correct NEWS file.
23348
23349 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23350
23351         utimens (fdutimens): ignore a negative FD, per contract
23352         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23353         when we have a valid file descriptor.  Otherwise, using a brand
23354         new glibc (with just-patched futimens that now fails with EBADF)
23355         would cause this function to fail with ENOSYS.
23356         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23357         See also http://bugzilla.redhat.com/552320.
23358
23359 2010-01-05  Eric Blake  <ebb9@byu.net>
23360
23361         strcase: document what it provides
23362         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23363         gnulib module.
23364         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23365         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23366
23367 2010-01-05  Jim Meyering  <meyering@redhat.com>
23368
23369         maint: remove useless inclusions of "xalloc.h"
23370         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23371         * lib/readtokens.c: Likewise.
23372         * lib/same.c: Likewise.
23373         * modules/getloadavg (Depends-on): Remove xalloc.
23374         * modules/readtokens: Likewise.
23375         * modules/same: Likewise.
23376
23377         maint.mk: include 4 more function names in alloca.h-checking regexp
23378         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23379         regexp.  Before, we would give a false-positive (saying alloca.h
23380         is included unnecessarily) when the only uses involved omitted symbols.
23381
23382         xalloc.h: use consistent formatting
23383         * lib/xalloc.h: Move declarations to start in the first column.
23384
23385 2010-01-05  Eric Blake  <ebb9@byu.net>
23386
23387         mkdir: avoid xalloc
23388         * lib/mkdir.c (includes): Drop unused header.
23389         Reported by John W. Eaton.
23390
23391 2010-01-04  Jim Meyering  <meyering@redhat.com>
23392
23393         nl_langinfo: avoid configure-time syntax error
23394         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23395         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23396         the empty string.  Don't let that provoke a shell syntax error.
23397
23398         regcomp, regexec, fnmatch: avoid array bounds read error
23399         * lib/regcomp.c (build_equiv_class): From glibc:
23400         Use only the low 24 bits of a findidx return value as an index
23401         into the weights array.  Patch by Ulrich Drepper:
23402         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23403         * lib/regexec.c (check_node_accept_bytes): Likewise.
23404         * lib/fnmatch_loop.c (FCT): Likewise.
23405
23406         regcomp: skip collseq lookup when there are no rules
23407         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23408         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23409
23410         regcomp: recognize ill-formed { } expressions
23411         * lib/regcomp.c (parse_dup_op): From glibc:
23412         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23413
23414         regcomp: fix typo in comment
23415         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23416         s/satisfy/satisfies/.
23417
23418         regcomp: sync from glibc: remove dead store
23419         * lib/regcomp.c (duplicate_node_closure): Remove useless
23420         search_duplicated_node call and dead store.
23421
23422         regcomp: sync from glibc; always use nl_langinfo
23423         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23424         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23425         * modules/regex (Depends-on): Add nl_langinfo.
23426
23427 2010-01-04  Eric Blake  <ebb9@byu.net>
23428
23429         fdopendir: fix configure test
23430         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23431
23432 2010-01-01  Bruno Haible  <bruno@clisp.org>
23433
23434         wchar: Remove unused configure check.
23435         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23436
23437 2010-01-01  Eric Blake  <ebb9@byu.net>
23438
23439         headers: make check of system header explicit
23440         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23441         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23442         ourselves.
23443         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23445         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23447         internals.
23448         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23449         missing.
23450         Suggested by Bruno Haible.
23451
23452 2010-01-01  Jim Meyering  <meyering@redhat.com>
23453
23454         ChangeLog: tweak to eliminate unnecessary copyright line
23455         * ChangeLog: Remove a copyright line that was mistakenly updated
23456         by today's update-copyright run.  Reported by Eric Blake.
23457
23458         test-update-copyright: don't let envvar setting cause test failure
23459         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23460
23461 2010-01-01  Bruno Haible  <bruno@clisp.org>
23462
23463         localename: Avoid gcc warning.
23464         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23465         function if it is not used.
23466
23467 2010-01-01  Jim Meyering  <meyering@redhat.com>
23468
23469         update nearly all FSF copyright year lists to include 2010
23470         Use the same procedure as for 2009, outlined in
23471         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23472
23473         version-etc: set COPYRIGHT_YEAR to 2010
23474         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23475
23476 2009-12-31  Eric Blake  <ebb9@byu.net>
23477
23478         doc: correct availability of cygwin 1.5.x getopt
23479         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23480         variables.
23481         * doc/posix-functions/opterr.texi (opterr): Likewise.
23482         * doc/posix-functions/optind.texi (optind): Likewise.
23483         * doc/posix-functions/optopt.texi (optopt): Likewise.
23484         * doc/posix-functions/tzname.texi (tzname): Likewise.
23485
23486         openat: update maintainer
23487         * modules/openat (Maintainer): Add myself.
23488
23489         utimens: avoid shadowing warning
23490         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23491         buffers into one, to avoid shadowing, as well as avoiding a
23492         redundant stat.
23493         Reported by Jim Meyering.
23494
23495         test-dup2: avoid compiler warning
23496         * tests/test-dup2.c (is_inheritable): Only define if used.
23497
23498 2010-01-01  Bruno Haible  <bruno@clisp.org>
23499
23500         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23501         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23502         defined, use wctomb instead of wcrtomb.
23503
23504 2010-01-01  Bruno Haible  <bruno@clisp.org>
23505
23506         iconv: Reject native Solaris iconv.
23507         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23508         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23509
23510 2009-12-31  Bruno Haible  <bruno@clisp.org>
23511
23512         * tests/test-signal.c (main): Remove test of 'SIG'.
23513
23514 2009-12-31  Bruno Haible  <bruno@clisp.org>
23515
23516         spawn: Fix incomplete fix.
23517         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23518         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23519         warnings for GNULIB_POSIXCHECK again.
23520         Reported by Eric Blake.
23521
23522 2009-12-31  Bruno Haible  <bruno@clisp.org>
23523
23524         Avoid namespace pollution on glibc systems.
23525         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23526         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23527         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23528         glibc systems.
23529
23530 2009-12-31  Bruno Haible  <bruno@clisp.org>
23531
23532         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23533         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23534         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23535         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23536         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23537         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23538         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23539
23540 2009-12-31  Bruno Haible  <bruno@clisp.org>
23541
23542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23543         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23544         afterwards.
23545
23546 2009-12-31  Bruno Haible  <bruno@clisp.org>
23547
23548         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23549         SYS_UTSNAME_H.
23550
23551 2009-12-31  Bruno Haible  <bruno@clisp.org>
23552
23553         spawn: Fix misapplied patch.
23554         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23555         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23556         warnings for GNULIB_POSIXCHECK.
23557
23558 2009-12-31  Bruno Haible  <bruno@clisp.org>
23559
23560         times: Update after sys_times changed.
23561         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23562         * modules/times (Files): Add it.
23563         (configure.ac): Invoke gl_FUNC_TIMES.
23564
23565 2009-12-31  Bruno Haible  <bruno@clisp.org>
23566
23567         Use AC_C_INLINE where necessary.
23568         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23569         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23571         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23572         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23573         * m4/mbiter.m4 (gl_MBITER): Likewise.
23574         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23575         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23576         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23577         * modules/u64 (configure.ac): Likewise.
23578
23579 2009-12-31  Bruno Haible  <bruno@clisp.org>
23580
23581         Use AC_C_INLINE instead of module 'inline' where possible.
23582         * modules/inline (Description): Clarify purpose.
23583         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23584         * modules/count-one-bits (Depends-on): Remove inline.
23585         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23586         * modules/openat (Depends-on): Remove inline.
23587         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23588         instead of depending on module 'inline'.
23589         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23590         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23591         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23592         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23593         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23594         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23595         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23596         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23597         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23598         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23599         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23600         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23601         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23602         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23603         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23604         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23605         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23606         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23607         Likewise.
23608         * modules/unictype/property-ascii-hex-digit (Depends-on,
23609         configure.ac): Likewise.
23610         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23611         configure.ac): Likewise.
23612         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23613         configure.ac): Likewise.
23614         * modules/unictype/property-bidi-block-separator (Depends-on,
23615         configure.ac): Likewise.
23616         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23617         configure.ac): Likewise.
23618         * modules/unictype/property-bidi-common-separator (Depends-on,
23619         configure.ac): Likewise.
23620         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23621         Likewise.
23622         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23623         configure.ac): Likewise.
23624         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23625         configure.ac): Likewise.
23626         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23627         configure.ac): Likewise.
23628         * modules/unictype/property-bidi-european-digit (Depends-on,
23629         configure.ac): Likewise.
23630         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23631         configure.ac): Likewise.
23632         * modules/unictype/property-bidi-left-to-right (Depends-on,
23633         configure.ac): Likewise.
23634         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23635         configure.ac): Likewise.
23636         * modules/unictype/property-bidi-other-neutral (Depends-on,
23637         configure.ac): Likewise.
23638         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23639         Likewise.
23640         * modules/unictype/property-bidi-segment-separator (Depends-on,
23641         configure.ac): Likewise.
23642         * modules/unictype/property-bidi-whitespace (Depends-on,
23643         configure.ac): Likewise.
23644         * modules/unictype/property-combining (Depends-on, configure.ac):
23645         Likewise.
23646         * modules/unictype/property-composite (Depends-on, configure.ac):
23647         Likewise.
23648         * modules/unictype/property-currency-symbol (Depends-on,
23649         configure.ac): Likewise.
23650         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23651         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23652         Likewise.
23653         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23654         configure.ac): Likewise.
23655         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23656         Likewise.
23657         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23658         Likewise.
23659         * modules/unictype/property-extender (Depends-on, configure.ac):
23660         Likewise.
23661         * modules/unictype/property-format-control (Depends-on, configure.ac):
23662         Likewise.
23663         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23664         Likewise.
23665         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23666         Likewise.
23667         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23668         Likewise.
23669         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23670         Likewise.
23671         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23672         Likewise.
23673         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23674         Likewise.
23675         * modules/unictype/property-id-start (Depends-on, configure.ac):
23676         Likewise.
23677         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23678         Likewise.
23679         * modules/unictype/property-ids-binary-operator (Depends-on,
23680         configure.ac): Likewise.
23681         * modules/unictype/property-ids-trinary-operator (Depends-on,
23682         configure.ac): Likewise.
23683         * modules/unictype/property-ignorable-control (Depends-on,
23684         configure.ac): Likewise.
23685         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23686         Likewise.
23687         * modules/unictype/property-join-control (Depends-on, configure.ac):
23688         Likewise.
23689         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23690         Likewise.
23691         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23692         Likewise.
23693         * modules/unictype/property-logical-order-exception (Depends-on,
23694         configure.ac): Likewise.
23695         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23696         Likewise.
23697         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23698         * modules/unictype/property-non-break (Depends-on, configure.ac):
23699         Likewise.
23700         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23701         Likewise.
23702         * modules/unictype/property-numeric (Depends-on, configure.ac):
23703         Likewise.
23704         * modules/unictype/property-other-alphabetic (Depends-on,
23705         configure.ac): Likewise.
23706         * modules/unictype/property-other-default-ignorable-code-point
23707         (Depends-on, configure.ac): Likewise.
23708         * modules/unictype/property-other-grapheme-extend (Depends-on,
23709         configure.ac): Likewise.
23710         * modules/unictype/property-other-id-continue (Depends-on,
23711         configure.ac): Likewise.
23712         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23713         Likewise.
23714         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23715         Likewise.
23716         * modules/unictype/property-other-math (Depends-on, configure.ac):
23717         Likewise.
23718         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23719         Likewise.
23720         * modules/unictype/property-paired-punctuation (Depends-on,
23721         configure.ac): Likewise.
23722         * modules/unictype/property-paragraph-separator (Depends-on,
23723         configure.ac): Likewise.
23724         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23725         Likewise.
23726         * modules/unictype/property-pattern-white-space (Depends-on,
23727         configure.ac): Likewise.
23728         * modules/unictype/property-private-use (Depends-on, configure.ac):
23729         Likewise.
23730         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23731         Likewise.
23732         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23733         Likewise.
23734         * modules/unictype/property-radical (Depends-on, configure.ac):
23735         Likewise.
23736         * modules/unictype/property-sentence-terminal (Depends-on,
23737         configure.ac): Likewise.
23738         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23739         Likewise.
23740         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23741         * modules/unictype/property-terminal-punctuation (Depends-on,
23742         configure.ac): Likewise.
23743         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23744         Likewise.
23745         * modules/unictype/property-unassigned-code-value (Depends-on,
23746         configure.ac): Likewise.
23747         * modules/unictype/property-unified-ideograph (Depends-on,
23748         configure.ac): Likewise.
23749         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23750         Likewise.
23751         * modules/unictype/property-variation-selector (Depends-on,
23752         configure.ac): Likewise.
23753         * modules/unictype/property-white-space (Depends-on, configure.ac):
23754         Likewise.
23755         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23756         Likewise.
23757         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23758         Likewise.
23759         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23760         Likewise.
23761         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23762         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23763         Likewise.
23764
23765 2009-12-31  Bruno Haible  <bruno@clisp.org>
23766
23767         Remove unnecessary AC_C_INLINE invocation.
23768         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23769         since 2009-08-21.
23770
23771 2009-12-31  Jim Meyering  <meyering@redhat.com>
23772
23773         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23774         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23775         With this change, we can all remove the gpg_key_ID = ... definition
23776         from our respective cfg.mk files.
23777
23778         maint.mk: create announcement template in ~/, not in /tmp
23779         * top/maint.mk (emit_upload_commands): Adjust.
23780         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23781         Remove temporary file, .ci-msg.
23782
23783 2009-12-31  Eric Blake  <ebb9@byu.net>
23784
23785         link-warning: always build headers with link warnings
23786         * modules/arpa_inet (Makefile.am): Always build replacement
23787         header.
23788         * modules/ctype (Makefile.am): Likewise.
23789         * modules/dirent (Makefile.am): Likewise.
23790         * modules/inttypes (Makefile.am): Likewise.
23791         * modules/langinfo (Makefile.am): Likewise.
23792         * modules/locale (Makefile.am): Likewise.
23793         * modules/spawn (Makefile.am): Likewise.
23794         * modules/sys_file (Makefile.am): Likewise.
23795         * modules/sys_ioctl (Makefile.am): Likewise.
23796         * modules/sys_select (Makefile.am): Likewise.
23797         * modules/sys_socket (Makefile.am): Likewise.
23798         * modules/sys_times (Makefile.am): Likewise.
23799         * modules/sys_utsname (Makefile.am): Likewise.
23800         * modules/sys_wait (Makefile.am): Likewise.
23801         * modules/wchar (Makefile.am): Likewise.
23802         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23803         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23804         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23805         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23806         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23807         Likewise.
23808         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23809         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23810         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23811         Likewise.
23812         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23813         Likewise.
23814         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23815         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23816         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23818         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23819         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23820         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23821         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23822         (gl_WCHAR_H_DEFAULTS): Likewise.
23823
23824 2009-12-31  Eric Blake  <ebb9@byu.net>
23825
23826         signal, spawn: use link warnings
23827         * lib/signal.in.h (sigset_t): Make unconditional.
23828         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23829         (sigpending, sigprocmask, sigaction): Add link warnings.
23830         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23831         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23832         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23833         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23834         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23835         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23836         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23837         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23838         (posix_spawn_file_actions_destroy)
23839         (posix_spawn_file_actions_addopen)
23840         (posix_spawn_file_actions_addclose)
23841         (posix_spawn_file_actions_adddup2): Likewise.
23842         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23843         * tests/test-signal.c (main): Enhance test.
23844
23845         spawn: improve wrapper support
23846         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23847         (gl_SPAWN_H_DEFAULTS): New defaults.
23848         * modules/spawn (Makefile.am): Substitute them.
23849         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23850         Only declare if missing or broken.
23851
23852         sys_times, sys_utsname: use include_next
23853         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23854         header.
23855         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23856         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23857         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23858         * modules/sys_times (Depends-on): Add include_next.
23859         (Makefile.am): Substitute additional values.
23860         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23861         * lib/sys_times.in.h (includes): Include native header, if
23862         available.
23863         * lib/sys_utsname.in.h (includes): Likewise.
23864         * tests/test-sys_times.c (main): Enhance test.
23865
23866         fdutimensat: revert prior patch
23867         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23868         utimens.h.
23869         Reported by Bruno Haible.
23870
23871 2009-12-30  Eric Blake  <ebb9@byu.net>
23872
23873         sys_wait: drop link-warning dependency
23874         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23875         link-warning efforts.
23876         * lib/sys_wait.in.h: Likewise.
23877
23878         fdutimensat: remove bogus dependency
23879         * modules/fdutimensat (Depends-on): Drop inline.
23880
23881         unistd: fix typo
23882         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23883
23884 2009-12-30  Bruno Haible  <bruno@clisp.org>
23885
23886         Fix compilation error with Solaris cc.
23887         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23888         * lib/unicase/u16-is-invariant.c: Likewise.
23889         * lib/unicase/u32-is-invariant.c: Likewise.
23890         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23891
23892 2009-12-30  Bruno Haible  <bruno@clisp.org>
23893
23894         Fix test crash.
23895         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23896         locales.
23897         Reported by Simon Josefsson <simon@josefsson.org>.
23898
23899 2009-12-30  Bruno Haible  <bruno@clisp.org>
23900
23901         Fix compilation error on most platforms.
23902         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23903         Reported by Simon Josefsson <simon@josefsson.org>
23904         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23905
23906 2009-12-30  Eric Blake  <ebb9@byu.net>
23907
23908         futimens, utimensat: work around ntfs-3g bug
23909         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23910         a ctime bug is present, and expand workaround to cover ntfs-3g.
23911         * lib/utimens.c (fdutimens, lutimens): Likewise.
23912         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23913         (validate_timespec): Adjust return value.
23914         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23915         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23916         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23917
23918 2009-12-29  Eric Blake  <ebb9@byu.net>
23919
23920         link-warning: make usage consistent
23921         * modules/ctype (Depends-on): Add link-warning.
23922         (Makefile.am): Update rules accordingly.
23923         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23924         * modules/locale (Depends-on, Makefile.am): Likewise.
23925         * modules/sys_file (Makefile.am): Likewise.
23926         * modules/getopt-posix (Makefile.am): Delete unused link warning
23927         efforts.
23928         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23929         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23930         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23931         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23932
23933         stdio: remove unused variables
23934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23936         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23937
23938         tests: test more substitute headers
23939         * modules/ctype-tests: New file.
23940         * modules/dirent-tests: Likewise.
23941         * modules/spawn-tests: Likewise.
23942         * modules/sys_file-tests: Likewise.
23943         * modules/sys_ioctl-tests: Likewise.
23944         * modules/sys_wait-tests: Likewise.
23945         * tests/test-ctype.c: Likewise.
23946         * tests/test-dirent.c: Likewise.
23947         * tests/test-spawn.c: Likewise.
23948         * tests/test-sys_file.c: Likewise.
23949         * tests/test-sys_ioctl.c: Likewise.
23950         * tests/test-sys_wait.c: Likewise.
23951         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23952         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23953         whether or not flock is in use.
23954
23955         tests: remove License section from module
23956         * modules/arpa_inet-tests: Remove unneeded section.
23957         * modules/byteswap-tests: Likewise.
23958         * modules/ceilf-tests: Likewise.
23959         * modules/ceill-tests: Likewise.
23960         * modules/crypto/des-tests: Likewise.
23961         * modules/crypto/gc-arcfour-tests: Likewise.
23962         * modules/crypto/gc-arctwo-tests: Likewise.
23963         * modules/crypto/gc-des-tests: Likewise.
23964         * modules/crypto/gc-hmac-md5-tests: Likewise.
23965         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23966         * modules/crypto/gc-md2-tests: Likewise.
23967         * modules/crypto/gc-md4-tests: Likewise.
23968         * modules/crypto/gc-md5-tests: Likewise.
23969         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23970         * modules/crypto/gc-rijndael-tests: Likewise.
23971         * modules/crypto/gc-sha1-tests: Likewise.
23972         * modules/crypto/gc-tests: Likewise.
23973         * modules/crypto/md2-tests: Likewise.
23974         * modules/crypto/md4-tests: Likewise.
23975         * modules/fcntl-h-tests: Likewise.
23976         * modules/floorf-tests: Likewise.
23977         * modules/floorl-tests: Likewise.
23978         * modules/frexp-nolibm-tests: Likewise.
23979         * modules/frexp-tests: Likewise.
23980         * modules/frexpl-nolibm-tests: Likewise.
23981         * modules/frexpl-tests: Likewise.
23982         * modules/getaddrinfo-tests: Likewise.
23983         * modules/inttypes-tests: Likewise.
23984         * modules/isfinite-tests: Likewise.
23985         * modules/isinf-tests: Likewise.
23986         * modules/ldexpl-tests: Likewise.
23987         * modules/locale-tests: Likewise.
23988         * modules/math-tests: Likewise.
23989         * modules/netdb-tests: Likewise.
23990         * modules/netinet_in-tests: Likewise.
23991         * modules/printf-frexp-tests: Likewise.
23992         * modules/printf-frexpl-tests: Likewise.
23993         * modules/priv-set-tests: Likewise.
23994         * modules/random_r-tests: Likewise.
23995         * modules/round-tests: Likewise.
23996         * modules/roundf-tests: Likewise.
23997         * modules/roundl-tests: Likewise.
23998         * modules/search-tests: Likewise.
23999         * modules/select-tests: Likewise.
24000         * modules/signal-tests: Likewise.
24001         * modules/stdbool-tests: Likewise.
24002         * modules/stddef-tests: Likewise.
24003         * modules/stdint-tests: Likewise.
24004         * modules/stdio-tests: Likewise.
24005         * modules/stdlib-tests: Likewise.
24006         * modules/string-tests: Likewise.
24007         * modules/strings-tests: Likewise.
24008         * modules/sys_select-tests: Likewise.
24009         * modules/sys_socket-tests: Likewise.
24010         * modules/sys_stat-tests: Likewise.
24011         * modules/sys_time-tests: Likewise.
24012         * modules/sys_utsname-tests: Likewise.
24013         * modules/sysexits-tests: Likewise.
24014         * modules/time-tests: Likewise.
24015         * modules/trunc-tests: Likewise.
24016         * modules/truncf-tests: Likewise.
24017         * modules/truncl-tests: Likewise.
24018         * modules/tsearch-tests: Likewise.
24019         * modules/unistd-tests: Likewise.
24020         * modules/wchar-tests: Likewise.
24021         * modules/wctype-tests: Likewise.
24022
24023         tests: fix license on several tests
24024         * tests/test-des.c: Update to GPLv3+.
24025         * tests/test-flock.c: Likewise.
24026         * tests/test-fsync.c: Likewise.
24027         * tests/test-futimens.h: Likewise.
24028         * tests/test-gc-arcfour.c: Likewise.
24029         * tests/test-gc-arctwo.c: Likewise.
24030         * tests/test-gc-des.c: Likewise.
24031         * tests/test-gc-hmac-md5.c: Likewise.
24032         * tests/test-gc-hmac-sha1.c: Likewise.
24033         * tests/test-gc-md2.c: Likewise.
24034         * tests/test-gc-md4.c: Likewise.
24035         * tests/test-gc-md5.c: Likewise.
24036         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24037         * tests/test-gc-rijndael.c: Likewise.
24038         * tests/test-gc-sha1.c: Likewise.
24039         * tests/test-gc.c: Likewise.
24040         * tests/test-getcwd.c: Likewise.
24041         * tests/test-link.c: Likewise.
24042         * tests/test-link.h: Likewise.
24043         * tests/test-lutimens.h: Likewise.
24044         * tests/test-md2.c: Likewise.
24045         * tests/test-md4.c: Likewise.
24046         * tests/test-mkdir.h: Likewise.
24047         * tests/test-rename.c: Likewise.
24048         * tests/test-rename.h: Likewise.
24049         * tests/test-safe-alloc.c: Likewise.
24050         * tests/test-utimens-common.h: Likewise.
24051         * tests/test-utimens.h: Likewise.
24052
24053         maint: sync license texts
24054         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24055         * doc/gpl-3.0.texi: Revert copyright year update.
24056         * doc/lgpl-3.0.texi: Likewise.
24057
24058 2009-12-29  Jim Meyering  <meyering@redhat.com>
24059
24060         update nearly all FSF copyright year lists to include 2009
24061         The files named by the following are exempted:
24062             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24063               test -f "$dst" && { echo "$dst"; continue; }
24064               test -d "$dst" || continue
24065               echo "$dst"/$(basename "$src")
24066             done > exempt
24067             git ls-files tests/unictype >> exempt
24068         In the remaining files, convert to all-interval notation if
24069         - there is already at least one year interval like 2000-2003
24070         - the file is maintained by me
24071         - the file is in lib/uni*/, where that style already prevails
24072         Otherwise, use update-copyright's default.
24073
24074 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24075         and Eric Blake  <ebb9@byu.net>
24076
24077         tests: don't require debug system() to pass
24078         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24079         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24080         * tests/test-unlink.h (test_unlink_func): Likewise.
24081         * tests/test-fstatat.c (main): ...into callers.
24082         * tests/test-lstat.c (main): Likewise.
24083         * tests/test-rmdir.c (main): Likewise.
24084         * tests/test-unlink.c (main): Likewise.
24085         * tests/test-unlinkat.c (main): Likewise.
24086         * tests/test-areadlink-with-size.c (main): Don't require a
24087         debug-only system call to pass, aiding cross-testing to mingw.
24088         * tests/test-areadlink.c (main): Likewise.
24089         * tests/test-areadlinkat-with-size.c (main): Likewise.
24090         * tests/test-areadlinkat.c (main): Likewise.
24091         * tests/test-canonicalize-lgpl.c (main): Likewise.
24092         * tests/test-canonicalize.c (main): Likewise.
24093         * tests/test-chown.c (main): Likewise.
24094         * tests/test-fchownat.c (main): Likewise.
24095         * tests/test-lchown.c (main): Likewise.
24096         * tests/test-fdutimensat.c (main): Likewise.
24097         * tests/test-futimens.c (main): Likewise.
24098         * tests/test-link.c (main): Likewise.
24099         * tests/test-linkat.c (main): Likewise.
24100         * tests/test-mkdir.c (main): Likewise.
24101         * tests/test-mkdirat.c (main): Likewise.
24102         * tests/test-mkfifo.c (main): Likewise.
24103         * tests/test-mkfifoat.c (main): Likewise.
24104         * tests/test-mknod.c (main): Likewise.
24105         * tests/test-readlink.c (main): Likewise.
24106         * tests/test-remove.c (main): Likewise.
24107         * tests/test-rename.c (main): Likewise.
24108         * tests/test-renameat.c (main): Likewise.
24109         * tests/test-symlink.c (main): Likewise.
24110         * tests/test-symlinkat.c (main): Likewise.
24111         * tests/test-utimens.c (main): Likewise.
24112         * tests/test-utimensat.c (main): Likewise.
24113
24114 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24115
24116         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24117         on $(UNUSED_PARAMETER_H) to avoid build failure.
24118
24119 2009-12-28  Jim Meyering  <meyering@redhat.com>
24120
24121         update-copyright: you may specify a max. line length other than 72
24122         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24123
24124         maint: use consistent FSF copyright line syntax
24125         * lib/posixtm.c: Add missing comma in FSF copyright line.
24126         * lib/posixtm.h: Likewise.
24127         * lib/getugroups.c: Add missing ", Inc.".
24128
24129         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24130         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24131         FSF copyright line.  Remove trailing blanks.
24132
24133 2009-12-28  Eric Blake  <ebb9@byu.net>
24134
24135         test-dup2: reduce dependencies
24136         * modules/cloexec (Configure.ac): Set witness.
24137         * modules/dup2-tests (Depends-on): Drop cloexec.
24138         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24139         not present.
24140         Suggested by Bruno Haible.
24141
24142 2009-12-26  Bruno Haible  <bruno@clisp.org>
24143
24144         Remove an unneeded dependency.
24145         * modules/fseterr (Depends-on): Remove dup2.
24146
24147 2009-12-26  Eric Blake  <ebb9@byu.net>
24148
24149         tests: use macros.h in more places
24150         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24151         (ASSERT_STREAM): Provide default of stderr.
24152         * tests/test-dirent-safer.c: Include macros.h, using alternate
24153         stream for assertions.
24154         * tests/test-dup-safer.c: Likewise.
24155         * tests/test-freopen-safer.c: Likewise.
24156         * tests/test-getopt.c: Likewise.
24157         * tests/test-openat-safer.c: Likewise.
24158         * tests/test-pipe.c: Likewise.
24159         * tests/test-popen-safer.c: Likewise.
24160         * modules/dirent-safer-tests (Files): Include macros.h.
24161         * modules/unistd-safer-tests (Files): Likewise.
24162         * modules/freopen-safer-tests (Files): Likewise.
24163         * modules/getopt-posix-tests (Files): Likewise.
24164         * modules/openat-safer-tests (Files): Likewise.
24165         * modules/pipe-tests (Files): Likewise.
24166
24167 2009-12-26  Bruno Haible  <bruno@clisp.org>
24168
24169         javacomp: Portability fix.
24170         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24171         that it also works on Solaris.
24172
24173 2009-12-26  Bruno Haible  <bruno@clisp.org>
24174
24175         localename: Fix storage allocation of gl_locale_name_thread's result.
24176         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24177         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24178         all platforms that have 'uselocale'.
24179         (gl_locale_name_thread_unsafe): New function, extracted from
24180         gl_locale_name_thread.
24181         (gl_locale_name_thread): Call struniq on all platforms that have
24182         'uselocale'.
24183         * tests/test-localename.c (test_locale_name_thread): Check that the
24184         resulting strings are permanently allocated.
24185         * modules/localename-tests (Depends-on): Add strdup.
24186
24187 2009-12-26  Bruno Haible  <bruno@clisp.org>
24188
24189         * tests/test-localename.c (categories): Fill in the strings.
24190
24191 2009-12-26  Jim Meyering  <meyering@redhat.com>
24192
24193         isdir: complete the removal of m4/isdir.m4
24194         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24195
24196         isdir: clean up, since at least grep still uses it
24197         * lib/isdir.c: Include "isdir.h".
24198         (S_ISDIR): Remove now-unneeded definition.
24199         * modules/isdir (Files): Add lib/isdir.h.
24200         * lib/isdir.h: New file, with declaration.
24201         * m4/isdir.m4: Remove file -- unneeded.
24202
24203 2009-12-25  Bruno Haible  <bruno@clisp.org>
24204
24205         selinux-h: Make generated .h files standalone.
24206         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24207         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24208         * lib/se-selinux.in.h: Likewise.
24209         * modules/selinux-h (Depends-on): Add unused-parameter.
24210         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24211         selinux/selinux.h and selinux/context.h.
24212         Suggested by Eric Blake.
24213
24214 2009-12-25  Bruno Haible  <bruno@clisp.org>
24215
24216         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24217         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24218         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24219         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24220         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24221
24222 2009-12-24  Bruno Haible  <bruno@clisp.org>
24223
24224         openat: Fix warning.
24225         * lib/openat-proc.c: Include <unistd.h>.
24226
24227 2009-12-24  Bruno Haible  <bruno@clisp.org>
24228
24229         New module 'unused-parameter'.
24230         * build-aux/unused-parameter.h: New file, extracted from earlier
24231         gnulib-common.m4.
24232         * modules/unused-parameter: New file.
24233         * lib/unistr.h: Include unused-parameter.h.
24234         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24235         _GL_UNUSED.
24236         * modules/unistr/base (Depends-on): Add unused-parameter.
24237
24238 2009-12-24  Bruno Haible  <bruno@clisp.org>
24239
24240         Add missing dependencies to 'extensions' module.
24241         * m4/extensions.m4: Add comment.
24242         * modules/accept4 (Depends-on): Add extensions.
24243         * modules/dup3 (Depends-on): Likewise.
24244         * modules/fcntl (Depends-on): Likewise.
24245         * modules/futimens (Depends-on): Likewise.
24246         * modules/mknod (Depends-on): Likewise.
24247         * modules/pipe2 (Depends-on): Likewise.
24248         * modules/stat-time (Depends-on): Likewise.
24249         * modules/strcasestr-simple (Depends-on): Likewise.
24250         * modules/strsignal (Depends-on): Likewise.
24251         * modules/utimensat (Depends-on): Likewise.
24252         * modules/localcharset (Depends-on): Likewise. Needed because of
24253         gl_FCNTL_O_FLAGS.
24254         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24255         AC_TYPE_MBSTATE_T.
24256         * modules/wcsnrtombs (Depends-on): Likewise.
24257         * modules/wcsrtombs (Depends-on): Likewise.
24258
24259 2009-12-24  Bruno Haible  <bruno@clisp.org>
24260
24261         binary-io: Avoid gcc warning due to SET_BINARY.
24262         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24263         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24264
24265 2009-12-24  Bruno Haible  <bruno@clisp.org>
24266
24267         Avoid future namespace pollution on glibc systems.
24268         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24269         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24270         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24271         glibc systems.
24272
24273 2009-12-24  Bruno Haible  <bruno@clisp.org>
24274
24275         Refactor common macros used in tests.
24276         * tests/macros.h: New file.
24277         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24278         and/or <stdlib.h>, if appropriate.
24279         (ASSERT, SIZEOF): Remove macros.
24280         * tests/test-areadlink-with-size.c: Likewise.
24281         * tests/test-areadlinkat.c: Likewise.
24282         * tests/test-areadlinkat-with-size.c: Likewise.
24283         * tests/test-argmatch.c: Likewise.
24284         * tests/test-argv-iter.c: Likewise.
24285         * tests/test-array-mergesort.c: Likewise.
24286         * tests/test-array_list.c: Likewise.
24287         * tests/test-array_oset.c: Likewise.
24288         * tests/test-avltree_list.c: Likewise.
24289         * tests/test-avltree_oset.c: Likewise.
24290         * tests/test-avltreehash_list.c: Likewise.
24291         * tests/test-base64.c: Likewise.
24292         * tests/test-binary-io.c: Likewise.
24293         * tests/test-bitrotate.c: Likewise.
24294         * tests/test-btowc.c: Likewise.
24295         * tests/test-byteswap.c: Likewise.
24296         * tests/test-c-ctype.c: Likewise.
24297         * tests/test-c-stack.c: Likewise.
24298         * tests/test-c-strcasecmp.c: Likewise.
24299         * tests/test-c-strcasestr.c: Likewise.
24300         * tests/test-c-strncasecmp.c: Likewise.
24301         * tests/test-c-strstr.c: Likewise.
24302         * tests/test-canonicalize-lgpl.c: Likewise.
24303         * tests/test-canonicalize.c: Likewise.
24304         * tests/test-carray_list.c: Likewise.
24305         * tests/test-ceilf1.c: Likewise.
24306         * tests/test-ceilf2.c: Likewise.
24307         * tests/test-ceill.c: Likewise.
24308         * tests/test-chown.c: Likewise.
24309         * tests/test-cloexec.c: Likewise.
24310         * tests/test-copy-acl.c: Likewise.
24311         * tests/test-copy-file.c: Likewise.
24312         * tests/test-count-one-bits.c: Likewise.
24313         * tests/test-dprintf-posix.c: Likewise.
24314         * tests/test-dup2.c: Likewise.
24315         * tests/test-dup3.c: Likewise.
24316         * tests/test-duplocale.c: Likewise.
24317         * tests/test-fbufmode.c: Likewise.
24318         * tests/test-fchdir.c: Likewise.
24319         * tests/test-fchownat.c: Likewise.
24320         * tests/test-fcntl-safer.c: Likewise.
24321         * tests/test-fcntl.c: Likewise.
24322         * tests/test-fdopendir.c: Likewise.
24323         * tests/test-fdutimensat.c: Likewise.
24324         * tests/test-fflush2.c: Likewise.
24325         * tests/test-file-has-acl.c: Likewise.
24326         * tests/test-filevercmp.c: Likewise.
24327         * tests/test-flock.c: Likewise.
24328         * tests/test-floorf1.c: Likewise.
24329         * tests/test-floorf2.c: Likewise.
24330         * tests/test-floorl.c: Likewise.
24331         * tests/test-fnmatch.c: Likewise.
24332         * tests/test-fopen.h: Likewise.
24333         * tests/test-fpending.c: Likewise.
24334         * tests/test-fprintf-posix.c: Likewise.
24335         * tests/test-fpurge.c: Likewise.
24336         * tests/test-freadable.c: Likewise.
24337         * tests/test-freadahead.c: Likewise.
24338         * tests/test-freading.c: Likewise.
24339         * tests/test-freadptr.c: Likewise.
24340         * tests/test-freadptr2.c: Likewise.
24341         * tests/test-freadseek.c: Likewise.
24342         * tests/test-freopen.c: Likewise.
24343         * tests/test-frexp.c: Likewise.
24344         * tests/test-frexpl.c: Likewise.
24345         * tests/test-fseek.c: Likewise.
24346         * tests/test-fseeko.c: Likewise.
24347         * tests/test-fstatat.c: Likewise.
24348         * tests/test-fstrcmp.c: Likewise.
24349         * tests/test-fsync.c: Likewise.
24350         * tests/test-ftell.c: Likewise.
24351         * tests/test-ftello.c: Likewise.
24352         * tests/test-func.c: Likewise.
24353         * tests/test-futimens.c: Likewise.
24354         * tests/test-fwritable.c: Likewise.
24355         * tests/test-fwriting.c: Likewise.
24356         * tests/test-getcwd.c: Likewise.
24357         * tests/test-getdate.c: Likewise.
24358         * tests/test-getdelim.c: Likewise.
24359         * tests/test-getdtablesize.c: Likewise.
24360         * tests/test-getgroups.c: Likewise.
24361         * tests/test-getline.c: Likewise.
24362         * tests/test-getndelim2.c: Likewise.
24363         * tests/test-glob.c: Likewise.
24364         * tests/test-hash.c: Likewise.
24365         * tests/test-i-ring.c: Likewise.
24366         * tests/test-iconv-utf.c: Likewise.
24367         * tests/test-iconv.c: Likewise.
24368         * tests/test-idpriv-drop.c: Likewise.
24369         * tests/test-idpriv-droptemp.c: Likewise.
24370         * tests/test-inet_ntop.c: Likewise.
24371         * tests/test-inet_pton.c: Likewise.
24372         * tests/test-isblank.c: Likewise.
24373         * tests/test-isfinite.c: Likewise.
24374         * tests/test-isinf.c: Likewise.
24375         * tests/test-isnan.c: Likewise.
24376         * tests/test-isnand.h: Likewise.
24377         * tests/test-isnanf.h: Likewise.
24378         * tests/test-isnanl.h: Likewise.
24379         * tests/test-lchown.c: Likewise.
24380         * tests/test-ldexpl.c: Likewise.
24381         * tests/test-link.c: Likewise.
24382         * tests/test-linkat.c: Likewise.
24383         * tests/test-linked_list.c: Likewise.
24384         * tests/test-linkedhash_list.c: Likewise.
24385         * tests/test-localename.c: Likewise.
24386         * tests/test-lseek.c: Likewise.
24387         * tests/test-lstat.c: Likewise.
24388         * tests/test-mbmemcasecmp.c: Likewise.
24389         * tests/test-mbmemcasecoll.c: Likewise.
24390         * tests/test-mbrtowc.c: Likewise.
24391         * tests/test-mbscasecmp.c: Likewise.
24392         * tests/test-mbscasestr1.c: Likewise.
24393         * tests/test-mbscasestr2.c: Likewise.
24394         * tests/test-mbscasestr3.c: Likewise.
24395         * tests/test-mbscasestr4.c: Likewise.
24396         * tests/test-mbschr.c: Likewise.
24397         * tests/test-mbscspn.c: Likewise.
24398         * tests/test-mbsinit.c: Likewise.
24399         * tests/test-mbsncasecmp.c: Likewise.
24400         * tests/test-mbsnrtowcs.c: Likewise.
24401         * tests/test-mbspbrk.c: Likewise.
24402         * tests/test-mbspcasecmp.c: Likewise.
24403         * tests/test-mbsrchr.c: Likewise.
24404         * tests/test-mbsrtowcs.c: Likewise.
24405         * tests/test-mbsspn.c: Likewise.
24406         * tests/test-mbsstr1.c: Likewise.
24407         * tests/test-mbsstr2.c: Likewise.
24408         * tests/test-mbsstr3.c: Likewise.
24409         * tests/test-memchr.c: Likewise.
24410         * tests/test-memchr2.c: Likewise.
24411         * tests/test-memcmp.c: Likewise.
24412         * tests/test-memmem.c: Likewise.
24413         * tests/test-memrchr.c: Likewise.
24414         * tests/test-mkdir.c: Likewise.
24415         * tests/test-mkdirat.c: Likewise.
24416         * tests/test-mkfifo.c: Likewise.
24417         * tests/test-mkfifoat.c: Likewise.
24418         * tests/test-mknod.c: Likewise.
24419         * tests/test-nanosleep.c: Likewise.
24420         * tests/test-nl_langinfo.c: Likewise.
24421         * tests/test-obstack-printf.c: Likewise.
24422         * tests/test-open.c: Likewise.
24423         * tests/test-openat.c: Likewise.
24424         * tests/test-pipe-filter-gi1.c: Likewise.
24425         * tests/test-pipe-filter-gi2-main.c: Likewise.
24426         * tests/test-pipe-filter-ii1.c: Likewise.
24427         * tests/test-pipe-filter-ii2-main.c: Likewise.
24428         * tests/test-pipe2.c: Likewise.
24429         * tests/test-popen.h: Likewise.
24430         * tests/test-posixtm.c: Likewise.
24431         * tests/test-pread.c: Likewise.
24432         * tests/test-printf-frexp.c: Likewise.
24433         * tests/test-printf-frexpl.c: Likewise.
24434         * tests/test-printf-posix.c: Likewise.
24435         * tests/test-priv-set.c: Likewise.
24436         * tests/test-quotearg.c: Likewise.
24437         * tests/test-random_r.c: Likewise.
24438         * tests/test-rawmemchr.c: Likewise.
24439         * tests/test-rbtree_list.c: Likewise.
24440         * tests/test-rbtree_oset.c: Likewise.
24441         * tests/test-rbtreehash_list.c: Likewise.
24442         * tests/test-readlink.c: Likewise.
24443         * tests/test-remove.c: Likewise.
24444         * tests/test-rename.c: Likewise.
24445         * tests/test-renameat.c: Likewise.
24446         * tests/test-rmdir.c: Likewise.
24447         * tests/test-round1.c: Likewise.
24448         * tests/test-roundf1.c: Likewise.
24449         * tests/test-roundl.c: Likewise.
24450         * tests/test-safe-alloc.c: Likewise.
24451         * tests/test-sameacls.c: Likewise.
24452         * tests/test-set-mode-acl.c: Likewise.
24453         * tests/test-setenv.c: Likewise.
24454         * tests/test-sigaction.c: Likewise.
24455         * tests/test-signbit.c: Likewise.
24456         * tests/test-sleep.c: Likewise.
24457         * tests/test-snprintf-posix.c: Likewise.
24458         * tests/test-snprintf.c: Likewise.
24459         * tests/test-sprintf-posix.c: Likewise.
24460         * tests/test-stat-time.c: Likewise.
24461         * tests/test-stat.c: Likewise.
24462         * tests/test-strcasestr.c: Likewise.
24463         * tests/test-strchrnul.c: Likewise.
24464         * tests/test-strerror.c: Likewise.
24465         * tests/test-striconv.c: Likewise.
24466         * tests/test-striconveh.c: Likewise.
24467         * tests/test-striconveha.c: Likewise.
24468         * tests/test-strsignal.c: Likewise.
24469         * tests/test-strstr.c: Likewise.
24470         * tests/test-strtod.c: Likewise.
24471         * tests/test-strverscmp.c: Likewise.
24472         * tests/test-symlink.c: Likewise.
24473         * tests/test-symlinkat.c: Likewise.
24474         * tests/test-trunc1.c: Likewise.
24475         * tests/test-trunc2.c: Likewise.
24476         * tests/test-truncf1.c: Likewise.
24477         * tests/test-truncf2.c: Likewise.
24478         * tests/test-truncl.c: Likewise.
24479         * tests/test-uname.c: Likewise.
24480         * tests/test-unlink.c: Likewise.
24481         * tests/test-unlinkat.c: Likewise.
24482         * tests/test-unsetenv.c: Likewise.
24483         * tests/test-usleep.c: Likewise.
24484         * tests/test-utimens.c: Likewise.
24485         * tests/test-utimensat.c: Likewise.
24486         * tests/test-vasnprintf-posix.c: Likewise.
24487         * tests/test-vasnprintf-posix2.c: Likewise.
24488         * tests/test-vasnprintf.c: Likewise.
24489         * tests/test-vasprintf-posix.c: Likewise.
24490         * tests/test-vasprintf.c: Likewise.
24491         * tests/test-vdprintf-posix.c: Likewise.
24492         * tests/test-vfprintf-posix.c: Likewise.
24493         * tests/test-vprintf-posix.c: Likewise.
24494         * tests/test-vsnprintf-posix.c: Likewise.
24495         * tests/test-vsnprintf.c: Likewise.
24496         * tests/test-vsprintf-posix.c: Likewise.
24497         * tests/test-wcrtomb.c: Likewise.
24498         * tests/test-wcsnrtombs.c: Likewise.
24499         * tests/test-wcsrtombs.c: Likewise.
24500         * tests/test-wctype.c: Likewise.
24501         * tests/test-wcwidth.c: Likewise.
24502         * tests/test-xfprintf-posix.c: Likewise.
24503         * tests/test-xmemdup0.c: Likewise.
24504         * tests/test-xprintf-posix.c: Likewise.
24505         * tests/test-xvasprintf.c: Likewise.
24506         * tests/unicase/test-locale-language.c: Likewise.
24507         * tests/unicase/test-mapping-part1.h: Likewise.
24508         * tests/unicase/test-predicate-part1.h: Likewise.
24509         * tests/unicase/test-u8-casecmp.c: Likewise.
24510         * tests/unicase/test-u8-casecoll.c: Likewise.
24511         * tests/unicase/test-u8-casefold.c: Likewise.
24512         * tests/unicase/test-u8-is-cased.c: Likewise.
24513         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24514         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24515         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24516         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24517         * tests/unicase/test-u8-tolower.c: Likewise.
24518         * tests/unicase/test-u8-totitle.c: Likewise.
24519         * tests/unicase/test-u8-toupper.c: Likewise.
24520         * tests/unicase/test-u16-casecmp.c: Likewise.
24521         * tests/unicase/test-u16-casecoll.c: Likewise.
24522         * tests/unicase/test-u16-casefold.c: Likewise.
24523         * tests/unicase/test-u16-is-cased.c: Likewise.
24524         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24525         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24526         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24527         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24528         * tests/unicase/test-u16-tolower.c: Likewise.
24529         * tests/unicase/test-u16-totitle.c: Likewise.
24530         * tests/unicase/test-u16-toupper.c: Likewise.
24531         * tests/unicase/test-u32-casecmp.c: Likewise.
24532         * tests/unicase/test-u32-casecoll.c: Likewise.
24533         * tests/unicase/test-u32-casefold.c: Likewise.
24534         * tests/unicase/test-u32-is-cased.c: Likewise.
24535         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24536         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24537         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24538         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24539         * tests/unicase/test-u32-tolower.c: Likewise.
24540         * tests/unicase/test-u32-totitle.c: Likewise.
24541         * tests/unicase/test-u32-toupper.c: Likewise.
24542         * tests/unicase/test-ulc-casecmp.c: Likewise.
24543         * tests/unicase/test-ulc-casecoll.c: Likewise.
24544         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24545         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24546         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24547         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24548         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24549         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24550         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24551         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24552         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24553         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24554         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24555         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24556         * tests/unictype/test-bidi_byname.c: Likewise.
24557         * tests/unictype/test-bidi_name.c: Likewise.
24558         * tests/unictype/test-bidi_of.c: Likewise.
24559         * tests/unictype/test-bidi_test.c: Likewise.
24560         * tests/unictype/test-block_list.c: Likewise.
24561         * tests/unictype/test-block_of.c: Likewise.
24562         * tests/unictype/test-block_test.c: Likewise.
24563         * tests/unictype/test-categ_and.c: Likewise.
24564         * tests/unictype/test-categ_and_not.c: Likewise.
24565         * tests/unictype/test-categ_byname.c: Likewise.
24566         * tests/unictype/test-categ_name.c: Likewise.
24567         * tests/unictype/test-categ_none.c: Likewise.
24568         * tests/unictype/test-categ_of.c: Likewise.
24569         * tests/unictype/test-categ_or.c: Likewise.
24570         * tests/unictype/test-categ_test_withtable.c: Likewise.
24571         * tests/unictype/test-combining.c: Likewise.
24572         * tests/unictype/test-decdigit.c: Likewise.
24573         * tests/unictype/test-digit.c: Likewise.
24574         * tests/unictype/test-mirror.c: Likewise.
24575         * tests/unictype/test-numeric.c: Likewise.
24576         * tests/unictype/test-pr_byname.c: Likewise.
24577         * tests/unictype/test-pr_test.c: Likewise.
24578         * tests/unictype/test-predicate-part1.h: Likewise.
24579         * tests/unictype/test-scripts.c: Likewise.
24580         * tests/unictype/test-sy_c_ident.c: Likewise.
24581         * tests/unictype/test-sy_java_ident.c: Likewise.
24582         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24583         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24584         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24585         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24586         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24587         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24588         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24589         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24590         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24591         * tests/uninorm/test-compat-decomposition.c: Likewise.
24592         * tests/uninorm/test-composition.c: Likewise.
24593         * tests/uninorm/test-decomposing-form.c: Likewise.
24594         * tests/uninorm/test-decomposition.c: Likewise.
24595         * tests/uninorm/test-u8-nfc.c: Likewise.
24596         * tests/uninorm/test-u8-nfd.c: Likewise.
24597         * tests/uninorm/test-u8-nfkc.c: Likewise.
24598         * tests/uninorm/test-u8-nfkd.c: Likewise.
24599         * tests/uninorm/test-u8-normcmp.c: Likewise.
24600         * tests/uninorm/test-u8-normcoll.c: Likewise.
24601         * tests/uninorm/test-u16-nfc.c: Likewise.
24602         * tests/uninorm/test-u16-nfd.c: Likewise.
24603         * tests/uninorm/test-u16-nfkc.c: Likewise.
24604         * tests/uninorm/test-u16-nfkd.c: Likewise.
24605         * tests/uninorm/test-u16-normcmp.c: Likewise.
24606         * tests/uninorm/test-u16-normcoll.c: Likewise.
24607         * tests/uninorm/test-u32-nfc.c: Likewise.
24608         * tests/uninorm/test-u32-nfd.c: Likewise.
24609         * tests/uninorm/test-u32-nfkc.c: Likewise.
24610         * tests/uninorm/test-u32-nfkd.c: Likewise.
24611         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24612         * tests/uninorm/test-u32-normcmp.c: Likewise.
24613         * tests/uninorm/test-u32-normcoll.c: Likewise.
24614         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24615         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24616         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24617         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24618         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24619         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24620         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24621         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24622         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24623         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24624         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24625         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24626         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24627         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24628         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24629         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24630         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24631         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24632         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24633         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24634         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24635         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24636         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24637         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24638         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24639         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24640         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24641         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24642         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24643         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24644         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24645         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24646         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24647         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24648         * tests/uniwidth/test-u8-width.c: Likewise.
24649         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24650         * tests/uniwidth/test-u16-width.c: Likewise.
24651         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24652         * tests/uniwidth/test-u32-width.c: Likewise.
24653         * tests/uniwidth/test-uc_width.c: Likewise.
24654         * tests/uniwidth/test-uc_width2.c: Likewise.
24655         * modules/acl-tests (Files): Add tests/macros.h.
24656         * modules/areadlink-tests (Files): Likewise.
24657         * modules/areadlink-with-size-tests (Files): Likewise.
24658         * modules/areadlinkat-tests (Files): Likewise.
24659         * modules/areadlinkat-with-size-tests (Files): Likewise.
24660         * modules/argmatch-tests (Files): Likewise.
24661         * modules/argv-iter-tests (Files): Likewise.
24662         * modules/array-list-tests (Files): Likewise.
24663         * modules/array-mergesort-tests (Files): Likewise.
24664         * modules/array-oset-tests (Files): Likewise.
24665         * modules/avltree-list-tests (Files): Likewise.
24666         * modules/avltree-oset-tests (Files): Likewise.
24667         * modules/avltreehash-list-tests (Files): Likewise.
24668         * modules/base64-tests (Files): Likewise.
24669         * modules/binary-io-tests (Files): Likewise.
24670         * modules/bitrotate-tests (Files): Likewise.
24671         * modules/btowc-tests (Files): Likewise.
24672         * modules/byteswap-tests (Files): Likewise.
24673         * modules/c-ctype-tests (Files): Likewise.
24674         * modules/c-stack-tests (Files): Likewise.
24675         * modules/c-strcase-tests (Files): Likewise.
24676         * modules/c-strcasestr-tests (Files): Likewise.
24677         * modules/c-strstr-tests (Files): Likewise.
24678         * modules/canonicalize-lgpl-tests (Files): Likewise.
24679         * modules/canonicalize-tests (Files): Likewise.
24680         * modules/carray-list-tests (Files): Likewise.
24681         * modules/ceilf-tests (Files): Likewise.
24682         * modules/ceill-tests (Files): Likewise.
24683         * modules/chown-tests (Files): Likewise.
24684         * modules/cloexec-tests (Files): Likewise.
24685         * modules/copy-file-tests (Files): Likewise.
24686         * modules/count-one-bits-tests (Files): Likewise.
24687         * modules/dprintf-posix-tests (Files): Likewise.
24688         * modules/dup2-tests (Files): Likewise.
24689         * modules/dup3-tests (Files): Likewise.
24690         * modules/duplocale-tests (Files): Likewise.
24691         * modules/fbufmode-tests (Files): Likewise.
24692         * modules/fchdir-tests (Files): Likewise.
24693         * modules/fcntl-safer-tests (Files): Likewise.
24694         * modules/fcntl-tests (Files): Likewise.
24695         * modules/fdopendir-tests (Files): Likewise.
24696         * modules/fdutimensat-tests (Files): Likewise.
24697         * modules/fflush-tests (Files): Likewise.
24698         * modules/filevercmp-tests (Files): Likewise.
24699         * modules/flock-tests (Files): Likewise.
24700         * modules/floorf-tests (Files): Likewise.
24701         * modules/floorl-tests (Files): Likewise.
24702         * modules/fnmatch-tests (Files): Likewise.
24703         * modules/fopen-safer-tests (Files): Likewise.
24704         * modules/fopen-tests (Files): Likewise.
24705         * modules/fpending-tests (Files): Likewise.
24706         * modules/fprintf-posix-tests (Files): Likewise.
24707         * modules/fpurge-tests (Files): Likewise.
24708         * modules/freadable-tests (Files): Likewise.
24709         * modules/freadahead-tests (Files): Likewise.
24710         * modules/freading-tests (Files): Likewise.
24711         * modules/freadptr-tests (Files): Likewise.
24712         * modules/freadseek-tests (Files): Likewise.
24713         * modules/freopen-tests (Files): Likewise.
24714         * modules/frexp-nolibm-tests (Files): Likewise.
24715         * modules/frexp-tests (Files): Likewise.
24716         * modules/frexpl-nolibm-tests (Files): Likewise.
24717         * modules/frexpl-tests (Files): Likewise.
24718         * modules/fseek-tests (Files): Likewise.
24719         * modules/fseeko-tests (Files): Likewise.
24720         * modules/fstrcmp-tests (Files): Likewise.
24721         * modules/fsync-tests (Files): Likewise.
24722         * modules/ftell-tests (Files): Likewise.
24723         * modules/ftello-tests (Files): Likewise.
24724         * modules/func-tests (Files): Likewise.
24725         * modules/futimens-tests (Files): Likewise.
24726         * modules/fwritable-tests (Files): Likewise.
24727         * modules/fwriting-tests (Files): Likewise.
24728         * modules/getcwd-tests (Files): Likewise.
24729         * modules/getdate-tests (Files): Likewise.
24730         * modules/getdelim-tests (Files): Likewise.
24731         * modules/getdtablesize-tests (Files): Likewise.
24732         * modules/getgroups-tests (Files): Likewise.
24733         * modules/getline-tests (Files): Likewise.
24734         * modules/getndelim2-tests (Files): Likewise.
24735         * modules/glob-tests (Files): Likewise.
24736         * modules/hash-tests (Files): Likewise.
24737         * modules/i-ring-tests (Files): Likewise.
24738         * modules/iconv-tests (Files): Likewise.
24739         * modules/iconv_open-utf-tests (Files): Likewise.
24740         * modules/idpriv-drop-tests (Files): Likewise.
24741         * modules/idpriv-droptemp-tests (Files): Likewise.
24742         * modules/inet_ntop-tests (Files): Likewise.
24743         * modules/inet_pton-tests (Files): Likewise.
24744         * modules/isblank-tests (Files): Likewise.
24745         * modules/isfinite-tests (Files): Likewise.
24746         * modules/isinf-tests (Files): Likewise.
24747         * modules/isnan-tests (Files): Likewise.
24748         * modules/isnand-nolibm-tests (Files): Likewise.
24749         * modules/isnand-tests (Files): Likewise.
24750         * modules/isnanf-nolibm-tests (Files): Likewise.
24751         * modules/isnanf-tests (Files): Likewise.
24752         * modules/isnanl-nolibm-tests (Files): Likewise.
24753         * modules/isnanl-tests (Files): Likewise.
24754         * modules/lchown-tests (Files): Likewise.
24755         * modules/ldexpl-tests (Files): Likewise.
24756         * modules/link-tests (Files): Likewise.
24757         * modules/linkat-tests (Files): Likewise.
24758         * modules/linked-list-tests (Files): Likewise.
24759         * modules/linkedhash-list-tests (Files): Likewise.
24760         * modules/localename-tests (Files): Likewise.
24761         * modules/lseek-tests (Files): Likewise.
24762         * modules/lstat-tests (Files): Likewise.
24763         * modules/mbmemcasecmp-tests (Files): Likewise.
24764         * modules/mbmemcasecoll-tests (Files): Likewise.
24765         * modules/mbrtowc-tests (Files): Likewise.
24766         * modules/mbscasecmp-tests (Files): Likewise.
24767         * modules/mbscasestr-tests (Files): Likewise.
24768         * modules/mbschr-tests (Files): Likewise.
24769         * modules/mbscspn-tests (Files): Likewise.
24770         * modules/mbsinit-tests (Files): Likewise.
24771         * modules/mbsncasecmp-tests (Files): Likewise.
24772         * modules/mbsnrtowcs-tests (Files): Likewise.
24773         * modules/mbspbrk-tests (Files): Likewise.
24774         * modules/mbspcasecmp-tests (Files): Likewise.
24775         * modules/mbsrchr-tests (Files): Likewise.
24776         * modules/mbsrtowcs-tests (Files): Likewise.
24777         * modules/mbsspn-tests (Files): Likewise.
24778         * modules/mbsstr-tests (Files): Likewise.
24779         * modules/memchr-tests (Files): Likewise.
24780         * modules/memchr2-tests (Files): Likewise.
24781         * modules/memcmp-tests (Files): Likewise.
24782         * modules/memmem-tests (Files): Likewise.
24783         * modules/memrchr-tests (Files): Likewise.
24784         * modules/mkdir-tests (Files): Likewise.
24785         * modules/mkfifo-tests (Files): Likewise.
24786         * modules/mkfifoat-tests (Files): Likewise.
24787         * modules/mknod-tests (Files): Likewise.
24788         * modules/nanosleep-tests (Files): Likewise.
24789         * modules/nl_langinfo-tests (Files): Likewise.
24790         * modules/obstack-printf-tests (Files): Likewise.
24791         * modules/open-tests (Files): Likewise.
24792         * modules/openat-tests (Files): Likewise.
24793         * modules/pipe-filter-gi-tests (Files): Likewise.
24794         * modules/pipe-filter-ii-tests (Files): Likewise.
24795         * modules/pipe2-tests (Files): Likewise.
24796         * modules/popen-safer-tests (Files): Likewise.
24797         * modules/popen-tests (Files): Likewise.
24798         * modules/posixtm-tests (Files): Likewise.
24799         * modules/pread-tests (Files): Likewise.
24800         * modules/printf-frexp-tests (Files): Likewise.
24801         * modules/printf-frexpl-tests (Files): Likewise.
24802         * modules/printf-posix-tests (Files): Likewise.
24803         * modules/priv-set-tests (Files): Likewise.
24804         * modules/quotearg-tests (Files): Likewise.
24805         * modules/random_r-tests (Files): Likewise.
24806         * modules/rawmemchr-tests (Files): Likewise.
24807         * modules/rbtree-list-tests (Files): Likewise.
24808         * modules/rbtree-oset-tests (Files): Likewise.
24809         * modules/rbtreehash-list-tests (Files): Likewise.
24810         * modules/readlink-tests (Files): Likewise.
24811         * modules/remove-tests (Files): Likewise.
24812         * modules/rename-tests (Files): Likewise.
24813         * modules/renameat-tests (Files): Likewise.
24814         * modules/rmdir-tests (Files): Likewise.
24815         * modules/round-tests (Files): Likewise.
24816         * modules/roundf-tests (Files): Likewise.
24817         * modules/roundl-tests (Files): Likewise.
24818         * modules/safe-alloc-tests (Files): Likewise.
24819         * modules/setenv-tests (Files): Likewise.
24820         * modules/sigaction-tests (Files): Likewise.
24821         * modules/signbit-tests (Files): Likewise.
24822         * modules/sleep-tests (Files): Likewise.
24823         * modules/snprintf-posix-tests (Files): Likewise.
24824         * modules/snprintf-tests (Files): Likewise.
24825         * modules/sprintf-posix-tests (Files): Likewise.
24826         * modules/stat-tests (Files): Likewise.
24827         * modules/stat-time-tests (Files): Likewise.
24828         * modules/strcasestr-tests (Files): Likewise.
24829         * modules/strchrnul-tests (Files): Likewise.
24830         * modules/strerror-tests (Files): Likewise.
24831         * modules/striconv-tests (Files): Likewise.
24832         * modules/striconveh-tests (Files): Likewise.
24833         * modules/striconveha-tests (Files): Likewise.
24834         * modules/strsignal-tests (Files): Likewise.
24835         * modules/strstr-tests (Files): Likewise.
24836         * modules/strtod-tests (Files): Likewise.
24837         * modules/strverscmp-tests (Files): Likewise.
24838         * modules/symlink-tests (Files): Likewise.
24839         * modules/symlinkat-tests (Files): Likewise.
24840         * modules/trunc-tests (Files): Likewise.
24841         * modules/truncf-tests (Files): Likewise.
24842         * modules/truncl-tests (Files): Likewise.
24843         * modules/uname-tests (Files): Likewise.
24844         * modules/unicase/cased-tests (Files): Likewise.
24845         * modules/unicase/ignorable-tests (Files): Likewise.
24846         * modules/unicase/locale-language-tests (Files): Likewise.
24847         * modules/unicase/tolower-tests (Files): Likewise.
24848         * modules/unicase/totitle-tests (Files): Likewise.
24849         * modules/unicase/toupper-tests (Files): Likewise.
24850         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24851         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24852         * modules/unicase/u8-casefold-tests (Files): Likewise.
24853         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24854         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24855         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24856         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24857         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24858         * modules/unicase/u8-tolower-tests (Files): Likewise.
24859         * modules/unicase/u8-totitle-tests (Files): Likewise.
24860         * modules/unicase/u8-toupper-tests (Files): Likewise.
24861         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24862         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24863         * modules/unicase/u16-casefold-tests (Files): Likewise.
24864         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24865         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24866         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24867         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24868         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24869         * modules/unicase/u16-tolower-tests (Files): Likewise.
24870         * modules/unicase/u16-totitle-tests (Files): Likewise.
24871         * modules/unicase/u16-toupper-tests (Files): Likewise.
24872         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24873         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24874         * modules/unicase/u32-casefold-tests (Files): Likewise.
24875         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24876         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24877         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24878         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24879         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24880         * modules/unicase/u32-tolower-tests (Files): Likewise.
24881         * modules/unicase/u32-totitle-tests (Files): Likewise.
24882         * modules/unicase/u32-toupper-tests (Files): Likewise.
24883         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24884         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24885         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24886         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24887         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24888         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24889         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24890         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24891         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24892         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24893         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24894         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24895         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24896         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24897         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24898         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24899         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24900         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24901         * modules/unictype/block-list-tests (Files): Likewise.
24902         * modules/unictype/block-of-tests (Files): Likewise.
24903         * modules/unictype/block-test-tests (Files): Likewise.
24904         * modules/unictype/category-C-tests (Files): Likewise.
24905         * modules/unictype/category-Cc-tests (Files): Likewise.
24906         * modules/unictype/category-Cf-tests (Files): Likewise.
24907         * modules/unictype/category-Cn-tests (Files): Likewise.
24908         * modules/unictype/category-Co-tests (Files): Likewise.
24909         * modules/unictype/category-Cs-tests (Files): Likewise.
24910         * modules/unictype/category-L-tests (Files): Likewise.
24911         * modules/unictype/category-Ll-tests (Files): Likewise.
24912         * modules/unictype/category-Lm-tests (Files): Likewise.
24913         * modules/unictype/category-Lo-tests (Files): Likewise.
24914         * modules/unictype/category-Lt-tests (Files): Likewise.
24915         * modules/unictype/category-Lu-tests (Files): Likewise.
24916         * modules/unictype/category-M-tests (Files): Likewise.
24917         * modules/unictype/category-Mc-tests (Files): Likewise.
24918         * modules/unictype/category-Me-tests (Files): Likewise.
24919         * modules/unictype/category-Mn-tests (Files): Likewise.
24920         * modules/unictype/category-N-tests (Files): Likewise.
24921         * modules/unictype/category-Nd-tests (Files): Likewise.
24922         * modules/unictype/category-Nl-tests (Files): Likewise.
24923         * modules/unictype/category-No-tests (Files): Likewise.
24924         * modules/unictype/category-P-tests (Files): Likewise.
24925         * modules/unictype/category-Pc-tests (Files): Likewise.
24926         * modules/unictype/category-Pd-tests (Files): Likewise.
24927         * modules/unictype/category-Pe-tests (Files): Likewise.
24928         * modules/unictype/category-Pf-tests (Files): Likewise.
24929         * modules/unictype/category-Pi-tests (Files): Likewise.
24930         * modules/unictype/category-Po-tests (Files): Likewise.
24931         * modules/unictype/category-Ps-tests (Files): Likewise.
24932         * modules/unictype/category-S-tests (Files): Likewise.
24933         * modules/unictype/category-Sc-tests (Files): Likewise.
24934         * modules/unictype/category-Sk-tests (Files): Likewise.
24935         * modules/unictype/category-Sm-tests (Files): Likewise.
24936         * modules/unictype/category-So-tests (Files): Likewise.
24937         * modules/unictype/category-Z-tests (Files): Likewise.
24938         * modules/unictype/category-Zl-tests (Files): Likewise.
24939         * modules/unictype/category-Zp-tests (Files): Likewise.
24940         * modules/unictype/category-Zs-tests (Files): Likewise.
24941         * modules/unictype/category-and-not-tests (Files): Likewise.
24942         * modules/unictype/category-and-tests (Files): Likewise.
24943         * modules/unictype/category-byname-tests (Files): Likewise.
24944         * modules/unictype/category-name-tests (Files): Likewise.
24945         * modules/unictype/category-none-tests (Files): Likewise.
24946         * modules/unictype/category-of-tests (Files): Likewise.
24947         * modules/unictype/category-or-tests (Files): Likewise.
24948         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24949         * modules/unictype/combining-class-tests (Files): Likewise.
24950         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24951         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24952         * modules/unictype/ctype-blank-tests (Files): Likewise.
24953         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24954         * modules/unictype/ctype-digit-tests (Files): Likewise.
24955         * modules/unictype/ctype-graph-tests (Files): Likewise.
24956         * modules/unictype/ctype-lower-tests (Files): Likewise.
24957         * modules/unictype/ctype-print-tests (Files): Likewise.
24958         * modules/unictype/ctype-punct-tests (Files): Likewise.
24959         * modules/unictype/ctype-space-tests (Files): Likewise.
24960         * modules/unictype/ctype-upper-tests (Files): Likewise.
24961         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24962         * modules/unictype/decimal-digit-tests (Files): Likewise.
24963         * modules/unictype/digit-tests (Files): Likewise.
24964         * modules/unictype/mirror-tests (Files): Likewise.
24965         * modules/unictype/numeric-tests (Files): Likewise.
24966         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24967         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24968         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24969         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24970         Likewise.
24971         * modules/unictype/property-bidi-block-separator-tests (Files):
24972         Likewise.
24973         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24974         Likewise.
24975         * modules/unictype/property-bidi-common-separator-tests (Files):
24976         Likewise.
24977         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24978         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24979         Likewise.
24980         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24981         Likewise.
24982         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24983         Likewise.
24984         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24985         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24986         Likewise.
24987         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24988         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24989         Likewise.
24990         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24991         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24992         * modules/unictype/property-bidi-segment-separator-tests (Files):
24993         Likewise.
24994         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24995         * modules/unictype/property-byname-tests (Files): Likewise.
24996         * modules/unictype/property-combining-tests (Files): Likewise.
24997         * modules/unictype/property-composite-tests (Files): Likewise.
24998         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24999         * modules/unictype/property-dash-tests (Files): Likewise.
25000         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25001         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25002         Likewise.
25003         * modules/unictype/property-deprecated-tests (Files): Likewise.
25004         * modules/unictype/property-diacritic-tests (Files): Likewise.
25005         * modules/unictype/property-extender-tests (Files): Likewise.
25006         * modules/unictype/property-format-control-tests (Files): Likewise.
25007         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25008         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25009         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25010         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25011         * modules/unictype/property-hyphen-tests (Files): Likewise.
25012         * modules/unictype/property-id-continue-tests (Files): Likewise.
25013         * modules/unictype/property-id-start-tests (Files): Likewise.
25014         * modules/unictype/property-ideographic-tests (Files): Likewise.
25015         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25016         * modules/unictype/property-ids-trinary-operator-tests (Files):
25017         Likewise.
25018         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25019         * modules/unictype/property-iso-control-tests (Files): Likewise.
25020         * modules/unictype/property-join-control-tests (Files): Likewise.
25021         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25022         * modules/unictype/property-line-separator-tests (Files): Likewise.
25023         * modules/unictype/property-logical-order-exception-tests (Files):
25024         Likewise.
25025         * modules/unictype/property-lowercase-tests (Files): Likewise.
25026         * modules/unictype/property-math-tests (Files): Likewise.
25027         * modules/unictype/property-non-break-tests (Files): Likewise.
25028         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25029         * modules/unictype/property-numeric-tests (Files): Likewise.
25030         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25031         * modules/unictype/property-other-default-ignorable-code-point-tests
25032         (Files): Likewise.
25033         * modules/unictype/property-other-grapheme-extend-tests (Files):
25034         Likewise.
25035         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25036         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25037         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25038         * modules/unictype/property-other-math-tests (Files): Likewise.
25039         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25040         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25041         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25042         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25043         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25044         * modules/unictype/property-private-use-tests (Files): Likewise.
25045         * modules/unictype/property-punctuation-tests (Files): Likewise.
25046         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25047         * modules/unictype/property-radical-tests (Files): Likewise.
25048         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25049         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25050         * modules/unictype/property-space-tests (Files): Likewise.
25051         * modules/unictype/property-terminal-punctuation-tests (Files):
25052         Likewise.
25053         * modules/unictype/property-test-tests (Files): Likewise.
25054         * modules/unictype/property-titlecase-tests (Files): Likewise.
25055         * modules/unictype/property-unassigned-code-value-tests (Files):
25056         Likewise.
25057         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25058         * modules/unictype/property-uppercase-tests (Files): Likewise.
25059         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25060         * modules/unictype/property-white-space-tests (Files): Likewise.
25061         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25062         * modules/unictype/property-xid-start-tests (Files): Likewise.
25063         * modules/unictype/property-zero-width-tests (Files): Likewise.
25064         * modules/unictype/scripts-tests (Files): Likewise.
25065         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25066         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25067         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25068         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25069         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25070         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25071         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25072         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25073         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25074         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25075         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25076         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25077         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25078         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25079         * modules/uninorm/composition-tests (Files): Likewise.
25080         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25081         * modules/uninorm/decomposition-tests (Files): Likewise.
25082         * modules/uninorm/filter-tests (Files): Likewise.
25083         * modules/uninorm/nfc-tests (Files): Likewise.
25084         * modules/uninorm/nfd-tests (Files): Likewise.
25085         * modules/uninorm/nfkc-tests (Files): Likewise.
25086         * modules/uninorm/nfkd-tests (Files): Likewise.
25087         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25088         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25089         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25090         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25091         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25092         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25093         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25094         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25095         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25096         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25097         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25098         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25099         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25100         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25101         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25102         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25103         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25104         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25105         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25106         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25107         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25108         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25109         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25110         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25111         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25112         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25113         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25114         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25115         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25116         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25117         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25118         * modules/uniwidth/u8-width-tests (Files): Likewise.
25119         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25120         * modules/uniwidth/u16-width-tests (Files): Likewise.
25121         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25122         * modules/uniwidth/u32-width-tests (Files): Likewise.
25123         * modules/uniwidth/width-tests (Files): Likewise.
25124         * modules/unlink-tests (Files): Likewise.
25125         * modules/unsetenv-tests (Files): Likewise.
25126         * modules/usleep-tests (Files): Likewise.
25127         * modules/utimens-tests (Files): Likewise.
25128         * modules/utimensat-tests (Files): Likewise.
25129         * modules/vasnprintf-posix-tests (Files): Likewise.
25130         * modules/vasnprintf-tests (Files): Likewise.
25131         * modules/vasprintf-posix-tests (Files): Likewise.
25132         * modules/vasprintf-tests (Files): Likewise.
25133         * modules/vdprintf-posix-tests (Files): Likewise.
25134         * modules/vfprintf-posix-tests (Files): Likewise.
25135         * modules/vprintf-posix-tests (Files): Likewise.
25136         * modules/vsnprintf-posix-tests (Files): Likewise.
25137         * modules/vsnprintf-tests (Files): Likewise.
25138         * modules/vsprintf-posix-tests (Files): Likewise.
25139         * modules/wcrtomb-tests (Files): Likewise.
25140         * modules/wcsnrtombs-tests (Files): Likewise.
25141         * modules/wcsrtombs-tests (Files): Likewise.
25142         * modules/wctype-tests (Files): Likewise.
25143         * modules/wcwidth-tests (Files): Likewise.
25144         * modules/xmemdup0-tests (Files): Likewise.
25145         * modules/xprintf-posix-tests (Files): Likewise.
25146         * modules/xvasprintf-tests (Files): Likewise.
25147
25148 2009-12-24  Eric Blake  <ebb9@byu.net>
25149
25150         test-nanosleep: fix typo
25151         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25152         patch.
25153         Reported by Bruno Haible.
25154
25155 2009-12-24  Bruno Haible  <bruno@clisp.org>
25156
25157         Reduce namespace pollution on glibc systems.
25158         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25159         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25160         systems.
25161         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25162         <getopt.h> on glibc systems.
25163         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25164         systems.
25165         * lib/fcntl.c: Include <unistd.h> here instead.
25166
25167 2009-12-24  Bruno Haible  <bruno@clisp.org>
25168
25169         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25170
25171 2009-12-24  Eric Blake  <ebb9@byu.net>
25172
25173         tests: add signature checks
25174         * tests/signature.h (SIGNATURE_CHECK): New file.
25175         * modules/atexit-tests (Files): Use it.
25176         * modules/btowc-tests (Files): Likewise.
25177         * modules/canonicalize-lgpl-tests (Files): Likewise.
25178         * modules/ceilf-tests (Files): Likewise.
25179         * modules/ceill-tests (Files): Likewise.
25180         * modules/chown-tests (Files): Likewise.
25181         * modules/dprintf-posix-tests (Files): Likewise.
25182         * modules/dup2-tests (Files): Likewise.
25183         * modules/dup3-tests (Files): Likewise.
25184         * modules/duplocale-tests (Files): Likewise.
25185         * modules/fchdir-tests (Files): Likewise.
25186         * modules/fcntl-tests (Files): Likewise.
25187         * modules/fdopendir-tests (Files): Likewise.
25188         * modules/fflush-tests (Files): Likewise.
25189         * modules/flock-tests (Files): Likewise.
25190         * modules/floorf-tests (Files): Likewise.
25191         * modules/floorl-tests (Files): Likewise.
25192         * modules/fnmatch-tests (Files): Likewise.
25193         * modules/fopen-tests (Files): Likewise.
25194         * modules/fprintf-posix-tests (Files): Likewise.
25195         * modules/freopen-tests (Files): Likewise.
25196         * modules/frexp-nolibm-tests (Files): Likewise.
25197         * modules/frexp-tests (Files): Likewise.
25198         * modules/frexpl-nolibm-tests (Files): Likewise.
25199         * modules/frexpl-tests (Files): Likewise.
25200         * modules/fseek-tests (Files): Likewise.
25201         * modules/fseeko-tests (Files): Likewise.
25202         * modules/fsync-tests (Files): Likewise.
25203         * modules/ftell-tests (Files): Likewise.
25204         * modules/ftello-tests (Files): Likewise.
25205         * modules/futimens-tests (Files): Likewise.
25206         * modules/getaddrinfo-tests (Files): Likewise.
25207         * modules/getcwd-tests (Files): Likewise.
25208         * modules/getdelim-tests (Files): Likewise.
25209         * modules/getdtablesize-tests (Files): Likewise.
25210         * modules/getgroups-tests (Files): Likewise.
25211         * modules/gethostname-tests (Files): Likewise.
25212         * modules/getline-tests (Files): Likewise.
25213         * modules/getopt-posix-tests (Files): Likewise.
25214         * modules/gettimeofday-tests (Files): Likewise.
25215         * modules/glob-tests (Files): Likewise.
25216         * modules/iconv-tests (Files): Likewise.
25217         * modules/inet_ntop-tests (Files): Likewise.
25218         * modules/inet_pton-tests (Files): Likewise.
25219         * modules/isblank-tests (Files): Likewise.
25220         * modules/lchown-tests (Files): Likewise.
25221         * modules/ldexpl-tests (Files): Likewise.
25222         * modules/link-tests (Files): Likewise.
25223         * modules/linkat-tests (Files): Likewise.
25224         * modules/lseek-tests (Files): Likewise.
25225         * modules/lstat-tests (Files): Likewise.
25226         * modules/mbrtowc-tests (Files): Likewise.
25227         * modules/mbsinit-tests (Files): Likewise.
25228         * modules/mbsnrtowcs-tests (Files): Likewise.
25229         * modules/mbsrtowcs-tests (Files): Likewise.
25230         * modules/memchr-tests (Files): Likewise.
25231         * modules/memcmp-tests (Files): Likewise.
25232         * modules/memmem-tests (Files): Likewise.
25233         * modules/memrchr-tests (Files): Likewise.
25234         * modules/mkdir-tests (Files): Likewise.
25235         * modules/mkfifo-tests (Files): Likewise.
25236         * modules/mkfifoat-tests (Files): Likewise.
25237         * modules/mknod-tests (Files): Likewise.
25238         * modules/nanosleep-tests (Files): Likewise.
25239         * modules/nl_langinfo-tests (Files): Likewise.
25240         * modules/obstack-printf-tests (Files): Likewise.
25241         * modules/open-tests (Files): Likewise.
25242         * modules/openat-tests (Files): Likewise.
25243         * modules/perror-tests (Files): Likewise.
25244         * modules/pipe2-tests (Files): Likewise.
25245         * modules/poll-tests (Files): Likewise.
25246         * modules/popen-tests (Files): Likewise.
25247         * modules/posix_spawn-tests (Files): Likewise.
25248         * modules/posix_spawnp-tests (Files): Likewise.
25249         * modules/pread-tests (Files): Likewise.
25250         * modules/printf-posix-tests (Files): Likewise.
25251         * modules/pty-tests (Files): Likewise.
25252         * modules/random_r-tests (Files): Likewise.
25253         * modules/rawmemchr-tests (Files): Likewise.
25254         * modules/readlink-tests (Files): Likewise.
25255         * modules/remove-tests (Files): Likewise.
25256         * modules/rename-tests (Files): Likewise.
25257         * modules/renameat-tests (Files): Likewise.
25258         * modules/rmdir-tests (Files): Likewise.
25259         * modules/round-tests (Files): Likewise.
25260         * modules/roundf-tests (Files): Likewise.
25261         * modules/roundl-tests (Files): Likewise.
25262         * modules/select-tests (Files): Likewise.
25263         * modules/setenv-tests (Files): Likewise.
25264         * modules/sigaction-tests (Files): Likewise.
25265         * modules/sleep-tests (Files): Likewise.
25266         * modules/snprintf-posix-tests (Files): Likewise.
25267         * modules/snprintf-tests (Files): Likewise.
25268         * modules/sprintf-posix-tests (Files): Likewise.
25269         * modules/stat-tests (Files): Likewise.
25270         * modules/strcasestr-tests (Files): Likewise.
25271         * modules/strchrnul-tests (Files): Likewise.
25272         * modules/strerror-tests (Files): Likewise.
25273         * modules/strsignal-tests (Files): Likewise.
25274         * modules/strstr-tests (Files): Likewise.
25275         * modules/strtod-tests (Files): Likewise.
25276         * modules/strverscmp-tests (Files): Likewise.
25277         * modules/symlink-tests (Files): Likewise.
25278         * modules/symlinkat-tests (Files): Likewise.
25279         * modules/times-tests (Files): Likewise.
25280         * modules/trunc-tests (Files): Likewise.
25281         * modules/truncf-tests (Files): Likewise.
25282         * modules/truncl-tests (Files): Likewise.
25283         * modules/tsearch-tests (Files): Likewise.
25284         * modules/uname-tests (Files): Likewise.
25285         * modules/unlink-tests (Files): Likewise.
25286         * modules/unsetenv-tests (Files): Likewise.
25287         * modules/usleep-tests (Files): Likewise.
25288         * modules/utimensat-tests (Files): Likewise.
25289         * modules/vasprintf-tests (Files): Likewise.
25290         * modules/vdprintf-posix-tests (Files): Likewise.
25291         * modules/vfprintf-posix-tests (Files): Likewise.
25292         * modules/vprintf-posix-tests (Files): Likewise.
25293         * modules/vsnprintf-posix-tests (Files): Likewise.
25294         * modules/vsnprintf-tests (Files): Likewise.
25295         * modules/vsprintf-posix-tests (Files): Likewise.
25296         * modules/wcrtomb-tests (Files): Likewise.
25297         * modules/wcsnrtombs-tests (Files): Likewise.
25298         * modules/wcsrtombs-tests (Files): Likewise.
25299         * modules/wcwidth-tests (Files): Likewise.
25300         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25301         * tests/test-isinf.c (isinf): Likewise.
25302         * tests/test-isnan.c (isnan): Likewise.
25303         * tests/test-signbit.c (signbit): Likewise.
25304         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25305         declaration, either as macro or with correct signature.
25306         (select): Ensure function under test is declared with correct
25307         signature in correct header.
25308         * tests/test-atexit.c (atexit): Likewise.
25309         * tests/test-btowc.c (btowc): Likewise.
25310         * tests/test-canonicalize-lgpl.c (realpath)
25311         (canonicalize_file_name): Likewise.
25312         * tests/test-ceilf1.c (ceilf): Likewise.
25313         * tests/test-ceill.c (ceill): Likewise.
25314         * tests/test-chown.c (chown): Likewise.
25315         * tests/test-dprintf-posix.c (dprintf): Likewise.
25316         * tests/test-dup2.c (dup2): Likewise.
25317         * tests/test-dup3.c (dup3): Likewise.
25318         * tests/test-duplocale.c (duplocale): Likewise.
25319         * tests/test-fchdir.c (fchdir): Likewise.
25320         * tests/test-fchownat.c (fchownat): Likewise.
25321         * tests/test-fcntl.c (fcntl): Likewise.
25322         * tests/test-fdopendir.c (fdopendir): Likewise.
25323         * tests/test-fflush.c (fflush): Likewise.
25324         * tests/test-flock.c (flock): Likewise.
25325         * tests/test-floorf1.c (floorf): Likewise.
25326         * tests/test-floorl.c (floorl): Likewise.
25327         * tests/test-fnmatch.c (fnmatch): Likewise.
25328         * tests/test-fopen.c (fopen): Likewise.
25329         * tests/test-fprintf-posix.c (fprintf): Likewise.
25330         * tests/test-freopen.c (freopen): Likewise.
25331         * tests/test-frexp.c (frexp): Likewise.
25332         * tests/test-frexpl.c (frexpl): Likewise.
25333         * tests/test-fseek.c (fseek): Likewise.
25334         * tests/test-fseeko.c (fseeko): Likewise.
25335         * tests/test-fstatat.c (fstatat): Likewise.
25336         * tests/test-fsync.c (fsync): Likewise.
25337         * tests/test-ftell.c (ftell): Likewise.
25338         * tests/test-ftello.c (ftello): Likewise.
25339         * tests/test-futimens.c (futimens): Likewise.
25340         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25341         (gai_strerror): Likewise.
25342         * tests/test-getcwd.c (getcwd): Likewise.
25343         * tests/test-getdelim.c (getdelim): Likewise.
25344         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25345         * tests/test-getgroups.c (getgroups): Likewise.
25346         * tests/test-gethostname.c (gethostname): Likewise.
25347         * tests/test-getline.c (getline): Likewise.
25348         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25349         Likewise.
25350         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25351         * tests/test-glob.c (glob, globfree): Likewise.
25352         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25353         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25354         * tests/test-inet_pton.c (inet_pton): Likewise.
25355         * tests/test-isblank.c (isblank): Likewise.
25356         * tests/test-lchown.c (lchown): Likewise.
25357         * tests/test-ldexpl.c (ldexpl): Likewise.
25358         * tests/test-link.c (link): Likewise.
25359         * tests/test-linkat.c (linkat): Likewise.
25360         * tests/test-lseek.c (lseek): Likewise.
25361         * tests/test-lstat.c (lstat): Likewise.
25362         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25363         * tests/test-mbsinit.c (mbsinit): Likewise.
25364         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25365         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25366         * tests/test-memchr.c (memchr): Likewise.
25367         * tests/test-memcmp.c (memcmp): Likewise.
25368         * tests/test-memmem.c (memmem): Likewise.
25369         * tests/test-memrchr.c (memrchr): Likewise.
25370         * tests/test-mkdir.c (mkdir): Likewise.
25371         * tests/test-mkdirat.c (mkdirat): Likewise.
25372         * tests/test-mkfifo.c (mkfifo): Likewise.
25373         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25374         * tests/test-mknod.c (mknod): Likewise.
25375         * tests/test-nanosleep.c (nanosleep): Likewise.
25376         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25377         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25378         Likewise.
25379         * tests/test-open.c (open): Likewise.
25380         * tests/test-openat.c (openat): Likewise.
25381         * tests/test-perror.c (perror): Likewise.
25382         * tests/test-pipe2.c (pipe2): Likewise.
25383         * tests/test-poll.c (poll): Likewise.
25384         * tests/test-popen.c (popen, pclose): Likewise.
25385         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25386         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25387         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25388         (posix_spawn_file_actions_destroy)
25389         (posix_spawn_file_actions_addclose)
25390         (posix_spawn_file_actions_addopen)
25391         (posix_spawn_file_actions_adddup2): Likewise.
25392         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25393         * tests/test-pread.c (pread): Likewise.
25394         * tests/test-printf-posix.c (printf): Likewise.
25395         * tests/test-pty.c (openpty, forkpty): Likewise.
25396         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25397         (random_r): Likewise.
25398         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25399         * tests/test-readlink.c (readlink): Likewise.
25400         * tests/test-remove.c (remove): Likewise.
25401         * tests/test-rename.c (rename): Likewise.
25402         * tests/test-renameat.c (renameat): Likewise.
25403         * tests/test-rmdir.c (rmdir): Likewise.
25404         * tests/test-round1.c (round): Likewise.
25405         * tests/test-roundf1.c (roundf): Likewise.
25406         * tests/test-roundl.c (roundl): Likewise.
25407         * tests/test-setenv.c (setenv): Likewise.
25408         * tests/test-sigaction.c (sigaction): Likewise.
25409         * tests/test-sleep.c (sleep): Likewise.
25410         * tests/test-snprintf.c (snprintf): Likewise.
25411         * tests/test-sprintf-posix.c (sprintf): Likewise.
25412         * tests/test-stat.c (stat): Likewise.
25413         * tests/test-stpncpy.c (stpncpy): Likewise.
25414         * tests/test-strcasestr.c (strcasestr): Likewise.
25415         * tests/test-strchrnul.c (strchrnul): Likewise.
25416         * tests/test-strerror.c (strerror): Likewise.
25417         * tests/test-strsignal.c (strsignal): Likewise.
25418         * tests/test-strstr.c (strstr): Likewise.
25419         * tests/test-strtod.c (strtod): Likewise.
25420         * tests/test-strverscmp.c (strverscmp): Likewise.
25421         * tests/test-symlink.c (symlink): Likewise.
25422         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25423         * tests/test-times.c (times): Likewise.
25424         * tests/test-trunc1.c (trunc): Likewise.
25425         * tests/test-truncf1.c (truncf): Likewise.
25426         * tests/test-truncl.c (truncl): Likewise.
25427         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25428         Likewise.
25429         * tests/test-uname.c (uname): Likewise.
25430         * tests/test-unlink.c (unlink): Likewise.
25431         * tests/test-unlinkat.c (unlinkat): Likewise.
25432         * tests/test-unsetenv.c (unsetenv): Likewise.
25433         * tests/test-usleep.c (usleep): Likewise.
25434         * tests/test-utimensat.c (utimensat): Likewise.
25435         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25436         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25437         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25438         * tests/test-vprintf-posix.c (vprintf): Likewise.
25439         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25440         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25441         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25442         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25443         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25444         * tests/test-wcwidth.c (wcwidth): Likewise.
25445
25446         build: pull in conditional headers during GNULIB_POSIXCHECK
25447         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25448         definitions from any conditionally-included headers.
25449         * lib/stdlib.in.h (includes): Likewise.
25450         * lib/unistd.in.h (includes): Likewise.
25451
25452 2009-12-24  Bruno Haible  <bruno@clisp.org>
25453
25454         * tests/test-argv-iter.c: Include header file being tested immediately
25455         after config.h.
25456         * tests/test-base64.c: Likewise.
25457         * tests/test-flock.c: Likewise.
25458         * tests/test-fsync.c: Likewise.
25459         * tests/test-getdate.c: Likewise.
25460         * tests/test-getndelim2.c: Likewise.
25461         * tests/test-isfinite.c: Likewise.
25462         * tests/test-isinf.c: Likewise.
25463         * tests/test-strerror.c: Likewise.
25464         * tests/test-strsignal.c: Likewise.
25465
25466 2009-12-23  Eric Blake  <ebb9@byu.net>
25467
25468         unistd: work around cygwin bug
25469         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25470         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25471         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25472
25473 2009-12-23  Bruno Haible  <bruno@clisp.org>
25474
25475         localename: More tests.
25476         * tests/test-localename.c (SIZEOF): New macro.
25477         (categories): New variable.
25478         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25479         test_locale_name_default): Add test w.r.t. thread locale.
25480         (test_locale_name_thread): New function.
25481         (main): Invoke it.
25482
25483         localename: Make aware of thread locale.
25484         * lib/localename.h (gl_locale_name_thread): New declaration.
25485         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25486         behaviour with respect to thread locale.
25487         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25488         <langinfo.h>, glthread/lock.h.
25489         (SIZE_BITS): New macro.
25490         (string_hash): New function.
25491         (struct hash_node): New type.
25492         (HASH_TABLE_SIZE): New macro.
25493         (struniq_hash_table, struniq_lock): New variables.
25494         (struniq): New function.
25495         (gl_locale_name_thread): New function.
25496         (gl_locale_name): Invoke it.
25497         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25498         * modules/localename (Depends-on): Add lock.
25499         Reported by Mike Gran <spk121@yahoo.com>.
25500
25501 2009-12-23  Eric Blake  <ebb9@byu.net>
25502
25503         va-args: new module
25504         * modules/va-args: New file.
25505         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25506         * MODULES.html.sh (Core language properties): Mention it.
25507
25508         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25509         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25510         named alias for __attribute__((__unused__)).
25511         * lib/chown.c: Update client.
25512         * lib/fchmodat.c: Likewise.
25513         * lib/fts.c: Likewise.
25514         * lib/getdate.y: Likewise.
25515         * lib/getgroups.c: Likewise.
25516         * lib/getopt.c: Likewise.
25517         * lib/getugroups.c: Likewise.
25518         * lib/mkdir.c: Likewise.
25519         * lib/mkfifo.c: Likewise.
25520         * lib/mkfifoat.c: Likewise.
25521         * lib/mknod.c: Likewise.
25522         * lib/mknodat.c: Likewise.
25523         * lib/readlink.c: Likewise.
25524         * lib/se-context.in.h: Likewise.
25525         * lib/se-selinux.in.h: Likewise.
25526         * lib/sockets.c: Likewise.
25527         * lib/symlink.c: Likewise.
25528         * lib/symlinkat.c: Likewise.
25529         * lib/unicodeio.c: Likewise.
25530         * lib/unistr.h: Likewise.
25531         * tests/test-areadlink.c: Likewise.
25532         * tests/test-areadlinkat.c: Likewise.
25533         * tests/test-filenamecat.c: Likewise.
25534         * tests/test-fseeko.c: Likewise.
25535         * tests/test-ftello.c: Likewise.
25536         * tests/test-getdate.c: Likewise.
25537         * tests/test-getgroups.c: Likewise.
25538         * tests/test-gethostname.c: Likewise.
25539         * tests/test-quotearg.c: Likewise.
25540         * tests/test-version-etc.c: Likewise.
25541         * tests/test-xalloc-die.c: Likewise.
25542         * tests/test-xfprintf-posix.c: Likewise.
25543         * tests/test-xprintf-posix.c: Likewise.
25544         * tests/test-xvasprintf.c: Likewise.
25545
25546         tests: avoid compiler warnings
25547         * tests/test-fcntl.c (main): Delete unused parameters.
25548         * tests/test-freopen-safer.c (main): Likewise.
25549         * tests/test-xalloc-die.c (main): Mark unused parameters.
25550         * tests/test-fseeko.c (main): Likewise.
25551         * tests/test-ftello.c (main): Likewise.
25552         * tests/test-nanosleep.c (main): Avoid declaration warning.
25553         * tests/test-sleep.c (main): Likewise.
25554         * tests/test-unsetenv.c (main): Silence warning about string
25555         literal.
25556         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25557
25558 2009-12-23  Bruno Haible  <bruno@clisp.org>
25559
25560         * tests/test-localename.c (test_locale_name): New function, extracted
25561         from main. Also test mixed situations.
25562         (test_locale_name_posix, test_locale_name_environ,
25563         test_locale_name_default): New functions.
25564         (main): Invoke them all.
25565         * modules/localename-tests (configure.ac): Test for newlocale.
25566
25567 2009-12-23  Bruno Haible  <bruno@clisp.org>
25568
25569         unistd: Ensure getcwd gets declared before being overridden.
25570         * lib/unistd.in.h: Conditionally include <io.h>.
25571
25572 2009-12-22  Bruno Haible  <bruno@clisp.org>
25573
25574         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25575         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25576         (gl_WCHAR_H): Invoke it.
25577         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25578         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25579         Reported by Karl Berry <karl@freefriends.org>.
25580
25581 2009-12-22  Eric Blake  <ebb9@byu.net>
25582
25583         math, unistd: avoid redundant includes
25584         * lib/math.in.h (isnan): No need to re-include <math.h>.
25585         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25586
25587         getsubopt: work around cygwin bug
25588         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25589         avoid conflicting with system getsubopt.
25590         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25591         bug.
25592
25593         getopt: synchronize from glibc
25594         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25595         parameter order.  Adjust all callers.
25596         (_getopt_internal_r, main): Adjust quoting in error messages.
25597         Drop considerations for outdated POSIX 1003.2 error message.
25598         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25599         callers.
25600         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25601
25602         test-getopt: test stderr behavior
25603         * modules/getopt-posix-tests (Depends-on): Add dup2.
25604         * tests/test-getopt.c (ASSERT): Avoid stderr.
25605         (main): Move stderr to a temporary file.
25606         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25607         Instead, add parameter to inform caller if output occurred.
25608         (test_getopt): Adjust all existing tests to expect silence, and
25609         add new tests of leading ":".
25610         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25611         glibc shortcomings with leading "-:" or "+:" in optstring.
25612         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25613         Likewise.
25614         * doc/posix-functions/getopt.texi (getopt): Likewise.
25615
25616         test-getopt: enhance test
25617         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25618         supports optind=0.
25619         * tests/test-getopt.c (OPTIND_MIN): Move...
25620         * tests/test-getopt.h (OPTIND_MIN): ...here.
25621         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25622         Require that optind=0 works, since modern BSD supports it in
25623         addition to optreset, and since coreutils expects it.
25624         (test_getopt_long_only): New test.
25625         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25626         glibc shortcomings with 'W;', and enforcement of optind=0.
25627         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25628         Likewise.
25629
25630 2009-12-21  Bruno Haible  <bruno@clisp.org>
25631
25632         localename: Improvements for MacOS X and Cygwin.
25633         * lib/localename.h (gl_locale_name_environ): New declaration.
25634         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25635         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25636         (gl_locale_name_posix): Invoke it.
25637         (gl_locale_name_default): Add comments. Use Windows native API also on
25638         Cygwin.
25639
25640 2009-12-21  Bruno Haible  <bruno@clisp.org>
25641
25642         Update list of Win32 locale ids.
25643         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25644         (LANG_SAMI): Renamed from LANG_SAAMI.
25645         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25646         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25647         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25648         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25649         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25650         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25651         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25652         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25653         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25654         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25655         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25656         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25657         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25658         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25659         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25660         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25661         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25662         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25663         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25664         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25665         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25666         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25667         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25668         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25669         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25670         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25671         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25672         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25673         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25674         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25675         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25676         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25677         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25678         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25679         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25680         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25681         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25682         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25683         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25684         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25685         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25686         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25687         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25688         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25689         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25690         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25691         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25692         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25693         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25694         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25695         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25696         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25697         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25698         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25699         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25700         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25701         Add more languages and countries for Sami, Sorbian. Add more countries
25702         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25703         for Pashto. Change country for Syriac, Tswana.
25704
25705 2009-12-21  Eric Blake  <ebb9@byu.net>
25706
25707         test-utimens: avoid spurious failure
25708         * tests/test-chown.h (nap): Factor...
25709         * tests/nap.h: ...into new file.
25710         * tests/test-lchown.h (nap): Avoid duplication.
25711         * tests/test-utimens-common.h (nap): Use shared implementation,
25712         necessary on file systems with 1-second resolution.
25713         * modules/chown-tests (Files): Include new file.
25714         * modules/fdutimensat-tests (Files): Likewise.
25715         * modules/futimens-tests (Files): Likewise.
25716         * modules/lchown-tests (Files): Likewise.
25717         * modules/openat-tests (Files): Likewise.
25718         * modules/utimens-tests (Files): Likewise.
25719         * modules/utimensat-tests (Files): Likewise.
25720
25721 2009-12-19  Eric Blake  <ebb9@byu.net>
25722
25723         futimens, utimensat: work around Linux bug
25724         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25725         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25726         * lib/utimensat.c (rpl_utimensat): Work around it.
25727         * lib/futimens.c (rpl_futimens): Adjust comment.
25728
25729         utimens: work around Linux ctime bug
25730         * lib/utimens.c (detect_ctime_bug): New helper function.
25731         (update_timespec): Differentiate between workaround needed for
25732         this bug vs. what is needed for systems that lack utimensat.
25733         (fdutimens, lutimens): Work around bug.
25734
25735         utimens: check for ctime update
25736         * tests/test-utimens-common.h (check_ctime): Define.
25737         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25738         * tests/test-futimens.h (test_futimens): Likewise.
25739         * tests/test-lutimens.h (test_lutimens): Likewise.
25740         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25741         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25742
25743 2009-12-19  Bruno Haible  <bruno@clisp.org>
25744
25745         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25746         * tests/test-dprintf-posix2.sh: New file.
25747         * tests/test-dprintf-posix2.c: New file.
25748         * modules/dprintf-posix-tests (Files): Add them.
25749         (configure.ac): Check for getrlimit and setrlimit.
25750         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25751
25752 2009-12-19  Bruno Haible  <bruno@clisp.org>
25753
25754         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25755         * tests/test-fprintf-posix3.sh: New file.
25756         * tests/test-fprintf-posix3.c: New file.
25757         * modules/fprintf-posix-tests (Files): Add them.
25758         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25759
25760 2009-12-19  Eric Blake  <ebb9@byu.net>
25761
25762         dirfd: fix prototype
25763         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25764         * lib/dirfd.c (dirfd): Likewise.
25765
25766         canonicalize: reduce memory usage
25767         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25768         allocation to size.
25769         Reported by Solar Designer <solar@openwall.com>.
25770
25771 2009-12-19  Bruno Haible  <bruno@clisp.org>
25772
25773         New module attribute 'Applicability'.
25774         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25775         * gnulib-tool: New option --extract-applicability.
25776         (func_usage): Document it.
25777         (sed_extract_prog): Recognize it.
25778         (func_get_applicability): New function.
25779         (func_import): Generalize handling of 'link-warning' module.
25780         * modules/link-warning (Applicability): New section.
25781         * modules/arg-nonnull (Applicability): New section.
25782         Repoted by Simon Josefsson <simon@josefsson.org>.
25783
25784 2009-12-19  Bruno Haible  <bruno@clisp.org>
25785
25786         fflush: tweak
25787         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25788         * lib/fseeko.c (rpl_fseeko): Likewise.
25789
25790 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25791
25792         * lib/gl_list.h: Fix typo in comment.
25793
25794 2009-12-16  Eric Blake  <ebb9@byu.net>
25795
25796         fcntl: use to simplify other modules
25797         * modules/cloexec (Depends-on): Add fcntl.
25798         * modules/fchdir (Depends-on): Likewise.
25799         * modules/fd-safer-flag (Depends-on): Likewise.
25800         * modules/unistd-safer (Depends-on): Likewise.
25801         * modules/dup3 (configure.ac): Set module indicator.
25802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25803         missing.
25804         * lib/fchdir.c (_gl_register_dup): Fix comment.
25805         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25806         * lib/dup-safer.c (dup_safer): Likewise.
25807         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25808         * lib/dup3.c (dup3): Likewise.
25809         * tests/test-fchdir.c (main): Enhance test.
25810         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25811
25812         fcntl: port portions of fcntl to mingw
25813         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25814         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25815         replacement for mingw.
25816         * modules/fcntl (Description): Update.
25817         (Depends-on): Add dup2.
25818         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25819         * modules/fcntl-h (Makefile.am): Substitute it.
25820         * lib/fcntl.in.h (fcntl): Update declaration.
25821         (F_DUPFD, F_GETFD): New macros, when needed.
25822         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25823         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25824         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25825         we now guarantee.
25826
25827         fcntl: work around cygwin bug in F_DUPFD
25828         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25829         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25830         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25831         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25832         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25833
25834         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25835         * modules/fcntl (Files): List new files.
25836         (configure.ac): Run a test.
25837         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25838         * lib/fcntl.c (rpl_fcntl): Likewise.
25839         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25840         (gl_FCNTL_H): Always replace fcntl.h.
25841         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25842         * lib/fcntl.in.h (fcntl): Declare replacement.
25843         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25844         needed, plus a witness.
25845         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25846         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25847         * tests/test-fcntl.c: New file.
25848         * modules/fcntl-tests: Likewise.
25849
25850         binary-io: avoid potential compilation warning
25851         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25852         directives.
25853
25854         fflush: avoid compilation error on NetBSD
25855         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25856         between off_t and fpos_t, since the latter is sometimes a struct.
25857         * lib/fseeko.c (rpl_fseeko): Likewise.
25858         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25859
25860 2009-12-15  Eric Blake  <ebb9@byu.net>
25861
25862         fcntl-h, stdio, sys_ioctl: fix declarations
25863         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25864         function must not take arguments.
25865         * lib/sys_ioctl.in.h (ioctl): Likewise.
25866         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25867         (open): Add a link warning.
25868
25869 2009-12-15  Jim Meyering  <meyering@redhat.com>
25870
25871         areadlink, areadlink-with-size: relax license to LGPLv2+
25872         * modules/areadlink (License): Relax to LGPLv2+.
25873         * modules/areadlink-with-size (License): Likewise.
25874
25875 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25876             Bruno Haible  <bruno@clisp.org>
25877
25878         *printf: Fix memory leak.
25879         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25880         * lib/vfprintf.c (vfprintf): Likewise.
25881         * lib/dprintf.c (dprintf): Likewise.
25882         * lib/vdprintf.c (vdprintf): Likewise.
25883
25884 2009-12-14  Eric Blake  <ebb9@byu.net>
25885
25886         accept4: adjust module dependencies
25887         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25888
25889         utimens: one more try at avoiding compiler warning
25890         * lib/utimens.c (lutimens): Lower scope of result.
25891
25892 2009-12-13  Bruno Haible  <bruno@clisp.org>
25893
25894         Move the malloc checking from module 'list' to new module 'xlist'.
25895         * modules/xlist: New file.
25896         * lib/gl_xlist.h: New file.
25897         * lib/gl_xlist.c: New file.
25898         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25899         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25900         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25901         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25902         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25903         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25904         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25905         gl_sortedlist_nx_add): New declarations.
25906         (struct gl_list_implementation): Rename and change methods accordingly.
25907         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25908         (gl_list_nx_create): Renamed from gl_list_create.
25909         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25910         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25911         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25912         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25913         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25914         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25915         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25916         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25917         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25918         gl_list_create_empty.
25919         (gl_list_nx_create): Renamed from gl_list_create.
25920         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25921         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25922         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25923         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25924         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25925         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25926         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25927         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25928         * lib/gl_array_list.c: Don't include xalloc.h.
25929         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25930         NULL upon out-of-memory.
25931         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25932         out-of-memory.
25933         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25934         Change return type to 'int'.
25935         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25936         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25937         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25938         upon out-of-memory.
25939         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25940         upon out-of-memory.
25941         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25942         upon out-of-memory.
25943         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25944         upon out-of-memory.
25945         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25946         out-of-memory.
25947         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25948         Update.
25949         (gl_array_list_implementation): Update.
25950         * lib/gl_carray_list.c: Don't include xalloc.h.
25951         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25952         Return NULL upon out-of-memory.
25953         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25954         out-of-memory.
25955         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25956         Change return type to 'int'.
25957         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25958         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25959         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25960         upon out-of-memory.
25961         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25962         upon out-of-memory.
25963         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25964         out-of-memory.
25965         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25966         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25967         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25968         Update.
25969         (gl_carray_list_implementation): Update.
25970         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25971         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25972         gl_linked_create_empty. Return NULL upon out-of-memory.
25973         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25974         out-of-memory.
25975         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25976         Change return type to 'int'. Return -1 upon out-of-memory.
25977         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25978         out-of-memory.
25979         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25980         upon out-of-memory.
25981         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25982         upon out-of-memory.
25983         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25984         NULL upon out-of-memory.
25985         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25986         upon out-of-memory.
25987         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25988         out-of-memory.
25989         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25990         Update.
25991         * lib/gl_linked_list.c: Don't include xalloc.h.
25992         (gl_linked_list_implementation): Update.
25993         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25994         (add_to_bucket): Change return type to 'int'.
25995         (gl_linkedhash_list_implementation): Update.
25996         * lib/gl_anytree_list1.h (free_subtree): New function.
25997         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25998         gl_tree_create_empty. Return NULL upon out-of-memory.
25999         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26000         Change return type to 'int'. Return -1 upon out-of-memory.
26001         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26002         out-of-memory.
26003         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26004         (gl_tree_remove_node): New function, moved here from
26005         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26006         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26007         Update.
26008         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26009         malloc, not xmalloc. Return NULL upon out-of-memory.
26010         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26011         out-of-memory.
26012         (gl_tree_remove_node_from_tree): New function, extracted from
26013         gl_tree_remove_node.
26014         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26015         upon out-of-memory.
26016         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26017         out-of-memory.
26018         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26019         upon out-of-memory.
26020         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26021         upon out-of-memory.
26022         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26023         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26024         not xmalloc. Return NULL upon out-of-memory.
26025         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26026         out-of-memory.
26027         (gl_tree_remove_node_from_tree): New function, extracted from
26028         gl_tree_remove_node.
26029         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26030         upon out-of-memory.
26031         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26032         out-of-memory.
26033         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26034         upon out-of-memory.
26035         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26036         upon out-of-memory.
26037         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26038         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26039         gl_anytree_list1.h before gl_anyavltree_list2.h.
26040         (gl_avltree_list_implementation): Update.
26041         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26042         gl_anytree_list1.h before gl_anyavltree_list2.h.
26043         (gl_rbtree_list_implementation): Update.
26044         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26045         Change return type to 'int'. Return -1 upon out-of-memory. Use
26046         __builtin_expect.
26047         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26048         (gl_avltreehash_list_implementation): Update.
26049         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26050         (gl_rbtreehash_list_implementation): Update.
26051         * modules/array-list (Depends-on): Remove xalloc.
26052         * modules/carray-list (Depends-on): Likewise.
26053         * modules/linked-list (Depends-on): Likewise.
26054         * modules/linkedhash-list (Depends-on): Likewise.
26055         * modules/avltree-list (Depends-on): Likewise.
26056         * modules/rbtree-list (Depends-on): Likewise.
26057         * modules/avltreehash-list (Depends-on): Likewise.
26058         * modules/rbtreehash-list (Depends-on): Likewise.
26059
26060         * modules/xsublist: New file.
26061         * lib/gl_xsublist.h: New file.
26062         * lib/gl_xsublist.c: New file.
26063         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26064         (gl_sublist_nx_create): New declaration.
26065         * lib/gl_sublist.c: Don't include xalloc.h.
26066         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26067         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26068         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26069         Change return type to 'int'. Return -1 upon out-of-memory.
26070         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26071         upon out-of-memory.
26072         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26073         NULL upon out-of-memory.
26074         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26075         upon out-of-memory.
26076         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26077         NULL upon out-of-memory.
26078         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26079         NULL upon out-of-memory.
26080         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26081         upon out-of-memory.
26082         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26083         (gl_sublist_list_implementation): Update.
26084         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26085         upon out-of-memory.
26086         * modules/sublist (Depends-on): Remove xalloc.
26087
26088         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26089         * tests/test-carray_list.c: Likewise.
26090         * tests/test-linked_list.c: Likewise.
26091         * tests/test-linkedhash_list.c: Likewise.
26092         * tests/test-avltree_list.c: Likewise.
26093         * tests/test-rbtree_list.c: Likewise.
26094         * tests/test-avltreehash_list.c: Likewise.
26095         * tests/test-rbtreehash_list.c: Likewise.
26096         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26097         * modules/carray-list-tests (Makefile.am): Likewise.
26098         * modules/linked-list-tests (Makefile.am): Likewise.
26099         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26100         * modules/avltree-list-tests (Makefile.am): Likewise.
26101         * modules/rbtree-list-tests (Makefile.am): Likewise.
26102         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26103         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26104
26105         * NEWS: Mention the changes.
26106
26107         * lib/clean-temp.c: Include gl_xlist.h.
26108         * modules/clean-temp (Depends-on): Add xlist.
26109
26110         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26111         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26112
26113         * tests/test-array_oset.c: Include gl_xlist.h.
26114         * modules/array-oset-tests (Depends-on): Add xlist.
26115
26116         Reported by José E. Marchesi <jemarch@gnu.org>.
26117
26118 2009-12-13  Bruno Haible  <bruno@clisp.org>
26119
26120         Move the malloc checking from module 'oset' to new module 'xoset'.
26121         * modules/xoset: New file.
26122         * lib/gl_xoset.h: New file.
26123         * lib/gl_xoset.c: New file.
26124         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26125         declarations.
26126         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26127         (struct gl_oset_implementation): Rename and change methods accordingly.
26128         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26129         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26130         'int'. Mark as __warn_unused_result__.
26131         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26132         gl_oset_create_empty.
26133         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26134         'int'.
26135         * lib/gl_array_oset.c: Don't include xalloc.h.
26136         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26137         malloc, not xmalloc.
26138         (grow): Change return type to 'int'. Don't call xalloc_die.
26139         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26140         to 'int'.
26141         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26142         'int'.
26143         (gl_array_oset_implementation): Update.
26144         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26145         gl_tree_create_empty.
26146         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26147         'int'.
26148         * lib/gl_avltree_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_avltree_oset_implementation): Update.
26156         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26157         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26158         xmalloc.
26159         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26160         not xmalloc.
26161         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26162         xmalloc.
26163         (gl_rbtree_oset_implementation): Update.
26164         * modules/array-oset (Depends-on): Remove xalloc.
26165         * modules/avltree-oset (Depends-on): Likewise.
26166         * modules/rbtree-oset (Depends-on): Likewise.
26167         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26168         * tests/test-avltree_oset.c: Likewise.
26169         * tests/test-rbtree_oset.c: Likewise.
26170         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26171         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26172         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26173         * NEWS: Mention the change.
26174
26175 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26176
26177         maint.mk: allow a project to override release-prep commands
26178         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26179         commands into a new rule.
26180         (release-prep): New rule.
26181         (release-prep-hook): New overridable variable.
26182
26183 2009-12-13  Bruno Haible  <bruno@clisp.org>
26184
26185         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26186
26187 2009-12-13  Jim Meyering  <meyering@redhat.com>
26188
26189         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26190         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26191
26192 2009-12-12  Bruno Haible  <bruno@clisp.org>
26193
26194         duplocale: Tweak.
26195         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26196
26197 2009-12-12  Karl Berry  <karl@gnu.org>
26198
26199         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26200
26201 2009-12-12  Bruno Haible  <bruno@clisp.org>
26202
26203         * m4/po.m4: Undo incorrect untabification.
26204
26205 2009-12-12  Bruno Haible  <bruno@clisp.org>
26206
26207         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26208         * modules/c-strtod (Depends-on): Add locale.
26209         * modules/c-strtold (Depends-on): Likewise.
26210
26211 2009-12-12  Bruno Haible  <bruno@clisp.org>
26212
26213         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26214
26215 2009-12-11  Eric Blake  <ebb9@byu.net>
26216
26217         setenv: relax requirement in light of POSIX ruling
26218         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26219         not NULL.
26220         * tests/test-setenv.c (main): Relax test.
26221         * tests/test-unsetenv.c (main): Likewise.
26222         * doc/posix-functions/setenv.texi (setenv): Document this.
26223         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26224
26225 2009-12-11  Bruno Haible  <bruno@clisp.org>
26226
26227         New module 'fd-safer-flag'.
26228         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26229         * lib/dup-safer.c (dup_safer_flag): Remove function.
26230         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26231         * lib/fd-safer.c (fd_safer_flag): Remove function.
26232         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26233         * modules/cloexec (configure.ac): Drop indicator macro.
26234         * modules/fd-safer-flag: New file.
26235         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26236         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26237         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26238
26239 2009-12-11  Bruno Haible  <bruno@clisp.org>
26240
26241         Tests for module 'nl_langinfo'.
26242         * modules/nl_langinfo-tests: New file.
26243         * tests/test-nl_langinfo.sh: New file.
26244         * tests/test-nl_langinfo.c: New file.
26245
26246         New module 'nl_langinfo'.
26247         * lib/nl_langinfo.c: New file.
26248         * m4/nl_langinfo.m4: New file.
26249         * modules/nl_langinfo: New file.
26250         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26251
26252 2009-12-11  Bruno Haible  <bruno@clisp.org>
26253
26254         Tests for module 'langinfo'.
26255         * modules/langinfo-tests: New file.
26256         * tests/test-langinfo.c: New file.
26257
26258         New module 'langinfo'.
26259         * lib/langinfo.in.h: New file.
26260         * m4/langinfo_h.m4: New file.
26261         * modules/langinfo: New file.
26262         * doc/posix-headers/langinfo.texi: Mention the new module.
26263
26264 2009-12-11  Bruno Haible  <bruno@clisp.org>
26265
26266         * lib/config.charset: Untabify.
26267
26268 2009-12-11  Bruno Haible  <bruno@clisp.org>
26269
26270         * modules/unistd-safer (configure.ac): Drop indicator macro.
26271
26272 2009-12-11  Bruno Haible  <bruno@clisp.org>
26273
26274         Move pipe2-safer code to its own file.
26275         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26276         * lib/pipe-safer.c (pipe2_safer): Remove function.
26277         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26278         (Makefile.am): Add it to lib_SOURCES.
26279
26280 2009-12-10  Bruno Haible  <bruno@clisp.org>
26281
26282         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26283
26284 2009-12-10  Bruno Haible  <bruno@clisp.org>
26285
26286         Declare which arguments expect non-NULL values, for GCC and clang.
26287         * build-aux/arg-nonnull.h: New file.
26288         * modules/arg-nonnull: New file.
26289         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26290         (inet_ntop, inet_pton): Use it.
26291         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26292         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26293         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26294         (open, openat): Use it.
26295         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26296         (fnmatch): Use it.
26297         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26298         (getopt, getopt_long, getopt_long_only): Use it.
26299         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26300         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26301         Use it.
26302         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26303         (iconv_open): Use it.
26304         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26305         (strtoimax, strtoumax): Use it.
26306         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26307         (duplocale): Use it.
26308         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26309         (frexp, frexpl): Use it.
26310         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26311         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26312         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26313         (tsearch, tfind, tdelete, twalk): Use it.
26314         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26315         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26316         sigpending): Use it.
26317         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26318         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26319         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26320         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26321         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26322         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26323         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26324         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26325         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26326         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26327         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26328         Use it.
26329         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26330         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26331         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26332         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26333         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26334         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26335         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26336         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26337         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26338         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26339         strtoull, unsetenv): Use it.
26340         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26341         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26342         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26343         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26344         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26345         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26346         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26347         (strcasecmp, strncasecmp): Use it.
26348         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26349         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26350         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26351         rpl_setsockopt): Use it.
26352         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26353         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26354         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26355         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26356         (gettimeofday): Use it.
26357         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26358         (times): Use it.
26359         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26360         (uname): Use it.
26361         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26362         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26363         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26364         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26365         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26366         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26367         unlinkat, write): Use it.
26368         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26369         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26370         * lib/argv-iter.h: Include arg-nonnull.h.
26371         (_ATTRIBUTE_NONNULL_): Remove macro.
26372         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26373         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26374         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26375         optimization.
26376         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26377         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26378         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26379         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26380         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26381         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26382         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26383         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26384         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26385         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26386         * modules/dirent (Depends-on): Add arg-nonnull.
26387         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26388         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26389         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26390         * modules/fnmatch (Depends-on): Add arg-nonnull.
26391         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26392         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26393         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26394         * modules/glob (Depends-on): Add arg-nonnull.
26395         (Makefile.am): Insert arg-nonnull.h into glob.h.
26396         * modules/iconv_open (Depends-on): Add arg-nonnull.
26397         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26398         * modules/inttypes (Depends-on): Add arg-nonnull.
26399         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26400         * modules/locale (Depends-on): Add arg-nonnull.
26401         (Makefile.am): Insert arg-nonnull.h into locale.h.
26402         * modules/math (Depends-on): Add arg-nonnull.
26403         (Makefile.am): Insert arg-nonnull.h into math.h.
26404         * modules/netdb (Depends-on): Add arg-nonnull.
26405         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26406         * modules/search (Depends-on): Add arg-nonnull.
26407         (Makefile.am): Insert arg-nonnull.h into search.h.
26408         * modules/signal (Depends-on): Add arg-nonnull.
26409         (Makefile.am): Insert arg-nonnull.h into signal.h.
26410         * modules/spawn (Depends-on): Add arg-nonnull.
26411         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26412         * modules/stdio (Depends-on): Add arg-nonnull.
26413         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26414         * modules/stdlib (Depends-on): Add arg-nonnull.
26415         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26416         * modules/string (Depends-on): Add arg-nonnull.
26417         (Makefile.am): Insert arg-nonnull.h into string.h.
26418         * modules/strings (Depends-on): Add arg-nonnull.
26419         (Makefile.am): Insert arg-nonnull.h into strings.h.
26420         * modules/sys_socket (Depends-on): Add arg-nonnull.
26421         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26422         * modules/sys_stat (Depends-on): Add arg-nonnull.
26423         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26424         * modules/sys_time (Depends-on): Add arg-nonnull.
26425         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26426         * modules/sys_times (Depends-on): Add arg-nonnull.
26427         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26428         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26429         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26430         * modules/time (Depends-on): Add arg-nonnull.
26431         (Makefile.am): Insert arg-nonnull.h into time.h.
26432         * modules/unistd (Depends-on): Add arg-nonnull.
26433         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26434         * modules/wchar (Depends-on): Add arg-nonnull.
26435         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26436         * modules/argv-iter (Depends-on): Add arg-nonnull.
26437         * tests/test-canonicalize.c (null_ptr): New function.
26438         (main): Use it.
26439         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26440         (main): Use it.
26441         * tests/test-memmem.c (null_ptr): New function.
26442         (main): Use it.
26443         Reported by Jim Meyering.
26444
26445 2009-12-10  Bruno Haible  <bruno@clisp.org>
26446
26447         Use spaces for indentation, not tabs.
26448         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26449         * m4/*.m4: Untabify.
26450         * build-aux/*.h: Untabify.
26451         * tests/**/*.[hc]: Untabify.
26452         * README: New section "Indent with spaces, not TABs", based on
26453         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26454         * NEWS: Mention the change.
26455
26456 2009-12-10  Bruno Haible  <bruno@clisp.org>
26457
26458         pty test: Fix link error.
26459         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26460         test_pty_LDADD.
26461
26462 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26463
26464         * modules/pty: New file.
26465         * modules/pty-tests: New file.
26466         * m4/pty.m4: New file.
26467         * tests/test-pty.c: New file.
26468         * doc/glibc-headers/pty.texi: Modified.
26469         * doc/glibc-functions/forkpty.texi: Modified.
26470         * doc/glibc-functions/openpty.texi: Modified.
26471
26472 2009-12-10  Bruno Haible  <bruno@clisp.org>
26473
26474         Avoid syntax error in C++ mode.
26475         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26476
26477 2009-12-10  Bruno Haible  <bruno@clisp.org>
26478
26479         Use sed with option -e.
26480         * gnulib-tool (func_version, func_emit_copyright_notice,
26481         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26482         option -e to sed.
26483         * modules/link-warning (Makefile.am): Likewise.
26484
26485 2009-12-10  Jim Meyering  <meyering@redhat.com>
26486
26487         mgetgroups: do not write bytes beyond end of malloc'd buffer
26488         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26489         username, we call getgroups with a one-element-shorter buffer,
26490         but still told it the length was original, max_n_groups.
26491
26492 2009-12-09  Eric Blake  <ebb9@byu.net>
26493
26494         cloexec: relax license
26495         * modules/cloexec (Maintainer): Add myself.
26496         (License): Use LGPL, not GPL.
26497
26498         link-warning: optimize generation
26499         * modules/link-warning (Makefile.am): Reduce process usage.
26500
26501 2009-12-09  Bruno Haible  <bruno@clisp.org>
26502
26503         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26504         workaround was added on 2009-11-17.
26505
26506 2009-12-09  Jim Meyering  <meyering@redhat.com>
26507             Bruno Haible  <bruno@clisp.org>
26508
26509         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26510         * modules/link-warning (Makefile.am): Make the comment-removing sed
26511         command more robust in the face of bootstrap-prepended comment lines.
26512
26513 2009-12-09  Bruno Haible  <bruno@clisp.org>
26514
26515         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26516         most one group.
26517
26518 2009-12-09  Simon Josefsson <simon@josefsson.org>
26519             Bruno Haible  <bruno@clisp.org>
26520
26521         * build-aux/link-warning.h: Add copyright notice.
26522         * modules/link-warning (Makefile.am): Generate link-warning.h from
26523         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26524         * NEWS: Mention change in link-warning module.
26525         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26526         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26527         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26528         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26529         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26530         * modules/math (Makefile.am): Add dependency to math.h.
26531         * modules/search (Makefile.am): Add dependency to search.h.
26532         * modules/signal (Makefile.am): Add dependency to signal.h.
26533         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26534         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26535         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26536         * modules/string (Makefile.am): Add dependency to string.h.
26537         * modules/strings (Makefile.am): Add dependency to strings.h.
26538         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26539         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26540         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26541         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26542         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26543         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26544         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26545         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26546         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26547
26548 2009-12-09  Bruno Haible  <bruno@clisp.org>
26549
26550         fchdir: Optimize away rpl_fstat when possible.
26551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26552         REPLACE_OPEN_DIRECTORY.
26553         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26554
26555 2009-12-09  Bruno Haible  <bruno@clisp.org>
26556
26557         * lib/fchdir.c: Update comment.
26558
26559 2009-12-09  Bruno Haible  <bruno@clisp.org>
26560
26561         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26562
26563 2009-12-08  Eric Blake  <ebb9@byu.net>
26564
26565         fchdir: avoid memory leak on re-registration.
26566         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26567
26568 2009-12-08  Jim Meyering  <meyering@redhat.com>
26569
26570         init.sh: avoid Solaris 10 /bin/sh portability problem
26571         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26572         sourced script:
26573           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26574           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26575           bar
26576         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26577         and two tests used that idiom.
26578         * tests/init.sh: Update suggested usage comments.
26579         (path_prepend_): New function, to be used in place
26580         of the --src-path=DIR option.
26581         (setup_): Move PATH-prepending code into path_prepend_.
26582         * tests/test-pread.sh: Adapt to new usage.
26583         * tests/test-xalloc-die.sh: Likewise.
26584
26585 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26586
26587         * doc/gnulib.texi (Glibc pty.h): Add.
26588         * doc/glibc-functions/forkpty.texi: Add.
26589         * doc/glibc-functions/openpty.texi: Add.
26590         Suggested by Bruno Haible.
26591
26592 2009-12-08  Eric Blake  <ebb9@byu.net>
26593
26594         fchdir: fix logic bugs
26595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26596         * tests/test-fchdir.c (main): Enhance test.
26597         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26598         is in use.
26599
26600         dup2: fix logic bugs
26601         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26602         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26603         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26604         exists.
26605         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26606
26607 2009-12-07  Eric Blake  <ebb9@byu.net>
26608
26609         unlink: fix m4 detection
26610         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26611
26612         unistd-safer: add unit test
26613         * modules/unistd-safer-tests: New file.
26614         * tests/test-dup-safer.c: Likewise.
26615         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26616         * tests/test-dup2.c (setmode): Likewise.
26617         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26618
26619         cloexec: preserve text vs. binary across dup_cloexec
26620         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26621         mode.
26622         * modules/dup2-tests (Depends-on): Add binary-io.
26623         * modules/cloexec-tests (Depends-on): Likewise.
26624         * tests/test-dup2.c (setmode, is_mode): New helpers.
26625         (main): Add tests that translation mode is preserved.
26626         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26627         Reported by Bruno Haible.
26628
26629         mgetgroups: reduce duplicate listings
26630         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26631         resulting array.
26632         * tests/test-chown.h (test_chown): Simplify client.
26633         * tests/test-lchown.h (test_lchown): Likewise.
26634
26635 2009-12-06  Bruno Haible  <bruno@clisp.org>
26636
26637         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26638         value.
26639
26640 2009-12-06  Bruno Haible  <bruno@clisp.org>
26641
26642         * lib/progname.c: Include stdio.h, stdlib.h.
26643         (set_program_name): Reject a NULL argument.
26644
26645 2009-12-05  Eric Blake  <ebb9@byu.net>
26646
26647         pipe2-safer: new module
26648         * modules/pipe2-safer: New file.
26649         * lib/unistd-safer.h (pipe2_safer): New prototype.
26650         * lib/unistd--.h (pipe2): New wrapper.
26651         * lib/pipe-safer.c (pipe2_safer): New function.
26652         * modules/pipe (Depends-on): Add pipe2-safer.
26653         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26654
26655         stdlib-safer: preserve cloexec flag for mkostemp[s]
26656         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26657         fd_safer_flag.
26658
26659         unistd-safer: allow preservation of cloexec status via flag
26660         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26661         prototypes.
26662         * lib/dup-safer.c (dup_safer_flag): New function.
26663         * lib/fd-safer.c (fd_safer_flag): Likewise.
26664         * modules/cloexec (configure.ac): Set witness.
26665
26666         test-dup2: enhance test
26667         * modules/dup2-tests (Depends-on): Add cloexec.
26668         * tests/test-dup2.c (main): Enhance test.
26669
26670         cloexec: add dup_cloexec
26671         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26672         header and comments.
26673         * lib/cloexec.c (set_cloexec_flag): Add comments.
26674         (dup_cloexec): New function, with mingw implementation borrowed
26675         from...
26676         * lib/w32spawn.h (dup_noinherit): ...here.
26677         * modules/execute (Depends-on): Add cloexec.
26678         * modules/pipe (Depends-on): Likewise.
26679         * modules/cloexec (Depends-on): Add dup2.
26680         * modules/cloexec-tests (Files): New file.
26681         * tests/test-cloexec.c: Likewise.
26682
26683         test-xalloc-die: fix test for mingw
26684         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26685         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26686         directory and .exe suffix off argv[0] output.
26687
26688         test-fseeko: fix test for mingw
26689         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26690         than undefining fseek, so test will pass on mingw.
26691
26692 2009-12-05  Bruno Haible  <bruno@clisp.org>
26693
26694         * lib/progname.h (set_program_name): Clarify specification.
26695         * lib/progname.c (set_program_name): Likewise.
26696         Reported by Jim Meyering.
26697
26698 2009-12-05  Jim Meyering  <meyering@redhat.com>
26699
26700         maint.mk: backslash-escape parens in default regexp
26701         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26702         backslash-escape the literal parentheses.
26703
26704         maint.mk: news-date-check: use grep -E
26705         * top/maint.mk (today): Define a Make variable, not a...
26706         (news-date-check): ...shell variable.
26707         (news-date-regexp): Use the Make variable.
26708         Use grep's -E option.  Change the failing diagnostic to mention
26709         the variable, $(news-date-regexp).
26710
26711 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26712
26713         maintainer-makefile: allow customization of NEWS entry format
26714         * top/maint.mk (news-date-regexp): New overridable variable.
26715         (news-date-check): Use it.
26716
26717 2009-12-04  Eric Blake  <ebb9@byu.net>
26718
26719         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26720         * lib/mgetgroups.h (xgetgroups): New prototype.
26721         * lib/mgetgroups.c (xgetgroups): New wrapper.
26722         (mgetgroups): Handle ENOSYS.
26723         * modules/mgetgroups (Depends-on): Add realloc.
26724         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26725
26726         mgetgroups: avoid argument promotion issues with -1
26727         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26728         for invalid gid_t.
26729         * tests/test-chown.h (getegid, test_chown): Likewise.
26730         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26731
26732 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26733
26734         exclude: Fix header file problems.
26735         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26736
26737 2009-12-01  Jim Meyering  <meyering@redhat.com>
26738
26739         fts: fts_open: do not let an empty string cause immediate failure
26740         This is required in support of GNU rm, for which the command
26741         "rm A '' B" must process and remove both A and B, in spite of
26742         the empty string argument.
26743         * lib/fts.c (fts_open): Do not let the presence of an empty string
26744         cause fts_open to fail immediately.  Most fts-using tools must be
26745         able to process all arguments, in order, and can be expected to
26746         diagnose such arguments themselves.
26747
26748 2009-11-30  Eric Blake  <ebb9@byu.net>
26749
26750         utimens: fix compilation error
26751         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26752         Declare variable at right scope.
26753
26754 2009-11-29  Jim Meyering  <meyering@redhat.com>
26755
26756         bootstrap: handle perl-5.11's changed --version output
26757         * build-aux/bootstrap (get_version): Handle perl separately,
26758         since perl-5.11's --version output is different.
26759
26760 2009-11-28  Jim Meyering  <meyering@redhat.com>
26761
26762         userspec: depend on the inttostr module, too
26763         * modules/userspec (Depends-on): Add inttostr.
26764
26765         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26766         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26767         number of MAXUID when it evaluates to (uid_t) -1.
26768         Likewise for group ID.  Reported by Matt McCutchen in
26769         <http://savannah.gnu.org/bugs/?28113>
26770
26771         userspec: reformat to use spaces, not TABs
26772         * lib/userspec.c: Expand TABs to spaces.
26773         Add Emacs' "indent-tabs-mode: nil" hint.
26774
26775 2009-11-27  Eric Blake  <ebb9@byu.net>
26776
26777         getopt-gnu: flush out another BSD bug
26778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26779         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26780         flush out BSD bug.
26781         * tests/test-getopt.h (test_getopt): End lists with NULL.
26782         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26783         (test_getopt_long_posix): Enhance test.
26784         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26785         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26786         getopt-gnu.
26787         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26788         Likewise.
26789
26790 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26791
26792         * modules/idpriv-droptemp-tests (Notice): Fix text.
26793
26794 2009-11-27  Jim Meyering  <meyering@redhat.com>
26795
26796         test-xalloc-die: avoid spurious failure due to libtool argv difference
26797         In a libtool-enabled project, this test would fail due to a difference
26798         in the emitted program name, e.g.,
26799         -test-xalloc-die: memory exhausted
26800         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26801         Use program to avoid that.
26802         * modules/xalloc-die-tests (Depends-on): Add progname.
26803         * tests/test-xalloc-die.c: Include progname.h".
26804         (program_name): Remove decl.
26805         (main): Call set_program_name.
26806         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26807
26808 2009-11-26  Richard Jones  <rjones@redhat.com>
26809
26810         w32sock: leave win32 error in place.
26811         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26812
26813 2009-11-26  Eric Blake  <ebb9@byu.net>
26814
26815         init.sh: suggest to use skip_ and fail_ functions in comments
26816         * tests/init.sh: Add a sentence.
26817
26818 2009-11-25  Bruno Haible  <bruno@clisp.org>
26819
26820         init.sh: add documentation in comments
26821         * tests/init.sh: Add some developer and user documentation.
26822
26823 2009-11-26  Jim Meyering  <meyering@redhat.com>
26824
26825         init.sh: accommodate even those who specify bogus srcdir manually
26826         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26827         configure-time tests to be sanitized, so that there is no need to
26828         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26829         (with no double quotes) suffices.  However, since tests may be
26830         invoked manually, and since you may explicitly set srcdir to the
26831         name of a directory containing spaces, do quote its uses here.
26832         * tests/test-pread.sh: Likewise.
26833         Suggested by Bruno Haible.
26834
26835         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26836         * tests/test-pread.sh: Write no data into the pipe, because
26837         test-pread actually reads none.  This avoids a diagnostic,
26838         "bash: echo: write error: Broken pipe", that arises in the unusual
26839         event something is ignoring SIGPIPE, and might be interpreted
26840         as some sort of failure.  Reported by Bruno Haible.
26841
26842 2009-11-25  Jim Meyering  <meyering@redhat.com>
26843
26844         test-pread: cover failure with ESPIPE and EINVAL
26845         * tests/test-pread.c (main): Test for failure, too.
26846         * tests/test-pread.sh: Invoke with stdin on a pipe.
26847         Suggested by Eric Blake.
26848
26849         pread: improvement and fix
26850         * modules/pread (Depends-on): Depend on lseek, for portability to
26851         e.g., mingw.  Suggested by Eric Blake.
26852         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26853
26854         unistd.in.h: correct declaration of pread
26855         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26856         Reported by Richard W.M. Jones.
26857
26858         test-pread.sh: distribute the test script
26859         * modules/pread-tests (Files): Include test-pread.sh.
26860
26861         test-pread.sh: clean up
26862         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26863         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26864         That is unnecessary, since it's always ".".
26865         Suggestion from Eric Blake.
26866
26867         test-pread.sh: make executable
26868         * tests/test-pread.sh: Set executable bit.
26869         Reported by Eric Blake.
26870
26871         correct typo in test-pread.sh
26872         * tests/test-pread.sh: Add #! line.
26873
26874         test pread
26875         * tests/test-pread.c: New file.
26876         * tests/test-pread.sh: Likewise.
26877         * modules/pread-tests: Likewise.
26878
26879         pread: new module
26880         * modules/pread: New file.
26881         * lib/unistd.in.h (pread): Define/declare.
26882         * lib/pread.c (pread): New file.
26883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26884         * modules/unistd (Makefile.am): Substitute witnesses.
26885         * doc/posix-functions/pread.texi (pread): Update.
26886         * MODULES.html.sh: Add pread.
26887
26888 2009-11-25  Jim Meyering  <meyering@redhat.com>
26889
26890         tests/init.sh: new file to be used via most *.sh tests
26891         * tests/init.sh: New file.
26892
26893 2009-11-25  Eric Blake  <ebb9@byu.net>
26894
26895         utimens: work around older Linux failure with symlinks
26896         * lib/utimens.c (lutimensat_works_really): New variable.
26897         (fdutimens, lutimens): Use it to manage kernels that support
26898         nanosecond times on files, but not on symlinks.
26899         Reported by OndÅ™ej Vašík.
26900
26901         utimes: fix configure grammar
26902         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26903
26904 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26905
26906         regex: Fix fastmap for multibyte character ranges.
26907         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26908         characters when a multibyte character range is included.
26909
26910 2009-11-22  Andy Wingo  <wingo@pobox.com>
26911
26912         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26913         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26914
26915 2009-11-24  Bruno Haible  <bruno@clisp.org>
26916
26917         doc: Most *_l functions exist in MacOS X 10.5.
26918         * doc/posix-functions/duplocale.texi: Update platforms list.
26919         * doc/posix-functions/freelocale.texi: Likewise.
26920         * doc/posix-functions/newlocale.texi: Likewise.
26921         * doc/posix-functions/uselocale.texi: Likewise.
26922         * doc/posix-functions/isalnum_l.texi: Likewise.
26923         * doc/posix-functions/isalpha_l.texi: Likewise.
26924         * doc/posix-functions/isblank_l.texi: Likewise.
26925         * doc/posix-functions/iscntrl_l.texi: Likewise.
26926         * doc/posix-functions/isdigit_l.texi: Likewise.
26927         * doc/posix-functions/isgraph_l.texi: Likewise.
26928         * doc/posix-functions/islower_l.texi: Likewise.
26929         * doc/posix-functions/isprint_l.texi: Likewise.
26930         * doc/posix-functions/ispunct_l.texi: Likewise.
26931         * doc/posix-functions/isspace_l.texi: Likewise.
26932         * doc/posix-functions/isupper_l.texi: Likewise.
26933         * doc/posix-functions/iswalnum_l.texi: Likewise.
26934         * doc/posix-functions/iswalpha_l.texi: Likewise.
26935         * doc/posix-functions/iswblank_l.texi: Likewise.
26936         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26937         * doc/posix-functions/iswctype_l.texi: Likewise.
26938         * doc/posix-functions/iswdigit_l.texi: Likewise.
26939         * doc/posix-functions/iswgraph_l.texi: Likewise.
26940         * doc/posix-functions/iswlower_l.texi: Likewise.
26941         * doc/posix-functions/iswprint_l.texi: Likewise.
26942         * doc/posix-functions/iswpunct_l.texi: Likewise.
26943         * doc/posix-functions/iswspace_l.texi: Likewise.
26944         * doc/posix-functions/iswupper_l.texi: Likewise.
26945         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26946         * doc/posix-functions/isxdigit_l.texi: Likewise.
26947         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26948         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26949         * doc/posix-functions/strcoll_l.texi: Likewise.
26950         * doc/posix-functions/strfmon_l.texi: Likewise.
26951         * doc/posix-functions/strftime_l.texi: Likewise.
26952         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26953         * doc/posix-functions/strxfrm_l.texi: Likewise.
26954         * doc/posix-functions/tolower_l.texi: Likewise.
26955         * doc/posix-functions/toupper_l.texi: Likewise.
26956         * doc/posix-functions/towctrans_l.texi: Likewise.
26957         * doc/posix-functions/towlower_l.texi: Likewise.
26958         * doc/posix-functions/towupper_l.texi: Likewise.
26959         * doc/posix-functions/wcscoll_l.texi: Likewise.
26960         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26961         * doc/posix-functions/wctrans_l.texi: Likewise.
26962         * doc/posix-functions/wctype_l.texi: Likewise.
26963         * doc/glibc-functions/strptime_l.texi: Likewise.
26964         * doc/glibc-functions/strtod_l.texi: Likewise.
26965         * doc/glibc-functions/strtof_l.texi: Likewise.
26966         * doc/glibc-functions/strtol_l.texi: Likewise.
26967         * doc/glibc-functions/strtold_l.texi: Likewise.
26968         * doc/glibc-functions/strtoll_l.texi: Likewise.
26969         * doc/glibc-functions/strtoul_l.texi: Likewise.
26970         * doc/glibc-functions/strtoull_l.texi: Likewise.
26971         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26972         * doc/glibc-functions/wcstod_l.texi: Likewise.
26973         * doc/glibc-functions/wcstof_l.texi: Likewise.
26974         * doc/glibc-functions/wcstol_l.texi: Likewise.
26975         * doc/glibc-functions/wcstold_l.texi: Likewise.
26976         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26977         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26978         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26979
26980 2009-11-24  Bruno Haible  <bruno@clisp.org>
26981
26982         duplocale: Fix logic bug.
26983         * lib/duplocale.c: Don't include <langinfo.h>.
26984         (_NL_LOCALE_NAME): Remove macro.
26985         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26986         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26987
26988 2009-11-23  Jim Meyering  <meyering@redhat.com>
26989
26990         test-update-copyright: don't hard-code /usr/bin/perl
26991         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26992         perl to print the current year.  Gilles Espinasse reported that
26993         the replaced use of perl was hard-coded as /usr/bin/perl.
26994
26995 2009-11-23  Bruno Haible  <bruno@clisp.org>
26996
26997         duplocale: Add support for glibc 2.3.x.
26998         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26999
27000 2009-11-22  Bruno Haible  <bruno@clisp.org>
27001
27002         vasnprintf: Tiny optimization.
27003         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27004         MacOS X.
27005
27006 2009-11-22  Bruno Haible  <bruno@clisp.org>
27007
27008         Tests for module 'duplocale'.
27009         * modules/duplocale-tests: New file.
27010         * tests/test-duplocale.c: New file.
27011
27012         New module 'duplocale'.
27013         * m4/duplocale.m4: New file.
27014         * lib/locale.in.h (duplocale): New declaration.
27015         * lib/duplocale.c: New file.
27016         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27017         gl_LOCALE_H_DEFAULTS): New macros.
27018         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27019         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27020         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27021         REPLACE_DUPLOCALE.
27022         * modules/duplocale: New file.
27023         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27024
27025 2009-11-22  Bruno Haible  <bruno@clisp.org>
27026
27027         * modules/locale-tests (configure.ac): Test for newlocale function.
27028         * tests/test-locale.c: When the system has extended locale functions,
27029         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27030
27031         locale: Make locale_t available when possible.
27032         * lib/locale.in.h: Include <xlocale.h> when it exists.
27033         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27034         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27035         * modules/locale (Depends-on): Add extensions.
27036         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27037         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27038
27039 2009-11-22  Bruno Haible  <bruno@clisp.org>
27040
27041         Add comments.
27042         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27043         invocation.
27044         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27045         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27046         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27047
27048 2009-11-22  Bruno Haible  <bruno@clisp.org>
27049
27050         error: account for the possibility of freopen (stdout).
27051         * lib/error.c: Include <unistd.h>.
27052         (flush_stdout): New function, extracted from error and error_at_line.
27053         Determine stdout's fd dynamically.
27054         (error, error_at_line): Invoke flush_stdout.
27055         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27056         * modules/error (Depends-on): Add unistd.
27057
27058 2009-11-22  Bruno Haible  <bruno@clisp.org>
27059
27060         diffseq: Add comment.
27061         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27062
27063 2009-11-22  Jim Meyering  <meyering@redhat.com>
27064
27065         c-stack: avoid defining an unused static function
27066         * lib/c-stack.c (find_stack_direction): Do not define this function
27067         when it will not be used.
27068
27069         diffseq: avoid spurious gcc warnings
27070         * lib/diffseq.h (IF_LINT2): Define.
27071         (compareseq): Use it to initialize two members of "part".
27072         This avoids two used-uninitialized warnings.
27073
27074 2009-11-21  Jim Meyering  <meyering@redhat.com>
27075
27076         c-stack: avoid "ignoring return value of `write'" warning
27077         * lib/c-stack.c: Include "ignore-value.h".
27078         (die): Explicitly ignore each write return value.
27079         * modules/c-stack (Depends-on): Add ignore-value.
27080
27081 2009-11-21  Bruno Haible  <bruno@clisp.org>
27082
27083         diffseq: reduce scope of variable 'best'.
27084         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27085         variable, earlier used for two different purposes.
27086
27087 2009-11-21  Jim Meyering  <meyering@redhat.com>
27088
27089         diffseq: remove useless assignment to "best"
27090         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27091         assignment.  At that point "best" is already guaranteed to be zero.
27092
27093 2009-11-20  Eric Blake  <ebb9@byu.net>
27094
27095         build: mention ftp redirector in release announcements
27096         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27097         values that used to come from cfg.mk; mention FTP redirect URL.
27098         * build-aux/announce-gen: Mention the mirror list.
27099         Suggested by Karl Berry.
27100
27101         nanosleep: improve port to mingw
27102         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27104         LIB_NANOSLEEP, but only when needed.
27105         * modules/select (Link): Document LIBSOCKET.
27106         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27107         enough.
27108
27109         nanosleep: work around cygwin bug
27110         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27111         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27112         bug.
27113         (getnow): Delete, not needed.
27114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27115         LIB_CLOCK_GETTIME.
27116         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27117         clock-time, gettime.
27118         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27119         bug.
27120         * modules/nanosleep-tests: New test.
27121         * tests/test-nanosleep.c: New file.
27122
27123         sleep: work around cygwin bug
27124         * lib/sleep.c (rpl_sleep): Work around the bug.
27125         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27126         (gl_PREREQ_SLEEP): Delete unused macro.
27127         * modules/sleep (Depends-on): Add verify.
27128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27129         * modules/unistd (Makefile.am): Substitute witness.
27130         * lib/unistd.in.h (sleep): Update prototype.
27131         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27132         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27133         * modules/sleep-tests (Depends-on): Check for alarm.
27134
27135 2009-11-20  Jim Meyering  <meyering@redhat.com>
27136
27137         maint.mk: improve sc_prohibit_magic_number_exit
27138         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27139         so it does not match uses like System.exit(1).
27140         Add comments showing how to correct all offenders.
27141
27142 2009-11-19  Eric Blake  <ebb9@byu.net>
27143
27144         xalloc-die-tests: add missing library
27145         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27146
27147         test-xvasprintf: silence compiler warnings
27148         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27149         empty string from gcc.
27150
27151 2009-11-19  Jim Meyering  <meyering@redhat.com>
27152
27153         xfreopen: new module, from coreutils
27154         * modules/xfreopen: New module.
27155         * lib/xfreopen.c: New file.
27156         * lib/xfreopen.h: New file.
27157         * MODULES.html.sh (File stream based Input/Output"): Add it.
27158
27159 2009-11-19  Eric Blake  <ebb9@byu.net>
27160
27161         manywarnings: depend on warnings
27162         * modules/manywarnings (Depends-on): Add warnings.
27163
27164         build: avoid compiler warnings
27165         * lib/select.c (rpl_select): Delete unused variable.
27166         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27167
27168 2009-11-18  Eric Blake  <ebb9@byu.net>
27169
27170         tests: avoid false negative with --with-packager
27171         * tests/test-version-etc.sh: Discard packager information.
27172         * tests/test-argp-version-etc-1.sh: Likewise.
27173         Reported by Mike Frysinger.
27174
27175         utimens: fix regression on Solaris
27176         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27177         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27178         can only change fd timestamps via futimesat.  Instead, use an
27179         additional witness macro to avoid BSD bug.
27180         Reported by Jim Meyering.
27181
27182 2009-11-17  Eric Blake  <ebb9@byu.net>
27183
27184         usleep: use it to simplify tests
27185         * modules/stat-time-tests (Depends-on): Add usleep.
27186         (configure.ac): Drop usleep check.
27187         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27188         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27189         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27190         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27191         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27192         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27193         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27194         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27195         Likewise.
27196         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27197         * tests/test-lchown.h (nap): Likewise.
27198         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27199         * tests/test-stat-time.c (nap): Likewise.
27200         * tests/test-utimens-common.h (nap): Update comments.
27201
27202         usleep: new module
27203         * modules/usleep: New file.
27204         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27205         * lib/usleep.c (usleep): Likewise.
27206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27207         * modules/unistd (Makefile.am): Substitute witnesses.
27208         * lib/unistd.in.h (usleep): Add declaration.
27209         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27210         * MODULES.html.sh (Date and time): Likewise.
27211         * modules/usleep-tests (Depends-on): New test.
27212         * tests/test-usleep.c: New file.
27213
27214         chown: work around OpenBSD bug
27215         * lib/chown.c (rpl_chown): Work around the bug.
27216         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27217         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27218         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27219         * modules/chown (Depends-on): Add stdbool.
27220         * modules/lchown (Depends-on): Likewise.
27221         * doc/posix-functions/chown.texi (chown): Document the bug.
27222         * doc/posix-functions/lchown.texi (lchown): Likewise.
27223         * tests/test-lchown.h (test_chown): Relax test.
27224
27225         mkstemp: avoid conflict with C++ keyword template
27226         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27227         * lib/mkostemp.c (mkostemp): Likewise.
27228         * lib/mkostemps.c (mkostemps): Likewise.
27229         * lib/mkstemp.c (mkstemp): Likewise.
27230         * lib/mkstemps.c (mkstemps): Likewise.
27231
27232         xalloc-die-tests: optimize
27233         * tests/test-xalloc-die.sh: Reduce number of processes.
27234
27235 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27236
27237         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27238         patch from ludo@gnu.org (Ludovic Courtès).
27239
27240 2009-11-17  Jim Meyering  <meyering@redhat.com>
27241
27242         version-etc: use proper license string
27243         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27244         * modules/version-etc-fsf: Likewise.
27245
27246 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27247
27248         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27249         printed to stdout.  Deal with EOL differences.
27250
27251 2009-11-17  Eric Blake  <ebb9@byu.net>
27252
27253         unsetenv: work around Solaris bug
27254         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27255         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27256         Reported by Jim Meyering.
27257
27258         vasnprintf: avoid compiler warnings
27259         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27260         variables.
27261         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27262
27263 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27264
27265         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27266         settings since xalloc-die is no longer the self test,
27267         xalloc-die.sh is.
27268
27269 2009-11-17  Jim Meyering  <meyering@redhat.com>
27270
27271         test-xalloc-die.sh: make the code agree with the commit log
27272         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27273         at the end, just in case you happen to have a test-xalloc-die
27274         program in some other PATH directory.
27275
27276         test-xalloc-die.sh: fix a portability bug
27277         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27278         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27279         Otherwise, argv[0] (as often seen in diagnostics) would be too
27280         system-dependent, sometimes with, and sometimes without the leading "./".
27281
27282         version-etc-fsf: relax license to LGPLv3+
27283         * modules/version-etc-fsf (License): Relax license.
27284
27285 2009-11-16  Eric Blake  <ebb9@byu.net>
27286
27287         xalloc-die-tests: avoid printing null pointer
27288         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27289         shell script.
27290         * tests/test-xalloc-die.c (program_name): Declare.
27291         * tests/test-xalloc-die.sh (tmpfiles): New file.
27292
27293         setenv, unsetenv: work around various bugs
27294         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27295         (setenv) [HAVE_SETENV]: Work around bugs.
27296         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27297         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27298         for bugs.
27299         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27300         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27302         * modules/stdlib (Makefile.am): Update substitutions.
27303         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27304         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27305         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27306         * modules/setenv-tests: New test.
27307         * modules/unsetenv-tests: Likewise.
27308         * tests/test-setenv.c: New file.
27309         * tests/test-unsetenv.c: Likewise.
27310
27311 2009-11-16  Jim Meyering  <meyering@redhat.com>
27312
27313         version-etc: relax license to LGPLv3+
27314         * modules/version-etc (License): Relax license.
27315
27316         better AC_REQUIRE expanded-before-required-warning avoidance
27317         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27318         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27319         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27320         which is no longer needed.
27321
27322 2009-11-16  Eric Blake  <ebb9@byu.net>
27323
27324         test-freading: clean up temporary file
27325         * tests/test-freading.c (main): Remove file on success, and use
27326         ASSERT more liberally.
27327         Reported by Jim Meyering.
27328
27329 2009-11-16  Jim Meyering  <meyering@redhat.com>
27330
27331         avoid new AC_REQUIRE expanded-before-required warnings
27332         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27333         merely using it.
27334         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27335         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27336
27337 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27338
27339         * tests/test-xalloc-die.c: New file.
27340         * modules/xalloc-die-tests: New file.
27341         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27342         XFAIL_TESTS so it can be appended by modules.
27343
27344 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27345
27346         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27347         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27348
27349 2009-11-14  Eric Blake  <ebb9@byu.net>
27350
27351         fnmatch: avoid compiler warning
27352         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27353         to silence compiler warning about mismatch signedness in ?:.
27354         Reported by Robert Millan.
27355
27356         intprops: add double-inclusion guard
27357         * lib/intprops.h: Allow idempotent includes.
27358         Suggested by Bruce Korb.
27359
27360         openat: detect Solaris fchownat bug
27361         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27362         penalizing glibc chownat when only lchownat is broken.
27363         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27364         trailing slash bugs.
27365         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27366         * modules/openat-tests (Files): Include more files.
27367         (Depends-on): Add mgetgroups, sleep, stat-time.
27368         (configure.ac): Add additional checks.
27369         (Makefile.am): Build new test.
27370         * tests/test-fchownat.c: New file.
27371
27372         lchown: detect Solaris and FreeBSD bug
27373         * lib/lchown.c (rpl_lchown): Work around bug.
27374         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27376         * modules/unistd (Makefile.am): Populate it.
27377         * lib/unistd.in.h (lchown): Update declaration.
27378         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27379         * modules/lchown-tests: New file.
27380         * tests/test-lchown.h (test_lchown): Likewise.
27381         * tests/test-lchown.c (main): Likewise.
27382
27383         chown: detect Solaris and FreeBSD bug
27384         * lib/chown.c (rpl_chown): Work around bug.
27385         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27386         (gl_PREREQ_CHOWN): Delete.
27387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27388         * modules/unistd (Makefile.am): Populate it.
27389         * lib/unistd.in.h (chown): Update declaration.
27390         * lib/lchown.c (chown): Update client.
27391         * modules/lchown (Depends-on): Add lstat.
27392         * doc/posix-functions/chown.texi (chown): Document the bug.
27393         * doc/posix-functions/getgroups.texi (getgroups): Document
27394         getgroups pitfall.
27395         * modules/chown-tests: New file.
27396         * tests/test-chown.h (test_chown): Likewise.
27397         * tests/test-chown.c (main): Likewise.
27398
27399 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27400
27401         gnulib-tool: correctly detect absence of m4 directories
27402         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27403
27404 2009-11-14  Jim Meyering  <meyering@redhat.com>
27405
27406         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27407         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27408
27409 2009-11-14  John W. Eaton  <jwe@gnu.org>
27410
27411         strftime.h: wrap funtion declaration in extern "C" block
27412         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27413
27414 2009-11-13  Eric Blake  <ebb9@byu.net>
27415
27416         getgroups: avoid compiler warning
27417         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27418
27419         getgroups: work around FreeBSD bug
27420         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27421         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27422         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27423         * tests/test-getgroups.c (main): Fix buffer overrun.
27424
27425         getgroups: avoid compilation failure
27426         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27427         * modules/getgroups (Depends-on): Add stdint.
27428
27429 2009-11-13  Jim Meyering  <meyering@redhat.com>
27430
27431         test-getgroups: avoid compilation failure
27432         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27433
27434 2009-11-13  Eric Blake  <ebb9@byu.net>
27435
27436         mgetgroups: new module, taken from coreutils
27437         * modules/mgetgroups: New file.
27438         * lib/mgetgroups.h: Likewise.
27439         * lib/mgetgroups.c (mgetgroups): Likewise.
27440         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27441         * MODULES.html.sh (Users and groups): Mention it.
27442
27443         getgroups: don't expose GETGROUPS_T to user
27444         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27445         an element at a time if GETGROUPS_T is wrong size.
27446         * lib/getugroups.h (getugroups): Change signature.
27447         * lib/unistd.in.h (getgroups): Likewise.
27448         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27449         signature needs fixing.
27450         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27451         AC_TYPE_GETGROUPS.
27452         * modules/group-member (Depends-on): Add getgroups.
27453         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27454         (group_member): Rely on getgroups replacement.
27455         * lib/getugroups.c (getugroups): Use gid_t.
27456         * tests/test-getgroups.c (main): Likewise.
27457         * NEWS: Mention the signature change.
27458         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27459         problem with signature.
27460         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27461         GETGROUPS_T is still useful for setgroups.
27462
27463         getgroups, getugroups: provide stubs for mingw
27464         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27465         * lib/getugroups.c (getugroups): Likewise.
27466         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27467         function.  Modernize replacement scheme.
27468         (gl_PREREQ_GETGROUPS): Delete.
27469         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27470         * modules/getgroups (configure.ac): Declare witness.
27471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27472         * modules/unistd (Depends-on): Substitute witness.
27473         * lib/unistd.in.h (getgroups): Declare replacement.
27474
27475         getgroups: avoid calling exit
27476         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27477         drop xalloc.
27478         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27479         dependencies.
27480         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27481         exiting, in the rare case of malloc failure.
27482
27483         getgroups: fix logic error
27484         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27485         has more than 20 groups.
27486         * modules/getgroups-tests: New test.
27487         * tests/test-getgroups.c: New file.
27488
27489 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27490
27491         * tests/test-base64.c: Improve.
27492
27493 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27494
27495         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27496         Blake <ebb9@byu.net>.
27497
27498 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27499
27500         * tests/test-xvasprintf.c: Add %s%s related checks.
27501
27502 2009-11-12  Eric Blake  <ebb9@byu.net>
27503
27504         version-etc: match standards.texi style
27505         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27506         and use <> only for URLs.
27507
27508 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27509
27510         fts: do not fail on a submount during traversal
27511         * lib/fts.c (fts_build): Read the stat info again after opening
27512         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27513         Original report at http://bugzilla.redhat.com/501848.
27514
27515 2009-11-12  Jim Meyering  <meyering@redhat.com>
27516
27517         bootstrap: sync from coreutils
27518         * build-aux/bootstrap (bootstrap_epilogue): New function.
27519         Use git_modules_config in one more place.  This make bootstrap's
27520         --gnulib-srcdir option more useful for testing.
27521
27522         bootstrap: generalize autoheader check
27523         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27524         AC_CONFIG_HEADERS.
27525
27526 2009-11-11  Eric Blake  <ebb9@byu.net>
27527
27528         mkfifoat: use new modules for Solaris and BSD bugs
27529         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27530         * lib/mkfifoat.c (mknodat): Split...
27531         * lib/mknodat.c (mknodat): ...into new file.
27532         * modules/mkfifoat (Files): Ship new file.
27533         (Depends-on): Add mkfifo, mknod.
27534         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27535         (Depends-on): Add symlink.
27536         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27537         redundant with test_mkfifo.h.
27538         (do_mkfifoat, do_mknodat): New helpers.
27539
27540         mknod: new module
27541         * modules/mknod: New file.
27542         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27543         * lib/mknod.c (mknod): Likewise.
27544         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27545         defaults.
27546         * modules/sys_stat (Makefile.am): Substitute them.
27547         * lib/sys_stat.in.h (mknod): Declare replacement.
27548         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27549         Document it.
27550         * doc/posix-functions/mknod.texi (mknod): Likewise.
27551         * modules/mknod-tests: New test.
27552         * tests/test-mknod.c: Likewise.
27553
27554         mkfifo: new module
27555         * modules/mkfifo: New file.
27556         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27557         * lib/mkfifo.c (mkfifo): Likewise.
27558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27559         defaults.
27560         * modules/sys_stat (Makefile.am): Substitute them.
27561         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27562         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27563         Document it.
27564         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27565         * modules/mkfifo-tests: New test.
27566         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27567         from test-mkfifoat.c.
27568         * tests/test-mkfifo.c: New file.
27569
27570         readlink: detect FreeBSD bug
27571         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27572         slash on symlink.
27573         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27574         * tests/test-readlink.h (test_readlink): Enhance test.
27575
27576         symlink: detect FreeBSD bug
27577         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27578         slash on symlink.
27579         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27580         * tests/test-symlink.h (test_symlink): Enhance test.
27581
27582 2009-11-10  Eric Blake  <ebb9@byu.net>
27583
27584         link: detect FreeBSD bug
27585         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27586         symlink.
27587         * doc/posix-functions/link.texi (link): Document the bug.
27588         * tests/test-link.h (test_link): Enhance test.
27589         * tests/test-linkat.c (main): Update caller.
27590
27591         unlink, remove: detect FreeBSD bug
27592         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27593         slash on symlink.
27594         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27595         * doc/posix-functions/remove.texi (remove): Likewise.
27596         * tests/test-unlink.h (test_unlink): Enhance test.
27597         * tests/test-remove.c (main): Likewise.
27598
27599 2009-11-09  Eric Blake  <ebb9@byu.net>
27600
27601         rename: detect FreeBSD bug
27602         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27603         slash on symlink.
27604         * modules/renameat-tests (Depends-on): Add filenamecat.
27605         * tests/test-rename.h (test_rename): Allow one more errno.
27606         * tests/test-renameat.c (main): Likewise.
27607         * doc/posix-functions/rename.texi (rename): Document the bug.
27608
27609         open: detect FreeBSD bug
27610         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27611         symlink.
27612         * doc/posix-functions/open.texi (open): Document the bug.
27613         * doc/posix-functions/utimes.texi (utimes): Likewise.
27614         * tests/test-open.h (test_open): Add parameters, and test symlink
27615         handling.
27616         * tests/test-open.c (main): Adjust caller.
27617         * tests/test-fcntl-safer.c (main): Likewise.
27618         * modules/open-tests (Depends-on): Add stdbool, symlink.
27619         * modules/fcntl-safer-tests (Depends-on): Likewise.
27620         * tests/test-openat.c (main): Add test-open tests.
27621
27622         stat: detect FreeBSD bug
27623         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27624         symlink.
27625         * doc/posix-functions/stat.texi (stat): Document the bug.
27626         * tests/test-stat.h (test_stat_func): Add argument.
27627         * tests/test-stat.c (main): Adjust caller.
27628         * tests/test-fstatat.c (main): Likewise.
27629         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27630         Reported by Jim Meyering.
27631
27632 2009-11-09  James Youngman  <jay@gnu.org>
27633
27634         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27635         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27636
27637 2009-11-08  Jim Meyering  <meyering@redhat.com>
27638
27639         utimens: remove invalid futimesat call
27640         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27641         It used the file descriptor of the target file as the DIR_FD
27642         parameter and NULL as the file name.  That caused failure with
27643         errno == EFAULT on FreeBSD-8.0-rc2
27644
27645 2009-11-07  Eric Blake  <ebb9@byu.net>
27646
27647         fflush, freadseek: use fseeko, not fseek
27648         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27649         (clear_ungetc_buffer): Avoid potential problems on large files.
27650         * lib/freadseek.c (freadseek): Likewise.
27651         * modules/freadseek (Depends-on): Add fseeko.
27652         * modules/fseek (configure.ac): Set a witness.
27653         * tests/test-fflush.c (main): Use fseeko.
27654         * tests/test-fpurge.c (fseek): Disable link warning.
27655         * tests/test-freadable.c (fseek): Likewise.
27656         * tests/test-freading.c (fseek): Likewise.
27657         * tests/test-fseeko.c (fseek): Likewise.
27658         * tests/test-ftell.c (fseek): Likewise.
27659         * tests/test-ftello.c (fseek): Likewise.
27660         * tests/test-fwritable.c (fseek): Likewise.
27661         * tests/test-fwriting.c (fseek): Likewise.
27662
27663 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27664
27665         * modules/memchr (Depends-on): Drop getpagesize dependency.
27666
27667 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27668
27669         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27670         Reported by Ludovic Courtès.
27671         * build-aux/pmccabe2html: Improve example usage.
27672         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27673
27674 2009-11-06  Jim Meyering  <meyering@redhat.com>
27675
27676         do-release-commit-and-tag: New module.
27677         Automate the release-commit and tag process.
27678         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27679         * modules/do-release-commit-and-tag: New file.
27680         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27681
27682 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27683
27684         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27685         because test-select.c uses inet_pton.
27686
27687 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27688
27689         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27690         GETADDRINFO_LIB.  Bump serial number.
27691         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27692         Suggested by Eric Blake <ebb9@byu.net>.
27693
27694 2009-11-05  Eric Blake  <ebb9@byu.net>
27695
27696         strtod: detect darwin bug
27697         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27698         Reported by Leo Davis.
27699
27700         freopen-safer: new module
27701         * modules/freopen-safer: New module.
27702         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27703         * lib/freopen-safer.c (freopen_safer): New file.
27704         * lib/stdio-safer.h (freopen_safer): New declaration.
27705         * lib/stdio--.h (freopen): New override.
27706         * MODULES.html.sh (File stream based Input/Output): Mention it.
27707         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27708         freopen-safer module.
27709         * doc/posix-functions/stderr.texi (stderr): Likewise.
27710         * doc/posix-functions/stdin.texi (stdin): Likewise.
27711         * doc/posix-functions/stdout.texi (stdout): Likewise.
27712         * modules/freopen-safer-tests: New test.
27713         * tests/test-reopen-safer.c: New file.
27714
27715 2009-11-05  Jim Meyering  <meyering@redhat.com>
27716
27717         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27718         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27719
27720 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27721
27722         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27723
27724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27725
27726         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27727
27728 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27729
27730         Fix link error.
27731         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27732         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27733
27734 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27735
27736         * tests/test-func.c: Also test value of __func__.
27737
27738 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27739
27740         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27741         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27742
27743 2009-11-05  Bruno Haible  <bruno@clisp.org>
27744
27745         Fix link error.
27746         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27747         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27748         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27749
27750 2009-11-05  Bruno Haible  <bruno@clisp.org>
27751
27752         Tests for module 'inet_pton'.
27753         * modules/inet_pton-tests: New file.
27754         * tests/test-inet_pton.c: New file.
27755
27756 2009-11-05  Bruno Haible  <bruno@clisp.org>
27757
27758         Tests for module 'inet_ntop'.
27759         * modules/inet_ntop-tests: New file.
27760         * tests/test-inet_ntop.c: New file.
27761
27762 2009-11-04  Eric Blake  <ebb9@byu.net>
27763
27764         stdlib-safer: wrap all mkstemp variants
27765         * modules/mkostemp (configure.ac): Set witness.
27766         * modules/mkostemps (configure.ac): Likewise.
27767         * modules/mkstemps (configure.ac): Likewise.
27768         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27769         (mkstemps_safer): Wrap more functions.
27770         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27771         wrapping.
27772         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27773         (mkstemps_safer): Implement the wrappers.
27774
27775         mkstemps, mkostemps: new modules
27776         * modules/mkostemps: New module.
27777         * modules/mkstemps: Likewise.
27778         * lib/mkostemps.c (mkostemps): New file.
27779         * lib/mkstemps.c (mkstemps): Likewise.
27780         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27781         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27783         * modules/stdlib (Makefile.am): Substitute them.
27784         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27785         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27786         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27787         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27788         * MODULES.html.sh (File system functions): Mention them.
27789
27790         tempname: resync from glibc
27791         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27792         same values for __GT_FILE as glibc.  Abort even when assertions
27793         are disabled.
27794         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27795         match its value otherwise.  Allow idempotent inclusion.
27796         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27797         * lib/mkostemp.c (mkostemp): Likewise.
27798         * lib/mkstemp.c (mkstemp): Likewise.
27799         * lib/tmpfile.c (tmpfile): Likewise.
27800         * NEWS: Document this.
27801
27802         utimens: fix use of futimens on older Linux
27803         * lib/utimens.c (fdutimens): Use updated, rather than original,
27804         timespec to avoid bug in older Linux kernel.
27805         Reported by Simon Josefsson.
27806
27807 2009-11-04  Bruno Haible  <bruno@clisp.org>
27808
27809         Make num_processors more flexible and consistent.
27810         * lib/nproc.h (enum nproc_query): New type.
27811         (num_processors): Add a 'query' argument.
27812         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27813         (num_processors): Add a 'query' argument. Test the value of the
27814         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27815         mingw, count the number of CPUs available for the current process.
27816         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27817         Check for sched_getaffinity and sched_getaffinity_np.
27818         * modules/nproc (Depends-on): Add c-ctype, extensions.
27819         * NEWS: Mention the change.
27820
27821 2009-11-03  Bruno Haible  <bruno@clisp.org>
27822
27823         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27824
27825 2009-11-03  Jim Meyering  <meyering@redhat.com>
27826
27827         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27828         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27829         if it is defined.
27830
27831 2009-11-02  Eric Blake  <ebb9@byu.net>
27832
27833         mktime, timegm: share common declaration
27834         * lib/mktime-internal.h: New file.
27835         * lib/mktime.c: Use it rather than open-coding a declaration.
27836         * lib/timegm.c: Likewise.
27837         * modules/mktime (Files): Ship it.
27838         * modules/timegm (Files): Likewise.
27839         Suggested by Bruno Haible.
27840
27841         test-update-copyright: update test to match script changes
27842         * tests/test-update-copyright.sh: Avoid hard-coding perl
27843         location.  Don't update *.bak created by earlier runs.
27844
27845 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27846             Simon Josefsson  <simon@josefsson.org>
27847             Bruno Haible  <bruno@clisp.org>
27848
27849         Fix link error on Solaris 8.
27850         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27851         also in libnsl. Define also INET_PTON_LIB.
27852         * modules/inet_pton (Link): New section.
27853
27854 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27855             Bruno Haible  <bruno@clisp.org>
27856
27857         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27858         * modules/inet_ntop (Link): New section.
27859         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27860
27861 2009-11-02  Eric Blake  <ebb9@byu.net>
27862
27863         maint: avoid compiler warnings in m4 macros
27864         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27865         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27866
27867 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27868
27869         * m4/pmccabe2html.m4: Remove file.
27870         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27871         function.  Change maintainer.
27872         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27873         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27874         Courtès).
27875
27876 2009-10-31  Eric Blake  <ebb9@byu.net>
27877
27878         fseeko: fix m4 regression
27879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27880         regression from 2009-10-27.
27881         Reported by Ralf Wildenhues.
27882
27883 2009-10-31  Jim Meyering  <meyering@redhat.com>
27884
27885         inttostr: aesthetics and improved (compile-time) safety
27886         Define inttype_is_signed rather than inttype_is_unsigned,
27887         since the sole use is via "#if inttype_is_signed".
27888         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27889         inttype_is_unsigned.
27890         * lib/offtostr.c (inttype_is_signed): Likewise.
27891         * lib/uinttostr.c (inttype_is_signed): Likewise.
27892         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27893         * lib/inttostr.c (inttostr): Use verify to cross-check the
27894         inttype_is_signed value and the signedness of the actual type.
27895         * modules/inttostr (Depends-on): Add verify.
27896
27897 2009-10-30  Eric Blake  <ebb9@byu.net>
27898
27899         build: avoid compiler warnings
27900         * lib/fchmodat.c (lchmod): Mark unused variables.
27901         * lib/getopt.c (_getopt_initialize): Likewise.
27902         * lib/mktime.c (__mktime_internal): Provide prototype.
27903         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27904         older gcc that do not understand #pragma GCC diagnostic.
27905         * lib/uinttostr.c (inttype_is_unsigned): Define.
27906         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27907
27908 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27909
27910         stat: fix compilation on AIX
27911         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27912         only see struct stat64.
27913
27914 2009-10-30  Eric Blake  <ebb9@byu.net>
27915
27916         exclude: make more robust
27917         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27918         rather than masking a coding bug.
27919         Suggested by Bruno Haible.
27920
27921 2009-10-30  Jim Meyering  <meyering@redhat.com>
27922
27923         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27924         Rather than putting #!/usr/bin/perl on the first line,
27925         start with a variant of what's recommended by "man perlrun" that
27926         invokes the first "perl" program from your shell's search path.
27927         * build-aux/gitlog-to-changelog: Replace #!... as above.
27928         Add a "Local Variables" perl mode setting.
27929         Prompted by a patch from Ludovic Courtès.
27930         Improved by Eric Blake.
27931         * build-aux/useless-if-before-free: Likewise.
27932         * build-aux/announce-gen: Likewise.
27933         * build-aux/update-copyright: Likewise.
27934
27935 2009-10-29  Eric Blake  <ebb9@byu.net>
27936
27937         filenamecat-lgpl: adjust clients
27938         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27939         filenamecat.
27940         * modules/renameat (Depends-on): Likewise.
27941
27942         filenamecat: split into filenamecat-lgpl
27943         * modules/filenamecat-lgpl: New module.
27944         * modules/filenamecat (Files): Move library-safe files into
27945         filenamecat-lgpl.
27946         (Depends-on): Add filenamecat-lgpl.
27947         (configure.ac): Declare witness.
27948         * lib/filenamecat.h (file_name_concat): Only declare when using
27949         GPL module.
27950         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27951         Move...
27952         * lib/filenamecat-lgpl.c: ...into new file.
27953         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27954         (gl_FILE_NAME_CONCAT): Use it.
27955         * MODULES.html.sh (File system functions): Mention new module.
27956
27957         argp: avoid memory leak
27958         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27959         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27960         base_name, since the latter malloc()s and can call exit().
27961         Leak introduced 2006-07-03.
27962
27963         dirname-lgpl: adjust clients that don't need full dirname
27964         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27965         * modules/filenamecat (Depends-on): Likewise.
27966         * modules/linkat (Depends-on): Likewise.
27967         * modules/mkancesdirs (Depends-on): Likewise.
27968         * modules/mkdir (Depends-on): Likewise.
27969         * modules/openat (Depends-on): Likewise.
27970         * modules/savewd (Depends-on): Likewise.
27971         * modules/rename (Depends-on): Likewise.
27972         (License): Relax license.
27973         * modules/mkdir-tests (Depends-on): Drop progname.
27974         (Makefile.am): Delete unneeded LDADD.
27975         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27976
27977         dirname: split into dirname-lgpl
27978         * modules/dirname-lgpl: New module.
27979         * modules/dirname (Files): Move library-safe files into
27980         dirname-lgpl.
27981         (Depends-on): Add dirname-lgpl.
27982         (configure.ac): Declare witness.
27983         * modules/double-slash-root (License): Relax license.
27984         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27985         module.
27986         * lib/dirname.c (dir_len, mdir_name): Move...
27987         * lib/dirname-lgpl.c: ...into new file.
27988         * lib/basename.c (last_component, base_len): Move...
27989         * lib/basename-lgpl.c: ...into new file.
27990         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27991         (gl_DIRNAME): Use it.
27992         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27993         Mention new module.
27994         * modules/dirname-tests (Depends-on): Add progname.
27995         * tests/test-dirname.c (program_name): Delete.
27996
27997         mkdir: make safe for libraries
27998         * modules/mkdir (Depends-on): Drop xalloc.
27999         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28000         exit.
28001
28002         tests: avoid some compiler warnings
28003         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28004         literals.
28005         * tests/test-memchr.c (main): Avoid type mismatch.
28006         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28007         * tests/test-base64.c (main): Likewise.
28008         * tests/test-getdelim.c (main): Likewise.
28009         * tests/test-gethostname.c (main): Likewise.
28010         * tests/test-getline.c (main): Likewise.
28011         * tests/test-netinet_in.c (main): Likewise.
28012         * tests/test-select.c (open_server_socket, main): Likewise.
28013         * tests/test-select-stdin.c (main): Likewise.
28014         * tests/test-sockets.c (main): Likewise.
28015         * tests/test-strsignal.c (main): Likewise.
28016         * tests/test-sys_select.c (main): Likewise.
28017         * tests/test-sys_socket.c (main): Likewise.
28018         * tests/test-u64.c (main): Likewise.
28019         * tests/test-xfprintf-posix.c (main): Likewise.
28020         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28021
28022         sockets: avoid compiler warning
28023         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28024
28025         maint: detect usage(1) and other suspicious exits
28026         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28027
28028 2009-10-29  Jim Meyering  <meyering@redhat.com>
28029
28030         timespec: long-to-int truncation could make timespec_cmp malfunction
28031         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28032         a multiple of 2^32 nanoseconds as no difference.
28033
28034 2009-10-28  Jim Meyering  <meyering@redhat.com>
28035
28036         fprintftime: wrap macro code argument in "do {...} while(0)"
28037         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28038         cpy macro must be a statement that can be followed by a semicolon.
28039         Now that the else clause contains a comment and is hence longer
28040         than one line, I require curly braces.  That in turn requires
28041         that we wrap this code block in the standard do...while(0).
28042
28043         fprintftime: remove stray semicolon from previous change
28044         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28045
28046         fprintftime: avoid a warning about ignored fwrite return value
28047         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28048         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28049         that is unsafe.
28050         * modules/fprintftime (Depends-on): Add ignore-value.
28051
28052         exclude: avoid an unwarranted warning
28053         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28054
28055 2009-10-27  Eric Blake  <ebb9@byu.net>
28056
28057         fseek: avoid compilation failure when fflush is replaced
28058         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28059         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28060         module is in use.
28061         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28062         module is not in use; since REPLACE_FSEEK worked otherwise.
28063         (GNULIB_FTELLO): Likewise for ftell.
28064         Reported by Ian Beckwith and others.
28065
28066 2009-10-27  Bruno Haible  <bruno@clisp.org>
28067
28068         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28069         Reported by Jim Meyering.
28070
28071 2009-10-27  Jim Meyering  <jim@meyering.net>
28072             Bruno Haible  <bruno@clisp.org>
28073
28074         Avoid warning despite dropping the return value of fwrite.
28075         * lib/unicodeio.c: Include ignore-value.h.
28076         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28077         * modules/unicodeio (Depends-on): Add ignore-value.
28078
28079 2009-10-26  Eric Blake  <ebb9@byu.net>
28080
28081         areadlinkat: fix fallback path
28082         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28083         pointer and zero.
28084
28085 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28086
28087         Use a better IO block size for modern systems
28088         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28089         * lib/md2.c: Likewise.
28090         * lib/md4.c: Likewise.
28091         * lib/md5.c: Likewise.
28092         * lib/sha1.c: Likewise.
28093         * lib/sha256.c: Likewise.
28094         * lib/sha512.c: Likewise.
28095
28096 2009-10-22  Eric Blake  <ebb9@byu.net>
28097
28098         tests: avoid several compiler warnings
28099         * tests/test-getcwd.c (main): Avoid buffer underflow.
28100         * tests/test-getdate.c (main): String literals are not safe with
28101         putenv, so use setenv.  Declare unused argument.
28102         * modules/getdate-tests (Depends-on): Add setenv.
28103         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28104         problems with string literals in char *.
28105         * tests/test-hash.c (main): Avoid shadowing declaration.
28106         (insert_new): Treat string literals as char const *.
28107         * tests/test-getopt.h (test_getopt): Likewise.
28108         (getopt_loop): Alter types to minimize casting elsewhere.
28109         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28110         (test_getopt_long_posix): Likewise.
28111         (do_getopt_long): Add wrapper to minimize casting.
28112         * tests/test-atexit.c (clear_temp_file): Use void.
28113         * tests/test-areadlink-with-size.c (main): Declare unused
28114         arguments.
28115         * tests/test-areadlink.c (main): Likewise.
28116         * tests/test-areadlinkat-with-size.c (main): Likewise.
28117         * tests/test-areadlinkat.c (main): Likewise.
28118         * tests/test-canonicalize-lgpl.c (main): Likewise.
28119         * tests/test-canonicalize.c (main): Likewise.
28120         * tests/test-dirent-safer.c (main): Likewise.
28121         * tests/test-dirname.c (main): Likewise.
28122         * tests/test-dup2.c (main): Likewise.
28123         * tests/test-fchdir.c (main): Likewise.
28124         * tests/test-fcntl-h.c (main): Likewise.
28125         * tests/test-fcntl-safer.c (main): Likewise.
28126         * tests/test-fdopendir.c (main): Likewise.
28127         * tests/test-fdutimensat.c (main): Likewise.
28128         * tests/test-fflush.c (main): Likewise.
28129         * tests/test-filenamecat.c (main): Likewise.
28130         * tests/test-filevercmp.c (main): Likewise.
28131         * tests/test-fopen-safer.c (main): Likewise.
28132         * tests/test-fopen.c (main): Likewise.
28133         * tests/test-fpending.c (main): Likewise.
28134         * tests/test-fpurge.c (main): Likewise.
28135         * tests/test-freading.c (main): Likewise.
28136         * tests/test-fstatat.c (main): Likewise.
28137         * tests/test-fsync.c (main): Likewise.
28138         * tests/test-futimens.c (main): Likewise.
28139         * tests/test-getndelim2.c (main): Likewise.
28140         * tests/test-gettimeofday.c (main): Likewise.
28141         * tests/test-getopt.c (main): Likewise.
28142         * tests/test-i-ring.c (main): Likewise.
28143         * tests/test-inttypes.c (main): Likewise.
28144         * tests/test-link.c (main): Likewise.
28145         * tests/test-lstat.c (main): Likewise.
28146         * tests/test-math.c (main): Likewise.
28147         * tests/test-md5.c (main): Likewise.
28148         * tests/test-memchr2.c (main): Likewise.
28149         * tests/test-memrchr.c (main): Likewise.
28150         * tests/test-mkdir.c (main): Likewise.
28151         * tests/test-mkdirat.c (main): Likewise.
28152         * tests/test-mkfifoat.c (main): Likewise.
28153         * tests/test-open.c (main): Likewise.
28154         * tests/test-openat-safer.c (main): Likewise.
28155         * tests/test-openat.c (main): Likewise.
28156         * tests/test-quotearg.c (main): Likewise.
28157         * tests/test-rawmemchr.c (main): Likewise.
28158         * tests/test-readlink.c (main): Likewise.
28159         * tests/test-remove.c (main): Likewise.
28160         * tests/test-rename.c (main): Likewise.
28161         * tests/test-renameat.c (main): Likewise.
28162         * tests/test-rmdir.c (main): Likewise.
28163         * tests/test-sha1.c (main): Likewise.
28164         * tests/test-signal.c (main): Likewise.
28165         * tests/test-sigaction.c (main): Likewise.
28166         * tests/test-stat.c (main): Likewise.
28167         * tests/test-stat-time.c (main): Likewise.
28168         * tests/test-stddef.c (main): Likewise.
28169         * tests/test-stdint.c (main): Likewise.
28170         * tests/test-stdio.c (main): Likewise.
28171         * tests/test-stdlib.c (main): Likewise.
28172         * tests/test-strchrnul.c (main): Likewise.
28173         * tests/test-strerror.c (main): Likewise.
28174         * tests/test-string.c (main): Likewise.
28175         * tests/test-strtod.c (main): Likewise.
28176         * tests/test-strverscmp.c (main): Likewise.
28177         * tests/test-symlink.c (main): Likewise.
28178         * tests/test-symlinkat.c (main): Likewise.
28179         * tests/test-sys_stat.c (main): Likewise.
28180         * tests/test-sys_time.c (main): Likewise.
28181         * tests/test-time.c (main): Likewise.
28182         * tests/test-unistd.c (main): Likewise.
28183         * tests/test-unlink.c (main): Likewise.
28184         * tests/test-unlinkat.c (main): Likewise.
28185         * tests/test-utimens.c (main): Likewise.
28186         * tests/test-utimensat.c (main): Likewise.
28187         * tests/test-version-etc.c (main): Likewise.
28188         * tests/test-wchar.c (main): Likewise.
28189         * tests/test-wctype.c (main): Likewise.
28190         * tests/test-xprintf-posix.c (main): Likewise.
28191         * tests/test-posixtm.c (main): Likewise.
28192         (STREQ): Delete unused macro.
28193         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28194         shadowed variables.
28195         * tests/test-memchr.c (main): Likewise.
28196
28197 2009-10-21  Eric Blake  <ebb9@byu.net>
28198
28199         areadlinkat: avoid failure on older glibc
28200         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28201         rather than mis-comparing 0 against FUNC_RESULT of char*.
28202
28203 2009-10-21  Bruno Haible  <bruno@clisp.org>
28204
28205         * modules/stpncpy (License): Relicense under LGPLv2+.
28206         Reported by David Lutterkort <lutter@redhat.com>.
28207
28208 2009-10-20  Eric Blake  <ebb9@byu.net>
28209
28210         utimensat: work around Solaris 9 bug
28211         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28212         has trailing slash bugs.
28213         * tests/test-lutimens.h (test_lutimens): Enhance test.
28214         * tests/test-utimens.h (test_utimens): Likewise.
28215         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28216         * doc/posix-functions/utimes.texi (utimes): Likewise.
28217         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28218         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28219         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28220         * doc/posix-functions/futimens.texi (futimens): Likewise.
28221
28222         fdutimensat: new module
28223         * modules/fdutimensat: New file.
28224         * lib/fdutimensat.c (fdutimensat): Likewise.
28225         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28226         * MODULES.html.sh (File system functions): Mention module.
28227         * modules/fdutimensat-tests: New test.
28228         * tests/test-fdutimensat.c: Likewise.
28229
28230         doc: regenerate INSTALL
28231         * doc/INSTALL: Reflect recent autoconf update.
28232         * doc/INSTALL.ISO: Likewise.
28233         * doc/INSTALL.UTF-8: Likewise.
28234
28235 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28236
28237         acl: warn if ACL support is not detected
28238         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28239
28240 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28241
28242         * lib/nproc.h: Add extern "C" block for C++.
28243
28244 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28245             Bruno Haible  <bruno@clisp.org>
28246
28247         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28248         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28249         * doc/posix-functions/isalpha.texi: Likewise.
28250         * doc/posix-functions/isblank.texi: Likewise.
28251         * doc/posix-functions/iscntrl.texi: Likewise.
28252         * doc/posix-functions/isdigit.texi: Likewise.
28253         * doc/posix-functions/isgraph.texi: Likewise.
28254         * doc/posix-functions/islower.texi: Likewise.
28255         * doc/posix-functions/isprint.texi: Likewise.
28256         * doc/posix-functions/ispunct.texi: Likewise.
28257         * doc/posix-functions/isspace.texi: Likewise.
28258         * doc/posix-functions/isupper.texi: Likewise.
28259         * doc/posix-functions/isxdigit.texi: Likewise.
28260
28261 2009-10-18  Bruno Haible  <bruno@clisp.org>
28262
28263         Tests for module 'isblank'.
28264         * modules/isblank-tests: New file.
28265         * tests/test-isblank.c: New file.
28266
28267         New module 'isblank'.
28268         * lib/isblank.c: New file.
28269         * m4/isblank.m4: New file.
28270         * modules/isblank: New file.
28271         * doc/posix-functions/isblank.texi: Mention the new module.
28272
28273 2009-10-18  Bruno Haible  <bruno@clisp.org>
28274
28275         New module 'ctype'.
28276         * lib/ctype.in.h: New file.
28277         * m4/ctype.m4: New file.
28278         * modules/ctype: New file.
28279         * doc/posix-headers/ctype.texi: Mention the new module.
28280
28281 2009-10-18  Jim Meyering  <meyering@redhat.com>
28282
28283         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28284         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28285         right after its initialization, rather than farther down.
28286         Keeping these in close proximity makes it easier to ensure
28287         that each such variable is initialized.  E.g.,
28288
28289             LIB_CLOCK_GETTIME=
28290             AC_SUBST([LIB_CLOCK_GETTIME])
28291
28292         This change also increments these serial numbers.
28293         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28294         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28296
28297 2009-10-18  Bruno Haible  <bruno@clisp.org>
28298
28299         Don't let environment variables perturb build.
28300         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28301         (gl_PREREQ_GETHRXTIME): ... not here.
28302
28303 2009-10-18  Bruno Haible  <bruno@clisp.org>
28304
28305         Avoid symlink attack in localcharset module.
28306         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28307         (O_NOFOLLOW): Define fallback.
28308         (get_charset_aliases): Don't open the file if it is a symbolic link.
28309         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28310         gl_FCNTL_H.
28311         (gl_FCNTL_H): Require it.
28312         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28313         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28314         Reported by Fergal Glynn <fglynn@veracode.com>.
28315
28316 2009-10-18  Bruno Haible  <bruno@clisp.org>
28317
28318         Implement nproc for mingw.
28319         * lib/nproc.c: Include <windows.h>
28320         (num_processors): On native Windows platforms, try GetSystemInfo.
28321
28322 2009-10-18  Bruno Haible  <bruno@clisp.org>
28323
28324         Implement nproc for IRIX.
28325         * lib/nproc.c: Include <sys/sysmp.h>.
28326         (num_processors): On IRIX systems, try sysmp.
28327         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28328
28329 2009-10-18  Bruno Haible  <bruno@clisp.org>
28330
28331         Implement nproc for HP-UX.
28332         * lib/nproc.c: Include <sys/pstat.h>
28333         (num_processors): On HP-UX systems, try pstat_getdynamic.
28334         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28335         pstat_getdynamic.
28336
28337 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28338             Bruno Haible  <bruno@clisp.org>
28339
28340         Implement nproc for NetBSD, OpenBSD.
28341         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28342         (ARRAY_SIZE): New macro.
28343         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28344         * m4/nproc.m4: New file.
28345         * modules/nproc (Files): Add m4/nproc.m4.
28346         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28347         (Makefile.am): Instead, augment lib_SOURCES.
28348
28349 2009-10-18  Bruno Haible  <bruno@clisp.org>
28350
28351         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28352         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28353         sys/param.h.
28354
28355 2009-10-16  Eric Blake  <ebb9@byu.net>
28356
28357         utimensat: new module
28358         * modules/utimensat: New file.
28359         * lib/utimensat.c (utimensat): Likewise.
28360         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28361         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28362         so we can work around Linux bugs.
28363         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28364         * modules/sys_stat (Makefile.am): Substitute them.
28365         * lib/sys_stat.in.h (utimensat): Declare it.
28366         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28367         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28368         * modules/utimensat-tests: New test.
28369         * tests/test-utimensat.c: Likewise.
28370
28371         utimens: let lutimens work on non-symlinks
28372         * lib/utimens.c (lutimens): Fall back to utimens rather than
28373         failing with ENOSYS, when file is not a symlink.
28374         (utimens): Reduce redirection.
28375         * tests/test-lutimens.h (test_lutimens): Update test to cover
28376         non-symlinks.
28377         * tests/test-utimens.h (test_utimens): Update test to cover
28378         symlinks.
28379         * tests/test-utimens.c (main): Update caller.
28380
28381         utimens: cache whether utimensat syscall works
28382         * lib/utimens.c (utimensat_works_really): New cache variable.
28383         (fdutimens, lutimens): Use it to avoid failing syscall.
28384
28385         test-stat-time, test-utimens: improve portability
28386         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28387         ext4 on alpha, and for cygwin.
28388         * tests/test-utimens-common.h: New file.
28389         (nap): Factor delays into single function.
28390         * tests/test-lutimens.h (test_lutimens): Use new header.
28391         * tests/test-futimens.h (test_futimens): Likewise.
28392         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28393         timestamps to occur from same machine, as was done previously for
28394         test_utimens.
28395         * modules/utimens-tests (Files): Ship new file.
28396         * modules/futimens-tests (Files): Likewise.
28397         Reported in part by Jim Meyering.
28398
28399         sys_stat: sort replacement declarations
28400         * lib/sys_stat.in.h: Sort declarations.
28401         * lib/futimens.c (futimens): Fix typo.
28402
28403 2009-10-15  Jim Meyering  <meyering@redhat.com>
28404
28405         don't let environment settings perturb build
28406         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28407         could cause a configure-time and/or build-time malfunction.
28408         Typically, a configure-time function-in-library test is performed
28409         via code like this:
28410
28411           LIB_VAR=
28412           AC_SUBST([LIB_VAR])
28413           prefix_saved_LIBS=$LIBS
28414             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28415                        [test "$ac_cv_search_FUNC" = "none required" ||
28416                         LIB_VAR=$ac_cv_search_FUNC])
28417           LIBS=$prefix_saved_LIBS
28418
28419         However, in each of the files affected by this change, the LIB_VAR=
28420         initialization was omitted.  Thus, when set in the environment, its
28421         value would propagate into generated Makefiles when FUNC is not found
28422         in LIB_NAME.
28423         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28424         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28426
28427 2009-10-14  Eric Blake  <ebb9@byu.net>
28428
28429         fchdir: avoid infinite recursion in mingw
28430         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28431         recursing.
28432
28433         test-stat-time: port to mingw
28434         * tests/test-stat-time.c (force_unlink): Return a value.
28435         (test_ctime) [W32]: Fix compilation error.
28436         (nap): Don't call usleep with too large an argument.  Use
28437         force_unlink.
28438         * doc/pastposix-functions/usleep.texi (usleep): Document the
28439         portability issue.
28440
28441 2009-10-13  Jim Meyering  <meyering@redhat.com>
28442
28443         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28444         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28445         * modules/pipe-filter-ii: Likewise.
28446         * modules/sys_socket-tests: Likewise.
28447         * modules/tsearch-tests: Likewise.
28448         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28449         (check): Depend on it.
28450
28451 2009-10-12  Eric Blake  <ebb9@byu.net>
28452
28453         utimens-tests: port to NFS file systems
28454         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28455         comparisons to avoid spurious failures from timestamp drift
28456         between NFS machines.
28457
28458 2009-10-12  Eric Blake  <ebb9@byu.net>
28459
28460         stat-time-tests: minor cleanups
28461         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28462         * tests/test-stat-time.c (nap): Separate assignment from call.
28463         Suggested by Paolo Bonzini and Bruno Haible.
28464
28465         sys_stat: guarantee struct timespec
28466         * lib/sys_stat.in.h (includes): Always include <time.h>
28467         * modules/sys_stat (Depends-on): Add time.
28468         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28469         mode_t permission values.
28470         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28471         get at subsecond timestamps.
28472
28473 2009-10-10  Eric Blake  <ebb9@byu.net>
28474
28475         futimens: new module
28476         * modules/futimens: New file.
28477         * lib/futimens.c (futimens): Likewise.
28478         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28479         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28480         we can work around Linux bugs.
28481         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28482         * modules/sys_stat (Makefile.am): Substitute them.
28483         * lib/sys_stat.in.h (futimens): Declare it.
28484         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28485         * doc/posix-functions/futimens.texi (futimens): Likewise.
28486         * modules/futimens-tests: New test.
28487         * tests/test-futimens.c: Likewise.
28488
28489         utimens: introduce fdutimens
28490         * lib/utimens.h (fdutimens): New prototype.
28491         * lib/utimens.c (gl_futimens): Move guts...
28492         (fdutimens): ...to new interface.
28493         * tests/test-utimens.c (do_fdutimens): Use it.
28494
28495         utimens: add UTIME_NOW and UTIME_OMIT support
28496         * lib/utimens.c (validate_timespec, update_timespec): New helper
28497         functions.
28498         (gl_futimens, lutimens): Use them.
28499         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28500         stdbool, sys_stat.
28501         (Link): Mention resulting library dependency.
28502         * modules/utimecmp (Link): Likewise.
28503         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28504         (Makefile.am): Pick up library dependency.
28505         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28506         definition.
28507         * tests/test-sys_stat.c: Test the definitions.
28508         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28509         * NEWS: Document library dependency.
28510
28511         utimecmp: support symlink timestamps
28512         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28513         hashing when possible.  Use pathconf when available.
28514         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28515         * modules/utimecmp (Depends-on): Add lstat.
28516
28517         utimens: add lutimens interface
28518         * lib/utimens.c (lutimens): New function.
28519         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28520         * lib/utimens.h (lutimens): Declare new interface.
28521         * tests/test-utimens.c (main): Enhance test.
28522         * tests/test-lutimens.h (test_lutimens): New file.
28523         * modules/utimens-tests (Files): Distribute it.
28524         (Depends-on): Add symlink.
28525         (configure.ac): Check for usleep.
28526
28527         utimens: validate futimens usage
28528         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28529         fewer syscalls on failure later on.  Avoid compiler warning on
28530         mingw.
28531         * modules/utimens (Depends-on): Add dup2.
28532
28533         utimens: add test
28534         * modules/utimens-tests: New test.
28535         * tests/test-utimens.h: New file.
28536         * tests/test-futimens.h: Likewise.
28537         * tests/test-utimens.c: Likewise.
28538
28539         doc: mention timestamp portability issues
28540         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28541         instead.
28542         * doc/posix-functions/utime.texi (utime): Likewise.
28543         * doc/posix-functions/utimes.texi (utimes): Likewise.
28544         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28545         instead.
28546         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28547         module.
28548         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28549         Mention weakness with symlink timestamps.
28550         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28551         to utimensat/futimens instead.
28552         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28553
28554         test-dup2: enhance test
28555         * tests/test-dup2.c (main): Also check AT_FDCWD.
28556
28557         test-stat-time: avoid more spurious failures
28558         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28559         xfs; and avoid race if the two timestamps cross quantization edge.
28560
28561         relocatable: prefer 'file system' over 'filesystem'
28562         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28563         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28564         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28565         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28566         * lib/relocatable.c (compute_curr_prefix): Likewise.
28567
28568 2009-10-10  Jim Meyering  <meyering@redhat.com>
28569
28570         stat-time-tests: check for the usleep function
28571         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28572
28573 2009-10-10  Bruno Haible  <bruno@clisp.org>
28574
28575         * modules/xnanosleep: Put the Link section after the Include section.
28576
28577 2009-10-09  Eric Blake  <ebb9@byu.net>
28578
28579         dup2: work around FreeBSD 6.1 bug
28580         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28581         * doc/posix-functions/dup2.texi (dup2): Document it.
28582         Reported by Nelson H. F. Beebe and Jim Meyering.
28583
28584         test-stat-time: port to buggy NFS clients
28585         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28586         (test_ctime): Also skip test if mtime and ctime are skewed.
28587
28588         maint: prefer 'file system' over 'filesystem'
28589         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28590         * doc/posix-functions/lstat.texi (lstat): Likewise.
28591         * lib/file-has-acl.c (file_has_acl): Likewise.
28592         * lib/fwriteerror.c [TEST]: Likewise.
28593         * tests/test-areadlink.h (test_areadlink): Likewise.
28594         * tests/test-areadlinkat-with-size.c (main): Likewise.
28595         * tests/test-areadlinkat.c (main): Likewise.
28596         * tests/test-canonicalize-lgpl.c (main): Likewise.
28597         * tests/test-canonicalize.c (main): Likewise.
28598         * tests/test-fstatat.c (main): Likewise.
28599         * tests/test-linkat.c (main): Likewise.
28600         * tests/test-lstat.h (test_lstat_func): Likewise.
28601         * tests/test-mkdir.h (test_mkdir): Likewise.
28602         * tests/test-readlink.h (test_readlink): Likewise.
28603         * tests/test-remove.c (main): Likewise.
28604         * tests/test-rename.h (test_rename): Likewise.
28605         * tests/test-renameat.c (main): Likewise.
28606         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28607         * tests/test-symlink.h (test_symlink): Likewise.
28608         * tests/test-symlinkat.c (main): Likewise.
28609         * tests/test-unlink.h (test_unlink_func): Likewise.
28610         * tests/test-unlinkat.c (main): Likewise.
28611
28612         maint: make realtime library usage explicit
28613         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28614         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28615         * modules/settime (Link): Likewise.
28616         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28617
28618         test-stat-time: speed up execution
28619         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28620         warning on mingw.
28621         (nap): New helper function.
28622         (prepare_test): Use it to reduce sleep time.
28623         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28624         execution.
28625         * modules/stat-time-tests (configure.ac): Check for usleep.
28626
28627 2009-10-09  Jim Meyering  <meyering@redhat.com>
28628
28629         selinux-h: always use getfilecon wrappers
28630         * lib/getfilecon.c: New file.
28631         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28632         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28633         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28634         (fgetfilecon): Provide a stub.
28635         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28636         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28637         file unconditionally.
28638         When <selinux/selinux.h> is found, arrange to use wrappers.
28639         * modules/selinux-h (Files): Add getfilecon.c.
28640         (Makefile.am): Substitute include-next-related bits
28641         into the now-always-generated selinux/selinux.h file.
28642         * doc/glibc-functions/lgetfilecon.texi: New file.
28643         * doc/glibc-functions/fgetfilecon.texi: New file.
28644         * doc/glibc-functions/getfilecon.texi: New file.
28645         * doc/glibc-functions/getfilecon-desc.texi: New file.
28646         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28647         which to pull in the new files.
28648         * MODULES.html.sh (Misc): Add selinux-h.
28649
28650 2009-10-08  Jim Meyering  <meyering@redhat.com>
28651
28652         unistd: fix comment typo
28653         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28654
28655 2009-10-08  Eric Blake  <ebb9@byu.net>
28656
28657         areadlink: use SIZE_MAX consistently
28658         * modules/areadlink (Depends-on): Add stdint.
28659         * modules/areadlink-with-size (Depends-on): Likewise.
28660         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28661         gives NULL; drop sys/types, since unistd gives size_t; and add
28662         stdint for SIZE_MAX.
28663         (SIZE_MAX): Rely on headers.
28664         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28665         and add stdint.
28666         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28667         (SIZE_MAX): Likewise.
28668         (INITIAL_BUF_SIZE): Turn into enum.
28669         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28670
28671 2009-10-08  Jim Meyering  <meyering@redhat.com>
28672
28673         areadlinkat: avoid compilation failure
28674         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28675         Fix typo in comment.
28676
28677 2009-10-07  Eric Blake  <ebb9@byu.net>
28678
28679         areadlinkat-with-size: new module
28680         * modules/areadlinkat-with-size: New module.
28681         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28682         * lib/areadlink.h (areadlinkat): Declare it.
28683         * MODULES.html.sh (File system functions): Mention it.
28684         * modules/areadlinkat-with-size-tests: New test.
28685         * tests/test-areadlinkat-with-size.c: New file.
28686
28687         xreadlinkat: new module
28688         * modules/xreadlinkat: New module.
28689         * lib/xreadlinkat.c (xreadlinkat): New file.
28690         * lib/xreadlink.h (xreadlinkat): Declare it.
28691         * MODULES.html.sh (File system functions): Mention it.
28692
28693         areadlinkat: new module
28694         * lib/at-func.c (FUNC_FAIL): New define.
28695         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28696         * modules/areadlinkat: New module.
28697         * lib/linkat.c (areadlinkat): Move...
28698         * lib/areadlinkat.c (areadlinkat): ...to new file.
28699         * lib/areadlink.h (areadlinkat): Declare it.
28700         * modules/linkat (Depends-on): Add areadlinkat.
28701         * MODULES.html.sh (File system functions): Mention it.
28702         * modules/areadlinkat-tests: New test.
28703         * tests/test-areadlinkat.c: New file.
28704
28705         areadlink, areadlink-with-size: add tests
28706         * modules/areadlink-tests: New test.
28707         * modules/areadlink-with-size-tests: Likewise.
28708         * tests/test-areadlink.h: New file.
28709         * tests/test-areadlink.c: Likewise.
28710         * tests/test-areadlink-with-size.c: Likewise.
28711
28712         maint: minor cleanups
28713         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28714         _UNUSED_PARAMETER_ instead.
28715         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28716         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28717         * modules/linkat-tests (Files): Distribute test-link.h.
28718
28719         openat, utimens: whitespace cleanup
28720         * lib/openat.c: Prefer space throughout, rather than mix of 8
28721         spaces vs. tabs.
28722         * lib/at-func.c: Likewise.
28723         * lib/utimens.c: Likewise.
28724
28725         openat: avoid using wrong fd
28726         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28727         working directory chooses same fd.
28728         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28729
28730         mkdir, mkdirat: fix cygwin 1.5.x bug
28731         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28732         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28733         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28734         bug.
28735         (gl_PREREQ_MKDIR): Delete unused macro.
28736         * modules/mkdir (Files): Track file rename.
28737         (configure.ac): Update macro name.
28738         * modules/openat (Depends-on): Add mkdir.
28739         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28740
28741         mkdir, mkdirat: add tests
28742         * modules/mkdir-tests: New test.
28743         * tests/test-mkdir.h: New file.
28744         * tests/test-mkdir.c: Likewise.
28745         * tests/test-mkdirat.c: Likewise.
28746         * modules/openat-tests (Files): Add new files.
28747         (Makefile.am): Run new test.
28748
28749 2009-10-06  Eric Blake  <ebb9@byu.net>
28750
28751         doc: tweak *at function documentation
28752         * doc/posix-functions/faccessat.texi (faccessat): Mention
28753         known issue with replacement.
28754         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28755         * doc/posix-functions/linkat.texi (linkat): Likewise.
28756         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28757         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28758         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28759         * doc/posix-functions/renameat.texi (renameat): Likewise.
28760         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28761
28762         openat: fix GNU/Hurd bug in unlinkat
28763         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28764         broken.
28765         * doc/posix-functions/unlink.texi (unlink): Document this.
28766         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28767
28768         fdopendir: fix GNU/Hurd bug
28769         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28770         allowing non-directory fds.
28771         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28772         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28773         * modules/dirent (Makefile.am): Substitute it.
28774         * lib/dirent.in.h (fdopendir): Declare replacement.
28775         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28776         * tests/test-fdopendir.c (main): Test something other than
28777         /dev/null, since on Hurd that behaves like a directory.
28778
28779         test-symlink: port to GNU/Hurd
28780         * tests/test-symlink.h (test_symlink): Relax expected errno.
28781
28782         doc: tweak more cygwin information
28783         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28784         now compatible with glibc.
28785         * doc/posix-functions/getopt.texi (getopt): Likewise.
28786
28787         getopt-gnu: add another test
28788         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28789         guarantee behavior relied on by m4.
28790         * tests/test-getopt.c (main): Use it.
28791         * modules/getopt-posix-tests (Depends-on): Add setenv.
28792         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28793
28794         getopt: fix compilation on darwin
28795         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28796         include.
28797         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28798         Reported by Ludovic Courtès.
28799
28800 2009-10-06  Bruno Haible  <bruno@clisp.org>
28801
28802         * modules/size_max (Description): Discourage its use.
28803         Reported by Simon Josefsson.
28804
28805 2009-10-06  Jim Meyering  <meyering@redhat.com>
28806
28807         linkat: avoid compilation failure
28808         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28809
28810 2009-10-05  Eric Blake  <ebb9@byu.net>
28811
28812         linkat: support Linux 2.6.17
28813         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28814         linkat on Linux, but allow cache variable override.
28815         * lib/linkat.c (rpl_linkat): Define override.
28816         * modules/linkat (Depends-on): Add symlinkat.
28817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28818         * modules/unistd (Makefile.am): Substitute it.
28819         * lib/unistd.in.h (linkat): Declare replacement.
28820         Reported by Pádraig Brady.
28821
28822         quotearg: port test to systems with C.UTF-8 locale
28823         * tests/test-quotearg.c (struct result_strings): Add another
28824         member, differentiating between C.ASCII and C.UTF-8 handling.
28825         (compare_strings): Add parameter.
28826         (main): Adjust all callers.
28827
28828         getopt: avoid clash with FreeBSD _getopt_internal
28829         * lib/getopt.in.h (_getopt_internal): Override the name.
28830         * lib/getopt_int.h (includes): Pick up any overrides.
28831         Reported by Reuben Thomas.
28832
28833         hash: allow C89 compilation
28834         * lib/hash.c (check_tuning): Move declaration before statement.
28835         Reported by Reuben Thomas.
28836
28837 2009-10-05  Karl Berry  <karl@gnu.org>
28838
28839         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28840
28841 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28842             Bruno Haible  <bruno@clisp.org>
28843
28844         * lib/uname.c (uname): Use a table-driven algorithm to compute
28845         Windows NT versions.
28846
28847 2009-10-04  Bruno Haible  <bruno@clisp.org>
28848
28849         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28850         program_invocation_short_name.
28851         * modules/progname (configure.ac): Test for presence of
28852         program_invocation_short_name.
28853         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28854
28855 2009-10-04  Bruno Haible  <bruno@clisp.org>
28856
28857         * lib/progname.c (set_program_name): Fix comment.
28858         Reported by Jim Meyering.
28859
28860 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28861             Bruno Haible  <bruno@clisp.org>
28862
28863         * lib/uname.c: Include <string.h>.
28864         (uname): Do only one call to GetVersionEx in the common case.
28865
28866 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28867             Bruno Haible  <bruno@clisp.org>
28868
28869         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28870         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28871         (uname): Add support for Windows CE and various non-x86 CPU types.
28872
28873 2009-10-03  Bruno Haible  <bruno@clisp.org>
28874
28875         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28876         invocation to tests/configure.ac.
28877         Reported by Ian Beckwith <ianb@erislabs.net>.
28878
28879 2009-10-02  Eric Blake  <ebb9@byu.net>
28880
28881         fchdir: avoid compiler warning
28882         * lib/fchdir.c (canonicalize_file_name)
28883         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28884
28885         test-open: support mingw errno values
28886         * tests/test-open.h (test_open): Relax test.
28887         * tests/test-fopen.h (test_fopen): Likewise.
28888         * tests/test-openat-safer.c (main): Likewise.
28889
28890         open: fix opening directory on mingw
28891         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28892
28893         test-open: on GNU/Hurd, /dev/null is a directory
28894         * tests/test-fopen.h (main): Rename...
28895         (test_fopen): ...to this.  Use a guaranteed non-directory when
28896         confirming open behavior on trailing slash.
28897         * tests/test-openat-safer.c (main): Likewise.
28898         * tests/test-open.h (main): Likewise....
28899         (test_open): ...to this.
28900         * tests/test-fopen.c (main): Adjust caller.
28901         * tests/test-fopen-safer.c (main): Likewise.
28902         * tests/test-open.c (main): Likewise.
28903         * tests/test-fcntl-safer.c (main): Likewise.
28904         Reported by Samuel Thibault.
28905
28906         rename, fchdir: don't ignore chdir failure
28907         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28908         * lib/rename.c (rpl_rename) [W32]: Likewise.
28909         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28910         an empty destination directory if source cannot be renamed,
28911         although there is still possibility for failure.
28912         * doc/posix-functions/rename.texi (rename): Document the race.
28913         Reported by Jim Meyering.
28914
28915         maint: cleanup whitespace in recent commits
28916         * lib/rename.c (rpl_rename): Remove tabs.
28917         * tests/test-link.h (test_link): Likewise.
28918         * lib/fchdir.c (get_name): Likewise.
28919         Reported by Jim Meyering.
28920
28921 2009-10-02  Ben Pfaff  <blp@gnu.org>
28922
28923         relocatable-prog-wrapper: Add missing dependency on
28924         double-slash-root.
28925         * modules/relocatable-prog-wrapper: Add dependency.
28926         Reported by Ian Beckwith <ianb@erislabs.net>.
28927
28928 2009-10-02  Eric Blake  <ebb9@byu.net>
28929
28930         renameat: fix Solaris bugs
28931         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28932         needed fixing.
28933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28934         * modules/stdio (Makefile.am): Substitute it.
28935         * lib/stdio.in.h (renameat): Declare replacement.
28936         * lib/renameat.c (rpl_renameat): Implement fix.
28937
28938         renameat: new module
28939         * modules/renameat: New file.
28940         * lib/renameat.c (renameat): Likewise.
28941         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28943         * modules/stdio (Makefile.am): Substitute them.
28944         * lib/stdio.in.h (renameat): Declare it.
28945         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28946         * doc/posix-functions/renameat.texi (renameat): Likewise.
28947         * modules/renameat-tests: New test.
28948         * tests/test-renameat.c: Likewise.
28949
28950         rename: fix mingw bugs
28951         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28952         directory overwrite bugs.
28953
28954         rename: fix another cygwin 1.5 bug
28955         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28956         checks.
28957         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28958         unnecessary cygwin workarounds.  Also work around bug with moving
28959         full directory onto an empty one.
28960         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28961
28962         rename-dest-slash: merge into rename module
28963         * modules/rename-dest-slash (Status): Mark obsolete.
28964         (Depends-on): Add rename.
28965         (Files): Let rename do it all.
28966         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28967         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28968         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28969         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28970         * lib/rename.c (rpl_rename): Update comments.
28971
28972         rename: fix cygwin 1.5.x bugs
28973         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28974         * lib/rename.c (rpl_rename): Work around them.
28975         * modules/rename (Depends-on): Add same-inode.
28976
28977         rename: fix Solaris 10 bug
28978         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28979         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28980         was the only bug.
28981
28982         rename: fix Solaris 9 bug
28983         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28984         on non-directory.  Avoid calling exit.
28985         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28986         strdup.
28987         * modules/rename-tests (Depends-on): Drop lstat.
28988         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28989         (gl_PREREQ_RENAME): Delete unused macro.
28990
28991         rename-dest-slash: fix NetBSD bug
28992         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28993         links.
28994         * modules/rename-dest-slash (Depends-on): Add same-inode.
28995
28996         rename-tests: new test, exposes several platform bugs
28997         * modules/rename-tests: New file.
28998         * tests/test-rename.h: Likewise.
28999         * tests/test-rename.c: Likewise.
29000         * doc/posix-functions/rename.texi (rename): Improve documentation,
29001         including bugs that will eventually be fixed in gnulib.
29002
29003 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29004
29005         * lib/uname.c: Include <stdlib.h>
29006         (uname): Assume version info is available.
29007
29008 2009-10-02  Jim Meyering  <meyering@redhat.com>
29009
29010         gnu-web-doc-update: correct --help output
29011         * build-aux/gnu-web-doc-update: Make --help output relevant.
29012
29013         gnu-web-doc-update: add standard options
29014         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29015
29016         gnu-web-doc-update: New module.
29017         Use this script to automatically update the on-line web documentation
29018         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29019         * modules/gnu-web-doc-update: New file, from coreutils.
29020         * build-aux/gnu-web-doc-update: New script.
29021
29022 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29023
29024         link: LoadLibrary is not needed.
29025         * lib/link.c: Use GetModuleHandle.
29026
29027 2009-10-01  Eric Blake  <ebb9@byu.net>
29028
29029         getopt: bump serial number
29030         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29031         change.
29032
29033         tests: tighten link, rmdir, and remove tests
29034         * tests/test-link.h (includes): No need to use <config.h> here.
29035         Clean up if directory hard link was created, otherwise test for
29036         trailing '.'.
29037         * tests/test-linkat.c (main): Simplify.
29038         * tests/test-remove.c (main): Enhance test for trailing '.'.
29039         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29040
29041 2009-10-01  Jim Meyering  <meyering@redhat.com>
29042
29043         maint.mk: requiring "make major" was annoying, for a "minor" release.
29044         What is intended is "stable", to contrast with alpha and beta,
29045         so require "make stable", not "make major".
29046         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29047         (get_tool_versions): Likewise.
29048         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29049
29050 2009-09-30  Ben Pfaff  <blp@gnu.org>
29051
29052         Fix broken build of replacement for Windows tmpfile().
29053         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29054         flags argument added along with the 'mkostemp' module.
29055
29056 2009-09-28  Bruno Haible  <bruno@clisp.org>
29057
29058         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29059         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29060         to 'remove_elt'.
29061         (gl_list_remove): Update.
29062         * lib/gl_list.c (gl_list_remove): Update.
29063         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29064         to 'remove_elt'.
29065         (gl_oset_remove): Update.
29066         * lib/gl_list.c (gl_oset_remove): Update.
29067         Reported by Eric Blake.
29068
29069 2009-09-28  Eric Blake  <ebb9@byu.net>
29070
29071         doc: mention yet more cygwin 1.7 status
29072         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29073         cygwin.
29074         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29075         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29076
29077         argp: fix test failure
29078         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29079         that are not upper-case.  Pass correct range to tolower.
29080
29081 2009-09-27  Jim Meyering  <meyering@redhat.com>
29082
29083         test-yesno: work around sparc-dash here-document infelicity
29084         Without this change, the literal \177 byte in a here document
29085         would make dash 0.5.5.1-3 access uninitialized memory.
29086         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29087         Instead, use a marker, "@", and filter through tr to create the desired
29088         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29089
29090 2009-09-27  Bruno Haible  <bruno@clisp.org>
29091
29092         Disable untested support for new flavours of ACLs on AIX.
29093         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29094         progress.
29095         * lib/set-mode-acl.c (qset_acl): Likewise.
29096
29097 2008-12-07  Bruno Haible  <bruno@clisp.org>
29098
29099         Add support for new flavours of ACLs on AIX. (Untested.)
29100         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29101         (file_has_acl): Add support for newer AIX.
29102         * lib/set-mode-acl.c (qset_acl): Likewise.
29103         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29104         Rainer Tammer <tammer@tammer.net>.
29105
29106 2009-09-26  Eric Blake  <ebb9@byu.net>
29107
29108         argp: fix compilation of getopt
29109         * lib/getopt.in.h (includes): Use different guard than glibc.
29110         Reported by Sergey Poznyakoff.
29111
29112         doc: mention more cygwin 1.7 status
29113         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29114         bug.
29115         * doc/posix-functions/execl.texi (execl): Likewise.
29116         * doc/posix-functions/execle.texi (execle): Likewise.
29117         * doc/posix-functions/execlp.texi (execlp): Likewise.
29118         * doc/posix-functions/execv.texi (execv): Likewise.
29119         * doc/posix-functions/execve.texi (execve): Likewise.
29120         * doc/posix-functions/execvp.texi (execvp): Likewise.
29121         * doc/glibc-functions/canonicalize_file_name.texi
29122         (canonicalize_file_name): Cygwin 1.7 now provides this.
29123         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29124         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29125         on AT_SYMLINK_NOFOLLOW.
29126
29127 2009-09-24  Eric Blake  <ebb9@byu.net>
29128
29129         test-linkat: make test more robust
29130         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29131
29132         getopt: fix inclusion guards for cygwin
29133         * modules/getopt-posix (Depends-on): Add include-next.
29134         (Makefile.am): Substitute more items in replacement header.
29135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29136         <getopt.h>.
29137         * lib/getopt.in.h (includes): Use split inclusion guard, and
29138         prefer <getopt.h> over include <unistd.h> when one is present.
29139         (option): Also override name of 'struct option'.
29140
29141         same-inode: revert prior change; it is not yet ready
29142         * NEWS: Undo mention of this change.
29143         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29144         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29145         * lib/cycle-check.c (cycle_check): Likewise.
29146         * lib/same.c (same_name): Likewise.
29147         * lib/at-func2.c (at_func2): Likewise.
29148
29149 2009-09-23  Eric Blake  <ebb9@byu.net>
29150
29151         linkat: new module
29152         * modules/linkat: New file.
29153         * lib/at-func2.c (at_func2): Likewise.
29154         * lib/linkat.c (linkat): Likewise.
29155         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29156         * lib/openat-priv.h (at_func2): Add declaration.
29157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29158         * modules/unistd (Makefile.am): Substitute them.
29159         * lib/unistd.in.h (linkat): Declare it.
29160         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29161         * doc/posix-functions/linkat.texi (linkat): Likewise.
29162         * doc/posix-functions/link.texi (link): Tweak wording.
29163         * tests/test-link.c (main): Move guts...
29164         * tests/test-link.h (test_link): ...into new file.
29165         * modules/linkat-tests: New test.
29166         * tests/test-linkat.c: Likewise.
29167         * modules/link-tests (Files): Ship new file.
29168         (Depends-on): Add stdbool.
29169
29170         dirname: add library-safe mdir_name
29171         * lib/dirname.h (mdir_name): New prototype.
29172         * lib/dirname.c (dir_name): Move guts...
29173         (mdir_name): ...to new function that avoids xalloc_die.
29174
29175         fchdir: another mingw fix
29176         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29177         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29178         on mingw (where it has not yet been ported), and make it optional
29179         elsewhere.
29180         (_gl_register_fd): Use it.
29181
29182         same-inode: make SAME_INODE tri-state, to port to mingw
29183         * NEWS: Mention this change.
29184         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29185         st_ino always being 0.
29186         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29187         * lib/cycle-check.c (cycle_check): Likewise.
29188         * lib/same.c (same_name): Likewise.
29189
29190         lstat: avoid mingw compilation error
29191         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29192         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29193         lstat ourselves.
29194         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29195         was adequate.
29196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29197         the checks for lstat.
29198         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29199
29200         link: fix test failure on Solaris 9
29201         * lib/link.c (rpl_link): Don't assume link will catch bogus
29202         trailing slash on source.
29203
29204         test-symlinkat: enhance test
29205         * tests/test-readlink.c (main): Move guts...
29206         * tests/test-readlink.h (test_readlink): ...into new file.
29207         * tests/test-symlink.c (main): Move guts...
29208         * tests/test-symlink.h (test_symlink): ...into new file.
29209         * tests/test-symlinkat.c (main): Use new files for further
29210         coverage.
29211         (do_symlink, do_readlink): New helper functions.
29212         * modules/symlink-tests (Files): Ship new file.
29213         (Depends-on): Add stdbool.
29214         * modules/readlink-tests (Files): Ship new file.
29215         (Depends-on): Add stdbool.
29216         * modules/symlinkat-tests (Files): Use new files.
29217
29218 2009-09-23  Eric Blake  <ebb9@byu.net>
29219
29220         readlink: document portability issue with symlink length
29221         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29222         systems have bogus st_size on symlinks, and mention the
29223         areadlink-with-size module.
29224         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29225         * doc/posix-functions/readlink.texi (readlink): Mention the
29226         areadlink module, and ERANGE failure.
29227         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29228         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29229
29230         readlink: fix Solaris 9 bug with trailing slash
29231         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29232         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29233         * doc/posix-functions/readlink.texi (readlink): Document this.
29234         * modules/readlink-tests: New test.
29235         * tests/test-readlink.c: Likewise.
29236
29237         readlink: fix cygwin 1.5.x bug with return type
29238         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29239         * lib/unistd.in.h (readlink): Use ssize_t.
29240         * lib/readlink.c (readlink): Likewise.
29241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29242         * modules/unistd (Makefile.am): Substitute it.
29243         * lib/unistd.in.h (readlink): Declare replacement.
29244         * doc/posix-functions/readlink.texi (readlink): Document this.
29245
29246         symlink: use throughout gnulib
29247         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29248         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29249         symlink is not used.
29250         * modules/symlinkat (Depends-on): Add symlink.
29251         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29252         * modules/canonicalize-tests (Depends-on): Likewise.
29253         * modules/lstat-tests (Depends-on): Likewise.
29254         * modules/openat-tests (Depends-on): Likewise.
29255         * modules/remove-tests (Depends-on): Likewise.
29256         * modules/rmdir-tests (Depends-on): Likewise.
29257         * modules/unlink-tests (Depends-on): Likewise.
29258         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29259         * tests/test-canonicalize.c (symlink): Likewise.
29260         * tests/test-fstatat.c (symlink): Likewise.
29261         * tests/test-lstat.c (symlink): Likewise.
29262         * tests/test-remove.c (symlink): Likewise.
29263         * tests/test-rmdir.c (symlink): Likewise.
29264         * tests/test-unlink.c (symlink): Likewise.
29265         * tests/test-unlinkat.c (symlink): Likewise.
29266
29267         symlink: new module, for Solaris 9 bug
29268         * modules/symlink: New file.
29269         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29270         * lib/symlink.c: Likewise.
29271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29272         * modules/unistd (Makefile.am): Substitute them.
29273         * lib/unistd.in.h (symlink): Declare replacement.
29274         * MODULES.html.sh (File system functions): Mention it.
29275         * doc/posix-functions/symlink.texi (symlink): Likewise.
29276         * modules/symlink-tests: New test.
29277         * tests/test-symlink.c: Likewise.
29278
29279 2009-09-23  Bruno Haible  <bruno@clisp.org>
29280
29281         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29282         when needed.
29283         Test case: gnulib-tool --import --with-tests atexit inttypes.
29284         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29285
29286 2009-09-23  Bruno Haible  <bruno@clisp.org>
29287
29288         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29289         subcommand, not in a subshell.
29290
29291 2009-09-22  Eric Blake  <ebb9@byu.net>
29292
29293         unistd: sort replacement declarations
29294         * lib/unistd.in.h: Sort declarations.
29295
29296         open, openat: minor optimization
29297         * lib/open.c (open): If open succeeded, len is non-zero.
29298         * lib/openat.c (rpl_openat): Likewise.
29299
29300         link-follow: ensure correct result
29301         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29302         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29303         distinguish between possible failures.
29304
29305 2009-09-21  Eric Blake  <ebb9@byu.net>
29306
29307         fts: avoid compiler warning
29308         * lib/fts.c (dirent_inode_sort_may_be_useful)
29309         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29310
29311 2009-09-19  Bruno Haible  <bruno@clisp.org>
29312
29313         * lib/progreloc.c (canonicalize_file_name): New declaration.
29314
29315 2009-09-19  Eric Blake  <ebb9@byu.net>
29316
29317         link: fix quoting
29318         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29319
29320         openat: fix openat bugs on Solaris 9
29321         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29322         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29323         * modules/openat (Depends-on): Add open.
29324         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29325         * modules/fcntl-h (Makefile.am): Substitute it.
29326         * lib/fcntl.in.h (openat): Declare replacement.
29327         * doc/posix-functions/openat.texi (openat): Document this.
29328
29329         openat: move fstatat and unlinkat into correct files
29330         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29331         compiled.
29332         * lib/openat.c (fstatat, unlinkat): Move...
29333         * lib/fstatat.c (fstatat): ...into correct files.
29334         * lib/unlinkat.c (unlinkat): Likewise.
29335
29336         openat: fix unlinkat bugs on Solaris 9
29337         * lib/unlinkat.c (unlinkat): New file.
29338         * modules/openat (Depends-on): Add unlink.
29339         (Files): Distribute it.
29340         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29341         trailing slash behavior is broken.
29342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29343         * modules/unistd (Makefile.am): Substitute it.
29344         * lib/unistd.in.h (unlinkat): Declare replacement.
29345         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29346
29347         openat: fix fstatat bugs on Solaris 9
29348         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29349         stat.
29350         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29351
29352         test-unlinkat: enhance test, to expose Solaris 9 bug
29353         * tests/test-unlink.c (main): Factor guts...
29354         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29355         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29356         * tests/test-rmdir.c (main): Adjust caller.
29357         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29358         (unlinker): New helper function.
29359         (rmdirat): Enhance check.
29360         * modules/rmdir-tests (Depends-on): Add stdbool.
29361         * modules/unlink-tests (Depends-on): Likewise.
29362         (Files): Add test-unlink.h.
29363         * modules/openat-tests (Files): Likewise.
29364         (Depends-on): Add unlinkdir.
29365
29366         test-fstatat: new test, to expose Solaris 9 bugs
29367         * tests/test-stat.c (main): Factor guts...
29368         * tests/test-stat.h (test_stat_func): ...into new file.
29369         * tests/test-lstat.c (main): Factor guts...
29370         * tests/test-lstat.h (test_lstat_func): ...into new file.
29371         * tests/test-fstatat.c: New file.
29372         * modules/stat-tests (Files): Add test-stat.h.
29373         * modules/lstat-tests (Files): Add test-lstat.h.
29374         (Depends-on): Add stdbool.
29375         * modules/openat-tests (Depends-on): Add pathmax.
29376         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29377         (Makefile.am): Run new test.
29378
29379         remove: new module, for mingw and Solaris 9 bugs
29380         * modules/remove: New file.
29381         * lib/remove.c: Likewise.
29382         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29384         * modules/stdio (Makefile.am): Use them.
29385         * lib/stdio.in.h (remove): Declare replacement.
29386         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29387         * doc/posix-functions/remove.texi (remove): Likewise.
29388         * modules/remove-tests: New test.
29389         * tests/test-remove.c: Likewise.
29390
29391         unlink: new module, for Solaris 9 bug
29392         * modules/unlink: New file.
29393         * lib/unlink.c: Likewise.
29394         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29396         * modules/unistd (Makefile.am): Use them.
29397         * lib/unistd.in.h (stat): Declare replacement.
29398         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29399         * doc/posix-functions/unlink.texi (unlink): Likewise.
29400         * modules/unlink-tests: New test.
29401         * tests/test-unlink.c: Likewise.
29402
29403         lstat: fix Solaris 9 bug
29404         * lib/lstat.c (lstat): Also check for trailing slash on
29405         non-symlink, non-directories.  Use stat module to simplify logic.
29406         * doc/posix-functions/lstat.texi (lstat): Document it.
29407         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29408         (configure.ac): Check for symlink.
29409         * tests/test-lstat.c (main): Add more tests.
29410
29411         stat: add as dependency to other modules
29412         * modules/chown (Depends-on): Add stat.
29413         * modules/euidaccess (Depends-on): Likewise.
29414         * modules/fchdir (Depends-on): Likewise.
29415         * modules/isdir (Depends-on): Likewise.
29416         * modules/link (Depends-on): Likewise.
29417         * modules/lstat (Depends-on): Likewise.
29418         * modules/mkdir-p (Depends-on): Likewise.
29419         * modules/modechange (Depends-on): Likewise.
29420         * modules/open (Depends-on): Likewise.
29421         * modules/readlink (Depends-on): Likewise.
29422         * modules/same (Depends-on): Likewise.
29423
29424         stat: fix Solaris 9 bug
29425         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29426         slash.
29427         * lib/stat.c (rpl_stat): Work around it.
29428         * doc/posix-functions/stat.texi (stat): Update documentation.
29429
29430         stat: new module, for mingw bug
29431         * modules/stat: New file.
29432         * lib/stat.c: Likewise.
29433         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29434         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29435         * modules/sys_stat (Makefile.am): Use them.
29436         * lib/sys_stat.in.h (stat): Declare replacement.
29437         * lib/openat.c (fstatat): Deal with lstat and stat being function
29438         macros.
29439         * modules/openat (Depends-on): Add inline.
29440         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29441         * doc/posix-functions/stat.texi (stat): Likewise.
29442         * modules/stat-tests: New test.
29443         * tests/test-stat.c: Likewise.
29444
29445 2009-09-19  Jim Meyering  <meyering@redhat.com>
29446
29447         syntax-check: detect unnecessary inclusion of canonicalize.h
29448         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29449
29450 2009-09-19  Eric Blake  <ebb9@byu.net>
29451
29452         canonicalize-lgpl: adjust clients to use correct header
29453         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29454         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29455         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29456         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29457         * lib/progreloc.c (includes): Likewise.
29458
29459 2009-09-19  Jim Meyering  <meyering@redhat.com>
29460
29461         test-posixtm.c: correct a comment
29462         * tests/test-posixtm.c: Correct first-line comment.
29463         Spotted by Eric Blake.
29464
29465 2009-09-16  Jim Meyering  <meyering@redhat.com>
29466
29467         posixtm-tests: make T const-correct; add a test case
29468         * tests/test-posixtm.c (T): Declare const.
29469         Add a test for -(2^31+1).
29470         Remove useless can-succeed-only-in-2002 test.
29471
29472         posixtm-tests: adjust the sole failing test
29473         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29474         expected output matches what mktime now produces.  Cross-checked via
29475         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29476
29477         posixtm: move #ifdef'd tests into a new module
29478         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29479         * tests/test-posixtm.c: ... this new file.
29480         * modules/posixtm-tests: New module.
29481
29482 2009-09-19  Eric Blake  <ebb9@byu.net>
29483
29484         openat: simplify use of at-func.c
29485         * lib/at-func.c (includes): Include prerequisites here, to
29486         simplify requirements on client files.
29487         * lib/openat-priv.h: Add double-inclusion guard.
29488         * lib/faccessat.c (includes): Simplify.
29489         * lib/fchmodat.c (includes): Likewise.
29490         * lib/fchownat.c (includes): Likewise.
29491         * lib/mkdirat.c (includes): Likewise.
29492         * lib/mkfifoat.c (includes): Likewise.
29493         * lib/symlinkat.c (includes): Likewise.
29494
29495         openat: allow return of fd 0
29496         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29497         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29498         unistd-safer.
29499         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29500         <fcntl.h>; this module does not leak fds.
29501         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29502         must be allowed to return 0, leaving openat_safer to add the
29503         safety.
29504         (openat_permissive): Avoid writing to just-opened fd 2 if
29505         restoring the current directory fails.
29506         * lib/openat-die.c (openat_restore_fail): Add comment.
29507         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29508         (save_cwd): Guarantee safe fd, but without use of open_safer.
29509         * tests/test-openat.c: New test.
29510         * modules/openat-tests (Files, Makefile.am): Distribute and build
29511         new file.
29512
29513         relocatable-prog-wrapper: fix build
29514         * modules/relocatable-prog-wrapper (Files): Update name of
29515         canonicalize m4 file, broken on 2009-09-17.
29516         Reported by emad hajjar <aleppos@hotmail.com>.
29517
29518 2009-09-19  Bruno Haible  <bruno@clisp.org>
29519
29520         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29521         * lib/safe-alloc.c: Likewise.
29522         Reported by Ian Beckwith <ianb@erislabs.net>.
29523
29524 2009-09-18  Bruno Haible  <bruno@clisp.org>
29525
29526         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29527         Reported by <erobles@sensacd.com.mx>.
29528
29529 2009-09-17  Eric Blake  <ebb9@byu.net>
29530
29531         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29532         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29533         slashes when checking if last component is missing.
29534         * tests/test-canonicalize.c (main): Test this.
29535
29536         canonicalize, canonicalize-lgpl: honor // if distinct from /
29537         * modules/canonicalize (Files): Add double-slash-root.m4.
29538         * modules/canonicalize-lgpl (Files): Likewise.
29539         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29540         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29541         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29542         fallback definition.
29543         (canonicalize_filename_mode): Use it to protect //.
29544         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29545         (__realpath): Likewise.
29546         * tests/test-canonicalize.c (main): Test this.
29547         * tests/test-canonicalize-lgpl.c (main): Likewise.
29548         * modules/canonicalize-tests (Depends-on): Add same-inode.
29549         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29550
29551         canonicalize-lgpl: fix glibc bug with trailing slash
29552         * m4/canonicalize-lgpl.m4: Move contents...
29553         * m4/canonicalize.m4: ...here.
29554         (gl_CANONICALIZE_LGPL): Factor realpath check...
29555         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29556         glibc 2.3.5 bug, fixed 2005-04-27.
29557         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29558         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29559         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29560         * modules/canonicalize-lgpl (Files): Manage file rename.
29561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29562         * modules/stdlib (Makefile.am): Substitute witness.
29563         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29564         is needed.
29565         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29566         replacement is required.
29567         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29568         * doc/glibc-functions/canonicalize_file_name.texi
29569         (canonicalize_file_name): Document this.
29570         * doc/posix-functions/realpath.texi (realpath): Likewise.
29571
29572         canonicalize-lgpl: reject non-directory with trailing slash
29573         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29574         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29575         catches failures in glibc 2.3.5.
29576         * tests/test-canonicalize.c (main): Likewise.
29577
29578         canonicalize-lgpl: use native realpath if it works
29579         * lib/canonicalize-lgpl.c (realpath): Guard with
29580         FUNC_REALPATH_WORKS.
29581         * lib/stdlib.in.h (realpath): Make declaration optional based on
29582         HAVE_REALPATH.
29583         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29584         native realpath works.
29585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29586         * modules/stdlib (Makefile.am): Substitute witness.
29587
29588         canonicalize, canonicalize-lgpl: use <stdlib.h>
29589         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29590         (Include): Mention <stdlib.h>.
29591         (configure.ac): Mention functions we provide.
29592         * modules/canonicalize (configure.ac): Likewise.
29593         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29594         realpath if canonicalize_file_name is missing.
29595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29596         * modules/stdlib (Makefile.am): Substitute witnesses.
29597         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29598         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29599         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29600         * NEWS: Document this.
29601         * doc/glibc-functions/canonicalize_file_name.texi
29602         (canonicalize_file_name): Likewise.
29603         * doc/posix-functions/realpath.texi (realpath): Likewise.
29604         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29605
29606         test-canonicalize: consolidate into single C program
29607         * tests/test-canonicalize.sh: Delete; move setup into...
29608         * tests/test-canonicalize.c (main): ...the program, making it
29609         easier to run in debugger.  Add some tests.
29610         * modules/canonicalize-tests (Files): Remove unused file.
29611         (Depends-on): Add progname.
29612         (configure.ac, Makefile.am): Simplify.
29613
29614         test-canonicalize-lgpl: consolidate into single C program
29615         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29616         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29617         easier to run in debugger.  Add some tests.
29618         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29619         (configure.ac, Makefile.am): Simplify.
29620
29621         canonicalize: avoid resolvepath
29622         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29623         unnecessary checks.
29624         * lib/canonicalize.c (includes): Simplify.
29625         (canonicalize_file_name): Drop resolvepath implementation.
29626         * modules/canonicalize (Depends-on): Drop filenamecat.
29627
29628         canonicalize: don't lose errno
29629         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29630         over calls to free.
29631
29632         canonicalize: simplify errno handling
29633         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29634         assignment.
29635
29636         canonicalize, canonicalize-lgpl: update module dependencies
29637         * modules/canonicalize (Depends-on): Add extensions, lstat,
29638         pathmax, stdlib.
29639         (Files): Drop pathmax.h.
29640         (configure.ac): Adjust macro name.
29641         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29642         lstat, stdlib, sys_stat.
29643         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29644         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29645         extensions.
29646         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29647         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29648         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29649         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29650         declaration, if available.
29651         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29652         we can rely on the readlink module.
29653         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29654         (includes): Use <unistd.h> unconditionally.
29655
29656 2009-09-17  Eric Blake  <ebb9@byu.net>
29657
29658         maint: make Include sections of modules consistent
29659         * modules/alloca: Use only header name; no need to list #include.
29660         * modules/alloca-opt: Likewise.
29661         * modules/arpa_inet: Likewise.
29662         * modules/canon-host: Likewise.
29663         * modules/configmake: Likewise.
29664         * modules/dirent: Likewise.
29665         * modules/eealloc: Likewise.
29666         * modules/environ: Likewise.
29667         * modules/fchdir: Likewise.
29668         * modules/fcntl: Likewise.
29669         * modules/fcntl-h: Likewise.
29670         * modules/gethrxtime: Likewise.
29671         * modules/gettime: Likewise.
29672         * modules/ignore-value: Likewise.
29673         * modules/inet_ntop: Likewise.
29674         * modules/inet_pton: Likewise.
29675         * modules/inttypes: Likewise.
29676         * modules/isnand-nolibm: Likewise.
29677         * modules/isnanf-nolibm: Likewise.
29678         * modules/mbchar: Likewise.
29679         * modules/mbfile: Likewise.
29680         * modules/mbiter: Likewise.
29681         * modules/mbuiter: Likewise.
29682         * modules/netdb: Likewise.
29683         * modules/netinet_in: Likewise.
29684         * modules/nproc: Likewise.
29685         * modules/pagealign_alloc: Likewise.
29686         * modules/poll: Likewise.
29687         * modules/printf-frexp: Likewise.
29688         * modules/pthread: Likewise.
29689         * modules/putenv: Likewise.
29690         * modules/random_r: Likewise.
29691         * modules/relocatable-prog: Likewise.
29692         * modules/search: Likewise.
29693         * modules/select: Likewise.
29694         * modules/selinux-h: Likewise.
29695         * modules/settime: Likewise.
29696         * modules/signal: Likewise.
29697         * modules/size_max: Likewise.
29698         * modules/socklen: Likewise.
29699         * modules/ssize_t: Likewise.
29700         * modules/stdarg: Likewise.
29701         * modules/stdbool: Likewise.
29702         * modules/stddef: Likewise.
29703         * modules/stdint: Likewise.
29704         * modules/stdio: Likewise.
29705         * modules/stdlib: Likewise.
29706         * modules/string: Likewise.
29707         * modules/strings: Likewise.
29708         * modules/sys_file: Likewise.
29709         * modules/sys_ioctl: Likewise.
29710         * modules/sys_select: Likewise.
29711         * modules/sys_socket: Likewise.
29712         * modules/sys_stat: Likewise.
29713         * modules/sys_time: Likewise.
29714         * modules/sys_times: Likewise.
29715         * modules/sys_utsname: Likewise.
29716         * modules/sys_wait: Likewise.
29717         * modules/sysexits: Likewise.
29718         * modules/time: Likewise.
29719         * modules/times: Likewise.
29720         * modules/tmpfile: Likewise.
29721         * modules/trim: Likewise.
29722         * modules/unistd: Likewise.
29723         * modules/wchar: Likewise.
29724         * modules/wctype: Likewise.
29725
29726 2009-09-17  Bruno Haible  <bruno@clisp.org>
29727
29728         Make getdate.y compile on QNX and NetBSD 5 / i386.
29729         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29730         TIME_T_FITS_IN_LONG_INT.
29731         * lib/getdate.y (long_time_t): New type.
29732         (relative_time): Change type of 'seconds' field to long_time_t.
29733         (get_date): Update types of local variables. Check against overflow
29734         during conversion from long_time_t to time_t.
29735         Reported by Matt Kraai <kraai@ftbfs.org>
29736         and Hasso Tepper <hasso@netbsd.org>.
29737
29738 2009-09-17  Bruno Haible  <bruno@clisp.org>
29739
29740         * modules/COPYING: Update copyright years.
29741         * modules/README: Likeiwse.
29742         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29743         Reported by Ian Beckwith <ianb@erislabs.net>.
29744
29745 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29746
29747         * users.txt: Update references for gnuit package.
29748
29749 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29750
29751         * m4/getdelim.m4: Fix typo in copyright line.
29752
29753 2009-09-17  Bruno Haible  <bruno@clisp.org>
29754
29755         * lib/atoll.c: Use the standard header with GPL copyright.
29756         * lib/argz.in.h: Likewise.
29757         * lib/glob.c: Likewise.
29758         * lib/glob-libc.h: Likewise.
29759         * lib/random_r.c: Likewise.
29760         * lib/siglist.h: Likewise.
29761         * lib/strsignal.c: Likewise.
29762         Reported by Ian Beckwith <ianb@erislabs.net>.
29763
29764 2009-09-17  Eric Blake  <ebb9@byu.net>
29765
29766         rmdir: ensure correct dependency order
29767         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29768
29769 2009-09-17  Bruno Haible  <bruno@clisp.org>
29770
29771         Disable assertion that fails on NetBSD 5 / i386.
29772         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29773         Reported by Sam Steingold <sds@gnu.org>
29774         and Hasso Tepper <hasso@netbsd.org>.
29775
29776 2009-09-16  Eric Blake  <ebb9@byu.net>
29777
29778         unlinkdir: port to mingw
29779         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29780         on which no one can unlink a directory.
29781
29782         stdlib: sort witness names
29783         * modules/stdlib (Makefile.am): Sort replacements.
29784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29785         * lib/stdlib.in.h: Likewise.
29786
29787         parse-duration-tests: avoid link failure
29788         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29789         LIBINTL.
29790         Reported by Tom G. Christensen.
29791
29792         openat-tests: ensure unlinkat behaves like rmdir
29793         * tests/test-rmdir.c (main): Factor guts...
29794         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29795         * modules/rmdir-tests (Files): Ship new file.
29796         * modules/openat-tests: New test.
29797         * tests/test-unlinkat.c: Likewise.
29798
29799         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29800         * modules/rmdir-errno (Status, Notice): Now obsolete.
29801
29802         rmdir: work around cygwin 1.5.x and mingw bugs
29803         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29804         * lib/rmdir.c (rmdir): Work around it.
29805         * modules/rmdir (Status, Notice): No longer obsolete.
29806         (Files): Add dos.m4.
29807         (Depends-on): Add unistd.
29808         (configure.ac): Set witnesses.
29809         (License): Relax to LGPLv2+.
29810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29811         * modules/unistd (Makefile.am): Substitute witnesses.
29812         * lib/unistd.in.h (rmdir): Declare replacement.
29813         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29814         * modules/rmdir-tests: New tests.
29815         * tests/test-rmdir.c: Likewise.
29816
29817 2009-09-15  Eric Blake  <ebb9@byu.net>
29818
29819         fchdir: improve use of replacement functions
29820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29821         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29822         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29823         REPLACE_CLOSEDIR.
29824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29825         * modules/sys_stat (Makefile.am): Substitute correct witness.
29826         * modules/dirent (Makefile.am): Likewise.
29827         * modules/unistd (Makefile.am): Likewise.
29828         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29829         * lib/unistd.in.h (dup): Likewise.
29830         * lib/sys_stat.in.h (fstat): Likewise.
29831
29832         maint: ignore gnulib-tool temp files
29833         * .gitignore: Ignore files created during gnulib-tool --test.
29834
29835 2009-09-13  Jim Meyering  <meyering@redhat.com>
29836
29837         posixtm: don't reject a time that specify "60" as the number of seconds
29838         * lib/posixtm.c (posixtime): The code to reject invalid dates
29839         would also reject a time specified with the .60 suffix.
29840         But POSIX allows that, in order to accommodate leap seconds.
29841         So don't reject it.
29842         (main): Adjust tests accordingly.
29843         * modules/posixtm (Depends-on): Add stpcpy.
29844
29845 2009-09-11  Jim Meyering  <meyering@redhat.com>
29846
29847         announce-gen: include [$release_type] in emitted Subject:
29848         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29849         e.g., [stable] in the emitted Subject: line.
29850
29851 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29852
29853         Remove obsolete macros from several modules.
29854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29855         obsolete Autoconf macros with their modern counterparts.
29856         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29857         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29858         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29860         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29861         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29863         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29864         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29865         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29866         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29868         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29869         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29870         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29871         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29872         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29873         * m4/time_r.m4 (gl_TIME_R): Likewise.
29874         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29875         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29876         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29877
29878         Fix copyright header in build-aux scripts.
29879         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29880         recommendation.
29881         * build-aux/ncftpput-ftp: Likewise.
29882         * build-aux/update-copyright: Likewise.
29883
29884 2009-09-09  Eric Blake  <ebb9@byu.net>
29885
29886         test-link: allow Linux choice of errno
29887         * tests/test-link.c (main): Relax test for alternate error.
29888
29889         strndup: fix improper m4 caching
29890         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29891         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29892         (gl_PREREQ_STRNDUP): Delete.
29893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29894         * modules/string (Makefile.am): Substitute it.
29895         * lib/string.in.h (strndup): Modernize prototype.
29896
29897         getcwd: port to mingw
29898         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29899         different from the POSIX assumptions made throughout the getcwd
29900         module; fortunately, the mingw getcwd does not need replacement.
29901         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29902         * modules/getcwd-tests: New test.
29903         * tests/test-getcwd.c: Likewise.
29904
29905         link: fix platform bugs
29906         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29907         * lib/link.c (link): Work around them.  Fix related mingw bug.
29908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29909         * modules/unistd (Makefile.am): Substitute it.
29910         * lib/unistd.in.h (link): Declare replacement.
29911         * doc/posix-functions/link.texi (link): Document this.
29912         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29913
29914         test-link: consolidate into single C program, test more cases
29915         * tests/test-link.sh: Delete.
29916         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29917         at least Cygwin and Solaris.
29918         * modules/link-tests (Files): Remove unused file.
29919         (Depends-on): Add errno, sys_stat.
29920         (Makefile.am): Simplify.
29921
29922 2009-09-08  Bruno Haible  <bruno@clisp.org>
29923
29924         Work around towlower, towupper bug on mingw.
29925         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29926         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29927         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29928         * doc/posix-functions/towupper.texi: Likewise.
29929         Reported by Eric Blake.
29930
29931 2009-09-08  Jim Meyering  <meyering@redhat.com>
29932
29933         build: don't try to run autoheader if we don't use it
29934         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29935         is not used in configure.ac.
29936
29937 2009-09-08  Eric Blake  <ebb9@byu.net>
29938
29939         euidaccess: fix compilation error
29940         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29941
29942         rawmemchr: relax license
29943         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29944         okay.
29945         Reported by Jim Meyering.
29946
29947         mkfifoat: new module
29948         * modules/mkfifoat: New file.
29949         * lib/mkfifoat.c: Likewise.
29950         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29952         * modules/sys_stat (Makefile.am): Use them.
29953         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29954         * MODULES.html.sh (File system functions): Mention module.
29955         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29956         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29957         * modules/mkfifoat-tests: New test.
29958         * tests/test-mkfifoat.c: Likewise.
29959
29960         strchrnul: relax license
29961         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29962         okay.
29963         Reported by Jim Meyering.
29964
29965 2009-09-08  Eric Blake  <ebb9@byu.net>
29966
29967         fstatat: fix compilation on Solaris
29968         * lib/fstatat.c (includes): Add fcntl.h.
29969         Reported by Pádraig Brady.
29970
29971 2009-09-07  Eric Blake  <ebb9@byu.net>
29972
29973         rename: modernize replacement
29974         * modules/rename (Depends-on): Add stdio.
29975         (configure.ac): Declare witness.
29976         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29977         stdio take care of replacement.
29978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29979         * modules/stdio (Makefile.am): Substitute them.
29980         * lib/stdio.in.h (rename): Declare replacement.
29981         * lib/rename.c (includes): Allow cross-compilation to non-windows
29982         machines.
29983         * doc/posix-functions/rename.texi (rename): Improve
29984         documentation.
29985
29986         stdio: sort witness names
29987         * modules/stdio (Makefile.am): Sort replacements.
29988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29989         * lib/stdio.in.h: Likewise.
29990
29991         getcwd: minor cleanups
29992         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29993         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29994
29995         openat: provide more convenience names
29996         * modules/faccessat (configure.ac): Add C witness.
29997         * lib/unistd.in.h (readlinkat): Fix typo.
29998         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29999         convenience wrappers.
30000         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30001         wrappers in syntax checks.
30002
30003 2009-09-06  Eric Blake  <ebb9@byu.net>
30004
30005         doc: fix comments in recent patches
30006         * lib/faccessat.c: Mention correct function.
30007         * lib/fchmodat.c: Likewise.
30008         * lib/fchownat.c: Likewise.
30009         * lib/symlinkat.c: Likewise.
30010         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30011         constants.
30012
30013         faccessat, symlinkat: continue cleanup of previous patch
30014         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30015         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30016         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30018         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30019         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30020         set.
30021
30022 2009-09-06  Bruno Haible  <bruno@clisp.org>
30023
30024         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30025         (fstatat): Declare if GNULIB_FSTATAT is set.
30026         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30027         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30028         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30029         * modules/fcntl-h (Files): Remove m4/openat.m4.
30030         * modules/sys_stat (Files): Remove m4/openat.m4.
30031         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30032         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30033         * modules/unistd (Files): Remove m4/openat.m4.
30034         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30035         GNULIB_OPENAT.
30036         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30037         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30039         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30040         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30041         gl_OPENAT_DEFAULTS.
30042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30043         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30044         Don't require gl_OPENAT_DEFAULTS.
30045         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30046         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30047         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30048         (gl_OPENAT_DEFAULTS): Remove macro.
30049
30050 2009-09-06  Bruno Haible  <bruno@clisp.org>
30051
30052         * modules/openat (configure.ac): Remove unneeded witness.
30053
30054 2009-09-06  Bruno Haible  <bruno@clisp.org>
30055
30056         Set errno to ENOSYS when a function is entirely unsupported.
30057         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30058         EOPNOTSUPP.
30059         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30060         * modules/chown (Depends-on): Remove errno.
30061
30062 2009-09-06  Bruno Haible  <bruno@clisp.org>
30063
30064         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30065
30066 2009-09-06  Bruno Haible  <bruno@clisp.org>
30067
30068         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30069
30070 2009-09-06  Ben Pfaff  <blp@gnu.org>
30071             Bruno Haible  <bruno@clisp.org>
30072
30073         Work around a glibc bug in strtok_r.
30074         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30075         Undefine if UNDEFINE_STRTOK_R is set.
30076         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30078         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30079         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30080         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30081         UNDEFINE_STRTOK_R.
30082         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30083
30084 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30085
30086         exclude: minor fix
30087         * lib/exclude.c: Include wctype.h
30088
30089 2009-09-06  Akim Demaille  <demaille@gostai.com>
30090
30091         bootstrap: improve error message
30092         * build-aux/bootstrap (find_tool): Upon failure, report the list
30093         of candidates.
30094         Honor the initial value of the envvar.
30095
30096 2009-09-05  Eric Blake  <ebb9@byu.net>
30097
30098         symlinkat: new module
30099         * modules/symlinkat: New file.
30100         * lib/symlinkat.c: Likewise.
30101         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30103         * modules/unistd (Makefile.am): Use them.
30104         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30105         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30106         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30107         * MODULES.html.sh (File system functions): Mention module.
30108         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30109         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30110         * modules/symlinkat-tests: New test.
30111         * tests/test-symlinkat.c: Likewise.
30112
30113         test-openat-safer: add more checks
30114         * tests/test-openat-safer.c (main): Check more code paths.
30115
30116 2009-09-05  Jim Meyering  <meyering@redhat.com>
30117
30118         syntax-check: detect unnecessary inclusion of openat.h
30119         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30120
30121 2009-09-05  Bruno Haible  <bruno@clisp.org>
30122
30123         Support towlower, towupper.
30124         * doc/posix-functions/towlower.texi: Mention module wctype.
30125         * doc/posix-functions/towupper.texi: Likewise.
30126         * lib/wctype.in.h (towlower, towupper): New functions.
30127         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30128         (ASSERT): New macro.
30129         (e): New variable.
30130         (main): Test also towlower, towupper. Test WEOF argument.
30131         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30132
30133 2009-09-05  Bruno Haible  <bruno@clisp.org>
30134
30135         Fix conversion behaviour when the input is invalid.
30136         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30137         mark occurring in first pass of indirect conversion.
30138         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30139         input.
30140         Found by clang's static analyzer.
30141
30142 2009-09-05  Bruno Haible  <bruno@clisp.org>
30143
30144         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30145         where direct conversion is possible.
30146
30147 2009-09-04  Eric Blake  <ebb9@byu.net>
30148
30149         openat: fail with ENOENT on empty name
30150         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30151         buffer.
30152
30153         link-follow: fix logic bug in prior patch
30154         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30155         reversed sense of yes and no in prior patch.  Avoid confusing
30156         compilation failure with desired semantics.
30157
30158         link-follow: accomodate mingw and cross-compilation
30159         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30160         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30161         cross-compilation results to -1, to make linkat easier to
30162         implement when cross-compiling.  Trivially support mingw.
30163         * modules/link-follow (configure.ac): Call new name.
30164         * NEWS: Mention this.
30165
30166 2009-09-03  Eric Blake  <ebb9@byu.net>
30167
30168         faccessat: compile replacement
30169         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30170         needed.
30171
30172         fts: fix compilation error
30173         * lib/fts.c (includes): Re-add "openat.h", for
30174         openat_needs_fchdir.
30175
30176         faccessat: new module
30177         * modules/faccessat: New file.
30178         * lib/faccessat.c: Likewise.
30179         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30181         * modules/unistd (Makefile.am): Use it.
30182         * lib/unistd.in.h (faccessat): Declare it.
30183         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30184         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30185         * MODULES.html.sh (File system functions): Mention it.
30186         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30187         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30188
30189         euidaccess: prefer POSIX over non-standard implementation
30190         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30191         * lib/euidaccess.c (euidaccess): Use it if available.
30192
30193         openat: make template easier to use
30194         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30195         AT_FUNC_F2 to be undefined.
30196         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30197         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30198         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30199         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30200         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30201         Likewise.
30202         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30203         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30204         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30205         Likewise.
30206
30207         openat: declare in POSIX headers
30208         * NEWS: Mention this.
30209         * modules/openat (configure.ac): Declare witnesses.
30210         (Depends-on): Add fcntl-h, sys_stat, unistd.
30211         (Include): Mention correct headers.
30212         * modules/fcntl-h (Depends-on): Add link-warning.
30213         (Files): Add openat.m4.
30214         (Makefile.am): Substitute witnesses.
30215         * modules/sys_stat (Files, Makefile.am): Likewise.
30216         * modules/unistd (Files, Makefile.am): Likewise.
30217         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30218         (gl_OPENAT_DEFAULTS): New macro.
30219         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30221         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30222         (SYS_STAT_H): Remove unused variable.
30223         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30224         * lib/fcntl--.h (includes): Remove unneeded header.
30225         * lib/openat-safer.c (includes): Likewise.
30226         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30227         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30228         appropriate headers.
30229         (__OPENAT_PREFIX): Delete.
30230         * lib/fcntl.in.h (openat): Provide declaration.
30231         (AT_FDCWD): Fix Solaris bug.
30232         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30233         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30234         * lib/fchmodat.c (includes):  Adjust to find declaration.
30235         * lib/fchownat.c (includes): Likewise.
30236         * lib/mkdirat.c (includes): Likewise.
30237         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30238         still visible.
30239
30240 2009-09-02  Eric Blake  <ebb9@byu.net>
30241
30242         errno: use consistently
30243         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30244         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30245         * lib/canonicalize.c (ELOOP): Likewise.
30246         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30247         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30248         * lib/lchown.c (EOPNOTSUPP): Likewise.
30249         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30250         * lib/savewd.c (ESTALE): Likewise.
30251         * lib/settime.c (ENOSYS): Likewise.
30252         * lib/utimens.c (ENOSYS): Likewise.
30253         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30254         * lib/chdir-safer.c (ELOOP): Likewise.
30255         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30256         * modules/c-stack (Depends-on): Add errno.
30257         * modules/canonicalize (Depends-on): Likewise.
30258         * modules/chdir-safer (Depends-on): Likewise.
30259         * modules/fdopendir (Depends-on): Likewise.
30260         * modules/inet_ntop (Depends-on): Likewise.
30261         * modules/inet_pton (Depends-on): Likewise.
30262         * modules/lchown (Depends-on): Likewise.
30263         * modules/openat (Depends-on): Likewise.
30264         * modules/savewd (Depends-on): Likewise.
30265         * modules/settime (Depends-on): Likewise.
30266         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30267
30268         fts: avoid leaking fds
30269         * modules/fts (Depends-on): Add cloexec.
30270         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30271         flag.
30272
30273         fts: make directory fds more robust
30274         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30275         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30276
30277         backupfile, chdir-long, fts, savedir: make safer
30278         * lib/backupfile.c (includes): Use "dirent--.h", since
30279         numbered_backup can write to stderr during readdir.
30280         * lib/savedir.c (includes): Likewise.
30281         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30282         emulation can write to stderr on failure.
30283         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30284         * lib/getcwd.c: Document why opendir_safer is unused.
30285         * lib/glob.c: Likewise.
30286         * lib/scandir.c: Likewise.
30287         * lib/openat-proc.c: Likewise, for open_safer.
30288         * modules/backupfile (Depends-on): Add dirent-safer.
30289         * modules/savedir (Depends-on): Likewise.
30290         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30291         * modules/chdir-long (Depends-on): Add openat-safer.
30292
30293         openat-safer: new module
30294         * modules/openat-safer: New file.
30295         * lib/openat-safer.c: Likewise.
30296         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30297         * lib/fcntl-safer.h (openat_safer): Declare.
30298         * lib/fcntl--.h (openat): Override.
30299         * MODULES.html.sh (File descriptor based I/O): Mention it.
30300         * lib/openat.h: Add double-inclusion guards.
30301         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30302         "fcntl--.h", so we can implement openat.
30303         * modules/openat-safer-tests: New test.
30304         * tests/test-openat-safer.c: New file.
30305
30306         dirent-safer: new module
30307         * modules/dirent-safer: New file.
30308         * lib/dirent--.h: Likewise.
30309         * lib/dirent-safer.h: Likewise.
30310         * lib/opendir-safer.c: Likewise.
30311         * m4/dirent-safer.m4: Likewise.
30312         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30313         * modules/dirent-safer-tests: New test.
30314         * tests/test-dirent-safer.c: New file.
30315         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30316
30317         fdopendir: optimize on mingw
30318         * lib/unistd.in.h (_gl_directory_name): New prototype.
30319         * lib/fchdir.c (_gl_directory_name): Implement it.
30320         (fchdir): Use it to simplify implementation.
30321         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30322         fchdir, when available, to avoid calling [f]chdir().
30323
30324         fdopendir: split into its own module
30325         * lib/openat.c (fdopendir): Move...
30326         * lib/fdopendir.c: ...into new file.
30327         * modules/fdopendir: New module.
30328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30329         * modules/openat (Depends-on): Add fdopendir.
30330         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30331         fdopendir here.
30332         * modules/savedir (Depends-on): Only need fdopendir, not full
30333         openat.
30334         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30335         * lib/openat.h (fdopendir): Drop prototype.
30336         * lib/dirent.in.h (fdopendir): Provide prototype.
30337         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30338         * modules/dirent (Makefile.am): Substitute them.
30339         * MODULES.html.sh (File system functions): Mention it.
30340         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30341         * modules/fdopendir-tests: New file.
30342         * tests/test-fdopendir.c: Likewise.
30343
30344         fchdir: use more consistent macro convention
30345         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30346         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30347         REPLACE_FCHDIR, rather than relying on config.h macros.
30348         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30349         inside a single make-time REPLACE_FCHDIR block, rather than using
30350         the config.h FCHDIR_REPLACEMENT.
30351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30352         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30353         Manage fstat replacement.
30354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30355         REPLACE_FCHDIR.
30356         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30357         (Makefile.am): Substitute REPLACE_FCHDIR.
30358         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30359         FCHDIR_REPLACEMENT.
30360         * lib/dup-safer.c (dup_safer): Likewise.
30361         * lib/dup2.c (rpl_dup2): Likewise.
30362         * lib/dup3.c (rpl_dup3): Likewise.
30363         * lib/open.c (rpl_open): Likewise.
30364
30365         fchdir: simplify error handling, and support dup3
30366         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30367         stdbool, malloc-posix, realloc-posix.
30368         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30369         (ensure_dirs_slot): Return false on allocation failure.
30370         (rpl_dup2): Delete.
30371         (_gl_register_dup): New function.
30372         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30373         (_gl_register_fd): Close fd on allocation failure.
30374         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30375         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30376         prototype.
30377         (rpl_dup2_fchdir): Delete prototype.
30378         * lib/open.c (open): Update caller.
30379         * lib/dup2.c (dup2): Track fchdir metadata.
30380         * lib/dup3.c (dup3): Likewise.
30381         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30383
30384 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30385
30386         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30387         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30388         don't pass arguments to AC_OUTPUT.
30389
30390 2009-09-02  Bruno Haible  <bruno@clisp.org>
30391
30392         * modules/mkdtemp (License): Relicense under LGPLv2+.
30393         Reported by Paolo Bonzini.
30394
30395 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30396
30397         Replace uses of obsolete autoconf macros in Jim's modules.
30398         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30399         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30400         can evoke a warning from autoconf when run with -Wobsolete
30401         enabled.  They were declared obsolete for good reasons (see
30402         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30403         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30404         should not continue using the deprecated macros.
30405         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30406         obsolete Autoconf macros with modern counterparts.
30407         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30408         * m4/dos.m4 (gl_AC_DOS): Likewise.
30409         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30410         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30411         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30412         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30413         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30415         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30416         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30417         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30418         Likewise.
30419         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30420         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30421         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30422         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30423         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30424         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30425
30426 2009-09-01  Eric Blake  <ebb9@byu.net>
30427
30428         fchdir: fix off-by-one bug in previous patch
30429         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30430         (_gl_unregister_fd): Delete useless if.
30431
30432 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30433
30434         maint.mk: sort the list of syntax-check rules
30435         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30436         easier to get a sense of progress when the rules are run sequentially
30437         and take a long time.
30438
30439 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30440
30441         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30442         * modules/netinet_in: Likewise.
30443         * modules/sys_file: Likewise.
30444         * modules/sys_ioctl: Likewise.
30445         * modules/sys_select: Likewise.
30446         * modules/sys_socket: Likewise.
30447         * modules/sys_stat: Likewise.
30448         * modules/sys_time: Likewise.
30449         * modules/sys_times: Likewise.
30450         * modules/sys_utsname: Likewise.
30451         * modules/sys_wait: Likewise.
30452
30453 2009-09-01  Jim Meyering  <meyering@redhat.com>
30454
30455         fts: help ensure that return values are not ignored
30456         * lib/fts_.h (__GNUC_PREREQ): Define.
30457         (__attribute_warn_unused_result__): Define.
30458         (fts_children, fts_close, fts_open, fts_read): Declare with
30459         __attribute_warn_unused_result__.
30460
30461         fts: fts_close now fails also when closing a dir file descriptor fails
30462         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30463         and propagate to caller, along with errno.
30464
30465         announce-gen: correct formatting in --help output
30466         * build-aux/announce-gen (usage): Move the one-line description in
30467         --help output "up", to where it belongs, just after Usage:.
30468
30469 2009-08-31  Eric Blake  <ebb9@byu.net>
30470
30471         fchdir: port to mingw
30472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30473         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30474         opened, then use a substitute.
30475         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30476         replacement.
30477         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30478         (_gl_register_fd): No need to check stat if open already filters
30479         all directories.
30480         (fchdir): Fix error condition to match POSIX.
30481         * modules/fchdir (Depends-on): Add sys_stat.
30482         * doc/posix-functions/open.texi (open): Document the limitation.
30483         * modules/fchdir-tests: New file.
30484         * tests/test-fchdir.c: Likewise.
30485
30486         canonicalize: allow cross-testing from cygwin to mingw
30487         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30488         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30489         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30490         Likewise.
30491         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30492         target does not support symlinks.
30493         * tests/test-canonicalize-lgpl.sh: Likewise.
30494
30495         chown: avoid compilation warning on mingw
30496         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30497         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30498         mingw.
30499         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30500         * modules/chown (Depends-on): Add errno.
30501
30502 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30503
30504         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30505         command.
30506
30507 2009-08-31  Jim Meyering  <meyering@redhat.com>
30508
30509         canonicalize: remove useless initialization
30510         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30511         initialization of local, "end".
30512
30513 2009-08-30  Bruno Haible  <bruno@clisp.org>
30514
30515         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30516         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30517         ENOSYS.
30518
30519 2009-08-30  Bruno Haible  <bruno@clisp.org>
30520
30521         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30522         /usr/xpg4/bin/tr when it exists.
30523         * tests/test-pipe-filter-gi1.sh: Likewise.
30524
30525 2009-08-30  Bruno Haible  <bruno@clisp.org>
30526
30527         Work around deficient /usr/bin/id program on Solaris.
30528         * tests/test-file-has-acl.sh (ID): New variable.
30529         * tests/test-set-mode-acl.sh (ID): Likewise.
30530         * tests/test-copy-acl.sh (ID): Likewise.
30531         * tests/test-copy-file.sh (ID): Likewise.
30532
30533 2009-08-30  Bruno Haible  <bruno@clisp.org>
30534
30535         New module 'xstriconveh'.
30536         * lib/xstriconveh.h: New file.
30537         * lib/xstriconveh.c: New file.
30538         * modules/xstriconveh: New file.
30539
30540 2009-08-30  Bruno Haible  <bruno@clisp.org>
30541
30542         Make it easier to use mem_cd_iconveh.
30543         * lib/striconveh.h (iconveh_t): New type.
30544         (iconveh_open, iconveh_close): New declarations.
30545         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30546         with a single 'const iconveh_t *' argument.
30547         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30548         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30549         with a single 'const iconveh_t *' argument.
30550         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30551         * tests/test-striconveh.c (main): Update.
30552         * NEWS: Mention the change.
30553
30554 2009-08-30  Bruno Haible  <bruno@clisp.org>
30555
30556         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30557         problem.
30558
30559 2009-08-30  Bruno Haible  <bruno@clisp.org>
30560
30561         Work around iconv_open problem on Solaris.
30562         * lib/iconv_open-solaris.gperf: New file.
30563         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30564         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30565         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30566         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30567         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30568         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30569
30570 2009-08-29  Jim Meyering  <meyering@redhat.com>
30571
30572         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30573         * top/maint.mk (cvs-check): Remove target; it was just an alias
30574         to the better-named vc-diff-check.
30575         (maintainer-distcheck): Remove rule.  It was used only from
30576         the (alpha/beta/major) target, and all of its commands but one
30577         were coreutils-specific.
30578         (vc-dist): Remove rule.
30579         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30580         Run vc-diff-check, not vc-dist.
30581         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30582
30583 2009-08-27  Bruno Haible  <bruno@clisp.org>
30584
30585         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30586         of 0.
30587
30588 2009-08-27  Bruno Haible  <bruno@clisp.org>
30589
30590         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30591         compilers.
30592         * doc/func.texi: Document the SunPRO C bug.
30593
30594 2009-08-27  Bruno Haible  <bruno@clisp.org>
30595
30596         Fix link error on Solaris.
30597         * tests/test-parse-duration.c (xstrdup): Remove function.
30598
30599 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30600
30601         ignore-value: handle pointer types, too
30602         * lib/ignore-value.h (__attribute__): Remove definition.
30603         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30604         of a more concise and more-often effective "(void) i" statement.
30605         (ignore_ptr): New function to suppress warnings from functions that
30606         return pointers, and to make it explicit that one function doesn't
30607         handle all cases.
30608
30609 2009-08-25  Bruno Haible  <bruno@clisp.org>
30610
30611         dup2: work around a Linux bug.
30612         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30613         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30614         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30615         Reported by Simon Josefsson.
30616
30617 2009-08-25  Jim Meyering  <meyering@redhat.com>
30618
30619         libguestfs uses gnulib
30620         * users.txt: Add libguestfs.
30621
30622 2009-08-24  Eric Blake  <ebb9@byu.net>
30623
30624         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30625         * lib/pipe2.c (includes): Add binary-io.h.
30626         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30627
30628 2009-08-24  Bruno Haible  <bruno@clisp.org>
30629
30630         Tolerate declared but missing accept4 syscall.
30631         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30632         available.
30633         * lib/sys_socket.in.h (accept4): If the function is already present,
30634         override it.
30635         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30636         * modules/accept4 (Makefile.am): Compile accept4.c always.
30637         Reported by Paolo Bonzini and Eric Blake.
30638
30639 2009-08-23  Bruno Haible  <bruno@clisp.org>
30640
30641         New module 'accept4'.
30642         * lib/sys_socket.in.h (accept4): New declaration.
30643         * lib/accept4.c: New file.
30644         * m4/accept4.m4: New file.
30645         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30646         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30647         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30648         HAVE_ACCEPT4.
30649         * modules/accept4: New file.
30650         * doc/glibc-functions/accept4.texi: Mention the new module.
30651
30652 2009-08-24  Jim Meyering  <meyering@redhat.com>
30653
30654         progname: also set global program_invocation_name, when possible
30655         Before this change, a libtool-enabled program that calls glibc's
30656         error function would report the program name as
30657         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30658         * modules/progname (configure.ac): Check for a declaration of
30659         program_invocation_name.
30660         * lib/progname.c:  Include <errno.h>.
30661         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30662         Set program_invocation_name.
30663
30664 2009-08-23  Bruno Haible  <bruno@clisp.org>
30665
30666         * lib/dup3.c: Include <string.h>.
30667
30668 2009-08-23  Bruno Haible  <bruno@clisp.org>
30669
30670         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30671         * lib/pipe2.c (pipe2): Likewise.
30672         Suggested by Eric Blake.
30673
30674 2009-08-23  Bruno Haible  <bruno@clisp.org>
30675
30676         Tolerate declared but missing dup3 syscall.
30677         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30678         * lib/unistd.in.h (dup3): If the function is already present,
30679         override it.
30680         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30681         * modules/dup3 (Makefile.am): Compile dup3.c always.
30682         Reported by Paolo Bonzini.
30683
30684 2009-08-23  Bruno Haible  <bruno@clisp.org>
30685
30686         Tolerate declared but missing pipe2 syscall.
30687         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30688         available.
30689         * lib/unistd.in.h (pipe2): If the function is already present,
30690         override it.
30691         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30692         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30693         Reported by Paolo Bonzini.
30694
30695 2009-08-23  Bruno Haible  <bruno@clisp.org>
30696
30697         * lib/pipe2.c (pipe2): Move #ifs inside function.
30698
30699 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30700
30701         quotearg: document limitations of quote_these_too
30702         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30703         those limitations are created.
30704         * lib/quotearg.h (set_char_quoting): Document that digits and
30705         letters that are special after backslash are not permitted.
30706         (quotearg_char): Cross-reference set_char_quoting documentation.
30707
30708 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30709
30710         quotearg: implement custom_quoting_style
30711         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30712         right_quote fields.
30713         (set_custom_quoting): New public function.
30714         (quotearg_buffer_restyled): Add left_quote and right_quote
30715         arguments, handle them very much like locale quoting, and update
30716         all uses.
30717         (quotearg_n_custom): New public function.
30718         (quotearg_n_custom_mem): New public function.
30719         (quotearg_custom): New public function.
30720         (quotearg_custom_mem): New public function.
30721         * lib/quotearg.h: Prototype and document new public functions.
30722         (enum quoting_style): For escape_quoting_style and
30723         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30724         ignored even though they're otherwise like c_quoting_style.
30725         Add custom_quoting_style member and document with comparison to
30726         clocale_quoting_style.
30727         * tests/test-quotearg.c (custom_quotes): New array.
30728         (custom_results): New array.
30729         (main): Extend to test custom quoting.
30730
30731 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30732
30733         quotearg: fix right quote escaping when it's in quote_these_too
30734         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30735         quote, be sure to prepend only one backslash.
30736         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30737         (main): Test it.
30738
30739 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30740
30741         quotearg-tests: test escaping of embedded locale quotes
30742         * tests/test-quotearg.c (struct result_strings): Add member for
30743         new input.
30744         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30745         (inputs): Add new input.
30746         (results_g): Add expected results.
30747         (flag_results): Likewise.
30748         (locale_results): Likewise.
30749         (compare_strings): Check those.
30750
30751 2009-08-23  Bruno Haible  <bruno@clisp.org>
30752
30753         Tests for module 'dup3'.
30754         * modules/dup3-tests: New file.
30755         * tests/test-dup3.c: New file.
30756
30757         New module 'dup3'.
30758         * lib/unistd.in.h (dup3): New declaration.
30759         * lib/dup3.c: New file.
30760         * m4/dup3.m4: New file.
30761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30762         HAVE_DUP3.
30763         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30764         * modules/dup3: New file.
30765         * doc/glibc-functions/dup3.texi: Mention the new module.
30766
30767 2009-08-23  Bruno Haible  <bruno@clisp.org>
30768
30769         Tweak the dup2 test.
30770         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30771         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30772         the test file is still empty. Fix argument order of lseek.
30773
30774 2009-08-23  Bruno Haible  <bruno@clisp.org>
30775
30776         Avoid test link errors when the modules getopt-gnu, gettext are used.
30777         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30779
30780 2009-08-23  Bruno Haible  <bruno@clisp.org>
30781
30782         Fix getdtablesize() on mingw.
30783         * lib/getdtablesize.c (getdtablesize): Implement differently.
30784         * lib/unistd.in.h (getdtablesize): Improve comment.
30785
30786 2009-08-23  Bruno Haible  <bruno@clisp.org>
30787
30788         New module 'mkostemp'.
30789         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30790         * lib/stdlib.in.h (mksotemp): New declaration.
30791         * lib/mkostemp.c: New file, from glibc with modifications.
30792         * lib/tempname.h (GT_FILE): Remove outdated comment.
30793         (gen_tempname): Add flags argument.
30794         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30795         (__GT_FILE): Map to 1.
30796         (small_open, large_open): Remove macros.
30797         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30798         * lib/mkstemp.c (mkstemp): Update.
30799         * lib/mkdtemp.c (mkdtemp): Likewise.
30800         * m4/mkostemp.m4: New file.
30801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30802         HAVE_MKOSTEMP.
30803         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30804         HAVE_MKOSTEMP.
30805         * modules/mkostemp: New file, based on modules/mkstemp.
30806         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30807         * NEWS: Mention the change.
30808
30809 2009-08-23  Bruno Haible  <bruno@clisp.org>
30810
30811         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30812         Reported by Eric Blake.
30813
30814 2009-08-23  Bruno Haible  <bruno@clisp.org>
30815
30816         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30817         Reported by Eric Blake.
30818
30819 2009-08-23  Bruno Haible  <bruno@clisp.org>
30820
30821         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30822         * modules/pipe2 (Depends-on): Likewise.
30823
30824 2009-08-23  Eric Blake  <ebb9@byu.net>
30825
30826         fcntl-h: add O_TTY_INIT support
30827         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30828         * tests/test-fcntl-h.c (o): Test it.
30829         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30830
30831         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30832         * modules/fcntl: Move <fcntl.h> header replacement...
30833         * modules/fcntl-h: ...to new name, so as not to collide with
30834         like-named function.
30835         * tests/test-fcntl.c: Rename...
30836         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30837         * modules/fcntl-tests: Rename...
30838         * modules/fcntl-h-tests: ...to this.  Update test file name.
30839         * modules/chdir-long (Depends-on): Update clients.
30840         * modules/chdir-safer (Depends-on): Likewise.
30841         * modules/fcntl-safer (Depends-on): Likewise.
30842         * modules/fts (Depends-on): Likewise.
30843         * modules/mkancesdirs (Depends-on): Likewise.
30844         * modules/mkdir-p (Depends-on): Likewise.
30845         * modules/open (Depends-on): Likewise.
30846         * modules/savewd (Depends-on): Likewise.
30847         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30848         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30849
30850 2009-08-22  Bruno Haible  <bruno@clisp.org>
30851
30852         * modules/binary-io (License): Relicense under LGPL.
30853         * modules/pipe2 (License): Likewise.
30854
30855 2009-08-22  Bruno Haible  <bruno@clisp.org>
30856
30857         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30858         return value.
30859         * lib/pipe-filter-gi.c (filter_init): Likewise.
30860         Reported by Eric Blake.
30861
30862 2009-08-22  Bruno Haible  <bruno@clisp.org>
30863
30864         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30865         * modules/pipe (Depends-on): Add pipe2.
30866
30867 2009-08-22  Bruno Haible  <bruno@clisp.org>
30868
30869         Tests for module 'pipe2'.
30870         * modules/pipe2-tests: New file.
30871         * tests/test-pipe2.c: New file.
30872
30873         New module 'pipe2'.
30874         * lib/unistd.in.h (pipe2): New declaration.
30875         * lib/pipe2.c: New file.
30876         * m4/pipe2.m4: New file.
30877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30878         HAVE_PIPE2.
30879         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30880         * modules/pipe2: New file.
30881         * doc/glibc-functions/pipe2.texi: Mention the new module.
30882
30883 2009-08-22  Bruno Haible  <bruno@clisp.org>
30884
30885         Reference some new glibc functions.
30886         * doc/glibc-functions/accept4.texi: New file.
30887         * doc/glibc-functions/dup3.texi: New file.
30888         * doc/glibc-functions/mkostemp.texi: New file.
30889         * doc/glibc-functions/pipe2.texi: New file.
30890         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30891         (Glibc sys/socket.h): Refer to accept4.
30892         (Glibc unistd.h): Refer to dup3, pipe2.
30893         Reported by Eric Blake.
30894
30895 2009-08-22  Jim Meyering  <meyering@redhat.com>
30896             Bruno Haible  <bruno@clisp.org>
30897
30898         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30899         This makes it so packages using automake-1.11's silent-rules option
30900         can print e.g., a single "GEN    configmake.h" line, rather than
30901         the 30+ statements that perform the job.  If you want to see the
30902         actual commands, you can still run "make V=1".
30903         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30904         so that make output is abbreviated when those variables are defined
30905         appropriately.
30906         * modules/argz: Likewise.
30907         * modules/arpa_inet: Likewise.
30908         * modules/byteswap: Likewise.
30909         * modules/configmake: Likewise.
30910         * modules/dirent: Likewise.
30911         * modules/errno: Likewise.
30912         * modules/fcntl: Likewise.
30913         * modules/float: Likewise.
30914         * modules/fnmatch: Likewise.
30915         * modules/getopt-posix: Likewise.
30916         * modules/glob: Likewise.
30917         * modules/iconv_open: Likewise.
30918         * modules/inttypes: Likewise.
30919         * modules/localcharset: Likewise.
30920         * modules/locale: Likewise.
30921         * modules/math: Likewise.
30922         * modules/netdb: Likewise.
30923         * modules/netinet_in: Likewise.
30924         * modules/poll: Likewise.
30925         * modules/posix_spawnp-tests: Likewise.
30926         * modules/sched: Likewise.
30927         * modules/search: Likewise.
30928         * modules/selinux-h: Likewise.
30929         * modules/signal: Likewise.
30930         * modules/spawn: Likewise.
30931         * modules/stdarg: Likewise.
30932         * modules/stdbool: Likewise.
30933         * modules/stddef: Likewise.
30934         * modules/stdint: Likewise.
30935         * modules/stdio: Likewise.
30936         * modules/stdlib: Likewise.
30937         * modules/string: Likewise.
30938         * modules/strings: Likewise.
30939         * modules/sys_file: Likewise.
30940         * modules/sys_ioctl: Likewise.
30941         * modules/sys_select: Likewise.
30942         * modules/sys_socket: Likewise.
30943         * modules/sys_stat: Likewise.
30944         * modules/sys_time: Likewise.
30945         * modules/sys_times: Likewise.
30946         * modules/sys_utsname: Likewise.
30947         * modules/sys_wait: Likewise.
30948         * modules/sysexits: Likewise.
30949         * modules/time: Likewise.
30950         * modules/unistd: Likewise.
30951         * modules/wchar: Likewise.
30952         * modules/wctype: Likewise.
30953
30954 2009-08-22  Jim Meyering  <meyering@redhat.com>
30955
30956         announce-gen: detect write failure
30957         * build-aux/announce-gen: Add Coda at end.
30958         Remove equivalent-but-more-verbose block at top.
30959
30960 2009-08-19  Akim Demaille  <demaille@gostai.com>
30961
30962         bootstrap: --help to stdout.
30963         * bootstrap (usage): Don't send --help to stderr.
30964         Use a here doc instead of a long string.
30965
30966 2009-08-21  Eric Blake  <ebb9@byu.net>
30967
30968         test-popen-safer: split from test-popen
30969         * tests/test-popen.c (main): Move...
30970         * tests/test-popen.h: ...into new file.
30971         * tests/test-popen-safer2.c: New file.
30972         * modules/popen-tests (Files): Add test-popen.h.
30973         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30974         Suggested by Bruno Haible.
30975
30976         test-fcntl-safer: split from test-open
30977         * tests/test-open.c (main): Move...
30978         * tests/test-open.h: ...into new file.
30979         * tests/test-fcntl-safer.c: New file.
30980         * modules/open-tests (Files): Add test-open.h.
30981         * modules/fcntl-safer-tests: New file.
30982         Suggested by Bruno Haible.
30983
30984         test-fopen-safer: split from test-fopen
30985         * tests/test-fopen.c (main): Move...
30986         * tests/test-fopen.h: ...into new file.
30987         * tests/test-fopen-safer.c: New file.
30988         * modules/fopen-tests (Files): Add test-fopen.h.
30989         * modules/fopen-safer-tests: New file.
30990         Suggested by Bruno Haible.
30991
30992 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30993
30994         popen-safer: test O_CLOEXEC at run-time.
30995         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30996
30997 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30998
30999         fcntl: move more flags to the header
31000         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31001         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31002         * lib/fcntl.in.h: Do both things here.
31003
31004 2009-08-21  Jim Meyering  <meyering@redhat.com>
31005
31006         consistently remove $@-t before redirecting to it
31007         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31008         * modules/alloca-opt: Likewise.
31009         * modules/byteswap: Likewise.
31010         * modules/fnmatch: Likewise.
31011         * modules/getopt-posix: Likewise.
31012         * modules/glob: Likewise.
31013         * modules/poll: Likewise.
31014         * modules/posix_spawnp-tests: Likewise.
31015         * modules/sys_socket: Likewise.
31016         * modules/sysexits: Likewise.
31017
31018 2009-08-21  Eric Blake  <ebb9@byu.net>
31019
31020         popen: simplify access to original popen
31021         * lib/popen.c (rpl_popen): No need to worry about popen being a
31022         macro.
31023         Reported by Bruno Haible.
31024
31025 2009-08-20  Eric Blake  <ebb9@byu.net>
31026
31027         build: avoid some compiler warnings
31028         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31029         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31030         type.
31031         (new_exclude_segment, excluded_file_pattern_p)
31032         (excluded_file_name_p): Reduce scope.
31033         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31034         old-style declaration.
31035
31036 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31037
31038         * tests/test-exclude1.sh: Handle Windows EOL.
31039         * tests/test-exclude2.sh: Likewise.
31040         * tests/test-exclude3.sh: Likewise.
31041         * tests/test-exclude4.sh: Likewise.
31042         * tests/test-exclude5.sh: Likewise.
31043         * tests/test-exclude6.sh: Likewise.
31044         * tests/test-exclude7.sh: Likewise.
31045
31046 2009-08-19  Akim Demaille  <demaille@gostai.com>
31047
31048         bootstrap: find sha1sum when named gsha1sum.
31049         * bootstrap (find_tool): New.
31050         ($SHA1SUM): New.
31051         Use it.
31052
31053 2009-08-20  Jim Meyering  <meyering@redhat.com>
31054
31055         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31056         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31057         expression that converts "." in a file name to "\." in the resulting
31058         regexp.  Start with a dummy statement, so that prior shell variable
31059         definitions are expanded portably.  Reported by Simon Josefsson.
31060
31061 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31062
31063         Fix polling for writeability of a screen buffer.
31064         * lib/poll.c: Distinguish input and screen buffers for the
31065         Win32 implementation.
31066         * lib/select.c: Likewise.
31067
31068 2009-08-19  Eric Blake  <ebb9@byu.net>
31069
31070         popen-safer: prevent popen from clobbering std descriptors
31071         * modules/popen-safer: New file.
31072         * lib/popen-safer.c: Likewise.
31073         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31074         * lib/stdio--.h (popen): Provide override.
31075         * lib/stdio-safer.h (popen_safer): Provide declaration.
31076         * tests/test-popen.c (includes): Partially test this.
31077         * modules/popen-safer-tests: New file, for more tests.
31078         * tests/test-popen-safer.c: Likewise.
31079         * MODULES.html.sh (file stream based Input/Output): Mention it.
31080
31081         tests: test some of the *-safer modules
31082         * modules/fopen-safer (Depends-on): Add fopen.
31083         * modules/fcntl-safer (Depends-on): Add fcntl.
31084         * modules/stdlib-safer (Depends-on): Add stdlib.
31085         (configure.ac): Set indicator.
31086         * modules/unistd-safer (configure.ac): Likewise.
31087         * modules/tmpfile-safer (configure.ac): Likewise.
31088         (Depends-on): Add tmpfile.
31089         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31090         active.
31091         * tests/test-fopen.c (includes): Test safer versions when they are
31092         in use.
31093         * tests/test-open.c (includes): Likewise.
31094
31095         popen: fix cygwin 1.5 bug when stdin closed
31096         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31097         * modules/popen: New file.
31098         * modules/popen-tests: Likewise.
31099         * tests/test-popen.c: Likewise.
31100         * m4/popen.m4: Likewise.
31101         * lib/popen.c: Likewise.
31102         * lib/stdio.in.h (popen): New declaration.
31103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31104         * modules/stdio (Makefile.am): Likewise.
31105         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31106
31107 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31108
31109         maint.mk: give full control over update-copyright exclusions
31110         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31111         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31112         (update-copyright): Don't force inclusion of top-level
31113         ChangeLog.  Don't force exclusion of all COPYING files, but make
31114         them the default exclusion instead.
31115
31116 2009-08-16  Bruno Haible  <bruno@clisp.org>
31117
31118         Fix test failures on Solaris 10.
31119         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31120         tests when Solaris iconv() is used.
31121         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31122         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31123         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31124         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31125         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31126
31127 2009-08-16  Bruno Haible  <bruno@clisp.org>
31128
31129         Fix test failures on Solaris 10.
31130         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31131         'tr' program and pass it as first argument.
31132         * tests/test-pipe-filter-gi1.sh: Likewise.
31133         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31134         program as first argument.
31135         * tests/test-pipe-filter-gi1.c (main): Likewise.
31136
31137 2009-08-16  Eric Blake  <ebb9@byu.net>
31138
31139         fpurge: fix previous commits
31140         * modules/fpurge (Makefile.am): Make replacement conditional,
31141         partially reverting 2007-04-29 change; missed in previous
31142         attempt.
31143         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31144         is missing.
31145
31146 2009-08-16  Bruno Haible  <bruno@clisp.org>
31147
31148         Clarify fpurge's effect on the file position.
31149         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31150         * tests/test-fpurge.c (main): Make a second pass for checking the file
31151         position.
31152
31153 2009-08-16  Bruno Haible  <bruno@clisp.org>
31154
31155         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31156         declaration of fpurge is missing.
31157         * tests/test-fpurge.c (main): Check that the file has not more contents
31158         than expected. Close the file before removing it.
31159
31160 2009-08-15  Eric Blake  <ebb9@byu.net>
31161
31162         fpurge: don't wrap working cygwin implementation
31163         * lib/fpurge.c (fpurge): Fix comment typo.
31164         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31165         1.7 to avoid replacement.
31166         * tests/test-fpurge.c (main): Enhance test.
31167
31168 2009-08-15  Eric Blake  <ebb9@byu.net>
31169         and Jim Meyering  <meyering@redhat.com>
31170
31171         test-update-copyright: skip if perl is insufficient
31172         * tests/test-update-copyright.sh: Failure to run maintainer tool
31173         should not cause testsuite failure on cygwin 1.5.
31174
31175 2009-08-14  Eric Blake  <ebb9@byu.net>
31176
31177         doc: mention more functions added in cygwin 1.7.0
31178         * doc/posix-headers/limits.texi (limits.h): Update for recent
31179         cygwin additions.
31180         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31181         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31182         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31183         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31184         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31185
31186 2009-08-14  Eric Blake  <ebb9@byu.net>
31187
31188         maint.mk: simplify update-copyright rule
31189         * top/maint.mk (update-copyright-local): Delete, and document how
31190         to do it in cfg.mk instead.
31191         (update-copyright-exclude-regexp): Delete, and document how to do
31192         it in .x-update-copyright instead.
31193         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31194         exclude ChangeLog.
31195
31196 2009-08-14  Bruno Haible  <bruno@clisp.org>
31197
31198         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31199
31200 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31201
31202         maint.mk: support update-copyright-env
31203         * top/maint.mk (update-copyright-env): Define place-holder.
31204         (update-copyright): Expand $(update-copyright-env) before
31205         invoking update-copyright.
31206
31207 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31208
31209         update-copyright: implement forced reformatting
31210         * build-aux/update-copyright: Implement and document
31211         UPDATE_COPYRIGHT_FORCE.
31212         * tests/test-update-copyright.sh: Test it.
31213
31214 2009-08-14  Eric Blake  <ebb9@byu.net>
31215         and Bruno Haible  <bruno@clisp.org>
31216
31217         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31218         * tests/test-locale.c: Revert previous patch related to NULL.
31219         * tests/test-stdio.c: Likewise.
31220         * tests/test-stdlib.c: Likewise.
31221         * tests/test-string.c: Likewise.
31222         * tests/test-unistd.c: Likewise.
31223         * modules/time-tests (Depends-on): Add verify.
31224         * modules/wchar-tests (Depends-on): Likewise.
31225         * tests/test-time.c: Test for NULL compliance.
31226         * tests/test-wchar.c: Likewise.
31227         * modules/locale (Depends-on): Add stddef.
31228         * modules/stdio (Depends-on): Likewise.
31229         * modules/stdlib (Depends-on): Likewise.
31230         * modules/string (Depends-on): Likewise.
31231         * modules/time (Depends-on): Likewise.
31232         * modules/unistd (Depends-on): Likewise.
31233         * modules/wchar (Depends-on): Likewise.
31234         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31235         * lib/stdlib.in.h (includes): Likewise.
31236         * lib/string.in.h (includes): Likewise.
31237         * lib/time.in.h (includes): Likewise.
31238         * lib/unistd.in.h (includes): Likewise.
31239         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31240         replaced.
31241         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31242         * m4/stddef_h.m4: New file.
31243         * modules/stddef: Likewise.
31244         * lib/stddef.in.h: Likewise.
31245         * modules/stddef-tests: Likewise.
31246         * tests/test-stddef.c: Likewise.
31247         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31248         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31249         * doc/posix-headers/locale.texi (locale.h): Likewise.
31250         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31251         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31252         * doc/posix-headers/string.texi (string.h): Likewise.
31253         * doc/posix-headers/time.texi (time.h): Likewise.
31254         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31255         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31256
31257 2009-08-14  Eric Blake  <ebb9@byu.net>
31258
31259         doc: improve git diff of texinfo files
31260         * .gitattributes: Add rule for *.texi files, with hint on how to
31261         use it.
31262         Copied from m4, and based on a report by Bruno Haible.
31263
31264 2009-08-14  Bruno Haible  <bruno@clisp.org>
31265
31266         Disable multithread support by default on Cygwin 1.5.x for real.
31267         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31268
31269 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31270
31271         update-copyright: much ado about intervals
31272         * build-aux/update-copyright: Implement and document
31273         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31274         of copyright year intervals.
31275         Also, document UPDATE_COPYRIGHT_YEAR.
31276         * tests/test-update-copyright.sh: Test it.
31277
31278         update-copyright: convert 2-digit to 4-digit years
31279         * build-aux/update-copyright: Implement and document.
31280         * tests/test-update-copyright.sh: Update.
31281
31282 2009-08-14  Jim Meyering  <meyering@redhat.com>
31283
31284         test-exclude: avoid coreutils "make check" failure
31285         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31286         just as in test-argmatch.c.
31287
31288 2009-08-13  Eric Blake  <ebb9@byu.net>
31289
31290         test-dup2: fix bad assumption
31291         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31292         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31293
31294         test-version-etc: fix CRLF portability issue
31295         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31296         recognize \r.
31297         * tests/test-argp-version-etc-1.sh: Likewise.
31298
31299         getopt: update client modules
31300         * modules/argp (Depends-on): Use getopt-gnu.
31301         * modules/git-merge-changelog (Depends-on): Likewise.
31302         * modules/long-options (Depends-on): Likewise.
31303         * modules/xstrtol (Depends-on): 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.  Don't fail on CRLF differences.  Rewrite to use
31309         multiple -e instead of multiple sed forks, suggested by Eric Blake
31310         <ebb9@byu.net>.
31311         * tests/test-argp-version-etc-1.sh: Likewise.
31312
31313 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31314
31315         * tests/test-version-etc.sh: Don't fail on different
31316         project/version.
31317
31318 2009-08-12  Bruno Haible  <bruno@clisp.org>
31319
31320         Tests for modules 'getopt-posix', 'getopt-gnu'.
31321         * modules/getopt-posix-tests: New file.
31322         * tests/test-getopt.c: New file.
31323         * tests/test-getopt.h: New file.
31324         * tests/test-getopt_long.h: New file.
31325
31326         New modules 'getopt-posix', 'getopt-gnu'.
31327         * modules/getopt-gnu: New file, renamed from modules/getopt.
31328         * modules/getopt-posix: New file.
31329         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31330         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31331         (gl_GETOPT): Remove macro.
31332         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31333         Disable the test against BSD systems that declare optreset. Test
31334         against mingw bug. Test against lack of support of optional arguments
31335         on many platforms.
31336         * doc/glibc-headers/getopt.texi: Update module name and list of
31337         relevant platforms.
31338         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31339         'getopt-gnu' and more portability problems.
31340         * NEWS: Mention the changes.
31341
31342 2009-08-12  Bruno Haible  <bruno@clisp.org>
31343
31344         Ensure that optarg etc. get declared by <unistd.h>.
31345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31346         AC_USE_SYSTEM_EXTENSIONS.
31347         * modules/getopt (Depends-on): Add 'extensions'.
31348
31349 2009-08-12  Bruno Haible  <bruno@clisp.org>
31350
31351         Avoid test link errors.
31352         * modules/pipe-filter-ii-tests (Makefile.am): Define
31353         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31354         * modules/pipe-filter-gi-tests (Makefile.am): Define
31355         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31357
31358 2009-08-12  Bruno Haible  <bruno@clisp.org>
31359
31360         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31361         gl_GETOPT_SUBSTITUTE before.
31362         (gl_GETOPT): Use it.
31363         * m4/argp.m4 (gl_ARGP): Update.
31364         Reported by Sergey Poznyakoff.
31365
31366         * m4/getopt.m4: Reorder macros.
31367         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31368         (gl_GETOPT_SUBSTITUTE): Remove macro.
31369
31370 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31371
31372         Minor improvement in gitlog-to-changelog
31373
31374         * build-aux/gitlog-to-changelog: New option `--format' makes
31375         output format string configurable.
31376
31377 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31378
31379         Optimize exclude: use hash tables for non-wildcard patterns.
31380
31381         * lib/exclude.c: Include hash.h and mbuiter.h
31382         (struct exclude_pattern, exclude_segment): New data types.
31383         (struct exclude): Rewrite.
31384         (fnmatch_pattern_has_wildcards): New function.
31385         (new_exclude_segment, free_exclude_segment): New functions.
31386         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31387         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31388         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31389         * modules/exclude: Depend on hash and mbuiter.
31390
31391         * modules/exclude-tests: New file.
31392         * tests/test-exclude.c: New file.
31393         * tests/test-exclude1.sh: New file.
31394         * tests/test-exclude2.sh: New file.
31395         * tests/test-exclude3.sh: New file.
31396         * tests/test-exclude4.sh: New file.
31397         * tests/test-exclude5.sh: New file.
31398         * tests/test-exclude6.sh: New file.
31399         * tests/test-exclude7.sh: New file.
31400
31401 2009-08-12  Bruno Haible  <bruno@clisp.org>
31402
31403         Ensure that getopt() gets declared by <unistd.h>.
31404         * lib/unistd.in.h: Conditionally include getopt.h.
31405         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31406         Set GNULIB_UNISTD_H_GETOPT.
31407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31408         GNULIB_UNISTD_H_GETOPT.
31409         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31410
31411 2009-08-12  Bruno Haible  <bruno@clisp.org>
31412
31413         Clarify logic.
31414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31415         gl_replace_getopt instead of GETOPT_H.
31416
31417 2009-08-12  Bruno Haible  <bruno@clisp.org>
31418
31419         * m4/getopt.m4: Add comments.
31420
31421 2009-08-12  Bruno Haible  <bruno@clisp.org>
31422
31423         Disable multithread support by default on Cygwin 1.5.x.
31424         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31425         set gl_use_threads=no if not specified otherwise.
31426
31427 2009-08-11  Bruno Haible  <bruno@clisp.org>
31428
31429         Avoid compilation error on NetBSD 5.0.
31430         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31431         * tests/test-stdio.c: Likewise.
31432         * tests/test-stdlib.c: Likewise.
31433         * tests/test-string.c: Likewise.
31434         * tests/test-unistd.c: Likewise.
31435         Reported by Greg Troxel <gdt@ir.bbn.com>
31436         at <https://savannah.gnu.org/support/?106973>.
31437
31438 2009-08-11  Bruno Haible  <bruno@clisp.org>
31439
31440         * modules/dup2-tests (Depends-on): Remove close.
31441
31442         Undo 2009-07-19 commit.
31443         * modules/acl-tests (Depends-on): Remove close.
31444         * modules/binary-io-tests (Depends-on): Likewise.
31445         * modules/closein-tests (Depends-on): Likewise.
31446         * modules/flock-tests (Depends-on): Likewise.
31447         * modules/fsync-tests (Depends-on): Likewise.
31448         * modules/lseek-tests (Depends-on): Likewise.
31449         * modules/pipe-tests (Depends-on): Likewise.
31450         * modules/posix_spawn-tests (Depends-on): Likewise.
31451         * modules/posix_spawnp-tests (Depends-on): Likewise.
31452         * modules/stat-time-tests (Depends-on): Likewise.
31453         * modules/yesno-tests (Depends-on): Likewise.
31454
31455 2009-08-10  Bruno Haible  <bruno@clisp.org>
31456
31457         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31458
31459 2009-08-10  Bruno Haible  <bruno@clisp.org>
31460
31461         Fix a gcc warning.
31462         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31463
31464 2009-08-10  Bruno Haible  <bruno@clisp.org>
31465
31466         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31467         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31468         not only the first time.
31469         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31470         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31471         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31472         is 1, not only the the first time.
31473
31474 2009-08-10  Bruno Haible  <bruno@clisp.org>
31475
31476         Make it possible to use module 'gethostname' without module 'close'.
31477         * lib/unistd.in.h (close): Evoke a link error only if
31478         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31480         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31481         * modules/unistd (Makefile.am): Substitute
31482         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31483         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31484         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31486         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31487         * modules/sys_ioctl (Makefile.am): Substitute
31488         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31489         * modules/socket (configure.ac): On native Windows, set
31490         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31491         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31492         Reported by Sam Steingold <sds@gnu.org>.
31493
31494 2009-08-10  Bruno Haible  <bruno@clisp.org>
31495
31496         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31497         * modules/ioctl (configure.ac): Likewise.
31498
31499 2009-08-10  Bruno Haible  <bruno@clisp.org>
31500
31501         Avoid collision between gnulib wrapper and libintl wrapper.
31502         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31503         already defined in intl/printf.c.
31504         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31505         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31506
31507 2009-08-09  Bruno Haible  <bruno@clisp.org>
31508
31509         Make <sys/select.h> really self-contained, also on Solaris 10.
31510         * lib/sys_select.in.h: Include <string.h>.
31511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31512         Solaris 10 problem.
31513         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31514         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31515         Reported by Jim Meyering.
31516
31517 2009-08-09  Bruno Haible  <bruno@clisp.org>
31518
31519         Avoid warnings from 'aclocal' that are due to a use of macro name
31520         AM_XGETTEXT_OPTION that is not defined in automake.
31521         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31522         automake.
31523         * modules/error (configure.ac): Likewise.
31524         * modules/propername (configure.ac): Likewise.
31525         * modules/vasprintf (configure.ac): Likewise.
31526         * modules/verror (configure.ac): Likewise.
31527         * modules/xprintf (configure.ac): Likewise.
31528         * modules/xvasprintf (configure.ac): Likewise.
31529
31530 2009-08-08  Bruno Haible  <bruno@clisp.org>
31531
31532         Avoid compilation error in C++ mode.
31533         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31534         Reported by Sam Steingold <sds@gnu.org>.
31535
31536 2009-08-08  Bruno Haible  <bruno@clisp.org>
31537
31538         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31539         for the various Unix platforms.
31540         * doc/posix-headers/limits.texi: Update platforms list regarding
31541         HOST_NAME_MAX.
31542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31543
31544 2009-08-07  Jim Meyering  <meyering@redhat.com>
31545
31546         selinux-at: fix typo in a comment
31547         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31548         Spotted by Paolo Bonzini.
31549
31550         selinux-at: remove redundant m4 code, add documentation
31551         * modules/selinux-at (configure.ac): Remove redundant code.
31552         LIB_SELINUX is already set via the dependent module, selinux-h.
31553         (Include): Add quotes around selinux-at.h.
31554         * lib/selinux-at.h: Add documentation.
31555         Reported by Bruno Haible in
31556         http://marc.info/?l=gnulib-bug&m=124958988300749
31557
31558 2009-08-07  Bruno Haible  <bruno@clisp.org>
31559
31560         Avoid link error on MacOS X 10.3 and 10.4.
31561         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31562         on non-ELF systems.
31563         * lib/argp-pv.c (argp_program_version): Likewise.
31564         Reported by Simon Josefsson.
31565
31566 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31567
31568         * tests/test-version-etc.sh: Use $EXEEXT.
31569
31570 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31571
31572         update-copyright: update documentation to point to maint.mk
31573         * build-aux/update-copyright: Here.
31574
31575 2009-08-06  Jim Meyering  <meyering@redhat.com>
31576
31577         maint.mk: support update-copyright-local
31578         * top/maint.mk (update-copyright-local): Define place-holder.
31579         (update-copyright): Depend on $(update-copyright-local).
31580
31581 2009-08-06  Jim Meyering  <meyering@redhat.com>
31582
31583         selinux-at: new module
31584         Initially written for coreutils, this module will soon be
31585         used by findutils, too.
31586         * MODULES.html.sh [Misc]: Add selinux-at.
31587         * lib/selinux-at.h: New file, from coreutils.
31588         * lib/selinux-at.c: Likewise.
31589         * modules/selinux-at: Likewise.
31590         (License): Change from LGPL to GPL, since it depends
31591         on the GPL'd openat module.
31592
31593         doc: update README
31594         * README: Remove references to cogito.
31595         Remove cvs-repo-updating instructions from 2007.
31596         Don't imply that CVS is better if you have limited disk space.
31597
31598 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31599
31600         update-copyright: support C-style comments
31601         * build-aux/update-copyright: Implement and document.
31602         * tests/test-update-copyright.sh: Test.
31603
31604 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31605
31606         update-copyright: support omitted "(C)"
31607         * build-aux/update-copyright: Implement and document.  Also,
31608         allow variable whitespace before "(C)".
31609         * tests/test-update-copyright.sh: Test.
31610
31611 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31612
31613         update-copyright: don't trip on non-FSF copyright statements
31614         * build-aux/update-copyright: Fix so that the first correctly
31615         formatted FSF copyright statement is recognized no matter what
31616         appears before it.  Update documentation.
31617         * tests/test-update-copyright.sh: Test that.
31618
31619 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31620
31621         update-copyright: clean up code a little
31622         * build-aux/update-copyright: Append "_re" to the name of any
31623         variable holding a regular expression.
31624         Replace "old" and "new" with "stmt" in variable names.
31625         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31626         handled correctly.
31627         Format code more consistently.
31628
31629 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31630
31631         update-copyright-tests: improve portability
31632         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31633         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31634
31635 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31636
31637         update-copyright: support @copyright{} and &copy;
31638         * build-aux/update-copyright: Implement and document.
31639         * tests/test-update-copyright.sh: Test.
31640
31641 2009-08-04  Jim Meyering  <meyering@redhat.com>
31642
31643         update-copyright-tests: correctly test EOL=\r\n handling
31644         * tests/test-update-copyright.sh: Put \r at the end of some lines
31645         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31646
31647         maint.mk: make update-copyright exclusion list more configurable
31648         * top/maint.mk (update-copyright): Default to excluding COPYING,
31649         but allow an override, in case someone does want to update that file.
31650
31651         maint.mk: don't update copyright date in COPYING
31652         * top/maint.mk (update-copyright): Exclude COPYING.
31653
31654         maint.mk: add a copyright-updating rule
31655         * top/maint.mk (update-copyright): New rule.
31656         Derived from coreutils/Makefile.am.
31657
31658         update-copyright: rename some variables
31659         * build-aux/update-copyright: Rename a few variables for clarity.
31660         Tweak syntax.  List Joel E. Denny as coauthor.
31661
31662 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31663
31664         update-copyright: fix bug for 2-digit last year and add tests
31665         * build-aux/update-copyright: Fix bug.
31666         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31667         specified.
31668         * modules/update-copyright-tests: New
31669         * tests/test-update-copyright.sh: New.
31670
31671 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31672
31673         update-copyright: handle leading tabs in line prefix
31674         * build-aux/update-copyright: Count leading tabs as 8 spaces
31675         when computing margin.  This helps with the formatting of
31676         ChangeLogs, for example.
31677         Fix documentation a little.
31678
31679 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31680
31681         update-copyright: support EOL=\r\n
31682         * build-aux/update-copyright: Implement that.
31683
31684 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31685
31686         update-copyright: automatically format copyright statements
31687         * build-aux/update-copyright: Implement that.
31688         Also, be a little more predictable and safer by always failing
31689         when the full copyright format is not perfectly recognized as an
31690         unbroken whole.  Discussed at
31691         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31692         Rewrite documentation.
31693
31694 2009-08-03  Bruno Haible  <bruno@clisp.org>
31695
31696         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31697
31698 2009-08-02  Bruno Haible  <bruno@clisp.org>
31699
31700         Tests for module 'uname'.
31701         * modules/uname-tests: New file.
31702         * tests/test-uname.c: New file.
31703
31704         New module 'uname'.
31705         * lib/uname.c: New file.
31706         * m4/uname.m4: New file.
31707         * modules/uname: New file.
31708         * doc/posix-functions/uname.texi: Mention the new module.
31709
31710 2009-08-02  Bruno Haible  <bruno@clisp.org>
31711
31712         Tests for module 'sys_utsname'.
31713         * modules/sys_utsname-tests: New file.
31714         * tests/test-sys_utsname.c: New file.
31715
31716         New module 'sys_utsname'.
31717         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31718         * m4/sys_utsname_h.m4: New file.
31719         * modules/sys_utsname: New file.
31720         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31721
31722 2009-08-02  Bruno Haible  <bruno@clisp.org>
31723
31724         Implicitly initialize the sockets library.
31725         * lib/gethostname.c: Include sockets.h.
31726         (rpl_gethostname): Invoke gl_sockets_startup.
31727         * lib/socket.c: Include sockets.h.
31728         (rpl_socket): Invoke gl_sockets_startup.
31729         * modules/gethostname (Depends-on): Add sockets.
31730         * modules/socket (Depends-on): Likewise.
31731         * tests/test-poll.c: Don't include sockets.h.
31732         (main): Don't invoke gl_sockets_startup.
31733         * tests/test-select.c: Don't include sockets.h.
31734         (main): Don't invoke gl_sockets_startup.
31735
31736 2009-08-02  Bruno Haible  <bruno@clisp.org>
31737
31738         Allow multiple calls to gl_sockets_startup.
31739         * lib/sockets.c (initialized_sockets_version): New variable.
31740         (gl_sockets_startup): Do nothing if already called for this or a higher
31741         version.
31742         (gl_sockets_cleanup): Reset initialized_sockets_version.
31743
31744 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31745
31746         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31747         different project/version.
31748
31749 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31750             Bruno Haible  <bruno@clisp.org>
31751
31752         Tests for module 'pipe-filter-gi'.
31753         * modules/pipe-filter-gi-tests: New file.
31754         * tests/test-pipe-filter-gi1.sh: New file.
31755         * tests/test-pipe-filter-gi1.c: New file.
31756         * tests/test-pipe-filter-gi2.sh: New file.
31757         * tests/test-pipe-filter-gi2-main.c: New file.
31758         * tests/test-pipe-filter-gi2-child.c: New file.
31759
31760         New module 'pipe-filter-gi'.
31761         * lib/pipe-filter-gi.c: New file.
31762         * modules/pipe-filter-gi: New file.
31763
31764 2009-08-02  Bruno Haible  <bruno@clisp.org>
31765             Paolo Bonzini  <bonzini@gnu.org>
31766
31767         Tests for module 'pipe-filter-ii'.
31768         * modules/pipe-filter-ii-tests: New file.
31769         * tests/test-pipe-filter-ii1.sh: New file.
31770         * tests/test-pipe-filter-ii1.c: New file.
31771         * tests/test-pipe-filter-ii2.sh: New file.
31772         * tests/test-pipe-filter-ii2-main.c: New file.
31773         * tests/test-pipe-filter-ii2-child.c: New file.
31774
31775         New module 'pipe-filter-ii'.
31776         * lib/pipe-filter.h: New file.
31777         * lib/pipe-filter-ii.c: New file.
31778         * lib/pipe-filter-aux.h: New file.
31779         * modules/pipe-filter-ii: New file.
31780
31781 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31782
31783         * lib/gc-libgcrypt.c: Change copyright to FSF.
31784         * lib/gc-gnulib.c: Likewise.
31785
31786 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31787
31788         * lib/gethostname.c: Include limits.h.
31789
31790 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31791             Bruno Haible  <bruno@clisp.org>
31792
31793         Ensure HOST_NAME_MAX as part of the gethostname module.
31794         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31795         define also HOST_NAME_MAX.
31796         * tests/test-gethostname.c: Include <limits.h>.
31797         (main): Check also HOST_NAME_MAX.
31798         * doc/posix-headers/limits.texi: Document the mingw problem.
31799
31800 2009-08-02  Bruno Haible  <bruno@clisp.org>
31801
31802         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31803         Add comments.
31804
31805 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31806
31807         * lib/gethostname.c: Add Windows wrapper.
31808         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31809         * modules/gethostname: Depend on sys_socket & errno, for also
31810         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31811         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31812
31813 2009-07-31  Jim Meyering  <meyering@redhat.com>
31814
31815         getloadavg: fix symbol name in comment
31816         * lib/getloadavg.c: Correct a typo I introduced when adding
31817         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31818         Matt Kraai spotted the problem.
31819
31820 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31821
31822         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31823         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31824         code also if ! defined N_NAME_POINTER.
31825         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31826         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31827         but the n_name member is a 12-byte array.
31828
31829 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31830
31831         update-copyright: generalize comment handling
31832         * build-aux/update-copyright: Handle copyright statements
31833         within more comment styles.
31834         Document usage.
31835         Report any file with an external copyright holder or parse failure.
31836
31837 2009-07-29  Jim Meyering  <meyering@redhat.com>
31838
31839         mktime: correct setting of REPLACE_MKTIME
31840         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31841
31842         update-copyright: new module
31843         * modules/update-copyright: New file.
31844         * build-aux/update-copyright: New file.
31845         * MODULES.html.sh (maint+release support): Add update-copyright.
31846
31847 2009-07-27  Bruno Haible  <bruno@clisp.org>
31848
31849         Fix compilation error when <ctime> is used and mktime is replaced.
31850         * lib/time.in.h (mktime): New declaration.
31851         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31852         REPLACE_MKTIME instead of defining mktime in config.h.
31853         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31854         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31855         Reported by Ross McFarland <rwmcfa1@neces.com>.
31856
31857 2009-07-27  Bruno Haible  <bruno@clisp.org>
31858
31859         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31860         Reported by Matt Kraai <mkraai@beckman.com>.
31861
31862 2009-07-25  Jim Meyering  <meyering@redhat.com>
31863
31864         maint.mk: avoid warnings about missing files
31865         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31866         diagnostic when .prev-version does not exist.
31867         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31868         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31869         nonexistent cfg.mk.
31870         Suggestions from Simon Josefsson.
31871
31872 2009-07-25  Bruno Haible  <bruno@clisp.org>
31873
31874         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31875         defined as macros. Needed on QNX 6.4.1.
31876         Reported by Matt Kraai <mkraai@beckman.com>.
31877
31878 2009-07-23  Jim Meyering  <meyering@redhat.com>
31879
31880         maint.mk: invoke "make dist" with a working value of XZ_OPT
31881         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31882
31883 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31884
31885         Make fseeko.c compile on QNX.
31886         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31887
31888 2009-07-22  Peter Simons  <simons@cryp.to>
31889
31890         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31891         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31892         * lib/md4.h: Likewise.
31893         * lib/md5.h: Likewise.
31894         * lib/sha1.h: Likewise.
31895         * lib/sha256.h: Likewise.
31896         * lib/sha512.h: Likewise.
31897
31898         tests-sha1: don't assign literal string to 'char *' variable
31899         * tests/test-sha1.c (main): Declare locals with "const" to match
31900         attributes of the right hand side.
31901
31902 2009-07-21  Eric Blake  <ebb9@byu.net>
31903
31904         dup2: fix more mingw problems
31905         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31906         fd to itself.
31907         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31908         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31909         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31910         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31911         care of mingw bugs.
31912
31913 2009-07-21  Jim Meyering  <meyering@redhat.com>
31914
31915         vc-list-files: avoid failure when /bin/sh is dash
31916         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31917         On some Debian based systems, /bin/sh is a symlink to dash, and running
31918         this command would omit the "/" following each 'tests' prefix:
31919           dash -x build-aux/vc-list-files -C . tests
31920         That is because bash and dash work differently:
31921           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31922           bash ok
31923           dash odd
31924
31925 2009-07-21  Eric Blake  <ebb9@byu.net>
31926
31927         dup2-tests: test previous patch
31928         * modules/dup2-tests: New file.
31929         * tests/test-dup2.c: Likewise.
31930         * tests/test-open.c (main): Avoid unspecified behavior.
31931         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31932         test.
31933
31934         dup2: work around mingw and cygwin 1.5 bug
31935         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31937         * modules/unistd (Makefile.am): Substitute it.
31938         * lib/unistd.in.h (dup2): Declare the replacement.
31939         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31940         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31941         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31942         * modules/execute (Depends-on): Add dup2.
31943         * modules/fseterr (Depends-on): Likewise.
31944         * modules/pipe (Depends-on): Likewise.
31945         * modules/posix_spawn-internal (Depends-on): Likewise.
31946
31947 2009-07-21  Bruno Haible  <bruno@clisp.org>
31948
31949         * modules/.gitattributes: New file.
31950
31951 2009-07-20  Bruno Haible  <bruno@clisp.org>
31952
31953         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31954         (main): Use it.
31955
31956 2009-07-20  Eric Blake  <ebb9@byu.net>
31957
31958         test-pipe: make a bit more robust.
31959         * tests/test-pipe.c (myerr): Allow error messages regardless of
31960         what we do to stderr.
31961         (test_pipe): Rearrange to avoid deadlock.
31962         (child_main): Try a larger read, to ensure we avoided deadlock.
31963         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31964         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31965         if misused.
31966
31967 2009-07-19  Jim Meyering  <meyering@redhat.com>
31968
31969         fts: avoid false-positive cycle-detection
31970         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31971         for each new command line argument.
31972
31973 2009-07-19  Bruno Haible  <bruno@clisp.org>
31974
31975         Fix build error on mingw with the modules sys_select and unistd.
31976         * modules/acl-tests (Depends-on): Add close.
31977         * modules/binary-io-tests (Depends-on): Likewise.
31978         * modules/closein-tests (Depends-on): Likewise.
31979         * modules/flock-tests (Depends-on): Likewise.
31980         * modules/fsync-tests (Depends-on): Likewise.
31981         * modules/lseek-tests (Depends-on): Likewise.
31982         * modules/pipe-tests (Depends-on): Likewise.
31983         * modules/posix_spawn-tests (Depends-on): Likewise.
31984         * modules/posix_spawnp-tests (Depends-on): Likewise.
31985         * modules/stat-time-tests (Depends-on): Likewise.
31986         * modules/yesno-tests (Depends-on): Likewise.
31987
31988 2009-07-19  Bruno Haible  <bruno@clisp.org>
31989
31990         Unify conditionals.
31991         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31992         macros, not at the compiler macros.
31993         * lib/pipe.c: Likewise.
31994         * lib/execute.c: Likewise.
31995         * lib/spawni.c: Likewise.
31996
31997 2009-07-19  Bruno Haible  <bruno@clisp.org>
31998
31999         Fix handling of closed stdin/stdout/stderr on mingw.
32000         * lib/w32spawn.h: Include unistd.h.
32001         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32002         file descriptor with O_NOINHERIT flag.
32003         (fd_safer_noinherit): New function, based on fd-safer.c.
32004         (dup_safer_noinherit): New function, based on dup-safer.c.
32005         (undup_safer_noinherit): New function.
32006         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32007         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32008         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32009         instead of fd_safer.
32010         * tests/test-pipe.c: Include <windows.h>.
32011         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32012         result.
32013
32014         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32015         from main.
32016         (test_pipe): Pass an extra argument for disambiguation.
32017         (main): Invoke parent_main or child_main.
32018
32019         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32020         consistently.
32021
32022 2009-07-18  Eric Blake  <ebb9@byu.net>
32023
32024         test-pipe: fix mingw build
32025         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32026
32027 2009-07-18  Bruno Haible  <bruno@clisp.org>
32028
32029         * modules/pipe-tests (Makefile.am): Fix typo.
32030
32031 2009-07-18  Eric Blake  <ebb9@byu.net>
32032
32033         error: fix mingw build
32034         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32035         Reported by Bruno Haible.
32036
32037         error: avoid undefined use of stdout
32038         * lib/error.c (error, error_at_line): Check that fd 1 is open
32039         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32040         is handling faults and the close_stdout module wants to report the
32041         detection of closed stdout as an error.
32042
32043 2009-07-17  Eric Blake  <ebb9@byu.net>
32044
32045         pipe: be robust in face of closed fds
32046         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32047         should cause child to misbehave.
32048         * modules/pipe-tests: New module.
32049         * tests/test-pipe.c: New file.
32050         * tests/test-pipe.sh: New file.
32051         Reported by Akim Demaille.
32052
32053 2009-07-14  Bruno Haible  <bruno@clisp.org>
32054
32055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32056         Reported by anonymous kc.
32057
32058 2009-07-07  Jim Meyering  <meyering@redhat.com>
32059
32060         maint.mk: don't look for translatable strings in *.m4 or *.mk
32061         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32062         when searching for translatable strings.
32063
32064 2009-07-05  Jim Meyering  <meyering@redhat.com>
32065
32066         remove superfluous parentheses in STREQ definition
32067         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32068         * lib/getugroups.c (STREQ): Likewise.
32069         * lib/fnmatch.c (STREQ): Likewise.
32070         Spotted by Bruno Haible.
32071
32072 2009-07-04  Jim Meyering  <meyering@redhat.com>
32073
32074         argv-iter: new module
32075         * MODULES.html.sh: Add argv-iter.
32076         * lib/argv-iter.c, lib/argv-iter.h: New files.
32077         * modules/argv-iter: New file.
32078         * modules/argv-iter-tests: New file.
32079         * tests/test-argv-iter.c: Test it.
32080
32081 2009-07-04  Bruno Haible  <bruno@clisp.org>
32082
32083         Fix assertion.
32084         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32085         contains more exact copies of a given entry than file2, leave the extra
32086         copies unpaired rather than aborting.
32087         Reported by Eric Blake.
32088
32089 2009-07-02  Bruno Haible  <bruno@clisp.org>
32090
32091         Speedup git-merge-changelog for git cherry-pick.
32092         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32093         (entries_mapping_get): New function, extracted from compute_mapping.
32094         (entries_mapping_reverse_get): New function.
32095         (compute_mapping): Add a 'full' argument. Return the result in a
32096         'struct entries_mapping'.
32097         (main): Update. Access the mappings through entries_mapping_get.
32098         Reported by Eric Blake.
32099
32100 2009-07-02  Bruno Haible  <bruno@clisp.org>
32101
32102         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32103         best_i.
32104
32105 2009-07-02  Bruno Haible  <bruno@clisp.org>
32106
32107         Speed up approximate search for matching ChangeLog entries.
32108         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32109         argument. Call fstrcmp_bounded instead of fstrcmp.
32110         (compute_mapping, try_split_merged_entry, main): Update callers.
32111
32112 2009-07-02  Bruno Haible  <bruno@clisp.org>
32113
32114         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32115
32116 2009-06-30  Bruno Haible  <bruno@clisp.org>
32117
32118         Reduce the number of uc_is_cased calls.
32119         * lib/unicase.h (casing_suffix_context_t): Add
32120         'first_char_except_ignorable' field.
32121         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32122         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32123         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32124         Update initializer.
32125         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32126         case-ignorable characters.
32127         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32128         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32129         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32130         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32131         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32132
32133 2009-06-30  Bruno Haible  <bruno@clisp.org>
32134
32135         Tests for module 'unicase/ignorable'.
32136         * modules/unicase/ignorable-tests: New file.
32137         * tests/unicase/test-ignorable.c: New file, generated by
32138         gen-uni-tables.
32139
32140         Tests for module 'unicase/cased'.
32141         * modules/unicase/cased-tests: New file.
32142         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32143         * tests/unicase/test-predicate-part1.h: New file, derived from
32144         tests/unictype/test-predicate-part1.h.
32145         * tests/unicase/test-predicate-part2.h: New file, same as
32146         tests/unictype/test-predicate-part2.h.
32147
32148         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32149         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32150         (output_casing_properties): New function.
32151         (main): Call it.
32152         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32153         * lib/unicase/cased.c: Include unictype/bitmap.h.
32154         (uc_is_cased): Define through a bitmap lookup.
32155         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32156         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32157         (uc_is_case_ignorable): Define through a bitmap lookup.
32158         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32159         lib/unictype/bitmap.h.
32160         (Depends-on): Add inline. Clean up.
32161         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32162         lib/unictype/bitmap.h.
32163         (Depends-on): Add inline. Clean up.
32164         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32165         recognition.
32166         * tests/unicase/test-u16-tolower.c (main): Likewise.
32167         * tests/unicase/test-u32-tolower.c (main): Likewise.
32168
32169 2009-06-30  Bruno Haible  <bruno@clisp.org>
32170
32171         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32172         * lib/unicase/u16-casemap.c: Likewise.
32173         * lib/unicase/u32-casemap.c: Likewise.
32174
32175 2009-06-29  Bruno Haible  <bruno@clisp.org>
32176
32177         Define u32_casefold as a wrapper around u32_ct_casefold.
32178         * lib/unicase/u32-casefold.c: Update.
32179         * modules/unicase/u32-casefold (Depends-on): Add
32180         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32181         unicase/empty-suffix-context. Clean up.
32182
32183         Define u16_casefold as a wrapper around u16_ct_casefold.
32184         * lib/unicase/u16-casefold.c: Update.
32185         * modules/unicase/u16-casefold (Depends-on): Add
32186         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32187         unicase/empty-suffix-context. Clean up.
32188
32189         Define u8_casefold as a wrapper around u8_ct_casefold.
32190         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32191         * lib/unicase/u8-casefold.c: Update.
32192         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32193         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32194
32195         Define u32_totitle as a wrapper around u32_ct_totitle.
32196         * lib/unicase/u32-totitle.c: Update.
32197         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32198         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32199
32200         Define u16_totitle as a wrapper around u16_ct_totitle.
32201         * lib/unicase/u16-totitle.c: Update.
32202         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32203         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32204
32205         Define u8_totitle as a wrapper around u8_ct_totitle.
32206         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32207         functions.
32208         (FUNC): Delegate to U_CT_TOTITLE.
32209         * lib/unicase/u8-totitle.c: Update.
32210         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32211         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32212
32213         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32214         invocation.
32215         * modules/unicase/u32-tolower (Depends-on): Add
32216         unicase/empty-prefix-context, unicase/empty-suffix-context.
32217
32218         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32219         invocation.
32220         * modules/unicase/u16-tolower (Depends-on): Add
32221         unicase/empty-prefix-context, unicase/empty-suffix-context.
32222
32223         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32224         * modules/unicase/u8-tolower (Depends-on): Add
32225         unicase/empty-prefix-context, unicase/empty-suffix-context.
32226
32227         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32228         invocation.
32229         * modules/unicase/u32-toupper (Depends-on): Add
32230         unicase/empty-prefix-context, unicase/empty-suffix-context.
32231
32232         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32233         invocation.
32234         * modules/unicase/u16-toupper (Depends-on): Add
32235         unicase/empty-prefix-context, unicase/empty-suffix-context.
32236
32237         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32238         * modules/unicase/u8-toupper (Depends-on): Add
32239         unicase/empty-prefix-context, unicase/empty-suffix-context.
32240
32241         New module 'unicase/u32-ct-casefold'.
32242         * lib/unicase/u32-ct-casefold.c: New file.
32243         * modules/unicase/u32-ct-casefold: New file.
32244
32245         New module 'unicase/u16-ct-casefold'.
32246         * lib/unicase/u16-ct-casefold.c: New file.
32247         * modules/unicase/u16-ct-casefold: New file.
32248
32249         New module 'unicase/u8-ct-casefold'.
32250         * lib/unicase/u8-ct-casefold.c: New file.
32251         * lib/unicase/u-ct-casefold.h: New file, derived from
32252         lib/unicase/u-casefold.h.
32253         * modules/unicase/u8-ct-casefold: New file.
32254
32255         New module 'unicase/u32-ct-totitle'.
32256         * lib/unicase/u32-ct-totitle.c: New file.
32257         * modules/unicase/u32-ct-totitle: New file.
32258
32259         New module 'unicase/u16-ct-totitle'.
32260         * lib/unicase/u16-ct-totitle.c: New file.
32261         * modules/unicase/u16-ct-totitle: New file.
32262
32263         New module 'unicase/u8-ct-totitle'.
32264         * lib/unicase/u8-ct-totitle.c: New file.
32265         * lib/unicase/u-ct-totitle.h: New file, derived from
32266         lib/unicase/u-totitle.h.
32267         * modules/unicase/u8-ct-totitle: New file.
32268
32269         New module 'unicase/u32-ct-tolower'.
32270         * lib/unicase/u32-ct-tolower.c: New file.
32271         * modules/unicase/u32-ct-tolower: New file.
32272
32273         New module 'unicase/u16-ct-tolower'.
32274         * lib/unicase/u16-ct-tolower.c: New file.
32275         * modules/unicase/u16-ct-tolower: New file.
32276
32277         New module 'unicase/u8-ct-tolower'.
32278         * lib/unicase/u8-ct-tolower.c: New file.
32279         * modules/unicase/u8-ct-tolower: New file.
32280
32281         New module 'unicase/u32-ct-toupper'.
32282         * lib/unicase/u32-ct-toupper.c: New file.
32283         * modules/unicase/u32-ct-toupper: New file.
32284
32285         New module 'unicase/u16-ct-toupper'.
32286         * lib/unicase/u16-ct-toupper.c: New file.
32287         * modules/unicase/u16-ct-toupper: New file.
32288
32289         New module 'unicase/u8-ct-toupper'.
32290         * lib/unicase/u8-ct-toupper.c: New file.
32291         * modules/unicase/u8-ct-toupper: New file.
32292
32293         Add context arguments to u*_casemap functions.
32294         * lib/unicase/unicasemap.h: Include unicase.h.
32295         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32296         suffix_context arguments.
32297         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32298         functions.
32299         (FUNC): Add prefix_context and suffix_context arguments. Use
32300         uc_is_cased and uc_is_case_ignorable.
32301         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32302         * lib/unicase/u16-casemap.c: Likewise.
32303         * lib/unicase/u32-casemap.c: Likewise.
32304         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32305         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32306         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32307         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32308         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32309         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32310
32311         New module 'unicase/u32-suffix-context'.
32312         * lib/unicase/u32-suffix-context.c: New file.
32313         * modules/unicase/u32-suffix-context: New file.
32314
32315         New module 'unicase/u16-suffix-context'.
32316         * lib/unicase/u16-suffix-context.c: New file.
32317         * modules/unicase/u16-suffix-context: New file.
32318
32319         New module 'unicase/u8-suffix-context'.
32320         * lib/unicase/u8-suffix-context.c: New file.
32321         * lib/unicase/u-suffix-context.h: New file.
32322         * modules/unicase/u8-suffix-context: New file.
32323
32324         New module 'unicase/empty-suffix-context'.
32325         * lib/unicase/empty-suffix-context.c: New file.
32326         * modules/unicase/empty-suffix-context: New file.
32327
32328         New module 'unicase/u32-prefix-context'.
32329         * lib/unicase/u32-prefix-context.c: New file.
32330         * modules/unicase/u32-prefix-context: New file.
32331
32332         New module 'unicase/u16-prefix-context'.
32333         * lib/unicase/u16-prefix-context.c: New file.
32334         * modules/unicase/u16-prefix-context: New file.
32335
32336         New module 'unicase/u8-prefix-context'.
32337         * lib/unicase/u8-prefix-context.c: New file.
32338         * lib/unicase/u-prefix-context.h: New file.
32339         * lib/unicase/context.h: New file.
32340         * modules/unicase/u8-prefix-context: New file.
32341
32342         New module 'unicase/empty-prefix-context'.
32343         * lib/unicase/empty-prefix-context.c: New file.
32344         * modules/unicase/empty-prefix-context: New file.
32345
32346         New module 'unicase/ignorable'.
32347         * lib/unicase/ignorable.c: New file.
32348         * modules/unicase/ignorable: New file.
32349
32350         New module 'unicase/cased'.
32351         * lib/unicase/caseprop.h: New file.
32352         * lib/unicase/cased.c: New file.
32353         * modules/unicase/cased: New file.
32354
32355         New functions for case mapping of substrings.
32356         * lib/unicase.h (casing_prefix_context_t): New type.
32357         (unicase_empty_prefix_context): New variable.
32358         (u8_casing_prefix_context, u16_casing_prefix_context,
32359         u32_casing_prefix_context, u8_casing_prefixes_context,
32360         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32361         declarations.
32362         (casing_suffix_context_t): New type.
32363         (unicase_empty_suffix_context): New variable.
32364         (u8_casing_suffix_context, u16_casing_suffix_context,
32365         u32_casing_suffix_context, u8_casing_suffixes_context,
32366         u16_casing_suffixes_context, u32_casing_suffixes_context,
32367         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32368         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32369         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32370         declarations.
32371
32372 2009-06-28  Jim Meyering  <meyering@redhat.com>
32373
32374         boostrap: indent only with spaces
32375         * build-aux/bootstrap: Indent only with spaces, never TABs.
32376
32377         bootstrap: split long lines
32378         * build-aux/bootstrap: Keep line length < 80.
32379
32380         bootstrap: sync from coreutils
32381         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32382         just as autoreconf does.  Verify a list of prerequisite
32383         package-name,version-number pairs if defined in bootstrap.conf.
32384         Refer to README-prereq, if prerequisites are not satisfied.
32385
32386 2009-06-27  Eric Blake  <ebb9@byu.net>
32387
32388         tests: add test for bogus NULL definition
32389         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32390         * tests/test-stdlib.c: Likewise.
32391         * tests/test-string.c: Likewise.
32392         * tests/test-locale.c: Likewise.
32393         * tests/test-unistd.c: Likewise.
32394         * modules/stdio-tests (Depends-on): Add verify.
32395         * modules/stdlib-tests (Depends-on): Likewise.
32396         * modules/string-tests (Depends-on): Likewise.
32397         * modules/locale-tests (Depends-on): Likewise.
32398         * modules/unistd-tests (Depends-on): Likewise.
32399
32400 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32401
32402         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32403         self-explaining comment.
32404         * m4/selinux-selinux-h: Update serial.
32405         (gl_LIBSELINUX): New macro, adding a warning for missing development
32406         packages to code extracted from...
32407         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32408         Add warning for missing development packages here, too.
32409
32410 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32411
32412         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32413
32414 2009-06-25  Eric Blake  <ebb9@byu.net>
32415
32416         version-etc: fix regression
32417         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32418         gcc.
32419         (version_etc): Use it, to catch bugs with trailing NULL.
32420         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32421         (version_etc_va): Fix logic bug.
32422         * modules/version-etc-tests: Add test.
32423         * tests/test-version-etc.c: New file.
32424         * tests/test-version-etc.sh: Likewise.
32425
32426 2009-06-25  Sam Steingold  <sds@gnu.org>
32427
32428         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32429         mbtowc declaration.
32430
32431 2009-06-25  Eric Blake  <ebb9@byu.net>
32432
32433         fpurge: migrate into <stdio.h>
32434         * lib/fpurge.h: Delete...
32435         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32436         * lib/fpurge.c (fpurge): Change declaring header.
32437         * modules/fpurge (Files): Drop deleted file.
32438         (Depends-on): Add stdio.
32439         (configure.ac): Set witness.
32440         * modules/stdio (Makefile.am): Support fpurge macros.
32441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32442         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32443         * lib/fflush.c: Update client.
32444         * tests/test-fpurge.c: Likewise.
32445         * NEWS: Mention the change.
32446
32447 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32448
32449         * lib/argp-version-etc.c (program_authors): Add const
32450         qualifier.
32451         * lib/version-etc.c: Fix typos in the comments.
32452         * modules/argp-version-etc: Depends on version-etc.
32453
32454 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32455
32456         argp-version-etc: new module.
32457
32458         * lib/argp-version-etc.c: New file.
32459         * lib/argp-version-etc.h: New file.
32460         * modules/argp-version-etc: New file.
32461         * modules/argp-version-etc-tests: New file.
32462         * tests/test-argp-version-etc.c: New test.
32463         * tests/test-argp-version-etc-1.sh: New test.
32464
32465 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32466
32467         Provide additional interfaces and documentation for version-etc
32468         module.
32469
32470         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32471         interfaces.
32472         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32473         prototypes.
32474
32475 2009-06-24  Bruno Haible  <bruno@clisp.org>
32476
32477         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32478         HAVE_LIB${NAME} macro.
32479         Reported by Sam Steingold <sds@gnu.org>.
32480
32481 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32482
32483         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32484         needed.
32485
32486 2009-06-21  Bruno Haible  <bruno@clisp.org>
32487
32488         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32489         work.
32490         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32491         together with LIB${NAME}, LTLIB${NAME}.
32492         Reported by Sam Steingold <sds@gnu.org>.
32493
32494 2009-06-20  Jim Meyering  <meyering@redhat.com>
32495
32496         tests: make sc_require_test_exit_idiom more generic
32497         * top/maint.mk (Exit_witness_file): New overridable variable.
32498         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32499         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32500
32501 2009-06-19  Jim Meyering  <meyering@redhat.com>
32502
32503         hash: reverse order of src/dst parameters in an internal interface
32504         * lib/hash.c (transfer_entries): Reverse order of parameters to
32505         put DST before SRC.  Adjust callers.
32506
32507         tests: test-hash: avoid wholesale duplication
32508         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32509         Instead, use a loop and add a single conditional.
32510
32511         tests: test-hash: allow seed selection via a command line argument
32512         * tests/test-hash.c (get_seed): New function.
32513         (main): Use it.
32514
32515 2009-06-19  Eric Blake  <ebb9@byu.net>
32516
32517         hash: avoid memory leak on allocation failure
32518         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32519         failure.  Factor repeated algorithm...
32520         (transfer_entries): ...into new helper routine.
32521         (hash_delete): React to hash_rehash return value.
32522
32523         hash: reduce memory pressure in hash_rehash no-op case
32524         * lib/hash.c (next_prime): Avoid overflow.
32525         (hash_initialize): Factor bucket size computation...
32526         (compute_bucket_size): ...into new helper function.
32527         (hash_rehash): Use new function and open coding to reduce memory
32528         pressure, and avoid a memory leak in USE_OBSTACK code.
32529         Reported by Jim Meyering.
32530
32531 2009-06-18  Eric Blake  <ebb9@byu.net>
32532
32533         hash: make rotation more obvious
32534         * modules/hash (Depends-on): Add bitrotate and stdint.
32535         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32536         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32537         (SIZE_MAX): Rely on headers for definition.
32538         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32539         (raw_hasher): Use rotr_sz.
32540         Suggested by Jim Meyering.
32541
32542         hash: fix memory leak in last patch
32543         * lib/hash.c (hash_rehash): Avoid memory leak.
32544
32545         hash: avoid no-op rehashing
32546         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32547
32548         hash: provide default callback functions
32549         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32550         (hash_initialize): Use them as defaults.
32551         * tests/test-hash.c (main): Test this.
32552
32553         hash: minor optimization
32554         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32555         when possible.
32556         (hash_initialize): Document this promise.
32557         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32558         * tests/test-hash.c (hash_compare_strings): Test this.
32559
32560 2009-06-18  Bruno Haible  <bruno@clisp.org>
32561
32562         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32563         going to be replaced anyway.
32564
32565 2009-06-18  Bruno Haible  <bruno@clisp.org>
32566
32567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32568         in one place.
32569         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32570         be replaced anyway.
32571
32572 2009-06-18  Eric Blake  <ebb9@byu.net>
32573
32574         hash: check for resize before insertion
32575         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32576         threshold before insertion, so that a pathological hash_rehash
32577         that fills every bucket can still trigger another rehash.
32578
32579 2009-06-18  Jim Meyering  <meyering@redhat.com>
32580
32581         hash-tests: add a loop around the small tests
32582         * tests/test-hash.c (main): Repeat small tests with selected
32583         small initial table sizes.
32584
32585 2009-06-17  Eric Blake  <ebb9@byu.net>
32586
32587         hash: minor cleanups
32588         * lib/hash.h (hash_entry): Make opaque, by moving...
32589         * lib/hash.c (hash_entry): ...here.
32590         (hash_insert): Clarify restrictions on what can be inserted.
32591         (hash_get_next): Clarify when it is safe to remove an element
32592         during traversal.
32593         (check_tuning): Skip verification when tuning is known safe.
32594         (hash_initialize): Clarify restrictions on tuning.
32595
32596 2009-06-17  Jim Meyering  <jim@meyering.net>
32597         and Eric Blake  <ebb9@byu.net>
32598
32599         hash-tests: new module
32600         * modules/hash-tests: New file.
32601         * tests/test-hash.c: New file.
32602
32603 2009-06-17  Eric Blake  <ebb9@byu.net>
32604
32605         strstr-simple: document new module
32606         * MODULES.html.sh: Document new module.
32607
32608         strstr, strcasestr: replace on platforms with broken memchr
32609         * modules/strstr: Split into...
32610         * modules/strstr-simple: ...new module that does not care about
32611         performance, but does care about glibc bug.
32612         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32613         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32614         if platform memchr is broken, per Debian bug 521737.
32615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32616         memchr.
32617         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32618         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32619         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32620         * modules/mountlist (Depends-on): Add strstr-simple.
32621         * modules/gen-uni-tables (Depends-on): Likewise.
32622         * modules/argz (Depends-on): Add strstr.
32623
32624 2009-06-17  Bruno Haible  <bruno@clisp.org>
32625
32626         * modules/posix_spawn-internal (Depends-on): Add errno.
32627
32628 2009-06-17  Bruno Haible  <bruno@clisp.org>
32629
32630         Define missing ESTALE on Interix 3.5.
32631         * lib/errno.in.h (ESTALE): Assign a value if missing.
32632         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32633         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32634         missing.
32635         * doc/posix-headers/errno.texi: Mention the Interix bug.
32636         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32637
32638 2009-06-15  Eric Blake  <ebb9@byu.net>
32639
32640         memchr, memchr2: add valgrind exception
32641         * lib/memchr.valgrind: New file.
32642         * lib/memchr2.valgrind: New file.
32643         * modules/memchr (Files): Distribute valgrind file.
32644         * modules/memchr2 (Files): Likewise.
32645
32646         docs: memchr is no longer obsolete
32647         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32648         * lib/string.in.h (memchr): Simplify logic.
32649
32650 2009-06-14  Jim Meyering  <meyering@redhat.com>
32651
32652         link-follow: fix the "checking..." message to not mention trailing slash
32653         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32654         never considered trailing slashes.
32655
32656 2009-06-14  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/memchr.m4: Mention also the bug on IA-64.
32659         * doc/posix-functions/memchr.texi: Likewise.
32660
32661 2009-06-12  Eric Blake  <ebb9@byu.net>
32662
32663         memchr: detect broken x86_64 and alpha implementations
32664         * modules/memchr-tests (Depends-on): Move mmap detection...
32665         * modules/memchr (Depends-on): ...here.
32666         (configure.ac): Set indicator.
32667         * lib/string.in.h (memchr): Declare replacement.
32668         * modules/string (Makefile.am): Trigger replacement.
32669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32670         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32671         bugs.
32672         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32673         * modules/getpagesize (License): Relax license.
32674
32675 2009-06-11  Bruno Haible  <bruno@clisp.org>
32676
32677         * lib/idpriv.h: Add more references.
32678
32679 2009-06-08  Bruno Haible  <bruno@clisp.org>
32680
32681         Tests for module 'idpriv-droptemp'.
32682         * modules/idpriv-droptemp-tests: New file.
32683         * tests/test-idpriv-droptemp.sh: New file.
32684         * tests/test-idpriv-droptemp.su.sh: New file.
32685         * tests/test-idpriv-droptemp.c: New file.
32686
32687         New module 'idpriv-droptemp'.
32688         * lib/idpriv-droptemp.c: New file.
32689         * modules/idpriv-droptemp: New file.
32690
32691 2009-06-08  Bruno Haible  <bruno@clisp.org>
32692
32693         Tests for module 'idpriv-drop'.
32694         * modules/idpriv-drop-tests: New file.
32695         * tests/test-idpriv-drop.sh: New file.
32696         * tests/test-idpriv-drop.su.sh: New file.
32697         * tests/test-idpriv-drop.c: New file.
32698
32699         New module 'idpriv-drop'.
32700         * lib/idpriv.h: New file.
32701         * lib-idpriv-drop.c: New file.
32702         * m4/idpriv.m4: New file.
32703         * modules/idpriv-drop: New file.
32704
32705 2009-06-08  Bruno Haible  <bruno@clisp.org>
32706
32707         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32708         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32709         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32710         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32711         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32712         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32713         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32714
32715 2009-06-08  Eric Blake  <ebb9@byu.net>
32716
32717         test-strstr: use memory fence, when possible
32718         * tests/test-strstr.c (main): Use memory fence, in order to be
32719         more likely to trigger Debian bug 521737.
32720         * modules/strstr-tests (Files): Pull in additional files.
32721
32722         memchr: no longer obsolete, for wider field testing
32723         * modules/memchr (Status, Notice): Delete, this module is no
32724         longer obsolete.
32725         * modules/vasnprintf (Depends-on): Add memchr.
32726
32727 2009-06-07  Jim Meyering  <meyering@redhat.com>
32728
32729         hash: declare some functions with the warn_unused_result attribute
32730         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32731
32732 2009-06-07  Bruno Haible  <bruno@clisp.org>
32733
32734         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32735         Reported by Eric Blake.
32736
32737 2009-06-06  Eric Blake  <ebb9@byu.net>
32738
32739         test-alignof: fix typo with long double
32740         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32741         compiler error.
32742
32743 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32744
32745         Escape non-texinfo { and }s.
32746         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32747         markup error.
32748
32749 2009-06-04  Jim Meyering  <meyering@redhat.com>
32750
32751         gitlog-to-changelog: don't infloop on an empty commit log
32752         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32753         Reported by Boris Petersen <transacid@centerim.org>.
32754
32755 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32756
32757         version-etc: extend for packagers
32758         Add three new configure options, intended for packagers:
32759           --with-packager="packager name"
32760           --with-packager-version="packager-specific version"
32761           --with-packager-bug-reports="packager bug reporting"
32762         An example with coreutils:
32763           $ ./configure \
32764             --with-packager=Gentoo \
32765             --with-packager-bug-report=http://bugs.gentoo.org/ \
32766             --with-packager-version="patchset 1.6"
32767           $ ./src/ls --version | head -n2
32768           ls (GNU coreutils) 7.1-dirty
32769           Packaged by Gentoo (patchset 1.6)
32770         Note that the bug reporting info via --help doesn't show up because
32771         coreutils uses its own custom emit_bug_reporting_address() implementation
32772         in src/system.h.  If it didn't, it'd look like:
32773           $ ./src/ls --help | tail -n4
32774           Report bugs to <bug-coreutils@gnu.org>.
32775           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32776           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32777           General help using GNU software: <http://www.gnu.org/gethelp/>.
32778         * lib/version-etc.c: Print new information, if provided.
32779         * m4/version-etc.m4: New file.
32780         * modules/version-etc (Files): Add m4/version-etc.m4.
32781         (configure.ac): Add gl_VERSION_ETC.
32782
32783 2009-05-31  Bruno Haible  <bruno@clisp.org>
32784
32785         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32786         and 'int64_t'.
32787         * modules/alignof-tests (Dependencies): Add stdint.
32788         Reported by Eric Blake.
32789
32790 2009-05-31  Bruno Haible  <bruno@clisp.org>
32791
32792         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32793         restriction due to compiler bugs.
32794         Reported by Eric Blake.
32795
32796 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32797             Bruno Haible  <bruno@clisp.org>
32798
32799         Fix test-alignof failure.
32800         * lib/alignof.h (alignof_slot): New macro.
32801         (alignof_type): New macro, with the same semantics as the previous
32802         'alignof'.
32803         (alignof): Alias to alignof_slot.
32804         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32805         check that the results are usable as constant expressions.
32806
32807 2009-05-31  Bruno Haible  <bruno@clisp.org>
32808
32809         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32810         * tests/test-memchr.c (main): Check that memchr does not read past the
32811         first occurrence of the byte.
32812         * tests/test-strstr.c (main): Update comment.
32813         Suggested by Eric Blake.
32814
32815 2009-05-30  Bruno Haible  <bruno@clisp.org>
32816
32817         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32818         detail how to use dumpbin.
32819         Reported by David Byron <dbyron@dbyron.com>.
32820
32821 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32822
32823         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32824
32825 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32826
32827         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32828
32829 2009-05-28  Bruno Haible  <bruno@clisp.org>
32830
32831         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32832         build-aux/ files.
32833
32834 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32835
32836         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32837
32838 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32839
32840         * gnulib-tool (sed_transform_main_lib_file)
32841         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32842         regexps.
32843
32844 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32845
32846         * tests/test-strstr.c: Add another self-test.
32847         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32848         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32849
32850 2009-05-23  Bruno Haible  <bruno@clisp.org>
32851
32852         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32853         change.
32854
32855 2009-05-21  Bruno Haible  <bruno@clisp.org>
32856
32857         Simplify use of mode_t varargs.
32858         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32859         uses 'mode_t' or 'int'.
32860         * lib/openat.c (openat): Likewise.
32861         * lib/open-safer.c (open_safer): Likewise.
32862         * m4/mode_t.m4: New file.
32863         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32864         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32865         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32866         * modules/open (Files): Add m4/mode_t.m4.
32867         * modules/openat (Files): Likewise.
32868         * modules/fcntl-safer (Files): Likewise.
32869         Suggested by Eric Blake.
32870
32871 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32872
32873         * doc/glibc-functions/fallocate.texi: New file.
32874         * doc/gnulib.texi: Include it.
32875
32876 2009-05-21  Eric Blake  <ebb9@byu.net>
32877             Bruno Haible  <bruno@clisp.org>
32878
32879         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32880         invocations.
32881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32882
32883 2009-05-21  Eric Blake  <ebb9@byu.net>
32884             Bruno Haible  <bruno@clisp.org>
32885
32886         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32887         include_next. Fix of 2008-11-20 commit.
32888         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32889         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32890         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32891         NEXT_MATH_H.
32892         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32893         instead of NEXT_MATH_H.
32894
32895 2009-05-21  Bruno Haible  <bruno@clisp.org>
32896
32897         Avoid redefinition warnings for SIZE_MAX.
32898         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32899         Reported by Simon Josefsson.
32900
32901 2009-05-21  Bruno Haible  <bruno@clisp.org>
32902
32903         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32904         AC_CACHE_VAL.
32905
32906 2009-05-20  Bruno Haible  <bruno@clisp.org>
32907
32908         Make zeroptr.h work on mingw.
32909         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32910         mprotect.
32911         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32912         * modules/memchr2-tests (configure.ac): Likewise.
32913         * modules/memcmp-tests (configure.ac): Likewise.
32914         * modules/memmem-tests (configure.ac): Likewise.
32915         * modules/memrchr-tests (configure.ac): Likewise.
32916         Reported by Simon Josefsson.
32917
32918 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32919
32920         * tests/test-glob.c: Include string.h for strcmp prototype.
32921
32922 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32923
32924         * modules/getdelim (Depends-on): Add explicit stdint, although it
32925         was implicitly already pulled in via realloc-posix.
32926         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32927
32928 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32929
32930         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32931         G. Christensen" <tgc@jupiterrise.com>.
32932         * m4/sys_socket_h.m4: Check for sa_family_t.
32933         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32934         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32935         * tests/test-sys_socket.c: Check that sa_family_t works.
32936
32937 2009-05-18  Eric Blake  <ebb9@byu.net>
32938
32939         maint.mk: allow gnulib_dir in VPATH build
32940         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32941
32942 2009-05-15  Jim Meyering  <meyering@redhat.com>
32943
32944         maint.mk: Give gnulib_dir a default definition.
32945         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32946         Thus, most packages no longer need to specify this variable in cfg.mk
32947
32948 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32949
32950         rename.m4: fix typos that would make non-mingw cross-configure fail
32951         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32952
32953 2009-05-13  Eric Blake  <ebb9@byu.net>
32954
32955         mmap-anon: avoid out-of-order autoconf expansion
32956         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32957         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32958         * modules/memchr-tests (Depends-on): Add extensions.
32959         * modules/memchr2-tests (Depends-on): Add extensions.
32960         * modules/memcmp-tests (Depends-on): Add extensions.
32961         * modules/memmem-tests (Depends-on): Add extensions.
32962         * modules/memrchr-tests (Depends-on): Add extensions.
32963
32964 2009-05-13  Bruno Haible  <bruno@clisp.org>
32965
32966         Make some tests ISO C 99 compliant.
32967         * tests/zerosize-ptr.h: New file.
32968         * tests/test-memchr.c: Include zerosize-ptr.h.
32969         (main): Use a zero-size object pointer instead of NULL.
32970         * tests/test-memchr2.c: Include zerosize-ptr.h.
32971         (main): Use a zero-size object pointer instead of NULL.
32972         * tests/test-memcmp.c: Include zerosize-ptr.h.
32973         (main): Use a zero-size object pointer instead of NULL.
32974         * tests/test-memmem.c: Include zerosize-ptr.h.
32975         (main): Use a zero-size object pointer instead of NULL.
32976         * tests/test-memrchr.c: Include zerosize-ptr.h.
32977         (main): Use a zero-size object pointer instead of NULL.
32978         * modules/memchr-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/memchr2-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/memcmp-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         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32991         m4/mmap-anon.m4.
32992         (Depends-on): Add getpagesize.
32993         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32994         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32995         m4/mmap-anon.m4.
32996         (Depends-on): Add getpagesize.
32997         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32998
32999 2009-05-12  Bruno Haible  <bruno@clisp.org>
33000
33001         Tests for module 'alignof'.
33002         * modules/alignof-tests: New file.
33003         * tests/test-alignof.c: New file.
33004
33005 2009-05-12  Bruno Haible  <bruno@clisp.org>
33006
33007         Fix alignof macro.
33008         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33009         vendor compilers that are always correct.
33010
33011 2009-05-12  Bruno Haible  <bruno@clisp.org>
33012
33013         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33014         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33015         not whether its fully works.
33016
33017 2009-05-12  Bruno Haible  <bruno@clisp.org>
33018
33019         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33020
33021 2009-05-12  Jim Meyering  <meyering@redhat.com>
33022
33023         * top/maint.mk: Adjust backslash alignment.
33024
33025 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33026
33027         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33028
33029 2009-05-11  Eric Blake  <ebb9@byu.net>
33030
33031         argp: avoid undefined behavior
33032         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33033         macros.
33034
33035 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33036
33037         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33038         user.name to prevent git commit from complaining.
33039
33040 2009-05-10  Bruno Haible  <bruno@clisp.org>
33041
33042         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33043         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33044         it rewrites every file name only once.
33045         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33046
33047 2009-05-08  Bruno Haible  <bruno@clisp.org>
33048
33049         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33050         instead of 'max'.
33051
33052 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33053
33054         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33055         sockaddr_storage test.
33056
33057 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33058
33059         * modules/sys_socket (Makefile.am): Substitute
33060         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33061         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33062         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33063         * tests/test-sys_socket.c: Check sockaddr_storage.
33064
33065 2009-05-08  Bruno Haible  <bruno@clisp.org>
33066
33067         New module 'alignof'.
33068         * lib/alignof.h: New file.
33069         * modules/alignof: New file.
33070
33071 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33072             Bruno Haible  <bruno@clisp.org>
33073
33074         Fix test-file-has-acl on FreeBSD.
33075         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33076         mask is implicitly added.
33077         * tests/test-file-has-acl.c: Include <signal.h>.
33078         (main): Terminate the test after 5 seconds.
33079         * modules/acl-tests (configure.ac): Check for alarm function.
33080
33081 2009-05-04  Bruno Haible  <bruno@clisp.org>
33082
33083         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33085         * modules/errno (configure.ac): Drop AC_REQUIRE.
33086         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33087         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33088
33089 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33090
33091         * modules/glob-tests: New module.
33092         * tests/test-glob.c: Add.
33093
33094 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33095
33096         * modules/fnmatch-tests: New module.
33097         * tests/test-fnmatch.c: Add.
33098
33099 2009-05-04  Eric Blake  <ebb9@byu.net>
33100
33101         maint: make the new no-submodule-changes rule VPATH-safe
33102         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33103
33104 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33105             Bruno Haible  <bruno@clisp.org>
33106
33107         acl: Fix infinite loop on FreeBSD.
33108         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33109         of return value from acl_get_entry.
33110         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33111         Likewise.
33112
33113 2009-05-03  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/acl-internal.h (acl_entries): Clarify return value.
33116         * lib/acl_entries.c (acl_entries): Likewise.
33117
33118 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33119
33120         Bug fix in acl module.
33121         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33122
33123 2009-05-03  Bruno Haible  <bruno@clisp.org>
33124
33125         Create gperf-generated file in the source dir, not in the build dir.
33126         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33127         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33128         * modules/unicase/locale-language (unicase/locale-languages.h):
33129         Likewise.
33130         * modules/unicase/special-casing (unicase/special-casing-table.h):
33131         Likewise.
33132         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33133         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33134         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33135         Reported by Ralf Wildenhues.
33136
33137 2009-05-03  Bruno Haible  <bruno@clisp.org>
33138
33139         * modules/fnmatch (Description, configure.ac): Taken from
33140         fnmatch-posix.
33141         * modules/fnmatch-posix: Turn into a symbolic reference to the
33142         'fnmatch' module, and deprecate.
33143         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33144
33145 2009-05-03  Bruno Haible  <bruno@clisp.org>
33146
33147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33148         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33149         Reported by Ralf Wildenhues.
33150
33151 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33152
33153         * m4/fnmatch.m4: Fix fnmatch re-define.
33154
33155 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33156
33157         priv-set: new module and tests; adapt write-any-file
33158         * lib/priv-set.c: New file.
33159         * lib/priv-set.h: New file.
33160         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33161         * lib/write-any-file.c: Simplify by using priv-set module.
33162         * m4/priv-set.m4: New file.
33163         * modules/priv-set: New file.
33164         * modules/unlinkdir: Add dependency on priv-set module.
33165         * modules/write-any-file: Likewise.
33166
33167         Tests for module 'priv-set'.
33168         * modules/priv-set-tests: New file.
33169         * tests/test-priv-set.c: New file.
33170
33171 2009-05-03  Jim Meyering  <meyering@redhat.com>
33172             Bruno Haible  <bruno@clisp.org>
33173
33174         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33175         use the converted UTF-8 variant of the name instead.
33176
33177 2009-05-03  Jim Meyering  <meyering@redhat.com>
33178
33179         tests: tighten some getdate tests
33180         * tests/test-getdate.c (main): Tighten tests: require equality,
33181         not just greater than.  Set TZ envvar to UTC0.
33182
33183 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33184
33185         getdate: correctly interpret "next monday" when run on a Monday
33186         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33187         that e.g., "next tues" (when run on a tuesday) results in a date
33188         that is one week in the future, and not today's date.
33189         I.e., add a week when the wday is the same as the current one.
33190         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33191         and earlier by Martin Bernreuther and Jan Minář.
33192         * tests/test-getdate.c (main): Check that "next DAY" is always in
33193         the future and that "last DAY" is always in the past.
33194
33195 2009-05-02  Jim Meyering  <meyering@redhat.com>
33196
33197         build: ensure that a release build fails when a submodule is unclean
33198         * top/maint.mk (no-submodule-changes): New rule.
33199         (alpha beta major): Depend on it.
33200
33201 2009-05-02  Bruno Haible  <bruno@clisp.org>
33202
33203         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33204         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33205         shell variable gl_fnmatch_required to detect which variant is
33206         requested.
33207         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33208         gl_FUNC_FNMATCH_POSIX.
33209         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33210         exclude fnmatch-posix.
33211
33212 2009-05-02  Bruno Haible  <bruno@clisp.org>
33213
33214         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33215         * modules/mbsrtowcs (License): Change to LGPLv2+.
33216         * modules/strnlen1 (License): Likewise.
33217         Reported by Simon Josefsson.
33218
33219 2009-05-02  Bruno Haible  <bruno@clisp.org>
33220
33221         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33222         "cross".
33223         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33224         gnulib-tool was called with option --source-base=lib.
33225
33226 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33227
33228         Use automake *-local hooks without commands, for extensibility.
33229         * modules/localcharset (Makefile.am): Rename install-exec-local
33230         rule to install-exec-localcharset, and make it a prerequisite of
33231         install-exec-local.  Likewise, rename the uninstall-local rule to
33232         uninstall-localcharset, and make it a prerequisite of the former.
33233
33234 2009-05-01  Bruno Haible  <bruno@clisp.org>
33235
33236         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33237         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33238         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33240         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33241         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33242         m4/locale-zh.m4, m4/codeset.m4.
33243
33244         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33245         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33246         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33247         m4/locale-zh.m4.
33248
33249         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33250         REPLACE_WCRTOMB if mbstate_t must be replaced.
33251         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33252         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33253
33254 2009-05-01  Bruno Haible  <bruno@clisp.org>
33255
33256         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33257         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33258         dngettext, dcngettext, textdomain, bindtextdomain,
33259         bind_textdomain_codeset): Undefine before redefining.
33260
33261 2009-04-30  Bruno Haible  <bruno@clisp.org>
33262
33263         Fix bug introduced on 2009-04-25.
33264         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33265         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33266         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33267         is defined.
33268         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33269         is defined.
33270         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33271         is defined.
33272         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33273
33274 2009-04-28  Bruno Haible  <bruno@clisp.org>
33275
33276         Comment tweaks.
33277         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33278         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33279         * lib/unicase.h (u*_casexfrm): Likewise.
33280         Reported by Paolo Bonzini.
33281
33282 2009-04-28  Bruno Haible  <bruno@clisp.org>
33283
33284         Fix a compilation error.
33285         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33286         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33287         Reported by Jim Meyering.
33288
33289 2009-04-27  Bruno Haible  <bruno@clisp.org>
33290
33291         New module 'libunistring'.
33292         * modules/libunistring: New file.
33293         * m4/libunistring.m4: New file.
33294         * MODULES.html.sh (Unicode string functions): Add it.
33295
33296 2009-04-27  Eric Blake  <ebb9@byu.net>
33297
33298         maint.mk: allow package-specific header to provide <config.h>
33299         * top/maint.mk (sc_require_config_h): New variable.
33300         (sc_require_config_h, sc_require_config_h_first): Use it.
33301
33302 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33303
33304         * top/maint.mk (sc_avoid_if_before_free): Except
33305         useless-if-before-free script.
33306
33307 2009-04-27  Eric Blake  <ebb9@byu.net>
33308
33309         maintainer-makefile: depend on all required helper scripts
33310         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33311         useless-if-before-free.
33312         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33313         version, rather than assuming gnulib checkout is available.
33314         Reported by Simen Josefsson.
33315
33316 2009-04-26  Bruno Haible  <bruno@clisp.org>
33317
33318         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33319         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33320         "../" or "..".
33321
33322 2009-04-26  Bruno Haible  <bruno@clisp.org>
33323
33324         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33325         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33326         AC_LIB_HAVE_LINKFLAGS.
33327
33328 2009-04-26  Bruno Haible  <bruno@clisp.org>
33329
33330         Simplify calling convention of u*_conv_from_encoding.
33331         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33332         u32_conv_from_encoding): Expect a resultbuf argument and return the
33333         result directly as a pointer.
33334         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33335         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33336         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33337         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33338         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33339         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33340         Update.
33341         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33342         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33343         * lib/vasnprintf.c (VASNPRINTF): Update.
33344         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33345         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33346         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33347         * NEWS: Mention the change.
33348
33349 2009-04-26  Bruno Haible  <bruno@clisp.org>
33350
33351         Simplify calling convention of u*_conv_to_encoding.
33352         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33353         u32_conv_to_encoding): Expect a resultbuf argument and return the
33354         result directly as a pointer.
33355         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33356         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33357         freeing scaled_offsets if mem_iconveha failed.
33358         * lib/unicase/u-casexfrm.h (FUNC): Update.
33359         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33360         * lib/vasnprintf.c (VASNPRINTF): Update.
33361         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33362         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33363         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33364         * NEWS: Mention the change.
33365
33366 2009-04-26  Bruno Haible  <bruno@clisp.org>
33367
33368         Avoid test failures on AIX and OSF/1.
33369         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33370         malloc(0).
33371         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33372         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33373         Likewise.
33374         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33375         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33376         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33377         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33378         * doc/posix-functions/malloc.texi: Document the portability problem
33379         related to malloc(0).
33380
33381 2009-04-26  Bruno Haible  <bruno@clisp.org>
33382
33383         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33384         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33385         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33386
33387 2009-04-25  Bruno Haible  <bruno@clisp.org>
33388
33389         Avoid link error when creating a namespace clean library.
33390         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33391         as macro with arguments if already defined as an alias.
33392         * lib/signbitf.c (gl_signbitf): Don't undefine.
33393         * lib/signbitd.c (gl_signbitd): Don't undefine.
33394         * lib/signbitl.c (gl_signbitl): Don't undefine.
33395
33396 2009-04-25  Jim Meyering  <meyering@redhat.com>
33397
33398         vc-list-files: fix another quoting bug
33399         * build-aux/vc-list-files: Avoid sed backslash expansion
33400         of pathological directory names.
33401
33402 2009-04-25  Eric Blake  <ebb9@byu.net>
33403
33404         vc-list-files: fix shell quoting error
33405         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33406         timestamp.
33407
33408 2009-04-25  Jim Meyering  <meyering@redhat.com>
33409
33410         vc-list-files: restore lost functionality with subdir argument
33411         * build-aux/vc-list-files: When given a non-"." sub-directory
33412         argument, substitute the $dir/ prefix back onto each resulting name.
33413         Otherwise, coreutils' root_tests check would fail.
33414
33415 2009-04-24  Eric Blake  <ebb9@byu.net>
33416
33417         vc-list-files: ignore git symlinks
33418         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33419         than ls-files, to ignore git symlinks.
33420
33421         maint.mk: import improvements from m4
33422         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33423         (move_if_change): Delete unused macro.
33424         (news-date-check, vc-diff-check): Support VPATH builds.
33425         (announcement): Likewise.  Split --bootstrap-tools list...
33426         (boostrap-tools): ...into separate list, which can be overridden
33427         in cfg.mk.
33428         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33429         requiring dependency on useless-if-before-free module.
33430         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33431         Support VPATH builds.
33432
33433 2009-04-24  Jim Meyering  <meyering@redhat.com>
33434
33435         maint.mk: remove coreutils-specific rules and variables
33436         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33437         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33438         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33439
33440         maint.mk: remove obsolete rule
33441         * top/maint.mk (rel-check): Remove rule.
33442         (WGET, WGETFLAGS): Remove now-unused variables.
33443
33444 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33445
33446         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33447         consistency.
33448
33449         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33450         '$(PATH_SEPARATOR)' instead of ':'.
33451
33452 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33453
33454         * lib/getopt1.c (main): Use 'const' for static array.
33455
33456 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33457
33458         * top/maint.mk: Sync with coreutils.
33459         * NEWS: Explain incompatibilities.
33460
33461 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33462             Bruno Haible  <bruno@clisp.org>
33463
33464         Fix cross-compilation results.
33465         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33466         statement, as third argument of AC_TRY_RUN.
33467         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33468         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33469         Likewise.
33470         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33471         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33472         Likewise.
33473         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33474         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33475         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33476
33477 2009-04-20  Bruno Haible  <bruno@clisp.org>
33478
33479         Avoid test failure on mingw.
33480         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33481
33482 2009-04-20  Bruno Haible  <bruno@clisp.org>
33483
33484         Avoid compilation error on mingw.
33485         * modules/localename-tests (Depends-on): Add locale.
33486
33487 2009-04-19  Bruno Haible  <bruno@clisp.org>
33488
33489         Support for building a shared library on Windows platforms.
33490         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33491         (main): Test the presence of UNINORM_NFC here.
33492         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33493         (main): Test the presence of UNINORM_NFD here.
33494         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33495         (main): Test the presence of UNINORM_NFKC here.
33496         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33497         (main): Test the presence of UNINORM_NFKD here.
33498
33499 2009-04-19  Bruno Haible  <bruno@clisp.org>
33500
33501         Avoid a compiler warning.
33502         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33503         Change type of variable 'sequence'.
33504
33505 2009-04-19  Bruno Haible  <bruno@clisp.org>
33506
33507         * modules/configmake (Makefile.am): When the contents of configmake.h
33508         does not change, arrange to preserve its modification time.
33509
33510 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33511
33512         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33513         gettext domain.
33514
33515 2009-04-16  Jim Meyering  <meyering@redhat.com>
33516
33517         useless-if-before-free: improve conversion code
33518         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33519         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33520
33521 2009-04-14  Bruno Haible  <bruno@clisp.org>
33522
33523         * modules/fcntl (Depends-on): Add extensions.
33524         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33525
33526 2009-04-12  Ben Pfaff  <blp@gnu.org>
33527
33528         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33529         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33530
33531 2009-03-20  Ben Pfaff  <blp@gnu.org>
33532
33533         Make rename replace existing destinations on Windows.
33534         * m4/rename.m4: Add test for Mingw.
33535         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33536         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33537         * doc/posix-functions/rename.texi: Document.
33538
33539 2009-04-10  Bruno Haible  <bruno@clisp.org>
33540
33541         New include file "iconveh.h".
33542         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33543         * lib/striconveh.h: Include it.
33544         (enum iconv_ilseq_handler): Remove definition.
33545         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33546         striconveh.h.
33547         * lib/striconveha.c: Include striconveh.h.
33548         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33549         * modules/striconveh (Files): Add lib/iconveh.h.
33550         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33551         lib/striconveh.h.
33552
33553 2009-04-10  Bruno Haible  <bruno@clisp.org>
33554
33555         * lib/uniconv.h: Update comment.
33556
33557 2009-04-10  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33560         always.
33561         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33562         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33563         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33564         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33565         "unistring-notinline.h", so that the function gets defined always.
33566         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33567         * lib/unistr/u8-uctomb.c: Likewise.
33568         * lib/unistr/u16-mbtouc.c: Likewise.
33569         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33570         * lib/unistr/u16-uctomb.c: Likewise.
33571         * lib/unistr/u32-mbtouc.c: Likewise.
33572         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33573         * lib/unistr/u32-uctomb.c: Likewise.
33574
33575 2009-04-10  Bruno Haible  <bruno@clisp.org>
33576
33577         Mark 'utime' obsolete.
33578         * modules/utime (Status, Notice): New sections.
33579         Suggested by Jim Meyering.
33580
33581         Fix cross-compile guess for utime test.
33582         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33583         autoconf.
33584         * doc/posix-functions/utime.texi: Give more precisions.
33585         Reported by Jan <ipif@ymail.com>.
33586
33587 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33588
33589         filevercmp: correct today's change
33590         * lib/filevercmp.c: Also handle coreutils' test inputs.
33591         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33592
33593         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33594         for reporting it.
33595         * lib/filevercmp.c: Special handle for "", "." and "..".
33596         * tests/test-filevercmp.c: Enlarge the set suite.
33597
33598 2009-04-07  Jim Meyering  <meyering@redhat.com>
33599
33600         useless-if-before-free: show how to remove braced useless free, too
33601         * build-aux/useless-if-before-free: still only in a comment, though.
33602
33603 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33604
33605         maint.mk: import changes to syntax-check macros from coreutils
33606         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33607         Use them in the relevant macros.
33608
33609 2009-04-06  Bruno Haible  <bruno@clisp.org>
33610
33611         Fix unportable use of bit-fields.
33612         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33613         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33614         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33615
33616 2009-04-06  Bruno Haible  <bruno@clisp.org>
33617
33618         Avoid test failures on AIX and OSF/1.
33619         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33620         that malloc(0) = NULL.
33621         * tests/unicase/test-u8-tolower.c (check): Likewise.
33622         * tests/unicase/test-u8-totitle.c (check): Likewise.
33623         * tests/unicase/test-u8-toupper.c (check): Likewise.
33624         * tests/unicase/test-u16-casefold.c (check): Likewise.
33625         * tests/unicase/test-u16-tolower.c (check): Likewise.
33626         * tests/unicase/test-u16-totitle.c (check): Likewise.
33627         * tests/unicase/test-u16-toupper.c (check): Likewise.
33628         * tests/unicase/test-u32-casefold.c (check): Likewise.
33629         * tests/unicase/test-u32-tolower.c (check): Likewise.
33630         * tests/unicase/test-u32-totitle.c (check): Likewise.
33631         * tests/unicase/test-u32-toupper.c (check): Likewise.
33632         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33633         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33634         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33635         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33636         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33637         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33638         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33639         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33640         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33641         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33642         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33643         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33644
33645 2009-04-05  Bruno Haible  <bruno@clisp.org>
33646
33647         Work around an autoconf limitation.
33648         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33649         comment line if it would be longer than 3 KB.
33650
33651 2009-04-05  Bruno Haible  <bruno@clisp.org>
33652
33653         Avoid test failure with libiconv-1.13.
33654         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33655         of the expected test results.
33656
33657 2009-04-05  Bruno Haible  <bruno@clisp.org>
33658
33659         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33660         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33661         that it should be installed.
33662
33663 2009-04-05  Bruno Haible  <bruno@clisp.org>
33664
33665         * gnulib-tool: New option --copy-file.
33666         (func_usage): Document it.
33667         (func_dest_tmpfilename): Moved out of func_import.
33668         (func_add_file, func_update_file): New functions, extracted from
33669         func_import.
33670         (func_import): Update.
33671
33672 2009-04-05  Karl Berry  <karl@gnu.org>
33673
33674         * README: prominently mention gnulib-tool.
33675         Rearrange sections so getting the code is near the top.
33676
33677 2009-04-05  Bruno Haible  <bruno@clisp.org>
33678
33679         * lib/unicase.h: Mention u*_cmp2.
33680         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33681         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33682         * lib/unicase/ulc-casecmp.c: Likewise.
33683         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33684         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33685         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33686         unistr/u8-cmp.
33687         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33688         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33689         unistr/u16-cmp.
33690         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33691         unistr/u32-cmp.
33692
33693         * lib/uninorm.h: Mention u*_cmp2.
33694         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33695         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33696         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33697         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33698         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33699         unistr/u8-cmp.
33700         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33701         unistr/u16-cmp.
33702         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33703         unistr/u32-cmp.
33704
33705         New module 'unistr/u32-cmp2'.
33706         * lib/unistr/u32-cmp2.c: New file.
33707         * modules/unistr/u32-cmp2: New file.
33708
33709         New module 'unistr/u16-cmp2'.
33710         * lib/unistr/u16-cmp2.c: New file.
33711         * modules/unistr/u16-cmp2: New file.
33712
33713         New module 'unistr/u8-cmp2'.
33714         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33715         * lib/unistr/u8-cmp2.c: New file.
33716         * lib/unistr/u-cmp2.h: New file.
33717         * modules/unistr/u8-cmp2: New file.
33718
33719 2009-04-05  Bruno Haible  <bruno@clisp.org>
33720
33721         * lib/unictype.h (uc_property_is_valid): New macro.
33722         * tests/unictype/test-pr_byname.c (main): Use it.
33723
33724         * lib/unistr.h: Doc fixes.
33725         * lib/uniconv.h: Doc fixes.
33726         * lib/unictype.h: Doc fixes.
33727
33728 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33729
33730         Port coreutils 7.2 to Solaris 8.
33731
33732         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33733         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33734         for Solaris 8.  This is a bit of a hack, as it means it's the
33735         caller's responsibility to add -lnsl if needed, but most likely it
33736         won't be needed since only getaddrinfo uses this and getaddrinfo
33737         isn't needed on Solaris 8.
33738
33739         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33740         problem to Solaris 8 encountered with coreutils 7.2, which
33741         resulted in a message "fnmatch.c:292: warning: passing argument 4
33742         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33743         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33744
33745 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33746
33747         * m4/ld-version-script.m4: Add FIXME comment.
33748
33749 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33750
33751         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33752         SOVERSION variable.
33753
33754 2009-04-02  Bruno Haible  <bruno@clisp.org>
33755
33756         * Makefile (info, html, dvi, pdf): Combine the rules.
33757         Suggested by Jim Meyering.
33758
33759 2009-04-01  Bruno Haible  <bruno@clisp.org>
33760
33761         * Makefile (info, html, dvi, pdf): New targets.
33762         Reported by Reuben Thomas <rrt@sc3d.org>.
33763
33764 2009-04-01  Bruno Haible  <bruno@clisp.org>
33765
33766         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33767         can be put into PATH.
33768         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33769
33770 2009-04-01  Bruno Haible  <bruno@clisp.org>
33771
33772         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33773
33774 2009-04-01  Bruno Haible  <bruno@clisp.org>
33775
33776         Rename module 'visibility'.
33777         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33778         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33779         * doc/gnulib.texi: Update.
33780         * MODULES.html.sh (Misc): Update.
33781         * NEWS: Mention the change.
33782
33783 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33784
33785         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33786         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33787         Eric Blake <ebb9@byu.net> for review.
33788         * MODULES.html.sh: Add lib-msvc-compat.
33789         * doc/gnulib.texi: Link to new section.
33790         * m4/ld-output-def.m4: New file.
33791         * doc/ld-output-def.texi: New file.
33792
33793 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33794
33795         Rename ld-version-script to lib-symbol-versions.  Suggested by
33796         Bruno Haible <bruno@clisp.org>.
33797         * modules/ld-version-script: Renamed to lib-symbol-versions.
33798         * doc/ld-version-script.texi: Fix module name.
33799         * MODULES.html.sh: Add lib-symbol-versions.
33800
33801 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33802
33803         * modules/u64-tests: New file.
33804         * tests/test-u64.c: New file.
33805
33806 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33807
33808         * MODULES.html.sh: Mention u64.
33809         * modules/u64: New module.
33810         * modules/crypto/sha512: Depend on u64 module instead of providing
33811         u64.h.
33812
33813 2009-03-27  Eric Blake  <ebb9@byu.net>
33814
33815         test-strerror: make debugging EAI_SYSTEM easier
33816         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33817         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33818         failure was EAI_SYSTEM.
33819
33820 2009-03-25  Bruno Haible  <bruno@clisp.org>
33821
33822         Fix a problem with --enable-relocatable on Solaris 7.
33823         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33824         since 2008-02-24.
33825
33826 2009-03-25  Eric Blake  <ebb9@byu.net>
33827
33828         test-sockets: avoid gcc warning
33829         * tests/test-sockets.c (main): Silence compiler warning.
33830
33831 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33832
33833         New modules nproc, pthread, contributed by Glen Lenker.
33834
33835         * MODULES.html.sh: Add pthread, nproc.
33836         * lib/nproc.c: New file.
33837         * lib/nproc.h: New file.
33838         * lib/pthread.in.h: New file.
33839         * m4/pthread.m4: New file.
33840         * modules/nproc: New file.
33841         * modules/pthread: New file.
33842
33843 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33844
33845         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33846         New variable.
33847
33848 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33849
33850         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33851         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33852         * tests/test-filevercmp.c: Add tests for backup suffixes.
33853
33854 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33855
33856         * modules/stdlib (Depends-on): Add stdint, needed when defining
33857         struct random_data on, for example, HP-UX 10.20.  Reported by
33858         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33859
33860 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33861
33862         * lib/readline.c (readline): Call fflush on stdout after printing
33863         prompt.
33864
33865 2009-03-20  Bruno Haible  <bruno@clisp.org>
33866
33867         Remove dependency from 'close' module to -lws2_32 on native Windows.
33868         * lib/close-hook.h: New file.
33869         * lib/close-hook.c: New file.
33870         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33871         w32sock.h.
33872         (_gl_close_fd_maybe_socket): Remove function.
33873         (rpl_close): Invoke execute_all_close_hooks instead of
33874         _gl_close_fd_maybe_socket.
33875         * lib/sockets.c: Include close-hook.h, w32sock.h.
33876         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33877         (close_sockets_hook): New variable.
33878         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33879         (gl_sockets_cleanup): Unregister it.
33880         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33881         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33882         * modules/close-hook: New file.
33883         * modules/close (Files): Remove lib/w32sock.h.
33884         (Depends-on): Add close-hook.
33885         (Link): Remove section.
33886         * modules/sockets (Files): Add lib/w32sock.h.
33887         (Depends-on): Add close-hook.
33888         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33889         invocation.
33890         * NEWS: Mention that LIB_CLOSE is gone.
33891
33892 2009-03-23  Eric Blake  <ebb9@byu.net>
33893
33894         signal-tests: test previous patch
33895         * tests/test-signal.c: New file.
33896         * modules/signal-tests: Likewise.
33897
33898         signal.h: always support 'volatile sig_atomic_t'
33899         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33900         (gl_SIGNAL_H_DEFAULTS): Add a default.
33901         * modules/signal (Makefile.am): Substitute if needed.
33902         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33903         users can blindly add volatile.
33904         * doc/posix-headers/signal.texi (signal.h): Document it.
33905         Reported by Matthew Woehlke.
33906
33907 2009-03-23  Jim Meyering  <meyering@redhat.com>
33908
33909         pathmax: PATH_MAX: use pathconf only when available
33910         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33911         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33912         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33913         This avoids a link failure in a PSP cross-compilation environment
33914         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33915
33916         * lib/vasnprintf.c (divide): Fix typo in comment.
33917
33918 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33919
33920         * gnulib-tool (func_filter_filelist): Fix comment.
33921
33922 2009-03-20  Bruno Haible  <bruno@clisp.org>
33923
33924         Make sockets.h self-contained.
33925         * lib/sockets.c: Include sockets.h first.
33926         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33927
33928 2009-03-19  Eric Blake  <ebb9@byu.net>
33929
33930         doc: mention more functions added in cygwin 1.7.0
33931         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33932         addition.
33933         * doc/posix-functions/log2f.texi: Likewise.
33934
33935 2009-03-19  Jim Meyering  <meyering@redhat.com>
33936
33937         fsusage: avoid syntax error due to statement-before-declaration
33938         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33939         after all declarations.  Reported by Matthew Woehlke in
33940         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33941
33942 2009-03-18  Eric Blake  <ebb9@byu.net>
33943
33944         build-aux/compile: sync from automake
33945         * build-aux/compile: New file, from automake.
33946         * config/srclist.txt: Mention build-aux/compile.
33947
33948 2009-03-17  Bruno Haible  <bruno@clisp.org>
33949
33950         * lib/git-merge-changelog.c: Fix typo in comment.
33951         Reported by Reuben Thomas <rrt@sc3d.org>.
33952
33953 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33954
33955         * m4/regex.m4: update and improve help for
33956         --without-included-regex.
33957
33958 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33959
33960         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33961         failure on missing include files.
33962
33963 2009-03-17  Eric Blake  <ebb9@byu.net>
33964
33965         doc: mention more functions added in cygwin 1.7.0
33966         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33967         addition.
33968         * doc/posix-functions/fwscanf.texi: Likewise.
33969         * doc/posix-functions/swprintf.texi: Likewise.
33970         * doc/posix-functions/swscanf.texi: Likewise.
33971         * doc/posix-functions/vfwprintf.texi: Likewise.
33972         * doc/posix-functions/vfwscanf.texi: Likewise.
33973         * doc/posix-functions/vswprintf.texi: Likewise.
33974         * doc/posix-functions/vswscanf.texi: Likewise.
33975         * doc/posix-functions/vwprintf.texi: Likewise.
33976         * doc/posix-functions/vwscanf.texi: Likewise.
33977         * doc/posix-functions/wcscasecmp.texi: Likewise.
33978         * doc/posix-functions/wcsdup.texi: Likewise.
33979         * doc/posix-functions/wcsftime.texi: Likewise.
33980         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33981         * doc/posix-functions/wprintf.texi: Likewise.
33982         * doc/posix-functions/wscanf.texi: Likewise.
33983         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33984
33985 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33986
33987         maint.mk: really add $(AM_MAKEFLAGS)
33988         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33989         was inadvertently omitted in the last commit.
33990         Spotted by Bruno Haible.
33991
33992         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33993         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33994         $(AM_MAKEFLAGS)' rather than plain `make'.
33995
33996         gnulib-tool: execute $MAKE not make
33997         * gnulib-tool: Default $MAKE to 'make'.
33998         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33999         than make.  Initialize $MAKE in the do-autobuild script.
34000
34001         gnulib-tool: use $MAKE not make in generated files
34002         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34003         make, in generated files.  Initialize $MAKE in the do-autobuild
34004         script.
34005
34006         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34007
34008         GNUmakefile: disable parallelism only for multiple, recursive targets
34009         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34010         additions in the Makefile.
34011         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34012         by Automake.
34013         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34014         are listed on the command line and at least one of them is
34015         listed in $(ALL_RECURSIVE_TARGETS).
34016
34017 2009-03-14  Bruno Haible  <bruno@clisp.org>
34018
34019         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34020         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34021         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34022         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34023         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34024         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34025         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34026         unistr/u8-uctomb.
34027         * modules/unistr/u8-strchr (Depends-on): Likewise.
34028         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34029         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34030         unistr/u16-uctomb.
34031         * modules/unistr/u16-strchr (Depends-on): Likewise.
34032         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34033
34034 2009-03-12  Bruno Haible  <bruno@clisp.org>
34035
34036         Work around select() bug on Interix 3.5.
34037         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34038         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34039         * m4/select.m4: New file.
34040         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34041         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34042         * modules/select (Files): Add m4/select.m4.
34043         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34044         * modules/nanosleep (Depends-on): Add select.
34045         * modules/poll (Depends-on): Likewise.
34046         * doc/posix-functions/select.texi: Mention the Interix bug.
34047         Reported by Markus Duft <mduft@gentoo.org>.
34048
34049         * lib/select.c: Renamed from lib/winsock-select.c.
34050         * modules/select (Files): Add lib/select.c, remove
34051         lib/winsock-select.c.
34052         (configure.ac): Update.
34053
34054 2009-03-12  Jim Meyering  <meyering@redhat.com>
34055
34056         avoid gcc warnings about unused macro definitions
34057         * lib/readtokens.c (STREQ): Remove unused definition.
34058         * lib/xmalloc.c (SIZE_MAX): Likewise.
34059         * lib/openat-die.c (N_): Likewise.
34060         * lib/mountlist.c (SIZE_MAX): Remove definition.
34061         Instead, include <stdint.h>.
34062         * lib/readutmp.c: Likewise.
34063         * modules/readutmp (Depends-on): Add stdint.
34064         * modules/mountlist (Depends-on): Add stdint.
34065         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34066
34067 2009-03-10  Bruno Haible  <bruno@clisp.org>
34068
34069         Tests for module 'mbmemcasecoll'.
34070         * modules/mbmemcasecoll-tests: New file.
34071         * tests/test-mbmemcasecoll1.sh: New file.
34072         * tests/test-mbmemcasecoll2.sh: New file.
34073         * tests/test-mbmemcasecoll3.sh: New file.
34074         * tests/test-mbmemcasecoll.c: New file.
34075
34076         New module 'mbmemcasecoll'.
34077         * lib/mbmemcasecoll.h: New file.
34078         * lib/mbmemcasecoll.c: New file.
34079         * modules/mbmemcasecoll: New file.
34080
34081         * tests/test-mbmemcasecmp.h: New file, extracted from
34082         tests/test-mbmemcasecmp.c.
34083         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34084         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34085         (main): Update.
34086         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34087
34088 2009-03-09  Bruno Haible  <bruno@clisp.org>
34089
34090         Tests for module 'mbmemcasecmp'.
34091         * modules/mbmemcasecmp-tests: New file.
34092         * tests/test-mbmemcasecmp1.sh: New file.
34093         * tests/test-mbmemcasecmp2.sh: New file.
34094         * tests/test-mbmemcasecmp3.sh: New file.
34095         * tests/test-mbmemcasecmp.c: New file.
34096
34097         New module 'mbmemcasecmp'.
34098         * lib/mbmemcasecmp.h: New file.
34099         * lib/mbmemcasecmp.c: New file.
34100         * modules/mbmemcasecmp: New file.
34101
34102 2009-03-09  Bruno Haible  <bruno@clisp.org>
34103
34104         Tests for module 'unicase/ulc-casecoll'.
34105         * modules/unicase/ulc-casecoll-tests: New file.
34106         * tests/unicase/test-ulc-casecoll1.sh: New file.
34107         * tests/unicase/test-ulc-casecoll2.sh: New file.
34108         * tests/unicase/test-ulc-casecoll.c: New file.
34109
34110         New module 'unicase/ulc-casecoll'.
34111         * lib/unicase.h (ulc_casecoll): New declaration.
34112         * lib/unicase/ulc-casecoll.c: New file.
34113         * modules/unicase/ulc-casecoll: New file.
34114
34115         New module 'unicase/ulc-casexfrm'.
34116         * lib/unicase.h (ulc_casexfrm): New declaration.
34117         * lib/unicase/ulc-casexfrm.c: New file.
34118         * modules/unicase/ulc-casexfrm: New file.
34119
34120 2009-03-09  Bruno Haible  <bruno@clisp.org>
34121
34122         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34123         invocations.
34124
34125         * m4/mbscasecmp.m4: Remove file.
34126         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34127         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34128
34129         * m4/mbscasestr.m4: Remove file.
34130         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34131         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34132
34133         * m4/mbschr.m4: Remove file.
34134         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34135         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34136
34137         * m4/mbscspn.m4: Remove file.
34138         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34139         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34140
34141         * m4/mbslen.m4: Remove file.
34142         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34143         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34144
34145         * m4/mbsncasecmp.m4: Remove file.
34146         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34147         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34148
34149         * m4/mbsnlen.m4: Remove file.
34150         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34151         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34152
34153         * m4/mbspbrk.m4: Remove file.
34154         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34155         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34156
34157         * m4/mbspcasecmp.m4: Remove file.
34158         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34159         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34160
34161         * m4/mbsrchr.m4: Remove file.
34162         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34163         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34164
34165         * m4/mbssep.m4: Remove file.
34166         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34167         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34168
34169         * m4/mbsspn.m4: Remove file.
34170         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34171         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34172
34173         * m4/mbsstr.m4: Remove file.
34174         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34175         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34176
34177         * m4/mbstok_r.m4: Remove file.
34178         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34179         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34180
34181         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34182
34183         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34184         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34185
34186         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34187
34188 2009-03-08  Bruno Haible  <bruno@clisp.org>
34189
34190         Tests for module 'unicase/ulc-casecmp'.
34191         * modules/unicase/ulc-casecmp-tests: New file.
34192         * tests/unicase/test-ulc-casecmp1.sh: New file.
34193         * tests/unicase/test-ulc-casecmp2.sh: New file.
34194         * tests/unicase/test-ulc-casecmp.c: New file.
34195
34196         New module 'unicase/ulc-casecmp'.
34197         * lib/unicase.h (ulc_casecmp): New declaration.
34198         * lib/unicase/ulc-casecmp.c: New file.
34199         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34200         'const SRC_UNIT *'.
34201         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34202         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34203         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34204         * modules/unicase/ulc-casecmp: New file.
34205
34206         Tests for module 'unicase/u32-is-cased'.
34207         * modules/unicase/u32-is-cased-tests: New file.
34208         * tests/unicase/test-u32-is-cased.c: New file.
34209
34210         Tests for module 'unicase/u16-is-cased'.
34211         * modules/unicase/u16-is-cased-tests: New file.
34212         * tests/unicase/test-u16-is-cased.c: New file.
34213
34214         Tests for module 'unicase/u8-is-cased'.
34215         * modules/unicase/u8-is-cased-tests: New file.
34216         * tests/unicase/test-u8-is-cased.c: New file.
34217         * tests/unicase/test-is-cased.h: New file.
34218
34219         New module 'unicase/u32-is-cased'.
34220         * lib/unicase/u32-is-cased.c: New file.
34221         * modules/unicase/u32-is-cased: New file.
34222
34223         New module 'unicase/u16-is-cased'.
34224         * lib/unicase/u16-is-cased.c: New file.
34225         * modules/unicase/u16-is-cased: New file.
34226
34227         New module 'unicase/u8-is-cased'.
34228         * lib/unicase/u8-is-cased.c: New file.
34229         * lib/unicase/u-is-cased.h: New file.
34230         * modules/unicase/u8-is-cased: New file.
34231
34232         Tests for module 'unicase/u32-is-casefolded'.
34233         * modules/unicase/u32-is-casefolded-tests: New file.
34234         * tests/unicase/test-u32-is-casefolded.c: New file.
34235
34236         Tests for module 'unicase/u16-is-casefolded'.
34237         * modules/unicase/u16-is-casefolded-tests: New file.
34238         * tests/unicase/test-u16-is-casefolded.c: New file.
34239
34240         Tests for module 'unicase/u8-is-casefolded'.
34241         * modules/unicase/u8-is-casefolded-tests: New file.
34242         * tests/unicase/test-u8-is-casefolded.c: New file.
34243         * tests/unicase/test-is-casefolded.h: New file.
34244
34245         New module 'unicase/u32-is-casefolded'.
34246         * lib/unicase/u32-is-casefolded.c: New file.
34247         * modules/unicase/u32-is-casefolded: New file.
34248
34249         New module 'unicase/u16-is-casefolded'.
34250         * lib/unicase/u16-is-casefolded.c: New file.
34251         * modules/unicase/u16-is-casefolded: New file.
34252
34253         New module 'unicase/u8-is-casefolded'.
34254         * lib/unicase/u8-is-casefolded.c: New file.
34255         * modules/unicase/u8-is-casefolded: New file.
34256
34257         Tests for module 'unicase/u32-is-titlecase'.
34258         * modules/unicase/u32-is-titlecase-tests: New file.
34259         * tests/unicase/test-u32-is-titlecase.c: New file.
34260
34261         Tests for module 'unicase/u16-is-titlecase'.
34262         * modules/unicase/u16-is-titlecase-tests: New file.
34263         * tests/unicase/test-u16-is-titlecase.c: New file.
34264
34265         Tests for module 'unicase/u8-is-titlecase'.
34266         * modules/unicase/u8-is-titlecase-tests: New file.
34267         * tests/unicase/test-u8-is-titlecase.c: New file.
34268         * tests/unicase/test-is-titlecase.h: New file.
34269
34270         New module 'unicase/u32-is-titlecase'.
34271         * lib/unicase/u32-is-titlecase.c: New file.
34272         * modules/unicase/u32-is-titlecase: New file.
34273
34274         New module 'unicase/u16-is-titlecase'.
34275         * lib/unicase/u16-is-titlecase.c: New file.
34276         * modules/unicase/u16-is-titlecase: New file.
34277
34278         New module 'unicase/u8-is-titlecase'.
34279         * lib/unicase/u8-is-titlecase.c: New file.
34280         * modules/unicase/u8-is-titlecase: New file.
34281
34282         Tests for module 'unicase/u32-is-lowercase'.
34283         * modules/unicase/u32-is-lowercase-tests: New file.
34284         * tests/unicase/test-u32-is-lowercase.c: New file.
34285
34286         Tests for module 'unicase/u16-is-lowercase'.
34287         * modules/unicase/u16-is-lowercase-tests: New file.
34288         * tests/unicase/test-u16-is-lowercase.c: New file.
34289
34290         Tests for module 'unicase/u8-is-lowercase'.
34291         * modules/unicase/u8-is-lowercase-tests: New file.
34292         * tests/unicase/test-u8-is-lowercase.c: New file.
34293         * tests/unicase/test-is-lowercase.h: New file.
34294
34295         New module 'unicase/u32-is-lowercase'.
34296         * lib/unicase/u32-is-lowercase.c: New file.
34297         * modules/unicase/u32-is-lowercase: New file.
34298
34299         New module 'unicase/u16-is-lowercase'.
34300         * lib/unicase/u16-is-lowercase.c: New file.
34301         * modules/unicase/u16-is-lowercase: New file.
34302
34303         New module 'unicase/u8-is-lowercase'.
34304         * lib/unicase/u8-is-lowercase.c: New file.
34305         * modules/unicase/u8-is-lowercase: New file.
34306
34307         Tests for module 'unicase/u32-is-uppercase'.
34308         * modules/unicase/u32-is-uppercase-tests: New file.
34309         * tests/unicase/test-u32-is-uppercase.c: New file.
34310
34311         Tests for module 'unicase/u16-is-uppercase'.
34312         * modules/unicase/u16-is-uppercase-tests: New file.
34313         * tests/unicase/test-u16-is-uppercase.c: New file.
34314
34315         Tests for module 'unicase/u8-is-uppercase'.
34316         * modules/unicase/u8-is-uppercase-tests: New file.
34317         * tests/unicase/test-u8-is-uppercase.c: New file.
34318         * tests/unicase/test-is-uppercase.h: New file.
34319
34320         New module 'unicase/u32-is-uppercase'.
34321         * lib/unicase/u32-is-uppercase.c: New file.
34322         * modules/unicase/u32-is-uppercase: New file.
34323
34324         New module 'unicase/u16-is-uppercase'.
34325         * lib/unicase/u16-is-uppercase.c: New file.
34326         * modules/unicase/u16-is-uppercase: New file.
34327
34328         New module 'unicase/u8-is-uppercase'.
34329         * lib/unicase/u8-is-uppercase.c: New file.
34330         * modules/unicase/u8-is-uppercase: New file.
34331
34332         New module 'unicase/u32-is-invariant'.
34333         * lib/unicase/u32-is-invariant.c: New file.
34334         * modules/unicase/u32-is-invariant: New file.
34335
34336         New module 'unicase/u16-is-invariant'.
34337         * lib/unicase/u16-is-invariant.c: New file.
34338         * modules/unicase/u16-is-invariant: New file.
34339
34340         New module 'unicase/u8-is-invariant'.
34341         * lib/unicase/u8-is-invariant.c: New file.
34342         * lib/unicase/invariant.h: New file.
34343         * lib/unicase/u-is-invariant.h: New file.
34344         * modules/unicase/u8-is-invariant: New file.
34345
34346         Tests for module 'unicase/u32-casecoll'.
34347         * modules/unicase/u32-casecoll-tests: New file.
34348         * tests/unicase/test-u32-casecoll.c: New file.
34349
34350         Tests for module 'unicase/u16-casecoll'.
34351         * modules/unicase/u16-casecoll-tests: New file.
34352         * tests/unicase/test-u16-casecoll.c: New file.
34353
34354         Tests for module 'unicase/u8-casecoll'.
34355         * modules/unicase/u8-casecoll-tests: New file.
34356         * tests/unicase/test-u8-casecoll.c: New file.
34357
34358         New module 'unicase/u32-casecoll'.
34359         * lib/unicase/u32-casecoll.c: New file.
34360         * modules/unicase/u32-casecoll: New file.
34361
34362         New module 'unicase/u16-casecoll'.
34363         * lib/unicase/u16-casecoll.c: New file.
34364         * modules/unicase/u16-casecoll: New file.
34365
34366         New module 'unicase/u8-casecoll'.
34367         * lib/unicase/u8-casecoll.c: New file.
34368         * lib/unicase/u-casecoll.h: New file.
34369         * modules/unicase/u8-casecoll: New file.
34370
34371         New module 'unicase/u32-casexfrm'.
34372         * lib/unicase/u32-casexfrm.c: New file.
34373         * modules/unicase/u32-casexfrm: New file.
34374
34375         New module 'unicase/u16-casexfrm'.
34376         * lib/unicase/u16-casexfrm.c: New file.
34377         * modules/unicase/u16-casexfrm: New file.
34378
34379         New module 'unicase/u8-casexfrm'.
34380         * lib/unicase/u8-casexfrm.c: New file.
34381         * lib/unicase/u-casexfrm.h: New file.
34382         * modules/unicase/u8-casexfrm: New file.
34383
34384         Tests for module 'unicase/u32-casecmp'.
34385         * modules/unicase/u32-casecmp-tests: New file.
34386         * tests/unicase/test-u32-casecmp.c: New file.
34387
34388         Tests for module 'unicase/u16-casecmp'.
34389         * modules/unicase/u16-casecmp-tests: New file.
34390         * tests/unicase/test-u16-casecmp.c: New file.
34391
34392         Tests for module 'unicase/u8-casecmp'.
34393         * modules/unicase/u8-casecmp-tests: New file.
34394         * tests/unicase/test-u8-casecmp.c: New file.
34395         * tests/unicase/test-casecmp.h: New file.
34396
34397         New module 'unicase/u32-casecmp'.
34398         * lib/unicase/u32-casecmp.c: New file.
34399         * modules/unicase/u32-casecmp: New file.
34400
34401         New module 'unicase/u16-casecmp'.
34402         * lib/unicase/u16-casecmp.c: New file.
34403         * modules/unicase/u16-casecmp: New file.
34404
34405         New module 'unicase/u8-casecmp'.
34406         * lib/unicase/u8-casecmp.c: New file.
34407         * lib/unicase/u-casecmp.h: New file.
34408         * modules/unicase/u8-casecmp: New file.
34409
34410         Tests for module 'unicase/u32-casefold'.
34411         * modules/unicase/u32-casefold-tests: New file.
34412         * tests/unicase/test-u32-casefold.c: New file.
34413
34414         Tests for module 'unicase/u16-casefold'.
34415         * modules/unicase/u16-casefold-tests: New file.
34416         * tests/unicase/test-u16-casefold.c: New file.
34417
34418         Tests for module 'unicase/u8-casefold'.
34419         * modules/unicase/u8-casefold-tests: New file.
34420         * tests/unicase/test-u8-casefold.c: New file.
34421
34422         New module 'unicase/u32-casefold'.
34423         * lib/unicase/u32-casefold.c: New file.
34424         * modules/unicase/u32-casefold: New file.
34425
34426         New module 'unicase/u16-casefold'.
34427         * lib/unicase/u16-casefold.c: New file.
34428         * modules/unicase/u16-casefold: New file.
34429
34430         New module 'unicase/u8-casefold'.
34431         * lib/unicase/u8-casefold.c: New file.
34432         * lib/unicase/u-casefold.h: New file.
34433         * modules/unicase/u8-casefold: New file.
34434
34435         New module 'unicase/tocasefold'.
34436         * lib/unicase/casefold.h: New file.
34437         * lib/unicase/tocasefold.c: New file.
34438         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34439         * modules/unicase/tocasefold: New file.
34440
34441         Tests for module 'unicase/u32-totitle'.
34442         * modules/unicase/u32-totitle-tests: New file.
34443         * tests/unicase/test-u32-totitle.c: New file.
34444
34445         Tests for module 'unicase/u16-totitle'.
34446         * modules/unicase/u16-totitle-tests: New file.
34447         * tests/unicase/test-u16-totitle.c: New file.
34448
34449         Tests for module 'unicase/u8-totitle'.
34450         * modules/unicase/u8-totitle-tests: New file.
34451         * tests/unicase/test-u8-totitle.c: New file.
34452
34453         New module 'unicase/u32-totitle'.
34454         * lib/unicase/u32-totitle.c: New file.
34455         * modules/unicase/u32-totitle: New file.
34456
34457         New module 'unicase/u16-totitle'.
34458         * lib/unicase/u16-totitle.c: New file.
34459         * modules/unicase/u16-totitle: New file.
34460
34461         New module 'unicase/u8-totitle'.
34462         * lib/unicase/u8-totitle.c: New file.
34463         * lib/unicase/u-totitle.h: New file.
34464         * modules/unicase/u8-totitle: New file.
34465
34466         Tests for module 'unicase/u32-tolower'.
34467         * modules/unicase/u32-tolower-tests: New file.
34468         * tests/unicase/test-u32-tolower.c: New file.
34469
34470         Tests for module 'unicase/u16-tolower'.
34471         * modules/unicase/u16-tolower-tests: New file.
34472         * tests/unicase/test-u16-tolower.c: New file.
34473
34474         Tests for module 'unicase/u8-tolower'.
34475         * modules/unicase/u8-tolower-tests: New file.
34476         * tests/unicase/test-u8-tolower.c: New file.
34477
34478         New module 'unicase/u32-tolower'.
34479         * lib/unicase/u32-tolower.c: New file.
34480         * modules/unicase/u32-tolower: New file.
34481
34482         New module 'unicase/u16-tolower'.
34483         * lib/unicase/u16-tolower.c: New file.
34484         * modules/unicase/u16-tolower: New file.
34485
34486         New module 'unicase/u8-tolower'.
34487         * lib/unicase/u8-tolower.c: New file.
34488         * modules/unicase/u8-tolower: New file.
34489
34490         Tests for module 'unicase/u32-toupper'.
34491         * modules/unicase/u32-toupper-tests: New file.
34492         * tests/unicase/test-u32-toupper.c: New file.
34493
34494         Tests for module 'unicase/u16-toupper'.
34495         * modules/unicase/u16-toupper-tests: New file.
34496         * tests/unicase/test-u16-toupper.c: New file.
34497
34498         Tests for module 'unicase/u8-toupper'.
34499         * modules/unicase/u8-toupper-tests: New file.
34500         * tests/unicase/test-u8-toupper.c: New file.
34501
34502         New module 'unicase/u32-toupper'.
34503         * lib/unicase/u32-toupper.c: New file.
34504         * modules/unicase/u32-toupper: New file.
34505
34506         New module 'unicase/u16-toupper'.
34507         * lib/unicase/u16-toupper.c: New file.
34508         * modules/unicase/u16-toupper: New file.
34509
34510         New module 'unicase/u8-toupper'.
34511         * lib/unicase/u8-toupper.c: New file.
34512         * modules/unicase/u8-toupper: New file.
34513
34514         New module 'unicase/u32-casemap'.
34515         * lib/unicase/u32-casemap.c: New file.
34516         * modules/unicase/u32-casemap: New file.
34517
34518         New module 'unicase/u16-casemap'.
34519         * lib/unicase/u16-casemap.c: New file.
34520         * modules/unicase/u16-casemap: New file.
34521
34522         New module 'unicase/u8-casemap'.
34523         * lib/unicase/unicasemap.h: New file.
34524         * lib/unicase/u8-casemap.c: New file.
34525         * lib/unicase/u-casemap.h: New file.
34526         * modules/unicase/u8-casemap: New file.
34527
34528         New module 'unicase/special-casing'.
34529         * lib/unicase/special-casing.h: New file.
34530         * lib/unicase/special-casing.c: New file.
34531         * lib/unicase/special-casing-table.gperf: New file, generated by
34532         gen-uni-tables.c.
34533         * modules/unicase/special-casing: New file.
34534
34535         Tests for module 'unicase/locale-language'.
34536         * modules/unicase/locale-language-tests: New file.
34537         * tests/unicase/test-locale-language.sh: New file.
34538         * tests/unicase/test-locale-language.c: New file.
34539
34540         New module 'unicase/locale-language'.
34541         * lib/unicase/locale-language.c: New file.
34542         * lib/unicase/locale-languages.gperf: New file.
34543         * modules/unicase/locale-language: New file.
34544
34545         Generate more tables for case conversion and case folding.
34546         * lib/gen-uni-tables.c (SCC_*): New enum items.
34547         (struct special_casing_rule): New type.
34548         (casing_rules, num_casing_rules, allocated_casing_rules): New
34549         variables.
34550         (add_casing_rule, fill_casing_rules): New functions.
34551         (struct casefold_rule): New type.
34552         (casefolding_rules, num_casefolding_rules,
34553         allocated_casefolding_rules): New variables.
34554         (fill_casefolding_rules): New function.
34555         (unicode_casefold): New variable.
34556         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34557         sort_casing_rules, output_casing_rules): New functions.
34558         (main): Accept to more arguments: SpecialCasing.txt and
34559         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34560         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34561         Output mapping for casefolding.
34562
34563         * lib/unicase.h: Include stdbool.h, uninorm.h.
34564         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34565         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34566         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34567         arguments.
34568         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34569         resultp arguments.
34570         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34571         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34572         resultp arguments.
34573         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34574         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34575         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34576         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34577         declarations.
34578         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34579
34580 2009-03-08  Bruno Haible  <bruno@clisp.org>
34581
34582         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34583         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34584         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34585         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34586
34587 2009-03-07  Bruno Haible  <bruno@clisp.org>
34588
34589         Adjust u*_normcmp, u*_normcoll API.
34590         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34591         u16_normcoll, u32_normcoll): Change failure conventions.
34592         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34593         errno and return -1.
34594         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34595
34596 2009-03-07  Bruno Haible  <bruno@clisp.org>
34597
34598         Tests for module 'uninorm/u32-normcoll'.
34599         * modules/uninorm/u32-normcoll-tests: New file.
34600         * tests/uninorm/test-u32-normcoll.c: New file.
34601
34602         Tests for module 'uninorm/u16-normcoll'.
34603         * modules/uninorm/u16-normcoll-tests: New file.
34604         * tests/uninorm/test-u16-normcoll.c: New file.
34605
34606         Tests for module 'uninorm/u8-normcoll'.
34607         * modules/uninorm/u8-normcoll-tests: New file.
34608         * tests/uninorm/test-u8-normcoll.c: New file.
34609
34610 2009-03-07  Bruno Haible  <bruno@clisp.org>
34611
34612         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34613         tests/uninorm/test-u32-normcmp.c.
34614         * tests/uninorm/test-u32-normcmp.c: Include it.
34615         (test_nonascii): New function, extracted from main. Add some more
34616         tests.
34617         (main): Invoke test_ascii and test_nonascii.
34618         * modules/uninorm/u32-normcmp-tests (Files): Add
34619         tests/uninorm/test-u32-normcmp.h.
34620         (Depends-on): Remove uninorm/u32-normcmp.
34621
34622         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34623         tests/uninorm/test-u16-normcmp.c.
34624         * tests/uninorm/test-u16-normcmp.c: Include it.
34625         (test_nonascii): New function, extracted from main. Add some more
34626         tests.
34627         (main): Invoke test_ascii and test_nonascii.
34628         * modules/uninorm/u16-normcmp-tests (Files): Add
34629         tests/uninorm/test-u16-normcmp.h.
34630         (Depends-on): Remove uninorm/u16-normcmp.
34631
34632         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34633         tests/uninorm/test-u8-normcmp.c.
34634         * tests/uninorm/test-u8-normcmp.c: Include it.
34635         (test_nonascii): New function, extracted from main. Add some more
34636         tests.
34637         (main): Invoke test_ascii and test_nonascii.
34638         * modules/uninorm/u8-normcmp-tests (Files): Add
34639         tests/uninorm/test-u8-normcmp.h.
34640         (Depends-on): Remove uninorm/u8-normcmp.
34641
34642 2009-03-07  Bruno Haible  <bruno@clisp.org>
34643
34644         New module 'uninorm/u32-normcoll'.
34645         * lib/uninorm/u32-normcoll.c: New file.
34646         * modules/uninorm/u32-normcoll: New file.
34647
34648         New module 'uninorm/u16-normcoll'.
34649         * lib/uninorm/u16-normcoll.c: New file.
34650         * modules/uninorm/u16-normcoll: New file.
34651
34652         New module 'uninorm/u8-normcoll'.
34653         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34654         declarations.
34655         * lib/uninorm/u8-normcoll.c: New file.
34656         * lib/uninorm/u-normcoll.h: New file.
34657         * modules/uninorm/u8-normcoll: New file.
34658
34659         New module 'uninorm/u32-normxfrm'.
34660         * lib/uninorm/u32-normxfrm.c: New file.
34661         * modules/uninorm/u32-normxfrm: New file.
34662
34663         New module 'uninorm/u16-normxfrm'.
34664         * lib/uninorm/u16-normxfrm.c: New file.
34665         * modules/uninorm/u16-normxfrm: New file.
34666
34667         New module 'uninorm/u8-normxfrm'.
34668         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34669         declarations.
34670         * lib/uninorm/u8-normxfrm.c: New file.
34671         * lib/uninorm/u-normxfrm.h: New file.
34672         * modules/uninorm/u8-normxfrm: New file.
34673
34674 2009-03-07  Bruno Haible  <bruno@clisp.org>
34675
34676         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34677         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34678         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34679
34680 2009-03-07  Bruno Haible  <bruno@clisp.org>
34681
34682         New module 'memxfrm'.
34683         * lib/memxfrm.h: New file.
34684         * lib/memxfrm.c: New file.
34685         * modules/memxfrm: New file.
34686
34687 2009-03-07  Bruno Haible  <bruno@clisp.org>
34688
34689         New module 'memcmp2'.
34690         * lib/memcmp2.h: New file.
34691         * lib/memcmp2.c: New file.
34692         * modules/memcmp2: New file.
34693
34694 2009-03-07  Bruno Haible  <bruno@clisp.org>
34695
34696         Tests for module 'uninorm/decomposing-form'.
34697         * modules/uninorm/decomposing-form-tests: New file.
34698         * tests/uninorm/test-decomposing-form.c: New file.
34699
34700         New module 'uninorm/decomposing-form'.
34701         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34702         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34703         Add 'decomposing_variant' field.
34704         * lib/uninorm/decomposing-form.c: New file.
34705         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34706         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34707         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34708         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34709         * modules/uninorm/decomposing-form: New file.
34710         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34711         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34712
34713 2009-03-07  Bruno Haible  <bruno@clisp.org>
34714
34715         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34716         strings.
34717
34718 2009-03-06  Bruno Haible  <bruno@clisp.org>
34719
34720         Tests for module 'uninorm/u32-normcmp'.
34721         * tests/uninorm/test-u32-normcmp.c: New file.
34722         * modules/uninorm/u32-normcmp-tests: New file.
34723
34724         Tests for module 'uninorm/u16-normcmp'.
34725         * tests/uninorm/test-u16-normcmp.c: New file.
34726         * modules/uninorm/u16-normcmp-tests: New file.
34727
34728         Tests for module 'uninorm/u8-normcmp'.
34729         * tests/uninorm/test-u8-normcmp.c: New file.
34730         * modules/uninorm/u8-normcmp-tests: New file.
34731
34732         New module 'uninorm/u32-normcmp'.
34733         * lib/uninorm/u32-normcmp.c: New file.
34734         * modules/uninorm/u32-normcmp: New file.
34735
34736         New module 'uninorm/u16-normcmp'.
34737         * lib/uninorm/u16-normcmp.c: New file.
34738         * modules/uninorm/u16-normcmp: New file.
34739
34740         New module 'uninorm/u8-normcmp'.
34741         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34742         declarations.
34743         * lib/uninorm/u8-normcmp.c: New file.
34744         * lib/uninorm/u-normcmp.h: New file.
34745         * modules/uninorm/u8-normcmp: New file.
34746
34747 2009-03-06  Bruno Haible  <bruno@clisp.org>
34748
34749         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34750         Reported by Eric Blake.
34751
34752 2009-03-06  Eric Blake  <ebb9@byu.net>
34753             Bruno Haible  <bruno@clisp.org>
34754
34755         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34756         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34757         condition.
34758         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34759         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34760         condition.
34761         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34762
34763 2009-03-06  Eric Blake  <ebb9@byu.net>
34764
34765         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34766         to avoid compiler warnings.
34767         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34768
34769 2009-03-05  Bruno Haible  <bruno@clisp.org>
34770
34771         * tests/test-ftell.c (main): Disable test beyond end of file on
34772         FreeMiNT.
34773         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34774
34775 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34776
34777         * lib/filevercmp.c: Move hidden files up in ordering.
34778         * tests/test-filevercmp.c: Add tests for hidden files.
34779
34780 2009-03-04  Bruno Haible  <bruno@clisp.org>
34781
34782         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34783         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34784         AM_CFLAGS.
34785         Reported by Simon Josefsson.
34786
34787 2009-03-03  Bruno Haible  <bruno@clisp.org>
34788
34789         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34790         Reported by Simon Josefsson.
34791
34792         * doc/ld-version-script.texi: Update node reference.
34793
34794 2009-03-03  Bruno Haible  <bruno@clisp.org>
34795
34796         * modules/visibility (License): Change to 'unlimited'.
34797         Suggested by Simon Josefsson.
34798
34799 2009-03-03  Jim Meyering  <meyering@redhat.com>
34800
34801         unlinkdir: cannot_unlink_dir may modify process state
34802         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34803         it's neither thread-safe nor appropriate for use in a library.
34804
34805 2009-03-03  Eric Blake  <ebb9@byu.net>
34806
34807         test-closein: silence test under Darwin
34808         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34809         care if it dies from EPIPE or EBADF.
34810
34811 2009-03-03  Bruno Haible  <bruno@clisp.org>
34812
34813         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34814         earlier.
34815         * doc/visibility.texi: Fix @node and @section.
34816
34817 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34818
34819         * doc/gnulib.texi: Link to sections for ld version script and
34820         visibility.
34821         * doc/visibility.texi: Add @node and @section.
34822         * modules/ld-version-script: New module.
34823         * m4/ld-version-script.m4: New file.
34824         * doc/ld-version-script.texi: New file.
34825
34826 2009-03-02  David Lutterkort  <lutter@redhat.com>
34827
34828         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34830
34831 2009-03-02  Bruno Haible  <bruno@clisp.org>
34832
34833         * doc/visibility.texi: Mention libtool's -export-symbols option.
34834
34835 2009-03-02  Jim Meyering  <meyering@redhat.com>
34836
34837         announce-gen: new option: --no-print-checksums
34838         * build-aux/announce-gen (usage): Describe it.
34839         (print_checksums): Print a newline here, not in the [*] footnote.
34840         (main): Honor it.
34841
34842 2009-03-01  Bruno Haible  <bruno@clisp.org>
34843
34844         Use socklen_t in the native Windows replacements prototypes.
34845         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34846         instead of 'int'.
34847         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34848         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34849         * modules/getsockopt (Depends-on): Add socklen.
34850         * modules/setsockopt (Depends-on): Add socklen.
34851
34852 2009-03-01  Bruno Haible  <bruno@clisp.org>
34853
34854         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34855         least 4.2.
34856
34857 2009-03-01  Eric Blake  <ebb9@byu.net>
34858             Bruno Haible  <bruno@clisp.org>
34859
34860         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34861         error messages.
34862         * lib/wait-process.c (wait_subprocess): Omit error message about
34863         deadly signal sent to the child of termsigp != NULL.
34864
34865 2009-03-01  Eric Blake  <ebb9@byu.net>
34866
34867         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34868
34869 2009-03-01  Bruno Haible  <bruno@clisp.org>
34870
34871         Avoid a gcc warning.
34872         * tests/test-sched.c (b): Make global.
34873         Reported by Eric Blake.
34874
34875 2009-01-19  Martin Lambers  <marlam@marlam.de>
34876
34877         Provide POSIX semantics for socket timeout options on W32.
34878         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34879         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34880         * modules/setsockopt: Depend on sys_time module for struct timeval.
34881         * modules/getsockopt: Depend on sys_time module for struct timeval.
34882
34883 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34884
34885         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34886         __USE_GNU, for consistency with netdb.in.h.
34887         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34888
34889 2009-03-01  Bruno Haible  <bruno@clisp.org>
34890
34891         More support for FreeMiNT.
34892         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34893         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34894
34895 2009-03-01  Bruno Haible  <bruno@clisp.org>
34896
34897         More support for FreeMiNT.
34898         * lib/fpurge.c (fpurge): Correct last commit.
34899         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34900
34901 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34902
34903         Fix unportable awk script in vc-list-files.
34904         * build-aux/vc-list-files: In the replacement awk script, use
34905         substr with a second argument of 1, not zero.
34906         Report by Simon Josefsson.
34907
34908 2009-02-28  Bruno Haible  <bruno@clisp.org>
34909
34910         More support for FreeMiNT.
34911         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34912         to FreeMiNT today.
34913         * lib/fwriting.c (fwriting): Likewise.
34914         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34915
34916 2009-02-28  Bruno Haible  <bruno@clisp.org>
34917
34918         * tests/test-freadseek.c (main): Disable test beyond end of file on
34919         FreeMiNT.
34920         * tests/test-ftello.c (main): Likewise.
34921         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34922
34923 2009-02-28  Bruno Haible  <bruno@clisp.org>
34924
34925         Add tentative support for FreeMiNT.
34926         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34927         * lib/fpurge.c (fpurge): Likewise.
34928         * lib/freadable.c (freadable): Likewise.
34929         * lib/freading.c (freading): Likewise.
34930         * lib/freadptr.c (freadptr): Likewise.
34931         * lib/freadseek.c (freadptrinc): Likewise.
34932         * lib/fseeko.c (rpl_fseeko): Likewise.
34933         * lib/fseterr.c (fseterr): Likewise.
34934         * lib/fwritable.c (fwritable): Likewise.
34935         * lib/fwriting.c (fwriting): Likewise.
34936         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34937         Hourihane.
34938         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34939
34940 2009-02-28  Bruno Haible  <bruno@clisp.org>
34941
34942         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34943         SIGCHLD.
34944         Reported by Jim Meyering.
34945
34946 2009-02-28  Bruno Haible  <bruno@clisp.org>
34947
34948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34949         Mention the results of these tests on various platforms.
34950         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34951         order.
34952         * doc/posix-functions/printf.texi: Likewise.
34953         * doc/posix-functions/snprintf.texi: Likewise.
34954         * doc/posix-functions/sprintf.texi: Likewise.
34955         * doc/posix-functions/vfprintf.texi: Likewise.
34956         * doc/posix-functions/vprintf.texi: Likewise.
34957         * doc/posix-functions/vsnprintf.texi: Likewise.
34958         * doc/posix-functions/vsprintf.texi: Likewise.
34959         * doc/glibc-functions/obstack_printf.texi: Likewise.
34960         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34961
34962 2009-02-28  Bruno Haible  <bruno@clisp.org>
34963
34964         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34965         Reported by Loïc Minier <lool@dooz.org>.
34966
34967 2009-02-27  Bruno Haible  <bruno@clisp.org>
34968
34969         * gnulib-tool (func_import): Make the sed expression used to create the
34970         sed script for updating the .gitignore file POSIX compliant.
34971         Reported by Eric Blake.
34972
34973 2009-02-27  Bruno Haible  <bruno@clisp.org>
34974
34975         * gnulib-tool (sed): Don't alias as "sed --posix".
34976         Reported by Eric Blake.
34977
34978 2009-02-27  Bruno Haible  <bruno@clisp.org>
34979
34980         Avoid test link errors.
34981         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34982         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34983         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34984         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34986
34987 2009-02-27  Bruno Haible  <bruno@clisp.org>
34988
34989         Avoid spurious "(cached)" in configure output.
34990         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34991         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34992         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34993         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34994         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34995         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34996         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34997         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34998         Reported by Eric Blake.
34999
35000 2009-02-27  Eric Blake  <ebb9@byu.net>
35001
35002         printf: fix regression in previous patch
35003         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35004
35005 2009-02-27  Bruno Haible  <bruno@clisp.org>
35006
35007         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35008         value.
35009         * lib/stdint.in.h: Likewise.
35010         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35011
35012 2009-02-27  Eric Blake  <ebb9@byu.net>
35013
35014         doc: mention more functions added in cygwin 1.7.0
35015         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35016         addition.
35017         * doc/posix-functions/open_wmemstream.texi: Likewise.
35018         * doc/posix-functions/wcsnlen.texi: Likewise.
35019         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35020         * doc/posix-functions/wcstod.texi: Likewise.
35021         * doc/posix-functions/wcstof.texi: Likewise.
35022         * doc/posix-functions/wcstoimax.texi: Likewise.
35023         * doc/posix-functions/wcstok.texi: Likewise.
35024         * doc/posix-functions/wcstoumax.texi: Likewise.
35025
35026         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35028         * doc/posix-functions/fprintf.texi: Update.
35029         * doc/posix-functions/printf.texi: Update.
35030         * doc/posix-functions/snprintf.texi: Update.
35031         * doc/posix-functions/sprintf.texi: Update.
35032         * doc/posix-functions/vfprintf.texi: Update.
35033         * doc/posix-functions/vprintf.texi: Update.
35034         * doc/posix-functions/vsnprintf.texi: Update.
35035         * doc/posix-functions/vsprintf.texi: Update.
35036         * doc/glibc-functions/obstack_printf.texi: Update.
35037         * doc/glibc-functions/obstack_vprintf.texi: Update.
35038
35039 2009-02-26  Eric Blake  <ebb9@byu.net>
35040
35041         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35042         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35043         compilation bug by using runtime conversion.
35044         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35045         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35046         * modules/ceill-tests (Files): Use nan.h.
35047         * modules/floorl-tests (Files): Likewise.
35048         * modules/frexpl-tests (Files): Likewise.
35049         * modules/isnanl-tests (Files): Likewise.
35050         * modules/ldexpl-tests (Files): Likewise.
35051         * modules/roundl-tests (Files): Likewise.
35052         * modules/truncl-tests (Files): Likewise.
35053         * tests/test-ceill.c (main): Use a working NaN.
35054         * tests/test-floorl.c (main): Likewise.
35055         * tests/test-frexpl.c (main): Likewise.
35056         * tests/test-isnan.c (test_long_double): Likewise.
35057         * tests/test-isnanl.h (main): Likewise.
35058         * tests/test-ldexpl.h (main): Likewise.
35059         * tests/test-roundl.h (main): Likewise.
35060         * tests/test-truncl.h (main): Likewise.
35061         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35062
35063 2009-02-26  Eric Blake  <ebb9@byu.net>
35064             Bruno Haible  <bruno@clisp.org>
35065
35066         Work around a *printf bug with %ls on Solaris.
35067         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35068         precision is specified, sprintf stops converting the wide string
35069         argument when the number of bytes that have been produced by this
35070         conversion equals or exceeds the precision.
35071         * doc/posix-functions/fprintf.texi: Update.
35072         * doc/posix-functions/printf.texi: Update.
35073         * doc/posix-functions/snprintf.texi: Update.
35074         * doc/posix-functions/sprintf.texi: Update.
35075         * doc/posix-functions/vfprintf.texi: Update.
35076         * doc/posix-functions/vprintf.texi: Update.
35077         * doc/posix-functions/vsnprintf.texi: Update.
35078         * doc/posix-functions/vsprintf.texi: Update.
35079         * doc/glibc-functions/obstack_printf.texi: Update.
35080         * doc/glibc-functions/obstack_vprintf.texi: Update.
35081
35082 2009-02-26  Eric Blake  <ebb9@byu.net>
35083
35084         stdlib: favor compiler check of random.h
35085         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35086         to avoid an ObjC random.h installed by Swarm.
35087
35088 2009-02-26  Bruno Haible  <bruno@clisp.org>
35089
35090         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35091         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35092         Reported by Gary V. Vaughan <gary@gnu.org>.
35093
35094 2009-02-26  Bruno Haible  <bruno@clisp.org>
35095
35096         Fix *printf behaviour regarding the %ls directive.
35097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35098         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35099         NEED_PRINTF_DIRECTIVE_LS.
35100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35101         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35102         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35103         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35104         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35105         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35106         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35108         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35111         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35112         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35114         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35115         * doc/posix-functions/fprintf.texi: Update.
35116         * doc/posix-functions/printf.texi: Update.
35117         * doc/posix-functions/snprintf.texi: Update.
35118         * doc/posix-functions/sprintf.texi: Update.
35119         * doc/posix-functions/vfprintf.texi: Update.
35120         * doc/posix-functions/vprintf.texi: Update.
35121         * doc/posix-functions/vsnprintf.texi: Update.
35122         * doc/posix-functions/vsprintf.texi: Update.
35123         * doc/glibc-functions/obstack_printf.texi: Update.
35124         * doc/glibc-functions/obstack_vprintf.texi: Update.
35125         Reported by Eric Blake.
35126
35127 2009-02-25  Bruno Haible  <bruno@clisp.org>
35128
35129         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35130         with known value.
35131         Reported by Gary V. Vaughan <gary@gnu.org>.
35132
35133 2009-02-25  Bruno Haible  <bruno@clisp.org>
35134
35135         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35136         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35137         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35138         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35139         Reported by Gary V. Vaughan <gary@gnu.org>.
35140
35141 2009-02-25  Bruno Haible  <bruno@clisp.org>
35142
35143         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35144         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35145         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35146         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35147         Reported by Gary V. Vaughan <gary@gnu.org>.
35148
35149 2009-02-25  Eric Blake  <ebb9@byu.net>
35150
35151         tests: skip fseek/ftell tests if ungetc is broken
35152         * m4/ungetc.m4: New file.
35153         * modules/fseek-tests: Split test, so ungetc dependency is
35154         separate from rest of test.
35155         * modules/fseeko-tests: Likewise.
35156         * modules/ftell-tests: Likewise.
35157         * modules/ftello-tests: Likewise.
35158         * tests/test-fseek.c (main): Isolate ungetc dependency.
35159         * tests/test-fseeko.c (main): Likewise.
35160         * tests/test-ftell.c (main): Likewise.
35161         * tests/test-ftello.c (main): Likewise.
35162         * tests/test-fseek2.sh: New file.
35163         * tests/test-fseeko2.sh: Likewise.
35164         * tests/test-ftell2.sh: Likewise.
35165         * tests/test-ftello2.sh: Likewise.
35166
35167 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35168
35169         test-getaddrinfo: fix usage of skip return code 77
35170         * tests/test-gettaddrinfo.c: Return skip code 77 only
35171         for first occurance of skip (4x77 is not 77)
35172
35173 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35174
35175         strtod: avoid C99 decl-after-statement
35176         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35177
35178 2009-02-24  Eric Blake  <ebb9@byu.net>
35179
35180         strtod: detect HP-UX 11.31 bug
35181         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35182         Reported by Gary V. Vaughan.
35183
35184 2009-02-23  Bruno Haible  <bruno@clisp.org>
35185
35186         Fix invalid read past end of memory block.
35187         * lib/vasnprintf.c (DCHAR_SET): Define.
35188         (local_wcslen): Define only when needed.
35189         (local_strnlen, local_wcsnlen): New functions.
35190         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35191         directives that involve a conversion ourselves.
35192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35193         wcsnlen, mbrtowc, wcrtomb.
35194         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35195         * tests/test-vasprintf-posix.c (test_function): Likewise.
35196         * tests/test-snprintf-posix.h (test_function): Likewise.
35197         * tests/test-sprintf-posix.h (test_function): Likewise.
35198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35199
35200 2009-02-22  Bruno Haible  <bruno@clisp.org>
35201
35202         Implement new clarified decomposition of Hangul syllables.
35203         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35204         of type LTV, return only a pairwise decomposition.
35205         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35206         Likewise.
35207         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35208         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35209         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35210
35211 2009-02-22  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35214         zero-length results and shrink excess allocated memory.
35215         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35216         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35217         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35218         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35219         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35220         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35221         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35222         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35223         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35224         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35225         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35226         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35227
35228 2009-02-21  Bruno Haible  <bruno@clisp.org>
35229
35230         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35231         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35232         spaces after a period. Put a space between a macro name and its
35233         argument list. Trivial rewordings.
35234         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35235         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35236         (main): Return 0 explicitly.
35237
35238 2009-02-21  Bruno Haible  <bruno@clisp.org>
35239
35240         Tests for module 'uninorm/filter'.
35241         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35242         * modules/uninorm/filter-tests: New file.
35243
35244         New module 'uninorm/filter'.
35245         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35246         uninorm_filter_flush, uninorm_filter_free): New declarations.
35247         * lib/uninorm/uninorm-filter.c: New file.
35248         * modules/uninorm/filter: New file.
35249
35250 2009-02-21  Bruno Haible  <bruno@clisp.org>
35251
35252         Tests for module 'uninorm/nfkc'.
35253         * tests/uninorm/test-nfkc.c: New file.
35254         * tests/uninorm/test-u8-nfkc.c: New file.
35255         * tests/uninorm/test-u16-nfkc.c: New file.
35256         * tests/uninorm/test-u32-nfkc.c: New file.
35257         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35258         * tests/uninorm/test-u32-nfkc-big.c: New file.
35259         * modules/uninorm/nfkc-tests: New file.
35260
35261         New module 'uninorm/nfkc'.
35262         * lib/uninorm/nfkc.c: New file.
35263         * modules/uninorm/nfkc: New file.
35264
35265         Tests for module 'uninorm/nfkd'.
35266         * tests/uninorm/test-nfkd.c: New file.
35267         * tests/uninorm/test-u8-nfkd.c: New file.
35268         * tests/uninorm/test-u16-nfkd.c: New file.
35269         * tests/uninorm/test-u32-nfkd.c: New file.
35270         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35271         * tests/uninorm/test-u32-nfkd-big.c: New file.
35272         * modules/uninorm/nfkd-tests: New file.
35273
35274         New module 'uninorm/nfkd'.
35275         * lib/uninorm/nfkd.c: New file.
35276         * modules/uninorm/nfkd: New file.
35277
35278         Tests for module 'uninorm/nfc'.
35279         * tests/uninorm/test-nfc.c: New file.
35280         * tests/uninorm/test-u8-nfc.c: New file.
35281         * tests/uninorm/test-u16-nfc.c: New file.
35282         * tests/uninorm/test-u32-nfc.c: New file.
35283         * tests/uninorm/test-u32-nfc-big.sh: New file.
35284         * tests/uninorm/test-u32-nfc-big.c: New file.
35285         * modules/uninorm/nfc-tests: New file.
35286
35287         New module 'uninorm/nfc'.
35288         * lib/uninorm/nfc.c: New file.
35289         * modules/uninorm/nfc: New file.
35290
35291         Tests for module 'uninorm/nfd'.
35292         * tests/uninorm/test-nfd.c: New file.
35293         * tests/uninorm/test-u8-nfd.c: New file.
35294         * tests/uninorm/test-u16-nfd.c: New file.
35295         * tests/uninorm/test-u32-nfd.c: New file.
35296         * tests/uninorm/test-u32-nfd-big.sh: New file.
35297         * tests/uninorm/test-u32-nfd-big.c: New file.
35298         * tests/uninorm/test-u32-normalize-big.h: New file.
35299         * tests/uninorm/test-u32-normalize-big.c: New file.
35300         * tests/uninorm/NormalizationTest.txt: New file, created from
35301         Unicode 5.1.0 NormalizationTest.txt.
35302         * modules/uninorm/nfd-tests: New file.
35303
35304         New module 'uninorm/nfd'.
35305         * lib/uninorm/nfd.c: New file.
35306         * modules/uninorm/nfd: New file.
35307
35308         New module 'uninorm/u32-normalize'.
35309         * lib/uninorm/u32-normalize.c: New file.
35310         * modules/uninorm/u32-normalize: New file.
35311
35312         New module 'uninorm/u16-normalize'.
35313         * lib/uninorm/u16-normalize.c: New file.
35314         * modules/uninorm/u16-normalize: New file.
35315
35316         New module 'uninorm/u8-normalize'.
35317         * lib/uninorm/u8-normalize.c: New file.
35318         * lib/uninorm/normalize-internal.h: New file.
35319         * lib/uninorm/u-normalize-internal.h: New file.
35320         * modules/uninorm/u8-normalize: New file.
35321
35322         New module 'uninorm/decompose-internal'.
35323         * lib/uninorm/decompose-internal.c: New file.
35324         * modules/uninorm/decompose-internal: New file.
35325
35326         Tests for module 'uninorm/composition'.
35327         * tests/uninorm/test-composition.c: New file.
35328         * modules/uninorm/composition-tests: New file.
35329
35330         New module 'uninorm/composition'.
35331         * lib/uninorm/composition.c: New file.
35332         * lib/uninorm/composition-table.gperf: New file, generated by
35333         gen-uni-tables.
35334         * modules/uninorm/composition: New file.
35335
35336         Tests for module 'uninorm/compat-decomposition'.
35337         * tests/uninorm/test-compat-decomposition.c: New file.
35338         * modules/uninorm/compat-decomposition-tests: New file.
35339
35340         New module 'uninorm/compat-decomposition'.
35341         * lib/uninorm/decompose-internal.h: New file.
35342         * lib/uninorm/compat-decomposition.c: New file.
35343         * modules/uninorm/compat-decomposition: New file.
35344
35345         Tests for module 'uninorm/canonical-decomposition'.
35346         * tests/uninorm/test-canonical-decomposition.c: New file.
35347         * modules/uninorm/canonical-decomposition-tests: New file.
35348
35349         New module 'uninorm/canonical-decomposition'.
35350         * lib/uninorm/canonical-decomposition.c: New file.
35351         * modules/uninorm/canonical-decomposition: New file.
35352
35353         Tests for module 'uninorm/decomposition'.
35354         * tests/uninorm/test-decomposition.c: New file.
35355         * modules/uninorm/decomposition-tests: New file.
35356
35357         New module 'uninorm/decomposition'.
35358         * lib/uninorm/decomposition.c: New file.
35359         * modules/uninorm/decomposition: New file.
35360
35361         New module 'uninorm/decomposition-table'.
35362         * lib/uninorm/decomposition-table.h: New file.
35363         * lib/uninorm/decomposition-table.c: New file.
35364         * lib/uninorm/decomposition-table1.h: New file, generated by
35365         gen-uni-tables.
35366         * lib/uninorm/decomposition-table2.h: New file, generated by
35367         gen-uni-tables.
35368         * modules/uninorm/decomposition-table: New file.
35369
35370         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35371         (UC_DECOMP_*): New enumeration items.
35372         (get_decomposition): New function.
35373         (struct decomp_table): New type.
35374         (output_decomposition, output_decomposition_tables): New functions.
35375         (unicode_composition_exclusions): New variable.
35376         (fill_composition_exclusions, debug_output_composition_tables): New
35377         functions.
35378         (main): Accept one more argument. Invoke fill_composition_exclusions.
35379         Output decomposition and composition tables.
35380
35381         New module 'uninorm/base'.
35382         * lib/uninorm.h: New file.
35383         * lib/unictype.h: Update comment.
35384         * modules/uninorm/base: New file.
35385
35386 2009-02-21  David Lutterkort  <lutter@redhat.com>
35387
35388         Tests for module 'safe-alloc'.
35389         * tests/test-safe-alloc.c: New file.
35390         * modules/safe-alloc-tests: New file.
35391
35392         New module 'safe-alloc'.
35393         * lib/safe-alloc.h: New file.
35394         * lib/safe-alloc.c: New file.
35395         * m4/safe-alloc.m4: New file.
35396         * modules/safe-alloc: New file.
35397         * doc/safe-alloc.texi: New file.
35398         * doc/gnulib.texi: Include it.
35399         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35400         safe-alloc.
35401
35402 2009-02-18  Bruno Haible  <bruno@clisp.org>
35403
35404         Fix link error on non-glibc systems.
35405         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35406         variable.
35407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35408
35409 2009-02-18  Jim Meyering  <meyering@redhat.com>
35410
35411         fts: avoid used-uninitialized error due to recent change
35412         * lib/fts.c (fts_read): Guard uses of the new member,
35413         parent->fts_n_dirs_remaining, since it's not relevant for
35414         the parent of a directory specified on the command-line.
35415
35416 2009-02-17  James Youngman  <jay@gnu.org>
35417             Bruno Haible  <bruno@clisp.org>
35418
35419         * m4/include_next.m4: Reformulate comment.
35420
35421 2009-02-16  Jim Meyering  <meyering@redhat.com>
35422
35423         fts: add #if guards so that the fts_lgpl module still builds
35424         * lib/fts.c: Guard just-added hash-table-using parts with
35425         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35426         Reported by Simon Josefsson.
35427
35428 2009-02-15  Bruno Haible  <bruno@clisp.org>
35429
35430         * modules/array-mergesort-tests: New file.
35431         * tests/test-array-mergesort.c: New file.
35432
35433         New module 'array-mergesort'.
35434         * modules/array-mergesort: New file.
35435         * lib/array-mergesort.h: New file.
35436
35437 2009-02-15  Bruno Haible  <bruno@clisp.org>
35438
35439         Fix 2009-02-07 commit.
35440         * lib/gen-uni-tables.c (output_predicate, output_category,
35441         output_combclass, output_bidi_category, output_decimal_digit,
35442         output_digit, output_numeric, output_mirror, output_scripts,
35443         output_ident_category, output_simple_mapping): Fix format directives.
35444         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35445
35446 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35447
35448         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35449         fixes are available from IBM.
35450
35451 2009-02-13  Jim Meyering  <meyering@redhat.com>
35452
35453         fts: arrange not to stat non-directories in more cases
35454         This makes GNU find (when it doesn't need to stat each file)
35455         *much* more efficient at traversing reiserfs file systems.
35456         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35457         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35458         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35459         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35460         (leaf_optimization_applies): New function.
35461         (LCO_hash, LCO_compare): New helper functions.
35462         (link_count_optimize_ok): New function.
35463         (fts_stat): Initialize new member (if dir).
35464         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35465         we've just stat'ed a directory.  Skip the stat call when possible.
35466         ---
35467         Note this AFS-related exchange:
35468         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35469         and note find's pioctl call in find/fstype.c.
35470         But that is necessary only if you want to enable the
35471         optimization for AFS, and for now, I don't.
35472
35473         fts: move a function definition "up" (no semantic change)
35474         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35475         "up" to precede upcoming use of a related function.
35476
35477 2009-02-11  Jim Meyering  <meyering@redhat.com>
35478
35479         fts: correct internal computation of nlinks (optimization-related)
35480         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35481         whether the current entry is a directory, so don't test it.
35482
35483 2009-02-10  Bruno Haible  <bruno@clisp.org>
35484
35485         Tests for module 'uniwbrk/ulc-wordbreaks'.
35486         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35487         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35488         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35489
35490         Tests for module 'uniwbrk/u32-wordbreaks'.
35491         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35492         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35493
35494         Tests for module 'uniwbrk/u16-wordbreaks'.
35495         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35496         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35497
35498         Tests for module 'uniwbrk/u8-wordbreaks'.
35499         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35500         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35501
35502 2009-02-10  Bruno Haible  <bruno@clisp.org>
35503
35504         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35505         property.
35506         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35507         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35508         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35509
35510 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35511
35512         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35513         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35514
35515 2009-02-10  Bruno Haible  <bruno@clisp.org>
35516
35517         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35518         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35519         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35520         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35521         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35522         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35523
35524 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35525
35526         * lib/sockets.h (gl_fd_to_handle): New function.
35527
35528         * tests/test-sockets.c: Call gl_fd_to_handle.
35529
35530 2009-02-09  Bruno Haible  <bruno@clisp.org>
35531
35532         * doc/havelib.texi: Document the conventions on bi-arch systems.
35533
35534 2009-02-08  Bruno Haible  <bruno@clisp.org>
35535
35536         Document the AC_LIB_LINKFLAGS macro.
35537         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35538         * doc/gnulib.texi: Include it.
35539
35540 2009-02-08  Bruno Haible  <bruno@clisp.org>
35541
35542         Fix wrong order of sections, compared to TOC.
35543         * doc/gnulib.texi: Include relocatable-maint.texi after the
35544         "Regular expressions" node, not before.
35545
35546 2009-02-08  Bruno Haible  <bruno@clisp.org>
35547
35548         Tests for module 'unicase/totitle'.
35549         * modules/unicase/totitle-tests: New file.
35550
35551         Tests for module 'unicase/tolower'.
35552         * modules/unicase/tolower-tests: New file.
35553
35554         Tests for module 'unicase/toupper'.
35555         * modules/unicase/toupper-tests: New file.
35556         * tests/unicase/test-mapping-part1.h: New file.
35557         * tests/unicase/test-mapping-part2.h: New file.
35558
35559         New module 'unicase/totitle'.
35560         * modules/unicase/totitle: New file.
35561         * lib/unicase/totitle.c: New file.
35562
35563         New module 'unicase/tolower'.
35564         * modules/unicase/tolower: New file.
35565         * lib/unicase/tolower.c: New file.
35566
35567         New module 'unicase/toupper'.
35568         * modules/unicase/toupper: New file.
35569         * lib/unicase/toupper.c: New file.
35570         * lib/unicase/simple-mapping.h: New file.
35571
35572         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35573         (mapping_table): New structure.
35574         (output_simple_mapping): New function.
35575         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35576         * modules/gen-uni-tables (Description): Update.
35577         * lib/unicase/toupper.h: New file, automatically generated by
35578         gen-uni-tables.
35579         * lib/unicase/tolower.h: New file, automatically generated by
35580         gen-uni-tables.
35581         * lib/unicase/totitle.h: New file, automatically generated by
35582         gen-uni-tables.
35583         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35584         gen-uni-tables.
35585         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35586         gen-uni-tables.
35587         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35588         gen-uni-tables.
35589
35590         New module 'unicase/base'.
35591         * modules/unicase/base: New file.
35592         * lib/unicase.h: New file.
35593
35594 2009-02-08  Bruno Haible  <bruno@clisp.org>
35595
35596         New module 'uniwbrk/ulc-wordbreaks'.
35597         * modules/uniwbrk/ulc-wordbreaks: New file.
35598         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35599
35600         New module 'uniwbrk/u32-wordbreaks'.
35601         * modules/uniwbrk/u32-wordbreaks: New file.
35602         * lib/uniwbrk/u32-wordbreaks.c: New file.
35603
35604         New module 'uniwbrk/u16-wordbreaks'.
35605         * modules/uniwbrk/u16-wordbreaks: New file.
35606         * lib/uniwbrk/u16-wordbreaks.c: New file.
35607
35608         New module 'uniwbrk/u8-wordbreaks'.
35609         * modules/uniwbrk/u8-wordbreaks: New file.
35610         * lib/uniwbrk/u8-wordbreaks.c: New file.
35611         * lib/uniwbrk/u-wordbreaks.h: New file.
35612
35613         New module 'uniwbrk/table'.
35614         * modules/uniwbrk/table: New file.
35615         * lib/uniwbrk/wbrktable.h: New file.
35616         * lib/uniwbrk/wbrktable.c: New file.
35617
35618         New module 'uniwbrk/wordbreak-property'.
35619         * modules/uniwbrk/wordbreak-property: New file.
35620         * lib/uniwbrk/wordbreak-property.c: New file.
35621
35622         * lib/gen-uni-tables.c (WBP_*): New enum items.
35623         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35624         (unicode_org_wbp): New variable.
35625         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35626         New functions.
35627         (wbp_table): New structure.
35628         (output_wbp, output_wbrk_tables): New functions.
35629         (main): Accept additional argument. Invoke fill_org_wbp,
35630         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35631         output_wbrk_tables.
35632         * modules/gen-uni-tables (Description): Update.
35633         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35634         gen-uni-tables.
35635
35636         New module 'uniwbrk/base'.
35637         * modules/uniwbrk/base: New file.
35638         * lib/uniwbrk.h: New file.
35639
35640 2009-02-08  Bruno Haible  <bruno@clisp.org>
35641
35642         Update to Unicode 5.1.0.
35643         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35644         U+2185..U+2188.
35645         (is_property_default_ignorable_code_point): Don't include characters
35646         of category Cc or Cs and not-a-characters.
35647         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35648         U+0D79, U+109E, U+109F, U+A60C.
35649         * lib/unictype/bidi_of.h: Regenerated.
35650         * lib/unictype/blocks.h: Regenerated.
35651         * lib/unictype/categ_C.h: Regenerated.
35652         * lib/unictype/categ_Cf.h: Regenerated.
35653         * lib/unictype/categ_Cn.h: Regenerated.
35654         * lib/unictype/categ_L.h: Regenerated.
35655         * lib/unictype/categ_Ll.h: Regenerated.
35656         * lib/unictype/categ_Lm.h: Regenerated.
35657         * lib/unictype/categ_Lo.h: Regenerated.
35658         * lib/unictype/categ_Lu.h: Regenerated.
35659         * lib/unictype/categ_M.h: Regenerated.
35660         * lib/unictype/categ_Mc.h: Regenerated.
35661         * lib/unictype/categ_Me.h: Regenerated.
35662         * lib/unictype/categ_Mn.h: Regenerated.
35663         * lib/unictype/categ_N.h: Regenerated.
35664         * lib/unictype/categ_Nd.h: Regenerated.
35665         * lib/unictype/categ_Nl.h: Regenerated.
35666         * lib/unictype/categ_No.h: Regenerated.
35667         * lib/unictype/categ_P.h: Regenerated.
35668         * lib/unictype/categ_Pd.h: Regenerated.
35669         * lib/unictype/categ_Pe.h: Regenerated.
35670         * lib/unictype/categ_Pf.h: Regenerated.
35671         * lib/unictype/categ_Pi.h: Regenerated.
35672         * lib/unictype/categ_Po.h: Regenerated.
35673         * lib/unictype/categ_Ps.h: Regenerated.
35674         * lib/unictype/categ_S.h: Regenerated.
35675         * lib/unictype/categ_Sk.h: Regenerated.
35676         * lib/unictype/categ_Sm.h: Regenerated.
35677         * lib/unictype/categ_So.h: Regenerated.
35678         * lib/unictype/categ_of.h: Regenerated.
35679         * lib/unictype/combining.h: Regenerated.
35680         * lib/unictype/ctype_alnum.h: Regenerated.
35681         * lib/unictype/ctype_alpha.h: Regenerated.
35682         * lib/unictype/ctype_graph.h: Regenerated.
35683         * lib/unictype/ctype_lower.h: Regenerated.
35684         * lib/unictype/ctype_print.h: Regenerated.
35685         * lib/unictype/ctype_punct.h: Regenerated.
35686         * lib/unictype/ctype_upper.h: Regenerated.
35687         * lib/unictype/decdigit.h: Regenerated.
35688         * lib/unictype/digit.h: Regenerated.
35689         * lib/unictype/mirror.h: Regenerated.
35690         * lib/unictype/numeric.h: Regenerated.
35691         * lib/unictype/pr_alphabetic.h: Regenerated.
35692         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35693         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35694         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35695         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35696         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35697         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35698         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35699         * lib/unictype/pr_combining.h: Regenerated.
35700         * lib/unictype/pr_dash.h: Regenerated.
35701         * lib/unictype/pr_decimal_digit.h: Regenerated.
35702         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35703         * lib/unictype/pr_deprecated.h: Regenerated.
35704         * lib/unictype/pr_diacritic.h: Regenerated.
35705         * lib/unictype/pr_extender.h: Regenerated.
35706         * lib/unictype/pr_format_control.h: Regenerated.
35707         * lib/unictype/pr_grapheme_base.h: Regenerated.
35708         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35709         * lib/unictype/pr_grapheme_link.h: Regenerated.
35710         * lib/unictype/pr_id_continue.h: Regenerated.
35711         * lib/unictype/pr_id_start.h: Regenerated.
35712         * lib/unictype/pr_ideographic.h: Regenerated.
35713         * lib/unictype/pr_ignorable_control.h: Regenerated.
35714         * lib/unictype/pr_lowercase.h: Regenerated.
35715         * lib/unictype/pr_math.h: Regenerated.
35716         * lib/unictype/pr_numeric.h: Regenerated.
35717         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35718         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35719         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35720         * lib/unictype/pr_other_id_continue.h: Regenerated.
35721         * lib/unictype/pr_other_lowercase.h: Regenerated.
35722         * lib/unictype/pr_other_math.h: Regenerated.
35723         * lib/unictype/pr_punctuation.h: Regenerated.
35724         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35725         * lib/unictype/pr_soft_dotted.h: Regenerated.
35726         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35727         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35728         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35729         * lib/unictype/pr_uppercase.h: Regenerated.
35730         * lib/unictype/pr_xid_continue.h: Regenerated.
35731         * lib/unictype/pr_xid_start.h: Regenerated.
35732         * lib/unictype/pr_zero_width.h: Regenerated.
35733         * lib/unictype/scripts.h: Regenerated.
35734         * lib/unictype/scripts_byname.gperf: Regenerated.
35735         * lib/unictype/sy_java_ident.h: Regenerated.
35736         * lib/unilbrk/lbrkprop1.h: Regenerated.
35737         * lib/unilbrk/lbrkprop2.h: Regenerated.
35738         * tests/unictype/test-categ_C.c: Regenerated.
35739         * tests/unictype/test-categ_Cf.c: Regenerated.
35740         * tests/unictype/test-categ_Cn.c: Regenerated.
35741         * tests/unictype/test-categ_L.c: Regenerated.
35742         * tests/unictype/test-categ_Ll.c: Regenerated.
35743         * tests/unictype/test-categ_Lm.c: Regenerated.
35744         * tests/unictype/test-categ_Lo.c: Regenerated.
35745         * tests/unictype/test-categ_Lu.c: Regenerated.
35746         * tests/unictype/test-categ_M.c: Regenerated.
35747         * tests/unictype/test-categ_Mc.c: Regenerated.
35748         * tests/unictype/test-categ_Me.c: Regenerated.
35749         * tests/unictype/test-categ_Mn.c: Regenerated.
35750         * tests/unictype/test-categ_N.c: Regenerated.
35751         * tests/unictype/test-categ_Nd.c: Regenerated.
35752         * tests/unictype/test-categ_Nl.c: Regenerated.
35753         * tests/unictype/test-categ_No.c: Regenerated.
35754         * tests/unictype/test-categ_P.c: Regenerated.
35755         * tests/unictype/test-categ_Pd.c: Regenerated.
35756         * tests/unictype/test-categ_Pe.c: Regenerated.
35757         * tests/unictype/test-categ_Pf.c: Regenerated.
35758         * tests/unictype/test-categ_Pi.c: Regenerated.
35759         * tests/unictype/test-categ_Po.c: Regenerated.
35760         * tests/unictype/test-categ_Ps.c: Regenerated.
35761         * tests/unictype/test-categ_S.c: Regenerated.
35762         * tests/unictype/test-categ_Sk.c: Regenerated.
35763         * tests/unictype/test-categ_Sm.c: Regenerated.
35764         * tests/unictype/test-categ_So.c: Regenerated.
35765         * tests/unictype/test-ctype_alnum.c: Regenerated.
35766         * tests/unictype/test-ctype_alpha.c: Regenerated.
35767         * tests/unictype/test-ctype_graph.c: Regenerated.
35768         * tests/unictype/test-ctype_lower.c: Regenerated.
35769         * tests/unictype/test-ctype_print.c: Regenerated.
35770         * tests/unictype/test-ctype_punct.c: Regenerated.
35771         * tests/unictype/test-ctype_upper.c: Regenerated.
35772         * tests/unictype/test-decdigit.h: Regenerated.
35773         * tests/unictype/test-digit.h: Regenerated.
35774         * tests/unictype/test-numeric.h: Regenerated.
35775         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35776         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35777         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35778         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35779         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35780         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35781         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35782         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35783         * tests/unictype/test-pr_combining.c: Regenerated.
35784         * tests/unictype/test-pr_dash.c: Regenerated.
35785         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35786         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35787         * tests/unictype/test-pr_deprecated.c: Regenerated.
35788         * tests/unictype/test-pr_diacritic.c: Regenerated.
35789         * tests/unictype/test-pr_extender.c: Regenerated.
35790         * tests/unictype/test-pr_format_control.c: Regenerated.
35791         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35792         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35793         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35794         * tests/unictype/test-pr_id_continue.c: Regenerated.
35795         * tests/unictype/test-pr_id_start.c: Regenerated.
35796         * tests/unictype/test-pr_ideographic.c: Regenerated.
35797         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35798         * tests/unictype/test-pr_lowercase.c: Regenerated.
35799         * tests/unictype/test-pr_math.c: Regenerated.
35800         * tests/unictype/test-pr_numeric.c: Regenerated.
35801         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35802         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35803         Regenerated.
35804         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35805         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35806         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35807         * tests/unictype/test-pr_other_math.c: Regenerated.
35808         * tests/unictype/test-pr_punctuation.c: Regenerated.
35809         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35810         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35811         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35812         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35813         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35814         * tests/unictype/test-pr_uppercase.c: Regenerated.
35815         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35816         * tests/unictype/test-pr_xid_start.c: Regenerated.
35817         * tests/unictype/test-pr_zero_width.c: Regenerated.
35818
35819         Update to Unicode 5.1.0.
35820         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35821         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35822         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35823         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35824         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35825         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35826         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35827         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35828         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35829         (nonspacing_table_ind): Update.
35830         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35831
35832         Update to Unicode 5.1.0.
35833         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35834         code transform.
35835         * lib/uniname/uniname.c (unicode_character_name,
35836         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35837         * lib/uniname/uninames.h: Regenerated.
35838         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35839
35840 2009-02-07  Bruno Haible  <bruno@clisp.org>
35841
35842         Merge gen-ctype and gen-lbrk into a single program.
35843         * lib/gen-uni-tables.c: New file, incorporating
35844         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35845         Add directory prefixes to the names of the generated files.
35846         * lib/unictype/gen-ctype.c: Remove file.
35847         * lib/unilbrk/gen-lbrk.c: Remove file.
35848         * modules/gen-uni-tables: New file.
35849         * modules/unictype/gen-ctype: Remove file.
35850         * modules/unilbrk/gen-lbrk: Remove file.
35851
35852 2009-02-07  Bruno Haible  <bruno@clisp.org>
35853
35854         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35855
35856         New module 'unistr/u32-strcoll'.
35857         * modules/unistr/u32-strcoll: New file.
35858         * lib/unistr/u32-strcoll.c: New file.
35859
35860         New module 'unistr/u16-strcoll'.
35861         * modules/unistr/u16-strcoll: New file.
35862         * lib/unistr/u16-strcoll.c: New file.
35863
35864         New module 'unistr/u8-strcoll'.
35865         * modules/unistr/u8-strcoll: New file.
35866         * lib/unistr/u8-strcoll.c: New file.
35867         * lib/unistr/u-strcoll.h: New file.
35868
35869 2009-02-07  Bruno Haible  <bruno@clisp.org>
35870
35871         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35872         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35873         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35874         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35875         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35876         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35877
35878 2009-02-07  Bruno Haible  <bruno@clisp.org>
35879
35880         Make 64-bit clean.
35881         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35882         output_combclass, output_bidi_category, output_decimal_digit,
35883         output_digit, output_numeric, output_mirror, output_scripts,
35884         output_ident_category): Use proper width specifier in format strings.
35885
35886 2009-02-07  Bruno Haible  <bruno@clisp.org>
35887
35888         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35889         failure behaviour.
35890
35891 2009-02-07  Jim Meyering  <meyering@redhat.com>
35892
35893         regex: avoid compilation failure with upcoming gcc-4.4
35894         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35895         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35896         "... error: integer overflow in preprocessor expression".
35897
35898 2009-02-05  Ben Pfaff  <blp@gnu.org>
35899
35900         Fix link errors on Windows when close module is used.
35901         * modules/close: Add $(LIB_CLOSE) to Link section.
35902         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35903         $(LIB_CLOSE) on Windows.
35904
35905 2009-02-05  Jim Meyering  <meyering@redhat.com>
35906
35907         still avoid unused-parameter warnings, but do it cleanly
35908         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35909         (get_fs_usage): Cast to void instead.
35910         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35911         (dev_from_mount_options, read_file_system_list): Cast to void.
35912         Prompted by Bruno Haible.
35913
35914 2009-02-04  Jim Meyering  <meyering@redhat.com>
35915
35916         fsusage.c: correct copyright year
35917         * lib/fsusage.c: Reflect year in which the change is pushed into
35918
35919         avoid misc. warnings
35920         * lib/fsusage.c (UNUSED_PARAM): Define.
35921         (get_fs_usage): Mark parameter "disk" as unused.
35922         * lib/getugroups.c (getgrent): Use "void" in prototype.
35923         * lib/mountlist.c: Mark unused parameters.
35924         (read_file_system_list): Declare a local with "const".
35925         * lib/nanosleep.c (getnow): Declare static.
35926         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35927
35928         dirfd: set errno upon failure
35929         * lib/dirfd.c: Include <errno.h>.
35930         Set errno to ENOTSUP when returning -1.
35931         * modules/dirfd (Depends-on): Add errno.
35932         Suggested by John Kodis <kodis@comcast.net>.
35933
35934 2009-02-01  Bruno Haible  <bruno@clisp.org>
35935
35936         Don't assume sizeof (long) >= sizeof (void *).
35937         * lib/memcmp.c: Include stdint.h.
35938         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35939         srcp2 to 'const byte *'.
35940         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35941         types to uintptr_t.
35942         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35943         * modules/memcmp (Depends-on): Add stdint.
35944         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35945
35946 2009-01-30  Eric Blake  <ebb9@byu.net>
35947
35948         fix more require-before-expand issues
35949         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35950         expand, AC_PROG_AWK.
35951         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35952
35953 2009-01-28  Eric Blake  <ebb9@byu.net>
35954
35955         version-etc: use consistent URL formatting
35956         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35957         Improve formatting.  Use fputs for string without %.
35958
35959 2009-01-28  Jim Meyering  <meyering@redhat.com>
35960
35961         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35962         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35963         "underquoted definition of NAME" from autoconf-2.59.
35964
35965 2009-01-28  Bruno Haible  <bruno@clisp.org>
35966
35967         * doc/gnulib.texi: Add "Obsolete modules" to index.
35968
35969 2009-01-28  Jim Meyering  <meyering@redhat.com>
35970
35971         useless-if-before-free: recognize more variants
35972         * build-aux/useless-if-before-free: Also recognize e.g.,
35973         if (NULL != p) free (p);
35974
35975 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35976
35977         test-getaddrinfo: skip (don't fail) this test when there's no network
35978         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35979         on the presumption that it means you lack network access.
35980
35981 2009-01-26  Jim Meyering  <meyering@redhat.com>
35982
35983         fflush: avoid warnings on modern systems
35984         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35985         pos and result, into scopes where they're used.
35986
35987 2009-01-26  Eric Blake  <ebb9@byu.net>
35988
35989         Silence warning reintroduced by recent extensions patch.
35990         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35991         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35992         autoconf.
35993
35994         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35995         * m4/00gnulib.m4: New file.
35996         * gnulib-tool (func_get_filelist): Always use it.
35997         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35998         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35999
36000 2009-01-25  Bruno Haible  <bruno@clisp.org>
36001
36002         Make test-quotearg work on MacOS X and AIX.
36003         * tests/test-quotearg.sh: New file.
36004         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36005         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36006         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36007         include <libintl.h>.
36008         (fake_locale): Remove variable.
36009         (gettext, dgettext, dcgettext): Remove functions.
36010         (main): Instead of setting a fake locale, set a real locale. Call
36011         textdomain and bindtextdomain.
36012         * modules/quotearg-tests (Files): Add the new files.
36013         (Depends-on): Add gettext, setenv, unsetenv.
36014         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36015         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36016         Augment TESTS_ENVIRONMENT.
36017
36018 2009-01-25  Bruno Haible  <bruno@clisp.org>
36019
36020         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36021         fr_FR.ISO8859-1 locale on MacOS X.
36022         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36023         ja_JP.eucJP locale on MacOS X.
36024         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36025         zh_CN.GB18030 locale on MacOS X.
36026
36027 2009-01-25  Bruno Haible  <bruno@clisp.org>
36028
36029         Avoid link errors on MacOS X 10.3.
36030         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36031         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36032
36033 2009-01-25  Bruno Haible  <bruno@clisp.org>
36034
36035         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36036         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36037         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36038         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36039         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
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         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36045         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36046         * modules/execute (Files): Remove m4/posix_spawn.m4.
36047         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36048         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36049         posix_spawnattr_init, posix_spawnattr_setsigmask,
36050         posix_spawnattr_setflags, posix_spawnattr_destroy.
36051
36052 2009-01-25  Bruno Haible  <bruno@clisp.org>
36053
36054         * lib/glthread/threadlib.c: Include <stdlib.h>.
36055
36056 2009-01-25  Bruno Haible  <bruno@clisp.org>
36057
36058         * lib/glthread/threadlib.c (dummy): New declaration.
36059
36060 2009-01-25  Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36063         multibyte characters also for the GB18030 encoding. Don't crash when
36064         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36065
36066 2009-01-25  Bruno Haible  <bruno@clisp.org>
36067
36068         Avoid redefining 'struct random_data' on OSF/1 5.1.
36069         * lib/stdlib.in.h: Include <random.h> if it exists.
36070         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36071         HAVE_RANDOM_H. Include <random.h> when testing whether
36072         'struct random_data' exists.
36073         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36074
36075 2009-01-25  Bruno Haible  <bruno@clisp.org>
36076
36077         Don't install charset.alias on MacOS X >= 10.3.
36078         * lib/localcharset.c (DARWIN7): New macro.
36079         (get_charset_aliases): Hardcode the result for Darwin7.
36080         * modules/localcharset (install-exec-local): Don't install
36081         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36082
36083 2009-01-25  Bruno Haible  <bruno@clisp.org>
36084
36085         Don't install charset.alias on mingw and Cygwin.
36086         * modules/localcharset (install-exec-local): Don't install
36087         charset.alias on mingw and Cygwin, if the file does not yet exist.
36088         The result for these platforms is hardcoded in localcharset.c.
36089
36090 2009-01-25  Bruno Haible  <bruno@clisp.org>
36091
36092         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36093         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36094         before requiring AC_USE_SYSTEM_EXTENSIONS.
36095
36096 2009-01-25  Jim Meyering  <meyering@redhat.com>
36097
36098         c-strtod: avoid warnings
36099         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36100         "assignment discards qualifiers from pointer target type" warnings.
36101
36102 2009-01-24  Bruno Haible  <bruno@clisp.org>
36103
36104         Add support for non-UTF-8 locales on MacOS X.
36105         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36106         canonical encodings. For Darwin 7 and newer, don't map traditional
36107         encodings to UTF-8.
36108         Reported by Vincent Lefevre <vincent@vinc17.org>
36109         at <http://savannah.gnu.org/bugs/?25235>.
36110
36111 2009-01-24  Bruno Haible  <bruno@clisp.org>
36112
36113         * doc/gnulib.texi (Obsolete modules): New section.
36114         Reported by Mike Frysinger <vapier@gentoo.org>.
36115
36116 2009-01-24  Bruno Haible  <bruno@clisp.org>
36117
36118         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36119         (%.dvi): New rule.
36120
36121 2009-01-24  Bruno Haible  <bruno@clisp.org>
36122
36123         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36124         Reported by Eric Blake.
36125
36126 2009-01-24  Bruno Haible  <bruno@clisp.org>
36127
36128         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36129         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36130         Reported by Gary V. Vaughan <gary@gnu.org>.
36131
36132 2009-01-24  Bruno Haible  <bruno@clisp.org>
36133
36134         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36135
36136 2009-01-23  Bruno Haible  <bruno@clisp.org>
36137
36138         Make c-strtod, c-strtold usable in libraries.
36139         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36140         (C_STRTOD): Call strdup instead of xstrdup.
36141         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36142         * modules/c-strtold (Depends-on): Likewise.
36143         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36144         * NEWS: Mention the change.
36145         Reported by Michael Gold <mgold@ncf.ca>.
36146
36147 2009-01-23  Jim Meyering  <meyering@redhat.com>
36148
36149         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36150         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36151         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36152
36153 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36154
36155         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36156         GNU CoreUtils.
36157         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36158         * modules/version-etc (Description): Update.
36159
36160 2009-01-22  Bruno Haible  <bruno@clisp.org>
36161
36162         Cache the C locale object.
36163         * lib/c-strtod.c (c_locale_cache): New variable.
36164         (c_locale): New function.
36165         (C_STRTOD): Use it, and don't call freelocale.
36166         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36167         Suggested by Paolo Bonzini.
36168
36169 2009-01-21  Bruno Haible  <bruno@clisp.org>
36170
36171         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36172         conditions other than overflow.
36173
36174 2009-01-21  Bruno Haible  <bruno@clisp.org>
36175
36176         * lib/c-strtod.c: Include errno.h.
36177         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36178         value from STRTOD_L and STRTOD.
36179
36180 2009-01-21  Bruno Haible  <bruno@clisp.org>
36181         and Jim Meyering  <meyering@redhat.com>
36182
36183         nanosleep: skip configure test (fail it) for apple universal builds
36184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36185         universal builds, assume that nanosleep does not work.
36186         * modules/nanosleep (Depends-on): Add multiarch.
36187
36188         mktime: skip configure test (fail it) for apple universal builds
36189         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36190         universal builds, assume that mktime does not work.
36191         * modules/mktime (Depends-on): Add multiarch.
36192
36193 2009-01-21  Eric Blake  <ebb9@byu.net>
36194
36195         multiarch: avoid expand-before-require warning
36196         * modules/multiarch (configure.ac): Require, rather than expand,
36197         gl_MULTIARCH.
36198         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36199         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36200         enforce that all clients require it.  Partial reversion of
36201         2008-12-29 patch.
36202
36203         error: avoid expand-before-require warning
36204         * modules/errno (configure.ac): Require, rather than expand,
36205         gl_HEADER_ERRNO_H.
36206         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36207         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36208         enforce that all clients require it.
36209
36210         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36211         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36212         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36213         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36214
36215 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36216
36217         Revert:
36218         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36219
36220         regex: do not depend on obsolete modules.
36221         * modules/regex: Remove memcmp and memmove.
36222
36223 2009-01-20  Bruno Haible  <bruno@clisp.org>
36224
36225         Make the 'link' module link on Windows NT 4.
36226         * lib/link.c (_WIN32_WINNT): Don't define.
36227         (CreateHardLinkFuncType): New type.
36228         (CreateHardLinkFunc, initialized): New variables.
36229         (initialize): New function.
36230         (link): Invoke CreateHardLink indirectly through the function pointer.
36231
36232 2009-01-20  Bruno Haible  <bruno@clisp.org>
36233
36234         Fix compilation failure on mingw.
36235         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36236
36237 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36238
36239         * doc/c-strtod.texi: Mention a couple of restrictions.
36240
36241 2009-01-20  Jim Meyering  <meyering@redhat.com>
36242
36243         gettimeofday: move more declarations out of functions
36244         * lib/gettimeofday.c: Move extern declarations of tzset and
36245         gmtime out of containing functions.  Prompted by Bruno Haible.
36246
36247 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36248
36249         regex: do not depend on obsolete modules.
36250         * modules/regex: Remove memcmp and memmove.
36251
36252 2009-01-19  Bruno Haible  <bruno@clisp.org>
36253
36254         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36255         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36256         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36257         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36258         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36259
36260 2009-01-19  Bruno Haible  <bruno@clisp.org>
36261
36262         * tests/test-link.c: Include <errno.h>.
36263         (main): Exit with code 77 when a hard link cannot be created due to
36264         the file system.
36265         * tests/test-link.sh: Skip test when a hard link cannot be created due
36266         to the file system.
36267         Suggested by Eric Blake.
36268
36269 2009-01-19  Martin Lambers  <marlam@marlam.de>
36270
36271         * modules/link-tests: New file.
36272         * tests/test-link.sh: New file.
36273         * tests/test-link.c: New file.
36274
36275 2009-01-19  Eric Blake  <ebb9@byu.net>
36276
36277         doc: mention another function added in cygwin 1.7.0
36278         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36279         Another new function in cygwin 1.7.
36280
36281 2009-01-19  Bruno Haible  <bruno@clisp.org>
36282
36283         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36284         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36285         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36286         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36287         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36288         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36289         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36290         * m4/md4.m4 (gl_MD4): Likewise.
36291         * m4/md5.m4 (gl_MD5): Likewise.
36292         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36293         * m4/sha1.m4 (gl_SHA1): Likewise.
36294         * m4/sha256.m4 (gl_SHA256): Likewise.
36295         * m4/sha512.m4 (gl_SHA512): Likewise.
36296
36297 2009-01-19  Bruno Haible  <bruno@clisp.org>
36298
36299         * modules/uniname/uniname-tests (Depends-on): Add progname.
36300         * tests/uniname/test-uninames.c: Include progname.h.
36301         (main): Call set_program_name.
36302
36303         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36304         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36305         (main): Call set_program_name.
36306
36307         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36308         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36309         (main): Call set_program_name.
36310
36311         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36312         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36313         (main): Call set_program_name.
36314
36315         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36316         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36317         (main): Call set_program_name.
36318
36319         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36320         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36321         (main): Call set_program_name.
36322
36323         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36324         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36325         (main): Call set_program_name.
36326
36327         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36328         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36329         (main): Call set_program_name.
36330
36331         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36332         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36333         (main): Call set_program_name.
36334
36335 2009-01-19  Eric Blake  <ebb9@byu.net>
36336
36337         test-unistd: test previous patch
36338         * tests/test-unistd.c: Test *_FILENO macros.
36339
36340         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36341         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36342         Guarantee a definition.
36343         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36344         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36345         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36346         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36347         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36348         Likewise.
36349         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36350         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36351         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36352         Likewise.
36353         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36354         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36355         (STDERR_FILENO): Likewise.
36356         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36357         (STDERR_FILENO): Likewise.
36358         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36359         (STDERR_FILENO): Likewise.
36360         Reported by Elbert Pol.
36361
36362 2009-01-19  Eric Blake  <ebb9@byu.net>
36363
36364         doc: mention more functions added in cygwin 1.7.0
36365         * doc/posix-functions/abort.texi (abort): Update wording related
36366         to cygwin.
36367         * doc/posix-functions/daylight.texi (daylight): Likewise.
36368         * doc/posix-functions/optarg.texi (optarg): Likewise.
36369         * doc/posix-functions/optarg.texi (opterr): Likewise.
36370         * doc/posix-functions/optarg.texi (optind): Likewise.
36371         * doc/posix-functions/optarg.texi (optopt): Likewise.
36372         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36373         worked in 1.5.x, and was withdrawn in 1.7.
36374         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36375         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36376         cygwin versions.
36377         * doc/posix-functions/perror.texi (perror): Likewise.
36378         * doc/posix-functions/printf.texi (printf): Likewise.
36379         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36380         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36381         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36382         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36383         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36384         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36385         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36386         Likewise.
36387         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36388         Likewise.
36389         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36390         this function.
36391         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36392         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36393         Likewise.
36394         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36395         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36396         * doc/posix-functions/confstr.texi (confstr): Likewise.
36397         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36398         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36399         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36400         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36401         * doc/posix-functions/fputws.texi (fputws): Likewise.
36402         * doc/posix-functions/fwide.texi (fwide): Likewise.
36403         * doc/posix-functions/getwc.texi (getwc): Likewise.
36404         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36405         * doc/posix-functions/putwc.texi (putwc): Likewise.
36406         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36407         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36408         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36409         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36410         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36411         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36412         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36413         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36414         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36415         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36416         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36417
36418 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36419
36420         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36421         * lib/ioctl.c: Include <sys/ioctl.h>.
36422
36423 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36424
36425         * modules/getdate-tests (Depends-on): Add progname.
36426         * tests/test-getdate.c: Use progname module, to avoid link errors
36427         on non-glibc systems.
36428
36429 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36430
36431         * modules/filenamecat-tests (Depends-on): Add progname.
36432         * modules/fstrcmp-tests (Depends-on): Likewise.
36433
36434         * tests/test-filenamecat.c: Use progname module, to avoid link
36435         errors on non-glibc systems.
36436         * tests/test-fstrcmp.c: Likewise.
36437
36438 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36439
36440         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36441         * lib/gettimeofday.c: Move extern declaration out of function.
36442
36443 2009-01-18  Bruno Haible  <bruno@clisp.org>
36444
36445         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36446         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36447         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36448
36449 2009-01-18  Bruno Haible  <bruno@clisp.org>
36450
36451         * lib/strftime.c (MEMPCPY): Remove unused macro.
36452         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36453
36454 2009-01-18  Martin Lambers  <marlam@marlam.de>
36455
36456         New module 'link'.
36457         * lib/unistd.in.h (link): New declaration.
36458         * lib/link.c: New file.
36459         * m4/link.m4: New file.
36460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36461         HAVE_LINK.
36462         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36463         * modules/link: New file.
36464         * doc/posix-functions/link.texi: Mention the new module.
36465
36466 2009-01-18  Bruno Haible  <bruno@clisp.org>
36467
36468         * tests/test-avltree_list.c (main): Call set_program_name.
36469         * tests/test-avltree_oset.c (main): Likewise.
36470         * tests/test-obstack-printf.c: Include progname.h.
36471         (main): Call set_program_name.
36472         * tests/test-quotearg.c: Include progname.h.
36473         (main): Call set_program_name.
36474         * tests/test-xmemdup0.c: Include progname.h.
36475         (main): Call set_program_name.
36476
36477 2009-01-18  Bruno Haible  <bruno@clisp.org>
36478
36479         New module 'alphasort'.
36480         * lib/dirent.in.h (alphasort): New declaration.
36481         * lib/alphasort.c: New file, from glibc with modifications.
36482         * m4/alphasort.m4: New file.
36483         * modules/alphasort: New file.
36484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36485         HAVE_ALPHASORT.
36486         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36487         HAVE_ALPHASORT.
36488         * doc/posix-functions/alphasort.texi: Mention the new module and the
36489         portability problems.
36490
36491 2009-01-18  Bruno Haible  <bruno@clisp.org>
36492
36493         New module 'scandir'.
36494         * lib/dirent.in.h (scandir): New declaration.
36495         * lib/scandir.c: New file, from glibc with modifications.
36496         * m4/scandir.m4: New file.
36497         * modules/scandir: New file.
36498         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36499         HAVE_SCANDIR.
36500         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36501         HAVE_SCANDIR.
36502         * doc/posix-functions/scandir.texi: Mention the new module and the
36503         portability problems.
36504
36505 2009-01-17  Bruno Haible  <bruno@clisp.org>
36506
36507         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36508         Update documentation.
36509         (func_remove_suffix): Escape all dots in the suffix. Update
36510         documentation.
36511         (func_filter_filelist): Update documentation.
36512         Reported by Ralf Wildenhues.
36513
36514 2009-01-17  Bruno Haible  <bruno@clisp.org>
36515
36516         * modules/dprintf-posix-tests: New file.
36517         * tests/test-dprintf-posix.sh: New file.
36518         * tests/test-dprintf-posix.c: New file.
36519
36520         New modules 'dprintf', 'dprintf-posix'.
36521         * lib/stdio.in.h (dprintf): New declaration.
36522         * lib/dprintf.c: New file.
36523         * m4/dprintf.m4: New file.
36524         * m4/dprintf-posix.m4: New file.
36525         * modules/dprintf: New file.
36526         * modules/dprintf-posix: New file.
36527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36528         HAVE_DPRINTF, REPLACE_DPRINTF.
36529         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36530         HAVE_DPRINTF, REPLACE_DPRINTF.
36531         * doc/posix-functions/dprintf.texi: Mention the new modules.
36532
36533 2009-01-17  Bruno Haible  <bruno@clisp.org>
36534
36535         * modules/vdprintf-posix-tests: New file.
36536         * tests/test-vdprintf-posix.sh: New file.
36537         * tests/test-vdprintf-posix.c: New file.
36538
36539         New modules 'vdprintf', 'vdprintf-posix'.
36540         * lib/stdio.in.h (vdprintf): New declaration.
36541         * lib/vdprintf.c: New file.
36542         * m4/vdprintf.m4: New file.
36543         * m4/vdprintf-posix.m4: New file.
36544         * modules/vdprintf: New file.
36545         * modules/vdprintf-posix: New file.
36546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36547         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36548         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36549         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36550         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36551
36552 2009-01-17  Bruno Haible  <bruno@clisp.org>
36553
36554         Fix replacement of fopen on mingw.
36555         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36556         mingw.
36557
36558 2009-01-17  Bruno Haible  <bruno@clisp.org>
36559
36560         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36561         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36562
36563 2009-01-17  Bruno Haible  <bruno@clisp.org>
36564
36565         Avoid test-fflush2.sh failure on mingw.
36566         * tests/test-fflush2.c: Include binary-io.h.
36567         (main): Put standard input into binary mode.
36568         * modules/fflush-tests (Depends-on): Add binary-io.
36569
36570 2009-01-17  Bruno Haible  <bruno@clisp.org>
36571
36572         * lib/wchar.in.h: In another particular situation, include only the
36573         system's <wchar.h> file.
36574         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36575         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36576         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36577
36578 2009-01-17  Bruno Haible  <bruno@clisp.org>
36579
36580         Support for stripping executables in --enable-relocatable.
36581         * build-aux/install-reloc: Expect one more argument, or an environment
36582         variable RELOC_STRIP_PROG. If set, strip the destination program and
36583         its wrapper.
36584         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36585         RELOC_STRIP_PROG.
36586         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36587         to set RELOCATABLE_STRIP.
36588         * NEWS: Mention the new Makefile requirement.
36589
36590 2009-01-17  Bruno Haible  <bruno@clisp.org>
36591
36592         * build-aux/install-reloc: Remove debugging information left over by
36593         C compiler on MacOS X.
36594
36595 2009-01-17  Bruno Haible  <bruno@clisp.org>
36596
36597         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36598         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36599         _NSGetExecutablePath.
36600
36601 2009-01-16  Jim Meyering  <meyering@redhat.com>
36602
36603         strerror: avoid warnings about discarding "const"
36604         * lib/strerror.c (rpl_strerror): Instead of returning a const
36605         string from each and every "case", use a variable, and add a single
36606         cast after the switch.
36607
36608 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36609
36610         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36611
36612 2009-01-16  Bruno Haible  <bruno@clisp.org>
36613
36614         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36615         array initializer syntax that also works in C++ mode.
36616         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36617
36618 2009-01-16  Jim Meyering  <meyering@redhat.com>
36619
36620         poll: suppress a warning
36621         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36622         to ignore "...unsigned expression < 0 is always false" warnings.
36623
36624 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36625
36626         poll: remove declarations of unused variables
36627         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36628         sockbuf and optlen.
36629
36630 2009-01-15  Bruno Haible  <bruno@clisp.org>
36631
36632         Make fflush-after-ungetc POSIX compliant on BSD systems.
36633         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36634         (clear_ungetc_buffer): Implement also for other systems.
36635         (rpl_fflush): On glibc systems, invoke
36636         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36637         clear_ungetc_buffer after fetching the stream's position, not before.
36638
36639 2009-01-15  Bruno Haible  <bruno@clisp.org>
36640
36641         Make fflush-after-ungetc POSIX compliant on glibc systems.
36642         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36643         after ungetc.
36644         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36645         (rpl_fflush): On glibc systems, simply call the system's fflush
36646         function after clearing the ungetc buffer.
36647         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36648         Instead, lseek only to the end of file, then use the system's fseeko
36649         for the rest. On glibc systems, reset the EOF indicator bit.
36650
36651 2009-01-15  Jim Meyering  <meyering@redhat.com>
36652
36653         openmp.m4: revert quote-adding change, for portability to older autoconf
36654         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36655         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36656         Simon Josefsson noticed the problem when using autoconf-2.61.
36657
36658 2009-01-15  Bruno Haible  <bruno@clisp.org>
36659
36660         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36661         * tests/test-fflush2.c (ASSERT): Always fail.
36662         (main): Add two tests for fflush() after ungetc(), taking into account
36663         the Austin Group's clarification.
36664         Suggested by Eric Blake.
36665
36666 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36667
36668         mktime.m4: remove K&R-style function prototypes
36669         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36670         for the Sun C++ compiler.
36671
36672 2009-01-14  Bruno Haible  <bruno@clisp.org>
36673
36674         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36675         while including <wchar.h>.
36676         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36677         the system's <wchar.h> file.
36678         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36679
36680 2009-01-14  Bruno Haible  <bruno@clisp.org>
36681
36682         * m4/csharp.m4: Don't mention gettext on the serial number line.
36683         * m4/csharpexec.m4: Likewise.
36684         * m4/eaccess.m4: Likewise.
36685         * m4/javaexec.m4: Likewise.
36686         * m4/sig_atomic_t.m4: Likewise.
36687         * m4/tmpdir.m4: Likewise.
36688         * m4/intldir.m4: Bump gettext version.
36689         * m4/lib-ld.m4: Likewise.
36690
36691 2009-01-14  Bruno Haible  <bruno@clisp.org>
36692
36693         * lib/progname.c (set_program_name): Add more comments.
36694         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36695
36696 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36697
36698         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36699         were sys/stat.h does not define it.
36700
36701 2009-01-14  Jim Meyering  <meyering@redhat.com>
36702
36703         many *.m4 files: improve m4 quoting
36704         99% of this change was performed by running the following commands:
36705         git ls-files | grep '\.m4$' | xargs perl -pi \
36706           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36707           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36708           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36709           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36710         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36711         The remainder were to add Copyright dates, increment serial numbers,
36712         undo some changes in comments, exclude m4/intl.m4, and add quotes
36713         around the "1" in ",1" where the unusual spacing prohibited the
36714         above regexps from doing the job.  For more details, see
36715         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36716         * m4/acl.m4: Modified.
36717         * m4/afs.m4: Likewise.
36718         * m4/alloca.m4: Likewise.
36719         * m4/argp.m4: Likewise.
36720         * m4/argz.m4: Likewise.
36721         * m4/atexit.m4: Likewise.
36722         * m4/bison-i18n.m4: Likewise.
36723         * m4/bison.m4: Likewise.
36724         * m4/byteswap.m4: Likewise.
36725         * m4/c-stack.m4: Likewise.
36726         * m4/c-strtod.m4: Likewise.
36727         * m4/calloc.m4: Likewise.
36728         * m4/canonicalize-lgpl.m4: Likewise.
36729         * m4/chown.m4: Likewise.
36730         * m4/clock_time.m4: Likewise.
36731         * m4/codeset.m4: Likewise.
36732         * m4/copy-file.m4: Likewise.
36733         * m4/csharp.m4: Likewise.
36734         * m4/csharpcomp.m4: Likewise.
36735         * m4/csharpexec.m4: Likewise.
36736         * m4/d-ino.m4: Likewise.
36737         * m4/d-type.m4: Likewise.
36738         * m4/dirfd.m4: Likewise.
36739         * m4/double-slash-root.m4: Likewise.
36740         * m4/eaccess.m4: Likewise.
36741         * m4/eealloc.m4: Likewise.
36742         * m4/environ.m4: Likewise.
36743         * m4/errno_h.m4: Likewise.
36744         * m4/euidaccess.m4: Likewise.
36745         * m4/execute.m4: Likewise.
36746         * m4/fatal-signal.m4: Likewise.
36747         * m4/fchdir.m4: Likewise.
36748         * m4/fcntl_h.m4: Likewise.
36749         * m4/fileblocks.m4: Likewise.
36750         * m4/filenamecat.m4: Likewise.
36751         * m4/findprog.m4: Likewise.
36752         * m4/flexmember.m4: Likewise.
36753         * m4/fnmatch.m4: Likewise.
36754         * m4/fopen.m4: Likewise.
36755         * m4/fpending.m4: Likewise.
36756         * m4/fprintf-posix.m4: Likewise.
36757         * m4/free.m4: Likewise.
36758         * m4/frexp.m4: Likewise.
36759         * m4/frexpl.m4: Likewise.
36760         * m4/fsusage.m4: Likewise.
36761         * m4/ftruncate.m4: Likewise.
36762         * m4/gc-camellia.m4: Likewise.
36763         * m4/gc-random.m4: Likewise.
36764         * m4/gc.m4: Likewise.
36765         * m4/getaddrinfo.m4: Likewise.
36766         * m4/getcwd-abort-bug.m4: Likewise.
36767         * m4/getcwd-path-max.m4: Likewise.
36768         * m4/getdate.m4: Likewise.
36769         * m4/getdomainname.m4: Likewise.
36770         * m4/getgroups.m4: Likewise.
36771         * m4/gethostname.m4: Likewise.
36772         * m4/gethrxtime.m4: Likewise.
36773         * m4/getline.m4: Likewise.
36774         * m4/getloadavg.m4: Likewise.
36775         * m4/getndelim2.m4: Likewise.
36776         * m4/getpass.m4: Likewise.
36777         * m4/gettext.m4: Likewise.
36778         * m4/gettime.m4: Likewise.
36779         * m4/gettimeofday.m4: Likewise.
36780         * m4/gnulib-common.m4: Likewise.
36781         * m4/group-member.m4: Likewise.
36782         * m4/host-os.m4: Likewise.
36783         * m4/iconv.m4: Likewise.
36784         * m4/iconv_open.m4: Likewise.
36785         * m4/inet_ntop.m4: Likewise.
36786         * m4/inet_pton.m4: Likewise.
36787         * m4/inline.m4: Likewise.
36788         * m4/intldir.m4: Likewise.
36789         * m4/intlmacosx.m4: Likewise.
36790         * m4/intmax.m4: Likewise.
36791         * m4/intmax_t.m4: Likewise.
36792         * m4/inttypes.m4: Likewise.
36793         * m4/inttypes_h.m4: Likewise.
36794         * m4/inttypes-pri.m4: Likewise.
36795         * m4/isapipe.m4: Likewise.
36796         * m4/isnand.m4: Likewise.
36797         * m4/isnanf.m4: Likewise.
36798         * m4/isnanl.m4: Likewise.
36799         * m4/javacomp.m4: Likewise.
36800         * m4/javaexec.m4: Likewise.
36801         * m4/jm-winsz1.m4: Likewise.
36802         * m4/jm-winsz2.m4: Likewise.
36803         * m4/lchown.m4: Likewise.
36804         * m4/lcmessage.m4: Likewise.
36805         * m4/ldexpl.m4: Likewise.
36806         * m4/lib-ld.m4: Likewise.
36807         * m4/lib-link.m4: Likewise.
36808         * m4/libsigsegv.m4: Likewise.
36809         * m4/link-follow.m4: Likewise.
36810         * m4/localcharset.m4: Likewise.
36811         * m4/locale-fr.m4: Likewise.
36812         * m4/locale-ja.m4: Likewise.
36813         * m4/locale-tr.m4: Likewise.
36814         * m4/locale-zh.m4: Likewise.
36815         * m4/lock.m4: Likewise.
36816         * m4/longlong.m4: Likewise.
36817         * m4/ls-mntd-fs.m4: Likewise.
36818         * m4/lstat.m4: Likewise.
36819         * m4/malloc.m4: Likewise.
36820         * m4/mathl.m4: Likewise.
36821         * m4/mbrtowc.m4: Likewise.
36822         * m4/mbstate_t.m4: Likewise.
36823         * m4/mbswidth.m4: Likewise.
36824         * m4/memchr.m4: Likewise.
36825         * m4/memcmp.m4: Likewise.
36826         * m4/memcpy.m4: Likewise.
36827         * m4/memmem.m4: Likewise.
36828         * m4/memmove.m4: Likewise.
36829         * m4/mempcpy.m4: Likewise.
36830         * m4/memrchr.m4: Likewise.
36831         * m4/memset.m4: Likewise.
36832         * m4/minmax.m4: Likewise.
36833         * m4/mkdir-slash.m4: Likewise.
36834         * m4/mkdtemp.m4: Likewise.
36835         * m4/mktime.m4: Likewise.
36836         * m4/mmap-anon.m4: Likewise.
36837         * m4/mountlist.m4: Likewise.
36838         * m4/nanosleep.m4: Likewise.
36839         * m4/nls.m4: Likewise.
36840         * m4/nocrash.m4: Likewise.
36841         * m4/open.m4: Likewise.
36842         * m4/openat.m4: Likewise.
36843         * m4/openmp.m4: Likewise.
36844         * m4/pathmax.m4: Likewise.
36845         * m4/perl.m4: Likewise.
36846         * m4/physmem.m4: Likewise.
36847         * m4/pipe.m4: Likewise.
36848         * m4/po.m4: Likewise.
36849         * m4/poll.m4: Likewise.
36850         * m4/posixtm.m4: Likewise.
36851         * m4/posixver.m4: Likewise.
36852         * m4/printf-frexp.m4: Likewise.
36853         * m4/printf-frexpl.m4: Likewise.
36854         * m4/printf-posix.m4: Likewise.
36855         * m4/printf-posix-rpl.m4: Likewise.
36856         * m4/printf.m4: Likewise.
36857         * m4/progtest.m4: Likewise.
36858         * m4/putenv.m4: Likewise.
36859         * m4/readline.m4: Likewise.
36860         * m4/readlink.m4: Likewise.
36861         * m4/readutmp.m4: Likewise.
36862         * m4/realloc.m4: Likewise.
36863         * m4/regex.m4: Likewise.
36864         * m4/relocatable.m4: Likewise.
36865         * m4/relocatable-lib.m4: Likewise.
36866         * m4/rename-dest-slash.m4: Likewise.
36867         * m4/rename.m4: Likewise.
36868         * m4/rmdir-errno.m4: Likewise.
36869         * m4/rmdir.m4: Likewise.
36870         * m4/roundf.m4: Likewise.
36871         * m4/roundl.m4: Likewise.
36872         * m4/rpmatch.m4: Likewise.
36873         * m4/save-cwd.m4: Likewise.
36874         * m4/selinux-selinux-h.m4: Likewise.
36875         * m4/setenv.m4: Likewise.
36876         * m4/settime.m4: Likewise.
36877         * m4/sig2str.m4: Likewise.
36878         * m4/sig_atomic_t.m4: Likewise.
36879         * m4/signalblocking.m4: Likewise.
36880         * m4/signbit.m4: Likewise.
36881         * m4/sigpipe.m4: Likewise.
36882         * m4/sockets.m4: Likewise.
36883         * m4/sockpfaf.m4: Likewise.
36884         * m4/st_dm_mode.m4: Likewise.
36885         * m4/stat-time.m4: Likewise.
36886         * m4/stdbool.m4: Likewise.
36887         * m4/stdint.m4: Likewise.
36888         * m4/stdint_h.m4: Likewise.
36889         * m4/stpcpy.m4: Likewise.
36890         * m4/stpncpy.m4: Likewise.
36891         * m4/strcase.m4: Likewise.
36892         * m4/strchrnul.m4: Likewise.
36893         * m4/strcspn.m4: Likewise.
36894         * m4/strdup.m4: Likewise.
36895         * m4/strftime.m4: Likewise.
36896         * m4/strndup.m4: Likewise.
36897         * m4/strnlen.m4: Likewise.
36898         * m4/strpbrk.m4: Likewise.
36899         * m4/strptime.m4: Likewise.
36900         * m4/strsep.m4: Likewise.
36901         * m4/strtod.m4: Likewise.
36902         * m4/strtoimax.m4: Likewise.
36903         * m4/strtok_r.m4: Likewise.
36904         * m4/strtol.m4: Likewise.
36905         * m4/strtoll.m4: Likewise.
36906         * m4/strtoul.m4: Likewise.
36907         * m4/strtoull.m4: Likewise.
36908         * m4/strtoumax.m4: Likewise.
36909         * m4/strverscmp.m4: Likewise.
36910         * m4/threadlib.m4: Likewise.
36911         * m4/timegm.m4: Likewise.
36912         * m4/tm_gmtoff.m4: Likewise.
36913         * m4/tmpdir.m4: Likewise.
36914         * m4/tmpfile.m4: Likewise.
36915         * m4/tzset.m4: Likewise.
36916         * m4/uintmax_t.m4: Likewise.
36917         * m4/unlinkdir.m4: Likewise.
36918         * m4/unlocked-io.m4: Likewise.
36919         * m4/uptime.m4: Likewise.
36920         * m4/userspec.m4: Likewise.
36921         * m4/utimbuf.m4: Likewise.
36922         * m4/utime.m4: Likewise.
36923         * m4/utimes-null.m4: Likewise.
36924         * m4/utimes.m4: Likewise.
36925         * m4/vararrays.m4: Likewise.
36926         * m4/vasnprintf.m4: Likewise.
36927         * m4/vfprintf-posix.m4: Likewise.
36928         * m4/vprintf-posix.m4: Likewise.
36929         * m4/wait-process.m4: Likewise.
36930         * m4/wchar_t.m4: Likewise.
36931         * m4/wint_t.m4: Likewise.
36932         * m4/write-any-file.m4: Likewise.
36933         * m4/yield.m4: Likewise.
36934
36935 2009-01-13  Bruno Haible  <bruno@clisp.org>
36936
36937         Avoid test-copy-file.sh failures when ACL support insufficient.
36938         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36939         TESTS_ENVIRONMENT.
36940         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36941         Reported by Jim Meyering.
36942
36943 2009-01-13  Bruno Haible  <bruno@clisp.org>
36944
36945         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36946         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36947         * modules/unistdio/u8-printf-parse (Files): Likewise.
36948         * modules/unistdio/u32-printf-parse (Files): Likewise.
36949         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36950
36951 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36952
36953         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36954         and m4/inttypes_h.m4 too.
36955
36956 2009-01-12  Eric Blake  <ebb9@byu.net>
36957
36958         tests: IRIX 6.2 cc can't compile -0.0 into .data
36959         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36960         rather than at compile-time.
36961         * tests/test-floorl.c (minus_zero): Likewise.
36962         * tests/test-frexpl.c (minus_zero): Likewise.
36963         * tests/test-isnan.c (minus_zerol): Likewise.
36964         * tests/test-isnanl.h (minus_zero): Likewise.
36965         * tests/test-ldexpl.c (minus_zero): Likewise.
36966         * tests/test-roundl.c (minus_zero): Likewise.
36967         * tests/test-signbit.c (minus_zerol): Likewise.
36968         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36969         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36970         * tests/test-truncl.c (minus_zero): Likewise.
36971         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36972         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36973         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36974
36975 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36976
36977         regex: fix glibc bug 9697
36978         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36979         handling.
36980
36981 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36982
36983         regex: fix glibc bug 697
36984         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36985         being NULL also if there are no backreferences.
36986
36987 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36988
36989         regex: merge glibc changes
36990         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36991         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36992         re_string_skip_chars, re_string_reconstruct): Likewise.
36993         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36994
36995 2009-01-07  Jim Meyering  <meyering@redhat.com>
36996
36997         poll: filter through cppi
36998         * lib/poll.c: Indent cpp directives to reflect nesting.
36999
37000 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37001
37002         poll: don't return uninitialized
37003         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37004
37005 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37006
37007         avoid compile failure on AIX 6.1
37008         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37009         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37010
37011 2009-01-04  Jim Meyering  <meyering@redhat.com>
37012
37013         remove duplicate inclusion of <stdio.h>
37014         * tests/test-fprintf-posix.c: Likewise.
37015         * tests/test-printf-posix.c: Likewise.
37016         * tests/test-snprintf-posix.c: Likewise.
37017         * tests/test-sprintf-posix.c: Likewise.
37018         * tests/test-vasprintf-posix.c: Likewise.
37019         * tests/test-vfprintf-posix.c: Likewise.
37020         * tests/test-vprintf-posix.c: Likewise.
37021         * tests/test-vsnprintf-posix.c: Likewise.
37022         * tests/test-vsprintf-posix.c: Likewise.
37023
37024 2009-01-03  Jim Meyering  <meyering@redhat.com>
37025
37026         gnulib-tool: fix sed-based filtering
37027         * gnulib-tool (func_filter_filelist): Remove extra backslash
37028         in sed_fff_filter definition.
37029
37030 2009-01-02  Jim Meyering  <meyering@redhat.com>
37031
37032         strftime: avoid compilation failure on Solaris 2.6
37033         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37034         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37035         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37036         be available.  Reported by Tom G. Christensen.  Details in
37037         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37038
37039 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37040             Bruno Haible  <bruno@clisp.org>
37041
37042         Speed up gnulib-tool by doing more string processing through shell
37043         built-ins.
37044         * gnulib-tool (fast_func_append): New variable.
37045         (func_remove_prefix, func_remove_suffix): New functions.
37046         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37047         (func_filter_filelist): New function.
37048         (func_get_dependencies): Use func_remove_suffix instead of sed.
37049         (func_get_automake_snippet): Use func_filter_filelist instead of a
37050         subshell and sed invocation.
37051
37052 2009-01-01  Bruno Haible  <bruno@clisp.org>
37053
37054         Fix a security bug.
37055         * gnulib-tool (func_import, import, update): Don't allow the characters
37056         '"', '$', '`', '\' in macro arguments that become part of commands that
37057         are evaluated.
37058
37059 2009-01-01  Bruno Haible  <bruno@clisp.org>
37060
37061         * gnulib-tool (func_reset_sigpipe): Add more comments.
37062
37063 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37064
37065         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37066         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37067         already know the answer.
37068
37069 2009-01-01  Jim Meyering  <meyering@redhat.com>
37070
37071         * lib/version-etc.c (version_etc_va): Update copyright year.
37072
37073 2008-12-30  Bruno Haible  <bruno@clisp.org>
37074
37075         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37076         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37077         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37078
37079 2008-12-29  Eric Blake  <ebb9@byu.net>
37080
37081         multiarch: avoid autoconf AC_REQUIRE bug
37082         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37083         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37084         2.63 and older.
37085         Reported by Bruno Haible, and analyzed in
37086         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37087
37088 2008-12-29  Bruno Haible  <bruno@clisp.org>
37089
37090         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37091         files in subdirectories correctly.
37092         Reported by Ralf Wildenhues.
37093
37094 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37095
37096         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37097         rather than 'join FILE -', for Solaris join.
37098
37099 2008-12-29  Bruno Haible  <bruno@clisp.org>
37100
37101         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37102         quoting.
37103         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37104         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37105         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37106         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37107         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37108         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37109         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37110         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37111         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37112         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37113         * m4/nls.m4 (AM_NLS): Likewise.
37114         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37115         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37116         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37117         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37118         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37119         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37120         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37121         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37122         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37123         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37124         * m4/xsize.m4 (gl_XSIZE): Likewise.
37125         Suggested by Jim Meyering.
37126
37127 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37128
37129         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37130         * lib/parse-duration.c: use a switch instead of cascading if's.
37131
37132 2008-12-29  Eric Blake  <ebb9@byu.net>
37133
37134         wchar.h: supply WEOF on Irix 5.3
37135         * lib/wchar.in.h (wint_t): Also supply WEOF.
37136         * lib/wctype.in.h (wint_t): Likewise.
37137         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37138         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37139         Reported by Tom G. Christensen.
37140
37141 2008-12-26  Bruno Haible  <bruno@clisp.org>
37142
37143         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37144         i486, i586, i686.
37145
37146 2008-12-26  Bruno Haible  <bruno@clisp.org>
37147
37148         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37149
37150 2008-12-26  Bruno Haible  <bruno@clisp.org>
37151
37152         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37153         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37154         not __STDC_CONSTANT_MACROS.
37155         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37156
37157 2008-12-25  Bruno Haible  <bruno@clisp.org>
37158
37159         Add support for universal builds to vasnprintf.
37160         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37161         universal builds, guess no.
37162         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37163         * modules/vasprintf-posix (Depends-on): Likewise.
37164         * modules/fprintf-posix (Depends-on): Likewise.
37165         * modules/vfprintf-posix (Depends-on): Likewise.
37166         * modules/snprintf-posix (Depends-on): Likewise.
37167         * modules/vsnprintf-posix (Depends-on): Likewise.
37168         * modules/sprintf-posix (Depends-on): Likewise.
37169         * modules/vsprintf-posix (Depends-on): Likewise.
37170         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37177
37178         Add support for universal builds to <inttypes.h>.
37179         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37180         _SCNu64_PREFIX): In Apple
37181         universal builds, define directly, using _LP64.
37182         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37183         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37184         * modules/inttypes (Depends-on): Add multiarch.
37185         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37186
37187         Add support for universal builds to <stdint.h>.
37188         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37189         universal builds, define directly, using _LP64.
37190         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37191         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37192         and size_t.
37193         * modules/stdint (Depends-on): Add multiarch.
37194         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37195
37196         New module 'multiarch'.
37197         * modules/multiarch: New file.
37198         * m4/multiarch.m4: New file.
37199
37200 2008-12-25  Bruno Haible  <bruno@clisp.org>
37201
37202         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37203
37204 2008-12-25  Bruno Haible  <bruno@clisp.org>
37205
37206         * modules/btowc (License): Relicense under LGPLv2+.
37207         * modules/mbsinit (License): Likewise.
37208         * modules/mbrtowc (License): Likewise.
37209         * modules/wcrtomb (License): Likewise.
37210         * modules/streq (License): Likewise.
37211         Reported by David Lutterkort <lutter@redhat.com>.
37212
37213 2008-12-23  Bruno Haible  <bruno@clisp.org>
37214
37215         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37216
37217 2008-12-23  Bruno Haible  <bruno@clisp.org>
37218
37219         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37221         GETADDRINFO_LIB, not in LIBS.
37222         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37223         * modules/canon-host (Link): Likewise.
37224         * NEWS: Mention the change.
37225         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37226         GETADDRINFO_LIB.
37227
37228 2008-12-22  Bruno Haible  <bruno@clisp.org>
37229
37230         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37231         * doc/posix-functions/iswalpha_l.texi: Likewise.
37232         * doc/posix-functions/iswblank_l.texi: Likewise.
37233         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37234         * doc/posix-functions/iswctype_l.texi: Likewise.
37235         * doc/posix-functions/iswdigit_l.texi: Likewise.
37236         * doc/posix-functions/iswgraph_l.texi: Likewise.
37237         * doc/posix-functions/iswlower_l.texi: Likewise.
37238         * doc/posix-functions/iswprint_l.texi: Likewise.
37239         * doc/posix-functions/iswpunct_l.texi: Likewise.
37240         * doc/posix-functions/iswspace_l.texi: Likewise.
37241         * doc/posix-functions/iswupper_l.texi: Likewise.
37242         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37243         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37244         * doc/posix-functions/open_wmemstream.texi: Likewise.
37245         * doc/posix-functions/swscanf.texi: Likewise.
37246         * doc/posix-functions/towctrans_l.texi: Likewise.
37247         * doc/posix-functions/towlower.texi: Likewise.
37248         * doc/posix-functions/towlower_l.texi: Likewise.
37249         * doc/posix-functions/towupper.texi: Likewise.
37250         * doc/posix-functions/towupper_l.texi: Likewise.
37251         * doc/posix-functions/vfwprintf.texi: Likewise.
37252         * doc/posix-functions/vfwscanf.texi: Likewise.
37253         * doc/posix-functions/vswscanf.texi: Likewise.
37254         * doc/posix-functions/vwprintf.texi: Likewise.
37255         * doc/posix-functions/vwscanf.texi: Likewise.
37256         * doc/posix-functions/wcpcpy.texi: Likewise.
37257         * doc/posix-functions/wcpncpy.texi: Likewise.
37258         * doc/posix-functions/wcscasecmp.texi: Likewise.
37259         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37260         * doc/posix-functions/wcscoll_l.texi: Likewise.
37261         * doc/posix-functions/wcsdup.texi: Likewise.
37262         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37263         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37264         * doc/posix-functions/wcsnlen.texi: Likewise.
37265         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37266         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37267         * doc/posix-functions/wctrans_l.texi: Likewise.
37268         * doc/posix-functions/wctype_l.texi: Likewise.
37269         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37270         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37271         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37272         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37273         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37274         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37275         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37276         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37277         * doc/glibc-functions/wcschrnul.texi: Likewise.
37278         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37279         * doc/glibc-functions/wcstod_l.texi: Likewise.
37280         * doc/glibc-functions/wcstof_l.texi: Likewise.
37281         * doc/glibc-functions/wcstol_l.texi: Likewise.
37282         * doc/glibc-functions/wcstold_l.texi: Likewise.
37283         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37284         * doc/glibc-functions/wcstoq.texi: Likewise.
37285         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37286         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37287         * doc/glibc-functions/wcstouq.texi: Likewise.
37288         * doc/glibc-functions/wmempcpy.texi: Likewise.
37289
37290 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37291             Eric Blake  <ebb9@byu.net>
37292             Paolo Bonzini  <bonzini@gnu.org>
37293             Bruno Haible  <bruno@clisp.org>
37294
37295         Make c-stack work on Haiku.
37296         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37297         (c_stack_action): Use SA_ONSTACK flag.
37298
37299 2008-12-22  Bruno Haible  <bruno@clisp.org>
37300
37301         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37302
37303 2008-12-22  Bruno Haible  <bruno@clisp.org>
37304
37305         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37306         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37307         being overridden.
37308         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37309         New macros.
37310         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37312         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37313         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37314
37315 2008-12-22  Bruno Haible  <bruno@clisp.org>
37316
37317         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37318         from test code.
37319
37320 2008-12-22  Eric Blake  <ebb9@byu.net>
37321
37322         Avoid gcc warnings on cygwin.
37323         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37324         Avoid unused variable.
37325         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37326         Likewise.
37327
37328 2008-12-22  Bruno Haible  <bruno@clisp.org>
37329
37330         Remove HAVE_MBRTOWC conditionals.
37331         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37332         (mbscasecmp): Assume mbrtowc function.
37333         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37334         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37335         * lib/mbschr.c: Include mbuiter.h unconditionally.
37336         (mbschr): Assume mbrtowc function.
37337         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37338         (mbscspn): Assume mbrtowc function.
37339         * lib/mbslen.c: Include mbuiter.h unconditionally.
37340         (mbslen): Assume mbrtowc function.
37341         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37342         (mbsncasecmp): Assume mbrtowc function.
37343         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37344         (mbsnlen): Assume mbrtowc function.
37345         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37346         (mbspbrk): Assume mbrtowc function.
37347         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37348         (mbspcasecmp): Assume mbrtowc function.
37349         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37350         (mbsrchr): Assume mbrtowc function.
37351         * lib/mbssep.c: Include mbuiter.h unconditionally.
37352         (mbssep): Assume mbrtowc function.
37353         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37354         (mbsspn): Assume mbrtowc function.
37355         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37356         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37357         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37358         (mbstok_r): Assume mbrtowc function.
37359         * lib/propername.c: Include mbuiter.h unconditionally.
37360         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37361         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37362         (trim2): Assume mbrtowc function.
37363         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37364         (mbsnwidth): Assume mbrtowc function.
37365         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37366         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37367         fallback definitions.
37368         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37369
37370 2008-12-22  Bruno Haible  <bruno@clisp.org>
37371
37372         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37373
37374 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37375
37376         * modules/regex: Request emulations for the mb*/wc* functions we need.
37377         * m4/regex.m4: Don't look for those functions here.
37378         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37379
37380 2008-12-22  Bruno Haible  <bruno@clisp.org>
37381
37382         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37383
37384 2008-12-21  Bruno Haible  <bruno@clisp.org>
37385
37386         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37387         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37388         (Include): Remove conditionalization.
37389         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37390         (Include): Remove conditionalization.
37391         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37392         (Include): Remove conditionalization.
37393         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37394         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37395         * NEWS: Mention the change.
37396         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37397         via Sergey Poznyakoff <gray@gnu.org.ua>.
37398
37399 2008-12-21  Bruno Haible  <bruno@clisp.org>
37400
37401         * MODULES.html.sh (Extended multibyte and wide character utilities
37402         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37403         wcrtomb, wcsrtombs.
37404         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37405         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37406         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37407         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37408
37409 2008-12-21  Bruno Haible  <bruno@clisp.org>
37410
37411         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37412
37413 2008-12-21  Bruno Haible  <bruno@clisp.org>
37414
37415         * modules/wcsnrtombs-tests: New file.
37416         * tests/test-wcsnrtombs1.sh: New file.
37417         * tests/test-wcsnrtombs2.sh: New file.
37418         * tests/test-wcsnrtombs3.sh: New file.
37419         * tests/test-wcsnrtombs4.sh: New file.
37420         * tests/test-wcsnrtombs.c: New file.
37421
37422         New module 'wcsnrtombs'.
37423         * lib/wchar.in.h (wcsnrtombs): New declaration.
37424         * lib/wcsnrtombs.c: New file.
37425         * lib/wcsrtombs-state.c: New file.
37426         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37427         (internal_state): Remove variable.
37428         * m4/wcsnrtombs.m4: New file.
37429         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37430         compilation units.
37431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37432         HAVE_WCSNRTOMBS.
37433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37434         HAVE_WCSNRTOMBS.
37435         * modules/wcsnrtombs: New file.
37436         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37437         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37438
37439 2008-12-21  Bruno Haible  <bruno@clisp.org>
37440
37441         * modules/wcsrtombs-tests: New file.
37442         * tests/test-wcsrtombs1.sh: New file.
37443         * tests/test-wcsrtombs2.sh: New file.
37444         * tests/test-wcsrtombs3.sh: New file.
37445         * tests/test-wcsrtombs4.sh: New file.
37446         * tests/test-wcsrtombs.c: New file.
37447
37448         New module 'wcsrtombs'.
37449         * lib/wchar.in.h (wcsrtombs): New declaration.
37450         * lib/wcsrtombs.c: New file.
37451         * m4/wcsrtombs.m4: New file.
37452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37453         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37455         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37456         * modules/wcsrtombs: New file.
37457         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37458         bugs.
37459
37460 2008-12-21  Bruno Haible  <bruno@clisp.org>
37461
37462         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37463         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37465         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37466         if not correct.
37467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37468         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37469         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37470         m4/locale-zh.m4, m4/codeset.m4.
37471         * doc/posix-functions/wcrtomb.texi: Document the bug.
37472
37473 2008-12-21  Bruno Haible  <bruno@clisp.org>
37474
37475         Work around a btowc() bug on IRIX 6.5.
37476         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37477         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37478         REPLACE_WTOBC if not.
37479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37480         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37481         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37482
37483 2008-12-21  Bruno Haible  <bruno@clisp.org>
37484
37485         * modules/wcrtomb-tests: New file.
37486         * tests/test-wcrtomb.sh: New file.
37487         * tests/test-wcrtomb.c: New file.
37488
37489         New module 'wcrtomb'.
37490         * lib/wchar.in.h (wcrtomb): New declaration.
37491         * lib/wcrtomb.c: New file.
37492         * m4/wcrtomb.m4: New file.
37493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37494         HAVE_WCRTOMB.
37495         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37496         HAVE_WCRTOMB.
37497         * modules/wcrtomb: New file.
37498         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37499
37500 2008-12-21  Bruno Haible  <bruno@clisp.org>
37501
37502         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37503         * modules/mbsrtowcs (Files): Likewise.
37504         * modules/wctob (Files): Likewise.
37505         * modules/c-strcase-tests (Files): Likewise.
37506         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37507         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37508         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37509         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37510         * modules/vasnprintf-posix-tests (Files): Likewise.
37511
37512 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37513
37514         gitlog-to-changelog: pass all command-line arguments to git-log
37515         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37516         it is sometimes convenient to filter the commits in various ways.
37517         gitlog-to-changelog only allows --since to specify a start date,
37518         but git-log itself supports many other filtering mechanisms.
37519         At the moment, I want to filter by branch name.  Rather than
37520         adding a --branch option to gitlog-to-changelog, it seems more
37521         flexible to simply pass all options directly to git-log and let
37522         git do the work.  Notice that this effectively makes --since a
37523         redundant option for gitlog-to-changelog, but removing it would
37524         require current usage to change since calls would then require
37525         an additional '--'.
37526
37527 2008-12-21  Bruno Haible  <bruno@clisp.org>
37528
37529         * modules/mbsnrtowcs-tests: New file.
37530         * tests/test-mbsnrtowcs1.sh: New file.
37531         * tests/test-mbsnrtowcs2.sh: New file.
37532         * tests/test-mbsnrtowcs3.sh: New file.
37533         * tests/test-mbsnrtowcs4.sh: New file.
37534         * tests/test-mbsnrtowcs.c: New file.
37535
37536         New module 'mbsnrtowcs'.
37537         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37538         * lib/mbsnrtowcs.c: New file.
37539         * lib/mbsrtowcs-state.c: New file.
37540         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37541         (internal_state): Remove variable.
37542         * m4/mbsnrtowcs.m4: New file.
37543         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37544         compilation units.
37545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37546         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37547         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37548         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37549         * modules/mbsnrtowcs: New file.
37550         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37551         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37552         portability problem.
37553
37554 2008-12-21  Bruno Haible  <bruno@clisp.org>
37555
37556         Work around mbsrtowcs bug.
37557         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37558         (gl_FUNC_MBSRTOWCS): Invoke it.
37559         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37560         m4/locale-zh.m4.
37561         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37562
37563 2008-12-21  Bruno Haible  <bruno@clisp.org>
37564
37565         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37566
37567 2008-12-21  Bruno Haible  <bruno@clisp.org>
37568
37569         Update doc for AIX.
37570         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37571         16-bit wchar_t type.
37572         * doc/posix-functions/btowc.texi: Likewise.
37573         * doc/posix-functions/fgetwc.texi: Likewise.
37574         * doc/posix-functions/fgetws.texi: Likewise.
37575         * doc/posix-functions/fputwc.texi: Likewise.
37576         * doc/posix-functions/fputws.texi: Likewise.
37577         * doc/posix-functions/fwide.texi: Likewise.
37578         * doc/posix-functions/fwprintf.texi: Likewise.
37579         * doc/posix-functions/fwscanf.texi: Likewise.
37580         * doc/posix-functions/getwchar.texi: Likewise.
37581         * doc/posix-functions/getwc.texi: Likewise.
37582         * doc/posix-functions/iswalnum.texi: Likewise.
37583         * doc/posix-functions/iswalpha.texi: Likewise.
37584         * doc/posix-functions/iswblank.texi: Likewise.
37585         * doc/posix-functions/iswcntrl.texi: Likewise.
37586         * doc/posix-functions/iswctype.texi: Likewise.
37587         * doc/posix-functions/iswdigit.texi: Likewise.
37588         * doc/posix-functions/iswgraph.texi: Likewise.
37589         * doc/posix-functions/iswlower.texi: Likewise.
37590         * doc/posix-functions/iswprint.texi: Likewise.
37591         * doc/posix-functions/iswpunct.texi: Likewise.
37592         * doc/posix-functions/iswspace.texi: Likewise.
37593         * doc/posix-functions/iswupper.texi: Likewise.
37594         * doc/posix-functions/iswxdigit.texi: Likewise.
37595         * doc/posix-functions/mbrtowc.texi: Likewise.
37596         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37597         * doc/posix-functions/mbstowcs.texi: Likewise.
37598         * doc/posix-functions/mbtowc.texi: Likewise.
37599         * doc/posix-functions/putwchar.texi: Likewise.
37600         * doc/posix-functions/putwc.texi: Likewise.
37601         * doc/posix-functions/swprintf.texi: Likewise.
37602         * doc/posix-functions/tolower.texi: Likewise.
37603         * doc/posix-functions/toupper.texi: Likewise.
37604         * doc/posix-functions/towctrans.texi: Likewise.
37605         * doc/posix-functions/ungetwc.texi: Likewise.
37606         * doc/posix-functions/vswprintf.texi: Likewise.
37607         * doc/posix-functions/wcrtomb.texi: Likewise.
37608         * doc/posix-functions/wcscat.texi: Likewise.
37609         * doc/posix-functions/wcschr.texi: Likewise.
37610         * doc/posix-functions/wcscmp.texi: Likewise.
37611         * doc/posix-functions/wcscoll.texi: Likewise.
37612         * doc/posix-functions/wcscpy.texi: Likewise.
37613         * doc/posix-functions/wcscspn.texi: Likewise.
37614         * doc/posix-functions/wcsftime.texi: Likewise.
37615         * doc/posix-functions/wcslen.texi: Likewise.
37616         * doc/posix-functions/wcsncat.texi: Likewise.
37617         * doc/posix-functions/wcsncmp.texi: Likewise.
37618         * doc/posix-functions/wcsncpy.texi: Likewise.
37619         * doc/posix-functions/wcspbrk.texi: Likewise.
37620         * doc/posix-functions/wcsrchr.texi: Likewise.
37621         * doc/posix-functions/wcsrtombs.texi: Likewise.
37622         * doc/posix-functions/wcsspn.texi: Likewise.
37623         * doc/posix-functions/wcsstr.texi: Likewise.
37624         * doc/posix-functions/wcstod.texi: Likewise.
37625         * doc/posix-functions/wcstof.texi: Likewise.
37626         * doc/posix-functions/wcstoimax.texi: Likewise.
37627         * doc/posix-functions/wcstok.texi: Likewise.
37628         * doc/posix-functions/wcstold.texi: Likewise.
37629         * doc/posix-functions/wcstoll.texi: Likewise.
37630         * doc/posix-functions/wcstol.texi: Likewise.
37631         * doc/posix-functions/wcstombs.texi: Likewise.
37632         * doc/posix-functions/wcstoull.texi: Likewise.
37633         * doc/posix-functions/wcstoul.texi: Likewise.
37634         * doc/posix-functions/wcstoumax.texi: Likewise.
37635         * doc/posix-functions/wcswidth.texi: Likewise.
37636         * doc/posix-functions/wcsxfrm.texi: Likewise.
37637         * doc/posix-functions/wctob.texi: Likewise.
37638         * doc/posix-functions/wctomb.texi: Likewise.
37639         * doc/posix-functions/wctrans.texi: Likewise.
37640         * doc/posix-functions/wctype.texi: Likewise.
37641         * doc/posix-functions/wcwidth.texi: Likewise.
37642         * doc/posix-functions/wmemchr.texi: Likewise.
37643         * doc/posix-functions/wmemcmp.texi: Likewise.
37644         * doc/posix-functions/wmemcpy.texi: Likewise.
37645         * doc/posix-functions/wmemmove.texi: Likewise.
37646         * doc/posix-functions/wmemset.texi: Likewise.
37647         * doc/posix-functions/wprintf.texi: Likewise.
37648         * doc/posix-functions/wscanf.texi: Likewise.
37649
37650 2008-12-21  Bruno Haible  <bruno@clisp.org>
37651
37652         Update doc for HP-UX 11.11.
37653         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37654         in HP-UX version 11.00, not in all versions of HP-UX 11.
37655         * doc/posix-functions/fwide.texi: Likewise.
37656         * doc/posix-functions/fwprintf.texi: Likewise.
37657         * doc/posix-functions/fwscanf.texi: Likewise.
37658         * doc/posix-functions/inet_ntop.texi: Likewise.
37659         * doc/posix-functions/inet_pton.texi: Likewise.
37660         * doc/posix-functions/mbrlen.texi: Likewise.
37661         * doc/posix-functions/mbrtowc.texi: Likewise.
37662         * doc/posix-functions/mbsinit.texi: Likewise.
37663         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37664         * doc/posix-functions/swprintf.texi: Likewise.
37665         * doc/posix-functions/swscanf.texi: Likewise.
37666         * doc/posix-functions/towctrans.texi: Likewise.
37667         * doc/posix-functions/vfwprintf.texi: Likewise.
37668         * doc/posix-functions/vswprintf.texi: Likewise.
37669         * doc/posix-functions/vwprintf.texi: Likewise.
37670         * doc/posix-functions/wcrtomb.texi: Likewise.
37671         * doc/posix-functions/wcsrtombs.texi: Likewise.
37672         * doc/posix-functions/wcsstr.texi: Likewise.
37673         * doc/posix-functions/wctob.texi: Likewise.
37674         * doc/posix-functions/wctrans.texi: Likewise.
37675         * doc/posix-functions/wmemchr.texi: Likewise.
37676         * doc/posix-functions/wmemcmp.texi: Likewise.
37677         * doc/posix-functions/wmemcpy.texi: Likewise.
37678         * doc/posix-functions/wmemmove.texi: Likewise.
37679         * doc/posix-functions/wmemset.texi: Likewise.
37680         * doc/posix-functions/wprintf.texi: Likewise.
37681         * doc/posix-functions/wscanf.texi: Likewise.
37682
37683 2008-12-21  Bruno Haible  <bruno@clisp.org>
37684
37685         Work around a portability problem.
37686         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37687         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37688
37689 2008-12-20  Bruno Haible  <bruno@clisp.org>
37690
37691         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37692         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37693         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37695         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37696
37697         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37698         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37699         set.
37700         (GNULIB_defined_mbstate_t): New macro.
37701         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37702         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37703         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37704         reuses the system's mbrtowc function but works around the bugs.
37705         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37706         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37707         macros.
37708         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37709         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37710         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37711         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37712         REPLACE_MBSINIT if mbsinit needs to be overridden.
37713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37714         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37715         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37716         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37717         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37718         m4/locale-zh.m4.
37719         (Depends): Add mbsinit.
37720         * modules/mbsinit (Depends): Add mbrtowc.
37721         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37722
37723 2008-12-20  Bruno Haible  <bruno@clisp.org>
37724
37725         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37726         so that there are no conversion errors on AIX.
37727         * tests/test-mbsrtowcs.c (main): LIkewise.
37728
37729 2008-12-20  Bruno Haible  <bruno@clisp.org>
37730
37731         Work around wctob bug on Solaris <= 9.
37732         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37733         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37735         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37736         * modules/wctob (Files): Add m4/locale-fr.m4.
37737         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37738
37739 2008-12-20  Bruno Haible  <bruno@clisp.org>
37740
37741         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37742         /dev/null.
37743         * tests/test-select-in.sh: Likewise.
37744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37745
37746 2008-12-20  Bruno Haible  <bruno@clisp.org>
37747
37748         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37749         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37750         Cygwin 1.5.x.
37751
37752 2008-12-20  Bruno Haible  <bruno@clisp.org>
37753
37754         Ensure mbstate_t is defined on HP-UX 11.11.
37755         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37756         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37757         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37758         AC_USE_SYSTEM_EXTENSIONS.
37759         * modules/fnmatch (Depends-on): Add extensions.
37760         * modules/mbrlen (Depends-on): Likewise.
37761         * modules/mbrtowc (Depends-on): Likewise.
37762         * modules/mbsinit (Depends-on): Likewise.
37763         * modules/mbsrtowcs (Depends-on): Likewise.
37764         * modules/mbswidth (Depends-on): Likewise.
37765         * modules/quotearg (Depends-on): Likewise.
37766         * modules/strftime (Depends-on): Likewise.
37767
37768 2008-12-20  Bruno Haible  <bruno@clisp.org>
37769
37770         Ensure wctob is declared on IRIX 6.5.
37771         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37772         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37773         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37775         of HAVE_WCTOB.
37776         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37777         HAVE_WCTOB.
37778         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37779
37780 2008-12-19  Bruno Haible  <bruno@clisp.org>
37781
37782         * modules/mbsrtowcs-tests: New file.
37783         * tests/test-mbsrtowcs1.sh: New file.
37784         * tests/test-mbsrtowcs2.sh: New file.
37785         * tests/test-mbsrtowcs3.sh: New file.
37786         * tests/test-mbsrtowcs4.sh: New file.
37787         * tests/test-mbsrtowcs.c: New file.
37788
37789         New module 'mbsrtowcs'.
37790         * lib/wchar.in.h (mbsrtowcs): New declaration.
37791         * lib/mbsrtowcs.c: New file.
37792         * m4/mbsrtowcs.m4: New file.
37793         * modules/mbsrtowcs: New file.
37794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37795         HAVE_MBSRTOWCS.
37796         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37797         HAVE_MBSRTOWCS.
37798         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37799
37800 2008-12-19  Bruno Haible  <bruno@clisp.org>
37801
37802         New module 'mbrlen'.
37803         * lib/wchar.in.h (mbrlen): New declaration.
37804         * lib/mbrlen.c: New file.
37805         * m4/mbrlen.m4: New file.
37806         * modules/mbrlen: New file.
37807         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37808         HAVE_MBRLEN.
37809         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37810         HAVE_MBRLEN.
37811         * doc/posix-functions/mbrlen.texi: Document the new module.
37812
37813 2008-12-19  Bruno Haible  <bruno@clisp.org>
37814
37815         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37816         * modules/mbrtowc (Depends-on): Add verify.
37817         Suggested by Paul Eggert.
37818
37819 2008-12-18  Bruno Haible  <bruno@clisp.org>
37820
37821         * modules/mbsinit-tests: New file.
37822         * tests/test-mbsinit.sh: New file.
37823         * tests/test-mbsinit.c: New file.
37824
37825 2008-12-18  Bruno Haible  <bruno@clisp.org>
37826
37827         * modules/mbrtowc-tests: New file.
37828         * tests/test-mbrtowc1.sh: New file.
37829         * tests/test-mbrtowc2.sh: New file.
37830         * tests/test-mbrtowc3.sh: New file.
37831         * tests/test-mbrtowc4.sh: New file.
37832         * tests/test-mbrtowc.c: New file.
37833
37834         New module 'mbrtowc'.
37835         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37836         mbsinit and mbrtowc.
37837         (mbrtowc): New declaration.
37838         * lib/mbrtowc.c: New file.
37839         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37840         * modules/mbrtowc: New file.
37841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37842         HAVE_MBRTOWC.
37843         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37844         HAVE_MBRTOWC.
37845         * doc/posix-functions/mbrtowc.texi: Document the new module.
37846
37847 2008-12-18  Bruno Haible  <bruno@clisp.org>
37848
37849         New module 'wctob'.
37850         * lib/wchar.in.h (wctob): New declaration.
37851         * lib/wctob.c: New file.
37852         * m4/wctob.m4: New file.
37853         * modules/wctob: New file.
37854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37855         HAVE_WCTOB.
37856         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37857         * doc/posix-functions/wctob.texi: Document the new module.
37858
37859 2008-12-18  Bruno Haible  <bruno@clisp.org>
37860
37861         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37862         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37863
37864 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37865
37866         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37867         G. Christensen" <tgc@jupiterrise.com>.
37868
37869         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37870         G. Christensen" <tgc@jupiterrise.com>.
37871
37872         * lib/flock.c: Need to include string.h.  Reported by "Tom
37873         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37874         <ebb9@byu.net>.
37875
37876 2008-12-18  Bruno Haible  <bruno@clisp.org>
37877
37878         * m4/locale-ja.m4: New file, from GNU gettext.
37879
37880 2008-12-17  Bruno Haible  <bruno@clisp.org>
37881
37882         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37883         Suggested by Eric Blake.
37884
37885 2008-12-17  Bruno Haible  <bruno@clisp.org>
37886
37887         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37888
37889 2008-12-17  Bruno Haible  <bruno@clisp.org>
37890
37891         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37892         * modules/mbsinit (Depends-on): Add verify.
37893         Suggested by Paul Eggert.
37894
37895 2008-12-17  Bruno Haible  <bruno@clisp.org>
37896
37897         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37898         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37899         gl_FUNC_MBRTOWC.
37900         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37901         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37902         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37903         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37904         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37905         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37906         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37907         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37908         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37909         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37910         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37911         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37912         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37913         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37914         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37915         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37916         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37917         * modules/trim (configure.ac): Likewise.
37918
37919 2008-12-17  Bruno Haible  <bruno@clisp.org>
37920
37921         * modules/btowc-tests: New file.
37922         * tests/test-btowc1.sh: New file.
37923         * tests/test-btowc2.sh: New file.
37924         * tests/test-btowc.c: New file.
37925
37926         New module 'btowc'.
37927         * lib/wchar.in.h (btowc): New declaration.
37928         * lib/btowc.c: New file.
37929         * m4/btowc.m4: New file.
37930         * modules/btowc: New file.
37931         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37932         HAVE_BTOWC.
37933         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37934         * doc/posix-functions/btowc.texi: Document the new module.
37935
37936 2008-12-17  Bruno Haible  <bruno@clisp.org>
37937
37938         New module 'mbsinit'.
37939         * lib/wchar.in.h (mbsinit): New declaration.
37940         * lib/mbsinit.c: New file.
37941         * m4/mbsinit.m4: New file.
37942         * modules/mbsinit: New file.
37943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37944         HAVE_MBSINIT.
37945         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37946         HAVE_MBSINIT.
37947         * doc/posix-functions/mbsinit.texi: Document the new module.
37948
37949 2008-12-16  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/unistd.in.h: Add comment.
37952         * tests/test-environ.c: Don't include <stdlib.h>.
37953
37954 2008-12-16  Bruno Haible  <bruno@clisp.org>
37955
37956         * lib/parse-duration.h (parse_duration): Document return value
37957         convention.
37958         * lib/parse-duration.c: Include specification header first. Add
37959         comments.
37960         (_): Remove macro.
37961         (parse_year_month_day, parse_hour_minute_second): Move side effects
37962         outside of strchr call.
37963         (parse_non_iso8601): Move side effects outside of isspace call.
37964         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37965         call.
37966
37967 2008-12-16  Bruno Haible  <bruno@clisp.org>
37968
37969         * tests/test-parse-duration.sh: Produce no output when the test
37970         succeeds.
37971
37972 2008-12-16  Bruno Haible  <bruno@clisp.org>
37973
37974         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37975         expressions.
37976
37977 2008-12-15  Bruno Haible  <bruno@clisp.org>
37978
37979         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37980         * doc/glibc-functions/flistxattr.texi: Likewise.
37981         * doc/glibc-functions/fopencookie.texi: Likewise.
37982         * doc/glibc-functions/fremovexattr.texi: Likewise.
37983         * doc/glibc-functions/fsetxattr.texi: Likewise.
37984         * doc/glibc-functions/getxattr.texi: Likewise.
37985         * doc/glibc-functions/lgetxattr.texi: Likewise.
37986         * doc/glibc-functions/listxattr.texi: Likewise.
37987         * doc/glibc-functions/llistxattr.texi: Likewise.
37988         * doc/glibc-functions/lremovexattr.texi: Likewise.
37989         * doc/glibc-functions/lsetxattr.texi: Likewise.
37990         * doc/glibc-functions/removexattr.texi: Likewise.
37991         * doc/glibc-functions/setxattr.texi: Likewise.
37992         * doc/posix-functions/open_memstream.texi: Likewise.
37993
37994 2008-12-15  Eric Blake  <ebb9@byu.net>
37995
37996         Update doc for cygwin 1.7.
37997         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37998         functions.
37999         * doc/posix-functions/fchmodat.texi: Likewise.
38000         * doc/posix-functions/fchownat.texi: Likewise.
38001         * doc/posix-functions/fdopendir.texi: Likewise.
38002         * doc/posix-functions/fmemopen.texi: Likewise.
38003         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38004         * doc/posix-functions/fstatat.texi: Likewise.
38005         * doc/posix-functions/futimens.texi: Likewise.
38006         * doc/posix-functions/gai_strerror.texi: Likewise.
38007         * doc/posix-functions/getaddrinfo.texi: Likewise.
38008         * doc/posix-functions/getnameinfo.texi: Likewise.
38009         * doc/posix-functions/if_freenameindex.texi: Likewise.
38010         * doc/posix-functions/if_indextoname.texi: Likewise.
38011         * doc/posix-functions/if_nameindex.texi: Likewise.
38012         * doc/posix-functions/if_nametoindex.texi: Likewise.
38013         * doc/posix-functions/insque.texi: Likewise.
38014         * doc/posix-functions/linkat.texi: Likewise.
38015         * doc/posix-functions/llrint.texi: Likewise.
38016         * doc/posix-functions/llrintf.texi: Likewise.
38017         * doc/posix-functions/llrintl.texi: Likewise.
38018         * doc/posix-functions/lockf.texi: Likewise.
38019         * doc/posix-functions/lrintl.texi: Likewise.
38020         * doc/posix-functions/mkdirat.texi: Likewise.
38021         * doc/posix-functions/mkfifoat.texi: Likewise.
38022         * doc/posix-functions/mknodat.texi: Likewise.
38023         * doc/posix-functions/mq_close.texi: Likewise.
38024         * doc/posix-functions/mq_getattr.texi: Likewise.
38025         * doc/posix-functions/mq_notify.texi: Likewise.
38026         * doc/posix-functions/mq_open.texi: Likewise.
38027         * doc/posix-functions/mq_receive.texi: Likewise.
38028         * doc/posix-functions/mq_send.texi: Likewise.
38029         * doc/posix-functions/mq_setattr.texi: Likewise.
38030         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38031         * doc/posix-functions/mq_timedsend.texi: Likewise.
38032         * doc/posix-functions/mq_unlink.texi: Likewise.
38033         * doc/posix-functions/open_memstream.texi: Likewise.
38034         * doc/posix-functions/openat.texi: Likewise.
38035         * doc/posix-functions/posix_fadvise.texi: Likewise.
38036         * doc/posix-functions/posix_fallocate.texi: Likewise.
38037         * doc/posix-functions/posix_madvise.texi: Likewise.
38038         * doc/posix-functions/posix_memalign.texi: Likewise.
38039         * doc/posix-functions/posix_openpt.texi: Likewise.
38040         * doc/posix-functions/readlinkat.texi: Likewise.
38041         * doc/posix-functions/remque.texi: Likewise.
38042         * doc/posix-functions/renameat.texi: Likewise.
38043         * doc/posix-functions/rintl.texi: Likewise.
38044         * doc/posix-functions/sem_unlink.texi: Likewise.
38045         * doc/posix-functions/shm_open.texi: Likewise.
38046         * doc/posix-functions/shm_unlink.texi: Likewise.
38047         * doc/posix-functions/signgam.texi: Likewise.
38048         * doc/posix-functions/sigset.texi: Likewise.
38049         * doc/posix-functions/stpcpy.texi: Likewise.
38050         * doc/posix-functions/stpncpy.texi: Likewise.
38051         * doc/posix-functions/strerror.texi: Likewise.
38052         * doc/posix-functions/strtod.texi: Likewise.
38053         * doc/posix-functions/symlinkat.texi: Likewise.
38054         * doc/posix-functions/unlinkat.texi: Likewise.
38055         * doc/posix-functions/utimensat.texi: Likewise.
38056         * doc/glibc-functions/bindresvport.texi: Likewise.
38057         * doc/glibc-functions/dn_expand.texi: Likewise.
38058         * doc/glibc-functions/exp10.texi: Likewise.
38059         * doc/glibc-functions/exp10f.texi: Likewise.
38060         * doc/glibc-functions/fgetxattr.texi: Likewise.
38061         * doc/glibc-functions/flistxattr.texi: Likewise.
38062         * doc/glibc-functions/fopencookie.texi: Likewise.
38063         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38064         * doc/glibc-functions/fremovexattr.texi: Likewise.
38065         * doc/glibc-functions/fsetxattr.texi: Likewise.
38066         * doc/glibc-functions/getifaddrs.texi: Likewise.
38067         * doc/glibc-functions/getxattr.texi: Likewise.
38068         * doc/glibc-functions/lgetxattr.texi: Likewise.
38069         * doc/glibc-functions/listxattr.texi: Likewise.
38070         * doc/glibc-functions/llistxattr.texi: Likewise.
38071         * doc/glibc-functions/lremovexattr.texi: Likewise.
38072         * doc/glibc-functions/lsetxattr.texi: Likewise.
38073         * doc/glibc-functions/pow10.texi: Likewise.
38074         * doc/glibc-functions/pow10f.texi: Likewise.
38075         * doc/glibc-functions/rcmd_af.texi: Likewise.
38076         * doc/glibc-functions/removexattr.texi: Likewise.
38077         * doc/glibc-functions/res_init.texi: Likewise.
38078         * doc/glibc-functions/res_mkquery.texi: Likewise.
38079         * doc/glibc-functions/res_query.texi: Likewise.
38080         * doc/glibc-functions/res_querydomain.texi: Likewise.
38081         * doc/glibc-functions/res_send.texi: Likewise.
38082         * doc/glibc-functions/rresvport_af.texi: Likewise.
38083         * doc/glibc-functions/setxattr.texi: Likewise.
38084         * doc/glibc-functions/strcasestr.texi: Likewise.
38085
38086 2008-12-15  Bruno Haible  <bruno@clisp.org>
38087
38088         Fix compilation error on OSF/1 4.0.
38089         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38090         <sys/time.h>, simply delegate to the system header.
38091         Reported by Daniel Richard G. <oss@teragram.com>.
38092
38093 2008-12-15  Bruno Haible  <bruno@clisp.org>
38094
38095         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38096         * doc/posix-functions/fchmodat.texi: Likewise.
38097         * doc/posix-functions/fchownat.texi: Likewise.
38098         * doc/posix-functions/fdopendir.texi: Likewise.
38099         * doc/posix-functions/fstatat.texi: Likewise.
38100         * doc/posix-functions/mkdirat.texi: Likewise.
38101         * doc/posix-functions/unlinkat.texi: Likewise.
38102
38103 2008-12-14  Bruno Haible  <bruno@clisp.org>
38104
38105         Update doc for POSIX:2008.
38106         * doc/posix-functions/faccessat.texi: New file.
38107         * doc/posix-functions/fchmodat.texi: New file.
38108         * doc/posix-functions/fchownat.texi: New file.
38109         * doc/posix-functions/fdopendir.texi: New file.
38110         * doc/posix-functions/fstatat.texi: New file.
38111         * doc/posix-functions/futimens.texi: New file.
38112         * doc/posix-functions/linkat.texi: New file.
38113         * doc/posix-functions/mkdirat.texi: New file.
38114         * doc/posix-functions/mkfifoat.texi: New file.
38115         * doc/posix-functions/mknodat.texi: New file.
38116         * doc/posix-functions/open_wmemstream.texi: New file.
38117         * doc/posix-functions/openat.texi: New file.
38118         * doc/posix-functions/psiginfo.texi: New file.
38119         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38120         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38121         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38122         * doc/posix-functions/readlinkat.texi: New file.
38123         * doc/posix-functions/renameat.texi: New file.
38124         * doc/posix-functions/strerror_l.texi: New file.
38125         * doc/posix-functions/symlinkat.texi: New file.
38126         * doc/posix-functions/unlinkat.texi: New file.
38127         * doc/posix-functions/utimensat.texi: New file.
38128         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38129
38130 2008-12-14  Bruno Haible  <bruno@clisp.org>
38131
38132         Update doc for POSIX:2008.
38133         * doc/posix-functions/alphasort.texi: Renamed from
38134         doc/glibc-functions/alphasort.texi.
38135         * doc/posix-functions/dirfd.texi: Renamed from
38136         doc/glibc-functions/dirfd.texi.
38137         * doc/posix-functions/dprintf.texi: Renamed from
38138         doc/glibc-functions/dprintf.texi.
38139         * doc/posix-functions/duplocale.texi: Renamed from
38140         doc/glibc-functions/duplocale.texi.
38141         * doc/posix-functions/fexecve.texi: Renamed from
38142         doc/glibc-functions/fexecve.texi.
38143         * doc/posix-functions/fmemopen.texi: Renamed from
38144         doc/glibc-functions/fmemopen.texi.
38145         * doc/posix-functions/freelocale.texi: Renamed from
38146         doc/glibc-functions/freelocale.texi.
38147         * doc/posix-functions/getdate_err.texi: Renamed from
38148         doc/glibc-functions/getdate_err.texi.
38149         * doc/posix-functions/isalnum_l.texi: Renamed from
38150         doc/glibc-functions/isalnum_l.texi.
38151         * doc/posix-functions/isalpha_l.texi: Renamed from
38152         doc/glibc-functions/isalpha_l.texi.
38153         * doc/posix-functions/isblank_l.texi: Renamed from
38154         doc/glibc-functions/isblank_l.texi.
38155         * doc/posix-functions/iscntrl_l.texi: Renamed from
38156         doc/glibc-functions/iscntrl_l.texi.
38157         * doc/posix-functions/isdigit_l.texi: Renamed from
38158         doc/glibc-functions/isdigit_l.texi.
38159         * doc/posix-functions/isgraph_l.texi: Renamed from
38160         doc/glibc-functions/isgraph_l.texi.
38161         * doc/posix-functions/islower_l.texi: Renamed from
38162         doc/glibc-functions/islower_l.texi.
38163         * doc/posix-functions/isprint_l.texi: Renamed from
38164         doc/glibc-functions/isprint_l.texi.
38165         * doc/posix-functions/ispunct_l.texi: Renamed from
38166         doc/glibc-functions/ispunct_l.texi.
38167         * doc/posix-functions/isspace_l.texi: Renamed from
38168         doc/glibc-functions/isspace_l.texi.
38169         * doc/posix-functions/isupper_l.texi: Renamed from
38170         doc/glibc-functions/isupper_l.texi.
38171         * doc/posix-functions/iswalnum_l.texi: Renamed from
38172         doc/glibc-functions/iswalnum_l.texi.
38173         * doc/posix-functions/iswalpha_l.texi: Renamed from
38174         doc/glibc-functions/iswalpha_l.texi.
38175         * doc/posix-functions/iswblank_l.texi: Renamed from
38176         doc/glibc-functions/iswblank_l.texi.
38177         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38178         doc/glibc-functions/iswcntrl_l.texi.
38179         * doc/posix-functions/iswctype_l.texi: Renamed from
38180         doc/glibc-functions/iswctype_l.texi.
38181         * doc/posix-functions/iswdigit_l.texi: Renamed from
38182         doc/glibc-functions/iswdigit_l.texi.
38183         * doc/posix-functions/iswgraph_l.texi: Renamed from
38184         doc/glibc-functions/iswgraph_l.texi.
38185         * doc/posix-functions/iswlower_l.texi: Renamed from
38186         doc/glibc-functions/iswlower_l.texi.
38187         * doc/posix-functions/iswprint_l.texi: Renamed from
38188         doc/glibc-functions/iswprint_l.texi.
38189         * doc/posix-functions/iswpunct_l.texi: Renamed from
38190         doc/glibc-functions/iswpunct_l.texi.
38191         * doc/posix-functions/iswspace_l.texi: Renamed from
38192         doc/glibc-functions/iswspace_l.texi.
38193         * doc/posix-functions/iswupper_l.texi: Renamed from
38194         doc/glibc-functions/iswupper_l.texi.
38195         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38196         doc/glibc-functions/iswxdigit_l.texi.
38197         * doc/posix-functions/isxdigit_l.texi: Renamed from
38198         doc/glibc-functions/isxdigit_l.texi.
38199         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38200         doc/glibc-functions/mbsnrtowcs.texi.
38201         * doc/posix-functions/mkdtemp.texi: Renamed from
38202         doc/glibc-functions/mkdtemp.texi.
38203         * doc/posix-functions/newlocale.texi: Renamed from
38204         doc/glibc-functions/newlocale.texi.
38205         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38206         doc/glibc-functions/nl_langinfo_l.texi.
38207         * doc/posix-functions/open_memstream.texi: Renamed from
38208         doc/glibc-functions/open_memstream.texi.
38209         * doc/posix-functions/opterr.texi: Renamed from
38210         doc/glibc-functions/opterr.texi.
38211         * doc/posix-functions/optind.texi: Renamed from
38212         doc/glibc-functions/optind.texi.
38213         * doc/posix-functions/optopt.texi: Renamed from
38214         doc/glibc-functions/optopt.texi.
38215         * doc/posix-functions/psignal.texi: Renamed from
38216         doc/glibc-functions/psignal.texi.
38217         * doc/posix-functions/scandir.texi: Renamed from
38218         doc/glibc-functions/scandir.texi.
38219         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38220         doc/glibc-functions/sched_get_priority_min.texi.
38221         * doc/posix-functions/signgam.texi: Renamed from
38222         doc/glibc-functions/signgam.texi.
38223         * doc/posix-functions/stpcpy.texi: Renamed from
38224         doc/glibc-functions/stpcpy.texi.
38225         * doc/posix-functions/stpncpy.texi: Renamed from
38226         doc/glibc-functions/stpncpy.texi.
38227         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38228         doc/glibc-functions/strcasecmp_l.texi.
38229         * doc/posix-functions/strcoll_l.texi: Renamed from
38230         doc/glibc-functions/strcoll_l.texi.
38231         * doc/posix-functions/strfmon_l.texi: Renamed from
38232         doc/glibc-functions/strfmon_l.texi.
38233         * doc/posix-functions/strftime_l.texi: Renamed from
38234         doc/glibc-functions/strftime_l.texi.
38235         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38236         doc/glibc-functions/strncasecmp_l.texi.
38237         * doc/posix-functions/strndup.texi: Renamed from
38238         doc/glibc-functions/strndup.texi.
38239         * doc/posix-functions/strnlen.texi: Renamed from
38240         doc/glibc-functions/strnlen.texi.
38241         * doc/posix-functions/strsignal.texi: Renamed from
38242         doc/glibc-functions/strsignal.texi.
38243         * doc/posix-functions/strxfrm_l.texi: Renamed from
38244         doc/glibc-functions/strxfrm_l.texi.
38245         * doc/posix-functions/timer_gettime.texi: Renamed from
38246         doc/glibc-functions/timer_gettime.texi.
38247         * doc/posix-functions/tolower_l.texi: Renamed from
38248         doc/glibc-functions/tolower_l.texi.
38249         * doc/posix-functions/toupper_l.texi: Renamed from
38250         doc/glibc-functions/toupper_l.texi.
38251         * doc/posix-functions/towctrans_l.texi: Renamed from
38252         doc/glibc-functions/towctrans_l.texi.
38253         * doc/posix-functions/towlower_l.texi: Renamed from
38254         doc/glibc-functions/towlower_l.texi.
38255         * doc/posix-functions/towupper_l.texi: Renamed from
38256         doc/glibc-functions/towupper_l.texi.
38257         * doc/posix-functions/uselocale.texi: Renamed from
38258         doc/glibc-functions/uselocale.texi.
38259         * doc/posix-functions/vdprintf.texi: Renamed from
38260         doc/glibc-functions/vdprintf.texi.
38261         * doc/posix-functions/wcpcpy.texi:
38262         Renamed from doc/glibc-functions/wcpcpy.texi.
38263         * doc/posix-functions/wcpncpy.texi: Renamed from
38264         doc/glibc-functions/wcpncpy.texi.
38265         * doc/posix-functions/wcscasecmp.texi: Renamed from
38266         doc/glibc-functions/wcscasecmp.texi.
38267         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38268         doc/glibc-functions/wcscasecmp_l.texi.
38269         * doc/posix-functions/wcscoll_l.texi: Renamed from
38270         doc/glibc-functions/wcscoll_l.texi.
38271         * doc/posix-functions/wcsdup.texi: Renamed from
38272         doc/glibc-functions/wcsdup.texi.
38273         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38274         doc/glibc-functions/wcsncasecmp.texi.
38275         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38276         doc/glibc-functions/wcsncasecmp_l.texi.
38277         * doc/posix-functions/wcsnlen.texi: Renamed from
38278         doc/glibc-functions/wcsnlen.texi.
38279         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38280         doc/glibc-functions/wcsnrtombs.texi.
38281         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38282         doc/glibc-functions/wcsxfrm_l.texi.
38283         * doc/posix-functions/wctrans_l.texi: Renamed from
38284         doc/glibc-functions/wctrans_l.texi.
38285         * doc/posix-functions/wctype_l.texi: Renamed from
38286         doc/glibc-functions/wctype_l.texi.
38287         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38288         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38289         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38290         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38291         these subsections.
38292         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38293         Remove sections.
38294
38295 2008-12-14  Bruno Haible  <bruno@clisp.org>
38296
38297         Update doc for POSIX:2008.
38298         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38299
38300 2008-12-14  Bruno Haible  <bruno@clisp.org>
38301
38302         Update doc for POSIX:2008.
38303         * doc/pastposix-functions/bcmp.texi: Renamed from
38304         doc/posix-functions/bcmp.texi.
38305         * doc/pastposix-functions/bcopy.texi: Renamed from
38306         doc/posix-functions/bcopy.texi.
38307         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38308         doc/posix-functions/bsd_signal.texi.
38309         * doc/pastposix-functions/bzero.texi: Renamed from
38310         doc/posix-functions/bzero.texi.
38311         * doc/pastposix-functions/ecvt.texi: Renamed from
38312         doc/posix-functions/ecvt.texi.
38313         * doc/pastposix-functions/fcvt.texi: Renamed from
38314         doc/posix-functions/fcvt.texi.
38315         * doc/pastposix-functions/ftime.texi: Renamed from
38316         doc/posix-functions/ftime.texi.
38317         * doc/pastposix-functions/gcvt.texi: Renamed from
38318         doc/posix-functions/gcvt.texi.
38319         * doc/pastposix-functions/getcontext.texi: Renamed from
38320         doc/posix-functions/getcontext.texi.
38321         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38322         doc/posix-functions/gethostbyaddr.texi.
38323         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38324         doc/posix-functions/gethostbyname.texi.
38325         * doc/pastposix-functions/getwd.texi: Renamed from
38326         doc/posix-functions/getwd.texi.
38327         * doc/pastposix-functions/h_errno.texi: Renamed from
38328         doc/posix-functions/h_errno.texi.
38329         * doc/pastposix-functions/index.texi: Renamed from
38330         doc/posix-functions/index.texi.
38331         * doc/pastposix-functions/makecontext.texi: Renamed from
38332         doc/posix-functions/makecontext.texi.
38333         * doc/pastposix-functions/mktemp.texi: Renamed from
38334         doc/posix-functions/mktemp.texi.
38335         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38336         doc/posix-functions/pthread_attr_getstackaddr.texi.
38337         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38338         doc/posix-functions/pthread_attr_setstackaddr.texi.
38339         * doc/pastposix-functions/rindex.texi: Renamed from
38340         doc/posix-functions/rindex.texi.
38341         * doc/pastposix-functions/scalb.texi: Renamed from
38342         doc/posix-functions/scalb.texi.
38343         * doc/pastposix-functions/setcontext.texi: Renamed from
38344         doc/posix-functions/setcontext.texi.
38345         * doc/pastposix-functions/swapcontext.texi: Renamed from
38346         doc/posix-functions/swapcontext.texi.
38347         * doc/pastposix-functions/ualarm.texi: Renamed from
38348         doc/posix-functions/ualarm.texi.
38349         * doc/pastposix-functions/usleep.texi: Renamed from
38350         doc/posix-functions/usleep.texi.
38351         * doc/pastposix-functions/vfork.texi: Renamed from
38352         doc/posix-functions/vfork.texi.
38353         * doc/pastposix-functions/wcswcs.texi: Renamed from
38354         doc/posix-functions/wcswcs.texi.
38355         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38356         (Function Substitutes): Update.
38357
38358 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38359
38360         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38361         m4/strerror.m4.
38362
38363 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38364             Bruno Haible  <bruno@clisp.org>
38365
38366         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38367
38368 2008-12-13  Bruno Haible  <bruno@clisp.org>
38369
38370         * modules/strtoull (Depends-on): Remove unistd.
38371
38372 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38373
38374         * modules/strtoull (Depends-on): Add stdlib.
38375
38376 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38377
38378         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38379
38380 2008-12-10  Jim Meyering  <meyering@redhat.com>
38381
38382         gl_ASSERT: don't say assertions are disabled when they're not
38383         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38384         "checking whether to enable assertions... no", when they are in
38385         fact enabled.  This is solely a bug in the output of configure.
38386         In spite of saying "no", NDEBUG was not defined in that case.
38387         Also, as noted by Eric Blake, leave assertions enabled upon
38388         --enable-assert=INVALID.
38389
38390 2008-12-10  Bruno Haible  <bruno@clisp.org>
38391
38392         Change MODULES.html to refer to POSIX:2008 where possible.
38393         * MODULES.html.sh (POSIX2008_URL): New variable.
38394         (posix_headers): Remove sys/timeb, ucontext.
38395         (posix2001_headers): New variable.
38396         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38397         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38398         index, makecontext, mktemp, pthread_attr_getstackaddr,
38399         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38400         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38401         (posix2001_functions): New variable.
38402         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38403         otherwise.
38404
38405 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38406
38407         add missing include to parse-duration.c
38408         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38409         * modules/parse-duration (Depends-on): Add xalloc.
38410
38411         fix sed script reading maint.mk
38412         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38413         (syntax-check-rules): Use it.
38414
38415 2008-12-09  Bruno Haible  <bruno@clisp.org>
38416
38417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38418         MacOS X 10.4/PowerPC.
38419         Reported by Simon Josefsson.
38420
38421 2008-12-08  Jim Meyering  <meyering@redhat.com>
38422
38423         work around mingw's lack of some S_IF definitions
38424         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38425         Reported by Simon Josefsson.
38426
38427 2008-12-08  Bruno Haible  <bruno@clisp.org>
38428
38429         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38430         applied to variables. Needed on MacOS X 10.4/PowerPC.
38431         Reported by Simon Josefsson.
38432
38433 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38434         and Eric Blake  <ebb9@byu.net>
38435
38436         assert: honor --enable-assert
38437         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38438         order to honor --enable-assert, rather than treating it as a
38439         synonym for --disable-assert.
38440
38441 2008-12-08  Jim Meyering  <meyering@redhat.com>
38442
38443         * lib/posixtm.c: Remove now-useless declaration of mktime.
38444
38445         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38446
38447 2008-12-07  Bruno Haible  <bruno@clisp.org>
38448
38449         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38450         test_once): Mark functions as static.
38451         * tests/test-tls.c (test_tls): Likewise.
38452
38453 2008-12-07  Bruno Haible  <bruno@clisp.org>
38454
38455         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38456         iconv_register_autodetect.
38457
38458 2008-12-07  Jim Meyering  <meyering@redhat.com>
38459
38460         posixtm.c: avoid a warning
38461         * lib/posixtm.c (posixtime): Don't initialize tm0.
38462         It's no longer needed to placate gcc4's -Wuninitialized,
38463         and the attempt to placate would elicit a new warning.
38464
38465         unicodeio.c: mark unused parameters
38466         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38467         (fallback_failure_callback): Likewise.
38468
38469 2008-12-07  Bruno Haible  <bruno@clisp.org>
38470
38471         * gnulib-tool (func_create_testdir): When building the tests
38472         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38473         Reported by Simon Josefsson.
38474
38475 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38476
38477         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38478
38479 2008-12-06  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38482         Suggested by Eric Blake.
38483
38484 2008-12-06  Bruno Haible  <bruno@clisp.org>
38485
38486         Fix a c-stack test failure on MacOS X.
38487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38488         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38489         handler for SIGBUS as well.
38490         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38491         install a signal handler for SIGBUS as well.
38492         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38493
38494 2008-12-06  Bruno Haible  <bruno@clisp.org>
38495
38496         Advocacy documentation.
38497         * doc/gnulib-intro.texi (Benefits): New section.
38498         * doc/gnulib.texi: Update.
38499
38500 2008-12-06  Bruno Haible  <bruno@clisp.org>
38501
38502         Document the 'manywarnings' module.
38503         * doc/manywarnings.texi: New file.
38504         * doc/gnulib.texi: Include it.
38505
38506 2008-12-05  Eric Blake  <ebb9@byu.net>
38507
38508         tests: silence some gcc warnings
38509         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38510         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38511         type mismatches.
38512
38513 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38514             Bruno Haible  <bruno@clisp.org>
38515
38516         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38517
38518 2008-11-29  Jim Meyering  <meyering@redhat.com>
38519
38520         unicodeio.c: mark unused parameters
38521         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38522         (fallback_failure_callback): Likewise.
38523
38524         fts: fix a thinko
38525         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38526         (set_stat_type): Return S_IF*-valued "type" directly.
38527         Prompted by James Youngman's spotting a related bug.
38528         Confirmed by further testing through find.
38529
38530         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38531         * lib/fts.c (D_TYPE): Define.
38532         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38533         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38534         (s_ifmt_shift_bits): New function.
38535         (set_stat_type): New function.
38536         (fts_build): When not calling fts_stat, call set_stat_type
38537         to propagate dirent.d_type info to fts_read caller.
38538         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38539         fts_statp->st_mode type information may be valid.
38540
38541 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38542
38543         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38544         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38545         <sds@gnu.org>.
38546
38547 2008-11-20  Bruno Haible  <bruno@clisp.org>
38548
38549         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38550         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38551         INCLUDE_NEXT.
38552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38553         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38554         * modules/math (Makefile.am): Substitute
38555         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38556         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38557
38558 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38559             Bruno Haible  <bruno@clisp.org>
38560
38561         * lib/stdint.in.h: Define all type macros so that their expansion is
38562         a single typedef'ed token. Fixes a compilation failure in Boost which
38563         does "using ::int8_t;".
38564
38565 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38566
38567         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38568         gl_MANYWARN_ALL_GCC.
38569         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38570         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38571         * modules/manywarnings: New file.
38572         * MODULES.html.sh: Mention manywarnings module.
38573
38574 2008-11-18  Bruno Haible  <bruno@clisp.org>
38575
38576         * doc/gnulib-tool.texi (Unit tests): New section.
38577
38578 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38579
38580         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38581         paths like 'lib/po/foo.po'.
38582
38583 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38584
38585         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38586         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38587
38588 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38589
38590         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38591         parameter works.
38592
38593 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38594
38595         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38596
38597 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38598
38599         * modules/parse-duration-tests: New file.
38600         * tests/test-parse-duration.sh: New file.
38601         * tests/test-parse-duration.c: New file.
38602
38603         New module 'parse-duration'.
38604         * lib/parse-duration.h: New file.
38605         * lib/parse-duration.c: New file.
38606         * modules/parse-duration: New file.
38607
38608 2008-11-17  Bruno Haible  <bruno@clisp.org>
38609
38610         * tests/test-select-out.sh: Comment out the first pipe test.
38611         Reported by Simon Josefsson.
38612
38613 2008-11-17  Bruno Haible  <bruno@clisp.org>
38614
38615         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38616         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38617         gl_HOSTENT.
38618
38619 2008-11-17  Bruno Haible  <bruno@clisp.org>
38620
38621         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38622         -lnetwork and -lnet. Needed for Haiku and BeOS.
38623
38624 2008-11-16  Bruno Haible  <bruno@clisp.org>
38625
38626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38627
38628 2008-11-16  Bruno Haible  <bruno@clisp.org>
38629
38630         Avoid test failure on Haiku.
38631         * tests/test-fsync.c: Include <errno.h>.
38632         (main): Don't require that fsync (0) fails.
38633
38634 2008-11-15  Bruno Haible  <bruno@clisp.org>
38635
38636         New module 'hostent'.
38637         * modules/hostent: New file.
38638         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38639
38640 2008-11-15  Bruno Haible  <bruno@clisp.org>
38641
38642         New module 'servent'.
38643         * modules/servent: New file.
38644         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38645
38646 2008-11-15  Bruno Haible  <bruno@clisp.org>
38647
38648         Avoid generating same test program with two different rules.
38649         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38650         test-frexp to test-frexp-nolibm.
38651         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38652         test-frexpl to test-frexpl-nolibm.
38653
38654 2008-11-15  Bruno Haible  <bruno@clisp.org>
38655
38656         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38657         $(FREXPL_LIBM).
38658
38659 2008-11-15  Bruno Haible  <bruno@clisp.org>
38660
38661         * lib/netdb.in.h: Activate the definitions also when the system's
38662         <netdb.h> has 'struct addrinfo'.
38663         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38664         EAI_OVERFLOW or AI_NUMERICSERV.
38665         * doc/posix-headers/netdb.texi: Document the problem.
38666
38667 2008-11-15  Bruno Haible  <bruno@clisp.org>
38668
38669         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38670
38671         Make the 'sched' module work on platforms where <sched.h> exists but
38672         is incomplete (such as Haiku).
38673         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38674         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38675         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38676         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38677         HAVE_STRUCT_SCHED_PARAM.
38678         * modules/sched (Depends-on): Add include_next.
38679         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38680         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38681         * doc/posix-headers/sched.texi: Document the issue.
38682
38683 2008-11-13  Jim Meyering  <meyering@redhat.com>
38684
38685         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38686         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38687         test would fail due to the difference in the Report bugs to ...
38688         line.  The expected address is empty, "<>", while the actual
38689         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38690
38691 2008-11-12  Bruno Haible  <bruno@clisp.org>
38692
38693         lstat: don't compile lstat.c on systems lacking lstat
38694         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38695         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38696         Reported by Daniel P. Berrange via Jim Meyering.
38697
38698 2008-11-12  Jim Meyering  <meyering@redhat.com>
38699
38700         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38701
38702 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38703
38704         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38705         instead.
38706
38707 2008-11-12  Bruno Haible  <bruno@clisp.org>
38708
38709         * lib/unicodeio.c: Include unistr.h.
38710         (utf8_wctomb): Remove function.
38711         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38712
38713 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38714
38715         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38716         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38717         <bruno@clisp.org>.
38718         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38719
38720 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38721
38722         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38723         * doc/gnulib.texi: Add section for warnings.
38724
38725 2008-11-11  Bruno Haible  <bruno@clisp.org>
38726
38727         * lib/sockets.h: Add a comment.
38728
38729 2008-11-11  Karl Berry  <karl@gnu.org>
38730
38731         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38732
38733 2008-11-11  Eric Blake  <ebb9@byu.net>
38734
38735         fdl.texi: avoid git symlinks
38736         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38737
38738 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38739
38740         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38741
38742 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38743
38744         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38745         (gl_WARN_ADD): Substitute $2 if literal.
38746
38747 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38748
38749         * m4/warning.m4: Remove.
38750
38751 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38752
38753         * m4/warnings.m4: Almost complete rewrite. :-)
38754
38755 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38756
38757         * modules/warnings: New module.
38758         * m4/warnings.m4: New file.
38759         * MODULES.html.sh: Mention warnings module.
38760         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38761         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38762
38763 2008-11-10  Eric Blake  <ebb9@byu.net>
38764
38765         fdl.texi: make a symlink to the latest version
38766         * doc/standards.texi: Revert today's earlier change.
38767         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38768         * doc/fdl.texi: ...and replace this with a symlink to the newer
38769         fdl-1.3.texi.
38770
38771 2008-11-10  Bruno Haible  <bruno@clisp.org>
38772
38773         * tests/test-select-fd.c (main): Accept the result file name as fourth
38774         argument.
38775         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38776         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38777
38778 2008-11-10  Bruno Haible  <bruno@clisp.org>
38779
38780         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38781         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38782         as autoconf-substituted macros.
38783         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38784         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38785         gl_NETDB_H_DEFAULTS. Set these variables.
38786         * modules/netdb (Makefile.am): Substitute these variables.
38787
38788 2008-11-10  Eric Blake  <ebb9@byu.net>
38789
38790         standards.texi: include correct file for FDL 1.3
38791         * doc/standards.texi (GNU Free Documentation License): Change
38792         include file to pull in FDL 1.3, not 1.2.
38793
38794         fdl.texi: revert accidental change to license
38795         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38796
38797 2008-11-10  Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38800         cross-compiling guesses also when the native compile gives no result.
38801
38802 2008-11-10  Bruno Haible  <bruno@clisp.org>
38803
38804         * lib/spawni.c (__spawni): Force variable into the stack.
38805
38806 2008-11-10  Bruno Haible  <bruno@clisp.org>
38807
38808         Add support for Haiku.
38809         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38810         glibc and BeOS, but also on Haiku.
38811         * lib/fpurge.c (fpurge): Likewise.
38812         * lib/freadable.c (freadable): Likewise.
38813         * lib/freadahead.c (freadahead): Likewise.
38814         * lib/freading.c (freading): Likewise.
38815         * lib/freadptr.c (freadptr): Likewise.
38816         * lib/freadseek.c (freadptrinc): Likewise.
38817         * lib/fseeko.c (rpl_fseeko): Likewise.
38818         * lib/fseterr.c (fseterr): Likewise.
38819         * lib/fwritable.c (fwritable): Likewise.
38820         * lib/fwriting.c (fwriting): Likewise.
38821         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38822
38823 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38824
38825         * lib/config.charset: Treat Haiku like BeOS.
38826
38827 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38828
38829         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38830         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38831
38832 2008-11-08  Bruno Haible  <bruno@clisp.org>
38833
38834         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38835         AC_CACHE_CHECK.
38836
38837 2008-11-08  Bruno Haible  <bruno@clisp.org>
38838
38839         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38840
38841 2008-11-08  Bruno Haible  <bruno@clisp.org>
38842
38843         * tests/test-select-fd.c: New file.
38844         * tests/test-select-in.sh: New file.
38845         * tests/test-select-out.sh: New file.
38846         * tests/test-select-stdin.c: New file.
38847         * modules/select-tests (Files): Add the new files.
38848         (Depends-on): Add gettimeofday.
38849         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38850         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38851         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38852
38853 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38854             Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38857
38858 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38859
38860         * build-aux/pmccabe2html: Added support for C++ source files.
38861
38862 2008-11-05  Ben Pfaff  <blp@gnu.org>
38863
38864         Fix lib/close.c build on Windows.
38865         * modules/close (Files): Add lib/w32sock.h.
38866
38867 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38868
38869         Accept Bison's NEWS format.
38870         * build-aux/announce-gen (print_news_deltas): Tweak
38871         $re_prefix.
38872
38873 2008-11-04  Bruno Haible  <bruno@clisp.org>
38874
38875         * modules/random_r (Maintainer): Add glibc.
38876
38877 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38878
38879         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38880         by karl@freefriends.org (Karl Berry).
38881         * doc/alloca.texi: Likewise.
38882         * doc/c-ctype.texi: Likewise.
38883         * doc/c-strcase.texi: Likewise.
38884         * doc/c-strcaseeq.texi: Likewise.
38885         * doc/c-strcasestr.texi: Likewise.
38886         * doc/c-strstr.texi: Likewise.
38887         * doc/c-strtod.texi: Likewise.
38888         * doc/c-strtold.texi: Likewise.
38889         * doc/ctime.texi: Likewise.
38890         * doc/error.texi: Likewise.
38891         * doc/fdl.texi: Likewise.
38892         * doc/gcd.texi: Likewise.
38893         * doc/getdate.texi: Likewise.
38894         * doc/gnulib-intro.texi: Likewise.
38895         * doc/gnulib-tool.texi: Likewise.
38896         * doc/gnulib.texi: Likewise.
38897         * doc/inet_ntoa.texi: Likewise.
38898         * doc/maintain.texi: Likewise.
38899         * doc/make-stds.texi: Likewise.
38900         * doc/quote.texi: Likewise.
38901         * doc/regexprops-generic.texi: Likewise.
38902         * doc/standards.texi: Likewise.
38903         * doc/verify.texi: Likewise.
38904         * doc/visibility.texi: Likewise.
38905         * doc/gnulib.texi (GNU Free Documentation License): Include
38906         fdl-1.3.texi instead of fdl.texi.
38907
38908 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38909
38910         * doc/fdl-1.3.texi: New file, from
38911         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38912         * modules/fdl-1.3: Add.
38913         * MODULES.html.sh: Add fdl-1.3.
38914
38915 2008-11-03  Bruno Haible  <bruno@clisp.org>
38916
38917         Make determination of absolute name of header file work with AIX xlc.
38918         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38919         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38920         preprocessing.
38921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38922         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38923
38924 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38925
38926         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38927         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38928         <ludo@gnu.org>.
38929
38930 2008-11-02  Bruno Haible  <bruno@clisp.org>
38931
38932         Mark 'strpbrk' obsolete.
38933         * modules/strpbrk (Status, Notice): New sections.
38934         * modules/strtok_r (Depends-on): Add strpbrk.
38935
38936 2008-11-02  Bruno Haible  <bruno@clisp.org>
38937
38938         Mark 'strdup' obsolete.
38939         * modules/strdup (Status, Notice): New sections.
38940         * modules/findprog (Depends-on): Add strdup.
38941         * modules/getaddrinfo (Depends-on): Likewise.
38942         * modules/localename (Depends-on): Likewise.
38943         * modules/relocatable-lib (Depends-on): Likewise.
38944         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38945         * modules/relocatable-prog (Depends-on): Likewise.
38946         * modules/trim (Depends-on): Likewise.
38947         * modules/unictype/gen-ctype (Depends-on): Likewise.
38948         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38949
38950 2008-11-02  Bruno Haible  <bruno@clisp.org>
38951
38952         Mark 'strcspn' obsolete.
38953         * modules/strcspn (Status, Notice): New sections.
38954
38955 2008-11-02  Bruno Haible  <bruno@clisp.org>
38956
38957         Mark 'rmdir' obsolete.
38958         * modules/rmdir (Status, Notice): New sections.
38959         * modules/clean-temp (Depends-on): Add rmdir.
38960         * modules/openat (Depends-on): Likewise.
38961
38962 2008-11-02  Bruno Haible  <bruno@clisp.org>
38963
38964         Mark 'raise' obsolete.
38965         * modules/raise (Status, Notice): New sections.
38966         (Include): Specify <signal.h>.
38967         * modules/stdio (Depends-on): Add raise.
38968         * modules/write (Depends-on): Likewise.
38969
38970 2008-11-02  Bruno Haible  <bruno@clisp.org>
38971
38972         Mark 'memset' obsolete.
38973         * modules/memset (Status, Notice): New sections.
38974
38975 2008-11-02  Bruno Haible  <bruno@clisp.org>
38976
38977         Mark 'memmove' obsolete.
38978         * modules/memmove (Status, Notice): New sections.
38979         * modules/argp (Depends-on): Add memmove.
38980         * modules/argz (Depends-on): Likewise.
38981         * modules/canonicalize (Depends-on): Likewise.
38982         * modules/canonicalize-lgpl (Depends-on): Likewise.
38983         * modules/fts (Depends-on): Likewise.
38984         * modules/getcwd (Depends-on): Likewise.
38985         * modules/human (Depends-on): Likewise.
38986         * modules/regex (Depends-on): Likewise.
38987         * modules/striconveh (Depends-on): Likewise.
38988         * modules/trim (Depends-on): Likewise.
38989         * modules/unistr/u8-move (Depends-on): Likewise.
38990         * modules/unistr/u16-move (Depends-on): Likewise.
38991         * modules/unistr/u32-move (Depends-on): Likewise.
38992
38993 2008-11-02  Bruno Haible  <bruno@clisp.org>
38994
38995         Mark 'memcpy' obsolete.
38996         * modules/memcpy (Status, Notice): New sections.
38997
38998 2008-11-02  Bruno Haible  <bruno@clisp.org>
38999
39000         Mark 'memcmp' obsolete.
39001         * modules/memcmp (Status, Notice): New sections.
39002         * modules/argmatch (Depends-on): Add memchr.
39003         * modules/backupfile (Depends-on): Likewise.
39004         * modules/c-strcasestr (Depends-on): Likewise.
39005         * modules/crypto/des (Depends-on): Likewise.
39006         * modules/csharpcomp (Depends-on): Likewise.
39007         * modules/fnmatch (Depends-on): Likewise.
39008         * modules/git-merge-changelog (Depends-on): Likewise.
39009         * modules/isnand (Depends-on): Likewise.
39010         * modules/isnand-nolibm (Depends-on): Likewise.
39011         * modules/isnanf (Depends-on): Likewise.
39012         * modules/isnanf-nolibm (Depends-on): Likewise.
39013         * modules/isnanl (Depends-on): Likewise.
39014         * modules/isnanl-nolibm (Depends-on): Likewise.
39015         * modules/mbchar (Depends-on): Likewise.
39016         * modules/memcoll (Depends-on): Likewise.
39017         * modules/quotearg (Depends-on): Likewise.
39018         * modules/regex (Depends-on): Likewise.
39019         * modules/relocatable-prog (Depends-on): Likewise.
39020         * modules/same (Depends-on): Likewise.
39021         * modules/signbit (Depends-on): Likewise.
39022         * modules/strcasestr-simple (Depends-on): Likewise.
39023         * modules/unictype/gen-ctype (Depends-on): Likewise.
39024         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39025         * modules/uniname/uniname (Depends-on): Likewise.
39026         * modules/unistr/u8-cmp (Depends-on): Likewise.
39027
39028 2008-11-02  Bruno Haible  <bruno@clisp.org>
39029
39030         Mark 'memchr' obsolete.
39031         * modules/memchr (Status, Notice): New sections.
39032         * modules/argp (Depends-on): Add memchr.
39033         * modules/base64 (Depends-on): Likewise.
39034         * modules/c-strcasestr (Depends-on): Likewise.
39035         * modules/chdir-long (Depends-on): Likewise.
39036         * modules/fnmatch (Depends-on): Likewise.
39037         * modules/getsubopt (Depends-on): Likewise.
39038         * modules/git-merge-changelog (Depends-on): Likewise.
39039         * modules/glob (Depends-on): Likewise.
39040         * modules/strcasestr-simple (Depends-on): Likewise.
39041         * modules/strnlen (Depends-on): Likewise.
39042
39043 2008-11-02  Bruno Haible  <bruno@clisp.org>
39044
39045         Mark 'atexit' obsolete.
39046         * modules/atexit (Status, Notice): New sections.
39047         * modules/chdir-long (Depends-on): Add atexit.
39048         * modules/wait-process (Depends-on): Likewise.
39049
39050 2008-11-02  Bruno Haible  <bruno@clisp.org>
39051
39052         * gnulib-tool: New option --with-obsolete.
39053         (func_usage): Document it.
39054         (func_modules_transitive_closure): Drop obsolete dependencies if
39055         incobsolete is not true.
39056         (func_import): Read and save the incobsolete variable to the cache.
39057
39058 2008-11-02  Bruno Haible  <bruno@clisp.org>
39059
39060         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39061         * gnulib-tool: New option --extract-status.
39062         (func_usage): Document it.
39063         (sed_extract_prog): Recognize it.
39064         (func_get_status): New function.
39065
39066 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39067
39068         * modules/sockets (License): Change from LGPL to LGPLv2+.
39069
39070 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39071
39072         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39073
39074 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39075
39076         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39077         Mention times and sys_times.
39078         * modules/sys_times, modules/sys_times-tests: New modules.
39079         * modules/times, modules/times-tests: Likewise
39080         * m4/sys_times_h.m4: New file.
39081         * lib/sys_times.in.h: Likewise
39082         * lib/times.c: Likewise.
39083         * tests/test-sys_times.c: Likewise.
39084         * tests/test-times.c: Likewise.
39085         * doc/posix-headers/sys_times.texi: Update.
39086         * doc/posix-functions/times.texi: Update.
39087
39088 2008-10-28  Jim Meyering  <meyering@redhat.com>
39089
39090         * modules/tempname (Depends-on): Add lstat.
39091
39092         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39093
39094 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39095
39096         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39097         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39098         using idiom used elsewhere in gnulib.
39099
39100 2008-10-27  Jim Meyering  <meyering@redhat.com>
39101
39102         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39103
39104 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39105
39106         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39107         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39108         programs.
39109         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39110
39111 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39112
39113         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39114
39115 2008-10-27  Bruno Haible  <bruno@clisp.org>
39116
39117         * tests/test-lstat.c: Include <stdio.h>.
39118
39119 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39120
39121         * modules/lstat-tests: New module.
39122         * tests/test-lstat.c: New file.
39123
39124 2008-10-26  Jim Meyering  <meyering@redhat.com>
39125
39126         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39127
39128 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39129             Bruno Haible  <bruno@clisp.org>
39130
39131         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39132         * modules/configmake (Include): Add a note that the include must come
39133         after all system headers.
39134         * lib/javaversion.c: Include configmake.h after all other includes.
39135
39136 2008-10-26  Bruno Haible  <bruno@clisp.org>
39137
39138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39139         HAVE_STRUCT_RANDOM_DATA to 1.
39140         (gl_STDLIB_H): Simplify.
39141
39142 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39143
39144         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39145         substitute HAVE_STRUCT_RANDOM_DATA.
39146         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39147         random_data.
39148         * modules/stdlib (Makefile.am): Substitute
39149         HAVE_STRUCT_RANDOM_DATA.
39150
39151 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39152
39153         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39154         * doc/gnulib-intro.texi (Copyright): Likewise.
39155
39156 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39157
39158         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39159         findings.
39160
39161 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39162             Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/unistd.in.h: Include <winsock2.h>.
39165         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39166         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39167         Provide dummy declarations.
39168         (gethostname): Override.
39169         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39170         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39171         gl_PREREQ_SYS_H_WINSOCK2.
39172         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39173         * doc/posix-functions/gethostname.texi: More details.
39174
39175 2008-10-25  Bruno Haible  <bruno@clisp.org>
39176
39177         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39178         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39179         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39180
39181         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39182         here ...
39183         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39184         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39185         gl_UNISTD_H_DEFAULTS.
39186
39187 2008-10-25  Eric Blake  <ebb9@byu.net>
39188
39189         signbit: avoid spurious compiler failure
39190         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39191         declarations inside function.
39192
39193 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39194             Bruno Haible  <bruno@clisp.org>
39195
39196         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39197         * modules/random_r (Depends-on): Add stdint.
39198
39199 2008-10-24  Bruno Haible  <bruno@clisp.org>
39200
39201         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39202         Eggert.
39203         * modules/strerror (License): Likewise.
39204
39205 2008-10-24  Jim Meyering  <meyering@redhat.com>
39206
39207         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39208         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39209
39210 2008-10-24  Eric Blake  <ebb9@byu.net>
39211
39212         getgroups: fix compilation when getgroups is available
39213         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39214         but with <config.h> override of getgroups disabled.
39215
39216 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39217
39218         * doc/gnulib.texi (Header files): Add note about C++ problems.
39219         Explained by Bruno Haible <bruno@clisp.org>.
39220
39221 2008-10-23  Bruno Haible  <bruno@clisp.org>
39222
39223         Define a dummy SA_NODEFER macro on Interix.
39224         * lib/signal.in.h (SA_NODEFER): Define fallback.
39225         Reported by Aleksey Cheusov <cheusov@tut.by> via
39226         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39227
39228 2008-10-23  Bruno Haible  <bruno@clisp.org>
39229
39230         * modules/freadahead (License): Change to LGPLv2+.
39231         Suggested by Simon Josefsson.
39232
39233 2008-10-23  Jim Meyering  <meyering@redhat.com>
39234
39235         random_r: new module
39236         * modules/random_r: New file.
39237         * m4/random_r.m4: New file.
39238         * lib/random_r.c: New file, from glibc.
39239         * modules/random_r-tests: New file.
39240         * tests/test-random_r.c: New file.
39241         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39242          Declare.
39243         (RAND_MAX): Define.
39244         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39245         * modules/stdlib: Substitute them, too.
39246         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39247         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39248         * doc/glibc-functions/random_r.texi: Likewise.
39249         * doc/glibc-functions/setstate_r.texi: Likewise.
39250         * doc/glibc-functions/srandom_r.texi: Likewise.
39251         * config/srclist.txt: Mention it.
39252
39253 2008-10-23  David Lutterkort  <lutter@redhat.com>
39254
39255         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39256         link requirement
39257
39258 2008-10-23  Jim Meyering  <meyering@redhat.com>
39259
39260         selinux-h: mark parameters of stub functions as intentionally unused
39261         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39262         * lib/se-context.in.h: Likewise.
39263
39264 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39265
39266         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39267
39268 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39269
39270         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39271
39272 2008-10-22  Eric Blake  <ebb9@byu.net>
39273
39274         glthread/thread: avoid compiler warning
39275         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39276         Add unreachable abort to silence compiler.
39277
39278 2008-10-22  Eric Blake  <ebb9@byu.net>
39279
39280         netdb: also supply struct addrinfo for cygwin 1.5.x
39281         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39282         older cygwin.
39283         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39284         cygwin.
39285         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39286
39287 2008-10-22  Bruno Haible  <bruno@clisp.org>
39288
39289         * users.txt: Update entry about pspp.
39290
39291 2008-10-21  Bruno Haible  <bruno@clisp.org>
39292
39293         Simplification.
39294         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39295         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39296
39297         Simplification.
39298         * lib/ioctl.c (ioctl): Don't undefine.
39299         * lib/socket.c (socket): Don't undefine.
39300
39301         Remove unused module indicator macros.
39302         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39303         GNULIB_$1 as a C macro.
39304
39305         * doc/posix-functions/close.texi: Undo last change.
39306         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39307         Windows platforms.
39308
39309 2008-10-21  Bruno Haible  <bruno@clisp.org>
39310
39311         Add gethostname() declaration to <unistd.h>.
39312         * lib/unistd.in.h (gethostname): New declaration.
39313         * lib/gethostname.c: Include <unistd.h>.
39314         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39315         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39317         and HAVE_GETHOSTNAME.
39318         * modules/gethostname (Depends-on): Add unistd.
39319         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39320         (Include): Specify <unistd.h>.
39321         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39322         HAVE_GETHOSTNAME.
39323         * tests/test-gethostname.c: Include <unistd.h> first.
39324
39325 2008-10-21  Bruno Haible  <bruno@clisp.org>
39326
39327         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39328         * modules/select-tests (Depends-on): Likewise.
39329         Reported by Simon Josefsson.
39330
39331 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39332
39333         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39334         * lib/accept.c: New file, based on winsock.c.
39335         * lib/bind.c: New file, based on winsock.c.
39336         * lib/connect.c: New file, based on winsock.c.
39337         * lib/getpeername.c: New file, based on winsock.c.
39338         * lib/getsockname.c: New file, based on winsock.c.
39339         * lib/getsockopt.c: New file, based on winsock.c.
39340         * lib/ioctl.c: New file, based on winsock.c.
39341         * lib/listen.c: New file, based on winsock.c.
39342         * lib/recv.c: New file, based on winsock.c.
39343         * lib/recvfrom.c: New file, based on winsock.c.
39344         * lib/send.c: New file, based on winsock.c.
39345         * lib/sendto.c: New file, based on winsock.c.
39346         * lib/setsockopt.c: New file, based on winsock.c.
39347         * lib/shutdown.c: New file, based on winsock.c.
39348         * lib/socket.c: New file, based on winsock.c.
39349         * lib/w32sock.h: New file, based on winsock.c.
39350         * lib/winsock.c: Remove file.
39351         * modules/accept: Likewise.
39352         * modules/bind: Likewise.
39353         * modules/connect: Likewise.
39354         * modules/getpeername: Likewise.
39355         * modules/getsockname: Likewise.
39356         * modules/getsockopt: Likewise.
39357         * modules/ioctl: Likewise.
39358         * modules/listen: Likewise.
39359         * modules/recv: Likewise.
39360         * modules/recvfrom: Likewise.
39361         * modules/send: Likewise.
39362         * modules/sendto: Likewise.
39363         * modules/setsockopt: Likewise.
39364         * modules/shutdown: Likewise.
39365         * modules/socket: Use socket.c instead of winsock.c.
39366         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39367         * doc/posix-functions/accept.texi: Doc fix.
39368         * doc/posix-functions/bind.texi: Doc fix.
39369         * doc/posix-functions/close.texi: Doc fix.
39370         * doc/posix-functions/connect.texi: Doc fix.
39371         * doc/posix-functions/getpeername.texi: Doc fix.
39372         * doc/posix-functions/getsockname.texi: Doc fix.
39373         * doc/posix-functions/getsockopt.texi: Doc fix.
39374         * doc/posix-functions/ioctl.texi: Doc fix.
39375         * doc/posix-functions/listen.texi: Doc fix.
39376         * doc/posix-functions/recv.texi: Doc fix.
39377         * doc/posix-functions/recvfrom.texi: Doc fix.
39378         * doc/posix-functions/send.texi: Doc fix.
39379         * doc/posix-functions/sendto.texi: Doc fix.
39380         * doc/posix-functions/setsockopt.texi: Doc fix.
39381         * doc/posix-functions/shutdown.texi: Doc fix.
39382         * doc/posix-functions/socket.texi: Doc fix.
39383
39384 2008-10-20  Bruno Haible  <bruno@clisp.org>
39385
39386         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39387         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39388         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39389         as an alias for SIGABRT.
39390         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39391         (sigaction): Map it to SIGABRT.
39392         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39393
39394 2008-10-20  Bruno Haible  <bruno@clisp.org>
39395
39396         * lib/fts.c: Don't include lstat.h.
39397         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39398
39399         Move the lstat() declaration to <sys/stat.h>.
39400         * lib/lstat.h: Remove file.
39401         * lib/sys_stat.in.h: Add special invocation convention.
39402         (lstat): New declaration.
39403         * lib/lstat.c (orig_lstat): New function.
39404         (rpl_lstat): Use orig_lstat instead of lstat.
39405         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39406         AC_C_INLINE. Set REPLACE_LSTAT.
39407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39408         and REPLACE_LSTAT.
39409         * modules/lstat (Files): Remove lib/lstat.h.
39410         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39411         (Include): Specify <sys/stat.h> instead of lstat.h.
39412         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39413         REPLACE_LSTAT.
39414         * NEWS: Mention the change.
39415
39416 2008-10-20  Bruno Haible  <bruno@clisp.org>
39417
39418         * modules/posix_spawn-tests: New file.
39419         * tests/test-posix_spawn3.c: New file.
39420
39421 2008-10-20  Bruno Haible  <bruno@clisp.org>
39422
39423         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39424         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39425         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39426         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39427         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39428
39429 2008-10-20  Bruno Haible  <bruno@clisp.org>
39430
39431         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39432         of posix_spawn on AIX 5.3.
39433
39434 2008-10-20  Bruno Haible  <bruno@clisp.org>
39435
39436         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39437
39438 2008-10-20  Bruno Haible  <bruno@clisp.org>
39439
39440         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39441         of AC_LANG_PROGRAM.
39442
39443 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39444
39445         * lib/netdb.in.h: Don't define GNU specific constants until they
39446         are supported or needed.  Reported by Bruno Haible
39447         <bruno@clisp.org>.
39448
39449 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39450
39451         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39452
39453 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39454
39455         * lib/getaddrinfo.h: Remove file.
39456         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39457         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39458         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39459         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39460         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39461         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39462         * tests/test-getaddrinfo.c: Likewise.
39463         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39464         * NEWS: Mention change.
39465
39466 2008-10-19  Bruno Haible  <bruno@clisp.org>
39467
39468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39469
39470 2008-10-19  Bruno Haible  <bruno@clisp.org>
39471
39472         * lib/wait-process.c: Include simply <sys/wait.h>.
39473         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39474         WIFSTOPPED): Remove fallback definitions.
39475         * modules/wait-process (Depends-on): Add sys_wait.
39476
39477         New module 'sys_wait'.
39478         * modules/sys_wait: New file.
39479         * lib/sys_wait.in.h: New file, partially copied from
39480         lib/wait-process.c.
39481         * m4/sys_wait_h.m4: New file.
39482         * doc/posix-headers/sys_wait.texi: Mention the new module.
39483
39484 2008-10-19  Bruno Haible  <bruno@clisp.org>
39485
39486         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39487
39488 2008-10-19  Bruno Haible  <bruno@clisp.org>
39489
39490         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39491         * lib/wait-process.c (WAIT_T): Remove type.
39492         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39493         (wait_subprocess): Update.
39494
39495 2008-10-19  Bruno Haible  <bruno@clisp.org>
39496
39497         New module 'atoll'.
39498         * modules/atoll: New file.
39499         * lib/stdlib.in.h (atoll): New declaration.
39500         * lib/atoll.c: New file, from glibc with modifications.
39501         * m4/atoll.m4: New file.
39502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39503         HAVE_ATOLL.
39504         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39505         * doc/posix-functions/atoll.texi: Mention the new module.
39506
39507 2008-10-19  Bruno Haible  <bruno@clisp.org>
39508
39509         Add strtoull() declaration to <stdlib.h>.
39510         * lib/stdlib.in.h (strtoull): New declaration.
39511         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39512         Set HAVE_STRTOULL.
39513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39514         HAVE_STRTOULL.
39515         * modules/strtoull (Depends-on): Add stdlib.
39516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39517         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39518         HAVE_STRTOULL.
39519
39520 2008-10-19  Bruno Haible  <bruno@clisp.org>
39521
39522         Add strtoll() declaration to <stdlib.h>.
39523         * lib/stdlib.in.h (strtoll): New declaration.
39524         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39525         Set HAVE_STRTOLL.
39526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39527         HAVE_STRTOLL.
39528         * modules/strtoll (Depends-on): Add stdlib.
39529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39530         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39531
39532 2008-10-19  Bruno Haible  <bruno@clisp.org>
39533
39534         * modules/bcopy (Depends-on): Add strings.
39535         (Include): Specify <strings.h>.
39536
39537 2008-10-19  Bruno Haible  <bruno@clisp.org>
39538
39539         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39540
39541 2008-10-19  Bruno Haible  <bruno@clisp.org>
39542
39543         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39544         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39545         mingw.
39546
39547 2008-10-19  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/atanl.c: Don't include isnanl.h.
39550         * lib/cosl.c: Likewise.
39551         * lib/ldexpl.c: Likewise.
39552         * lib/logl.c: Likewise.
39553         * lib/sinl.c: Likewise.
39554         * lib/sqrtl.c: Likewise.
39555         * lib/tanl.c: Likewise.
39556
39557         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39558         * lib/isnanf.h: Remove file.
39559         * lib/isnand.h: Remove file.
39560         * lib/isnanl.h: Remove file.
39561         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39562         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39563         macros.
39564         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39565         HAVE_ISNANF, don't define it as a C macro.
39566         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39567         HAVE_ISNAND, don't define it as a C macro.
39568         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39569         HAVE_ISNANL, don't define it as a C macro.
39570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39571         HAVE_ISNAN[FDL].
39572         * modules/isnanf (Files): Remove lib/isnanf.h.
39573         (Depends-on): Add math.
39574         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39575         (Include): Specify <math.h> instead of isnanf.h.
39576         * modules/isnand (Files): Remove lib/isnand.h.
39577         (Depends-on): Add math.
39578         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39579         (Include): Specify <math.h> instead of isnand.h.
39580         * modules/isnanl (Files): Remove lib/isnanl.h.
39581         (Depends-on): Add math.
39582         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39583         (Include): Specify <math.h> instead of isnanl.h.
39584         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39585         HAVE_ISNAN[FDL].
39586         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39587         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39588         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39589         * NEWS: Mention the change.
39590
39591 2008-10-18  Bruno Haible  <bruno@clisp.org>
39592
39593         Add getusershell(), setusershell(), endusershell() declarations to
39594         <unistd.h>.
39595         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39596         declarations.
39597         * lib/getusershell.c: Include unistd.h.
39598         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39599         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39600         HAVE_GETUSERSHELL.
39601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39602         and HAVE_GETUSERSHELL.
39603         * modules/getusershell (Depends-on): Add unistd, extensions.
39604         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39605         (Include): Specify <unistd.h>.
39606         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39607         HAVE_GETUSERSHELL.
39608
39609 2008-10-18  Bruno Haible  <bruno@clisp.org>
39610
39611         Add a getloadavg() declaration to <stdlib.h>.
39612         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39613         getloadavg declaration.
39614         (getloadavg): New declaration.
39615         * lib/getloadavg.c: Include <stdlib.h> first.
39616         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39617         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39618         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39620         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39621         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39622         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39623         (Include): Specify <stdlib.h>.
39624         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39625         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39626
39627 2008-10-18  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/dirchownmod.c: Don't include lchmod.h.
39630
39631         Move the lchmod() declaration to <sys/stat.h>.
39632         * lib/lchmod.h: Remove file.
39633         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39634         (lchmod): New declaration, moved here from lib/lchown.h.
39635         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39636         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39637         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39638         and HAVE_LCHMOD.
39639         * modules/lchmod (Files): Remove lib/lchmod.h.
39640         (Depends-on): Add sys_stat, extensions.
39641         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39642         (Include): Specify <sys/stat.h> instead of lchmod.h.
39643         * modules/sys_stat (Depends-on): Add link-warning.
39644         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39645         definition of GL_LINK_WARNING.
39646         * NEWS: Mention the change.
39647
39648 2008-10-18  Bruno Haible  <bruno@clisp.org>
39649
39650         * lib/fchdir.c: Don't include dirfd.h.
39651         * lib/fts.c: Likewise.
39652         * lib/getcwd.c: Likewise.
39653         * lib/glob.c: Likewise.
39654
39655         Move the dirfd() declaration to <dirent.h>.
39656         * lib/dirfd.h: Remove file.
39657         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39658         (dirfd): New declaration.
39659         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39660         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39661         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39662         HAVE_DECL_DIRFD.
39663         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39664         HAVE_DECL_DIRFD.
39665         * modules/dirfd (Files): Remove lib/dirfd.h.
39666         (Depends-on): Add dirent, extensions.
39667         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39668         (Include): Specify <dirent.h> instead of dirfd.h.
39669         * modules/dirent (Depends-on): Add link-warning.
39670         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39671         definition of GL_LINK_WARNING.
39672         * NEWS: Mention the change.
39673
39674 2008-10-18  Bruno Haible  <bruno@clisp.org>
39675
39676         Move the euidaccess() declaration to <unistd.h>.
39677         * lib/euidaccess.h: Remove file.
39678         * lib/unistd.in.h (euidaccess): New declaration.
39679         * lib/euidaccess.c: Don't include euidaccess.h.
39680         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39681         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39683         and HAVE_EUIDACCESS.
39684         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39685         (Depends-on): Add unistd.
39686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39687         (Include): Specify <unistd.h> instead of euidaccess.h.
39688         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39689         HAVE_EUIDACCESS.
39690         * NEWS: Mention the change.
39691
39692 2008-10-18  Bruno Haible  <bruno@clisp.org>
39693
39694         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39695
39696         Move the getdomainname() declaration to <unistd.h>.
39697         * lib/getdomainname.h: Remove file.
39698         * lib/unistd.in.h (getdomainname): New declaration.
39699         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39700         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39701         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39702         HAVE_GETDOMAINNAME.
39703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39704         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39705         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39706         (Depends-on): Add unistd, extensions.
39707         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39708         (Includes): Specify <unistd.h> instead of getdomainname.h.
39709         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39710         HAVE_GETDOMAINNAME.
39711         * NEWS: Mention the change.
39712
39713 2008-10-18  Bruno Haible  <bruno@clisp.org>
39714
39715         * modules/dirent: New file.
39716         * m4/dirent_h.m4: New file.
39717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39718         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39719         * modules/fchdir (Files): Remove lib/dirent.in.h.
39720         (Depends-on): Add dirent.
39721         (Makefile.am): Move rules to modules/dirent.
39722         * doc/posix-headers/dirent.texi: Mention the new module.
39723
39724 2008-10-18  Bruno Haible  <bruno@clisp.org>
39725
39726         Avoid -Wunused-parameter warnings in public gnulib header files.
39727         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39728         macro.
39729         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39730
39731 2008-10-18  Bruno Haible  <bruno@clisp.org>
39732
39733         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39734         * doc/glibc-functions/error.texi: Mention the module 'error'.
39735         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39736         * doc/glibc-functions/getdomainname.texi: Mention the module
39737         'getdomainname'.
39738         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39739         * doc/glibc-functions/getpagesize.texi: Mention the module
39740         'getpagesize'.
39741         * doc/glibc-functions/getusershell.texi: Mention the module
39742         'getusershell'.
39743         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39744         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39745         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39746         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39747         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39748         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39749         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39750         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39751         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39752         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39753         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39754         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39755         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39756         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39757
39758 2008-10-17  Bruno Haible  <bruno@clisp.org>
39759
39760         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39761         HP-UX and IRIX, use -0.0L.
39762         * tests/test-ceill.c (minus_zero): Likewise.
39763         * tests/test-floorl.c (minus_zero): Likewise.
39764         * tests/test-frexpl.c (minus_zero): Likewise.
39765         * tests/test-isnan.c (minus_zerol): Likewise.
39766         * tests/test-isnanl.h (minus_zero): Likewise.
39767         * tests/test-ldexpl.c (minus_zero): Likewise.
39768         * tests/test-roundl.c (minus_zero): Likewise.
39769         * tests/test-signbit.c (minus_zerol): Likewise.
39770         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39771         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39772         * tests/test-truncl.c (minus_zero): Likewise.
39773         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39774         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39775         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39776         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39777
39778 2008-10-17  Bruno Haible  <bruno@clisp.org>
39779
39780         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39781         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39782         that it gets activated only for gcc >= 3.0.
39783         * lib/dirent.in.h: Likewise.
39784         * lib/errno.in.h: Likewise.
39785         * lib/fcntl.in.h: Likewise.
39786         * lib/float.in.h: Likewise.
39787         * lib/iconv.in.h: Likewise.
39788         * lib/inttypes.in.h: Likewise.
39789         * lib/locale.in.h: Likewise.
39790         * lib/math.in.h: Likewise.
39791         * lib/netdb.in.h: Likewise.
39792         * lib/netinet_in.in.h: Likewise.
39793         * lib/search.in.h: Likewise.
39794         * lib/signal.in.h: Likewise.
39795         * lib/spawn.in.h: Likewise.
39796         * lib/stdarg.in.h: Likewise.
39797         * lib/stdint.in.h: Likewise.
39798         * lib/stdio.in.h: Likewise.
39799         * lib/stdlib.in.h: Likewise.
39800         * lib/string.in.h: Likewise.
39801         * lib/strings.in.h: Likewise.
39802         * lib/sys_file.in.h: Likewise.
39803         * lib/sys_ioctl.in.h: Likewise.
39804         * lib/sys_select.in.h: Likewise.
39805         * lib/sys_socket.in.h: Likewise.
39806         * lib/sys_stat.in.h: Likewise.
39807         * lib/sys_time.in.h: Likewise.
39808         * lib/sysexits.in.h: Likewise.
39809         * lib/time.in.h: Likewise.
39810         * lib/unistd.in.h: Likewise.
39811         * lib/wchar.in.h: Likewise.
39812         * lib/wctype.in.h: Likewise.
39813         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39814
39815 2008-10-17  Jim Meyering  <meyering@redhat.com>
39816
39817         ignore-value: don't depend on inline module
39818         * modules/ignore-value (Depends-on): Remove 'inline'.
39819         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39820         Suggestion from Bruno Haible.
39821
39822 2008-10-17  Bruno Haible  <bruno@clisp.org>
39823
39824         New implementation of condition variables for Win32.
39825         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39826         (gl_linked_waitqueue_t): New type.
39827         (gl_cond_t): Use it.
39828         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39829         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39830         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39831         (glthread_cond_init_func, glthread_cond_wait_func,
39832         glthread_cond_timedwait_func, glthread_cond_signal_func,
39833         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39834         Reimplemented on the basis of gl_linked_waitqueue_t.
39835         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39836         gl_waitqueue_t.
39837         (gl_rwlock_t): Update.
39838         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39839
39840 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39841
39842         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39843         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39844
39845 2008-10-17  Jim Meyering  <meyering@redhat.com>
39846
39847         ignore-value: new module
39848         * modules/ignore-value: New file.
39849         * lib/ignore-value.h: New file.
39850         * MODULES.html.sh (Compiler warning management): New section,
39851         just for this module.  More to come.
39852
39853 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39854
39855         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39856         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39857         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39858
39859 2008-10-16  Jim Meyering  <meyering@redhat.com>
39860
39861         openat-die.c: avoid 'no previous prototype' warning
39862         * lib/openat-die.c: Include "openat.h".
39863         Reported by Reuben Thomas <rrt@sc3d.org>.
39864
39865 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39866
39867         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39868         * lib/netdb.in.h: Fix typo.
39869         Reported by Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/netdb.in.h: Include sys/socket.h for platforms without
39872         netdb.h, to get structures like hostent on MinGW.
39873         * modules/netdb (Depends-on): Add sys_socket.
39874
39875 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39876
39877         * modules/netdb, modules/netdb-tests: New file.
39878         * m4/netdb_h.m4: New file.
39879         * lib/netdb.in.h: Add, currently just an empty file pending
39880         definitions.
39881         * tests/test-netdb.c: New file.
39882         * doc/posix-headers/netdb.texi: Mention that we replace it if
39883         needed.
39884         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39885         netdb.
39886
39887 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39888
39889         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39890         with code.
39891
39892 2008-10-13  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/glthread/cond.c (glthread_cond_wait_func,
39895         glthread_cond_timedwait_func): Add a comment.
39896
39897 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39898
39899         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39900         * tests/test-select.c: Likewise,
39901
39902 2008-10-13  Bruno Haible  <bruno@clisp.org>
39903
39904         * lib/glthread/cond.c (glthread_cond_wait_func,
39905         glthread_cond_timedwait_func): Fix variable name.
39906         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39907
39908 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39909
39910         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39912         struct sockaddr.sa_len.
39913         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39914
39915 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39916
39917         * build-aux/pmccabe2html: Add css and css_url parameters.
39918
39919 2008-10-12  Bruno Haible  <bruno@clisp.org>
39920
39921         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39922         calling aclx_get.
39923         Reported by Rainer Tammer <tammer@tammer.net>.
39924
39925 2008-10-12  Bruno Haible  <bruno@clisp.org>
39926
39927         Use msvcrt aware primitives for creation/termination of Win32 threads.
39928         * lib/glthread/thread.c: Include <process.h>.
39929         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39930         (wrapper_func): Update signature.
39931         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39932
39933 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39934             Bruno Haible  <bruno@clisp.org>
39935
39936         Provide a Win32 implementation of the 'cond' module.
39937         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39938         * lib/glthread/cond.c (glthread_cond_init_func,
39939         glthread_cond_wait_func, glthread_cond_timedwait_func,
39940         glthread_cond_signal_func, glthread_cond_broadcast_func,
39941         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39942         * modules/cond (Dependencies): Add gettimeofday.
39943
39944 2008-10-11  Bruno Haible  <bruno@clisp.org>
39945
39946         Make sleep work on older versions of mingw.
39947         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39948         only whether it exists.
39949         * doc/posix-functions/sleep.texi: Mention the problem with older
39950         versions of mingw.
39951
39952 2008-10-11  Bruno Haible  <bruno@clisp.org>
39953
39954         New module 'shutdown'.
39955         * modules/shutdown: New file.
39956         * lib/sys_socket.in.h (shutdown): New declaration.
39957         * lib/winsock.c (shutdown): New function.
39958         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39959         GNULIB_SHUTDOWN.
39960         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39961         * doc/posix-functions/shutdown.texi: Document the new module.
39962
39963 2008-10-11  Jim Meyering  <meyering@redhat.com>
39964
39965         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39966
39967 2008-10-11  Bruno Haible  <bruno@clisp.org>
39968
39969         New module 'fclose'.
39970         * modules/fclose: New file.
39971         * lib/stdio.in.h (fclose): New declaration.
39972         * lib/fclose.c: New file.
39973         * m4/fclose.m4: New file.
39974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39975         REPLACE_FCLOSE.
39976         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39977         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39978         REPLACE_FCLOSE.
39979         * modules/close (Depends-on): fclose.
39980         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39981
39982 2008-10-11  Bruno Haible  <bruno@clisp.org>
39983
39984         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39985         set errno and don't call _close.
39986
39987 2008-10-10  Bruno Haible  <bruno@clisp.org>
39988
39989         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39990         ACL, not afterwards. Fixes test failure on Cygwin.
39991
39992 2008-10-09  Ben Pfaff  <blp@gnu.org>
39993
39994         * build-aux/announce-gen: Fix gnulib version related part of usage
39995         message.  Die with a useful error message if no tarballs are
39996         found.
39997
39998 2008-10-10  Jim Meyering  <meyering@redhat.com>
39999
40000         bootstrap: use git's --depth=N option only if it's supported
40001         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40002         recognize the --depth option.  Reported by Pádraig Brady.
40003
40004 2008-10-09  Bruno Haible  <bruno@clisp.org>
40005
40006         New module 'ioctl'.
40007         * modules/ioctl: New file.
40008         * lib/sys_socket.in.h (ioctl): Remove declaration.
40009         * lib/winsock.c: Include <sys/ioctl.h>.
40010         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40011         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40012         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40013         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40014         * doc/posix-functions/ioctl.texi: Mention the new module.
40015
40016 2008-10-09  Bruno Haible  <bruno@clisp.org>
40017
40018         New module 'sys_ioctl'.
40019         * lib/sys_ioctl.in.h: New file.
40020         * m4/sys_ioctl_h.m4: New file.
40021         * modules/sys_ioctl: New file.
40022         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40023
40024 2008-10-09  Bruno Haible  <bruno@clisp.org>
40025
40026         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40027         * lib/winsock.c: Include <stdarg.h>.
40028         (rpl_ioctl): Change to second argument 'int' and then varargs.
40029
40030 2008-10-09  Bruno Haible  <bruno@clisp.org>
40031
40032         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40033         when the sys_socket module is present and the system has <winsock2.h>.
40034
40035 2008-10-09  Bruno Haible  <bruno@clisp.org>
40036
40037         * doc/posix-functions/close.texi: Mention module 'close' instead of
40038         module 'sys_socket'.
40039
40040 2008-10-09  Bruno Haible  <bruno@clisp.org>
40041
40042         * doc/glibc-headers/sys_ioctl.texi: New file.
40043         * doc/gnulib.texi: Include it.
40044
40045 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40046             Bruno Haible  <bruno@clisp.org>
40047
40048         Combine the two replacements of 'close'.
40049         * lib/sys_socket.in.h (close): Define to a reminder to include
40050         <unistd.h>.
40051         (_gl_close_fd_maybe_socket): New declaration.
40052         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40053         * lib/winsock.c (close): Remove undefinition.
40054         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40055         needed for the gnulib module 'close'.
40056         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40057         define to an error symbol or to a warning, if suitable.
40058         * lib/close.c: Include <sys/socket.h>.
40059         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40060         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40061         UNISTD_H_HAVE_WINSOCK2_H.
40062         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40064         UNISTD_H_HAVE_WINSOCK2_H.
40065         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40066         (configure.ac): Set a module indicator.
40067         (Makefile.am): Substitute GNULIB_CLOSE.
40068         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40069         * modules/poll-tests (Depends-on): Add close.
40070         * modules/select-tests (Depends-on): Likewise.
40071
40072 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40073             Bruno Haible  <bruno@clisp.org>
40074
40075         New module 'close'.
40076         * modules/close: New file.
40077         * lib/unistd.in.h (close): Move declaration out of the
40078         FCHDIR_REPLACEMENT scope.
40079         (_gl_unregister_fd): New declaration.
40080         * lib/close.c: New file.
40081         * lib/fchdir.c (rpl_close): Remove function.
40082         * m4/close.m4: New file.
40083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40084         close.
40085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40086         REPLACE_CLOSE.
40087         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40088         REPLACE_CLOSE.
40089         * modules/fchdir (Depends-on): Add close.
40090
40091 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40092             Bruno Haible  <bruno@clisp.org>
40093
40094         * lib/fcntl.in.h (open): Simplify conditionals.
40095         (_gl_register_fd): New declaration.
40096         * lib/fchdir.c (rpl_open): Remove function.
40097         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40098         also.
40099         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40101         open.
40102
40103 2008-10-09  Jim Meyering  <meyering@redhat.com>
40104
40105         GNUmakefile: use the more name-space-friendly "_version"
40106         * top/GNUmakefile (_dummy): Update.
40107         (_version): Rename from "version".
40108
40109 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40110             Bruno Haible  <bruno@clisp.org>
40111
40112         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40113         rpl_close.
40114         (_gl_register_fd): New function, extracted from rpl_open.
40115         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40116         (rpl_open, rpl_opendir): Use _gl_register_fd.
40117
40118 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40119
40120         Fix organization of 'open' replacement.
40121         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40122         (gl_FUNC_OPEN): Use it.
40123         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40124
40125 2008-10-08  Bruno Haible  <bruno@clisp.org>
40126
40127         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40128
40129 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40130
40131         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40132         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40133         listen).
40134
40135 2008-10-08  Eric Blake  <ebb9@byu.net>
40136
40137         GNUmakefile: add 'make version' target
40138         * top/GNUmakefile (_curr-ver): Split version update rules...
40139         (version): ...into a target.
40140
40141 2008-10-07  Bruno Haible  <bruno@clisp.org>
40142
40143         Use a more portable replacement expression for -0.0L.
40144         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40145         instead of -0.0L. Fix m4 quotation.
40146
40147         * tests/test-signbit.c: Include <float.h>.
40148         (minus_zero): New variable.
40149         (test_signbitl): Use minus_zero instead of -zero.
40150         * modules/signbit-tests (Depends-on): Add float.
40151
40152         * tests/test-ceill.c: Include <float.h>.
40153         (zero): Remove variable.
40154         (minus_zero): New variable.
40155         (main): Use minus_zero instead of -zero.
40156         * modules/ceill-tests (Depends-on): Add float.
40157
40158         * tests/test-floorl.c: Include <float.h>.
40159         (zero): Remove variable.
40160         (minus_zero): New variable.
40161         (main): Use minus_zero instead of -zero.
40162         * modules/floorl-tests (Depends-on): Add float.
40163
40164         * tests/test-roundl.c: Include <float.h>.
40165         (zero): Remove variable.
40166         (minus_zero): New variable.
40167         (main): Use minus_zero instead of -zero.
40168         * modules/roundl-tests (Depends-on): Add float.
40169
40170         * tests/test-truncl.c: Include <float.h>.
40171         (zero): Remove variable.
40172         (minus_zero): New variable.
40173         (main): Use minus_zero instead of -zero.
40174         * modules/truncl-tests (Depends-on): Add float.
40175
40176         * tests/test-frexpl.c (zero): Remove variable.
40177         (minus_zero): New variable.
40178         (main): Use minus_zero instead of -zero.
40179         * modules/frexpl-tests (Depends-on): Add float.
40180
40181         * tests/test-isnan.c (zerol): Remove variable.
40182         (minus_zerol): New variable.
40183         (test_long_double): Use minus_zerol instead of -zerol.
40184         * modules/isnan-tests (Depends-on): Add float.
40185
40186         * tests/test-isnanl.h (zero): Remove variable.
40187         (minus_zero): New variable.
40188         (main): Use minus_zero instead of -zero.
40189         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40190         * modules/isnanl-tests (Depends-on): Add float.
40191
40192         * tests/test-ldexpl.c (zero): Remove variable.
40193         (minus_zero): New variable.
40194         (main): Use minus_zero instead of -zero.
40195         * modules/ldexpl-tests (Depends-on): Add float.
40196
40197         * tests/test-snprintf-posix.h (zerol): Remove variable.
40198         (minus_zerol): New variable.
40199         (test_function): Use minus_zerol instead of -zerol.
40200         * modules/snprintf-posix-tests (Depends-on): Add float.
40201         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40202
40203         * tests/test-sprintf-posix.h (zerol): Remove variable.
40204         (minus_zerol): New variable.
40205         (test_function): Use minus_zerol instead of -zerol.
40206         * modules/sprintf-posix-tests (Depends-on): Add float.
40207         * modules/vsprintf-posix-tests (Depends-on): Add float.
40208
40209         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40210         (minus_zerol): New variable.
40211         (test_function): Use minus_zerol instead of -zerol.
40212         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40213
40214         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40215         (minus_zerol): New variable.
40216         (test_function): Use minus_zerol instead of -zerol.
40217         * modules/vasprintf-posix-tests (Depends-on): Add float.
40218
40219 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40220
40221         * MODULES.html.sh (Support for building documentation): Mention
40222         pmccabe2html.  Sort entries.
40223
40224         Add pmccabe2html module, from gnupdf.
40225         * build-aux/pmccabe.css: New file.
40226         * build-aux/pmccabe2html: New file.
40227         * m4/pmccabe2html.m4: New file.
40228         * modules/pmccabe2html: New file.
40229
40230 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40231
40232         flock: new module
40233         * MODULES.html.sh: Add to list of modules.
40234         * lib/flock.c: flock implementation for Windows and Unix systems
40235         which have fcntl.
40236         * doc/glibc-functions/flock.texi: Update documentation.
40237         * lib/sys_file.in.h: <sys/file.h> header file.
40238         * m4/flock.m4: M4 macros.
40239         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40240         * modules/flock: flock module.
40241         * modules/flock-tests: flock tests module.
40242         * modules/sys_file: sys/file.h module.
40243         * tests/test-flock.c: test suite for flock.
40244
40245 2008-10-06  Jim Meyering  <meyering@redhat.com>
40246
40247         bootstrap: check for LT_INIT more portably still ;-)
40248         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40249         Spotted by Bruno Haible.
40250
40251 2008-10-06  Eric Blake  <ebb9@byu.net>
40252
40253         test-signbit: avoid tripping Irix cc bug on -0.0L
40254         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40255         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40256         entire testsuite consistent and avoids an Irix 6.2 bug.
40257
40258 2008-10-05  Bruno Haible  <bruno@clisp.org>
40259             Jim Meyering  <jim@meyering.net>
40260
40261         Add an option for ignoring EPIPE during close_stdout.
40262         * lib/closeout.h: Include <stdbool.h>.
40263         (close_stdout_set_ignore_EPIPE): New declaration.
40264         * lib/closeout.c: Include <stdbool.h>.
40265         (ignore_EPIPE): New variable.
40266         (close_stdout_set_ignore_EPIPE): New function.
40267         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40268         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40269         failure.
40270         * modules/closeout (Depends-on): Add stdbool.
40271
40272 2008-10-05  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/accept: New file.
40275         * modules/bind: New file.
40276         * modules/connect: New file.
40277         * modules/getpeername: New file.
40278         * modules/getsockname: New file.
40279         * modules/getsockopt: New file.
40280         * modules/listen: New file.
40281         * modules/recv: New file.
40282         * modules/recvfrom: New file.
40283         * modules/send: New file.
40284         * modules/sendto: New file.
40285         * modules/setsockopt: New file.
40286         * modules/socket: New file.
40287         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40288         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40289         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40290         the particular module is requested. Add a link warning when the
40291         particular module is not requested.
40292         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40293         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40294         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40295         the particular module is requested.
40296         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40297         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40298         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40299         * modules/sys_socket (Depends-on): Add link-warning.
40300         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40301         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40302         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40303         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40304         GL_LINK_WARNING.
40305         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40306         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40307         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40308         * doc/posix-functions/getpeername.texi: Mention the new module
40309         'getpeername'.
40310         * doc/posix-functions/getsockname.texi: Mention the new module
40311         'getsockname'.
40312         * doc/posix-functions/getsockopt.texi: Mention the new module
40313         'getsockopt'.
40314         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40315         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40316         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40317         * doc/posix-functions/send.texi: Mention the new module 'send'.
40318         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40319         * doc/posix-functions/setsockopt.texi: Mention the new module
40320         'setsockopt'.
40321         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40322         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40323         listen, connect, accept.
40324         * modules/select-tests (Depends-on): Likewise.
40325
40326 2008-10-05  Bruno Haible  <bruno@clisp.org>
40327
40328         * lib/winsock.c (strerror): Remove unused #undef.
40329         (rpl_close): Remove unused local variable.
40330
40331         * modules/sys_socket (Depends-on); Add errno.
40332
40333 2008-10-05  Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40336         (select): Add a link warning when the 'select' module is not used.
40337         * modules/sys_select (Depends-on): Add link-warning.
40338         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40339         Suggested by Paolo Bonzini.
40340
40341 2008-10-05  Jim Meyering  <meyering@redhat.com>
40342
40343         bootstrap: check for LT_INIT more portably
40344         * build-aux/bootstrap: Avoid using grep -E, since it's not
40345         portable enough.  Suggestion from Bruno Haible.
40346
40347 2008-10-05  Bruno Haible  <bruno@clisp.org>
40348
40349         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40350         as being fixed by gnulib.
40351
40352 2008-10-05  Bruno Haible  <bruno@clisp.org>
40353
40354         * modules/select-tests: New file, mostly copied from
40355         modules/sys_select-tests.
40356         * tests/test-select.c: New file, mostly copied from
40357         tests/test-sys_select.c.
40358         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40359         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40360         (Makefile.am): Remove test_sys_select_LDADD.
40361
40362         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40363         to an undefined symbol, for an error message.
40364         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40365         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40366         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40367         winsock-select.c here.
40368         * modules/sys_select (Files): Remove lib/winsock-select.c.
40369         (Depends-on): Remove alloca.
40370         (Makefile.am): Substitute GNULIB_SELECT.
40371         * modules/select: New file.
40372         * doc/posix-functions/select.texi: Update.
40373
40374 2008-10-05  Bruno Haible  <bruno@clisp.org>
40375
40376         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40377         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40378         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40379         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40380         getdtablesize.
40381         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40382         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40383
40384 2008-10-05  Bruno Haible  <bruno@clisp.org>
40385
40386         * modules/getdtablesize-tests: New file.
40387         * tests/test-getdtablesize.c: New file.
40388
40389         New module 'getdtablesize'.
40390         * lib/unistd.in.h (getdtablesize): New declaration.
40391         * lib/getdtablesize.c: New file.
40392         * m4/getdtablesize.m4: New file.
40393         * modules/getdtablesize: New file.
40394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40395         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40396         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40397         HAVE_GETDTABLESIZE.
40398         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40399
40400 2008-10-05  Bruno Haible  <bruno@clisp.org>
40401
40402         * modules/sched (Makefile.am): Fix typo.
40403         Reported by Simon Josefsson.
40404
40405 2008-10-05  Jim Meyering  <meyering@redhat.com>
40406
40407         bootstrap: check for LT_INIT, too
40408         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40409         are deprecated.  Suggestion from Ralf Wildenhues.
40410
40411 2008-10-05  Bruno Haible  <bruno@clisp.org>
40412
40413         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40414         overriding them by ours.
40415         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40416
40417 2008-10-05  Jim Meyering  <meyering@redhat.com>
40418
40419         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40420         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40421         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40422
40423 2008-10-04  Bruno Haible  <bruno@clisp.org>
40424
40425         * modules/dup2 (License): Change to LGPLv2+.
40426         * modules/sleep (License): Likewise.
40427         * modules/perror (License): Likewise.
40428         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40429         Blake.
40430         * modules/signal (License): Likewise.
40431         * modules/sigprocmask (License): Likewise.
40432         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40433         Meyering.
40434
40435 2008-10-04  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40438         Reported by Rainer Tammer <tammer@tammer.net>.
40439
40440 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40441             Bruno Haible  <bruno@clisp.org>
40442
40443         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40444         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40445         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40446
40447 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40448
40449         filevercmp: new module
40450         * lib/filevercmp.h: New function filevercmp comparing version strings.
40451         * lib/filevercmp.c: Implementation of filevercmp function.
40452         * modules/filevercmp: Module metadata.
40453         * tests/test-filevercmp.c: Unit test for new module.
40454         * modules/filevercmp-tests: Unit test metadata.
40455         * MODULES.html.sh: Add filevercmp module.
40456
40457 2008-10-03  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/c-ctype.h: Add comment.
40460         Reported by Jim Meyering.
40461
40462 2008-10-02  Bruno Haible  <bruno@clisp.org>
40463
40464         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40465
40466 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40467
40468         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40469         name of bootstrap.conf accordingly.
40470
40471 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40472
40473         * build-aux/bootstrap: Install git-merge-changelog configuration
40474         items into .gitconfig if needed.
40475
40476 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40477
40478         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40479         git repository, and initialize/update it accordingly.
40480
40481 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40482
40483         * modules/fsync-tests: New file.
40484         * tests/test-fsync.c: New file.
40485
40486         New module 'fsync'.
40487         * lib/fsync.c: New file.
40488         * m4/fsync.m4: New file.
40489         * modules/fsync: New file.
40490         * lib/unistd.in.h (fsync): New declaration.
40491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40492         GNULIB_FSYNC and HAVE_FSYNC.
40493         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40494         * MODULES.html.sh (posix_functions): Add fsync.
40495         * doc/posix-functions/fsync.texi: Mention the new module.
40496
40497 2008-10-02  Jim Meyering  <meyering@redhat.com>
40498
40499         fts.c: sync with similar code from coreutils' remove.c
40500         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40501         Guard also with "#if defined __linux__", since for now at least,
40502         this code is Linux-kernel-specific.
40503
40504 2008-10-02  Jim Meyering  <meyering@redhat.com>
40505
40506         fts: bug fixes
40507         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40508         Include <sys/vfs.h>, not <sys/statfs.h>.
40509
40510         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40511         Include <sys/vfs.h>, not <sys/statfs.h>.
40512
40513 2008-10-01  Bruno Haible  <bruno@clisp.org>
40514
40515         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40517         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40518         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40519         * doc/posix-functions/posix_spawnp.texi: Likewise.
40520         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40521         whether posix_spawn actually works.
40522         * m4/pipe.m4 (gl_PIPE): Likewise.
40523         * modules/execute (Files): Add m4/posix_spawn.m4.
40524         * modules/pipe (Files): Add m4/posix_spawn.m4.
40525         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40526
40527 2008-10-01  Jim Meyering  <meyering@redhat.com>
40528
40529         remove trailing spaces
40530         * NEWS: Likewise.
40531         * lib/poll.c (poll): Likewise.
40532         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40533         * lib/winsock.c (rpl_close): Likewise.
40534         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40535         * modules/yield: Likewise.
40536         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40537         * tests/test-sys_select.c (connect_to_socket): Likewise.
40538
40539         fts.c: adjust a new interface to be more generally useful
40540         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40541         (fts_build): Adjust caller.
40542
40543 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40544
40545         * modules/cond-tests: New file.
40546         * tests/test-cond.c: New file.
40547
40548 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40549             Bruno Haible  <bruno@clisp.org>
40550
40551         * modules/cond (Dependencies): Add errno, time.
40552         * lib/glthread/cond.h: Include <time.h>.
40553         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40554         across platforms.
40555
40556 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40557             Bruno Haible  <bruno@clisp.org>
40558
40559         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40560
40561 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40562             Bruno Haible  <bruno@clisp.org>
40563
40564         * modules/tls-tests (Depends-on): Add thread, yield.
40565         (configure.ac): Remove all checks.
40566         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40567         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40568         gl_thread_self): Remove definitions. Include glthread/thread.h and
40569         glthread/yield.h instead.
40570         (test_tls): Pass an additional NULL argument to gl_thread_join.
40571
40572 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40573             Bruno Haible  <bruno@clisp.org>
40574
40575         * modules/lock-tests (Depends-on): Add thread, yield.
40576         (configure.ac): Remove all checks.
40577         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40578         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40579         gl_thread_self): Remove definitions. Include glthread/thread.h and
40580         glthread/yield.h instead.
40581         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40582         additional NULL argument to gl_thread_join.
40583
40584 2008-09-30  Bruno Haible  <bruno@clisp.org>
40585
40586         Fix the Win32 implementation of the 'thread' module.
40587         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40588         pointer type.
40589         (gl_thread_self): Invoke gl_thread_self_func.
40590         (gl_thread_self_func): New declaration.
40591         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40592         (do_init_self_key, init_self_key): New functions.
40593         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40594         Remove some fields.
40595         (running_threads, running_lock): Remove variables.
40596         (get_current_thread_handle): New function.
40597         (gl_thread_self_func, wrapper_func, glthread_create_func,
40598         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40599         simplified.
40600
40601 2008-09-30  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40604         files.
40605
40606 2008-09-30  Jim Meyering  <meyering@redhat.com>
40607
40608         fts.m4: correct the test for statfs.f_type
40609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40610         when checking for statfs.f_type.
40611
40612 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40613
40614         tests: avoid some compiler warnings
40615         * tests/test-memchr.c (main): Pass NULL indirectly.
40616         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40617
40618 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40619
40620         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40621         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40622         exactly specified dayshifts.
40623         (dayshift): New rule.
40624         (rel): Add dayshift.
40625         (relative_time_table) [tomorrow, yesterday, today, now]:
40626         Use tDAY_SHIFT in place of tDAY_UNIT.
40627         * tests/test-getdate.c: Add tests for now-disallowed countable
40628         dayshifts, e.g., "4 yesterday ago".
40629
40630 2008-09-29  Bruno Haible  <bruno@clisp.org>
40631
40632         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40633         * tests/test-posix_spawn1.in.sh: Renamed from
40634         tests/test-posix_spawn.in.sh.
40635         * tests/test-posix_spawn2.c: New file.
40636         * tests/test-posix_spawn2.in.sh: New file.
40637         * modules/posix_spawnp-tests (Files): Update.
40638         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40639
40640 2008-09-29  Bruno Haible  <bruno@clisp.org>
40641
40642         Propagate effects of putenv/setenv/unsetenv to child processes.
40643         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40644         * lib/pipe.c (create_pipe): Likewise.
40645
40646 2008-09-29  Bruno Haible  <bruno@clisp.org>
40647
40648         Enable use of shell scripts as executables in mingw.
40649         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40650         run the program as a shell script.
40651         * lib/pipe.c (create_pipe): Likewise.
40652         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40653         resulting array.
40654
40655 2008-09-29  Eric Blake  <ebb9@byu.net>
40656
40657         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40658
40659 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40660
40661         * doc/posix-functions/accept.texi: Update mingw problems.
40662         * doc/posix-functions/bind.texi: Update mingw problems.
40663         * doc/posix-functions/close.texi: Update mingw problems.
40664         * doc/posix-functions/connect.texi: Update mingw problems.
40665         * doc/posix-functions/getpeername.texi: Update mingw problems.
40666         * doc/posix-functions/getsockname.texi: Update mingw problems.
40667         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40668         * doc/posix-functions/ioctl.texi: Update mingw problems.
40669         * doc/posix-functions/listen.texi: Update mingw problems.
40670         * doc/posix-functions/recv.texi: Update mingw problems.
40671         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40672         * doc/posix-functions/select.texi: Update mingw problems.
40673         * doc/posix-functions/send.texi: Update mingw problems.
40674         * doc/posix-functions/sendto.texi: Update mingw problems.
40675         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40676         * doc/posix-functions/socket.texi: Update mingw problems.
40677
40678 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40679             Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/sys_select.in.h: Include sys/time.h.
40682         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40683         * modules/sys_select: Depend on sys_time.
40684         * tests/test-sys_select.c: Test that sys/select.h defines struct
40685         timeval fully.
40686
40687 2008-09-29  Bruno Haible  <bruno@clisp.org>
40688
40689         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40690         * lib/sys_select.in.h: Likewise.
40691
40692 2008-09-29  Bruno Haible  <bruno@clisp.org>
40693
40694         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40695
40696 2008-09-29  Bruno Haible  <bruno@clisp.org>
40697
40698         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40699         Set LIBSOCKET instead of augmenting LIBS.
40700         * modules/sockets (Link): New section.
40701         * modules/sockets-tests (test_sockets_LDADD): New variable.
40702         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40703         * modules/poll-tests (test_poll_LDADD): New variable.
40704         * NEWS: Document the change.
40705
40706 2008-09-29  Bruno Haible  <bruno@clisp.org>
40707
40708         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40709         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40710         ARPA_INET_H directly.
40711         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40712
40713 2008-09-28  Bruno Haible  <bruno@clisp.org>
40714
40715         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40716         from gl_HEADER_SYS_SOCKET.
40717         (gl_HEADER_SYS_SOCKET): Invoke it.
40718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40719
40720 2008-09-28  Bruno Haible  <bruno@clisp.org>
40721
40722         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40723         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40724         Needed on OSF/1 4.0.
40725
40726 2008-09-28  Bruno Haible  <bruno@clisp.org>
40727
40728         Override open more carefully.
40729         * lib/open.c (orig_open): New function.
40730         (rpl_open): Use orig_open instead of open.
40731         * lib/fcntl.in.h: Add special invocation convention.
40732         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40733         (gl_FUNC_OPEN): Invoke it.
40734
40735         Override freopen more carefully.
40736         * lib/freopen.c (orig_freopen): New function.
40737         (rpl_freopen): Use orig_freopen instead of freopen.
40738         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40739         (gl_FUNC_FREOPEN): Invoke it.
40740
40741         Override fopen more carefully.
40742         * lib/fopen.c (orig_fopen): New function.
40743         (rpl_fopen): Use orig_fopen instead of fopen.
40744         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40745         (gl_FUNC_FOPEN): Invoke it.
40746         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40747
40748 2008-09-28  Bruno Haible  <bruno@clisp.org>
40749
40750         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40751         SIGPIPE.
40752
40753 2008-09-28  Bruno Haible  <bruno@clisp.org>
40754
40755         * tests/test-sigaction.c (handler, main): Disable the check whether
40756         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40757         glibc systems with LinuxThreads.
40758
40759 2008-09-28  Bruno Haible  <bruno@clisp.org>
40760
40761         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40762
40763         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40764         with AIX xlc.
40765         * lib/fcntl.in.h (open): Likewise.
40766         Reported by Rainer Tammer <tammer@tammer.net>.
40767
40768 2008-09-28  Bruno Haible  <bruno@clisp.org>
40769
40770         * modules/posix_spawnp-tests: New file.
40771         * tests/test-posix_spawn.c: New file.
40772         * tests/test-posix_spawn.in.sh: New file.
40773
40774         New module 'posix_spawnp'.
40775         * modules/posix_spawnp: New file.
40776         * lib/spawnp.c: New file, from GNU libc with modifications.
40777         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40778
40779         New module 'posix_spawn'.
40780         * modules/posix_spawn: New file.
40781         * lib/spawn.c: New file, from GNU libc with modifications.
40782         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40783
40784         New module 'posix_spawnattr_destroy'.
40785         * modules/posix_spawnattr_destroy: New file.
40786         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40787         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40788         module.
40789
40790         New module 'posix_spawnattr_setsigmask'.
40791         * modules/posix_spawnattr_setsigmask: New file.
40792         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40793         modifications.
40794         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40795         new module.
40796
40797         New module 'posix_spawnattr_getsigmask'.
40798         * modules/posix_spawnattr_getsigmask: New file.
40799         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40800         modifications.
40801         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40802         new module.
40803
40804         New module 'posix_spawnattr_setsigdefault'.
40805         * modules/posix_spawnattr_setsigdefault: New file.
40806         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40807         modifications.
40808         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40809         new module.
40810
40811         New module 'posix_spawnattr_getsigdefault'.
40812         * modules/posix_spawnattr_getsigdefault: New file.
40813         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40814         modifications.
40815         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40816         new module.
40817
40818         New module 'posix_spawnattr_setschedpolicy'.
40819         * modules/posix_spawnattr_setschedpolicy: New file.
40820         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40821         modifications.
40822         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40823         new module.
40824
40825         New module 'posix_spawnattr_getschedpolicy'.
40826         * modules/posix_spawnattr_getschedpolicy: New file.
40827         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40828         modifications.
40829         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40830         new module.
40831
40832         New module 'posix_spawnattr_setschedparam'.
40833         * modules/posix_spawnattr_setschedparam: New file.
40834         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40835         modifications.
40836         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40837         new module.
40838
40839         New module 'posix_spawnattr_getschedparam'.
40840         * modules/posix_spawnattr_getschedparam: New file.
40841         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40842         modifications.
40843         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40844         new module.
40845
40846         New module 'posix_spawnattr_setpgroup'.
40847         * modules/posix_spawnattr_setpgroup: New file.
40848         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40849         modifications.
40850         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40851         module.
40852
40853         New module 'posix_spawnattr_getpgroup'.
40854         * modules/posix_spawnattr_getpgroup: New file.
40855         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40856         modifications.
40857         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40858         module.
40859
40860         New module 'posix_spawnattr_setflags'.
40861         * modules/posix_spawnattr_setflags: New file.
40862         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40863         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40864         module.
40865
40866         New module 'posix_spawnattr_getflags'.
40867         * modules/posix_spawnattr_getflags: New file.
40868         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40869         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40870         module.
40871
40872         New module 'posix_spawnattr_init'.
40873         * modules/posix_spawnattr_init: New file.
40874         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40875         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40876         module.
40877
40878         New module 'posix_spawn_file_actions_destroy'.
40879         * modules/posix_spawn_file_actions_destroy: New file.
40880         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40881         modifications.
40882         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40883         the new module.
40884
40885         New module 'posix_spawn_file_actions_addopen'.
40886         * modules/posix_spawn_file_actions_addopen: New file.
40887         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40888         modifications.
40889         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40890         the new module.
40891
40892         New module 'posix_spawn_file_actions_adddup2'.
40893         * modules/posix_spawn_file_actions_adddup2: New file.
40894         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40895         modifications.
40896         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40897         the new module.
40898
40899         New module 'posix_spawn_file_actions_addclose'.
40900         * modules/posix_spawn_file_actions_addclose: New file.
40901         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40902         modifications.
40903         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40904         the new module.
40905
40906         New module 'posix_spawn_file_actions_init'.
40907         * modules/posix_spawn_file_actions_init: New file.
40908         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40909         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40910         new module.
40911
40912         New module 'posix_spawn-internal'.
40913         * modules/posix_spawn-internal: New file.
40914         * lib/spawn_int.h: New file, from GNU libc with modifications.
40915         * lib/spawni.c: New file, from GNU libc with modifications.
40916         * m4/posix_spawn.m4: New file.
40917
40918         New module 'spawn'.
40919         * modules/spawn: New file.
40920         * lib/spawn.in.h: New file, from GNU libc with modifications.
40921         * m4/spawn_h.m4: New file.
40922         * doc/posix-headers/spawn.texi: Mention the new module.
40923
40924 2008-09-28  Bruno Haible  <bruno@clisp.org>
40925
40926         * modules/sched-tests: New file.
40927         * tests/test-sched.c: New file.
40928
40929         New module 'sched'.
40930         * modules/sched: New file.
40931         * lib/sched.in.h: New file.
40932         * m4/sched_h.m4: New file.
40933         * doc/posix-headers/sched.texi: Mention the new module.
40934
40935 2008-09-27  Eric Blake  <ebb9@byu.net>
40936
40937         Fix previous patch, and tweak references to $0.
40938         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40939         (func_version, func_gnulib_dir): Don't call this program
40940         gnulib-tool.
40941         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40942         with using $0 in function.
40943         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40944         (func_fatal_error): Reuse the name the user invoked us with.
40945
40946 2008-09-27  Bruno Haible  <bruno@clisp.org>
40947
40948         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40949         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40950         (gl_ICONV_H): Not here.
40951         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40952         instead of assigning ICONV_H directly.
40953
40954         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40956         WCHAR_H directly.
40957
40958 2008-09-27  Bruno Haible  <bruno@clisp.org>
40959
40960         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40961         * modules/arpa_inet (Depends-on): Add link-warning.
40962         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40963         * modules/unistd (Makefile.am): Likewise.
40964
40965 2008-09-26  Bruno Haible  <bruno@clisp.org>
40966
40967         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40968         variables.
40969         (func_version): Essentially copied from gnulib-tool.
40970         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40971         func_readlink): Copied from gnulib-tool.
40972
40973 2008-09-26  Bruno Haible  <bruno@clisp.org>
40974
40975         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40976         invoking git-version-gen.
40977
40978 2008-09-26  Bruno Haible  <bruno@clisp.org>
40979
40980         * posix-modules: Update to directory names changed on 2008-01-19.
40981         Remove commas in output before splitting into words. No more need to
40982         avoid 'ftruncate' since 2007-02-19.
40983
40984 2008-09-26  Bruno Haible  <bruno@clisp.org>
40985
40986         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40987
40988 2008-09-26  Bruno Haible  <bruno@clisp.org>
40989
40990         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40991         * modules/fwriteerror (Depends-on): Add errno.
40992
40993 2008-09-26  Bruno Haible  <bruno@clisp.org>
40994
40995         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40996         * tests/test-vc-list-files-cvs.sh: Likewise.
40997
40998 2008-09-26  Bruno Haible  <bruno@clisp.org>
40999
41000         * doc/posix-headers/sys_resource.texi: Reorder items.
41001
41002 2008-09-26  Jim Meyering  <meyering@redhat.com>
41003
41004         fts: tweak inode comparison function
41005         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41006         inode numbers, as documented.
41007
41008         fts: sort dirent entries on inode number before traversing
41009         This avoids a quadratic, seek-related performance penalty when
41010         operating on a directory containing many entries (measurable at 10k;
41011         3.5 hours at 2 million entries with a cold cache) on certain types
41012         of file systems, including ext3 and ext4, but not tmpfs.
41013         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41014         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41015         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41016         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41017         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41018         (fts_build): Set the stat.st_ino member from D_INO.
41019         If it is likely to be useful, sort dirent entries on inode number.
41020
41021         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41022         and the struct statfs.f_type member.
41023         * modules/fts (Depends-on): Add d-ino.
41024
41025 2008-09-26  Bruno Haible  <bruno@clisp.org>
41026
41027         * modules/sigpipe-die (Depends-on): Add sigpipe.
41028
41029         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41030         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41031         and GNULIB_STDIO_H_SIGPIPE are set.
41032         * lib/stdio-write.c: New file.
41033         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41034         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41035         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41036         REPLACE_STDIO_WRITE_FUNCS.
41037         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41038         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41039         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41040         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41041         * modules/stdio (Files): Add lib/stdio-write.c.
41042         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41043         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41044         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41045         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41046         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41047         REPLACE_FPRINTF_POSIX.
41048         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41049         REPLACE_PRINTF_POSIX.
41050         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41051         REPLACE_VFPRINTF_POSIX.
41052         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41053         REPLACE_VPRINTF_POSIX.
41054         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41055         SIGPIPE issue.
41056         * doc/posix-functions/fputc.texi: Likewise.
41057         * doc/posix-functions/fputs.texi: Likewise.
41058         * doc/posix-functions/fwrite.texi: Likewise.
41059         * doc/posix-functions/printf.texi: Likewise.
41060         * doc/posix-functions/putc.texi: Likewise.
41061         * doc/posix-functions/putchar.texi: Likewise.
41062         * doc/posix-functions/puts.texi: Likewise.
41063         * doc/posix-functions/vfprintf.texi: Likewise.
41064         * doc/posix-functions/vprintf.texi: Likewise.
41065
41066         * modules/safe-write (Depends-on): Add write.
41067
41068         * modules/sigpipe-tests: New file.
41069         * tests/test-sigpipe.c: New file.
41070         * tests/test-sigpipe.sh: New file.
41071
41072         * modules/write: New file.
41073         * lib/unistd.in.h: Include <sys/types.h>.
41074         (write): New declaration.
41075         * lib/write.c: New file.
41076         * m4/write.m4: New file.
41077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41078         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41079         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41080         GNULIB_WRITE, REPLACE_WRITE.
41081         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41082         and the SIGPIPE issue.
41083
41084         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41085         (raise): New declaration.
41086         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41087         (ext_signal): New function.
41088         (rpl_raise): New function.
41089         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41090         GNULIB_SIGNAL_H_SIGPIPE.
41091         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41092         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41093
41094         * modules/sigpipe: New file.
41095         * m4/sigpipe.m4: New file.
41096
41097 2008-09-25  Derek Price  <derek@ximbiot.com>
41098             Bruno Haible  <bruno@clisp.org>
41099
41100         * gnulib-tool (func_import): Report all license incompatibilities, not
41101         just the first one.
41102
41103 2008-09-25  Bruno Haible  <bruno@clisp.org>
41104
41105         * gnulib-tool (func_import): When computing the edits, consider not
41106         only the Makefile.ams that exist but also those that will be generated.
41107
41108 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41109
41110         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41111         fixes gnulib-tool --test warning about duplicate dependency.
41112
41113 2008-09-25  Bruno Haible  <bruno@clisp.org>
41114
41115         * gnulib-tool: Don't ask the user to perform edits in the generated
41116         Makefile.ams.
41117         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41118         apply to the Makefile.am being generated.
41119         (func_emit_tests_Makefile_am): Execute edits that apply to the
41120         Makefile.am being generated.
41121         (func_import): Setup list of Makefile.am edits before emitting the
41122         Makefile.ams, not at the end.
41123         (func_create_testdir): Update.
41124         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41125
41126 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41127
41128         * gnulib-tool (func_import): Store the --tests-base option in the
41129         comment in gnulib-cache.m4.
41130
41131 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41132
41133         * NEWS: Document increased portability that sys_select now provides.
41134
41135         * lib/sys_select.in.h: Install select wrapper.
41136         * lib/sys_socket.in.h: Use more descriptive name when there is no
41137         select wrapper.
41138         * lib/winsock-select.c: New.
41139         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41140         Require gl_HEADER_SYS_SOCKET.
41141         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41142         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41143         * tests/test-sys_select.c: Add functional tests.
41144
41145 2008-09-24  Eric Blake  <ebb9@byu.net>
41146
41147         open, fopen: close fd leak in last patch
41148         * lib/open.c (rpl_open): Close fd before returning error.
41149         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41150         * doc/posix-functions/open.texi (open): Document that Irix also
41151         has the bug.
41152         * doc/posix-functions/fopen.texi (fopen): Likewise.
41153         Reported by Paolo Bonzini.
41154
41155 2008-09-24  Bruno Haible  <bruno@clisp.org>
41156
41157         Ensure that a filename ending in a slash cannot be used to access a
41158         non-directory.
41159         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41160         to check whether it's really a directory.
41161         * lib/fopen.c: Include fcntl.h, unistd.h.
41162         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41163         and fdopen().
41164         * modules/fopen (Depends-on): Add unistd.
41165         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41166         * tests/test-fopen.c (main): Likewise.
41167         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41168         * doc/posix-functions/fopen.texi: Likewise.
41169         Reported by Eric Blake.
41170
41171 2008-09-23  Eric Blake  <ebb9@byu.net>
41172
41173         c-stack: avoid compiler optimizations when provoking overflow
41174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41175         recursion harder to optimize, to ensure a stack overflow occurs.
41176         * tests/test-c-stack.c (recurse): Likewise.
41177         Borrowed from libsigsegv.
41178
41179         c-stack: work around Irix sigaltstack bug
41180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41181         whether sigaltstack uses wrong end of stack_t (copied in part from
41182         libsigsegv).
41183         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41184         Irix bug, without requiring an over-allocation.
41185         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41186         bug.
41187
41188         fopen: document mingw bug on directories
41189         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41190         not allowing a stream visiting a directory, even though reading
41191         from such a stream is not portable.
41192
41193 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41194
41195         * lib/poll.c: Rewrite.
41196         * modules/poll: Depend on alloca.
41197
41198 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41199
41200         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41201         instead define prototypes for a full set of wrappers.  Ensure
41202         that Cygwin does not use the compatibility code, which is only
41203         for MinGW.
41204         * lib/winsock.c: New.
41205         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41206         * modules/sys_socket: Add lib/winsock.c.
41207
41208         * modules/poll-tests: Add errno and perror.
41209         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41210
41211 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41212
41213         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41214
41215 2008-09-23  Bruno Haible  <bruno@clisp.org>
41216
41217         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41218         * doc/glibc-functions/*: Likewise.
41219
41220 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41221
41222         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41223         success.
41224
41225 2008-09-22  Eric Blake  <ebb9@byu.net>
41226             Bruno Haible  <bruno@clisp.org>
41227
41228         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41229         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41230         supply %A but mishandle pseudo-NaN.
41231         Reported by Simon Josefsson.
41232
41233 2008-09-21  Bruno Haible  <bruno@clisp.org>
41234
41235         * tests/test-lock.c (main): Tweak skip message.
41236         * tests/test-tls.c (main): Likewise.
41237
41238 2008-09-21  Bruno Haible  <bruno@clisp.org>
41239
41240         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41241         whether 'struct sigaction' has sa_sigaction here...
41242         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41243         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41244
41245 2008-09-21  Bruno Haible  <bruno@clisp.org>
41246
41247         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41248         section.
41249         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41250         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41251         the new section.
41252         (Support for obsolete systems lacking POSIX:2001): New section.
41253         (String handling <string.h>): Move strdup to the new section.
41254         Suggested by Simon Josefsson and Paolo Bonzini.
41255
41256 2008-09-21  Bruno Haible  <bruno@clisp.org>
41257
41258         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41259         exponents in %e and %g results on 'long double'. Needed for mingw's
41260         improved *printf functions.
41261         * tests/test-vasprintf-posix.c (test_function): Likewise.
41262         * tests/test-snprintf-posix.h (test_function): Likewise.
41263         * tests/test-sprintf-posix.h (test_function): Likewise.
41264         Reported by Eric Blake.
41265
41266 2008-09-21  Bruno Haible  <bruno@clisp.org>
41267
41268         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41269         * tests/test-sprintf-posix.h (test_function): Likewise.
41270
41271 2008-09-21  Bruno Haible  <bruno@clisp.org>
41272
41273         * modules/getpass (Depends-on): Add strdup-posix.
41274
41275         New module 'strdup-posix'.
41276         * modules/strdup-posix: New file.
41277         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41278         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41280         REPLACE_STRDUP.
41281         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41282         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41284         strdup-posix.
41285
41286         * modules/strdup (Depends-on): Remove malloc-posix.
41287
41288 2008-09-20  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41291         Wildenhues.
41292
41293 2008-09-20  Bruno Haible  <bruno@clisp.org>
41294
41295         Ensure that wint_t gets defined on IRIX 5.3.
41296         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41297         * lib/wctype.in.h (wint_t): Likewise.
41298         (__wctype_wint_t): Remove type.
41299         (isw*): Use wint_t instead of __wctype_wint_t.
41300         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41301         * modules/wchar (Files): Add m4/wint_t.m4.
41302         (Makefile.am): Substitute HAVE_WINT_T.
41303         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41304         * tests/test-wctype.c: Check that wint_t is defined.
41305         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41306         * doc/posix-headers/wctype.texi: Likewise.
41307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41308
41309 2008-09-18  Bruno Haible  <bruno@clisp.org>
41310
41311         * gnulib-tool (func_exit): Update comment.
41312
41313 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41314
41315         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41316         assumes strdup exists and does not depend on strdup to return
41317         ENOMEM on out of memory conditions.
41318
41319 2008-09-18  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41322         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41323         digits for the exponent.
41324
41325 2008-09-18  Jim Meyering  <meyering@redhat.com>
41326             Bruno Haible  <bruno@clisp.org>
41327
41328         * lib/vasnprintf.c (decimal_point_char): Define also if
41329         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41330
41331 2008-09-16  Bruno Haible  <bruno@clisp.org>
41332         and Eric Blake  <ebb9@byu.net>
41333
41334         vasnprintf: support Irix 5.3
41335         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41336         that mishandle long double infinity.
41337         Reported by Tom G. Christensen.
41338
41339 2008-09-16  Bruno Haible  <bruno@clisp.org>
41340
41341         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41342         Solaris 9.
41343         * doc/glibc-functions/alphasort.texi: Likewise.
41344         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41345
41346 2008-09-16  Jim Meyering  <meyering@redhat.com>
41347
41348         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41349         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41350         a umask modification leak out of a subshell.  Otherwise, the
41351         opensolaris /bin/sh would be accepted and thus cause unwarranted
41352         failures in the coreutils test suite.
41353
41354 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41355
41356         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41357         to succeed.
41358
41359 2008-09-16  Jim Meyering  <meyering@redhat.com>
41360
41361         avoid spurious test failure when library is built without ACL support
41362         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41363         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41364         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41365         * tests/test-copy-acl.sh: Likewise.
41366
41367 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41368
41369         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41370         based on character occurrence counts.
41371
41372 2008-09-15  Eric Blake  <ebb9@byu.net>
41373
41374         tests: avoid some compiler warnings
41375         * tests/test-memchr.c (main): Pass NULL indirectly.
41376         * tests/test-closein.c (main): Avoid unused variable.
41377
41378 2008-09-15  Bruno Haible  <bruno@clisp.org>
41379
41380         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41381         are missing on OpenBSD 4.0 individually.
41382         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41383
41384 2008-09-15  Bruno Haible  <bruno@clisp.org>
41385
41386         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41387         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41388         * doc/posix-functions/perror.texi: Likewise.
41389         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41390         is missing.
41391         Reported by Eric Blake.
41392
41393         * lib/errno.in.h: Use replacement values >= 2000.
41394         Reported by Eric Blake.
41395
41396 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41397
41398         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41399         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41400         limit.
41401         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41402         compareseq was aborted.
41403
41404 2008-09-14  Bruno Haible  <bruno@clisp.org>
41405
41406         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41407         yvec_edit_count.
41408         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41409         (fstrcmp_bounded): Simplify result computation accordingly.
41410
41411 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41412
41413         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41414         (fstrcmp): Define in terms of fstrcmp_bounded.
41415         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41416         lower_bound argument.
41417         Return quickly if the result is certainly < lower_bound.
41418         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41419
41420 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41421
41422         * lib/diffseq.h (EARLY_ABORT): New macro.
41423         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41424         evaluates to true.
41425
41426 2008-09-14  Bruno Haible  <bruno@clisp.org>
41427
41428         * modules/perror-tests: New file.
41429         * tests/test-perror.sh: New file.
41430         * tests/test-perror.c: New file.
41431
41432         New module 'perror'.
41433         * lib/stdio.in.h (perror): New declaration.
41434         * lib/perror.c: New file.
41435         * m4/perror.m4: New file.
41436         * modules/perror: New file.
41437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41438         * doc/posix-functions/perror.texi: Mention the perror module.
41439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41440         REPLACE_PERROR.
41441         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41442         REPLACE_PERROR.
41443
41444 2008-09-14  Bruno Haible  <bruno@clisp.org>
41445
41446         * modules/stdio (Makefile.am): Reorder to match the order in
41447         lib/stdio.in.h.
41448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41449
41450 2008-09-13  Bruno Haible  <bruno@clisp.org>
41451
41452         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41453
41454 2008-09-13  Bruno Haible  <bruno@clisp.org>
41455
41456         Extend strerror to cover the added errno values.
41457         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41458         (rpl_strerror): Provide error messages for the added errno values and
41459         for the WSA* values.
41460         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41461         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41462         strerror.
41463         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41464         * modules/strerror (Depends-on): Add errno.
41465         * doc/posix-functions/strerror.texi: Document the change.
41466         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41467         and EOVERFLOW.
41468
41469 2008-09-13  Bruno Haible  <bruno@clisp.org>
41470
41471         * modules/EOVERFLOW: Remove file.
41472         * m4/eoverflow.m4: Remove file.
41473         * modules/EOVERFLOW-tests: Remove file.
41474         * tests/test-EOVERFLOW.c: Remove file.
41475         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41476         * modules/ftell (Depends-on): Likewise.
41477         * modules/getdelim (Depends-on): Likewise.
41478         * modules/getugroups (Depends-on): Likewise.
41479         * modules/poll (Depends-on): Likewise.
41480         * modules/snprintf (Depends-on): Likewise.
41481         * modules/sprintf-posix (Depends-on): Likewise.
41482         * modules/vasnprintf (Depends-on): Likewise.
41483         * modules/vasprintf (Depends-on): Likewise.
41484         * modules/vfprintf-posix (Depends-on): Likewise.
41485         * modules/vsnprintf (Depends-on): Likewise.
41486         * modules/vsprintf-posix (Depends-on): Likewise.
41487         * modules/xvasprintf (Depends-on): Likewise.
41488         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41489         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41490         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41491         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41492         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41493         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41494         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41495         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41496         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41497         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41498         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41499         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41500         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41501         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41502         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41503         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41505         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41506         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41507         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41508         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41509         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41510         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41511         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41512         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41513         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41514         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41515         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41516         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41517         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41518         * MODULES.html.sh: Remove EOVERFLOW.
41519         * NEWS: Mention the change.
41520
41521 2008-09-13  Bruno Haible  <bruno@clisp.org>
41522
41523         * modules/errno-tests: New file.
41524         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41525
41526         * lib/errno.in.h: New file.
41527         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41528         * modules/errno: New file.
41529         * doc/posix-headers/errno.texi: Update documentation.
41530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41531
41532 2008-09-13  Bruno Haible  <bruno@clisp.org>
41533
41534         * tests/test-poll.c: Use #if for native Windows, rather than testing
41535         __MSVCRT__.
41536
41537 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41538             Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/glob.c: Don't include <pwd.h> on native Windows.
41541         (WINDOWS32): New macro.
41542         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41543
41544 2008-09-13  Bruno Haible  <bruno@clisp.org>
41545
41546         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41547         (ETIMEDOUT): Remove macro.
41548         (glthread_cond_timedwait_multithreaded): New declaration.
41549         (glthread_cond_timedwait): Use it.
41550         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41551         (glthread_cond_timedwait_multithreaded): New function.
41552
41553 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41554
41555         * modules/poll-tests: Do not check for io.h.
41556         * tests/test-poll.c: Check for __MSVCRT__ instead.
41557
41558 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41559
41560         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41561         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41562         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41563
41564 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41565
41566         * modules/poll-tests: New.
41567         * tests/test-poll.c: New.
41568
41569 2008-09-12  Eric Blake  <ebb9@byu.net>
41570
41571         frexp: test for NetBSD failure on -0.0
41572         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41573         not all, bugs from NetBSD 3.0 have been fixed.
41574         * doc/posix-functions/frexp.texi (frexp): Document bug.
41575         Reported by Thomas Klausner.
41576
41577         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41578         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41579         literal -0.0.
41580         Reported by Jonathan C. Patschke <jp@centtech.com>.
41581
41582 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41583
41584         * lib/glthread/cond.h: Use dummy implementation also if
41585         USE_WIN32_THREADS.
41586
41587 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41588
41589         * modules/fnmatch-posix (License): Change to LGPLv2+.
41590         * modules/fnmatch-gnu (License): Likewise.
41591
41592 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41593
41594         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41595
41596 2008-09-11  Jim Meyering  <meyering@redhat.com>
41597
41598         * users.txt: Add gtk-vnc.
41599
41600 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41601
41602         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41603         rotate amounts.
41604
41605         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41606         required for 16-bit and 8-bit rotates.
41607         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41608         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41609         UINT8_MAX instead of hard-coded constants.
41610         Suggested by Paul Eggert.
41611
41612 2008-09-07  Bruno Haible  <bruno@clisp.org>
41613
41614         * tests/test-striconveh.c (main): Check behaviour when converting from
41615         UTF-7.
41616
41617         Make striconveh work better with stateful encodings.
41618         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41619         that iconv does not increment the inptr when returning -1/EINVAL.
41620
41621 2008-09-07  Bruno Haible  <bruno@clisp.org>
41622
41623         * build-aux/config.rpath: Update according to libtool-2.2.6.
41624         * build-aux/config.libpath: Likewise.
41625
41626 2008-09-06  Bruno Haible  <bruno@clisp.org>
41627
41628         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41629         * lib/freadptr.c (freadptr): Likewise.
41630         * lib/freadseek.c (freadptrinc): Likewise.
41631         Reported by Simon Josefsson.
41632
41633 2008-09-06  Bruno Haible  <bruno@clisp.org>
41634
41635         * modules/freadptr (License): Change to LGPLv2+.
41636         * modules/freadseek (License): Likewise.
41637         Suggested by Eric Blake.
41638
41639         * modules/memchr2 (License): Change to LGPLv2+.
41640         Approved by Eric Blake.
41641
41642 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41643             Bruno Haible  <bruno@clisp.org>
41644
41645         Make gnulib-tool work with native 'sed' on AIX.
41646         * gnulib-tool (sed_noop): New variable.
41647         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41648         func_add_or_update, func_create_testdir): Use it to initialize sed
41649         script variables.
41650         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41651
41652 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41653             Bruno Haible  <bruno@clisp.org>
41654
41655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41656         also works after #include directives.
41657
41658 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41659
41660         getdate.y: reject an out-of-range timezone value
41661         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41662         the range [-24...+24].  When specified with only one or two digits,
41663         * tests/test-getdate.c: Tests for the fix.
41664         * doc/getdate.texi: Document this change.
41665
41666 2008-09-03  Bruno Haible  <bruno@clisp.org>
41667
41668         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41669
41670 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41671
41672         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41673         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41674         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41675         Blake <ebb9@byu.net>.
41676
41677         * tests/test-bitrotate.c: Add more test vectors.
41678
41679 2008-09-02  Eric Blake  <ebb9@byu.net>
41680
41681         vasnprintf-posix: handle large precision via %.*d
41682         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41683         when handling it ourselves.
41684         * tests/test-vasnprintf-posix.c (test_function): Add test.
41685         * tests/test-snprintf-posix.h (test_function): Likewise.
41686         * tests/test-sprintf-posix.h (test_function): Likewise.
41687         * tests/test-vasprintf-posix.c (test_function): Likewise.
41688         Reported by Alain Guibert.
41689
41690 2008-09-01  Eric Blake  <ebb9@byu.net>
41691
41692         c-stack: make configure-time check more robust
41693         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41694         successful sigaction call.
41695         Reported by Tom G. Christensen.
41696
41697 2008-09-01  Bruno Haible  <bruno@clisp.org>
41698
41699         New module 'findprog-lgpl'.
41700         * modules/findprog-lgpl: New file.
41701         * lib/findprog-lgpl.c: New file.
41702         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41703         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41704         to decide whether to use strdup or xstrdup, concatenated_filename or
41705         xconcatenated_filename.
41706
41707 2008-09-01  Bruno Haible  <bruno@clisp.org>
41708
41709         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41710         'xconcat-filename' (GPL).
41711         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41712         (License): Change to LGPLv2+.
41713         * modules/xconcat-filename: New file.
41714         * lib/concat-filename.h (concatenated_filename): Change specification.
41715         (xconcatenated_filename): New declaration.
41716         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41717         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41718         memory situations.
41719         * lib/xconcat-filename.c: New file.
41720         * NEWS: Mention the change.
41721         * lib/findprog.c: Include concat-filename.h, not filename.h.
41722         (find_in_path): Use xconcatenated_filename instead of
41723         concatenated_filename.
41724         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41725         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41726         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41727         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41728         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41729         instead of concatenated_filename.
41730         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41731         (execute_java_class): Use xconcatenated_filename instead of
41732         concatenated_filename.
41733         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41734         * modules/javacomp (Depends-on): Likewise.
41735         * modules/javaexec (Depends-on): Likewise.
41736
41737 2008-09-01  Bruno Haible  <bruno@clisp.org>
41738
41739         Split module 'filename' into 'filename' and 'concat-filename'.
41740         * modules/filename: Keep only lib/filename.h.
41741         (License): Change to LGPLv2+.
41742         * modules/concat-filename: New file, extracted from modules/filename.
41743         * lib/filename.h (concatenated_filename): Remove declaration.
41744         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41745         * lib/concat-filename.c: Include concat-filename.h.
41746         * NEWS: Mention the change.
41747
41748 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41749
41750         * lib/bitrotate.h (rotl8, rotr8): Add.
41751
41752         * modules/bitrotate (configure.ac): Need
41753         AC_REQUIRE([AC_C_INLINE]).
41754         (Description): Mention stdint.h.  Reported by Bruno Haible
41755         <bruno@clisp.org>.
41756
41757         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41758         Paolo Bonzini <bonzini@gnu.org>.
41759
41760 2008-08-31  Bruno Haible  <bruno@clisp.org>
41761
41762         Assume Solaris specific bi-arch conventions on Solaris systems.
41763         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41764         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41766         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41767         like acl_libdirstem.
41768         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41769         acl_libdirstem.
41770         * NEWS: Mention the change.
41771         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41772
41773 2008-08-31  Jim Meyering  <meyering@redhat.com>
41774
41775         * lib/strftime.h: Add comments describing the two added arguments.
41776
41777         remove duplicate #include directives
41778         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41779         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41780
41781 2008-08-31  Bruno Haible  <bruno@clisp.org>
41782
41783         New module 'sigpipe-die'.
41784         * modules/sigpipe-die: New file.
41785         * lib/sigpipe-die.h: New file.
41786         * lib/sigpipe-die.c: New file.
41787         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41788
41789 2008-08-31  Bruno Haible  <bruno@clisp.org>
41790
41791         Don't override previously installed signal handlers.
41792         * lib/fatal-signal.c (saved_sigactions): New variable.
41793         (uninstall_handlers): Reset the signal to the saved handler, not
41794         to SIG_DFL (except when ignored).
41795         (install_handlers): Save the previous handlers.
41796
41797 2008-08-30  Bruno Haible  <bruno@clisp.org>
41798
41799         * gnulib-tool (func_reset_sigpipe): New function.
41800         (func_get_automake_snippet, func_modules_transitive_closure,
41801         func_import): Invoke it before a join command that reads from stdin,
41802         to avoid "echo: write error: Broken pipe" error messages on stderr.
41803         Reported by Sam Steingold <sds@gnu.org>.
41804
41805 2008-08-30  Bruno Haible  <bruno@clisp.org>
41806
41807         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41808         Code copied from m4/open.m4.
41809         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41810         access and the filename ends in a slash. Code copied from lib/open.c.
41811         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41812         * tests/test-fopen.c (main): Check against bug with trailing slash.
41813
41814 2008-08-29  Bruno Haible  <bruno@clisp.org>
41815
41816         Avoid some "gcc -pedantic" warnings.
41817         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41818         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41819         * lib/dirent.in.h: Likewise.
41820         * lib/fcntl.in.h: Likewise.
41821         * lib/float.in.h: Likewise.
41822         * lib/iconv.in.h: Likewise.
41823         * lib/inttypes.in.h: Likewise.
41824         * lib/locale.in.h: Likewise.
41825         * lib/math.in.h: Likewise.
41826         * lib/netinet_in.in.h: Likewise.
41827         * lib/search.in.h: Likewise.
41828         * lib/signal.in.h: Likewise.
41829         * lib/stdarg.in.h: Likewise.
41830         * lib/stdint.in.h: Likewise.
41831         * lib/stdio.in.h: Likewise.
41832         * lib/stdlib.in.h: Likewise.
41833         * lib/string.in.h: Likewise.
41834         * lib/strings.in.h: Likewise.
41835         * lib/sys_select.in.h: Likewise.
41836         * lib/sys_socket.in.h: Likewise.
41837         * lib/sys_stat.in.h: Likewise.
41838         * lib/sys_time.in.h: Likewise.
41839         * lib/sysexits.in.h: Likewise.
41840         * lib/time.in.h: Likewise.
41841         * lib/unistd.in.h: Likewise.
41842         * lib/wchar.in.h: Likewise.
41843         * lib/wctype.in.h: Likewise.
41844         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41845         * modules/fchdir (Makefile.am): Likewise.
41846         * modules/fcntl (Makefile.am): Likewise.
41847         * modules/float (Makefile.am): Likewise.
41848         * modules/iconv_open (Makefile.am): Likewise.
41849         * modules/inttypes (Makefile.am): Likewise.
41850         * modules/locale (Makefile.am): Likewise.
41851         * modules/math (Makefile.am): Likewise.
41852         * modules/netinet_in (Makefile.am): Likewise.
41853         * modules/search (Makefile.am): Likewise.
41854         * modules/signal (Makefile.am): Likewise.
41855         * modules/stdarg (Makefile.am): Likewise.
41856         * modules/stdint (Makefile.am): Likewise.
41857         * modules/stdio (Makefile.am): Likewise.
41858         * modules/stdlib (Makefile.am): Likewise.
41859         * modules/string (Makefile.am): Likewise.
41860         * modules/strings (Makefile.am): Likewise.
41861         * modules/sys_select (Makefile.am): Likewise.
41862         * modules/sys_socket (Makefile.am): Likewise.
41863         * modules/sys_stat (Makefile.am): Likewise.
41864         * modules/sys_time (Makefile.am): Likewise.
41865         * modules/sysexits (Makefile.am): Likewise.
41866         * modules/time (Makefile.am): Likewise.
41867         * modules/unistd (Makefile.am): Likewise.
41868         * modules/wchar (Makefile.am): Likewise.
41869         * modules/wctype (Makefile.am): Likewise.
41870         Reported by Reuben Thomas <rrt@sc3d.org>.
41871
41872 2008-08-29  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41875         any more.
41876
41877 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41878
41879         * MODULES.html.sh (Misc): Add bitrotate.
41880
41881         * modules/bitrotate: New file.
41882
41883         * lib/bitrotate.h: New file.
41884
41885         * modules/bitrotate-tests: New file.
41886
41887         * tests/test-bitrotate.c: New file.
41888
41889         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41890         on the bitrotate module.
41891
41892         * lib/arctwo.c: Use new bitrotate module.
41893
41894 2008-08-29  Jim Meyering  <meyering@redhat.com>
41895
41896         bootstrap: merge changes from coreutils
41897         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41898         of copied files.  Remove a kludge, now that this is fixed.
41899         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41900         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41901         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41902
41903 2008-08-29  Bruno Haible  <bruno@clisp.org>
41904
41905         * MODULES.html.sh: Remove --cvs-urls option.
41906
41907 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41908
41909         maint.mk: adjust to file name change
41910         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41911
41912 2008-08-28  Jim Meyering  <meyering@redhat.com>
41913
41914         * modules/getndelim2 (License): Relicense to LGPLv2+.
41915         Approved by Richard Stallman for the version of 1995, and by
41916         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41917
41918 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41919
41920         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41921         dummy if one is not available.  Do not touch them if
41922         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41923         (getc_maybe_unlocked): New.
41924         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41925
41926 2008-08-26  Eric Blake  <ebb9@byu.net>
41927
41928         doc/INSTALL: resync from autoconf
41929         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41930         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41931         moving...
41932         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41933         * INSTALL: Regenerate.
41934         * INSTALL.ISO: New file.
41935         * INSTALL.UTF-8: Likewise.
41936
41937 2008-08-26  Jim Meyering  <meyering@redhat.com>
41938
41939         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41940         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41941         these definitions conditional, so that they may be overridden, too.
41942
41943 2008-08-26  Bruno Haible  <bruno@clisp.org>
41944
41945         Generate INSTALL file variants with prettier quotes.
41946         * doc/Makefile (INSTALL_PRELUDE): New macro.
41947         (INSTALL): Use it.
41948         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41949
41950 2008-08-26  Bruno Haible  <bruno@clisp.org>
41951
41952         Run makeinfo in an English locale.
41953         * doc/Makefile (MAKEINFO): New variable.
41954
41955 2008-08-26  Bruno Haible  <bruno@clisp.org>
41956
41957         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41958         Suggested by Eric Blake.
41959
41960 2008-08-25  Bruno Haible  <bruno@clisp.org>
41961
41962         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41963
41964 2008-08-25  Eric Blake  <ebb9@byu.net>
41965
41966         c-stack: test that stack overflow can be caught
41967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41968         that platform allows handling stack overflow; at least OS/2 EMX
41969         has sigaltstack, but crashes before transferring control to
41970         handler on stack overflow.
41971         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41972         check for HAVE_STACK_OVERFLOW_HANDLING.
41973         Reported by Elbert Pol.
41974
41975 2008-08-25  Bruno Haible  <bruno@clisp.org>
41976
41977         * doc/posix-functions/strftime.texi: Fix description of strftime
41978         module.
41979
41980 2008-08-24  Bruno Haible  <bruno@clisp.org>
41981
41982         * tests/uniwidth/test-uc_width2.c: New file.
41983         * tests/uniwidth/test-uc_width2.sh: New file.
41984         * modules/uniwidth/width-tests (Files): Add the new files.
41985         (TESTS): Add uniwidth/test-uc_width2.sh.
41986         (TESTS_ENVIRONMENT): New variable.
41987         (check_PROGRAMS): Add test-uc_width2.
41988         (test_uc_width2_SOURCES): New variable.
41989
41990         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41991         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41992         not 0x00AB.
41993         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41994
41995 2008-08-22  Eric Blake  <ebb9@byu.net>
41996
41997         test-lock, test-tls: mention why a test is skipped
41998         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41999         skipped.
42000         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42001
42002         count-one-bits: relax license
42003         * modules/count-one-bits (License): Relicense to LGPLv2+.
42004         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42005
42006 2008-08-22  Andreas Schwab  <schwab@suse.de>
42007
42008         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42009         Remove spurious space in assignment.
42010
42011 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42012
42013         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42014         Paul Eggert <eggert@CS.UCLA.EDU>.
42015
42016 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42017
42018         * modules/gettext: Add m4/threadlib.m4.
42019
42020 2008-08-19  Eric Blake  <ebb9@byu.net>
42021
42022         test-c-stack: fix compilation failure on FreeBSD 5.0
42023         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42024         headers before <sys/resource.h>.
42025         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42026         the bug.
42027         Reported by Nelson H. F. Beebe.
42028
42029         strverscmp: migrate from "strverscmp.h" to <string.h>
42030         * modules/string (Makefile.am): Add new hooks.
42031         * modules/strverscmp (Files): Remove strverscmp.h.
42032         (Depends-on): Add string.
42033         (configure.ac): Add indicator.
42034         (Include): Mention new header.
42035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42036         defaults.
42037         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42038         results.
42039         * lib/strverscmp.h: Delete.
42040         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42041         * tests/test-strverscmp.c (includes): Adjust client.
42042         * lib/check-version.c (includes): Likewise.
42043         * NEWS: Document the change.
42044
42045         strverscmp: add unit test
42046         * modules/strverscmp-tests: New file.
42047         * tests/test-strverscmp.c: Likewise.
42048
42049 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42050
42051         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42052         regarding Windows crypto stuff, from Mono.
42053
42054 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42055
42056         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42057         if present, for intel RND.  Return error on failures.
42058
42059 2008-08-18  Ben Pfaff  <blp@gnu.org>
42060
42061         gitlog-to-changelog: give better diagnostic for failed pipe-open
42062         * build-aux/gitlog-to-changelog: Improve error message: suggest
42063         that the version of Git may be too old.
42064
42065 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42066
42067         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42068         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42069
42070 2008-08-18  Bruno Haible  <bruno@clisp.org>
42071
42072         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42073         pthread_in_use().
42074
42075 2008-08-18  Bruno Haible  <bruno@clisp.org>
42076
42077         * lib/glthread/threadlib.c: Include <pthread.h>.
42078
42079 2008-08-18  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42082         glthread_recursive_lock_* macros.
42083         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42084         Fix syntax error.
42085
42086 2008-08-18  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/glthread/thread.c: Avoid forcing a context switch right after
42089         thread creation.
42090
42091 2008-08-17  Bruno Haible  <bruno@clisp.org>
42092
42093         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42094         * lib/glthread/thread.h: Provide Win32 specific implementation.
42095         * modules/thread (Files): Add lib/glthread/thread.c.
42096         (Depends-on): Add lock.
42097         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42098
42099 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42100
42101         New module 'yield'.
42102         * modules/yield: New file.
42103         * lib/glthread/yield.h: New file.
42104         * m4/yield.m4: New file.
42105         * MODULES.html.sh (Multithreading): Add yield.
42106
42107 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42108
42109         New module 'thread'.
42110         * modules/thread: New file.
42111         * lib/glthread/thread.h: New file.
42112         * m4/thread.m4: New file.
42113         * MODULES.html.sh (Multithreading): Add thread.
42114
42115 2008-08-17  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/glthread/lock.h: Include <stdlib.h> always.
42118         * lib/glthread/tls.h: Likewise.
42119         * lib/glthread/cond.h: Likewise.
42120
42121 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42122
42123         New module 'cond'.
42124         * modules/cond: New file.
42125         * lib/glthread/cond.h: New file.
42126         * lib/glthread/cond.c: New file.
42127         * m4/cond.m4: New file.
42128         * MODULES.html.sh (Multithreading): Add cond.
42129
42130 2008-08-16  Eric Blake  <ebb9@byu.net>
42131
42132         c-stack: fix regression on Irix 5.3 from 2008-06-21
42133         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42134         sa_sigaction...
42135         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42136         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42137         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42138         * modules/signal (Makefile.am): Use the value.
42139         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42140         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42141         * doc/posix-headers/signal.texi (signal.h): Document this
42142         portability issue.
42143         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42144         Reported by Tom G. Christensen.
42145
42146 2008-08-17  Bruno Haible  <bruno@clisp.org>
42147
42148         New module 'threadlib'.
42149         * modules/threadlib: New file.
42150         * lib/glthread/threadlib.c: New file, extracted from
42151         lib/glthread/lock.c.
42152         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42153         functions.
42154         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42155         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42156         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42157         macros.
42158         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42159         (gl_DISABLE_THREADS): Remove macro.
42160         * modules/lock (Files): Remove build-aux/config.rpath.
42161         (Depends-on): Remove havelib. Add threadlib.
42162         (configure.ac-early): Remove section.
42163         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42164         * modules/tls (Depends-on): Remove lock. Add threadlib.
42165         (Link): New section, copied from threadlib.
42166         * MODULES.html.sh (Multithreading): Add threadlib.
42167
42168 2008-08-14  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42171         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42172         glthread_rwlock_unlock, glthread_rwlock_destroy,
42173         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42174         glthread_recursive_lock_destroy): Define as macros always.
42175         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42176         glthread_lock_lock.
42177         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42178         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42179         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42180         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42181         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42182         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42183         (glthread_recursive_lock_lock_func): Renamed from
42184         glthread_recursive_lock_lock.
42185         (glthread_recursive_lock_unlock_func): Renamed from
42186         glthread_recursive_lock_unlock.
42187         (glthread_recursive_lock_destroy_func): Renamed from
42188         glthread_recursive_lock_destroy.
42189
42190 2008-08-14  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/glthread/lock.h: Renamed from lib/lock.h.
42193         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42194         * lib/glthread/tls.h: Renamed from lib/tls.h.
42195         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42196         * lib/fstrcmp.c: Update includes.
42197         * lib/strsignal.c: Update includes.
42198         * modules/lock (Files, Makefile.am): Update.
42199         (Include): Change to "glthread/lock.h".
42200         * modules/tls (Files, Makefile.am): Update.
42201         (Include): Change to "glthread/tls.h".
42202         * tests/test-lock.c: Update includes.
42203         * tests/test-tls.c: Update includes.
42204         * NEWS: Mention the renamed header files.
42205
42206 2008-08-11  Jim Meyering  <meyering@redhat.com>
42207
42208         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42209
42210 2008-08-11  Eric Blake  <ebb9@byu.net>
42211
42212         test-c-stack: avoid C99-ism
42213         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42214         before statement.
42215         Reported by Alain Guibert.
42216
42217 2008-08-10  Jim Meyering  <meyering@redhat.com>
42218
42219         ensure that return value of uinttostr et al are not ignored
42220         * lib/inttostr.h (__GNUC_PREREQ): Define.
42221         (__attribute_warn_unused_result__): Define.
42222         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42223
42224 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42225
42226         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42227         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42228
42229 2008-08-07  Jim Meyering  <meyering@redhat.com>
42230
42231         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42232
42233         * modules/mkstemp (License): Relicense under LGPLv2+.
42234         * modules/tempname (License): Likewise.
42235
42236 2008-08-06  Bruno Haible  <bruno@clisp.org>
42237
42238         * lib/poll.c (poll): Further micro-optimization.
42239
42240 2008-08-06  Jim Meyering  <meyering@redhat.com>
42241
42242         inet_pton.c: use locale-independent tolower
42243         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42244         (inet_pton6): Use c_tolower rather than tolower.
42245         * modules/inet_pton (Depends-on): Add c-ctype.
42246
42247 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42248
42249         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42250         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42251
42252 2008-08-06  Jim Meyering  <meyering@redhat.com>
42253
42254         * modules/inet_pton (License): Relicense under LGPLv2+.
42255
42256 2008-08-03  Bruno Haible  <bruno@clisp.org>
42257
42258         Additional non-aborting API for lock and tls.
42259         * lib/lock.h: Include <errno.h>.
42260         (glthread_lock_init): New macro/function.
42261         (gl_lock_init): Define as wrapper around glthread_lock_init.
42262         (glthread_lock_lock): New macro/function.
42263         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42264         (glthread_lock_unlock): New macro/function.
42265         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42266         (glthread_lock_destroy): New macro/function.
42267         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42268         (glthread_rwlock_init): New macro/function.
42269         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42270         (glthread_rwlock_rdlock): New macro/function.
42271         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42272         (glthread_rwlock_wrlock): New macro/function.
42273         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42274         (glthread_rwlock_unlock): New macro/function.
42275         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42276         (glthread_rwlock_destroy): New macro/function.
42277         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42278         (glthread_recursive_lock_init): New macro/function.
42279         (gl_recursive_lock_init): Define as wrapper around
42280         glthread_recursive_lock_init.
42281         (glthread_recursive_lock_lock): New macro/function.
42282         (gl_recursive_lock_lock): Define as wrapper around
42283         glthread_recursive_lock_lock.
42284         (glthread_recursive_lock_unlock): New macro/function.
42285         (gl_recursive_lock_unlock): Define as wrapper around
42286         glthread_recursive_lock_unlock.
42287         (glthread_recursive_lock_destroy): New macro/function.
42288         (gl_recursive_lock_destroy): Define as wrapper around
42289         glthread_recursive_lock_destroy.
42290         (glthread_once): New macro/function.
42291         (gl_once): Define as wrapper around glthread_once.
42292         Update function declarations.
42293         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42294         glthread_rwlock_init. Return error code.
42295         (glthread_rwlock_rdlock_multithreaded): Renamed from
42296         glthread_rwlock_rdlock. Return error code.
42297         (glthread_rwlock_wrlock_multithreaded): Renamed from
42298         glthread_rwlock_wrlock. Return error code.
42299         (glthread_rwlock_unlock_multithreaded): Renamed from
42300         glthread_rwlock_unlock. Return error code.
42301         (glthread_rwlock_destroy_multithreaded): Renamed from
42302         glthread_rwlock_destroy. Return error code.
42303         (glthread_recursive_lock_init_multithreaded): Renamed from
42304         glthread_recursive_lock_init. Return error code.
42305         (glthread_recursive_lock_lock_multithreaded): Renamed from
42306         glthread_recursive_lock_lock. Return error code.
42307         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42308         glthread_recursive_lock_unlock. Return error code.
42309         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42310         glthread_recursive_lock_destroy. Return error code.
42311         (glthread_once_call): Make static.
42312         (glthread_once_multithreaded): Renamed from glthread_once.
42313         * lib/tls.h: Include <errno.h>.
42314         (glthread_tls_key_init): New macro/function.
42315         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42316         (glthread_tls_set): New macro/function.
42317         (gl_tls_set): Define as wrapper around glthread_tls_set.
42318         (glthread_tls_key_destroy): New macro/function.
42319         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42320         Update function declarations.
42321         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42322         glthread_tls_get.
42323         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42324
42325 2008-08-04  Eric Blake  <ebb9@byu.net>
42326
42327         gnumakefile: use space, not TAB, outside of targets
42328         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42329
42330 2008-08-02  Jim Meyering  <meyering@redhat.com>
42331
42332         getdate.y: avoid locale-dependent date parsing failure
42333         In Turkish locales, getdate would fail to recognize keywords
42334         containing a lowercase "i".  The solution is not to rely on
42335         locale-sensitive case-conversion.
42336         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42337         (lookup_word): Use c_toupper in place of toupper.
42338         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42339         Reported by Vefa Bicakci <bicave@superonline.com> in
42340         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42341         * modules/getdate (Depends-on): Add c-ctype.
42342
42343 2008-08-02  Bruno Haible  <bruno@clisp.org>
42344
42345         * gnulib-tool (func_import): When updating or creating a .gitignore
42346         file, prepend each added line with a slash, and ignore leading slashes
42347         from the existing lines.
42348         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42349
42350 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42351
42352         Portability fix for GNU make 3.79.1.
42353         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42354         versions do not understand.
42355
42356 2008-08-01  Bruno Haible  <bruno@clisp.org>
42357
42358         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42359         * tests/test-isnanf.h (zero): New variable.
42360         (main): Avoid literal -0.0f.
42361         * tests/test-isnand.h (zero): New variable.
42362         (main): Avoid literal -0.0.
42363         * tests/test-isnanl.h (zero): New variable.
42364         (main): Avoid literal -0.0L.
42365         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42366         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42367         -0.0, -0.0L.
42368         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42369         (test_signbitd): Avoid literal -0.0.
42370         (test_signbitl): Avoid literal -0.0L.
42371         * tests/test-ceilf1.c (zero): New variable.
42372         (main): Avoid literal -0.0f.
42373         * tests/test-ceill.c (zero): New variable.
42374         (main): Avoid literal -0.0L.
42375         * tests/test-floorf1.c (zero): New variable.
42376         (main): Avoid literal -0.0f.
42377         * tests/test-floorl.c (zero): New variable.
42378         (main): Avoid literal -0.0L.
42379         * tests/test-roundf1.c (zero): New variable.
42380         (main): Avoid literal -0.0f.
42381         * tests/test-round1.c (zero): New variable.
42382         (main): Avoid literal -0.0.
42383         * tests/test-roundl.c (zero): New variable.
42384         (main): Avoid literal -0.0L.
42385         * tests/test-truncf1.c (zero): New variable.
42386         (main): Avoid literal -0.0f.
42387         * tests/test-trunc1.c (zero): New variable.
42388         (main): Avoid literal -0.0.
42389         * tests/test-truncl.c (zero): New variable.
42390         (main): Avoid literal -0.0L.
42391         * tests/test-frexp.c (zero): New variable.
42392         (main): Avoid literal -0.0.
42393         * tests/test-frexpl.c (zero): New variable.
42394         (main): Avoid literal -0.0L.
42395         * tests/test-ldexpl.c (zero): New variable.
42396         (main): Avoid literal -0.0L.
42397         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42398         (zerod, zerol): New variables.
42399         (test_function): Avoid literals -0.0, -0.0L.
42400         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42401         (zerod, zerol): New variables.
42402         (test_function): Avoid literals -0.0, -0.0L.
42403         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42404         (zerod, zerol): New variables.
42405         (test_function): Avoid literals -0.0, -0.0L.
42406         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42407         (zerod, zerol): New variables.
42408         (test_function): Avoid literals -0.0, -0.0L.
42409         * tests/test-strtod.c (zero): New variable.
42410         (main): Avoid literal -0.0.
42411         Reported by Jonathan C. Patschke <jp@centtech.com>.
42412
42413 2008-07-31  Jim Meyering  <meyering@redhat.com>
42414
42415         sha256.h: correct definition of SHA224_DIGEST_SIZE
42416         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42417         Reported by Paulie Pena IV <paulie4@gmail.com>.
42418         Define as 224 / 8, rather than as a literal.
42419         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42420         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42421         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42422
42423 2008-07-31  Bruno Haible  <bruno@clisp.org>
42424
42425         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42426         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42427         Reported by Jonathan Patschke <jp@centtech.com>.
42428
42429 2008-07-31  Bruno Haible  <bruno@clisp.org>
42430
42431         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42432         Reported by Paolo Bonzini <bonzini@gnu.org>.
42433
42434 2008-07-30  Eric Blake  <ebb9@byu.net>
42435
42436         test-strtod: allow compilation without -lm
42437         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42438         Reported by Dennis Clarke <blastwave@gmail.com>.
42439
42440 2008-07-28  Jim Meyering  <meyering@redhat.com>
42441
42442         bootstrap: work also when there are no .po files in po/
42443         * build-aux/bootstrap (update_po_files): Complete the change
42444         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42445
42446 2008-07-27  Jim Meyering  <meyering@redhat.com>
42447
42448         * users.txt: Add zile.
42449
42450 2008-07-26  Ben Pfaff  <blp@gnu.org>
42451
42452         Add missing dependencies on new m4/exponent[fdl].m4 files.
42453         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42454         * modules/isnand-nolibm: Add m4/exponentd.m4.
42455         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42456         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42457         m4/isnan[fdl].m4, because the macros actually used moved.
42458         Reported by Jim Meyering.
42459
42460 2008-07-14  Ben Pfaff  <blp@gnu.org>
42461
42462         Add isinf module.
42463         * lib/isinf.c: New file.
42464         * lib/math.in.h: Define isinf macro if we have decided to replace
42465         it.
42466         * m4/isinf.m4: New file.
42467         * m4/math_h.m4: Initialize and substitute variables for isinf
42468         module.
42469         * modules/isinf: New file.
42470         * modules/isinf-tests: New file.
42471         * modules/math: Add substitutions for new module.
42472         * tests/test-isinf.c: New file.
42473         * doc/posix-functions/isinf.texi: Mention new module.
42474         * MODULES.html.sh: Mention new module.
42475
42476 2008-07-14  Ben Pfaff  <blp@gnu.org>
42477
42478         Factor out some macros for use by additional modules.
42479         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42480         exponentf.m4.
42481         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42482         exponentd.m4.
42483         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42484         file exponentl.m4.
42485         * m4/exponentf.m4: New file.
42486         * m4/exponentd.m4: New file.
42487         * m4/exponentl.m4: New file.
42488         * modules/isnanf: Use new file m4/exponentf.m4.
42489         * modules/isnand: Use new file m4/exponentd.m4.
42490         * modules/isnanl: Use new file m4/exponentl.m4.
42491
42492 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42493
42494         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42495         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42496         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42497         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42498
42499         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42500         readlink on platforms without PATH_MAX.
42501
42502 2008-07-21  Eric Blake  <ebb9@byu.net>
42503
42504         Warn, not fail, on stale version.
42505         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42506
42507         Don't allow installation with stale devel version number.
42508         * top/GNUmakefile (_is-install-target): New macro.
42509         (_curr-ver): Forbid installation with stale version number.
42510
42511 2008-07-20  Bruno Haible  <bruno@clisp.org>
42512
42513         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42514         TESTS_ENVIRONMENT.
42515         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42516
42517 2008-07-20  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/c-stack.h (c_stack_action): Add documentation.
42520         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42521
42522 2008-07-20  Bruno Haible  <bruno@clisp.org>
42523
42524         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42525         * modules/readlink (License): Likewise.
42526
42527 2008-07-17  Eric Blake  <ebb9@byu.net>
42528
42529         * modules/c-stack (Link): Fix typo.
42530
42531         Make c-stack use libsigsegv, when available.
42532         * modules/c-stack (Depends-on): Add libsigsegv.
42533         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42534         needed.
42535         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42536         (segv_handler, overflow_handler, c_stack_action)
42537         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42538         implementation when libsigsegv is available, but only when using
42539         the library is necessary.
42540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42541         comment, explaining why XSI check fails on Linux.
42542         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42543         * tests/test-c-stack2.sh: Tweak skip message.
42544         * NEWS: Document new link-time requirements.
42545
42546 2008-07-16  Eric Blake  <ebb9@byu.net>
42547
42548         c-stack: Expose false positives when not using libsigsegv.
42549         * modules/c-stack-tests (Files): Expand test.
42550         * tests/test-c-stack.c (main): Add means to conditionally trigger
42551         non-overflow SIGSEGV.
42552         * tests/test-c-stack2.sh: New file.
42553
42554 2008-07-14  Bruno Haible  <bruno@clisp.org>
42555
42556         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42557         Reported by Eric Blake.
42558
42559 2008-07-14  Sam Steingold  <sds@gnu.org>
42560             Bruno Haible  <bruno@clisp.org>
42561
42562         New module libsigsegv.
42563         * modules/libsigsegv: New file.
42564         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42565         modifications.
42566         * MODULES.html.sh (Signal handling): New section.
42567
42568 2008-07-14  Bruno Haible  <bruno@clisp.org>
42569
42570         * modules/unictype/ctype-* (Description): Add the word "function".
42571         Improves the resulting doc in MODULES.html.
42572
42573 2008-07-12  Ben Pfaff  <blp@gnu.org>
42574
42575         Add longlong module.
42576         * modules/longlong: New file.
42577
42578 2008-07-12  Bruno Haible  <bruno@clisp.org>
42579
42580         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42581         to empty.
42582
42583 2008-07-10  Ben Pfaff  <blp@gnu.org>
42584
42585         Add isnan module.
42586         * doc/posix-functions/isnan.texi: Mention new module.
42587         * lib/math.in.h: Define isnan macro if we have decided to replace
42588         it.
42589         * m4/isnan.m4: New file.
42590         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42591         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42592         also.
42593         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42594         redundancy.
42595         * m4/math_h.m4: Initialize and substitute variables for isnan
42596         module.
42597         * modules/isnan: New file.
42598         * modules/isnan-tests: New file.
42599         * modules/math: Add substitutions for new module.
42600         * tests/test-isnan.c: New file.
42601         * MODULES.html.sh: Mention new module.
42602
42603 2008-07-10  Ben Pfaff  <blp@gnu.org>
42604
42605         Add isnanf module.
42606         * lib/isnanf.m4: New file.
42607         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42608         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42609         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42610         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42611         * modules/isnanf: New file.
42612         * modules/isnanf-tests: New file.
42613         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42614         files.
42615         * tests/test-isnanf-nolibm.c: factored most of its contents into
42616         new file tests/test-isnanf.h.
42617         * tests/test-isnanf.h: New file.
42618         * tests/test-isnanf.c: New file.
42619         * MODULES.html.sh: Mention new module.
42620         * doc/glibc-functions/isnanf.texi: Mention new module.
42621
42622 2008-07-10  Ben Pfaff  <blp@gnu.org>
42623
42624         Add isnand module.
42625         * lib/isnand.h: New file.
42626         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42627         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42628         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42629         functionality also.
42630         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42631         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42632         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42633         * modules/isnand: New file.
42634         * modules/isnand-tests: New file.
42635         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42636         files.
42637         * tests/test-isnand-nolibm.c: factored most of its contents into
42638         new file tests/test-isnand.h.
42639         * tests/test-isnand.h: New file.
42640         * tests/test-isnand.c: New file.
42641         * MODULES.html.sh: Mention new module.
42642
42643 2008-07-10  Ben Pfaff  <blp@gnu.org>
42644
42645         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42646         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42647         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42648         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42649         * modules/isnanf-nolibm: Update references to renamed files.
42650         * modules/isnand-nolibm: Likewise.
42651         * modules/isnanf-nolibm-tests: Likewise.
42652         * modules/isnand-nolibm-tests: Likewise.
42653         * lib/frexp.c: Likewise.
42654         * lib/isfinite.c: Likewise.
42655         * lib/signbitd.c: Likewise.
42656         * lib/signbitf.c: Likewise.
42657         * lib/vasnprintf.c: Likewise.
42658         * tests/test-ceilf1.c: Likewise.
42659         * tests/test-ceilf2.c: Likewise.
42660         * tests/test-floorf1.c: Likewise.
42661         * tests/test-floorf2.c: Likewise.
42662         * tests/test-frexp.c: Likewise.
42663         * tests/test-round1.c: Likewise.
42664         * tests/test-round2.c: Likewise.
42665         * tests/test-roundf1.c: Likewise.
42666         * tests/test-strtod.c: Likewise.
42667         * tests/test-trunc1.c: Likewise.
42668         * tests/test-trunc2.c: Likewise.
42669         * tests/test-truncf1.c: Likewise.
42670         * tests/test-truncf2.c: Likewise.
42671         * NEWS: Mention the renamed header files.
42672
42673 2008-07-11  Jim Meyering  <meyering@redhat.com>
42674
42675         vc-list-files: make the last-resort awk code more portable
42676         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42677         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42678         does not support it.
42679
42680 2008-07-10  Eric Blake  <ebb9@byu.net>
42681
42682         Work with tar's bootstrap.
42683         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42684         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42685         an m4 comment.
42686
42687 2008-07-09  Jim Meyering  <meyering@redhat.com>
42688
42689         posix-shell.m4: fix typo that made this test malfunction
42690         * m4/posix-shell.m4: Remove capitalization in variable name.
42691
42692 2008-07-08  Bruno Haible  <bruno@clisp.org>
42693
42694         * m4/onceonly.m4: Update comments.
42695         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42696
42697 2008-07-04  Jim Meyering  <meyering@redhat.com>
42698
42699         * users.txt: Add vc-dwim.
42700         (bison, coreutils): Use the gitweb URL.
42701
42702 2008-07-03  Jim Meyering  <meyering@redhat.com>
42703
42704         * users.txt: Add libffcall.  From Sam Steingold.
42705
42706 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42707
42708         getdate.y: do not ignore TZ with relative day, month or year offset
42709         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42710         relative-date-handling, since otherwise, the latter would clobber the
42711         sole output (an updated Start value) of the tz-handling block.
42712         * tests/test-getdate.c: Tests for the fix
42713
42714 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42715
42716         Recognize 'foo_LIBRARIES += libgnu.a'.
42717         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42718         makefile snippet has already specified an installation location,
42719         also using '+='.
42720
42721 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42722
42723         getdate.y: factor out common actions
42724         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42725         Use them in place of open-coded actions.
42726
42727 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42728
42729         Add self-test for getdate module.
42730         * modules/getdate-tests: New file.
42731         * tests/test-getdate.c: New file.
42732
42733 2008-06-29  Bruno Haible  <bruno@clisp.org>
42734
42735         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42736         .gitignore.
42737         Reported by Sylvain Beucler <beuc@beuc.net>.
42738
42739 2008-06-29  Bruno Haible  <bruno@clisp.org>
42740
42741         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42742         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42743
42744 2008-06-29  Bruno Haible  <bruno@clisp.org>
42745
42746         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42747         EXTRA_DIST.
42748         Reported by Sylvain Beucler <beuc@beuc.net>.
42749
42750 2008-06-26  Jim Meyering  <meyering@redhat.com>
42751
42752         make several modules depend on the "open" module
42753         This provides slightly increased consistency when opening-for-write
42754         the name of a non-directory spelled with a trailing slash.
42755         * modules/chdir-safer: Likewise.
42756         * modules/chown: Likewise.
42757         * modules/clean-temp: Likewise.
42758         * modules/copy-file: Likewise.
42759         * modules/fchdir: Likewise.
42760         * modules/fcntl-safer: Likewise.
42761         * modules/pipe: Likewise.
42762         * modules/utime: Likewise.
42763         Prompted by Eric Blake and Bruno Haible.
42764
42765 2008-06-24  Andreas Schwab  <schwab@suse.de>
42766
42767         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42768         literals can be used as initializers for global variables.
42769
42770 2008-06-23  Eric Blake  <ebb9@byu.net>
42771
42772         Make gnulib-cache.m4 easier to diff.
42773         * gnulib-tool (func_import): Allow newlines when reading cached
42774         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42775
42776 2008-06-23  Bruno Haible  <bruno@clisp.org>
42777
42778         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42779         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42780         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42781         m4/signalblocking.m4.
42782         (gl_PREREQ_SIGACTION): Don't invoke it.
42783         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42784         gl_PREREQ_SIG_HANDLER_H.
42785         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42786         Don't check for sigaction here.
42787
42788 2008-06-23  Bruno Haible  <bruno@clisp.org>
42789
42790         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42791         (install_handlers): Don't set the SA_RESETHAND flag.
42792
42793 2008-06-23  Bruno Haible  <bruno@clisp.org>
42794
42795         * m4/sigaction.m4: Comment fixes.
42796         * lib/signal.in.h: Likewise.
42797
42798 2008-06-23  Eric Blake  <ebb9@byu.net>
42799
42800         Fix typo.
42801         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42802
42803         Avoid SA_ namespace.
42804         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42805         Reported by Ralf Wildenhues.
42806
42807         Avoid test failure due to SA_RESTORER.
42808         * tests/test-sigaction.c (SA_MASK): New macro.
42809         (main): Avoid failing due to extension flags being set.
42810         Reported by Jim Meyering.
42811
42812         Revert use of sig-handler.h in sigprocmask.c.
42813         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42814         it requires the existence of struct sigaction.
42815         * lib/sigprocmask.c (handler_t): Restore typedef.
42816         (rpl_signal, old_handlers): Use local type.
42817
42818 2008-06-22  Bruno Haible  <bruno@clisp.org>
42819
42820         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42821         conditionally.
42822         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42823
42824 2008-06-22  Bruno Haible  <bruno@clisp.org>
42825
42826         * doc/posix-functions/siginterrupt.texi: Move note.
42827
42828         * lib/signal.in.h (SA_RESTART): New macro.
42829         * lib/sigaction.c: Update comment.
42830
42831         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42832
42833         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42834         (gl_PREREQ_SIGPROCMASK): Invoke it.
42835         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42836
42837         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42838
42839         * lib/sigprocmask.c: Update a comment.
42840
42841 2008-06-21  Eric Blake  <ebb9@byu.net>
42842
42843         Use sigaction module rather than signal().
42844         * modules/c-stack (Depends-on): Add sigaction.
42845         * modules/fatal-signal (Depends-on): Likewise.
42846         * modules/nanosleep (Depends-on): Likewise.
42847         * modules/sigprocmask (Files): Add sig-handler.h.
42848         * modules/sigaction (Files): Likewise.
42849         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42850         Eggert.
42851         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42852         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42853         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42854         (init_fatal_signals): Likewise.
42855         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42856         (siginterrupt): Delete fallback.
42857         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42858         instead.
42859         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42860         siginterrupt.
42861
42862         New module sigaction, for mingw.
42863         * modules/sigaction: New module...
42864         * modules/sigaction-tests: ...and its test.
42865         * m4/sigaction.m4: New file.
42866         * lib/sigaction.c: Likewise.
42867         * tests/test-sigaction.c: Likewise.
42868         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42869         * modules/signal (Makefile.am): Likewise.
42870         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42871         needed.
42872         * doc/posix-headers/signal.texi (signal.h): Mention provided
42873         types.
42874         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42875         that sigaction is preferable.
42876         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42877         module.
42878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42879         sigaction.
42880
42881         Improve robustness of sigprocmask by overriding signal.
42882         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42883         is in use.
42884         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42885         (SIGKILL, SIGSTOP): Provide fallbacks.
42886         (rpl_signal): Implement.
42887         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42888         signal can be called inside handlers.
42889
42890         Fix nanosleep module on mingw.
42891         * modules/nanosleep (Depends-on): Add sys_select.
42892         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42893
42894         Fix licensing of sigprocmask.
42895         * modules/raise (License): Relicense as LGPL.
42896
42897 2008-06-21  Bruno Haible  <bruno@clisp.org>
42898
42899         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42900         result if it contains question marks.
42901         Reported by Michael Geng <linux@michaelgeng.de>.
42902
42903 2008-06-19  Bruno Haible  <bruno@clisp.org>
42904
42905         Fix CVS-ism.
42906         * doc/gnulib.texi: Include updated-stamp.texi.
42907         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42908         (updated-stamp.texi): New rule.
42909         (gnulib.info): Depend on it.
42910         * doc/.gitignore: Add updated-stamp.texi.
42911         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42912
42913 2008-06-19  Bruno Haible  <bruno@clisp.org>
42914
42915         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42916         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42917
42918 2008-06-19  Eric Blake  <ebb9@byu.net>
42919
42920         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42921         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42922         Reported by Stepan Kasal.
42923
42924 2008-06-18  Bruno Haible  <bruno@clisp.org>
42925
42926         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42927         Reported by Eric Blake.
42928
42929 2008-06-18  Eric Blake  <ebb9@byu.net>
42930
42931         Work around cygwin 1.5.25 strsignal bug.
42932         * tests/test-strsignal.c: Allow for const char *.
42933         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42934
42935 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42936
42937         * users.txt: Update URL to article and add author/date
42938         information.
42939
42940 2008-06-17  Bruno Haible  <bruno@clisp.org>
42941
42942         New macro gl_DISABLE_THREADS.
42943         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42944         if the user did not pass --enable-threads or --disable-threads option.
42945         (gl_DISABLE_THREADS): New macro.
42946         Reported by Eric Blake <ebb9@byu.net>.
42947
42948 2008-06-17  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42951         when the macro ignores it.
42952         Based on a patch by Eric Blake <ebb9@byu.net>.
42953
42954 2008-06-17  Bruno Haible  <bruno@clisp.org>
42955
42956         * modules/tls (License): Change to LGPLv2+.
42957         Reported by Eric Blake.
42958
42959 2008-06-17  Eric Blake  <ebb9@byu.net>
42960
42961         Simplify c-stack prerequisites.
42962         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42964         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42965         check.
42966         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42967         <sys/resource.h>.
42968
42969         Move c-stack test into testsuite.
42970         * modules/c-stack-tests: New file.
42971         * lib/c-stack.c [DEBUG]: Move test program...
42972         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42973         fail test if sigaltstack is lacking.
42974         * tests/test-c-stack.sh: New driver file.
42975
42976 2008-06-16  Eric Blake  <ebb9@byu.net>
42977
42978         Use raise module consistently.
42979         * modules/fatal-signal (Depends-on): Add raise.
42980         * modules/sigprocmask (Depends-on): Likewise.
42981         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42982         * lib/sigprocmask.c (sigprocmask): Likewise.
42983         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42984         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42985
42986         Fix compliance bug in sigpending.
42987         * lib/sigprocmask.c (sigpending): Return pending array via
42988         parameter, not return value.
42989
42990 2008-06-14  Eric Blake  <ebb9@byu.net>
42991
42992         Improve obstack-printf test code.
42993         * tests/test-obstack-printf.c (test_function): Fix comment, and
42994         simplify usage of obstack_* in macros.  Add a test for coverage.
42995         Reported by Bruno Haible.
42996
42997 2008-06-14  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43000         array size as a constant, not as a const variable.
43001         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43002         AC_USE_SYSTEM_EXTENSIONS.
43003         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43004         Test whether the obstack_printf function actually exists.
43005         * modules/obstack-printf (Depends-on): Add extensions.
43006         (Include): Remove obstack.h.
43007         * modules/obstack-printf-posix (Depends-on): Add extensions.
43008         (Include): Remove obstack.h.
43009
43010 2008-06-13  Eric Blake  <ebb9@byu.net>
43011
43012         Add obstack-printf and obstack-printf-posix modules.
43013         * modules/obstack-printf: New file.
43014         * modules/obstack-printf-posix: Likewise.
43015         * MODULES.html.sh (Misc): Mention them.
43016         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43017         Likewise.
43018         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43019         Likewise.
43020         * modules/stdio (Makefile.am): Accomodate new modules.
43021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43022         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43023         Declare.
43024         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43025         functions.
43026         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43027         (gl_REPLACE_OBSTACK_PRINTF): New macros
43028         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43029         * tests/test-obstack-printf.c: New file.
43030         * modules/obstack-printf-tests: Likewise.
43031         * modules/obstack-printf-posix-tests: Likewise.
43032
43033 2008-06-11  Bruno Haible  <bruno@clisp.org>
43034
43035         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43036         * lib/open.c: Include errno.h.
43037         (open): Fail when attempting to write to a file that has a trailing
43038         slash.
43039         * tests/test-open.c (main): Test against trailing slash bug.
43040         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43041
43042 2008-06-10  Bruno Haible  <bruno@clisp.org>
43043
43044         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43045         for $? to work inside the trap command, with various /bin/sh-s.
43046         * tests/test-vc-list-files-cvs.sh: Likewise.
43047
43048 2008-06-10  Bruno Haible  <bruno@clisp.org>
43049
43050         * lib/acl-internal.h: Don't include gettext.h here.
43051         * lib/set-mode-acl.c: Include gettext.h here.
43052         * lib/copy-acl.c: Likewise.
43053
43054 2008-06-10  Bruno Haible  <bruno@clisp.org>
43055
43056         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43057         * lib/wait-process.c (wait_subprocess): Likewise.
43058         * lib/execute.h (execute): Add termsigp argument.
43059         * lib/execute.c (execute): Likewise.
43060         * lib/csharpcomp.c (compile_csharp_using_pnet,
43061         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43062         * lib/csharpexec.c (execute_csharp_using_pnet,
43063         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43064         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43065         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43066         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43067         is_jikes_present): Update.
43068         * lib/javaexec.c (execute_java_class): Update.
43069         * lib/javaversion.c (execute_and_read_line): Update.
43070         * NEWS: Document the changes.
43071         Reported by Eric Blake.
43072
43073 2008-06-10  Eric Blake  <ebb9@byu.net>
43074
43075         Add missing include.
43076         * tests/test-strstr.c (includes): Add <signal.h>.
43077         * tests/test-strcasestr.c (includes): Likewise.
43078         * tests/test-memmem.c (includes): Likewise.
43079
43080 2008-06-10  Bruno Haible  <bruno@clisp.org>
43081
43082         * lib/wait-process.c (wait_subprocess): Add an assertion.
43083
43084 2008-06-10  Bruno Haible  <bruno@clisp.org>
43085
43086         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43087
43088 2008-06-10  Bruno Haible  <bruno@clisp.org>
43089
43090         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43091         using alarm().
43092         * tests/test-strcasestr.c (main): Likewise.
43093         * tests/test-strstr.c (main): Likewise.
43094
43095 2008-06-09  Bruno Haible  <bruno@clisp.org>
43096
43097         Work around the Solaris 10 ACE ACLs ABI change.
43098         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43099         declare if ACL_NO_TRIVIAL is present.
43100         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43101         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43102         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43103         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43104         define if ACL_NO_TRIVIAL is present.
43105         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43106         and use the current ABI.
43107         (file_has_acl): Use same #if condition as elsewhere.
43108         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43109         in use, and use the current ABI.
43110         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43111         Reported by Jim Meyering.
43112
43113 2008-06-09  Eric Blake  <ebb9@byu.net>
43114
43115         Work around environments that (stupidly) ignore SIGALRM.
43116         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43117         before using alarm().
43118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43119         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43120         Reported by Ian Beckwith <ianb@erislabs.net>.
43121
43122         Produce autobuild blurb earlier in log.
43123         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43124
43125 2008-06-09  Jim Meyering  <meyering@redhat.com>
43126         and OndÅ™ej Vašík  <ovasik@redhat.com>
43127
43128         utimens.c: correct kernel bug work-around
43129         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43130         failure, not success, and the kernel bug we're trying to work
43131         around affects not just the utimensat call, but also the fallback
43132         futimens call.
43133         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43134         not success.
43135         [HAVE_FUTIMENS]: Use the same work-around, here.
43136
43137 2008-06-09  Jim Meyering  <meyering@redhat.com>
43138
43139         add more guards around definition of ACE_-related code
43140         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43141         ALLOW and ACE_OWNER are also defined.
43142
43143 2008-06-08  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/acl-internal.h: Add me as co-author.
43146         * lib/file-has-acl.c: Likewise.
43147         * lib/set-mode-acl.c: Likewise.
43148         * lib/copy-acl.c: Likewise.
43149
43150 2008-06-08  Bruno Haible  <bruno@clisp.org>
43151
43152         Add support for AIX ACLs.
43153         * lib/acl-internal.h (acl_nontrivial): New declaration.
43154         * lib/file-has-acl.c (acl_nontrivial): New function.
43155         (file_has_acl): Add implementation using AIX 4 ACL API.
43156         * lib/set-mode-acl.c (qset_acl): Likewise.
43157         * lib/copy-acl.c (qcopy_acl): Likewise.
43158
43159 2008-06-08  Bruno Haible  <bruno@clisp.org>
43160
43161         Add support for HP-UX ACLs.
43162         * lib/acl-internal.h (acl_nontrivial): New declaration.
43163         * lib/file-has-acl.c (acl_nontrivial): New function.
43164         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43165         * lib/set-mode-acl.c (qset_acl): Likewise.
43166         * lib/copy-acl.c (qcopy_acl): Likewise.
43167
43168 2008-06-08  Bruno Haible  <bruno@clisp.org>
43169
43170         Add support for Cygwin ACLs.
43171         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43172         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43173         the chmod_or_fchmod call.
43174         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43175
43176 2008-06-08  Bruno Haible  <bruno@clisp.org>
43177
43178         Fix bug with setuid modes in Solaris 10+ code.
43179         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43180         succeeded, when the mode contains some special bits.
43181
43182 2008-06-08  Bruno Haible  <bruno@clisp.org>
43183
43184         Add support for Solaris 7..10 ACLs.
43185         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43186         declarations.
43187         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43188         functions.
43189         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43190         * lib/set-mode-acl.c (qset_acl): Likewise.
43191         * lib/copy-acl.c (qcopy_acl): Likewise.
43192
43193 2008-06-08  Bruno Haible  <bruno@clisp.org>
43194
43195         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43196         declaration.
43197         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43198         (acl_access_nontrivial): Remove MacOS X case.
43199         (file_has_acl): Use acl_extended_nontrivial.
43200         * lib/copy-acl.c (qcopy_acl): Likewise.
43201
43202 2008-06-08  Bruno Haible  <bruno@clisp.org>
43203
43204         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43205
43206 2008-06-08  Jim Meyering  <meyering@redhat.com>
43207
43208         * modules/acl (Maintainer): Add Bruno Haible.
43209
43210 2008-06-07  Bruno Haible  <bruno@clisp.org>
43211
43212         Improve support for Tru64 ACLs.
43213         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43214         ACL on OSF/1.
43215
43216 2008-06-07  Bruno Haible  <bruno@clisp.org>
43217
43218         Add support for MacOS X ACLs.
43219         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43220         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43221         * lib/set-mode-acl.c (qset_acl): Likewise.
43222         * lib/copy-acl.c (qcopy_acl): Likewise.
43223
43224 2008-06-07  Bruno Haible  <bruno@clisp.org>
43225
43226         Fix memory leak introduced on 2008-05-22.
43227         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43228         use.
43229
43230 2008-06-07  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43233         to construct an empty ACL.
43234
43235 2008-06-07  Bruno Haible  <bruno@clisp.org>
43236
43237         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43238         precisely.
43239         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43240
43241 2008-06-07  Bruno Haible  <bruno@clisp.org>
43242
43243         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43244         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43245
43246 2008-06-07  Bruno Haible  <bruno@clisp.org>
43247
43248         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43249         regardless of POSIX.
43250         * doc/posix-functions/_longjmp.texi: Likewise.
43251         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43252         SystemV platform in this case.
43253
43254 2008-06-06  Eric Blake  <ebb9@byu.net>
43255
43256         Document abort() bugs.
43257         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43258
43259         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43260         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43261         sigsetjmp.
43262         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43263         siglongjmp, but only as a macro.
43264         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43265         is obsolete.
43266         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43267
43268         Tweak documentation to cover cygwin argz bugs.
43269         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43270         argz bug fix; no code change needed since no cygwin releases
43271         occurred between the last fix and the bug being tested.
43272         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43273         module and recently fixed cygwin bugs.
43274         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43275         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43276         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43277         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43278         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43279         Likewise.
43280         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43281         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43282         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43283         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43284         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43285         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43286         Likewise.
43287
43288         Avoid gcc warning on cygwin.
43289         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43290         !ACL_NO_TRIVIAL]: Avoid unused variable.
43291
43292 2008-06-05  Eric Blake  <ebb9@byu.net>
43293
43294         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43295         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43296         git-version-gen fails to come up with a version.
43297         Reported by Simon Josefsson.
43298
43299 2008-06-05  Jim Meyering  <meyering@redhat.com>
43300             Paul Eggert  <eggert@cs.ucla.edu>
43301
43302         utimens.c: work around a probable Linux kernel bug
43303         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43304         appears to be a kernel bug that causes utimensat to return 280
43305         instead of 0, indicating success.
43306
43307 2008-06-04  Bruno Haible  <bruno@clisp.org>
43308
43309         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43310         2008-06-01 commit.
43311
43312 2008-06-04  Bruno Haible  <bruno@clisp.org>
43313
43314         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43315         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43316         (file_has_acl): Use it. Save errno afterwards.
43317         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43318
43319 2008-06-03  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43322         draft code. Simplify #ifs.
43323         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43324         Put Solaris code after POSIX-draft code. Fix comments regarding
43325         Solaris 10, HP-UX. Mention Cygwin.
43326         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43327
43328 2008-06-03  Eric Blake  <ebb9@byu.net>
43329
43330         Provide fallback for older kernels.
43331         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43332         Provide runtime fallback if kernel lacks support.
43333         Reported by Mike Frysinger.
43334
43335 2008-06-02  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43338         it exists.
43339
43340 2008-06-02  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43343         * lib/copy-acl.c (qcopy_acl): Update comment.
43344
43345 2008-06-02  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43348         like ACL APIs.
43349
43350 2008-06-02  Bruno Haible  <bruno@clisp.org>
43351
43352         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43353         * tests/test-set-mode-acl.sh: Likewise.
43354         * tests/test-copy-acl.sh: Likewise.
43355         * tests/test-copy-file.sh: Likewise.
43356
43357 2008-06-02  Bruno Haible  <bruno@clisp.org>
43358
43359         * tests/test-file-has-acl.sh: Remove unused code.
43360
43361 2008-06-01  Bruno Haible  <bruno@clisp.org>
43362
43363         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43364         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43365         messages.
43366         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43367
43368 2008-06-01  Bruno Haible  <bruno@clisp.org>
43369
43370         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43371         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43372         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43373         APIs.
43374         * modules/acl-tests (configure.ac): Remove tests now contained in
43375         m4/acl.m4.
43376
43377 2008-06-02  Jim Meyering  <meyering@redhat.com>
43378
43379         announce-gen: use a better key-server host name
43380         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43381         it may be more consistently reliable.  Suggested by Werner Koch
43382         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43383
43384 2008-06-01  Bruno Haible  <bruno@clisp.org>
43385
43386         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43387         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43388
43389 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43390
43391         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43392
43393 2008-06-01  Bruno Haible  <bruno@clisp.org>
43394
43395         New ACL tests.
43396         * tests/test-file-has-acl.sh: New file.
43397         * tests/test-file-has-acl.c: New file.
43398         * tests/test-set-mode-acl.sh: New file.
43399         * tests/test-set-mode-acl.c: New file.
43400         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43401         * tests/test-copy-acl.c: New file.
43402         * modules/acl-tests: New file, based on modules/copy-file-tests.
43403         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43404         (Depends-on): Add acl-tests.
43405         (configure.ac): Remove checks.
43406         (Makefile.am): Don't create test-sameacls program here any more.
43407
43408 2008-06-01  Bruno Haible  <bruno@clisp.org>
43409
43410         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43411         * tests/test-sameacls.c: Include progname.h.
43412         (main): Invoke set_program_name. Portability fixes for MacOS X,
43413         Solaris, HP-UX.
43414
43415 2008-06-01  Bruno Haible  <bruno@clisp.org>
43416
43417         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43418         function.
43419         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43420
43421 2008-06-01  Bruno Haible  <bruno@clisp.org>
43422
43423         * modules/rpmatch (Depends-on): Add strdup.
43424
43425 2008-06-01  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/pipe.c: Include unistd-safer.h.
43428         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43429         * modules/pipe (Depends-on): Add unistd-safer.
43430
43431 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43432
43433         * modules/autobuild (configure.ac): Call AB_INIT.
43434
43435 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43436
43437         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43438         Suggested by Bruno Haible <bruno@clisp.org>.
43439
43440 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43441
43442         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43443         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43444         <bruno@clisp.org>.
43445
43446 2008-05-29  Eric Blake  <ebb9@byu.net>
43447
43448         Prefer new POSIX 200x interfaces over futimesat.
43449         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43450         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43451         when available.
43452         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43453
43454 2008-05-28  Bruno Haible  <bruno@clisp.org>
43455
43456         * modules/stpcpy (License): Change to LGPLv2+.
43457         Requested by David Lutterkort <dlutter@redhat.com>.
43458
43459 2008-05-27  Bruno Haible  <bruno@clisp.org>
43460
43461         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43462         current mingw.
43463         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43464
43465 2008-05-27  Bruno Haible  <bruno@clisp.org>
43466
43467         * modules/iconv_open (Link): New section, from module 'iconv'.
43468         * modules/striconv (Link): Likewise.
43469         * modules/striconveh (Link): Likewise.
43470         * modules/xstriconv (Link): Likewise.
43471         * modules/unicodeio (Link): Likewise.
43472         * modules/propername (Link): Likewise.
43473         Reported by Jim Meyering.
43474
43475 2008-05-26  Jim Meyering  <meyering@redhat.com>
43476
43477         sha256: do not artificially restrict buffer length to be < 2^32
43478         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43479         uint32_t to size_t.
43480         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43481         to match.
43482
43483         avoid unaligned access errors, e.g., on sparc
43484         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43485         direct access through a possibly-unaligned uint64* pointer.
43486         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43487         direct access through a possibly-unaligned uint32* pointer.
43488         Prompted by this patch from Tom "spot" Callaway:
43489         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43490
43491         sha512.c: fix typo in comment
43492         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43493
43494 2008-05-25  Bruno Haible  <bruno@clisp.org>
43495
43496         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43497         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43498         (Makefile.am): Update lib_SOURCES.
43499
43500 2008-05-25  Bruno Haible  <bruno@clisp.org>
43501
43502         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43503
43504 2008-05-25  Jim Meyering  <meyering@redhat.com>
43505
43506         useless-if-before-free: freed expr may have white-space differences
43507         * build-aux/useless-if-before-free: Recognize cases in which the
43508         freed expression differs from the tested one in embedded white
43509         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43510         $1 was used, so we can't make any regexp shy.  Improved tests now
43511         detect this.
43512
43513         useless-if-before-free: accept white space in the expression.
43514         * build-aux/useless-if-before-free: For now, any white space
43515         in the expression must be identical in the free argument.
43516
43517         useless-if-before-free: efficiency tweak
43518         * build-aux/useless-if-before-free: Make the expression-matching
43519         regexp "shy".
43520         Make the *outer* regexp shy, not the expr-matching one.
43521
43522         update code-in-comment to accept cast of free arg
43523         * build-aux/useless-if-before-free: Update regexp.
43524
43525 2008-05-25  Bruno Haible  <bruno@clisp.org>
43526
43527         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43528         * modules/copy-file-tests (Files, Makefile.am): Update.
43529         * tests/test-copy-file.c (func_test_copy): Update.
43530
43531 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43532
43533         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43534
43535 2008-05-23  Bruno Haible  <bruno@clisp.org>
43536
43537         Improve support for ACLs on OSF/1.
43538         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43539         Remove fallback for unknown flavors of ACLs.
43540
43541 2008-05-22  Bruno Haible  <bruno@clisp.org>
43542
43543         Add support for ACLs on OSF/1.
43544         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43545         replacements.
43546         (acl_free_text): New macro fallback.
43547         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43548         acl_free.
43549         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43550         acl_free_text function. Require AC_C_INLINE.
43551
43552 2008-05-22  Bruno Haible  <bruno@clisp.org>
43553
43554         Make copy_acl work on MacOS X 10.5.
43555         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43556         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43557         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43558         If MODE_INSIDE_ACL, don't assume that every system has the same text
43559         representation for ACLs as FreeBSD.
43560         * lib/copy-acl.c (copy_acl): Add support for platforms with
43561         !MODE_INSIDE_ACL.
43562         * lib/file-has-acl.c (file_has_acl): Likewise.
43563         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43564         FreeBSD, MacOS X, or IRIX, respectively.
43565
43566 2008-05-22  Bruno Haible  <bruno@clisp.org>
43567
43568         * lib/acl.h: Don't include <sys/acl.h>.
43569         (GETACLCNT): Move fallback to lib/acl-internal.h.
43570         * lib/acl-internal.h: Include <sys/acl.h> here.
43571         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43572
43573 2008-05-22  Bruno Haible  <bruno@clisp.org>
43574
43575         Split off copy_acl function to separate file.
43576         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43577         * lib/acl.c (copy_acl): Moved function to separate file.
43578         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43579         * modules/acl (Files): Add lib/copy-acl.c.
43580         (Makefiles.am): Augment lib_SOURCES.
43581
43582 2008-05-22  Bruno Haible  <bruno@clisp.org>
43583
43584         * modules/copy-file-tests: New file.
43585         * tests/test-copy-file.sh: New file.
43586         * tests/test-copy-file.c: New file.
43587         * tests/test-copy-file-sameacls.c: New file.
43588
43589 2008-05-22  Eric Blake  <ebb9@byu.net>
43590
43591         Avoid gcc warning.
43592         * tests/test-memcmp.c (main): Pass NULL indirectly.
43593
43594 2008-05-21  Bruno Haible  <bruno@clisp.org>
43595
43596         Add reference doc about ACLs.
43597         * doc/acl-resources.txt: New file.
43598         * doc/acl-cygwin.txt: New file.
43599
43600 2008-05-21  Bruno Haible  <bruno@clisp.org>
43601
43602         Avoid one more warning from gcc.
43603         * lib/vasnprintf.c (IF_LINT): Update comments.
43604         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43605
43606 2008-05-21  Jim Meyering  <meyering@redhat.com>
43607
43608         avoid a warning from gcc
43609         * lib/vasnprintf.c (IF_LINT): Define.
43610         (scale10_round_decimal_long_double):
43611         Use it to avoid a "may be used uninitialized" warning.
43612         (scale10_round_decimal_double): Likewise.
43613
43614 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43615
43616         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43617         declared.
43618
43619 2008-05-20  Bruno Haible  <bruno@clisp.org>
43620
43621         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43622         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43623
43624 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43625
43626         * modules/memcmp-tests: New file.
43627         * tests/test-memcmp.c: New file.
43628
43629 2008-05-19  Bruno Haible  <bruno@clisp.org>
43630
43631         * modules/propername (Notice, configure.ac): Put quoted "..." into
43632         --keyword option.
43633         * lib/propername.h: Update comments accordingly.
43634         Reported by Eric Blake.
43635
43636 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43637
43638         * modules/getpass-gnu (Depends-on): Add fseeko.
43639
43640 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43641
43642         * modules/base64-tests: New file.
43643
43644 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43645
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         * lib/base64.c (base64_decode_ctx): If a decode context structure
43655         was passed in use it to ignore newlines.  If a context structure
43656         was _not_ passed in, continue to treat newlines as garbage (this
43657         is the historical behavior).  Formerly base64_decode.
43658         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43659         takes a decode context structure.
43660         * lib/base64.h (base64_decode): Macro for four-argument calls.
43661         (base64_decode_alloc): Likewise.
43662
43663 2008-05-19  Jim Meyering  <meyering@redhat.com>
43664
43665         avoid a warning from gcc
43666         * lib/trim.c (IF_LINT): Define.
43667         (trim2): Use it to avoid a "may be used uninitialized" warning.
43668
43669         Fix doc typo.
43670         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43671
43672 2008-05-19  Bruno Haible  <bruno@clisp.org>
43673
43674         * doc/glibc-functions/getpass.texi: Document limits of other
43675         implementations.
43676
43677 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43678             Bruno Haible <bruno@clisp.org>
43679
43680         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43681
43682 2008-05-18  Bruno Haible  <bruno@clisp.org>
43683
43684         * modules/propername: New file, from GNU gettext.
43685         * lib/propername.h: New file, from GNU gettext.
43686         * lib/propername.c: New file, from GNU gettext.
43687         * MODULES.html.sh (Internationalization functions): Add propername.
43688
43689 2008-05-16  Jim Meyering  <meyering@redhat.com>
43690             Bruno Haible  <bruno@clisp.org>
43691
43692         Avoid some warnings from "gcc -Wshadow".
43693         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43694
43695 2008-05-15  Eric Blake  <ebb9@byu.net>
43696
43697         Extend previous patch to cygwin 1.7.0.
43698         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43699         fast implementation in cygwin >= 1.7.0.
43700         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43702
43703 2008-05-15  Bruno Haible  <bruno@clisp.org>
43704
43705         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43706         implementation in glibc >= 2.9.
43707         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43709
43710 2008-05-15  Bruno Haible  <bruno@clisp.org>
43711
43712         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43713         (Unicode string functions): Add unilbrk/*.
43714         Reported by Karl Berry.
43715
43716 2008-05-15  Eric Blake  <ebb9@byu.net>
43717
43718         Fix violation of <stdbool.h> replacement in regex.
43719         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43720         * lib/regexec.c (re_search_internal): Likewise.
43721         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43722
43723 2008-05-15  Jim Meyering  <meyering@redhat.com>
43724
43725         avoid distracting test output when git or cvs is not found
43726         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43727         * tests/test-vc-list-files-git.sh: Likewise.
43728
43729 2008-05-15  Eric Blake  <ebb9@byu.net>
43730
43731         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43732         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43733         glibc version.
43734         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43735         * doc/posix-functions/strstr.texi (strstr): Likewise.
43736         * lib/str-two-way.h (MAX): Sychronize with glibc.
43737
43738 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43739
43740         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43741         opr.ctx_type.
43742         (calc_first): Initialize constraint field.
43743         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43744         Fix grammar.
43745         (duplicate_node): Merge constraint field for all node types.
43746         (calc_eclosure_iter): Look at constraint field for all node types.
43747         * lib/regex_internal.c (create_cd_newstate): Don't look at
43748         opr.ctx_type.
43749
43750 2008-05-14  Bruno Haible  <bruno@clisp.org>
43751
43752         Help GCC to do better code generation.
43753         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43754         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43755         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43756         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43757         Declare with attribute 'malloc' if supported.
43758
43759 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43760
43761         use "echo STR|wc -c" rather than unportable "expr length STR"
43762         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43763         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43764
43765 2008-05-14  Jim Meyering  <meyering@redhat.com>
43766
43767         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43768         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43769         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43770         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43771         via Collin Lasse.
43772
43773 2008-05-14  Eric Blake  <ebb9@byu.net>
43774
43775         Avoid quadratic growth in gl_LIBSOURCES.
43776         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43777         Suggested by Bruno Haible.
43778
43779         Test xmemdup0.
43780         * modules/xmemdup0-tests: New file.
43781         * tests/test-xmemdup0.c: Likewise.
43782
43783 2008-05-13  Eric Blake  <ebb9@byu.net>
43784
43785         Split xmemdup0 into its own module.
43786         * modules/xmemdup0: New file.
43787         * lib/xmemdup0.h: Likewise.
43788         * lib/xmemdup0.c: Likewise.
43789         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43790         * lib/xalloc.h (xmemdup0): Remove.
43791         * lib/xmalloc.c (xmemdup0): Likewise.
43792
43793 2008-05-13  Eric Blake  <ebb9@byu.net>
43794             Bruno Haible  <bruno@clisp.org>
43795
43796         Reduce number of forks required during autoconf.
43797         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43798         and gl_LIBSOURCES_DIR.
43799         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43800         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43801         m4_syscmd per file.
43802         <m4_foreach_w>: Move...
43803         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43804
43805 2008-05-13  Eric Blake  <ebb9@byu.net>
43806
43807         * gnulib-tool: Fix various comment typos.
43808
43809 2008-05-12  Bruno Haible  <bruno@clisp.org>
43810
43811         Tailor the linebreaking algorithm.
43812         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43813
43814 2008-05-12  Bruno Haible  <bruno@clisp.org>
43815
43816         Update to Unicode 5.0.0.
43817         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43818         LBP_JV, LBP_JT. Redistribute values.
43819         (unilbrk_table): Change size.
43820         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43821         Unicode TR#14 rev. 22.
43822         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43823         LBP_JV, LBP_JT. Redistribute values.
43824         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43825         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43826         Update.
43827         * lib/unilbrk/lbrkprop1.h: Regenerated.
43828         * lib/unilbrk/lbrkprop2.h: Regenerated.
43829         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43830         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43831         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43832         Likewise.
43833         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43834         Likewise.
43835         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43836         result.
43837         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43838         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43839         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43840         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43841         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43842         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43843
43844 2008-05-11  Bruno Haible  <bruno@clisp.org>
43845
43846         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43847
43848 2008-05-11  Bruno Haible  <bruno@clisp.org>
43849
43850         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43851         * modules/unilbrk/gen-lbrk: New file.
43852
43853 2008-05-11  Bruno Haible  <bruno@clisp.org>
43854
43855         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43856         * m4/sha512.m4 (gl_SHA512): Likewise.
43857
43858 2008-05-11  Jim Meyering  <meyering@redhat.com>
43859
43860         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43861         * modules/crypto/sha256: New file.
43862         * modules/crypto/sha512: Likewise.
43863         * lib/sha256.c: Likewise.
43864         * lib/sha256.h: Likewise.
43865         * lib/sha512.c: Likewise.
43866         * lib/sha512.h: Likewise.
43867         * lib/u64.h: Likewise.
43868         * m4/sha256.m4: Likewise.
43869         * m4/sha512.m4: Likewise.
43870         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43871
43872 2008-05-10  Bruno Haible  <bruno@clisp.org>
43873
43874         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43875         (Input/Output <stdio.h>): Add xprintf.
43876         (Signal handling <signal.h>): Add strsignal.
43877         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43878         (Core language properties): Add func.
43879         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43880         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43881         strings.
43882         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43883         (Input/output): New section.
43884         (File system functions): Add openat-die, stat-macros.
43885         (Networking functions): Add sockets.
43886         (Unicode string functions): Add unictype/*.
43887         (Support for building libraries and executables): Add gperf.
43888         (Support for building documentation): Add agpl-3.0.
43889         (Misc): Add nocrash.
43890
43891 2008-05-10  Bruno Haible  <bruno@clisp.org>
43892
43893         * modules/unictype/gen-ctype: New file.
43894
43895 2008-05-10  Jim Meyering  <meyering@redhat.com>
43896
43897         Make chdir-safer.c more efficient on a system with no symlinks.
43898         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43899         also if ELOOP is zero.  Suggested by Bruno Haible.
43900
43901         Make chdir-safer.c slightly safer.
43902         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43903         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43904
43905         Avoid compile failure on systems without ELOOP (like mingw).
43906         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43907         Reported by Bruno Haible.
43908
43909 2008-05-10  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43912         (is_utf8_encoding): Use a case-insensitive comparison.
43913         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43914         streq.
43915
43916 2008-05-10  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43919         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43920         * lib/unilbrk/ulc-common.h (iconv_string_length,
43921         iconv_string_keeping_offsets): Remove declarations.
43922         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43923         Don't include <iconv.h>, streq.h, xsize.h.
43924         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43925         conversion.
43926         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43927         <iconv.h>, streq.h, xsize.h.
43928         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43929         conversion.
43930         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43931         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43932         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43933         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43934
43935 2008-05-10  Bruno Haible  <bruno@clisp.org>
43936
43937         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43938         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43939
43940         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43941         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43942
43943         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43944         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43945
43946         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43947         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43948
43949         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43950         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43951
43952         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43953         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43954
43955         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43956         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43957
43958         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43959         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43960
43961 2008-05-10  Bruno Haible  <bruno@clisp.org>
43962
43963         Split up 'linebreak' module.
43964         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43965         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43966         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43967         modifications.
43968         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43969         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43970         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43971         lib/linebreak.c.
43972         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43973         lib/linebreak.c.
43974         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43975         lib/linebreak.c.
43976         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43977         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43978         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43979         lib/linebreak.c.
43980         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43981         lib/linebreak.c.
43982         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43983         lib/linebreak.c.
43984         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43985         lib/linebreak.c.
43986         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43987         lib/linebreak.c.
43988         * modules/unilbrk/base: New file.
43989         * modules/unilbrk/tables: New file.
43990         * modules/unilbrk/u8-possible-linebreaks: New file.
43991         * modules/unilbrk/u16-possible-linebreaks: New file.
43992         * modules/unilbrk/u32-possible-linebreaks: New file.
43993         * modules/unilbrk/ulc-common: New file.
43994         * modules/unilbrk/ulc-possible-linebreaks: New file.
43995         * modules/unilbrk/u8-width-linebreaks: New file.
43996         * modules/unilbrk/u16-width-linebreaks: New file.
43997         * modules/unilbrk/u32-width-linebreaks: New file.
43998         * modules/unilbrk/ulc-width-linebreaks: New file.
43999         * lib/linebreak.h: Remove file.
44000         * lib/linebreak.c: Remove file.
44001         * m4/linebreak.m4: Remove file.
44002         * modules/linebreak: Remove file.
44003         * NEWS: Mention the changes.
44004
44005 2008-05-09  Eric Blake  <ebb9@byu.net>
44006
44007         Add xmemdup0.
44008         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44009         implementation.
44010         * lib/xmalloc.c (xmemdup0): New C implementation.
44011
44012 2008-05-08  Bruno Haible  <bruno@clisp.org>
44013
44014         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44015
44016 2008-05-07  Eric Blake  <ebb9@byu.net>
44017
44018         Support cross-compilation of <wctype.h>.
44019         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44020         AC_CACHE_CHECK.
44021
44022 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44023
44024         * build-aux/vc-list-files: Add support for bzr.
44025
44026 2008-05-03  Jim Meyering  <meyering@redhat.com>
44027
44028         avoid failed assertion with tight malloc
44029         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44030
44031 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44032
44033         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44034         are needed from arpa/inet.h.
44035         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44036         Reported by Bruno Haible.
44037
44038 2008-05-02  Jim Meyering  <meyering@redhat.com>
44039
44040         avoid compilation error on FreeBSD 6
44041         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44042
44043 2008-05-01  Jim Meyering  <meyering@redhat.com>
44044
44045         useless-if-before-free: correct --help's exit status description
44046         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44047         for one or more matches, etc.  Reported by Bruno Haible.
44048
44049         vc-list-files: make the stand-alone gnulib test work
44050         * modules/vc-list-files-tests (configure.ac):
44051         Define and AC_SUBST abs_aux_dir.
44052         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44053         $(abs_top_srcdir) to each script and having each of them
44054         duplicate the work of setting PATH, set PATH here, using
44055         the new variable, abs_aux_dir instead.
44056         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44057         * tests/test-vc-list-files-git.sh: Likewise.
44058         Reported by Bruno Haible.
44059
44060 2008-05-01  Bruno Haible  <bruno@clisp.org>
44061
44062         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44063         reallocation. Rename 'done' to 'found_delimiter'.
44064
44065 2008-05-01  Jim Meyering  <meyering@redhat.com>
44066
44067         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44068         * build-aux/vc-list-files: Use `...`, not $(...).
44069
44070 2008-04-30  Jim Meyering  <meyering@redhat.com>
44071
44072         add tests for vc-list-files
44073         * modules/vc-list-files-tests: New module.
44074         * tests/test-vc-list-files-cvs.sh: New file.
44075         * tests/test-vc-list-files-git.sh: New file.
44076
44077         avoid a warning from gcc
44078         * lib/getndelim2.c (IF_LINT): Define.
44079         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44080
44081         vc-list-files: work properly with build-aux/cvsu, too
44082         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44083         to all cvs-based clauses.
44084
44085         vc-list-files: work properly in the CVS+awk case, too
44086         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44087
44088         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44089         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44090         take more than one file argument, so .  Add quotes, just in case $dir
44091         ever contains a shell meta-character.  Prompted by Soren Hansen in
44092         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44093
44094 2008-04-29  Eric Blake  <ebb9@byu.net>
44095
44096         Optimize getndelim2 to use block operations when possible.
44097         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44098         freadseek, and memchr2.
44099         * lib/getndelim2.c (getndelim2): Use them for block reads.
44100
44101 2008-04-29  Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44104         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44105         * modules/inet_ntop (Depends-on): Add extensions.
44106         * modules/inet_pton (Depends-on): Likewise.
44107         Reported by Simon Josefsson.
44108
44109 2008-04-29  Jim Meyering  <meyering@redhat.com>
44110
44111         When the is more than one match in a block, match all of them.
44112         * build-aux/useless-if-before-free: Iterate through each block
44113         until there are no more matches.
44114
44115         Fix broken useless-if-before-free script.
44116         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44117         the expression to match cast of argument to free-like function.
44118
44119 2008-04-29  Eric Blake  <ebb9@byu.net>
44120
44121         Use new header.
44122         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44123
44124 2008-04-29  Jim Meyering  <meyering@redhat.com>
44125
44126         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44127         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44128         by gnulib to exist and to declare e.g., inet_ntop.
44129         Don't include "inet_ntop.h", now removed.
44130
44131         * m4/arpa_inet_h.m4: Remove trailing blanks.
44132
44133 2008-04-29  Eric Blake  <ebb9@byu.net>
44134
44135         Silence valgrind on safe reads beyond potential array bounds.
44136         * lib/rawmemchr.valgrind: New file.
44137         * lib/strchrnul.valgrind: Likewise.
44138         * modules/rawmemchr (Files): Distribute new file.
44139         * modules/strchrnul (Files): Likewise.
44140         Suggested by Bruno Haible.
44141
44142 2008-04-29  Bruno Haible  <bruno@clisp.org>
44143
44144         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44145         (inet_ntop, inet_pton): Change portability warning's wording.
44146         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44147         Invoke gl_CHECK_NEXT_HEADERS.
44148         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44149         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44150         set ARPA_INET_H.
44151         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44152         * modules/arpa_inet (Description): No longer only for systems that
44153         lack it.
44154         (Depends-on): Add include_next.
44155         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44156         HAVE_ARPA_INET_H.
44157
44158 2008-04-29  Jim Meyering  <meyering@redhat.com>
44159
44160         * modules/mkdir (License): Re-license as LGPLv2+.
44161
44162 2008-04-29  Bruno Haible  <bruno@clisp.org>
44163
44164         * modules/rawmemchr (Maintainer): Set to Eric.
44165         * modules/strchrnul (Maintainer): Likewise.
44166
44167 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44168
44169         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44170         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44171
44172         * modules/arpa_inet (arpa/inet.h): Use them.
44173
44174 2008-04-28  Eric Blake  <ebb9@byu.net>
44175
44176         Test getndelim2.
44177         * modules/getndelim2-tests: New file.
44178         * tests/test-getndelim2.c: Likewise.
44179         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44180         stream.
44181         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44182
44183         * MODULES.html.sh: Document new module.
44184
44185 2008-04-20  Bruno Haible  <bruno@clisp.org>
44186
44187         * lib/c-stack.c (die): Use raise.
44188         * modules/c-stack (Depends-on): Add raise.
44189
44190 2008-04-28  Bruno Haible  <bruno@clisp.org>
44191
44192         Expect rpmatch to be declared.
44193         * lib/yesno.c (rpmatch): Remove declaration.
44194
44195         Declare rpmatch.
44196         * lib/stdlib.in.h (rpmatch): New declaration.
44197         * lib/rpmatch.c: Include <stdlib.h> first.
44198         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44199         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44201         HAVE_RPMATCH.
44202         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44204         (Include): Set to <stdlib.h>.
44205         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44206         HAVE_RPMATCH.
44207         * NEWS: Document the change.
44208
44209 2008-04-28  Bruno Haible  <bruno@clisp.org>
44210
44211         Change rpmatch to use nl_langinfo when appropriate.
44212         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44213         (N_): New macro.
44214         (localized_pattern): New function/macro.
44215         (try): Remove match, nomatch arguments. Copy the pattern into safe
44216         memory before caching it.
44217         (rpmatch): Use localized_pattern. Add translator comments.
44218         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44219         Suggested by Eric Blake.
44220         * modules/rpmatch (Depends-on): Add stdbool.
44221
44222 2008-04-28  Eric Blake  <ebb9@byu.net>
44223
44224         Add rawmemchr module, matching glibc.
44225         * modules/string (Makefile.am): New indicator.
44226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44227         * lib/string.in.h (rawmemchr): Declare when appropriate.
44228         * modules/rawmemchr: New file.
44229         * m4/rawmemchr.m4: Likewise.
44230         * lib/rawmemchr.c: Likewise.
44231         * modules/rawmemchr-tests: Likewise.
44232         * tests/test-rawmemchr.c: Likewise.
44233         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44234         module.
44235         * modules/strchrnul (Depends-on): Add rawmemchr.
44236         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44237
44238         Whitespace cleanup.
44239         * tests/test-strchrnul.c: Reindent.
44240         * lib/strchrnul.c: Likewise.
44241
44242         Optimize and test strchrnul.
44243         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44244         * modules/strchrnul-tests: New file.
44245         * tests/test-strchrnul.c: Likewise.
44246
44247         Remove intprops dependency.
44248         * modules/memchr (Depends-on): Remove intprops.
44249         * modules/memrchr (Depends-on): Likewise.
44250         * modules/memchr2 (Depends-on): Likewise.
44251         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44252         * lib/memrchr.c (__memrchr): Likewise.
44253         * lib/memrchr2.c (memchr2): Likewise.
44254         Reported by Simon Josefsson.
44255
44256 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44257
44258         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44259         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44260
44261 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44262
44263         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44264
44265         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44266
44267         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44268
44269         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44270         declarations.
44271         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44272
44273         * m4/inet_pton.m4: Don't check for header files.
44274
44275         * m4/inet_ntop.m4: Don't check for header files.
44276
44277 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44278
44279         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44280         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44281         trigger for cygwin).
44282         Reported by Bruno Haible  <bruno@clisp.org>.
44283
44284 2008-04-28  Bruno Haible  <bruno@clisp.org>
44285
44286         * doc/posix-functions/strdup.texi: Mention mingw problem.
44287
44288 2008-04-27  Bruno Haible  <bruno@clisp.org>
44289
44290         * modules/stat-time-tests (Depends-on): Add sleep.
44291         * tests/test-stat-time.c (force_unlink): New function.
44292         (cleanup): Use it.
44293         (test_mtime): Remove the ctime related tests.
44294         (test_ctime): New function, containing the ctime related tests.
44295         (main): Call test_ctime, except on native Windows platforms.
44296
44297 2008-04-27  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/rpmatch.c (rpmatch): Add some comments.
44300         Reported by James Youngman <jay@gnu.org>.
44301
44302 2008-04-27  Bruno Haible  <bruno@clisp.org>
44303
44304         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44305         quiet NaNs.
44306
44307 2008-04-27  Bruno Haible  <bruno@clisp.org>
44308
44309         Make test-yesno.sh work on mingw.
44310         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44311         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44312         (main): Set stdin to binary mode.
44313         * modules/yesno-tests (Depends-on): Add binary-io.
44314
44315 2008-04-27  Bruno Haible  <bruno@clisp.org>
44316
44317         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44318         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44319         argument that lie outside the IEEE 854 domain.
44320         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44321         (gl_ISFINITE): Use it.
44322         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44323
44324 2008-04-27  Bruno Haible  <bruno@clisp.org>
44325
44326         Allow local renaming in config.h.
44327         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44328
44329 2008-04-27  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/memchr.c (__memchr): Change type of 'i'.
44332         * lib/memchr2.c (memchr2): Likewise.
44333
44334 2008-04-26  Eric Blake  <ebb9@byu.net>
44335         and Bruno Haible  <bruno@clisp.org>
44336
44337         Optimize and test memrchr.
44338         * modules/memrchr (Depends-on): Add intprops.
44339         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44340         * modules/memrchr-tests: New file.
44341         * tests/test-memrchr.c: New file.
44342
44343 2008-04-26  Bruno Haible  <bruno@clisp.org>
44344
44345         Add tentative support for DragonFly BSD.
44346         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44347         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44348         fp.
44349         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44350         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44351         * lib/fpurge.c (fpurge): Likewise.
44352         * lib/freadable.c (freaadable): Likewise.
44353         * lib/freadahead.c (freadahead): Likewise.
44354         * lib/freading.c (freading): Likewise.
44355         * lib/freadptr.c (freadptr): Likewise.
44356         * lib/freadseek.c (freadptrinc): Likewise.
44357         * lib/fseeko.c (fseeko): Likewise.
44358         * lib/fseterr.c (fseterr): Likewise.
44359         * lib/fwritable.c (fwritable): Likewise.
44360         * lib/fwriting.c (fwriting): Likewise.
44361
44362 2008-04-26  Bruno Haible  <bruno@clisp.org>
44363
44364         * lib/stdio-impl.h: New file.
44365         * lib/fbufmode.c: Include stdio-impl.h.
44366         (fbufmode): Use fp_, remove redundant #defines.
44367         * lib/fflush.c: Include stdio-impl.h.
44368         (clear_ungetc_buffer): Remove redundant #defines.
44369         * lib/fpurge.c: Include stdio-impl.h.
44370         (fpurge): Remove redundant #defines.
44371         * lib/freadable.c: Include stdio-impl.h.
44372         (freadable): Remove redundant #defines.
44373         * lib/freadahead.c: Include stdio-impl.h.
44374         (freadahead): Remove redundant #defines.
44375         * lib/freading.c: Include stdio-impl.h.
44376         (freading): Remove redundant #defines.
44377         * lib/freadptr.c: Include stdio-impl.h.
44378         (freadptr): Remove redundant #defines.
44379         * lib/freadseek.c: Include stdio-impl.h.
44380         (freadptrinc): Remove redundant #defines.
44381         * lib/fseeko.c: Include stdio-impl.h.
44382         (rpl_fseeko): Remove redundant #defines.
44383         * lib/fseterr.c: Include stdio-impl.h.
44384         (fseterr): Remove redundant #defines.
44385         * lib/fwritable.c: Include stdio-impl.h.
44386         (fwritable: Remove redundant #defines.
44387         * lib/fwriting.c: Include stdio-impl.h.
44388         (fwriting): Remove redundant #defines.
44389         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44390         * modules/fflush (Files): Likewise.
44391         * modules/fpurge (Files): Likewise.
44392         * modules/freadable (Files): Likewise.
44393         * modules/freadahead (Files): Likewise.
44394         * modules/freading (Files): Likewise.
44395         * modules/freadptr (Files): Likewise.
44396         * modules/freadseek (Files): Likewise.
44397         * modules/fseeko (Files): Likewise.
44398         * modules/fseterr (Files): Likewise.
44399         * modules/fwritable (Files): Likewise.
44400         * modules/fwriting (Files): Likewise.
44401
44402 2008-04-26  Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44405         restore_seek_optimization, update_fpos_cache): New functions, extracted
44406         from rpl_fflush.
44407         (rpl_fflush): Use them.
44408         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44409         (gl_REPLACE_FFLUSH): Use it.
44410
44411 2008-04-26  Bruno Haible  <bruno@clisp.org>
44412
44413         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44414         on Solaris.
44415         * tests/test-xstrtoimax.sh: Likewise.
44416         * tests/test-xstrtoumax.sh: Likewise.
44417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44418
44419 2008-04-26  Bruno Haible  <bruno@clisp.org>
44420
44421         * modules/memchr-tests: New file.
44422         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44423
44424 2008-04-26  Eric Blake  <ebb9@byu.net>
44425             Bruno Haible  <bruno@clisp.org>
44426
44427         * lib/memchr.c: Include intprops.h.
44428         (__memchr): Optimize parallel detection of matching bytes. Rename local
44429         variables. Add explanatory comments.
44430
44431 2008-04-26  Bruno Haible  <bruno@clisp.org>
44432
44433         Fix module 'memchr', broken since 2000-10-28.
44434         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44435
44436 2008-04-26  Bruno Haible  <bruno@clisp.org>
44437
44438         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44439         comments.
44440
44441 2008-04-25  Eric Blake  <ebb9@byu.net>
44442
44443         Use native fstatat on cygwin 1.7.0.
44444         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44445         first.
44446
44447 2008-04-23  Eric Blake  <ebb9@byu.net>
44448
44449         Improve memchr2 performance.
44450         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44451         NUL bytes.
44452         * modules/memchr2 (Depends-on): Use intprops.h.
44453
44454 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44455
44456         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44457         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44458         <blp@cs.stanford.edu>.
44459
44460 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44461
44462         * lib/arpa_inet.in.h: New file.
44463
44464         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44465         (Makefile.am): Sed in substitute header file.
44466
44467         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44468         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44469
44470         * modules/inet_ntop (configure.ac): Use
44471         gl_ARPA_INET_MODULE_INDICATOR.
44472
44473         * modules/inet_pton (configure.ac): Use
44474         gl_ARPA_INET_MODULE_INDICATOR.
44475
44476 2008-04-22  Jim Meyering  <meyering@redhat.com>
44477
44478         * modules/verify (License): Re-license as LGPLv2+.
44479
44480 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44481
44482         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44483         parameter to void* as per POSIX standard (MinGW uses char*).
44484
44485 2008-04-21  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44488         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44489         Define to replacements if REPLACE_ISWCNTRL is 1.
44490         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44491         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44492         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44493         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44494         what it fixes.
44495         * doc/posix-functions/iswalpha.texi: Likewise.
44496         * doc/posix-functions/iswblank.texi: Likewise.
44497         * doc/posix-functions/iswcntrl.texi: Likewise.
44498         * doc/posix-functions/iswdigit.texi: Likewise.
44499         * doc/posix-functions/iswgraph.texi: Likewise.
44500         * doc/posix-functions/iswlower.texi: Likewise.
44501         * doc/posix-functions/iswprint.texi: Likewise.
44502         * doc/posix-functions/iswpunct.texi: Likewise.
44503         * doc/posix-functions/iswspace.texi: Likewise.
44504         * doc/posix-functions/iswupper.texi: Likewise.
44505         * doc/posix-functions/iswxdigit.texi: Likewise.
44506         Reported by Alain Guibert.
44507
44508 2008-04-21  Bruno Haible  <bruno@clisp.org>
44509
44510         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44511         Patch by Alain Guibert.
44512
44513 2008-04-21  Bruno Haible  <bruno@clisp.org>
44514
44515         Fix test failures on mingw.
44516         * tests/test-xstrtol.c (print_no_progname): New function.
44517         (main): Install it in error_print_progname hook.
44518         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44519         * tests/test-xstrtoimax.sh: Likewise.
44520         * tests/test-xstrtoumax.sh: Likewise.
44521
44522 2008-04-21  Bruno Haible  <bruno@clisp.org>
44523
44524         Fix test failure on mingw.
44525         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44526
44527 2008-04-21  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44530         Actually assign a value.
44531
44532 2008-04-20  Bruno Haible  <bruno@clisp.org>
44533
44534         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44535         take 2.
44536         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44537         'canonicalize-lgpl' module is also used.
44538         * lib/canonicalize-lgpl.c: Undo last change.
44539         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44540
44541 2008-04-20  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44544         config.h. Provide _mkdir based fallback for mingw.
44545         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44546         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44547         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44548         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44549         rather than defining mkdir in config.h.
44550         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44551         (gl_SYS_STAT_H_DEFAULTS): New macro.
44552         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44553         HAVE_IO_H any more.
44554         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44555         HAVE_DECL_MKDIR and HAVE_IO_H.
44556
44557 2008-04-20  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/isapipe.c: Port to native Windows platforms.
44560
44561 2008-04-20  Bruno Haible  <bruno@clisp.org>
44562
44563         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44564
44565 2008-04-21  Eric Blake  <ebb9@byu.net>
44566
44567         Work around preprocessors that don't handle UINTMAX_MAX.
44568         * lib/memchr2.c (memchr2): Avoid embedded #if.
44569         Reported by Alain Guibert, fix suggested by Bruno Haible.
44570
44571 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44572
44573         * doc/posix-functions/strftime.texi (strftime): Explain better
44574         Windows incompatibility.  Suggested by Micah Cowan
44575         <micah@cowan.name>.
44576
44577 2008-04-20  Bruno Haible  <bruno@clisp.org>
44578
44579         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44580         unistr/u8-mblen.
44581
44582 2008-04-20  Bruno Haible  <bruno@clisp.org>
44583
44584         Fix test failure on platforms with non-GNU iconv.
44585         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44586         (U_TO_U8): Use it, rather than u16_to_u8.
44587         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44588         units at the end of the input string.
44589         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44590
44591 2008-04-20  Bruno Haible  <bruno@clisp.org>
44592
44593         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44594         when the resulting length is 0.
44595         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44596
44597 2008-04-20  Bruno Haible  <bruno@clisp.org>
44598
44599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44600         works.
44601         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44602
44603 2008-04-20  Bruno Haible  <bruno@clisp.org>
44604
44605         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44606         * modules/tsearch-tests (configure.ac): Test for initstate function.
44607
44608 2008-04-20  Bruno Haible  <bruno@clisp.org>
44609
44610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44611         for nlink_t if missing.
44612         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44613
44614 2008-04-19  Bruno Haible  <bruno@clisp.org>
44615
44616         Work around snprintf bug on Linux libc5.
44617         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44619         gl_SNPRINTF_SIZE1.
44620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44621         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44622         that test failed.
44623         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44624         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44625         * modules/snprintf (Files): Add m4/printf.m4.
44626         * modules/vsnprintf (Files): Likewise.
44627         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44628         * doc/posix-functions/vsnprintf.texi: Likewise.
44629
44630 2008-04-19  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44633         from 0.0058 to less than 10^-7.
44634
44635 2008-04-19  Bruno Haible  <bruno@clisp.org>
44636
44637         Fix rounding when a precision is given.
44638         * lib/vasnprintf.c (is_borderline): New function.
44639         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44640         9...9x.
44641         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44642         %e, %g.
44643         * tests/test-vasprintf-posix.c (test_function): Likewise.
44644         * tests/test-snprintf-posix.h (test_function): Likewise.
44645         * tests/test-sprintf-posix.h (test_function): Likewise.
44646         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44647         * tests/test-printf-posix.h (test_function): Likewise.
44648         * tests/test-printf-posix.output: Update.
44649         Reported by John Darrington <john@darrington.wattle.id.au> via
44650         Ben Pfaff <blp@cs.stanford.edu>.
44651
44652 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44653
44654         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44655         Suggested by Bruno Haible <bruno@clisp.org>.
44656
44657 2008-04-17  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44660         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44661         implementation.
44662         Patch by Bruce Merry <bmerry@gmail.com>.
44663
44664 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44665
44666         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44667         doesn't work under Windows.
44668
44669 2008-04-16  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44672         New macros.
44673         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44674         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44675         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44676         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44677         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44678         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44679         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44680         macros.
44681         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44682         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44683         Northern Sotho, Uighur.
44684
44685 2008-04-16  Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44688         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44689         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44690         Reported by Daniel Bergström <daniel@octocode.com>.
44691
44692 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44693             Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44696         function.
44697         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44698         New functions, mostly extracted from gl_locale_name_default.
44699         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44700
44701 2008-04-16  Eric Blake  <ebb9@byu.net>
44702
44703         Adjust strtod detection to catch glibc 2.7 bug.
44704         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44705         Reported by John Gatewood Ham.
44706
44707 2008-04-16  Bruno Haible  <bruno@clisp.org>
44708
44709         Add tentative support for Linux libc5.
44710         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44711         * lib/fpurge.c (fpurge): Likewise.
44712         * lib/freadable.c (freadable): Likewise.
44713         * lib/freadahead.c (freadahead): Likewise.
44714         * lib/freading.c (freading): Likewise.
44715         * lib/freadptr.c (freadptr): Likewise.
44716         * lib/freadseek.c (freadptrinc): Likewise.
44717         * lib/fseeko.c (rpl_fseeko): Likewise.
44718         * lib/fseterr.c (fseterr): Likewise.
44719         * lib/fwritable.c (fwritable): Likewise.
44720         * lib/fwriting.c (fwriting): Likewise.
44721         Reported by Alain Guibert <alguibert+bts@free.fr>.
44722
44723 2008-04-15  Bruno Haible  <bruno@clisp.org>
44724
44725         * modules/mathl (configure.ac): Define module indicator.
44726
44727 2008-04-15  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/logl.c (logl): Remove unused variables.
44730
44731 2008-04-15  Bruno Haible  <bruno@clisp.org>
44732
44733         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44734         fails.
44735
44736 2008-04-15  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/trim.c (trim2): Fix argument of isspace() macro.
44739
44740 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44741
44742         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44743         to 0.
44744         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44745
44746 2008-04-14  Bruno Haible  <bruno@clisp.org>
44747
44748         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44749         AC_LANG_PROGRAM argument.
44750         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44751         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44753         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44754         * m4/math_h.m4 (gl_MATH_H): Likewise.
44755         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44756         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44757         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44758         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44759         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44760         * m4/regex.m4 (gl_REGEX): Likewise.
44761         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44762         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44764         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44766         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44767         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44768         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44769
44770 2008-04-14  Jim Meyering  <meyering@redhat.com>
44771
44772         test-strtod: fix typos: s/abs/fabs/
44773         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44774
44775 2008-04-13  Bruno Haible  <bruno@clisp.org>
44776
44777         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44778         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44779         module is also used and while not building the reloc-wrapper.
44780
44781 2008-04-13  Bruno Haible  <bruno@clisp.org>
44782
44783         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44784
44785 2008-04-13  Bruno Haible  <bruno@clisp.org>
44786
44787         Fix AIX compilation failure introduced on 2008-04-02.
44788         * tests/test-frexp.c (exp): Undefine before redefining.
44789         * tests/test-frexpl.c (exp): Likewise.
44790
44791 2008-04-13  Bruno Haible  <bruno@clisp.org>
44792
44793         Work around a HP-UX stdio bug.
44794         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44795         * tests/test-ftello.c (main): Likewise.
44796         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44797         * doc/posix-functions/ftello.texi: Likewise.
44798
44799 2008-04-13  Bruno Haible  <bruno@clisp.org>
44800
44801         Make test-signbit pass on HP-UX/hppa.
44802         * tests/test-signbit.c (minus_zerol): New variable.
44803         (test_signbitl): Use it.
44804
44805 2008-04-13  Bruno Haible  <bruno@clisp.org>
44806
44807         Make truncl work on OSF/1 4.0.
44808         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44809         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44810         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44812         HAVE_DECL_TRUNCL.
44813         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44814         HAVE_DECL_TRUNCL.
44815         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44816
44817 2008-04-13  Bruno Haible  <bruno@clisp.org>
44818
44819         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44820
44821 2008-04-13  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44824         expression, so as to avoid HP-UX 11 cc compiler bug.
44825
44826 2008-04-13  Bruno Haible  <bruno@clisp.org>
44827
44828         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44829
44830 2008-04-13  Bruno Haible  <bruno@clisp.org>
44831
44832         * lib/git-merge-changelog.c: Remove empty declaration outside of
44833         functions.
44834
44835 2008-04-13  Bruno Haible  <bruno@clisp.org>
44836
44837         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44838
44839 2008-04-13  Bruno Haible  <bruno@clisp.org>
44840
44841         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44842         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44843         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44844         also if it exists but lacks definitions of the SHUT_* macros.
44845         * modules/sys_socket (Description): Update.
44846         Reported by Elbert Pol <e.pol@chello.nl>.
44847
44848 2008-04-13  Bruno Haible  <bruno@clisp.org>
44849
44850         * lib/localcharset.c (OS2): Don't redefine if already defined.
44851         Reported by Elbert Pol <e.pol@chello.nl>.
44852
44853 2008-04-13  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/binary-io.h [__EMX__]: Include <io.h>.
44856         Reported by Elbert Pol <e.pol@chello.nl>.
44857
44858 2008-04-12  Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/fpucw.h: Enable the definitions also for x86_64.
44861         Needed for NetBSD/x86_64.
44862         Reported by Thomas Klausner <tk@giga.or.at>.
44863
44864 2008-04-12  Bruno Haible  <bruno@clisp.org>
44865
44866         * tests/test-strtod.c: Include isnand.h.
44867         (main): Use isnand instead of isnan.
44868         Reported by Jim Meyering.
44869
44870 2008-04-12  Bruno Haible  <bruno@clisp.org>
44871
44872         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44873         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44874
44875 2008-04-12  Jim Meyering  <meyering@redhat.com>
44876
44877         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44878
44879 2008-04-12  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44882         Reported by Elbert Pol <e.pol@chello.nl>.
44883
44884 2008-04-12  Eric Blake  <ebb9@byu.net>
44885
44886         Work around Solaris 10 math.h bug.
44887         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44888         (gl_MATH_H_DEFAULTS): Set up default.
44889         * modules/math (Makefile.am): Replace new indicators.
44890         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44891         * tests/test-math.c (main): Test this.
44892         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44893         * doc/posix-headers/math.texi (math.h): Mention bug.
44894         Reported by Nelson H. F. Beebe and Jim Meyering.
44895
44896 2008-04-11  Bruno Haible  <bruno@clisp.org>
44897
44898         Adapt to future versions of Apple GCC.
44899         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44900         Reported by Peter O'Gorman <peter@pogma.com>.
44901
44902 2008-04-11  Bruno Haible  <bruno@clisp.org>
44903
44904         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44905
44906 2008-04-11  Bruno Haible  <bruno@clisp.org>
44907
44908         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44909
44910         * modules/getaddrinfo-tests (Makefile.am): Define
44911         test_getaddrinfo_LDADD.
44912
44913 2008-04-11  Bruno Haible  <bruno@clisp.org>
44914
44915         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44916         (init): Fix syntax error.
44917         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44918         is declared.
44919
44920 2008-04-11  Bruno Haible  <bruno@clisp.org>
44921
44922         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44923         * modules/glob (Depends-on): Add stdbool.
44924
44925 2008-04-11  Bruno Haible  <bruno@clisp.org>
44926
44927         * lib/trim.c: Include <string.h>.
44928
44929 2008-04-11  Eric Blake  <ebb9@byu.net>
44930
44931         Avoid compile failure on OS/2.
44932         * lib/regex_internal.h (internal_function): Disable optimization
44933         on OS/2 (__EMX__), where it caused compiler error.
44934         Reported by Elbert Pol.
44935
44936 2008-04-11  Bruno Haible  <bruno@clisp.org>
44937
44938         Flush the standard error stream before aborting. Needed on mingw.
44939         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44940         * tests/test-array_list.c (ASSERT): Likewise.
44941         * tests/test-array_oset.c (ASSERT): Likewise.
44942         * tests/test-avltree_list.c (ASSERT): Likewise.
44943         * tests/test-avltree_oset.c (ASSERT): Likewise.
44944         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44945         * tests/test-binary-io.c (ASSERT): Likewise.
44946         * tests/test-byteswap.c (ASSERT): Likewise.
44947         * tests/test-c-ctype.c (ASSERT): Likewise.
44948         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44949         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44950         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44951         * tests/test-c-strstr.c (ASSERT): Likewise.
44952         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44953         * tests/test-canonicalize.c (ASSERT): Likewise.
44954         * tests/test-carray_list.c (ASSERT): Likewise.
44955         * tests/test-ceilf1.c (ASSERT): Likewise.
44956         * tests/test-ceilf2.c (ASSERT): Likewise.
44957         * tests/test-ceill.c (ASSERT): Likewise.
44958         * tests/test-count-one-bits.c (ASSERT): Likewise.
44959         * tests/test-fbufmode.c (ASSERT): Likewise.
44960         * tests/test-fflush2.c (ASSERT): Likewise.
44961         * tests/test-floorf1.c (ASSERT): Likewise.
44962         * tests/test-floorf2.c (ASSERT): Likewise.
44963         * tests/test-floorl.c (ASSERT): Likewise.
44964         * tests/test-fopen.c (ASSERT): Likewise.
44965         * tests/test-fpending.c (ASSERT): Likewise.
44966         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44967         * tests/test-fpurge.c (ASSERT): Likewise.
44968         * tests/test-freadable.c (ASSERT): Likewise.
44969         * tests/test-freadahead.c (ASSERT): Likewise.
44970         * tests/test-freading.c (ASSERT): Likewise.
44971         * tests/test-freadptr.c (ASSERT): Likewise.
44972         * tests/test-freadptr2.c (ASSERT): Likewise.
44973         * tests/test-freadseek.c (ASSERT): Likewise.
44974         * tests/test-freopen.c (ASSERT): Likewise.
44975         * tests/test-frexp.c (ASSERT): Likewise.
44976         * tests/test-frexpl.c (ASSERT): Likewise.
44977         * tests/test-fseek.c (ASSERT): Likewise.
44978         * tests/test-fseeko.c (ASSERT): Likewise.
44979         * tests/test-fstrcmp.c (ASSERT): Likewise.
44980         * tests/test-ftell.c (ASSERT): Likewise.
44981         * tests/test-ftello.c (ASSERT): Likewise.
44982         * tests/test-func.c (ASSERT): Likewise.
44983         * tests/test-fwritable.c (ASSERT): Likewise.
44984         * tests/test-fwriting.c (ASSERT): Likewise.
44985         * tests/test-getdelim.c (ASSERT): Likewise.
44986         * tests/test-getline.c (ASSERT): Likewise.
44987         * tests/test-i-ring.c (ASSERT): Likewise.
44988         * tests/test-iconv-utf.c (ASSERT): Likewise.
44989         * tests/test-iconv.c (ASSERT): Likewise.
44990         * tests/test-isfinite.c (ASSERT): Likewise.
44991         * tests/test-isnand.c (ASSERT): Likewise.
44992         * tests/test-isnanf.c (ASSERT): Likewise.
44993         * tests/test-isnanl.h (ASSERT): Likewise.
44994         * tests/test-ldexpl.c (ASSERT): Likewise.
44995         * tests/test-linked_list.c (ASSERT): Likewise.
44996         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44997         * tests/test-localename.c (ASSERT): Likewise.
44998         * tests/test-lseek.c (ASSERT): Likewise.
44999         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45000         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45001         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45002         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45003         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45004         * tests/test-mbschr.c (ASSERT): Likewise.
45005         * tests/test-mbscspn.c (ASSERT): Likewise.
45006         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45007         * tests/test-mbspbrk.c (ASSERT): Likewise.
45008         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45009         * tests/test-mbsrchr.c (ASSERT): Likewise.
45010         * tests/test-mbsspn.c (ASSERT): Likewise.
45011         * tests/test-mbsstr1.c (ASSERT): Likewise.
45012         * tests/test-mbsstr2.c (ASSERT): Likewise.
45013         * tests/test-mbsstr3.c (ASSERT): Likewise.
45014         * tests/test-memchr2.c (ASSERT): Likewise.
45015         * tests/test-memmem.c (ASSERT): Likewise.
45016         * tests/test-open.c (ASSERT): Likewise.
45017         * tests/test-printf-frexp.c (ASSERT): Likewise.
45018         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45019         * tests/test-printf-posix.c (ASSERT): Likewise.
45020         * tests/test-quotearg.c (ASSERT): Likewise.
45021         * tests/test-rbtree_list.c (ASSERT): Likewise.
45022         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45023         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45024         * tests/test-round1.c (ASSERT): Likewise.
45025         * tests/test-roundf1.c (ASSERT): Likewise.
45026         * tests/test-roundl.c (ASSERT): Likewise.
45027         * tests/test-signbit.c (ASSERT): Likewise.
45028         * tests/test-sleep.c (ASSERT): Likewise.
45029         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45030         * tests/test-snprintf.c (ASSERT): Likewise.
45031         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45032         * tests/test-stat-time.c (ASSERT): Likewise.
45033         * tests/test-strcasestr.c (ASSERT): Likewise.
45034         * tests/test-strerror.c (ASSERT): Likewise.
45035         * tests/test-striconv.c (ASSERT): Likewise.
45036         * tests/test-striconveh.c (ASSERT): Likewise.
45037         * tests/test-striconveha.c (ASSERT): Likewise.
45038         * tests/test-strsignal.c (ASSERT): Likewise.
45039         * tests/test-strstr.c (ASSERT): Likewise.
45040         * tests/test-strtod.c (ASSERT): Likewise.
45041         * tests/test-trunc1.c (ASSERT): Likewise.
45042         * tests/test-trunc2.c (ASSERT): Likewise.
45043         * tests/test-truncf1.c (ASSERT): Likewise.
45044         * tests/test-truncf2.c (ASSERT): Likewise.
45045         * tests/test-truncl.c (ASSERT): Likewise.
45046         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45047         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45048         * tests/test-vasnprintf.c (ASSERT): Likewise.
45049         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45050         * tests/test-vasprintf.c (ASSERT): Likewise.
45051         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45052         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45053         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45054         * tests/test-vsnprintf.c (ASSERT): Likewise.
45055         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45056         * tests/test-wcwidth.c (ASSERT): Likewise.
45057         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45058         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45059         * tests/test-xvasprintf.c (ASSERT): Likewise.
45060         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45061         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45062         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45063         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45064         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45065         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45066         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45067         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45068         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45069         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45070         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45071         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45072         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45073         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45074         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45075         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45076         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45077         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45078         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45079         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45080         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45081         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45082         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45083         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45084         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45085         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45086         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45087         * tests/unictype/test-combining.c (ASSERT): Likewise.
45088         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45089         * tests/unictype/test-digit.c (ASSERT): Likewise.
45090         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45091         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45092         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45093         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45094         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45095         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45096         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45097         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45098         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45099         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45100         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45101         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45102         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45103         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45104         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45105         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45106         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45107         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45108         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45109         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45110         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45111         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45112         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45113         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45114         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45115         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45116         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45117         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45118         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45119         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45120         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45121         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45122         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45123         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45124         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45125         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45126         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45127         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45128         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45129         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45130         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45131         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45132         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45133         Reported by Eric Blake.
45134
45135 2008-04-11  Bruno Haible  <bruno@clisp.org>
45136
45137         * lib/wchar.in.h: Tweak comment.
45138
45139 2008-04-11  Bruno Haible  <bruno@clisp.org>
45140
45141         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45142         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45143         gl_COMMON.
45144         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45145
45146 2008-04-11  Bruno Haible  <bruno@clisp.org>
45147
45148         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45149
45150 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45151
45152         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45153         of attempting to use non-existing /dev/*random.  Based on patch
45154         from Adam Strzelecki <ono@java.pl> in
45155         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45156
45157 2008-04-08  Bruno Haible  <bruno@clisp.org>
45158
45159         Add tentative support for emx+gcc.
45160         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45161         * lib/fpurge.c (fpurge): Likewise.
45162         * lib/freadable.c (freadable): Likewise.
45163         * lib/freadahead.c (freadahead): Likewise.
45164         * lib/freading.c (freading): Likewise.
45165         * lib/freadptr.c (freadptr): Likewise.
45166         * lib/freadseek.c (freadptrinc): Likewise.
45167         * lib/fseeko.c (rpl_fseeko): Likewise.
45168         * lib/fseterr.c (fseterr): Likewise.
45169         * lib/fwritable.c (fwritable): Likewise.
45170         * lib/fwriting.c (fwriting): Likewise.
45171         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45172
45173 2008-04-09  Eric Blake  <ebb9@byu.net>
45174
45175         Avoid some autoconf warnings.
45176         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45177         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45178         * m4/afs.m4 (gl_AFS): Likewise.
45179         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45180         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45182         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45183         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45184         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45185         (AC_CHECK_DECLS_ONCE): Likewise.
45186         Rename file...
45187         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45188         gnulib-tool requires autoconf 2.59 or better.
45189         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45190
45191 2008-04-08  Eric Blake  <ebb9@byu.net>
45192
45193         Use 'git describe --match' if present (added in git 1.5.5).
45194         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45195         if possible.
45196
45197 2008-04-08  Bruno Haible  <bruno@clisp.org>
45198
45199         Add tentative support for OpenServer.
45200         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45201         _ptr, _cnt.
45202         * lib/fpurge.c (fpurge): Likewise.
45203         * lib/freadable.c (freadable): Likewise.
45204         * lib/freadahead.c (freadahead): Likewise.
45205         * lib/freading.c (freading): Likewise.
45206         * lib/freadptr.c (freadptr): Likewise.
45207         * lib/freadseek.c (freadptrinc): Likewise.
45208         * lib/fseeko.c (rpl_fseeko): Likewise.
45209         * lib/fseterr.c (fseterr): Likewise.
45210         * lib/fwritable.c (fwritable): Likewise.
45211         * lib/fwriting.c (fwriting): Likewise.
45212         Reported by Roger Cornelius <rac@tenzing.org> and
45213         Brian K. White <brian@aljex.com>.
45214
45215 2008-04-06  Jim Meyering  <meyering@redhat.com>
45216
45217         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45218
45219 2008-04-06  Bruno Haible  <bruno@clisp.org>
45220
45221         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45222         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45223         * tests/test-printf-posix.sh: Likewise.
45224         * tests/test-vfprintf-posix.sh: Likewise.
45225         * tests/test-vprintf-posix.sh: Likewise.
45226         * tests/test-xprintf-posix.sh: Likewise.
45227
45228 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45229
45230         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45231         hide error from 'ls', needed on OS/2.
45232         Report by Elbert Pol <elbert.pol@gmail.com>.
45233
45234 2008-04-04  Eric Blake  <ebb9@byu.net>
45235
45236         Make test-fseeko.c failures meaningful.
45237         * tests/test-fseeko.c: Print line number on failure.
45238         * tests/test-fseek.c: Likewise.
45239         Reported by Nelson H. F. Beebe.
45240
45241         Improve strtod bug detection check.
45242         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45243         required for Solaris 10.
45244         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45245
45246 2008-04-04  Bruno Haible  <bruno@clisp.org>
45247
45248         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45249         by m4/setenv.m4.
45250
45251 2008-04-03  Eric Blake  <ebb9@byu.net>
45252
45253         Ensure sane .version contents.
45254         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45255         version string.
45256         * build-aux/git-version-gen: Improve documentation.
45257
45258         Make GNU make output nicer.
45259         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45260         MAKECMDGOALS to enforce message for all command line targets.  Set
45261         srcdir for use in maint.mk.
45262
45263         Another maintainer tweak.
45264         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45265         a target that regenerates version.
45266
45267 2008-04-03  Jim Meyering  <meyering@redhat.com>
45268
45269         vc-list-files: don't cause coreutils "make po-check" failure
45270         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45271
45272 2008-04-03  Eric Blake  <ebb9@byu.net>
45273
45274         Allow VPATH usage of vc-list-files.
45275         * build-aux/vc-list-files (scriptversion): Add timestamp.
45276         (options): Add --help, --version, -C.
45277         (CVS): Support installed cvsu.
45278
45279 2008-04-02  Bruno Haible  <bruno@clisp.org>
45280
45281         Avoid some "statement with no effect" warnings from gcc.
45282         * tests/test-wctype.c (main): Explicitly ignore unused values.
45283         Reported by Jim Meyering.
45284
45285 2008-04-02  Jim Meyering  <meyering@redhat.com>
45286
45287         Avoid some warnings from "gcc -Wshadow".
45288         * tests/test-frexp.c (exp): Define to a different identifier.
45289         * tests/test-frexpl.c (exp): Likewise.
45290
45291 2008-04-03  Jim Meyering  <meyering@redhat.com>
45292
45293         bootstrap: remove dangling *.[ch] symlinks from lib
45294         * build-aux/bootstrap [dangling symlink removal]: Move find's
45295         -depth option to precede all others, to avoid a warning.
45296         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45297
45298 2008-04-02  Bruno Haible  <bruno@clisp.org>
45299
45300         Avoid some warnings from "gcc -Wshadow".
45301         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45302         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45303         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45304         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45305         Reported by Jim Meyering.
45306
45307 2008-04-01  Bruno Haible  <bruno@clisp.org>
45308
45309         Fix test to work on IRIX 6.5 with cc.
45310         * tests/test-math.c (numeric_equal): New function.
45311         (main): Use it.
45312
45313 2008-04-01  Bruno Haible  <bruno@clisp.org>
45314
45315         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45316
45317 2008-04-01  Bruno Haible  <bruno@clisp.org>
45318
45319         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45320         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45321         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45322         (Depends-on): Remove math.
45323
45324         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45325         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45326         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45327         (Depends-on): Remove math.
45328
45329         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45330         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45331         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45332         (Depends-on): Remove math.
45333         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45334         (Depends-on): Remove math.
45335
45336         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45337         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45338         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45339         (Depends-on): Remove math.
45340         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45341         (Depends-on): Remove math.
45342
45343         * tests/test-round1.c: Include nan.h.
45344         (main): Use NaNd instead of NAN.
45345         * modules/round-tests (Files): Add tests/nan.h.
45346
45347         * tests/test-trunc1.c: Include nan.h.
45348         (main): Use NaNd instead of NAN.
45349         * modules/trunc-tests (Files): Add tests/nan.h.
45350
45351         * tests/test-roundf1.c: Include nan.h.
45352         (main): Use NaNf instead of NAN.
45353         * modules/roundf-tests (Files): Add tests/nan.h.
45354
45355         * tests/test-truncf1.c: Include nan.h.
45356         (main): Use NaNf instead of NAN.
45357         * modules/truncf-tests (Files): Add tests/nan.h.
45358
45359         * tests/test-ceilf1.c: Include nan.h.
45360         (main): Use NaNf instead of NAN.
45361         * modules/ceilf-tests (Files): Add tests/nan.h.
45362
45363         * tests/test-floorf1.c: Include nan.h.
45364         (main): Use NaNf instead of NAN.
45365         * modules/floorf-tests (Files): Add tests/nan.h.
45366
45367         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45368         (main): Use NaNf instead of NAN.
45369         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45370
45371         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45372         (main): Use NaNd instead of NAN.
45373         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45374
45375         * tests/test-frexp.c: Include nan.h.
45376         (main): Use NaNd instead of NAN.
45377         * modules/frexp-tests (Files): Add tests/nan.h.
45378
45379         * lib/isnan.c: Don't include <math.h>.
45380         (FUNC): Don't use NAN macro.
45381         * modules/isnand-nolibm (Depends-on): Remove math.
45382         * modules/isnanf-nolibm (Depends-on): Remove math.
45383         * modules/isnanl (Depends-on): Remove math.
45384         * modules/isnanl-nolibm (Depends-on): Remove math.
45385
45386         * tests/nan.h: New file.
45387
45388 2008-04-01  Eric Blake  <ebb9@byu.net>
45389
45390         Fix typos.
45391         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45392         values to be the right type.
45393
45394         For now, cater to gnulib strtod inaccuracies.
45395         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45396         fractional results.  While not as nice from a QoI perspective, it
45397         is a quicker patch than correctly implementing decimal to binary
45398         rounding.
45399
45400 2008-03-31  Eric Blake  <ebb9@byu.net>
45401
45402         Guarantee a definition of NAN.
45403         * lib/math.in.h (NAN): Define if missing.
45404         * tests/test-math.c (main): Test it.
45405         * doc/posix-headers/math.texi (math.h): Document this.
45406         * lib/isnan.c (rpl_isnand): Use it.
45407         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45408         * tests/test-floorf1.c (NaN): Likewise.
45409         * tests/test-frexp.c (NaN): Likewise.
45410         * tests/test-isnand.c (NaN): Likewise.
45411         * tests/test-isnanf.c (NaN): Likewise.
45412         * tests/test-round1.c (NaN): Likewise.
45413         * tests/test-roundf1.c (NaN): Likewise.
45414         * tests/test-snprintf-posix.h (NaN): Likewise.
45415         * tests/test-sprintf-posix.h (NaN): Likewise.
45416         * tests/test-trunc1.c (NaN): Likewise.
45417         * tests/test-truncf1.c (NaN): Likewise.
45418         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45419         * tests/test-vasprintf-posix.c (NaN): Likewise.
45420         * modules/isnand-nolibm (Depends-on): Add math.
45421         * modules/isnanf-nolibm (Depends-on): Likewise.
45422         * modules/isnanl (Depends-on): Likewise.
45423         * modules/isnanl-nolibm (Depends-on): Likewise.
45424         * modules/snprintf-posix-tests (Depends-on): Likewise.
45425         * modules/sprintf-posix-tests (Depends-on): Likewise.
45426         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45427         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45428         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45429         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45430
45431 2008-03-31  Bruno Haible  <bruno@clisp.org>
45432
45433         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45434         * doc/posix-functions/strtod.texi: Likewise.
45435
45436 2008-03-31  Bruno Haible  <bruno@clisp.org>
45437
45438         * tests/test-strtod.c (main): Don't use C99 syntax.
45439
45440 2008-03-31  Bruno Haible  <bruno@clisp.org>
45441
45442         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45443         Reported by Eric Blake.
45444
45445 2008-03-31  Jim Meyering  <meyering@redhat.com>
45446
45447         Don't compare actual signbit return values.
45448         * tests/test-strtod.c (main): Rather, compare only their
45449         zero/non-zero nature.
45450
45451 2008-03-31  Eric Blake  <ebb9@byu.net>
45452
45453         More strtod documentation.
45454         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45455         failures as distinct bugs.
45456
45457 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45458
45459         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45460         Problem reported by Erik Benada in
45461         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45462
45463 2008-03-30  Bruno Haible  <bruno@clisp.org>
45464
45465         * tests/test-strtod.c: Add comments about which assertion fails on which
45466         platform.
45467         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45468
45469 2008-03-30  Eric Blake  <ebb9@byu.net>
45470
45471         Test signbit behavior on zeros.
45472         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45473         (test_signbitd, test_signbitl): Likewise.
45474
45475         More strtod touchups.
45476         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45477         sign of negative underflow, for now.  Use .5, not .1.
45478         * doc/posix-functions/strtod.texi (strtod): Mention these
45479         limitations.
45480         Reported by Jim Meyering.
45481
45482 2008-03-30  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45485         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45486
45487 2008-03-30  Bruno Haible  <bruno@clisp.org>
45488
45489         Avoid failure when attempting to return empty iconv results on some
45490         platforms.
45491         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45492         allocation, don't report ENOMEM when the resulting string is empty.
45493
45494 2008-03-30  Bruno Haible  <bruno@clisp.org>
45495
45496         Fix buffer overrun.
45497         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45498         Don't consider the width for tmp_length. Check count against tmp_length
45499         before doing the padding. Ensure enough allocation during padding.
45500
45501 2008-03-30  Eric Blake  <ebb9@byu.net>
45502
45503         strtod touchups.
45504         * lib/strtod.c (strtod): Avoid compiler warnings.
45505         Reported by Jim Meyering.
45506
45507 2008-03-30  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45510         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45511         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45512         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45513         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45514         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45515         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45516         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45517
45518         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45519         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45520         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45521         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45522         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45523         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45524         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45525         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45526
45527         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45528         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45529         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45530         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45531         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45532         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45533         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45534         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45535
45536         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45537         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45538
45539         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45540         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45541
45542         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45543         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45544
45545         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45547         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45548
45549         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45551         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45552
45553         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45554         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45555         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45556
45557         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45559         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45560
45561         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45562         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45564         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45565         (Depends-on): Add EOVERFLOW.
45566         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45567         (Depends-on): Add EOVERFLOW.
45568         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45569         (Depends-on): Add EOVERFLOW.
45570         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45571         (Depends-on): Add EOVERFLOW.
45572         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45573         (Depends-on): Add EOVERFLOW.
45574         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45575         (Depends-on): Add EOVERFLOW.
45576         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45577         (Depends-on): Add EOVERFLOW.
45578         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45579         (Depends-on): Add EOVERFLOW.
45580
45581         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45583         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45584
45585         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45587         * modules/snprintf (Depends-on): Add EOVERFLOW.
45588
45589         * lib/poll.c (EOVERFLOW): Remove fallback.
45590         * modules/poll (Depends-on): Add EOVERFLOW.
45591
45592         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45593         * modules/getugroups (Depends-on): Add EOVERFLOW.
45594
45595         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45596         * modules/getdelim (Depends-on): Add EOVERFLOW.
45597
45598         * lib/ftell.c (EOVERFLOW): Remove fallback.
45599         * modules/ftell (Depends-on): Add EOVERFLOW.
45600
45601         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45602         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45603         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45604
45605         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45606
45607         * modules/EOVERFLOW-tests: New file.
45608         * tests/test-EOVERFLOW.c: New file.
45609
45610         * modules/EOVERFLOW: New file.
45611         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45612
45613 2008-03-30  Bruno Haible  <bruno@clisp.org>
45614
45615         Fix bug introduced on 2007-06-10.
45616         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45617         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45618
45619 2008-03-30  Bruno Haible  <bruno@clisp.org>
45620
45621         Improve freadseek's efficiency after ungetc.
45622         * lib/freadseek.c: Include freadahead.h.
45623         (freadptrinc): New function, extracted from freadseek.
45624         (freadseek): Use it in a loop. Use freadahead to determine the number
45625         of loop iterations.
45626         * modules/freadseek (Depends-on): Add freadahead.
45627         (configure.ac): Require AC_C_INLINE.
45628
45629 2008-03-30  Bruno Haible  <bruno@clisp.org>
45630
45631         * lib/freadseek.c (freadseek): Don't ignore the return value of
45632         freadptr.
45633
45634 2008-03-29  Eric Blake  <ebb9@byu.net>
45635
45636         Add hex float support.
45637         * modules/strtod (Depends-on): Add c-ctype.
45638         (Link): Mention POW_LIB.
45639         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45640         whitespace between 'e' and exponent.
45641         * tests/test-strtod.c (main): Enable hex float tests.
45642         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45643         now provides.
45644
45645         Document various strtod bugs, with some fixes.
45646         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45647         "-0x", "inf", "nan", and hex constants.
45648         * doc/posix-functions/atof.texi (atof): Likewise.
45649         * modules/stdlib (Makefile.am): Support strtod.
45650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45651         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45652         detect additional strtod bugs.
45653         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45654         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45655         bool where appropriate.  Parse 'inf' and 'nan'.
45656         * tests/test-strtod.c: New file.
45657         * modules/strtod (Depends-on): Add stdbool, stdlib.
45658         (configure.ac): Turn on module indicator.
45659         * modules/strtod-tests: New module.
45660
45661 2008-03-29  Eric Blake  <ebb9@byu.net>
45662
45663         Fix ftell on mingw.
45664         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45665         * modules/ftell-tests (Depends-on): Add binary-io.
45666         * modules/ftello-tests (Depends-on): Likewise.
45667         * tests/test-ftell.c (main): Enhance test to cover behavior after
45668         ungetc.  Enforce binary mode.
45669         * tests/test-ftello.c (main): Likewise.
45670
45671         Pass test-freadseek on cygwin.
45672         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45673         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45674         ungetc buffer.
45675
45676         * tests/test-fflush2.c (main): Fix typo.
45677
45678 2008-03-29  Bruno Haible  <bruno@clisp.org>
45679
45680         * tests/test-fflush2.c (main): Temporarily disable the contents of
45681         this test.
45682         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45683         Reported by Eric Blake.
45684
45685 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45686
45687         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45688         (GC_SHA224_DIGEST_SIZE): Add.
45689
45690         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45691         (gc_hash_digest_length): Likewise.
45692         (gc_hash_buffer): Likewise.
45693
45694 2008-03-25  Bruno Haible  <bruno@clisp.org>
45695
45696         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45697         detail which gettext release to use.
45698         Reported by Simon Josefsson.
45699
45700 2008-03-26  Jim Meyering  <meyering@redhat.com>
45701
45702         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45703         * modules/gnumakefile (clean-GNUmakefile): Also, use
45704         test ... && ... || : syntax rather than if-then ... fi.
45705
45706         gnumakefile: Don't double-quote-expand $(VPATH) value.
45707         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45708
45709 2008-03-24  Eric Blake  <ebb9@byu.net>
45710
45711         Alter GNUmakefile to install into top directory.
45712         * modules/maintainer-makefile: Split, and add dependency...
45713         * modules/gnumakefile: to this new module.
45714         * build-aux/GNUmakefile: Move...
45715         * top/GNUmakefile: ...here.
45716         * build-aux/maint.mk: Move...
45717         * top/maint.mk: ...here.
45718         * MODULES.html.sh (Support for maintaining...): Document new
45719         module.
45720
45721 2008-03-23  Bruno Haible  <bruno@clisp.org>
45722
45723         * gnulib-tool: New options --vc-files, --no-vc-files.
45724         (func_usage): Document them.
45725         (vc_files): New variable.
45726         (func_import): Consider vc_files.
45727         (func_create_testdir): Set vc_files to empty.
45728         Suggested by Jim Meyering and Karl Berry.
45729
45730 2008-03-23  Bruno Haible  <bruno@clisp.org>
45731
45732         Fix regex compilation error on HP-UX 11.
45733         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45734         * modules/regex (Files): Add m4/mbstate_t.m4.
45735         Reported by Ton Voon <ton.voon@altinity.com>.
45736
45737 2008-03-23  Bruno Haible  <bruno@clisp.org>
45738
45739         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45740
45741 2008-03-23  Eric Blake  <ebb9@byu.net>
45742             Bruno Haible  <bruno@clisp.org>
45743
45744         Install files from top/ in the destination directory.
45745         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45746         augmentation also for the files from top/.
45747         (func_import, func_create_testdir): Rewrite file names:
45748         top/filename -> filename.
45749
45750 2008-03-23  Bruno Haible  <bruno@clisp.org>
45751
45752         Tweak "gnulib --version" output.
45753         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45754
45755 2008-03-23  Bruno Haible  <bruno@clisp.org>
45756
45757         Tweak "gnulib --version" output.
45758         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45759         rather than contents of ChangeLog, when possible.
45760
45761 2008-03-21  Eric Blake  <ebb9@byu.net>
45762
45763         More --version tweaks.
45764         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45765         date of last ChangeLog entry.
45766
45767 2008-03-21  Jim Meyering  <meyering@redhat.com>
45768
45769         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45770
45771 2008-03-20  Eric Blake  <ebb9@byu.net>
45772
45773         VPATH fix.
45774         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45775
45776 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45777
45778         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45779         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45780
45781 2008-03-20  Eric Blake  <ebb9@byu.net>
45782
45783         Sync GNUmakefile with coreutils.
45784         * build-aux/GNUmakefile (have-Makefile): Rename...
45785         (_have-Makefile): ...to this, for namespace consideration.
45786         (GNUmakefile.cfg): Include, if present.
45787         (_autoreconf): Define a default.
45788         (_is-dist-target): New rule for rebuilds to pick up intra-release
45789         version.
45790         (maint-cfg.mk): Rename...
45791         (cfg.mk): ...to this.
45792
45793 2008-03-18  Jim Meyering  <meyering@redhat.com>
45794
45795         New script and module: mktempd
45796         * MODULES.html.sh (maint+release support): Add mktempd.
45797         * build-aux/mktempd: New file.
45798         * modules/mktempd: New file.
45799
45800 2008-03-15  Jim Meyering  <meyering@redhat.com>
45801
45802         Undo last change.
45803         * lib/sha1.c, lib/md5.c: 63 != ~63.
45804         Reported by Andreas Schwab.
45805
45806         sha1.c, md5.c: Hoist a redundant expression.
45807         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45808         "ctx->buflen" only once, before calling *_process_block.
45809         * lib/md5.c (md5_process_bytes): Likewise.
45810
45811 2008-03-14  Eric Blake  <ebb9@byu.net>
45812
45813         Bump copyright year in files generated by gnulib-tool.
45814         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45815         gnulib-tool, rather than hard-coding it.
45816
45817         Fix 'gnulib-tool --version' output to work with git.
45818         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45819         (startup): ...here.
45820         (func_version): Use it to invoke git-version-gen, rather than
45821         relying on CVS keyword expansion.  Modernize wording.
45822         (cvsdatestamp, last_checkin_date, version): Kill unused
45823         variables.
45824
45825 2008-03-12  Jim Meyering  <meyering@redhat.com>
45826
45827         Recognize optional cast of the argument to free.
45828         * build-aux/useless-if-before-free: Update regexps.
45829
45830         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45831
45832 2008-03-11  Bruno Haible  <bruno@clisp.org>
45833
45834         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45835         by a single package.
45836         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45837         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45838         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45839         Reported by Sam Steingold <sds@gnu.org>.
45840
45841 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45842
45843         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45844         repositories.
45845
45846 2008-03-11  Bruno Haible  <bruno@clisp.org>
45847
45848         Avoid conflicts between local macro definitions.
45849         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45850         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45851
45852 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45853             Bruno Haible  <bruno@clisp.org>
45854
45855         Make va_copy work with some version of xlc on AIX 5.1.
45856         * lib/stdarg.in.h: New file.
45857         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45858         On AIX, use a <stdarg.h> file substitute.
45859         * modules/stdarg (Files): Add lib/stdarg.in.h.
45860         (Depends-on): Add include_next.
45861         (Makefile.am): Build a stdarg.h substitute if requested.
45862         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45863
45864 2008-03-10  Bruno Haible  <bruno@clisp.org>
45865
45866         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45868         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45869
45870 2008-03-10  Bruno Haible  <bruno@clisp.org>
45871
45872         * modules/stdlib (Depends-on): Add include_next, remove
45873         absolute-header.
45874
45875 2008-03-09  Bruno Haible  <bruno@clisp.org>
45876
45877         * lib/freadahead.h (freadahead): Document more precisely.
45878         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45879         the sum of both buffer sizes.
45880         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45881         * NEWS: Document the change.
45882
45883 2008-03-09  Bruno Haible  <bruno@clisp.org>
45884
45885         Extend freadptr to return also the buffer size.
45886         * lib/freadptr.h (freadptr): Add sizep argument.
45887         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45888         (freadptr): Add sizep argument. Determine buffer size like freadahead
45889         does.
45890         * tests/test-freadptr.c: Don't include freadahead.h.
45891         (main): Adapt for new calling convention of freadptr.
45892         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45893         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45894         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45895         tests/test-freadptr2.sh.
45896         (Depends): Remove freadahead.
45897         (TESTS): Add test-freadptr2.sh.
45898         (check_PROGRAMS): Add test-freadptr2.
45899
45900 2008-03-09  Bruno Haible  <bruno@clisp.org>
45901
45902         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45903         Report and solution by Simon Josefsson.
45904
45905 2008-03-06  Bruno Haible  <bruno@clisp.org>
45906
45907         Make fflush after ungetc work on BSD platforms.
45908         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45909         * tests/test-fflush2.c: New file.
45910         * tests/test-fflush2.sh: New file.
45911         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45912         tests/test-fflush2.c.
45913         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45914         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45915
45916 2008-03-06  Eric Blake  <ebb9@byu.net>
45917
45918         Likewise for ftello.
45919         * modules/ftello (Dependencies): Add extensions.
45920         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45921
45922 2008-03-06  Bruno Haible  <bruno@clisp.org>
45923
45924         * modules/fseeko (Dependencies): Add extensions.
45925         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45926         Needed on glibc systems.
45927
45928 2008-03-06  Bruno Haible  <bruno@clisp.org>
45929
45930         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45931         email address.
45932         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45933
45934 2008-03-06  Bruno Haible  <bruno@clisp.org>
45935
45936         * users.txt: Add libgnupdf.
45937
45938 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45939
45940         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45941         (Header File Substitutes, Function Substitutes,
45942         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45943         (Build robot for gnulib): Fix typo.
45944
45945 2008-03-06  Bruno Haible  <bruno@clisp.org>
45946
45947         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45948         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45949
45950 2008-03-06  Bruno Haible  <bruno@clisp.org>
45951
45952         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45953         * doc/gnulib.texi: Include it.
45954
45955 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45956
45957         * modules/func (License): Change license to unlimited; there was
45958         no LGPL parts in the module anyway.
45959
45960 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45961
45962         * modules/__func__: Renamed to modules/func.
45963         * modules/__func__-tests: Renamed to modules/func-tests.
45964         * tests/test-__func__.c: Renamed to tests/test-func.c.
45965         * m4/__func__.m4: Renamed to m4/func.m4.
45966         * doc/gnulib.texi (__func__): Section renamed to func.
45967         Suggested by Eric Blake <ebb9@byu.net>.
45968
45969 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45970
45971         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45972         about __func__.  Make example self-contained.  Suggested by Eric
45973         Blake <ebb9@byu.net>.
45974
45975         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45976         Suggested by Eric Blake <ebb9@byu.net>.
45977
45978 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45979
45980         * modules/__func__: New file.
45981         * modules/__func__-tests: New file.
45982         * tests/test-__func__.c: New file.
45983         * m4/__func__.m4: New file.
45984         * doc/gnulib.texi (__func__): Document __func__ module.
45985
45986 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45987
45988         * modules/byteswap (License): Re-license as LGPLv2+.
45989
45990 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45991
45992         * doc/Makefile: Add pdf target.
45993
45994 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45995
45996         * modules/inline (License): Use 'unlimited', since there are only
45997         *.m4 files in this module.
45998
45999 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46000             Bruno Haible  <bruno@clisp.org>
46001
46002         Add support for HP C 7.1 on OpenVMS 8.3.
46003         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46004
46005 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46006
46007         Update VMS specifics.
46008         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46009
46010 2008-03-02  Jim Meyering  <meyering@redhat.com>
46011
46012         Remove the last dependency on the "free" module.
46013         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46014         Reported by Bob Proulx.
46015
46016         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46017
46018         Remove useless "if" tests before free.  Deprecate "free" module.
46019         * doc/posix-functions/free.texi: Mention that this
46020         module is no longer useful.
46021         * modules/free (Notice): Say this module is obsolete.
46022         * modules/readutmp (Depends-on): Remove free.
46023         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46024         * lib/putenv.c (putenv): Likewise.
46025         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46026         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46027         * tests/test-c-strcasestr.c (main): Likewise.
46028         * tests/test-c-strstr.c (main): Likewise.
46029         * tests/test-mbscasestr1.c (main): Likewise.
46030         * tests/test-mbscasestr2.c (main): Likewise.
46031         * tests/test-mbsstr1.c (main): Likewise.
46032         * tests/test-mbsstr2.c (main): Likewise.
46033         * tests/test-memmem.c (main): Likewise.
46034         * tests/test-strcasestr.c (main): Likewise.
46035         * tests/test-striconv.c (main): Likewise.
46036         * tests/test-striconveh.c (main): Likewise.
46037         * tests/test-striconveha.c (main): Likewise.
46038         * tests/test-strstr.c (main): Likewise.
46039
46040         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46041
46042         bootstrap: sync from coreutils again
46043         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46044
46045 2008-03-01  Jim Meyering  <meyering@redhat.com>
46046
46047         bootstrap: sync from coreutils
46048         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46049         also when the target doesn't exist.
46050
46051 2008-03-01  Eric Blake  <ebb9@byu.net>
46052
46053         Fix bugs in last patch.
46054         * lib/memchr2.c (memchr2): Fix typo.
46055         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46056         extension.
46057         Reported by Bruce Korb.
46058
46059         New module 'memchr2'.
46060         * modules/memchr2: New file.
46061         * modules/memchr2-tests: Likewise.
46062         * lib/memchr2.h: Likewise.
46063         * lib/memchr2.c: Likewise, based on memchr.c.
46064         * tests/test-memchr2.c: New test.
46065         * MODULES.html.sh (String handling): Add memchr2.
46066
46067 2008-02-29  Bruno Haible  <bruno@clisp.org>
46068
46069         * modules/freadseek-tests: New file.
46070         * tests/test-freadseek.sh: New file.
46071         * tests/test-freadseek.c: New file.
46072
46073         New module 'freadseek'.
46074         * modules/freadseek: New file.
46075         * lib/freadseek.h: New file.
46076         * lib/freadseek.c: New file.
46077         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46078
46079 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46080
46081         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46082         wydawca.
46083
46084         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46085         program_invocation_name and program_invocation_short_name are
46086         present.
46087
46088 2008-02-28  Bruno Haible  <bruno@clisp.org>
46089
46090         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46091         * tests/test-freadptr.sh: Also test non-seekable stdin.
46092
46093 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46094
46095         * build-aux/bootstrap (source_base, m4_base)
46096         (doc_base, tests_base): New variables.
46097         (gnulib_tool_options): Do not hardcode base directories, use
46098         the above variables instead.
46099
46100 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46101
46102         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46103
46104 2008-02-28  Bruno Haible  <bruno@clisp.org>
46105
46106         * modules/freadptr-tests: New file.
46107         * tests/test-freadptr.sh: New file.
46108         * tests/test-freadptr.c: New file.
46109
46110         New module 'freadptr'.
46111         * modules/freadptr: New file.
46112         * lib/freadptr.h: New file.
46113         * lib/freadptr.c: New file.
46114         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46115
46116 2008-02-26  Karl Berry  <karl@freefriends.org>
46117
46118         Sync from Libtool:
46119         * libltdl/argz.c (argz_add, argz_count): New functions.
46120         * libltdl/argz.in.h: Declare them.
46121         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46122
46123 2008-02-22  Bruno Haible  <bruno@clisp.org>
46124
46125         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46126         is a pointer type.  Needed for HP-UX 10.
46127         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46128         * doc/posix-functions/gmtime_r.texi: Likewise.
46129         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46130
46131 2008-02-24  Bruno Haible  <bruno@clisp.org>
46132
46133         * modules/environ-tests: New file.
46134         * tests/test-environ.c: New file.
46135
46136         New module 'environ'.
46137         * modules/environ: New file.
46138         * lib/unistd.in.h (environ): New declaration.
46139         * m4/environ.m4: New file.
46140         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46141         after use.
46142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46143         HAVE_DECL_ENVIRON.
46144         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46145         HAVE_DECL_ENVIRON.
46146         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46147         wrong claim that 'environ' is missing on some systems.
46148         * modules/execute (Depends-on): Add environ.
46149         * lib/execute.c (environ): Remove fallback declaration.
46150         * modules/pipe (Depends-on): Add environ.
46151         * lib/pipe.c (environ): Remove fallback declaration.
46152         * modules/setenv (Depends-on): Add environ.
46153         * lib/setenv.c (environ): Remove fallback declaration.
46154         * modules/unsetenv (Depends-on): Add environ.
46155         * lib/unsetenv.c (environ): Remove fallback declaration.
46156         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46157         m4/environ.m4.
46158         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46159         (gl_PREREQ_UNSETENV): Likewise.
46160
46161 2008-02-24  Bruno Haible  <bruno@clisp.org>
46162
46163         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46164
46165 2008-02-20  Bob Proulx  <bob@proulx.com>
46166
46167         Enable use of older two part flavor 'git describe'.
46168         * build-aux/git-version-gen: If using the older two part flavor of
46169         git version then recreate the third part now present in the
46170         newer three part flavor of git describe.
46171
46172 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46173
46174         * lib/fts.c (fts_build): Typo correction to comment.
46175
46176 2008-02-17  Bruno Haible  <bruno@clisp.org>
46177
46178         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46179         generating no-op conflicts.
46180
46181 2008-02-17  Bruno Haible  <bruno@clisp.org>
46182
46183         Speed up by 10%.
46184         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46185         result_entries, rather than an index-based loop.
46186
46187 2008-02-17  Bruno Haible  <bruno@clisp.org>
46188
46189         Speed up by 25%.
46190         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46191         'hashcode_cached'.
46192         (entry_create): New function.
46193         (entry_hashcode): Use the cached hashcode if possible.
46194         (read_changelog_file, try_split_merged_entry): Use entry_create.
46195
46196 2008-02-17  Bruno Haible  <bruno@clisp.org>
46197
46198         Speed up from O(n^2) to O(n) for long ChangeLog files.
46199         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46200         (read_changelog_file): Change implementation of entries_reversed list
46201         to rbtreehash.
46202         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46203
46204 2008-02-17  Bruno Haible  <bruno@clisp.org>
46205
46206         New option --split-merged-entry.
46207         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46208         (find_paragraph_end, try_split_merged_entry): New functions.
46209         (long_options): Add option --split-merged-entry.
46210         (usage): Document option --split-merged-entry.
46211         (main): Implement option --split-merged-entry.
46212         Reported by Eric Blake.
46213
46214 2008-02-17  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/git-merge-changelog.c: Include c-strstr.h.
46217         (main): Support the "git pull --rebase" situation.
46218         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46219         Reported by Eric Blake.
46220
46221 2008-02-16  Eric Blake  <ebb9@byu.net>
46222
46223         Avoid doubling \ in common case of "c-maybe" quoting style.
46224         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46225         eliding outer quotes.
46226         * lib/quotearg.h: Document this.
46227         * tests/test-quotearg.c (result_strings, inputs, results_g)
46228         (flag_results, locale_results): Test it by adding a new string to
46229         each test group.
46230         (compare_strings): Test new string.
46231
46232 2008-02-13  Eric Blake  <ebb9@byu.net>
46233
46234         Avoid trigraph quoting in default output.
46235         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46236         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46237         unless explicitly requested.
46238         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46239
46240 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46241
46242         Don't rely on signed integer overflowing to negative value.
46243         * lib/getugroups.c (getugroups): Include <limits.h>.
46244         Instead, compare against INT_MAX, and increment only if the test passes.
46245
46246 2008-02-13  Jim Meyering  <meyering@redhat.com>
46247         and Eric Blake  <ebb9@byu.net>
46248
46249         Avoid shadowing warning and compile errors on Linux.
46250         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46251         forwarding macros on Linux.
46252         (dcgettext): Define a stub, for Linux.
46253         (results_g, main): Avoid warnings.
46254
46255 2008-02-12  Eric Blake  <ebb9@byu.net>
46256
46257         Silence warning in last patch.
46258         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46259
46260         Quotearg part 4: add tests, fix c-maybe colon quoting.
46261         * lib/quotearg.h: Improve documentation.
46262         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46263         escapes when adding outer quotes.  When quoting trigraphs, use
46264         valid C notation.  When quoting NUL, omit extra characters if next
46265         character is not digit.  Alter prototype.
46266         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46267         callers.
46268         * modules/quotearg-tests: New module.
46269         * tests/test-quotearg.c: New test.
46270
46271 2008-02-07  Eric Blake  <ebb9@byu.net>
46272
46273         Quotearg part 3: add flag to control outer quote elision.
46274         * lib/quotearg.h (c_maybe_quoting_style): New style.
46275         (enum quoting_flags): Better documentation of flags.
46276         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46277         c-maybe style.
46278         (quotearg_buffer_restyled): Handle new flag to elide outer
46279         quotes.
46280
46281         Quotearg part 2: add flag that can control NUL elision.
46282         * lib/quotearg.h (set_quoting_flags): New prototype.
46283         * lib/quotearg.c (struct quoting_options): Add flag field.
46284         (set_quoting_flags): New function.
46285         (quotearg_buffer_restyled): Add flags parameter.
46286         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46287         (quotearg_n_options): Set the flag, since length cannot be
46288         returned.
46289         (quoting_options_from_style): Default flags correctly.
46290
46291         Quotearg part 1: more wrappers, restore quotearg_char state.
46292         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46293         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46294         (quotearg_colon_mem): New wrappers.
46295         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46296         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46297         functions.
46298         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46299         (quotearg_colon_mem): New functions.
46300
46301 2008-02-11  Bruno Haible  <bruno@clisp.org>
46302
46303         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46304         library in the current directory: it does not work with parallel make.
46305         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46306
46307 2008-02-11  Bruno Haible  <bruno@clisp.org>
46308
46309         * .gitattributes: New file.
46310
46311 2008-02-11  Jim Meyering  <meyering@redhat.com>
46312
46313         useless-if-before-free: Fix reversed exit values.
46314         * build-aux/useless-if-before-free: Use correct values
46315         for EXIT_MATCH and EXIT_NO_MATCH.
46316
46317         * build-aux/useless-if-before-free: Close stdout carefully.
46318
46319 2008-02-10  Bruno Haible  <bruno@clisp.org>
46320
46321         New module 'git-merge-changelog'.
46322         * modules/git-merge-changelog: New file.
46323         * lib/git-merge-changelog.c: New file.
46324
46325 2008-02-10  Jim Meyering  <meyering@redhat.com>
46326
46327         useless-if-before-free: New option: --list (-l).
46328
46329         useless-if-before-free: Don't exit immediately upon open failure.
46330         * build-aux/useless-if-before-free: Exit 2 for errors.
46331         Upon failure to open a file, don't exit immediately.
46332         Rather, just warn and continue with any remaining files.
46333
46334 2008-02-10  Bruno Haible  <bruno@clisp.org>
46335
46336         New abstract list operation 'node_set_value'.
46337         * lib/gl_list.h (gl_list_node_set_value): New function.
46338         (struct gl_list_implementation): New field node_set_value.
46339         * lib/gl_list.c (gl_list_node_set_value): New function.
46340         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46341         (gl_array_list_implementation): Update.
46342         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46343         (gl_carray_list_implementation): Update.
46344         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46345         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46346         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46347         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46348         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46349         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46350         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46351         Update.
46352         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46353         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46354         (gl_sublist_list_implementation): Update.
46355
46356 2008-02-10  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46359         Needed when ELEMENT is #defined to 'some_type *'.
46360
46361 2008-02-10  Jim Meyering  <meyering@redhat.com>
46362
46363         New script and module: useless-if-before-free
46364         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46365         * build-aux/useless-if-before-free: New file.
46366         * modules/useless-if-before-free: New file.
46367
46368         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46369
46370         xstrtol_error: Fix typo.
46371         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46372         s/exit_failure/exit_status/.
46373
46374 2008-02-09  Jim Meyering  <meyering@redhat.com>
46375
46376         New script and module: gitlog-to-changelog
46377         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46378         * modules/gitlog-to-changelog: New file.
46379         * build-aux/gitlog-to-changelog: New file.
46380
46381 2008-02-08  Jim Meyering  <meyering@redhat.com>
46382
46383         Avoid two "parameter unused" warnings.
46384         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46385         Mark "st" as used.
46386
46387         Use "git COMMAND", not "git-COMMAND".
46388         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46389         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46390         * build-aux/git-version-gen: Use "git status", not "git-status".
46391
46392 2008-02-07  Bruno Haible  <bruno@clisp.org>
46393
46394         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46395         Avoids a crash on Windows Vista.
46396         Reported by Adam Strzelecki <ono@java.pl> via
46397         Simon Josefsson <simon@josefsson.org>.
46398
46399 2008-02-06  Bruno Haible  <bruno@clisp.org>
46400
46401         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46402         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46403         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46405         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46407         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46408         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46411         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46416         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46417         left-adjust flag.
46418         * tests/test-snprintf-posix.h (test_function): Likewise.
46419         * tests/test-sprintf-posix.h (test_function): Likewise.
46420         * tests/test-vasprintf-posix.c (test_function): Likewise.
46421         * doc/posix-functions/fprintf.texi: Update.
46422         * doc/posix-functions/printf.texi: Update.
46423         * doc/posix-functions/snprintf.texi: Update.
46424         * doc/posix-functions/sprintf.texi: Update.
46425         * doc/posix-functions/vfprintf.texi: Update.
46426         * doc/posix-functions/vprintf.texi: Update.
46427         * doc/posix-functions/vsnprintf.texi: Update.
46428         * doc/posix-functions/vsprintf.texi: Update.
46429         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46430
46431 2008-02-06  Bruno Haible  <bruno@clisp.org>
46432
46433         Fix bug introduced on 2008-01-26.
46434         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46435
46436 2008-02-06  Bruno Haible  <bruno@clisp.org>
46437
46438         Fix bug introduced on 2007-06-10.
46439         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46440         !NEED_PRINTF_FLAG_ZERO.
46441
46442 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46443
46444         getloadavg: use libperfstat on AIX5
46445         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46446
46447 2008-02-03  Bruno Haible  <bruno@clisp.org>
46448
46449         * lib/diffseq.h: Add comments about required #includes.
46450         Reported by Michael Biggs <gnulib@doubleplum.net>.
46451
46452 2008-02-01  Bruno Haible  <bruno@clisp.org>
46453
46454         * users.txt: Add gnuit.
46455
46456 2008-01-31  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/md4.c (set_uint32): Mark as inline.
46459         * lib/md5.c (set_uint32): Likewise.
46460         * lib/sha1.c (set_uint32): Likewise.
46461         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46462         * m4/md5.m4 (gl_MD5): Likewise.
46463         * m4/sha1.m4 (gl_SHA1): Likewise.
46464
46465 2008-01-31  Jim Meyering  <meyering@redhat.com>
46466
46467         Use "sizeof VAR", rather than a literal "4".
46468         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46469         * lib/md4.c (md4_read_ctx): Likewise.
46470         * lib/sha1.c (sha1_read_ctx): Likewise.
46471
46472 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46473
46474         * tests/test-sha1.c: New file, based on test-md5.c.
46475
46476         * modules/crypto/sha1-tests: New file.
46477
46478 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46479
46480         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46481
46482 2008-01-31  Jim Meyering  <meyering@redhat.com>
46483
46484         Prefer "sizeof v" over the equivalent "4".
46485         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46486         * lib/md5.c (set_uint32): Likewise.
46487         * lib/sha1.c (set_uint32): Likewise.
46488
46489 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46490
46491         * lib/sha1.c (set_uint32): Mark function as static.
46492
46493 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46494
46495         md2: clarify comments to say that alignment is not required.
46496         * lib/md2.h: Remove warning about alignment in comment.
46497         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46498         never been required.
46499
46500 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46501
46502         md4: adapt alignment constraint fix from sha1.
46503         * lib/md4.c (set_uint32): New function, from sha1.c
46504         (md4_read_ctx): Use it.
46505         (md4_finish_ctx): Doc fix.
46506         * lib/md4.h: Doc fix.
46507
46508 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46509
46510         md5: adapt alignment constraint fix from sha1.
46511         * lib/md5.c (set_uint32): New function, from sha1.c
46512         (md5_read_ctx): Use it.
46513         (md5_finish_ctx): Doc fix.
46514         * lib/md5.h: Doc fix.
46515
46516 2008-01-30  Peter Palfrader  <weasel@debian.org>
46517
46518         sha1: remove the result buffer alignment constraint
46519         * lib/sha1.c (set_uint32): New function.
46520         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46521         constraint.
46522         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46523         * lib/sha1.h: Likewise.
46524
46525 2008-01-30  Andreas Schwab  <schwab@suse.de>
46526             Bruno Haible  <bruno@clisp.org>
46527
46528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46529         correct definition of LDBL_MIN_EXP.
46530
46531 2008-01-30  Karl Berry  <karl@gnu.org>
46532
46533         * config/srclist-update: try to preserve x bit on updates.
46534         * config/srclistvars.sh: update for karl.
46535
46536 2008-01-29  Jim Meyering  <meyering@redhat.com>
46537
46538         vasnprintf.c: Avoid warning about unused label
46539         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46540         "overflow" label definition and associated code with the
46541         same cpp condition that guards the sole use of that label.
46542
46543 2008-01-26  Bruno Haible  <bruno@clisp.org>
46544
46545         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46546         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46547         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46548         * lib/isnanl-nolibm.h (isnanl): Likewise.
46549         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46550
46551 2008-01-26  Bruno Haible  <bruno@clisp.org>
46552
46553         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46554         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46555
46556 2008-01-26  Bruno Haible  <bruno@clisp.org>
46557
46558         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46559         GCC >= 4.0 built-in.
46560         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46561
46562 2008-01-26  Bruno Haible  <bruno@clisp.org>
46563
46564         Rename isnan, applicable to 'double' only, to isnand.
46565         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46566         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46567         (configure.ac): Update.
46568         (Include): Replace "isnan.h" with "isnand.h".
46569         * m4/isnand.m4: Renamed from m4/isnan.m4.
46570         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46571         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46572         instead of isnan.c.
46573         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46574         instead of HAVE_ISNAN_IN_LIBC.
46575         (isnand): Renamed from isnan.
46576         * lib/isnand.c: New file.
46577         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46578         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46579         (Makefile.am): Update.
46580         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46581         Include isnand.h instead of isnan.h.
46582         (main): Test isnand instead of isnan.
46583         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46584         isnan-nolibm.
46585         * modules/frexp (Depends-on): Likewise.
46586         * modules/frexp-tests (Depends-on): Likewise.
46587         * modules/frexp-nolibm (Depends-on): Likewise.
46588         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46589         * modules/isfinite (Depends-on): Likewise.
46590         * modules/round-tests (Depends-on): Likewise.
46591         * modules/signbit (Depends-on): Likewise.
46592         * modules/signbit-tests (Depends-on): Likewise.
46593         * modules/snprintf-posix (Depends-on): Likewise.
46594         * modules/sprintf-posix (Depends-on): Likewise.
46595         * modules/trunc-tests (Depends-on): Likewise.
46596         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46597         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46598         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46599         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46600         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46601         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46602         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46603         * modules/vasnprintf-posix (Depends-on): Likewise.
46604         * modules/vasprintf-posix (Depends-on): Likewise.
46605         * modules/vfprintf-posix (Depends-on): Likewise.
46606         * modules/vsnprintf-posix (Depends-on): Likewise.
46607         * modules/vsprintf-posix (Depends-on): Likewise.
46608         * lib/frexp.c: Include isnand.h instead of isnan.h.
46609         (ISNAN): Set to isnand instead of isnan.
46610         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46611         (gl_isfinited): Use isnand instead of isnan.
46612         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46613         (gl_signbitd): Use isnand instead of isnan.
46614         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46615         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46616         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46617         (main): Use isnand instead of isnan.
46618         * tests/test-round1.c: Include isnand.h.
46619         (main): Use isnand instead of isnan.
46620         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46621         (ISNAN): Set to isnand instead of isnan.
46622         * tests/test-trunc1.c: Include isnand.h.
46623         (main): Use isnand instead of isnan.
46624         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46625         (equal): Use isnand instead of isnan.
46626         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46627         isnand-nolibm.
46628         * NEWS: Mention the change.
46629
46630 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46631             Bruno Haible  <bruno@clisp.org>
46632
46633         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46634         the GCC builtins for signbits are present and set
46635         REPLACE_SIGNBIT_USING_GCC if so.
46636         * lib/math.in.h (signbit): Define using GCC builtins if
46637         REPLACE_SIGNBIT_USING_GCC is set.
46638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46639         REPLACE_SIGNBIT_USING_GCC.
46640         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46641
46642 2008-01-25  Jim Meyering  <meyering@redhat.com>
46643
46644         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46645         * lib/poll.c: Include <config.h>, not "config.h".
46646         * tests/test-getaddrinfo.c: Likewise.
46647
46648 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46649
46650         * modules/sockets-tests: New file.
46651
46652 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46653
46654         * modules/sockets: New module, can be used to call WSA_Startup and
46655         WSA_Cleanup when needed.
46656
46657         * lib/sockets.h, lib/sockets.c: New files.
46658
46659         * m4/sockets.m4: New file.
46660
46661         * tests/test-sockets.c: New file.
46662
46663 2008-01-19  Bruno Haible  <bruno@clisp.org>
46664
46665         * doc/posix-headers: Renamed from doc/headers.
46666         * doc/posix-functions: Renamed from doc/functions.
46667         * doc/gnulib.texi: Update.
46668
46669 2008-01-19  Bruno Haible  <bruno@clisp.org>
46670
46671         * doc/glibc-functions/strcasestr.texi: Include contents of
46672         doc/functions/strcasestr.texi, fixing the list of platforms.
46673         * doc/functions/strcasestr.texi: Remove file.
46674
46675 2008-01-19  Bruno Haible  <bruno@clisp.org>
46676
46677         * doc/glibc-functions/memmem.texi: Include contents of
46678         doc/functions/memmem.texi.
46679         * doc/functions/memmem.texi: Remove file.
46680
46681 2008-01-18  Bruno Haible  <bruno@clisp.org>
46682
46683         * doc/glibc-functions/*.texi: New files.
46684         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46685         to use the new files.
46686
46687 2008-01-17  Bruno Haible  <bruno@clisp.org>
46688
46689         * tests/test-gethostname.c (main): Fix printf statement.
46690
46691 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46692
46693         * modules/gethostname-tests: New file.
46694
46695         * tests/test-gethostname.c: New file.
46696
46697 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46698
46699         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46700         used by the UNAME case.  Reported by Bruno Haible
46701         <bruno@clisp.org>.
46702
46703 2008-01-17  Eric Blake  <ebb9@byu.net>
46704
46705         Convert c-strcasestr to be more efficient.
46706         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46707         (Depends-on): Add c-strcase, remove malloca, strnlen.
46708         * tests/test-c-strcasestr.c (main): Enhance test.
46709         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46710
46711 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46712
46713         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46714         Use it in creating po/Makevars.
46715
46716 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46717
46718         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46719         Applications that requires it should initialize libgcrypt
46720         manually.
46721
46722 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46723
46724         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46725
46726 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46727
46728         Fix problem with getdate on mingw32 reported by Simon Josefsson
46729         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46730         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46731         tzname", when deciding whether to declare tzname.
46732         * lib/strftime.c (tzname): Likewise.
46733
46734 2008-01-15  Bruno Haible  <bruno@clisp.org>
46735
46736         Work around a MacOS X 10.5 bug in frexpl().
46737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46738         * doc/functions/frexpl.texi: Document the bug.
46739         Reported by Elias Pipping <pipping@gentoo.org>.
46740
46741 2008-01-14  Eric Blake  <ebb9@byu.net>
46742
46743         Touch up previous patch.
46744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46745         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46746
46747         Convert strcasestr module to use Two-Way algorithm.
46748         * modules/strcasestr-simple: New module, based on the old
46749         strcasestr, but with Two-Way rather than KMP.
46750         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46751         * lib/string.in.h (rpl_strcasestr): Declare.
46752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46753         performance.
46754         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46755         * modules/string (Makefile.am): Support strcasestr.
46756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46757         * modules/strcasestr-tests (Depends-on): Check for alarm.
46758         * tests/test-strcasestr.c: Augment test.
46759         * lib/str-two-way.h: Clean up stray macro.
46760         * NEWS: Document new module.
46761         * MODULES.html.sh (string handling): Likewise.
46762         * doc/functions/strcasestr.texi: New file.
46763         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46764         here, since it is not a POSIX function.
46765
46766 2008-01-14  Colin Watson  <cjwatson@debian.org>
46767             Bruno Haible  <bruno@clisp.org>
46768
46769         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46770         works fine; if not, set REPLACE_STRSIGNAL.
46771         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46773         REPLACE_STRSIGNAL.
46774         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46775         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46776         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46777
46778 2008-01-14  Bruno Haible  <bruno@clisp.org>
46779
46780         * modules/strsignal (Include): Change to <string.h>.
46781
46782 2008-01-14  Colin Watson  <cjwatson@debian.org>
46783
46784         * modules/argp (Notice): Add a notice recommending to change
46785         XGETTEXT_OPTIONS.
46786         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46787
46788 2008-01-13  Colin Watson  <cjwatson@debian.org>
46789
46790         * modules/strsignal-tests: New file.
46791         * tests/test-strsignal.c: New file.
46792
46793         * lib/strsignal.c: New file, from glibc with modifications.
46794         * lib/siglist.h: New file, from glibc with modifications.
46795         * lib/string.in.h (strsignal): New declaration.
46796         * m4/strsignal.m4: New file.
46797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46798         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46799         * modules/strsignal: New file.
46800         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46801         HAVE_DECL_STRSIGNAL.
46802
46803 2008-01-13  Bruno Haible  <bruno@clisp.org>
46804
46805         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46806         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46807         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46808         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46809
46810 2008-01-13  Bruno Haible  <bruno@clisp.org>
46811
46812         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46813         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46814         * lib/argp.h (__attribute__): Likewise.
46815         * lib/c-stack.c (__attribute__): Likewise.
46816         * lib/error.h (__attribute__): Likewise.
46817         * lib/fts.c (__attribute__): Likewise.
46818         * lib/openat.h (__attribute__): Likewise.
46819         * lib/stdio.in.h (__attribute__): Likewise.
46820         * lib/string.in.h (__attribute__): Likewise.
46821         * lib/utimens.c (__attribute__): Likewise.
46822         * lib/vasnprintf.h (__attribute__): Likewise.
46823         * lib/xalloc.h (__attribute__): Likewise.
46824         * lib/xprintf.h (__attribute__): Likewise.
46825         * lib/xstrtol.h (__attribute__): Likewise.
46826         * lib/xvasprintf.h (__attribute__): Likewise.
46827
46828 2008-01-12  Bruno Haible  <bruno@clisp.org>
46829
46830         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46831         * doc/glibc-headers/a.out.texi: New file.
46832         * doc/glibc-headers/aliases.texi: New file.
46833         * doc/glibc-headers/alloca.texi: New file.
46834         * doc/glibc-headers/ar.texi: New file.
46835         * doc/glibc-headers/argp.texi: New file.
46836         * doc/glibc-headers/argz.texi: New file.
46837         * doc/glibc-headers/byteswap.texi: New file.
46838         * doc/glibc-headers/crypt.texi: New file.
46839         * doc/glibc-headers/endian.texi: New file.
46840         * doc/glibc-headers/envz.texi: New file.
46841         * doc/glibc-headers/err.texi: New file.
46842         * doc/glibc-headers/error.texi: New file.
46843         * doc/glibc-headers/execinfo.texi: New file.
46844         * doc/glibc-headers/fpu_control.texi: New file.
46845         * doc/glibc-headers/fstab.texi: New file.
46846         * doc/glibc-headers/fts.texi: New file.
46847         * doc/glibc-headers/getopt.texi: New file.
46848         * doc/glibc-headers/ieee754.texi: New file.
46849         * doc/glibc-headers/ifaddrs.texi: New file.
46850         * doc/glibc-headers/libintl.texi: New file.
46851         * doc/glibc-headers/mcheck.texi: New file.
46852         * doc/glibc-headers/mntent.texi: New file.
46853         * doc/glibc-headers/obstack.texi: New file.
46854         * doc/glibc-headers/paths.texi: New file.
46855         * doc/glibc-headers/printf.texi: New file.
46856         * doc/glibc-headers/pty.texi: New file.
46857         * doc/glibc-headers/resolv.texi: New file.
46858         * doc/glibc-headers/shadow.texi: New file.
46859         * doc/glibc-headers/sysexits.texi: New file.
46860         * doc/glibc-headers/ttyent.texi: New file.
46861
46862 2008-01-12  Jim Meyering  <meyering@redhat.com>
46863
46864         announce-gen: emit Gnulib's git-based version string.
46865         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46866         New option --gnulib-version=V, where V is expected to be
46867         the output of running git describe in the gnulib directory.
46868         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46869         not useful, and plan to stop publishing an xdelta file with each
46870         coreutils release.
46871
46872         * build-aux/announce-gen: Also check for lzma-compressed files.
46873
46874 2008-01-11  Bruno Haible  <bruno@clisp.org>
46875
46876         * tests/test-memmem.c (main): Increase maximum allowed time.
46877         * tests/test-strstr.c (main): Likewise.
46878
46879 2008-01-11  Bruno Haible  <bruno@clisp.org>
46880
46881         * doc/functions/memmem.texi: Add more precisions about platforms.
46882         * doc/functions/strstr.texi: Likewise.
46883
46884 2008-01-10  Eric Blake  <ebb9@byu.net>
46885
46886         * m4/strstr.m4: Delete cruft from copy-n-paste.
46887         Reported by Bruno Haible.
46888
46889 2008-01-10  Bruno Haible  <bruno@clisp.org>
46890
46891         Make c-strstr rely on strstr.
46892         * lib/c-strstr.c: Don't include str-kmp.h.
46893         (c_strstr): Define in terms of strstr.
46894         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46895         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46896
46897 2008-01-10  Bruno Haible  <bruno@clisp.org>
46898
46899         * doc/gnulib.texi (String Functions in C Locale): New section.
46900         * doc/c-ctype.texi: New file.
46901         * doc/c-strcase.texi: New file.
46902         * doc/c-strcaseeq.texi: New file.
46903         * doc/c-strcasestr.texi: New file.
46904         * doc/c-strstr.texi: New file.
46905         * doc/c-strtod.texi: New file.
46906         * doc/c-strtold.texi: New file.
46907
46908 2008-01-10  Eric Blake  <ebb9@byu.net>
46909
46910         * lib/relocatable.h: Fix a comment.
46911
46912 2008-01-10  Eric Blake  <ebb9@byu.net>
46913
46914         Share two-way algorithm.
46915         * lib/str-two-way.h: New file, merged from...
46916         * lib/memmem.c: ...here...
46917         * lib/strstr.c: ...and here.
46918         * modules/memmem (Files): Use it.
46919         * modules/strstr (Files): Likewise.
46920
46921         Avoid quadratic strstr implementations.
46922         * lib/strstr.c: New file.
46923         * m4/strstr.m4: Likewise.
46924         * modules/strstr: Likewise.
46925         * modules/strstr-tests: Likewise.
46926         * tests/test-strstr.c: Likewise.
46927         * lib/string.in.h (rpl_strstr): Declare.
46928         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46930         * modules/string (Makefile.am): Likewise.
46931         * MODULES.html.sh (string handling): Mention new module.
46932         * doc/functions/strstr.texi (strstr): Document the bug.
46933
46934 2008-01-10  Bruno Haible  <bruno@clisp.org>
46935
46936         * lib/relocatable.h (relocate): State whether result is freshly
46937         allocated or not.
46938         * lib/relocatable.c (relocate): Return a freshly allocated string
46939         instead of a pointer to a privately held string.
46940         Reported by Sylvain Beucler <beuc@gnu.org>.
46941
46942 2008-01-10  Colin Watson  <cjwatson@debian.org>
46943
46944         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46945         s/S_ISNLK/S_ISLNK/.
46946
46947 2008-01-09  Bruno Haible  <bruno@clisp.org>
46948
46949         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46950         and other files.
46951         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46952         if it's only a guess.
46953         * modules/memmem: Simplify by depending on memmem-simple.
46954
46955 2008-01-09  Bruno Haible  <bruno@clisp.org>
46956
46957         Work around OpenBSD 4.0 tdelete() bug.
46958         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46959         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46960         macros and don't redefine the enum values.
46961         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46962         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46963         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46964
46965 2008-01-09  Bruno Haible  <bruno@clisp.org>
46966
46967         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46968         (main): Don't perform the tests if setlocale did not install a UTF-8
46969         locale. Needed on OpenBSD 4.0.
46970         * modules/wcwidth-tests (Depends-on): Add localcharset.
46971
46972 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46973
46974         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46975         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46976         * NEWS: announce this.
46977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46978
46979 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46980         and Eric Blake  <ebb9@byu.net>
46981
46982         Add memmem-simple module.
46983         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46984         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46985         * modules/memmem-simple: New file.
46986         * modules/memmem (Description): Tweak.
46987         * MODULES.html.sh (string handling): Mention new module.
46988         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46989         addressed by memmem-simple.
46990         * NEWS: Document the difference.
46991
46992 2008-01-09  Eric Blake  <ebb9@byu.net>
46993
46994         Give gcc some memmem optimization hints.
46995         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46996         (strcasestr): Declare as pure.
46997         * modules/memmem (Maintainer): Claim my implementation.
46998
46999 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47000
47001         Support AIX 6.1 and higher.
47002         * build-aux/config.libpath: Likewise.
47003         * build-aux/config.rpath: Likewise.
47004
47005 2008-01-08  Jim Meyering  <meyering@redhat.com>
47006             Bruno Haible  <bruno@clisp.org>
47007
47008         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47009         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47010         Reported by Peter Fales in
47011         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47012
47013 2008-01-08  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/unictype/category-of (Depends-on): Add
47016         unictype/category-none.
47017         * modules/unictype/category-and-tests (Depends-on): Add
47018         unictype/category-{L,N,Lu,Nd}.
47019         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47020         * modules/unictype/category-or-tests (Depends-on): Add
47021         unictype/category-{L,N}.
47022         * modules/unictype/category-name-tests (Depends-on): Add
47023         unictype/category-{Z,Nl}.
47024         Reported by Simon Josefsson.
47025
47026 2008-01-08  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47029         convention better.
47030         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47031         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47032         Reported by Peter Miller <millerp@canb.auug.org.au>.
47033
47034 2008-01-08  Eric Blake  <ebb9@byu.net>
47035
47036         Rewrite memmem to guarantee linear complexity without malloc.
47037         * lib/memmem.c (memmem): Use Two-Way rather than
47038         Knuth-Morris-Pratt, to allow O(1) space usage.
47039         (critical_factorization, two_way_short_needle)
47040         (two_way_long_needle): New functions.
47041         (knuth_morris_pratt): Delete.
47042         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47043         Add stdint.
47044         * tests/test-memmem.c (main): Add tests for periodic needle and
47045         sublinear performance.
47046         * doc/functions/memmem.texi (memmem): Document other deficiencies
47047         in cygwin and older glibc.
47048
47049 2008-01-08  Bruno Haible  <bruno@clisp.org>
47050
47051         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47052         augmentation.
47053
47054 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47055
47056         Add a configure time option: --disable-acl.
47057         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47058         AC_ARG_ENABLE(acl).
47059
47060 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47061
47062         * tests/test-localename.c: Don't include obsolete "setenv.h".
47063
47064         * modules/localename-tests (Depends-on): Need unsetenv.
47065
47066 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47067
47068         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47069
47070 2008-01-06  Colin Watson  <cjwatson@debian.org>
47071
47072         * users.txt: Add man-db.
47073
47074 2008-01-07  Bruno Haible  <bruno@clisp.org>
47075
47076         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47077         previous section name.
47078
47079 2008-01-07  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/progname.c (set_program_name): Don't strip off a leading
47082         "lt-" prefix outside a .libs directory.
47083         Suggested by Paul Eggert.
47084
47085 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47086             Bruno Haible  <bruno@clisp.org>
47087
47088         Improve memory cleanup in 'relocatable' module.
47089         * lib/relocatable.h (compute_curr_prefix): Change return type to
47090         'char *'.
47091         * lib/relocatable.c (compute_curr_prefix): Change return type to
47092         'char *'. Free curr_installdir after use.
47093         (relocate): Free curr_prefix_better after use.
47094         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47095
47096 2008-01-01  Bruno Haible  <bruno@clisp.org>
47097
47098         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47099         failure on older glibc systems.
47100         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47101
47102 2008-01-05  Eric Blake  <ebb9@byu.net>
47103
47104         Avoid quadratic system memmem.
47105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47106         Reported by Ralf Wildenhues.
47107
47108         Fix memmem test for mingw.
47109         * modules/memmem-tests (configure.ac): Check for alarm.
47110         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47111         it.
47112         * doc/functions/memmem.texi: New file.
47113         * doc/gnulib.texi (Function Substitutes): Add memmem.
47114         Reported by Bruno Haible.
47115
47116 2008-01-04  Bruno Haible  <bruno@clisp.org>
47117
47118         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47119         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47120         gl_HEADER_STRING_H_DEFAULTS.
47121
47122 2008-01-04  Eric Blake  <ebb9@byu.net>
47123
47124         Shorten duration of memmem test.
47125         * tests/test-memmem.c (main): Use alarm to declare failure if test
47126         is taking too long.
47127         Reported by Ralf Wildenhues.
47128
47129 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47130
47131         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47132         string, needed by strerror.
47133
47134 2008-01-03  Colin Watson  <cjwatson@debian.org>
47135             Bruno Haible  <bruno@clisp.org>
47136
47137         * doc/gnulib-tool.texi (Localization): New section.
47138
47139 2008-01-02  Bruno Haible  <bruno@clisp.org>
47140
47141         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47142         variables to 'unsigned char *' type.
47143         Reported by Paul Eggert.
47144
47145 2008-01-02  Jim Meyering  <jim@meyering.net>
47146
47147         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47148
47149 2007-12-31  Jim Meyering  <jim@meyering.net>
47150
47151         Avoid use of private FTS type name.
47152         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47153
47154 2007-12-30  Karl Berry  <karl@gnu.org>
47155
47156         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47157         work around defect in Texinfo and/or the standalone Info browser.
47158
47159 2007-12-30  Bruno Haible  <bruno@clisp.org>
47160
47161         Unify 5 copies of the KMP code.
47162         * lib/str-kmp.h: New file.
47163         * lib/c-strcasestr.c: Include str-kmp.h.
47164         (knuth_morris_pratt): Remove function.
47165         (c_strcasestr): Update.
47166         * lib/c-strstr.c: Include str-kmp.h.
47167         (knuth_morris_pratt): Remove function.
47168         (c_strcasestr): Update.
47169         * lib/mbscasestr.c: Include str-kmp.h.
47170         (knuth_morris_pratt_unibyte): Remove function.
47171         * lib/mbsstr.c: Include str-kmp.h.
47172         (knuth_morris_pratt_unibyte): Remove function.
47173         * lib/strcasestr.c: Include str-kmp.h.
47174         (knuth_morris_pratt): Remove function.
47175         (strcasestr): Update.
47176         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47177         * modules/c-strstr (Files): Likewise.
47178         * modules/mbscasestr (Files): Likewise.
47179         * modules/mbsstr (Files): Likewise.
47180         * modules/strcasestr (Files): Likewise.
47181         Suggested by Paul Eggert.
47182
47183 2007-12-30  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47186         defined.
47187
47188 2007-12-30  Bruno Haible  <bruno@clisp.org>
47189
47190         * lib/xmalloca.h: Include xalloc.h.
47191         (xnmalloca): New macro.
47192
47193 2007-12-30  Bruno Haible  <bruno@clisp.org>
47194
47195         * lib/malloca.h (nmalloca): New macro.
47196         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47197         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47198         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47199         knuth_morris_pratt_multibyte): Likewise.
47200         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47201         knuth_morris_pratt_multibyte): Likewise.
47202         * lib/memmem.c (knuth_morris_pratt): Likewise.
47203         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47204
47205 2007-12-25  Bruno Haible  <bruno@clisp.org>
47206
47207         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47208         * lib/glob.c: Don't include openat.h.
47209         (link_exists2_p): Add back the code that deals with the
47210         !GLOB_ALTDIRFUNC case.
47211         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47212         let it do the filename concatenation.
47213         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47214         * modules/glob (Depends-on): Remove openat.
47215
47216 2007-12-31  Bruno Haible  <bruno@clisp.org>
47217
47218         * modules/dirfd (License): Change to LGPLv2+.
47219         Approved by Jim Meyering.
47220
47221 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47222
47223         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47224         when multiplying M by sizeof (size_t).
47225
47226 2007-12-10  Martin Lambers  <marlam@marlam.de>
47227
47228         Override getpagesize on mingw.
47229         * lib/getpagesize.c: New file.
47230         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47231         * modules/getpagesize (Files): Add lib/getpagesize.c.
47232         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47234         REPLACE_GETPAGESIZE.
47235         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47236
47237 2007-12-25  Bruno Haible  <bruno@clisp.org>
47238
47239         * modules/localcharset (Notice): New field.
47240         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47241         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47242
47243 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47244             Bruno Haible  <bruno@clisp.org>
47245
47246         Avoid using the syntax symbol() in formatted documentation.
47247         * MODULES.html.sh (func_module): When replacing symbol() with a
47248         hyperlink, remove the parentheses. Show an error if some remain.
47249         Recognize and render the '...' syntax.
47250         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47251         Rework. Add paragraph about GCC's inlining.
47252         * doc/alloca.texi: Likewise.
47253         * doc/error.texi: Remove parentheses from symbol reference.
47254         * doc/gnulib-intro.texi: Likewise.
47255         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47256         * modules/fnmatch (Description): Reword to say "the ... function".
47257         * modules/full-read (Description): Likewise.
47258         * modules/full-write (Description): Likewise.
47259         * modules/safe-read (Description): Likewise.
47260         * modules/safe-write (Description): Likewise.
47261         * modules/strchrnul (Description): Likewise.
47262         * modules/trim (Description): Likewise.
47263         * modules/error (Description): Remove parentheses from symbol
47264         references.
47265         * modules/verror (Description): Likewise.
47266         Reported by Karl Berry.
47267
47268 2007-12-25  Bruno Haible  <bruno@clisp.org>
47269
47270         Fixup after 2007-10-16 commit.
47271         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47272
47273 2007-12-24  Bruno Haible  <bruno@clisp.org>
47274
47275         Make --enable-relocatable work with DESTDIR.
47276         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47277         to compute installdir from destprog.
47278         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47279         also set the RELOC_DESTDIR variable.
47280         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47281
47282 2007-12-24  Bruno Haible  <bruno@clisp.org>
47283
47284         Fix link error due to xalloc_die().
47285         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47286         of xreadlink.
47287         * lib/relocwrapper.c: Update comments.
47288         * build-aux/install-reloc: Remove xreadlink.c from file list.
47289         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47290         xreadlink.c.
47291         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47292
47293 2007-12-24  Bruno Haible  <bruno@clisp.org>
47294
47295         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47296         * lib/setenv.h: Remove file.
47297         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47298         lib/setenv.h.
47299         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47300         (Depends-on): Add stdlib.
47301         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47302         gl_FUNC_UNSETENV.
47303         (Include): Replace setenv.h with <stdlib.h>.
47304         * modules/unsetenv: New file.
47305         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47306         * lib/unsetenv.c: Include <stdlib.h> first.
47307         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47308         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47309         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47310         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47311         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47312         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47314         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47315         * doc/functions/unsetenv.texi: Update.
47316         * modules/xsetenv (Depends-on): Add unsetenv.
47317         * modules/getdate (Depends-on): Likewise.
47318         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47319         * lib/xsetenv.c: Don't include setenv.h.
47320         * lib/getdate.y: Likewise.
47321         * lib/relocwrapper.c: Likewise.
47322         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47323         (Depends-on): Add stdlib.
47324         * NEWS: Mention the changes.
47325         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47326
47327 2007-12-23  Bruno Haible  <bruno@clisp.org>
47328
47329         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47330         indentation.
47331
47332 2007-12-23  Bruno Haible  <bruno@clisp.org>
47333
47334         * lib/c-strcasestr.c: Add more comments.
47335         * lib/c-strstr.c: Likewise.
47336         * lib/mbscasestr.c: Likewise.
47337         * lib/mbsstr.c: Likewise.
47338         * lib/strcasestr.c: Likewise.
47339         * lib/memmem.c: Likewise.
47340
47341 2007-12-23  Bruno Haible  <bruno@clisp.org>
47342
47343         * tests/test-memmem.c: Include <string.h> first.
47344
47345 2007-12-22  Bruno Haible  <bruno@clisp.org>
47346
47347         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47348         the contents of $testsbase.
47349         Reported by Ralf Wildenhues.
47350
47351 2007-12-22  Bruno Haible  <bruno@clisp.org>
47352
47353         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47354         two variables local_ldadd_before, local_ldadd_last.
47355
47356 2007-12-20  Eric Blake  <ebb9@byu.net>
47357
47358         Work around circular library issue when cross-compiling.
47359         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47360         that progname.o does not need to pull in rpl_memcmp.
47361
47362 2007-12-19  Eric Blake  <ebb9@byu.net>
47363
47364         Fix memmem to avoid O(n^2) worst-case complexity.
47365         * lib/memmem.c (knuth_morris_pratt): New function.
47366         (memmem): Use it if first few naive iterations fail.
47367         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47368         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47369         * modules/memchr (License): Likewise.
47370         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47371         malloca.
47372         * tests/test-memmem.c: Rewrite, borrowing ideas from
47373         test-mbsstr1.c; the old version wouldn't even compile!
47374         * modules/memmem-tests: New file.
47375         * lib/string.in.h (rpl_memmem): Add declaration.
47376         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47378         REPLACE_MEMMEM.
47379
47380 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47381
47382         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47383         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47384         before any system include files, and undef after them all.  This
47385         should fix a problem on VMS reported by John E. Malmberg in
47386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47387
47388 2007-12-17  Eric Blake  <ebb9@byu.net>
47389
47390         Revert addition of verify, for BSD/OS.
47391         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47392         can't handle large files, for the sake of obsolete platforms.
47393         * modules/fseeko (Depends-on): Remove verify.
47394         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47395         * doc/functions/ftello.texi (ftello): Likewise.
47396         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47397         Reported by Larry Jones.
47398
47399 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47400
47401         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47402         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47403
47404 2007-12-17  Jim Meyering  <meyering@redhat.com>
47405
47406         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47407         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47408         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47409         * modules/getcwd (Depends-on): Add openat.
47410         Reported by Petr Salinger.
47411
47412 2007-12-17  Bruno Haible  <bruno@clisp.org>
47413
47414         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47415         avoid a segmentation fault of the configure test on x86_64 systems.
47416
47417 2007-12-15  Jim Meyering  <meyering@redhat.com>
47418
47419         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47420
47421 2007-12-13  Eric Blake  <ebb9@byu.net>
47422
47423         Another fseek test.
47424         * tests/test-fseek.c (main): Also test ungetc handling.
47425         * tests/test-fseeko.c (main): Likewise.
47426         * modules/fseeko (Depends-on): Add verify.
47427         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47428         large.
47429         Reported by Larry Jones.
47430
47431         Fix fseeko on mingw.
47432         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47433         seek.
47434
47435         Beef up fseek tests.
47436         * tests/test-fseek.c (main): Also test eof handling.
47437         * tests/test-fseeko.c (main): Likewise.
47438         Reported by Larry Jones.
47439
47440 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47441
47442         Fix fseeko on BSD-based platforms.
47443         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47444         successful seek.
47445
47446 2007-12-12  Eric Blake  <ebb9@byu.net>
47447
47448         Allow circular dependency of separate libtests.a
47449         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47450         when use_libtests.
47451
47452 2007-12-11  Eric Blake  <ebb9@byu.net>
47453
47454         Fix bug with -0.0L in previous patch.
47455         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47456         * tests/test-isnan.c (main): Also test on zeroes.
47457         * tests/test-isnanf.c (main): Likewise.
47458         * tests/test-isnanl.h (main): Likewise.
47459
47460         Detect pseudo-denormals on x86 even when cross-compiling.
47461         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47462         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47463         invalid bit patterns that happen to satisfy ==.
47464
47465         Avoid link failures with separate libtests.a.
47466         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47467         last, to satisfy circular dependencies.
47468
47469 2007-12-11  Eric Blake  <ebb9@byu.net>
47470         and Bruno Haible  <bruno@clisp.org>
47471
47472         Fix OpenBSD 4.0 <float.h> handling of long double.
47473         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47474         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47475         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47476
47477 2007-12-11  Jim Meyering  <meyering@redhat.com>
47478
47479         * users.txt: Add libvirt.
47480
47481         Support versions of autoconf prior to 2.59c.
47482         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47483         if it is not already defined.
47484
47485 2007-12-09  Bruno Haible  <bruno@clisp.org>
47486
47487         Let 'gnulib-tool --import' collect sources needed for the tests in
47488         tests/ rather than in lib/.
47489         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47490         argument. If true, add rules to generate libtests.a, and put libtests.a
47491         into $(LDADD). Consider source files in subdirectories and set
47492         uses_subdirs.
47493         (func_emit_initmacro_start, func_emit_initmacro_end,
47494         func_emit_initmacro_done): Pass all arguments explicitly.
47495         (func_import): Determine two module lists main_modules,
47496         testsrelated_modules. Determine use_libtests. Determine two variables
47497         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47498         instead of just sed_transform_lib_file. Determine two variables
47499         main_files and testsrelated_files. Compute 'files' as the union of
47500         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47501         func_add_or_update. In the generated gnulib-comp.m4, collect the
47502         object files for tests/ in different variables than those for lib/.
47503         Substitute LIBTESTS_LIBDEPS.
47504         (func_create_testdir): Combine the uses_subdirs results from
47505         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47506
47507 2007-12-09  Bruno Haible  <bruno@clisp.org>
47508
47509         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47510         the build-aux directory.
47511
47512 2007-12-09  Bruno Haible  <bruno@clisp.org>
47513
47514         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47515         introduced on 2006-09-09.
47516
47517 2007-12-07  Jim Meyering  <meyering@redhat.com>
47518
47519         Let these macros work also with autoconf-2.59.
47520         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47521         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47523
47524 2007-12-06  Jim Meyering  <meyering@redhat.com>
47525
47526         Avoid a configure-time syntax error in gl_FUNC_ACL.
47527         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47528         function in each branch, before testing the cache variable.
47529
47530 2007-12-04  Eric Blake  <ebb9@byu.net>
47531
47532         Make scripts executable.
47533         * build-aux/config.guess: Add execute permissions.
47534         * build-aux/config.sub: Likewise.
47535         * build-aux/gendocs.sh: Likewise.
47536
47537         Fix frexp on mingw.
47538         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47539         cross-compiling.
47540         * doc/functions/frexp.texi (frexp): Document the bug.
47541
47542         Make cygwin fseeko check more reliable.
47543         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47544         version numbers, rather than unrelated feature check.
47545         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47546         * doc/functions/ftello.texi (ftello): Likewise.
47547         Reported by Bruno Haible.
47548
47549         * m4/strerror.m4: Bump version number.
47550
47551 2007-12-03  Bruno Haible  <bruno@clisp.org>
47552
47553         * doc/functions/mprotect.texi: Mention the mingw problem.
47554
47555 2007-12-03  Eric Blake  <ebb9@byu.net>
47556
47557         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47558         REPLACE_STRERROR is initialized before this macro.
47559
47560 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47561
47562         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47563         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47564         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47565         put -lsec in even for programs other than 'ls'.  This fixes a problem
47566         for gettext reported by Bruno Haible in
47567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47568         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47569         Add support for Solaris 10.  This isn't efficient, but should get the
47570         job done for now.
47571
47572 2007-12-03  James Youngman  <jay@gnu.org>
47573
47574         * doc/regexprops-generic.texi: change "an close-group" to "a
47575         close-group" and "illegal" to "not allowed".
47576
47577 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47578
47579         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47580         pr_byname.h. Needed for the rare case when the maintainer has done
47581         "make maintainer-clean" in the source directory and then attempts a
47582         build outside the source directory.
47583         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47584         scripts_byname.h.
47585
47586 2007-12-02  Martin Lambers <marlam@marlam.de>
47587             Bruno Haible  <bruno@clisp.org>
47588
47589         * lib/getpagesize.h: Remove file.
47590         * lib/unistd.in.h: Include declaration of getpagesize here.
47591         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47592         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47593         HAVE_SYS_PARAM_H.
47594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47595         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47596         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47597         (Depends-on): Add unistd.
47598         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47599         (Include): Use <unistd.h> instead of getpagesize.h.
47600         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47601         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47602         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47603         gl_GETPAGESIZE invocation, already handled by module dependency.
47604         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47605
47606 2007-12-02  Bruno Haible  <bruno@clisp.org>
47607
47608         * modules/strings-tests: New file.
47609         * tests/test-strings.c: New file.
47610
47611         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47612         * lib/strings.in.h: New file.
47613         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47614         * m4/strings_h.m4: New file.
47615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47616         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47617         * modules/strings: New file.
47618         * modules/string (Makefile.am): Update.
47619         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47620         Reported by Karl Berry.
47621
47622 2007-12-01  Eric Blake  <ebb9@byu.net>
47623
47624         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47625         accomodate fix in cygwin 1.5.25.
47626
47627 2007-12-01  Jim Meyering  <meyering@redhat.com>
47628
47629         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47630         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47631         that would inhibit utf8-optimization of a regexp containing line-
47632         or buffer-anchors, e.g., `^', `$'.
47633
47634 2007-11-30  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47637         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47638         glthread_recursive_lock_init.
47639         * lib/lock.c (glthread_recursive_lock_init)
47640         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47641         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47642
47643 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47644
47645         New function qset_acl, like set_acl but with syscall semantics.
47646         * lib/acl.h (qset_acl): New decl.
47647         * lib/acl.c (qset_acl): New function.
47648         (set_acl): Use new function.  Use more-consistent diagnostics.
47649
47650 2007-11-28  Jim Meyering  <meyering@redhat.com>
47651
47652         * modules/physmem (License): Change from GPL to LGPLv2+.
47653
47654 2007-11-26  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47657         'long double' type has excess precision.
47658         Reported by Jim Meyering in
47659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47660
47661 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47662
47663         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47664         Sync from <http://gnu.org/licenses>.
47665         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47666         with license text from same location.
47667         * doc/maintain.texi, doc/standards.texi:  Sync from
47668         <http://savannah.gnu.org/projects/gnustandards>.
47669
47670 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47671         and Jim Meyering  <meyering@redhat.com>
47672
47673         Adjust getdate' grammar to accept a slightly more regular language.
47674         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47675         Before, the former was rejected.
47676         * lib/getdate.y (digits_to_date_time): New function, factored
47677         out of ...
47678         (number): ...here.  Just call digits_to_date_time.
47679         (hybrid): New non-terminal to handle an <unsigned number,
47680         signed relative offset> sequence consistently.
47681
47682 2007-11-18  Jim Meyering  <meyering@redhat.com>
47683
47684         Pull my changes from coreutils:
47685         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47686         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47687         use of $gnulib_tool_option_extras, so that it's separated from the
47688         preceding argument.
47689
47690         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47691         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47692         parent destination directories before copying a file into place.
47693
47694 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47695
47696         bootstrap: work also with 4-argument variant of AC_INIT
47697         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47698
47699 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         Port test-getaddrinfo to Solaris.
47702         Problem reported by Bruno Haible in
47703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47704         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47705         explanation of setting 'hints'.
47706         Don't reject an implementation merely because it returns EAI_SERVICE.
47707         (EAI_SERVICE): Define to 0 if not defined.
47708
47709 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47710
47711         The license of gnu-make and posix-shell is now "GPLed build tool".
47712         * modules/gnu-make (License): Likewise.
47713         * modules/posix-shell (License): Likewise.
47714
47715         New module posix-shell, for determining a POSIX shell
47716         or perhaps something that is close enough to a POSIX shell.
47717         * m4/posix-shell.m4: New file.
47718         * modules/posix-shell: New file.
47719
47720         * MODULES.html.sh: Mention new module.
47721
47722         New module gnu-make, for determining whether we're using GNU Make.
47723         * m4/gnu-make.m4: New file.
47724         * modules/gnu-make: New file.
47725         * MODULES.html.sh: Mention new module.
47726
47727 2007-11-14  Jim Meyering  <meyering@redhat.com>
47728
47729         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47730         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47731         use this macro to create a function _definition_.
47732         Remove useless "#undef ARGMATCH_DIE".
47733
47734 2007-11-14  Bruno Haible  <bruno@clisp.org>
47735
47736         * lib/config.charset: Update for OpenBSD 4.1.
47737         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47738
47739 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47740
47741         Document 64-bit #if problems in stdint.texi.
47742         * doc/headers/stdint.texi (stdint.h): Mention problems with
47743         64-bit-#if, and how to work around them.
47744
47745         Don't insist on 'long long int' support in the preprocessor.  It
47746         breaks too many things.  For example, PRIdMAX still uses a 'long
47747         long int' format with the latest Sun compiler, even though
47748         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47749         preprocessor problem.  This causes the latest coreutils to dump
47750         core on Solaris 10 sparc with the Sun C compiler.
47751         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47752         the troublesome expressions at configure-time, not at #if-time.
47753         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47754         preprocessor.
47755         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47756         compile-time C checks, done at 'configure'-time.
47757         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47758         * modules/inttypes (Makefile): Substitute the new symbols that
47759         gl_INTTYPES_H now generates.
47760         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47761
47762 2007-11-12  Bruno Haible  <bruno@clisp.org>
47763
47764         Tests for Unicode character classification functions.
47765
47766         * modules/unictype/bidicategory-byname-tests: New file.
47767         * modules/unictype/bidicategory-name-tests: New file.
47768         * modules/unictype/bidicategory-of-tests: New file.
47769         * modules/unictype/bidicategory-test-tests: New file.
47770         * modules/unictype/block-list-tests: New file.
47771         * modules/unictype/block-of-tests: New file.
47772         * modules/unictype/block-test-tests: New file.
47773         * modules/unictype/category-C-tests: New file.
47774         * modules/unictype/category-Cc-tests: New file.
47775         * modules/unictype/category-Cf-tests: New file.
47776         * modules/unictype/category-Cn-tests: New file.
47777         * modules/unictype/category-Co-tests: New file.
47778         * modules/unictype/category-Cs-tests: New file.
47779         * modules/unictype/category-L-tests: New file.
47780         * modules/unictype/category-Ll-tests: New file.
47781         * modules/unictype/category-Lm-tests: New file.
47782         * modules/unictype/category-Lo-tests: New file.
47783         * modules/unictype/category-Lt-tests: New file.
47784         * modules/unictype/category-Lu-tests: New file.
47785         * modules/unictype/category-M-tests: New file.
47786         * modules/unictype/category-Mc-tests: New file.
47787         * modules/unictype/category-Me-tests: New file.
47788         * modules/unictype/category-Mn-tests: New file.
47789         * modules/unictype/category-N-tests: New file.
47790         * modules/unictype/category-Nd-tests: New file.
47791         * modules/unictype/category-Nl-tests: New file.
47792         * modules/unictype/category-No-tests: New file.
47793         * modules/unictype/category-P-tests: New file.
47794         * modules/unictype/category-Pc-tests: New file.
47795         * modules/unictype/category-Pd-tests: New file.
47796         * modules/unictype/category-Pe-tests: New file.
47797         * modules/unictype/category-Pf-tests: New file.
47798         * modules/unictype/category-Pi-tests: New file.
47799         * modules/unictype/category-Po-tests: New file.
47800         * modules/unictype/category-Ps-tests: New file.
47801         * modules/unictype/category-S-tests: New file.
47802         * modules/unictype/category-Sc-tests: New file.
47803         * modules/unictype/category-Sk-tests: New file.
47804         * modules/unictype/category-Sm-tests: New file.
47805         * modules/unictype/category-So-tests: New file.
47806         * modules/unictype/category-Z-tests: New file.
47807         * modules/unictype/category-Zl-tests: New file.
47808         * modules/unictype/category-Zp-tests: New file.
47809         * modules/unictype/category-Zs-tests: New file.
47810         * modules/unictype/category-and-not-tests: New file.
47811         * modules/unictype/category-and-tests: New file.
47812         * modules/unictype/category-byname-tests: New file.
47813         * modules/unictype/category-name-tests: New file.
47814         * modules/unictype/category-none-tests: New file.
47815         * modules/unictype/category-of-tests: New file.
47816         * modules/unictype/category-or-tests: New file.
47817         * modules/unictype/category-test-withtable-tests: New file.
47818         * modules/unictype/combining-class-tests: New file.
47819         * modules/unictype/ctype-alnum-tests: New file.
47820         * modules/unictype/ctype-alpha-tests: New file.
47821         * modules/unictype/ctype-blank-tests: New file.
47822         * modules/unictype/ctype-cntrl-tests: New file.
47823         * modules/unictype/ctype-digit-tests: New file.
47824         * modules/unictype/ctype-graph-tests: New file.
47825         * modules/unictype/ctype-lower-tests: New file.
47826         * modules/unictype/ctype-print-tests: New file.
47827         * modules/unictype/ctype-punct-tests: New file.
47828         * modules/unictype/ctype-space-tests: New file.
47829         * modules/unictype/ctype-upper-tests: New file.
47830         * modules/unictype/ctype-xdigit-tests: New file.
47831         * modules/unictype/decimal-digit-tests: New file.
47832         * modules/unictype/digit-tests: New file.
47833         * modules/unictype/mirror-tests: New file.
47834         * modules/unictype/numeric-tests: New file.
47835         * modules/unictype/property-alphabetic-tests: New file.
47836         * modules/unictype/property-ascii-hex-digit-tests: New file.
47837         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47838         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47839         * modules/unictype/property-bidi-block-separator-tests: New file.
47840         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47841         * modules/unictype/property-bidi-common-separator-tests: New file.
47842         * modules/unictype/property-bidi-control-tests: New file.
47843         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47844         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47845         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47846         * modules/unictype/property-bidi-european-digit-tests: New file.
47847         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47848         * modules/unictype/property-bidi-left-to-right-tests: New file.
47849         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47850         * modules/unictype/property-bidi-other-neutral-tests: New file.
47851         * modules/unictype/property-bidi-pdf-tests: New file.
47852         * modules/unictype/property-bidi-segment-separator-tests: New file.
47853         * modules/unictype/property-bidi-whitespace-tests: New file.
47854         * modules/unictype/property-byname-tests: New file.
47855         * modules/unictype/property-combining-tests: New file.
47856         * modules/unictype/property-composite-tests: New file.
47857         * modules/unictype/property-currency-symbol-tests: New file.
47858         * modules/unictype/property-dash-tests: New file.
47859         * modules/unictype/property-decimal-digit-tests: New file.
47860         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47861         * modules/unictype/property-deprecated-tests: New file.
47862         * modules/unictype/property-diacritic-tests: New file.
47863         * modules/unictype/property-extender-tests: New file.
47864         * modules/unictype/property-format-control-tests: New file.
47865         * modules/unictype/property-grapheme-base-tests: New file.
47866         * modules/unictype/property-grapheme-extend-tests: New file.
47867         * modules/unictype/property-grapheme-link-tests: New file.
47868         * modules/unictype/property-hex-digit-tests: New file.
47869         * modules/unictype/property-hyphen-tests: New file.
47870         * modules/unictype/property-id-continue-tests: New file.
47871         * modules/unictype/property-id-start-tests: New file.
47872         * modules/unictype/property-ideographic-tests: New file.
47873         * modules/unictype/property-ids-binary-operator-tests: New file.
47874         * modules/unictype/property-ids-trinary-operator-tests: New file.
47875         * modules/unictype/property-ignorable-control-tests: New file.
47876         * modules/unictype/property-iso-control-tests: New file.
47877         * modules/unictype/property-join-control-tests: New file.
47878         * modules/unictype/property-left-of-pair-tests: New file.
47879         * modules/unictype/property-line-separator-tests: New file.
47880         * modules/unictype/property-logical-order-exception-tests: New file.
47881         * modules/unictype/property-lowercase-tests: New file.
47882         * modules/unictype/property-math-tests: New file.
47883         * modules/unictype/property-non-break-tests: New file.
47884         * modules/unictype/property-not-a-character-tests: New file.
47885         * modules/unictype/property-numeric-tests: New file.
47886         * modules/unictype/property-other-alphabetic-tests: New file.
47887         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47888         * modules/unictype/property-other-grapheme-extend-tests: New file.
47889         * modules/unictype/property-other-id-continue-tests: New file.
47890         * modules/unictype/property-other-id-start-tests: New file.
47891         * modules/unictype/property-other-lowercase-tests: New file.
47892         * modules/unictype/property-other-math-tests: New file.
47893         * modules/unictype/property-other-uppercase-tests: New file.
47894         * modules/unictype/property-paired-punctuation-tests: New file.
47895         * modules/unictype/property-paragraph-separator-tests: New file.
47896         * modules/unictype/property-pattern-syntax-tests: New file.
47897         * modules/unictype/property-pattern-white-space-tests: New file.
47898         * modules/unictype/property-private-use-tests: New file.
47899         * modules/unictype/property-punctuation-tests: New file.
47900         * modules/unictype/property-quotation-mark-tests: New file.
47901         * modules/unictype/property-radical-tests: New file.
47902         * modules/unictype/property-sentence-terminal-tests: New file.
47903         * modules/unictype/property-soft-dotted-tests: New file.
47904         * modules/unictype/property-space-tests: New file.
47905         * modules/unictype/property-terminal-punctuation-tests: New file.
47906         * modules/unictype/property-test-tests: New file.
47907         * modules/unictype/property-titlecase-tests: New file.
47908         * modules/unictype/property-unassigned-code-value-tests: New file.
47909         * modules/unictype/property-unified-ideograph-tests: New file.
47910         * modules/unictype/property-uppercase-tests: New file.
47911         * modules/unictype/property-variation-selector-tests: New file.
47912         * modules/unictype/property-white-space-tests: New file.
47913         * modules/unictype/property-xid-continue-tests: New file.
47914         * modules/unictype/property-xid-start-tests: New file.
47915         * modules/unictype/property-zero-width-tests: New file.
47916         * modules/unictype/scripts-tests: New file.
47917         * modules/unictype/syntax-c-ident-tests: New file.
47918         * modules/unictype/syntax-c-whitespace-tests: New file.
47919         * modules/unictype/syntax-java-ident-tests: New file.
47920         * modules/unictype/syntax-java-whitespace-tests: New file.
47921         * tests/unictype/test-bidi_byname.c: New file.
47922         * tests/unictype/test-bidi_name.c: New file.
47923         * tests/unictype/test-bidi_of.c: New file.
47924         * tests/unictype/test-bidi_test.c: New file.
47925         * tests/unictype/test-block_list.c: New file.
47926         * tests/unictype/test-block_of.c: New file.
47927         * tests/unictype/test-block_test.c: New file.
47928         * tests/unictype/test-categ_and.c: New file.
47929         * tests/unictype/test-categ_and_not.c: New file.
47930         * tests/unictype/test-categ_byname.c: New file.
47931         * tests/unictype/test-categ_name.c: New file.
47932         * tests/unictype/test-categ_none.c: New file.
47933         * tests/unictype/test-categ_of.c: New file.
47934         * tests/unictype/test-categ_or.c: New file.
47935         * tests/unictype/test-categ_test_withtable.c: New file.
47936         * tests/unictype/test-combining.c: New file.
47937         * tests/unictype/test-decdigit.c: New file.
47938         * tests/unictype/test-digit.c: New file.
47939         * tests/unictype/test-mirror.c: New file.
47940         * tests/unictype/test-numeric.c: New file.
47941         * tests/unictype/test-pr_byname.c: New file.
47942         * tests/unictype/test-pr_test.c: New file.
47943         * tests/unictype/test-predicate-part1.h: New file.
47944         * tests/unictype/test-predicate-part2.h: New file.
47945         * tests/unictype/test-scripts.c: New file.
47946         * tests/unictype/test-sy_c_ident.c: New file.
47947         * tests/unictype/test-sy_java_ident.c: New file.
47948
47949         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47950         for Unicode 5.0.0.
47951         * tests/unictype/test-categ_Cc.c: Likewise.
47952         * tests/unictype/test-categ_Cf.c: Likewise.
47953         * tests/unictype/test-categ_Cn.c: Likewise.
47954         * tests/unictype/test-categ_Co.c: Likewise.
47955         * tests/unictype/test-categ_Cs.c: Likewise.
47956         * tests/unictype/test-categ_L.c: Likewise.
47957         * tests/unictype/test-categ_Ll.c: Likewise.
47958         * tests/unictype/test-categ_Lm.c: Likewise.
47959         * tests/unictype/test-categ_Lo.c: Likewise.
47960         * tests/unictype/test-categ_Lt.c: Likewise.
47961         * tests/unictype/test-categ_Lu.c: Likewise.
47962         * tests/unictype/test-categ_M.c: Likewise.
47963         * tests/unictype/test-categ_Mc.c: Likewise.
47964         * tests/unictype/test-categ_Me.c: Likewise.
47965         * tests/unictype/test-categ_Mn.c: Likewise.
47966         * tests/unictype/test-categ_N.c: Likewise.
47967         * tests/unictype/test-categ_Nd.c: Likewise.
47968         * tests/unictype/test-categ_Nl.c: Likewise.
47969         * tests/unictype/test-categ_No.c: Likewise.
47970         * tests/unictype/test-categ_P.c: Likewise.
47971         * tests/unictype/test-categ_Pc.c: Likewise.
47972         * tests/unictype/test-categ_Pd.c: Likewise.
47973         * tests/unictype/test-categ_Pe.c: Likewise.
47974         * tests/unictype/test-categ_Pf.c: Likewise.
47975         * tests/unictype/test-categ_Pi.c: Likewise.
47976         * tests/unictype/test-categ_Po.c: Likewise.
47977         * tests/unictype/test-categ_Ps.c: Likewise.
47978         * tests/unictype/test-categ_S.c: Likewise.
47979         * tests/unictype/test-categ_Sc.c: Likewise.
47980         * tests/unictype/test-categ_Sk.c: Likewise.
47981         * tests/unictype/test-categ_Sm.c: Likewise.
47982         * tests/unictype/test-categ_So.c: Likewise.
47983         * tests/unictype/test-categ_Z.c: Likewise.
47984         * tests/unictype/test-categ_Zl.c: Likewise.
47985         * tests/unictype/test-categ_Zp.c: Likewise.
47986         * tests/unictype/test-categ_Zs.c: Likewise.
47987         * tests/unictype/test-ctype_alnum.c: Likewise.
47988         * tests/unictype/test-ctype_alpha.c: Likewise.
47989         * tests/unictype/test-ctype_blank.c: Likewise.
47990         * tests/unictype/test-ctype_cntrl.c: Likewise.
47991         * tests/unictype/test-ctype_digit.c: Likewise.
47992         * tests/unictype/test-ctype_graph.c: Likewise.
47993         * tests/unictype/test-ctype_lower.c: Likewise.
47994         * tests/unictype/test-ctype_print.c: Likewise.
47995         * tests/unictype/test-ctype_punct.c: Likewise.
47996         * tests/unictype/test-ctype_space.c: Likewise.
47997         * tests/unictype/test-ctype_upper.c: Likewise.
47998         * tests/unictype/test-ctype_xdigit.c: Likewise.
47999         * tests/unictype/test-decdigit.h: Likewise.
48000         * tests/unictype/test-digit.h: Likewise.
48001         * tests/unictype/test-numeric.h: Likewise.
48002         * tests/unictype/test-pr_alphabetic.c: Likewise.
48003         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48004         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48005         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48006         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48007         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48008         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48009         * tests/unictype/test-pr_bidi_control.c: Likewise.
48010         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48011         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48012         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48013         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48014         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48015         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48016         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48017         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48018         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48019         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48020         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48021         * tests/unictype/test-pr_combining.c: Likewise.
48022         * tests/unictype/test-pr_composite.c: Likewise.
48023         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48024         * tests/unictype/test-pr_dash.c: Likewise.
48025         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48026         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48027         * tests/unictype/test-pr_deprecated.c: Likewise.
48028         * tests/unictype/test-pr_diacritic.c: Likewise.
48029         * tests/unictype/test-pr_extender.c: Likewise.
48030         * tests/unictype/test-pr_format_control.c: Likewise.
48031         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48032         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48033         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48034         * tests/unictype/test-pr_hex_digit.c: Likewise.
48035         * tests/unictype/test-pr_hyphen.c: Likewise.
48036         * tests/unictype/test-pr_id_continue.c: Likewise.
48037         * tests/unictype/test-pr_id_start.c: Likewise.
48038         * tests/unictype/test-pr_ideographic.c: Likewise.
48039         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48040         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48041         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48042         * tests/unictype/test-pr_iso_control.c: Likewise.
48043         * tests/unictype/test-pr_join_control.c: Likewise.
48044         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48045         * tests/unictype/test-pr_line_separator.c: Likewise.
48046         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48047         * tests/unictype/test-pr_lowercase.c: Likewise.
48048         * tests/unictype/test-pr_math.c: Likewise.
48049         * tests/unictype/test-pr_non_break.c: Likewise.
48050         * tests/unictype/test-pr_not_a_character.c: Likewise.
48051         * tests/unictype/test-pr_numeric.c: Likewise.
48052         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48053         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48054         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48055         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48056         * tests/unictype/test-pr_other_id_start.c: Likewise.
48057         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48058         * tests/unictype/test-pr_other_math.c: Likewise.
48059         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48060         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48061         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48062         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48063         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48064         * tests/unictype/test-pr_private_use.c: Likewise.
48065         * tests/unictype/test-pr_punctuation.c: Likewise.
48066         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48067         * tests/unictype/test-pr_radical.c: Likewise.
48068         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48069         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48070         * tests/unictype/test-pr_space.c: Likewise.
48071         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48072         * tests/unictype/test-pr_titlecase.c: Likewise.
48073         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48074         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48075         * tests/unictype/test-pr_uppercase.c: Likewise.
48076         * tests/unictype/test-pr_variation_selector.c: Likewise.
48077         * tests/unictype/test-pr_white_space.c: Likewise.
48078         * tests/unictype/test-pr_xid_continue.c: Likewise.
48079         * tests/unictype/test-pr_xid_start.c: Likewise.
48080         * tests/unictype/test-pr_zero_width.c: Likewise.
48081         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48082         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48083
48084 2007-11-12  Bruno Haible  <bruno@clisp.org>
48085
48086         Unicode character classification functions.
48087         * lib/unictype.h: New file.
48088         * modules/unictype/base: New file.
48089         * modules/unictype/category-L: New file.
48090         * modules/unictype/category-Lu: New file.
48091         * modules/unictype/category-Ll: New file.
48092         * modules/unictype/category-Lt: New file.
48093         * modules/unictype/category-Lm: New file.
48094         * modules/unictype/category-Lo: New file.
48095         * modules/unictype/category-M: New file.
48096         * modules/unictype/category-Mn: New file.
48097         * modules/unictype/category-Mc: New file.
48098         * modules/unictype/category-Me: New file.
48099         * modules/unictype/category-N: New file.
48100         * modules/unictype/category-Nd: New file.
48101         * modules/unictype/category-Nl: New file.
48102         * modules/unictype/category-No: New file.
48103         * modules/unictype/category-P: New file.
48104         * modules/unictype/category-Pc: New file.
48105         * modules/unictype/category-Pd: New file.
48106         * modules/unictype/category-Ps: New file.
48107         * modules/unictype/category-Pe: New file.
48108         * modules/unictype/category-Pi: New file.
48109         * modules/unictype/category-Pf: New file.
48110         * modules/unictype/category-Po: New file.
48111         * modules/unictype/category-S: New file.
48112         * modules/unictype/category-Sm: New file.
48113         * modules/unictype/category-Sc: New file.
48114         * modules/unictype/category-Sk: New file.
48115         * modules/unictype/category-So: New file.
48116         * modules/unictype/category-Z: New file.
48117         * modules/unictype/category-Zs: New file.
48118         * modules/unictype/category-Zl: New file.
48119         * modules/unictype/category-Zp: New file.
48120         * modules/unictype/category-C: New file.
48121         * modules/unictype/category-Cc: New file.
48122         * modules/unictype/category-Cf: New file.
48123         * modules/unictype/category-Cs: New file.
48124         * modules/unictype/category-Co: New file.
48125         * modules/unictype/category-Cn: New file.
48126         * modules/unictype/category-or: New file.
48127         * modules/unictype/category-of: New file.
48128         * modules/unictype/category-test: New file.
48129         * modules/unictype/category-test-withtable: New file.
48130         * modules/unictype/category-byname: New file.
48131         * modules/unictype/category-none: New file.
48132         * modules/unictype/category-and: New file.
48133         * modules/unictype/category-and-not: New file.
48134         * modules/unictype/category-name: New file.
48135         * modules/unictype/combining-class: New file.
48136         * modules/unictype/category-all: New file.
48137         * modules/unictype/bidicategory-all: New file.
48138         * modules/unictype/bidicategory-byname: New file.
48139         * modules/unictype/bidicategory-name: New file.
48140         * modules/unictype/bidicategory-of: New file.
48141         * modules/unictype/bidicategory-test: New file.
48142         * modules/unictype/decimal-digit: New file.
48143         * modules/unictype/digit: New file.
48144         * modules/unictype/numeric: New file.
48145         * modules/unictype/mirror: New file.
48146         * modules/unictype/property-white-space: New file.
48147         * modules/unictype/property-alphabetic: New file.
48148         * modules/unictype/property-other-alphabetic: New file.
48149         * modules/unictype/property-not-a-character: New file.
48150         * modules/unictype/property-default-ignorable-code-point: New file.
48151         * modules/unictype/property-other-default-ignorable-code-point: New
48152         file.
48153         * modules/unictype/property-deprecated: New file.
48154         * modules/unictype/property-logical-order-exception: New file.
48155         * modules/unictype/property-variation-selector: New file.
48156         * modules/unictype/property-private-use: New file.
48157         * modules/unictype/property-unassigned-code-value: New file.
48158         * modules/unictype/property-uppercase: New file.
48159         * modules/unictype/property-other-uppercase: New file.
48160         * modules/unictype/property-lowercase: New file.
48161         * modules/unictype/property-other-lowercase: New file.
48162         * modules/unictype/property-titlecase: New file.
48163         * modules/unictype/property-soft-dotted: New file.
48164         * modules/unictype/property-id-start: New file.
48165         * modules/unictype/property-other-id-start: New file.
48166         * modules/unictype/property-id-continue: New file.
48167         * modules/unictype/property-other-id-continue: New file.
48168         * modules/unictype/property-xid-start: New file.
48169         * modules/unictype/property-xid-continue: New file.
48170         * modules/unictype/property-pattern-white-space: New file.
48171         * modules/unictype/property-pattern-syntax: New file.
48172         * modules/unictype/property-join-control: New file.
48173         * modules/unictype/property-grapheme-base: New file.
48174         * modules/unictype/property-grapheme-extend: New file.
48175         * modules/unictype/property-other-grapheme-extend: New file.
48176         * modules/unictype/property-grapheme-link: New file.
48177         * modules/unictype/property-bidi-control: New file.
48178         * modules/unictype/property-bidi-left-to-right: New file.
48179         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48180         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48181         * modules/unictype/property-bidi-european-digit: New file.
48182         * modules/unictype/property-bidi-eur-num-separator: New file.
48183         * modules/unictype/property-bidi-eur-num-terminator: New file.
48184         * modules/unictype/property-bidi-arabic-digit: New file.
48185         * modules/unictype/property-bidi-common-separator: New file.
48186         * modules/unictype/property-bidi-block-separator: New file.
48187         * modules/unictype/property-bidi-segment-separator: New file.
48188         * modules/unictype/property-bidi-whitespace: New file.
48189         * modules/unictype/property-bidi-non-spacing-mark: New file.
48190         * modules/unictype/property-bidi-boundary-neutral: New file.
48191         * modules/unictype/property-bidi-pdf: New file.
48192         * modules/unictype/property-bidi-embedding-or-override: New file.
48193         * modules/unictype/property-bidi-other-neutral: New file.
48194         * modules/unictype/property-hex-digit: New file.
48195         * modules/unictype/property-ascii-hex-digit: New file.
48196         * modules/unictype/property-ideographic: New file.
48197         * modules/unictype/property-unified-ideograph: New file.
48198         * modules/unictype/property-radical: New file.
48199         * modules/unictype/property-ids-binary-operator: New file.
48200         * modules/unictype/property-ids-trinary-operator: New file.
48201         * modules/unictype/property-zero-width: New file.
48202         * modules/unictype/property-space: New file.
48203         * modules/unictype/property-non-break: New file.
48204         * modules/unictype/property-iso-control: New file.
48205         * modules/unictype/property-format-control: New file.
48206         * modules/unictype/property-dash: New file.
48207         * modules/unictype/property-hyphen: New file.
48208         * modules/unictype/property-punctuation: New file.
48209         * modules/unictype/property-line-separator: New file.
48210         * modules/unictype/property-paragraph-separator: New file.
48211         * modules/unictype/property-quotation-mark: New file.
48212         * modules/unictype/property-sentence-terminal: New file.
48213         * modules/unictype/property-terminal-punctuation: New file.
48214         * modules/unictype/property-currency-symbol: New file.
48215         * modules/unictype/property-math: New file.
48216         * modules/unictype/property-other-math: New file.
48217         * modules/unictype/property-paired-punctuation: New file.
48218         * modules/unictype/property-left-of-pair: New file.
48219         * modules/unictype/property-combining: New file.
48220         * modules/unictype/property-composite: New file.
48221         * modules/unictype/property-decimal-digit: New file.
48222         * modules/unictype/property-numeric: New file.
48223         * modules/unictype/property-diacritic: New file.
48224         * modules/unictype/property-extender: New file.
48225         * modules/unictype/property-ignorable-control: New file.
48226         * modules/unictype/property-test: New file.
48227         * modules/unictype/property-byname: New file.
48228         * modules/unictype/property-all: New file.
48229         * modules/unictype/scripts: New file.
48230         * modules/unictype/scripts-all: New file.
48231         * modules/unictype/block-of: New file.
48232         * modules/unictype/block-test: New file.
48233         * modules/unictype/block-list: New file.
48234         * modules/unictype/block-all: New file.
48235         * modules/unictype/syntax-c-whitespace: New file.
48236         * modules/unictype/syntax-java-whitespace: New file.
48237         * modules/unictype/syntax-c-ident: New file.
48238         * modules/unictype/syntax-java-ident: New file.
48239         * modules/unictype/ctype-alnum: New file.
48240         * modules/unictype/ctype-alpha: New file.
48241         * modules/unictype/ctype-cntrl: New file.
48242         * modules/unictype/ctype-digit: New file.
48243         * modules/unictype/ctype-graph: New file.
48244         * modules/unictype/ctype-lower: New file.
48245         * modules/unictype/ctype-print: New file.
48246         * modules/unictype/ctype-punct: New file.
48247         * modules/unictype/ctype-space: New file.
48248         * modules/unictype/ctype-upper: New file.
48249         * modules/unictype/ctype-xdigit: New file.
48250         * modules/unictype/ctype-blank: New file.
48251         * lib/unictype/bidi_byname.c: New file.
48252         * lib/unictype/bidi_name.c: New file.
48253         * lib/unictype/bidi_of.c: New file.
48254         * lib/unictype/bidi_test.c: New file.
48255         * lib/unictype/bitmap.h: New file.
48256         * lib/unictype/block_test.c: New file.
48257         * lib/unictype/blocks.c: New file.
48258         * lib/unictype/categ_C.c: New file.
48259         * lib/unictype/categ_Cc.c: New file.
48260         * lib/unictype/categ_Cf.c: New file.
48261         * lib/unictype/categ_Cn.c: New file.
48262         * lib/unictype/categ_Co.c: New file.
48263         * lib/unictype/categ_Cs.c: New file.
48264         * lib/unictype/categ_L.c: New file.
48265         * lib/unictype/categ_Ll.c: New file.
48266         * lib/unictype/categ_Lm.c: New file.
48267         * lib/unictype/categ_Lo.c: New file.
48268         * lib/unictype/categ_Lt.c: New file.
48269         * lib/unictype/categ_Lu.c: New file.
48270         * lib/unictype/categ_M.c: New file.
48271         * lib/unictype/categ_Mc.c: New file.
48272         * lib/unictype/categ_Me.c: New file.
48273         * lib/unictype/categ_Mn.c: New file.
48274         * lib/unictype/categ_N.c: New file.
48275         * lib/unictype/categ_Nd.c: New file.
48276         * lib/unictype/categ_Nl.c: New file.
48277         * lib/unictype/categ_No.c: New file.
48278         * lib/unictype/categ_P.c: New file.
48279         * lib/unictype/categ_Pc.c: New file.
48280         * lib/unictype/categ_Pd.c: New file.
48281         * lib/unictype/categ_Pe.c: New file.
48282         * lib/unictype/categ_Pf.c: New file.
48283         * lib/unictype/categ_Pi.c: New file.
48284         * lib/unictype/categ_Po.c: New file.
48285         * lib/unictype/categ_Ps.c: New file.
48286         * lib/unictype/categ_S.c: New file.
48287         * lib/unictype/categ_Sc.c: New file.
48288         * lib/unictype/categ_Sk.c: New file.
48289         * lib/unictype/categ_Sm.c: New file.
48290         * lib/unictype/categ_So.c: New file.
48291         * lib/unictype/categ_Z.c: New file.
48292         * lib/unictype/categ_Zl.c: New file.
48293         * lib/unictype/categ_Zp.c: New file.
48294         * lib/unictype/categ_Zs.c: New file.
48295         * lib/unictype/categ_and.c: New file.
48296         * lib/unictype/categ_and_not.c: New file.
48297         * lib/unictype/categ_byname.c: New file.
48298         * lib/unictype/categ_name.c: New file.
48299         * lib/unictype/categ_none.c: New file.
48300         * lib/unictype/categ_of.c: New file.
48301         * lib/unictype/categ_or.c: New file.
48302         * lib/unictype/categ_test.c: New file.
48303         * lib/unictype/combining.c: New file.
48304         * lib/unictype/ctype_alnum.c: New file.
48305         * lib/unictype/ctype_alpha.c: New file.
48306         * lib/unictype/ctype_blank.c: New file.
48307         * lib/unictype/ctype_cntrl.c: New file.
48308         * lib/unictype/ctype_digit.c: New file.
48309         * lib/unictype/ctype_graph.c: New file.
48310         * lib/unictype/ctype_lower.c: New file.
48311         * lib/unictype/ctype_print.c: New file.
48312         * lib/unictype/ctype_punct.c: New file.
48313         * lib/unictype/ctype_space.c: New file.
48314         * lib/unictype/ctype_upper.c: New file.
48315         * lib/unictype/ctype_xdigit.c: New file.
48316         * lib/unictype/decdigit.c: New file.
48317         * lib/unictype/digit.c: New file.
48318         * lib/unictype/identsyntaxmap.h: New file.
48319         * lib/unictype/mirror.c: New file.
48320         * lib/unictype/numeric.c: New file.
48321         * lib/unictype/pr_alphabetic.c: New file.
48322         * lib/unictype/pr_ascii_hex_digit.c: New file.
48323         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48324         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48325         * lib/unictype/pr_bidi_block_separator.c: New file.
48326         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48327         * lib/unictype/pr_bidi_common_separator.c: New file.
48328         * lib/unictype/pr_bidi_control.c: New file.
48329         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48330         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48331         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48332         * lib/unictype/pr_bidi_european_digit.c: New file.
48333         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48334         * lib/unictype/pr_bidi_left_to_right.c: New file.
48335         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48336         * lib/unictype/pr_bidi_other_neutral.c: New file.
48337         * lib/unictype/pr_bidi_pdf.c: New file.
48338         * lib/unictype/pr_bidi_segment_separator.c: New file.
48339         * lib/unictype/pr_bidi_whitespace.c: New file.
48340         * lib/unictype/pr_byname.c: New file.
48341         * lib/unictype/pr_byname.gperf: New file.
48342         * lib/unictype/pr_combining.c: New file.
48343         * lib/unictype/pr_composite.c: New file.
48344         * lib/unictype/pr_currency_symbol.c: New file.
48345         * lib/unictype/pr_dash.c: New file.
48346         * lib/unictype/pr_decimal_digit.c: New file.
48347         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48348         * lib/unictype/pr_deprecated.c: New file.
48349         * lib/unictype/pr_diacritic.c: New file.
48350         * lib/unictype/pr_extender.c: New file.
48351         * lib/unictype/pr_format_control.c: New file.
48352         * lib/unictype/pr_grapheme_base.c: New file.
48353         * lib/unictype/pr_grapheme_extend.c: New file.
48354         * lib/unictype/pr_grapheme_link.c: New file.
48355         * lib/unictype/pr_hex_digit.c: New file.
48356         * lib/unictype/pr_hyphen.c: New file.
48357         * lib/unictype/pr_id_continue.c: New file.
48358         * lib/unictype/pr_id_start.c: New file.
48359         * lib/unictype/pr_ideographic.c: New file.
48360         * lib/unictype/pr_ids_binary_operator.c: New file.
48361         * lib/unictype/pr_ids_trinary_operator.c: New file.
48362         * lib/unictype/pr_ignorable_control.c: New file.
48363         * lib/unictype/pr_iso_control.c: New file.
48364         * lib/unictype/pr_join_control.c: New file.
48365         * lib/unictype/pr_left_of_pair.c: New file.
48366         * lib/unictype/pr_line_separator.c: New file.
48367         * lib/unictype/pr_logical_order_exception.c: New file.
48368         * lib/unictype/pr_lowercase.c: New file.
48369         * lib/unictype/pr_math.c: New file.
48370         * lib/unictype/pr_non_break.c: New file.
48371         * lib/unictype/pr_not_a_character.c: New file.
48372         * lib/unictype/pr_numeric.c: New file.
48373         * lib/unictype/pr_other_alphabetic.c: New file.
48374         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48375         * lib/unictype/pr_other_grapheme_extend.c: New file.
48376         * lib/unictype/pr_other_id_continue.c: New file.
48377         * lib/unictype/pr_other_id_start.c: New file.
48378         * lib/unictype/pr_other_lowercase.c: New file.
48379         * lib/unictype/pr_other_math.c: New file.
48380         * lib/unictype/pr_other_uppercase.c: New file.
48381         * lib/unictype/pr_paired_punctuation.c: New file.
48382         * lib/unictype/pr_paragraph_separator.c: New file.
48383         * lib/unictype/pr_pattern_syntax.c: New file.
48384         * lib/unictype/pr_pattern_white_space.c: New file.
48385         * lib/unictype/pr_private_use.c: New file.
48386         * lib/unictype/pr_punctuation.c: New file.
48387         * lib/unictype/pr_quotation_mark.c: New file.
48388         * lib/unictype/pr_radical.c: New file.
48389         * lib/unictype/pr_sentence_terminal.c: New file.
48390         * lib/unictype/pr_soft_dotted.c: New file.
48391         * lib/unictype/pr_space.c: New file.
48392         * lib/unictype/pr_terminal_punctuation.c: New file.
48393         * lib/unictype/pr_test.c: New file.
48394         * lib/unictype/pr_titlecase.c: New file.
48395         * lib/unictype/pr_unassigned_code_value.c: New file.
48396         * lib/unictype/pr_unified_ideograph.c: New file.
48397         * lib/unictype/pr_uppercase.c: New file.
48398         * lib/unictype/pr_variation_selector.c: New file.
48399         * lib/unictype/pr_white_space.c: New file.
48400         * lib/unictype/pr_xid_continue.c: New file.
48401         * lib/unictype/pr_xid_start.c: New file.
48402         * lib/unictype/pr_zero_width.c: New file.
48403         * lib/unictype/scripts.c: New file.
48404         * lib/unictype/sy_c_ident.c: New file.
48405         * lib/unictype/sy_c_whitespace.c: New file.
48406         * lib/unictype/sy_java_ident.c: New file.
48407         * lib/unictype/sy_java_whitespace.c: New file.
48408
48409         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48410         Unicode 5.0.0.
48411         * lib/unictype/blocks.h: Likewise.
48412         * lib/unictype/categ_C.h: Likewise.
48413         * lib/unictype/categ_Cc.h: Likewise.
48414         * lib/unictype/categ_Cf.h: Likewise.
48415         * lib/unictype/categ_Cn.h: Likewise.
48416         * lib/unictype/categ_Co.h: Likewise.
48417         * lib/unictype/categ_Cs.h: Likewise.
48418         * lib/unictype/categ_L.h: Likewise.
48419         * lib/unictype/categ_Ll.h: Likewise.
48420         * lib/unictype/categ_Lm.h: Likewise.
48421         * lib/unictype/categ_Lo.h: Likewise.
48422         * lib/unictype/categ_Lt.h: Likewise.
48423         * lib/unictype/categ_Lu.h: Likewise.
48424         * lib/unictype/categ_M.h: Likewise.
48425         * lib/unictype/categ_Mc.h: Likewise.
48426         * lib/unictype/categ_Me.h: Likewise.
48427         * lib/unictype/categ_Mn.h: Likewise.
48428         * lib/unictype/categ_N.h: Likewise.
48429         * lib/unictype/categ_Nd.h: Likewise.
48430         * lib/unictype/categ_Nl.h: Likewise.
48431         * lib/unictype/categ_No.h: Likewise.
48432         * lib/unictype/categ_P.h: Likewise.
48433         * lib/unictype/categ_Pc.h: Likewise.
48434         * lib/unictype/categ_Pd.h: Likewise.
48435         * lib/unictype/categ_Pe.h: Likewise.
48436         * lib/unictype/categ_Pf.h: Likewise.
48437         * lib/unictype/categ_Pi.h: Likewise.
48438         * lib/unictype/categ_Po.h: Likewise.
48439         * lib/unictype/categ_Ps.h: Likewise.
48440         * lib/unictype/categ_S.h: Likewise.
48441         * lib/unictype/categ_Sc.h: Likewise.
48442         * lib/unictype/categ_Sk.h: Likewise.
48443         * lib/unictype/categ_Sm.h: Likewise.
48444         * lib/unictype/categ_So.h: Likewise.
48445         * lib/unictype/categ_Z.h: Likewise.
48446         * lib/unictype/categ_Zl.h: Likewise.
48447         * lib/unictype/categ_Zp.h: Likewise.
48448         * lib/unictype/categ_Zs.h: Likewise.
48449         * lib/unictype/categ_of.h: Likewise.
48450         * lib/unictype/combining.h: Likewise.
48451         * lib/unictype/ctype_alnum.h: Likewise.
48452         * lib/unictype/ctype_alpha.h: Likewise.
48453         * lib/unictype/ctype_blank.h: Likewise.
48454         * lib/unictype/ctype_cntrl.h: Likewise.
48455         * lib/unictype/ctype_digit.h: Likewise.
48456         * lib/unictype/ctype_graph.h: Likewise.
48457         * lib/unictype/ctype_lower.h: Likewise.
48458         * lib/unictype/ctype_print.h: Likewise.
48459         * lib/unictype/ctype_punct.h: Likewise.
48460         * lib/unictype/ctype_space.h: Likewise.
48461         * lib/unictype/ctype_upper.h: Likewise.
48462         * lib/unictype/ctype_xdigit.h: Likewise.
48463         * lib/unictype/decdigit.h: Likewise.
48464         * lib/unictype/digit.h: Likewise.
48465         * lib/unictype/mirror.h: Likewise.
48466         * lib/unictype/numeric.h: Likewise.
48467         * lib/unictype/pr_alphabetic.h: Likewise.
48468         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48469         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48470         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48471         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48472         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48473         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48474         * lib/unictype/pr_bidi_control.h: Likewise.
48475         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48476         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48477         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48478         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48479         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48480         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48481         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48482         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48483         * lib/unictype/pr_bidi_pdf.h: Likewise.
48484         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48485         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48486         * lib/unictype/pr_combining.h: Likewise.
48487         * lib/unictype/pr_composite.h: Likewise.
48488         * lib/unictype/pr_currency_symbol.h: Likewise.
48489         * lib/unictype/pr_dash.h: Likewise.
48490         * lib/unictype/pr_decimal_digit.h: Likewise.
48491         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48492         * lib/unictype/pr_deprecated.h: Likewise.
48493         * lib/unictype/pr_diacritic.h: Likewise.
48494         * lib/unictype/pr_extender.h: Likewise.
48495         * lib/unictype/pr_format_control.h: Likewise.
48496         * lib/unictype/pr_grapheme_base.h: Likewise.
48497         * lib/unictype/pr_grapheme_extend.h: Likewise.
48498         * lib/unictype/pr_grapheme_link.h: Likewise.
48499         * lib/unictype/pr_hex_digit.h: Likewise.
48500         * lib/unictype/pr_hyphen.h: Likewise.
48501         * lib/unictype/pr_id_continue.h: Likewise.
48502         * lib/unictype/pr_id_start.h: Likewise.
48503         * lib/unictype/pr_ideographic.h: Likewise.
48504         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48505         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48506         * lib/unictype/pr_ignorable_control.h: Likewise.
48507         * lib/unictype/pr_iso_control.h: Likewise.
48508         * lib/unictype/pr_join_control.h: Likewise.
48509         * lib/unictype/pr_left_of_pair.h: Likewise.
48510         * lib/unictype/pr_line_separator.h: Likewise.
48511         * lib/unictype/pr_logical_order_exception.h: Likewise.
48512         * lib/unictype/pr_lowercase.h: Likewise.
48513         * lib/unictype/pr_math.h: Likewise.
48514         * lib/unictype/pr_non_break.h: Likewise.
48515         * lib/unictype/pr_not_a_character.h: Likewise.
48516         * lib/unictype/pr_numeric.h: Likewise.
48517         * lib/unictype/pr_other_alphabetic.h: Likewise.
48518         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48519         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48520         * lib/unictype/pr_other_id_continue.h: Likewise.
48521         * lib/unictype/pr_other_id_start.h: Likewise.
48522         * lib/unictype/pr_other_lowercase.h: Likewise.
48523         * lib/unictype/pr_other_math.h: Likewise.
48524         * lib/unictype/pr_other_uppercase.h: Likewise.
48525         * lib/unictype/pr_paired_punctuation.h: Likewise.
48526         * lib/unictype/pr_paragraph_separator.h: Likewise.
48527         * lib/unictype/pr_pattern_syntax.h: Likewise.
48528         * lib/unictype/pr_pattern_white_space.h: Likewise.
48529         * lib/unictype/pr_private_use.h: Likewise.
48530         * lib/unictype/pr_punctuation.h: Likewise.
48531         * lib/unictype/pr_quotation_mark.h: Likewise.
48532         * lib/unictype/pr_radical.h: Likewise.
48533         * lib/unictype/pr_sentence_terminal.h: Likewise.
48534         * lib/unictype/pr_soft_dotted.h: Likewise.
48535         * lib/unictype/pr_space.h: Likewise.
48536         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48537         * lib/unictype/pr_titlecase.h: Likewise.
48538         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48539         * lib/unictype/pr_unified_ideograph.h: Likewise.
48540         * lib/unictype/pr_uppercase.h: Likewise.
48541         * lib/unictype/pr_variation_selector.h: Likewise.
48542         * lib/unictype/pr_white_space.h: Likewise.
48543         * lib/unictype/pr_xid_continue.h: Likewise.
48544         * lib/unictype/pr_xid_start.h: Likewise.
48545         * lib/unictype/pr_zero_width.h: Likewise.
48546         * lib/unictype/scripts.h: Likewise.
48547         * lib/unictype/scripts_byname.gperf: Likewise.
48548         * lib/unictype/sy_c_ident.h: Likewise.
48549         * lib/unictype/sy_c_whitespace.h: Likewise.
48550         * lib/unictype/sy_java_ident.h: Likewise.
48551         * lib/unictype/sy_java_whitespace.h: Likewise.
48552
48553         * lib/unictype/Makefile: New file.
48554         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48555         glibc.
48556         * lib/unictype/3level.h: New file, copied from glibc.
48557         * lib/unictype/3levelbit.h: New file.
48558
48559 2007-11-11  Bruno Haible  <bruno@clisp.org>
48560
48561         * modules/gperf: New file.
48562         * modules/iconv_open (Depends-on): Add it.
48563         (Makefile.am): Remove the GPERF definition.
48564
48565 2007-11-11  Bruno Haible  <bruno@clisp.org>
48566
48567         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48568         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48569
48570 2007-11-11  Bruno Haible  <bruno@clisp.org>
48571
48572         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48573         (usage): Remove function.
48574
48575 2007-11-11  Bruno Haible  <bruno@clisp.org>
48576
48577         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48578         gl_FUNC_CEILF_LIBS.
48579         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48580         gl_FUNC_CEIL_LIBS.
48581         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48582         gl_FUNC_CEILL_LIBS.
48583         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48584         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48585         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48586
48587 2007-11-11  Bruno Haible  <bruno@clisp.org>
48588
48589         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48590         roundf were declared but do not exist on functions.
48591         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48592         roundl were declared but do not exist on functions.
48593         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48594         HAVE_FLOORL_AND_CEILL, respectively.
48595         Needed for Sun C on Solaris 10.
48596
48597 2007-11-11  Bruno Haible  <bruno@clisp.org>
48598
48599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48600         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48601         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48602         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48604         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48605         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48606         HAVE_DECL_ROUNDF.
48607         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48608         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48610         of HAVE_DECL_ROUND*.
48611         * modules/math (Makefile.am): Update.
48612
48613 2007-11-10  Bruno Haible  <bruno@clisp.org>
48614
48615         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48616         ptrdiff_t as m4/intl.m4.
48617
48618 2007-11-10  Jim Meyering  <meyering@redhat.com>
48619
48620         Avoid link failure for the argmatch test.
48621         * tests/test-argmatch.c (usage): Define function to avoid a link
48622         failure: argmatch_die requires a usage function.
48623
48624 2007-11-09  Bruno Haible  <bruno@clisp.org>
48625
48626         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48627         * doc/functions/vsnprintf.texi: Likewise.
48628         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48629         with a size argument < 2.
48630
48631 2007-11-09  Bruno Haible  <bruno@clisp.org>
48632
48633         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48634         buffer. Fixes an inefficiency introduced on 2007-11-03.
48635
48636 2007-11-09  Bruno Haible  <bruno@clisp.org>
48637
48638         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48639         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48640
48641 2007-11-08  Jim Meyering  <meyering@redhat.com>
48642
48643         Change cache variable name prefix "jm_" to "gl_" everywhere.
48644         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48645         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48646         * m4/uptime.m4: s/gl_/jm_/
48647
48648 2007-11-07  Bruno Haible  <bruno@clisp.org>
48649
48650         Update to GNU gettext 0.17.
48651         * m4/intl.m4: Update to GNU gettext 0.17.
48652         * m4/po.m4: Likewise.
48653         * modules/gettext (Files): Remove m4/ulonglong.m4.
48654         (configure.ac): Require gettext infrastructure from version 0.17.
48655
48656 2007-11-06  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48659         symbolic values are not defined in a public header.
48660         * lib/freadable.c (freadable) [QNX]: Likewise.
48661         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48662         * lib/freading.c (freading) [QNX]: Likewise.
48663         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48664         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48665         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48666         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48667         Reported by Alain Magloire.
48668
48669         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48670
48671 2007-11-05  Bruno Haible  <bruno@clisp.org>
48672
48673         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48674         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48675         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48676         Reported by Eric Blake.
48677
48678 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48679             Bruno Haible  <bruno@clisp.org>
48680
48681         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48682         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48683         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48684         (malloc): Undefine also before including <stdlib.h>.
48685         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48686         Needed on OSF/1 4.0.
48687
48688 2007-11-05  Jim Meyering  <meyering@redhat.com>
48689
48690         git-version-gen: sync from coreutils.
48691         * build-aux/git-version-gen: Add comments.
48692         Change the first '-' to '.' in the snapshot version string,
48693         e.g., 6.9-377-08144 -> 6.9.377-08144
48694         Remove first parameter.
48695         Don't declare a version "-dirty" merely because a time
48696         stamp has changed.
48697
48698 2007-11-04  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/lock.h: Protect all macro definitions containing an 'if'
48701         statement through a "do { ... } while (0)".
48702         * lib/tls.h: Likewise.
48703
48704 2007-11-04  Bruno Haible  <bruno@clisp.org>
48705
48706         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48707
48708 2007-11-04  Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48711         * modules/fprintf-posix (Depends-on): Add nocrash.
48712         * modules/snprintf-posix (Depends-on): Likewise.
48713         * modules/sprintf-posix (Depends-on): Likewise.
48714         * modules/vasnprintf-posix (Depends-on): Likewise.
48715         * modules/vasprintf-posix (Depends-on): Likewise.
48716         * modules/vfprintf-posix (Depends-on): Likewise.
48717         * modules/vsnprintf-posix (Depends-on): Likewise.
48718         * modules/vsprintf-posix (Depends-on): Likewise.
48719         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48720         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48721         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48722         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48723         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48724         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48725         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48726
48727 2007-11-04  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/nocrash: New file.
48730         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48731         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48732
48733 2007-11-04  Bruno Haible  <bruno@clisp.org>
48734
48735         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48736         precision handling.
48737         * tests/test-vasprintf-posix.c (test_function): Likewise.
48738         * tests/test-snprintf-posix.h (test_function): Likewise.
48739         * tests/test-sprintf-posix.h (test_function): Likewise.
48740
48741         Fix *printf behaviour for large precisions on mingw and BeOS.
48742         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48743         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48745         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48746         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48747         gl_PRINTF_PRECISION and test its result. Invoke
48748         gl_PREREQ_VASNPRINTF_PRECISION.
48749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48756         * doc/functions/fprintf.texi: Update.
48757         * doc/functions/printf.texi: Update.
48758         * doc/functions/snprintf.texi: Update.
48759         * doc/functions/sprintf.texi: Update.
48760         * doc/functions/vfprintf.texi: Update.
48761         * doc/functions/vprintf.texi: Update.
48762         * doc/functions/vsnprintf.texi: Update.
48763         * doc/functions/vsprintf.texi: Update.
48764
48765 2007-11-04  Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48768
48769 2007-11-04  Bruno Haible  <bruno@clisp.org>
48770
48771         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48772         Reported by Sylvain Beucler <beuc@gnu.org>.
48773
48774 2007-11-03  Bruno Haible  <bruno@clisp.org>
48775
48776         * tests/test-fprintf-posix2.sh: New file.
48777         * tests/test-fprintf-posix2.c: New file.
48778         * modules/fprintf-posix-tests (Files): Add them.
48779         (TESTS): Add test-fprintf-posix2.sh.
48780         (configure.ac): Check for getrlimit and setrlimit.
48781         (check_PROGRAMS): Add test-fprintf-posix2.
48782
48783         * tests/test-printf-posix2.sh: New file.
48784         * tests/test-printf-posix2.c: New file.
48785         * modules/printf-posix-tests (Files): Add them.
48786         (TESTS): Add test-printf-posix2.sh.
48787         (configure.ac): Check for getrlimit and setrlimit.
48788         (check_PROGRAMS): Add test-printf-posix2.
48789
48790         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48791         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48792         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48793         (decode_double): New function, copied from decode_long_double.
48794         (scale10_round_decimal_decoded): New function, extracted from
48795         scale10_round_decimal_long_double.
48796         (scale10_round_decimal_long_double): Use it.
48797         (scale10_round_decimal_double): New function.
48798         (floorlog10): New function.
48799         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48801         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48802         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48803         gl_PRINTF_ENOMEM and test its result. Invoke
48804         gl_PREREQ_VASNPRINTF_ENOMEM.
48805         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48806         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48807         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48808         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48809         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48811         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48812         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48813         * modules/snprintf-posix (Depends-on): Likewise.
48814         * modules/sprintf-posix (Depends-on): Likewise.
48815         * modules/vasnprintf-posix (Depends-on): Likewise.
48816         * modules/vasprintf-posix (Depends-on): Likewise.
48817         * modules/vfprintf-posix (Depends-on): Likewise.
48818         * modules/vsnprintf-posix (Depends-on): Likewise.
48819         * modules/vsprintf-posix (Depends-on): Likewise.
48820         * doc/functions/fprintf.texi: Update.
48821         * doc/functions/printf.texi: Update.
48822         * doc/functions/snprintf.texi: Update.
48823         * doc/functions/sprintf.texi: Update.
48824         * doc/functions/vfprintf.texi: Update.
48825         * doc/functions/vprintf.texi: Update.
48826         * doc/functions/vsnprintf.texi: Update.
48827         * doc/functions/vsprintf.texi: Update.
48828
48829 2007-11-03  Bruno Haible  <bruno@clisp.org>
48830
48831         * modules/frexp-nolibm-tests: New file.
48832
48833         * modules/frexp-nolibm: New file.
48834         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48835
48836 2007-11-03  Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48839         value is C99 compliant.
48840         Needed for OSF/1 5.1.
48841
48842 2007-11-03  Bruno Haible  <bruno@clisp.org>
48843
48844         Fix out-of-memory handling of vasnprintf.
48845         * lib/printf-parse.c: Include <errno.h>.
48846         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48847         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48848         is already set.
48849
48850 2007-11-02  Eric Blake  <ebb9@byu.net>
48851
48852         Fix tests on cygwin.
48853         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48854
48855 2007-11-01  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48858         warning.
48859         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48860         needed for POSIX compatibility.
48861
48862 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48865         for compatibility with GNU.
48866
48867 2007-11-01  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48870         (putenv): Renamed from rpl_putenv. Change argument type from
48871         'const char *' to 'char *'.
48872         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48873         of defining putenv in config.h, just set REPLACE_PUTENV.
48874         * modules/putenv (Depends-on): Add stdlib.
48875         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48876         (Include): Use <stdlib.h>.
48877         * lib/stdlib.in.h (putenv): New declaration.
48878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48879         REPLACE_PUTENV.
48880         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48881         REPLACE_PUTENV.
48882         Needed for MacOS X 10.5.0.
48883         Reported by Peter O'Gorman <peter@pogma.com>.
48884
48885 2007-11-01  Jim Meyering  <meyering@redhat.com>
48886
48887         Treat an empty date string exactly like "0".
48888         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48889         if the remaining date string (to be parsed) is empty, use "0".
48890         Reported by Mischa Molhoek and discussed in this thread:
48891         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48892
48893 2007-10-31  Bruno Haible  <bruno@clisp.org>
48894
48895         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48896         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48897         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48898         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48899         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48900         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48901
48902 2007-10-31  Bruno Haible  <bruno@clisp.org>
48903
48904         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48905         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48906         (AC_TYPE_LONG_LONG_INT): Use it.
48907         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48908         it as well.
48909         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48910         to m4/longlong.m4.
48911         * modules/stdint (Files): Remove m4/ulonglong.m4.
48912         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48913         m4/ulonglong.m4.
48914         * modules/strtoumax (Files): Likewise.
48915
48916 2007-10-30  Bruno Haible  <bruno@clisp.org>
48917
48918         * modules/xvasprintf-posix: New file.
48919         Suggested by Eric Blake.
48920
48921 2007-10-30  Bruno Haible  <bruno@clisp.org>
48922
48923         * modules/xprintf-posix-tests: New file.
48924         * tests/test-xprintf-posix.sh: New file.
48925         * tests/test-xprintf-posix.c: New file.
48926         * tests/test-xfprintf-posix.c: New file.
48927
48928         * modules/xprintf-posix: New file.
48929
48930 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48931
48932         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48933         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48934         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48935
48936 2007-10-29  Bruno Haible  <bruno@clisp.org>
48937
48938         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48939         contain the special marker '_cv_'.
48940         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48941         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48942         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48943         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48944         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48945         Reported by Ralf Wildenhues.
48946
48947 2007-10-29  Bruno Haible  <bruno@clisp.org>
48948
48949         * gnulib-tool (func_import): When --lgpl is not specified, set
48950         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48951         GPLv3.
48952         Reported by Simon Josefsson.
48953
48954 2007-10-28  Bruno Haible  <bruno@clisp.org>
48955
48956         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48957         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48958         HAVE_DECL_ISFINITE.
48959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48960         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48961         HAVE_DECL_ISFINITE.
48962
48963 2007-10-28  Bruno Haible  <bruno@clisp.org>
48964
48965         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48966         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48967
48968 2007-10-28  Bruno Haible  <bruno@clisp.org>
48969
48970         Fix link errors with Sun C 5.0 on Solaris 10.
48971         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48972         function is declared but not present in the compiler's libm.
48973         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48974         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48975         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48976         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48977         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48978         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48979         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48981         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48982         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48983         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48984         HAVE_DECL_FLOORL.
48985
48986 2007-10-28  Bruno Haible  <bruno@clisp.org>
48987
48988         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48989         gl_FUNC_FLOORL. Cache the result.
48990         (gl_FUNC_FLOORL): Use it.
48991         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48992         gl_FUNC_CEILL. Cache the result.
48993         (gl_FUNC_CEILL): Use it.
48994
48995         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48996         gl_FUNC_FLOOR. Cache the result.
48997         (gl_FUNC_FLOOR): Use it.
48998         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48999         gl_FUNC_CEIL. Cache the result.
49000         (gl_FUNC_CEIL): Use it.
49001
49002         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49003         gl_FUNC_FLOORF. Cache the result.
49004         (gl_FUNC_FLOORF): Use it.
49005         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49006         gl_FUNC_CEILF. Cache the result.
49007         (gl_FUNC_CEILF): Use it.
49008
49009 2007-10-28  Bruno Haible  <bruno@clisp.org>
49010
49011         * gnulib-tool: Allow specifying the LGPL version number through
49012         --lgpl=2 or --lgpl=3.
49013         (func_usage): Document --lgpl with argument.
49014         Handle --lgpl=... arguments.
49015         (func_import): Recognize also gl_LGPL calls with an argument. When
49016         --lgpl=2 is used and the module's license is just LGPL, report an
49017         error. Set sed_transform_lib_file according to the lgpl variable. In
49018         the generated files, use --lgpl or gl_LGPL invocations with argument,
49019         if necessary.
49020         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49021         an LGPv2+ license.
49022         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49023         gl_LGPL macro.
49024
49025 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49026             Bruno Haible  <bruno@clisp.org>
49027
49028         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49029         (u16_uctomb_aux): Likewise.
49030         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49031         !HAVE_INLINE.
49032         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49033
49034 2007-10-28  Bruno Haible  <bruno@clisp.org>
49035
49036         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49037         Invoke AM_GETTEXT_OPTION if it exists.
49038         * modules/vasprintf: Likewise.
49039         * modules/verror: Likewise.
49040         * modules/xprintf: Likewise.
49041         * modules/xvasprintf: Likewise.
49042
49043 2007-10-27  Ben Pfaff  <blp@gnu.org>
49044
49045         * lib/math.in.h: Define isfinite macro and prototypes for
49046         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49047         implementations.
49048         * m4/math_h.m4: New substitutions for isfinite module.
49049         * lib/isfinite.c: New file.
49050         * m4/isfinite.m4: New file.
49051         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49052         * modules/isfinite: New file.
49053         * modules/isfinite-tests: New file.
49054         * tests/tests-isfinite.c: New file.
49055         * doc/functions/isfinite.texi: Mention isfinite module.
49056         * MODULES.html.sh: Mention new module.
49057
49058 2007-10-27  Ben Pfaff  <blp@gnu.org>
49059
49060         Ralf Wildenhues reported that Tru64 4.0D declares the round
49061         functions but does not have definitions.
49062         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49063         cannot be found in any library, set the output variable to
49064         "missing" instead of "".
49065         * m4/round.m4: Also use our substitute if we cannot find round in
49066         any library, even if it is declared.
49067         * m4/roundf.m4: Likewise for roundf.
49068         * m4/roundl.m4: Likewise for roundl.
49069         * lib/math.in.h: Undefine roundf, round, roundl before defining
49070         their replacements, to allow for hypothetical systems where these
49071         may be defined as macros but not available in libraries.
49072
49073 2007-10-27  Bruno Haible  <bruno@clisp.org>
49074
49075         * doc/gnulib.texi: Invoke @firstparagraphindent.
49076         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49077         changes in gnulib.
49078         (Source changes): New section.
49079
49080 2007-10-26  Bruno Haible  <bruno@clisp.org>
49081
49082         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49083         borrowed from autoconf.
49084
49085 2007-10-26  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49088         strerror returned the empty string. Needed on HP-UX 11.00.
49089
49090 2007-10-24  Micah Cowan  <micah@cowan.name>
49091
49092         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49093         * build-aux/bootstrap: Remove support for now-unnecessary option,
49094         --cvs-user, and envvars CVS_USER, CVS_RSH.
49095
49096 2007-10-24  Jim Meyering  <meyering@redhat.com>
49097
49098         Avoid diagnostics from sha1sum when there is no cached checksum.
49099         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49100         if the po.s1 file hasn't been created yet.
49101
49102         * build-aux/bootstrap: Sync from coreutils:
49103         2007-10-24  Jim Meyering  <meyering@redhat.com>
49104         Get gnulib from the git repository, not from an obsolete cvs one.
49105         * build-aux/bootstrap: Suggestion from Micah Cowan.
49106         2007-10-04  Jim Meyering  <jim@meyering.net>
49107         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49108         (update_po_files): Work also when there are no .po files in po/.
49109
49110 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49111
49112         * README: Append ".git" to git and cg examples.
49113         Problem reported by Benoit Sigoure.
49114
49115 2007-10-23  Micah Cowan  <micah@cowan.name>
49116
49117         * users.txt: Add wget.
49118
49119 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49120
49121         Fix linking of some unistdio tests on FreeBSD.
49122         * modules/unistdio/u16-vsnprintf-tests
49123         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49124         * modules/unistdio/u16-vsprintf-tests
49125         (test_u16_vsnprintf1_LDADD): Likewise.
49126         * modules/unistdio/u32-vsnprintf-tests
49127         (test_u32_vsnprintf1_LDADD): Likewise.
49128         * modules/unistdio/u32-vsprintf-tests
49129         (test_u32_vsprintf1_LDADD): Likewise.
49130         * modules/unistdio/u8-vsnprintf-tests
49131         (test_u8_vsnprintf1_LDADD): Likewise.
49132         * modules/unistdio/u8-vsprintf-tests
49133         (test_u8_vsprintf1_LDADD): Likewise.
49134         * modules/unistdio/ulc-vsnprintf-tests
49135         (test_ulc_vsnprintf1_LDADD): Likewise.
49136         * modules/unistdio/ulc-vsprintf-tests
49137         (test_ulc_vsprintf1_LDADD): Likewise.
49138
49139         Fix linking of some uniconv tests on FreeBSD.
49140         * modules/uniconv/u16-conv-from-enc-tests
49141         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49142         * modules/uniconv/u16-conv-to-enc-tests
49143         (test_u16_conv_to_enc_LDADD): Likewise.
49144         * modules/uniconv/u16-strconv-from-enc-tests
49145         (test_u16_strconv_from_enc_LDADD): Likewise.
49146         * modules/uniconv/u16-strconv-to-enc-tests
49147         (test_u16_strconv_to_enc_LDADD): Likewise.
49148         * modules/uniconv/u32-conv-from-enc-tests
49149         (test_u32_conv_from_enc_LDADD): Likewise.
49150         * modules/uniconv/u32-conv-to-enc-tests
49151         (test_u32_conv_to_enc_LDADD): Likewise.
49152         * modules/uniconv/u32-strconv-from-enc-tests
49153         (test_u32_strconv_from_enc_LDADD): Likewise.
49154         * modules/uniconv/u32-strconv-to-enc-tests
49155         (test_u32_strconv_to_enc_LDADD): Likewise.
49156         * modules/uniconv/u8-conv-from-enc-tests
49157         (test_u8_conv_from_enc_LDADD): Likewise.
49158         * modules/uniconv/u8-conv-to-enc-tests
49159         (test_u8_conv_to_enc_LDADD): Likewise.
49160         * modules/uniconv/u8-strconv-from-enc-tests
49161         (test_u8_strconv_from_enc_LDADD): Likewise.
49162         * modules/uniconv/u8-strconv-to-enc-tests
49163         (test_u8_strconv_to_enc_LDADD): Likewise.
49164
49165 2007-10-22  Bruno Haible  <bruno@clisp.org>
49166
49167         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49168         size.
49169
49170 2007-10-22  Eric Blake  <ebb9@byu.net>
49171
49172         Tweak x*printf documentation.
49173         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49174         variable name and comments.
49175         Suggested by Bruno Haible.
49176
49177 2007-10-22  Bruno Haible  <bruno@clisp.org>
49178
49179         * lib/acl.c (copy_acl): Fix file name in comment.
49180
49181 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49182
49183         Fix Tru64 problem with stdbool.h.
49184         * lib/stdbool.in.h (false, true):
49185         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49186         Don't declare as an enum in this situation; it runs afoul of Tru64.
49187         Problem reported by Steven M. Schweda in
49188         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49189
49190 2007-10-22  Eric Blake  <ebb9@byu.net>
49191
49192         Also wrap vf?printf.
49193         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49194         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49195         (xvprintf, xvfprintf): New functions.
49196
49197 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49198
49199         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49200         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49201
49202         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49203         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49204
49205 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49206
49207         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49208         by Bruno Haible.
49209
49210 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49211
49212         * lib/getloadavg.c
49213         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49214         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49215
49216         * tests/test-i-ring.c: Work for C89.
49217
49218 2007-10-22  Bruno Haible  <bruno@clisp.org>
49219
49220         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49221         -1u, in preprocessor expression, so that we don't test for the bug
49222         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49224
49225 2007-10-22  Eric Blake  <ebb9@byu.net>
49226
49227         * tests/test-yesno.sh: Silence stderr during test.
49228
49229 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49230
49231         * modules/crypto/gc-camellia: New file.
49232
49233         * m4/gc-camellia.m4: New file.
49234
49235         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49236
49237         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49238
49239 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49240
49241         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49242         --help to stdout.  Reported by sms@antinode.org (Steven
49243         M. Schweda).
49244
49245 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49246
49247         * users.txt: Fix link to libksba.
49248
49249 2007-10-21  Ben Pfaff  <blp@gnu.org>
49250
49251         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49252         round.c roundf implementation that depends on floorf and ceilf to
49253         be tested unconditionally.
49254
49255 2007-10-21  Ben Pfaff  <blp@gnu.org>
49256
49257         * m4/check-libm-func.m4: Removed.
49258         * m4/check-math-lib.m4: New file.
49259         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49260         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49261         definition and lack of AC_LIBOBJ([roundf]).
49262         * m4/roundl.m4: Ditto, and similarly for roundl.
49263         * modules/round: Reference new m4 file.
49264         * modules/roundf: Ditto.
49265         * modules/roundl: Ditto.
49266         * tests/test-round2.c (main): Use ROUND instead of round.
49267         Bug report from Bruno Haible.
49268
49269 2007-10-21  Bruno Haible  <bruno@clisp.org>
49270
49271         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49272         context.
49273
49274 2007-10-21  Bruno Haible  <bruno@clisp.org>
49275
49276         * tests/test-wcwidth.c (main): Allow negative result for some control
49277         characters.
49278
49279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49280         Needed on OSF/1 5.1.
49281
49282 2007-10-21  Bruno Haible  <bruno@clisp.org>
49283
49284         * tests/test-floorf1.c: Include isnanf.h.
49285         (main): Use isnanf() instead of isnan().
49286         * tests/test-ceilf1.c: Include isnanf.h.
49287         (main): Use isnanf() instead of isnan().
49288         * tests/test-truncf1.c: Include isnanf.h.
49289         (main): Use isnanf() instead of isnan().
49290         * tests/test-roundf1.c: Include isnanf.h.
49291         (main): Use isnanf() instead of isnan().
49292
49293 2007-10-21  Eric Blake  <ebb9@byu.net>
49294
49295         * users.txt: Update URL for m4.
49296
49297 2007-10-21  Bruno Haible  <bruno@clisp.org>
49298
49299         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49300
49301 2007-10-21  Bruno Haible  <bruno@clisp.org>
49302
49303         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49304         Git's management files if the CVS files are not present.
49305
49306 2007-10-20  Bruno Haible  <bruno@clisp.org>
49307
49308         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49309         gcc-3.4.x.
49310
49311 2007-10-20  Ben Pfaff  <blp@gnu.org>
49312
49313         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49314         implementations.
49315         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49316         * lib/round.c: New file.
49317         * lib/roundf.c: New file.
49318         * lib/roundl.c: New file.
49319         * m4/round.m4: New file.
49320         * m4/roundf.m4: New file.
49321         * m4/roundl.m4: New file.
49322         * m4/check-libm-func-m4: New file.
49323         * modules/math: Replace round, roundf, roundl related @VARS@ in
49324         math.in.h.
49325         * modules/round: New file.
49326         * modules/round-tests: New file.
49327         * modules/roundf: New file.
49328         * modules/roundf-tests: New file.
49329         * modules/roundl: New file.
49330         * modules/roundl-tests: New file.
49331         * tests/test-round1.c: New file.
49332         * tests/test-round2.c: New file.
49333         * tests/test-roundf1.c: New file.
49334         * tests/test-roundf2.c: New file.
49335         * tests/test-roundl.c: New file.
49336         * doc/functions/round.texi: Mention round module.
49337         * doc/functions/roundf.texi: Mention roundf module.
49338         * doc/functions/roundl.texi: Mention roundl module.
49339         * MODULES.html.sh: Mention new modules.
49340         Thanks to Bruno Haible for suggestions.
49341
49342 2007-10-20  Jim Meyering  <meyering@redhat.com>
49343
49344         * lib/xprintf.c: Include <config.h> unconditionally.
49345
49346         Change xprintf's license to GPL.
49347         * modules/xprintf (License): s/LGPL/GPL/, since this module
49348         depends on modules (exit and exitfail) which are GPL.
49349         Suggestion from Bruno Haible.
49350
49351         xprintf fixes.
49352         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49353         Use a clearer diagnostic.
49354         Patch from Bruno Haible.
49355
49356 2007-10-20  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49359         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49361
49362 2007-10-20  Bruno Haible  <bruno@clisp.org>
49363
49364         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49365         precision in the comparison result > x - 1 or similar.
49366         * tests/test-ceilf2.c (correct_result_p): Likewise.
49367         * tests/test-truncf2.c (correct_result_p): Likewise.
49368         * tests/test-trunc2.c (correct_result_p): Likewise.
49369         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49370
49371 2007-10-20  Bruno Haible  <bruno@clisp.org>
49372
49373         * modules/ceil: New file.
49374         * m4/ceil.m4: New file.
49375         * doc/functions/ceil.texi: Mention the 'ceil' module.
49376
49377 2007-10-20  Bruno Haible  <bruno@clisp.org>
49378
49379         * modules/floor: New file.
49380         * m4/floor.m4: New file.
49381         * doc/functions/floor.texi: Mention the 'floor' module.
49382
49383 2007-10-20  Bruno Haible  <bruno@clisp.org>
49384
49385         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49386         of %a.
49387         * modules/floorf-tests (Depends-on): Likewise.
49388         * modules/truncf-tests (Depends-on): Likewise.
49389         * modules/trunc-tests (Depends-on): Likewise.
49390         Reported by Ben Pfaff.
49391
49392 2007-10-19  Jim Meyering  <meyering@redhat.com>
49393
49394         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49395         Don't bother testing specific errno values.  Just test ferror.
49396
49397         New module: xprintf
49398         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49399
49400 2007-10-19  Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49403         syntax.
49404         * modules/javaexec (Makefile.am): Likewise.
49405         * modules/relocatable-prog (Makefile.am): Likewise.
49406         Suggested by Jim Meyering.
49407
49408 2007-10-18  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49411         Reported by Jim Meyering.
49412
49413 2007-10-18  Eric Blake  <ebb9@byu.net>
49414
49415         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49416
49417 2007-10-18  Bruno Haible  <bruno@clisp.org>
49418
49419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49420         the format string into writable memory. Needed in Fortify conditions.
49421
49422 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49423             Bruno Haible  <bruno@clisp.org>
49424
49425         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49426         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49427         * modules/trim (Depends-on): Add mbchar.
49428         (configure.ac): Add gl_FUNC_MBRTOWC.
49429         (Makefile.am): Augment lib_SOURCES.
49430
49431 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49432
49433         Modify glob.c to use fstatat and dirfd, to simplify it.
49434         Suggested by Eric Blake.
49435         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49436         Don't include <stdbool.h>; not used.
49437         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49438         (link_exists_p): Simplify implementation, since we can now assume
49439         dirfd and fstatat.
49440         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49441
49442 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49443
49444         * gnulib-tool (func_get_dependencies): Fix sed script to
49445         match only tests.
49446
49447 2007-10-17  Bruno Haible  <bruno@clisp.org>
49448
49449         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49450         allow locale names without encoding suffix.
49451         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49453
49454 2007-10-16  Bruno Haible  <bruno@clisp.org>
49455
49456         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49457         * lib/getgroups.c (getgroups): Likewise.
49458         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49459
49460 2007-10-16  Bruno Haible  <bruno@clisp.org>
49461
49462         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49463         * modules/malloc-posix (License): Likewise.
49464         * modules/realloc-posix (License): Likewise.
49465         * modules/calloc-posix (License): Likewise.
49466         * modules/intprops (License): Change from GPL to LGPL, with
49467         Paul Eggert's approval.
49468
49469 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49470
49471         Merge glibc changes into lib/glob.c.
49472
49473         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49474         2007-10-15 04:59:03 UTC.  Here are the changes:
49475
49476         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49477
49478         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49479
49480         * lib/glob.c: Add some branch prediction throughout.
49481
49482         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49483
49484         [BZ #5103]
49485         * lib/glob.c (glob): Recognize patterns starting \/.
49486
49487         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49488
49489         [BZ #3996]
49490         * lib/glob.c (attribute_hidden): Define if not defined.
49491         (glob): Unescape dirname, filename or username when needed and not
49492         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49493         is NULL.  Handle unescaped [ in pattern without closing ].
49494         Don't pass GLOB_CHECK down to recursive glob for directories.
49495         (__glob_pattern_type): New function.
49496         (__glob_pattern_p): Implement using __glob_pattern_type.
49497         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49498         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49499         Remove unreachable code.
49500
49501         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49502
49503         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49504         explain why there are no leaks.
49505
49506         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49507
49508         [BZ #3253]
49509         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49510         time, rather allocate increasingly bigger arrays of pointers, if
49511         possible with alloca, if too large with malloc.
49512
49513 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49514
49515         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49516         Problem reported by H.Merijn Brand in
49517         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49518         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49519         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49520
49521 2007-10-15  Bruno Haible  <bruno@clisp.org>
49522
49523         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49524         with explicit rpl_ prefix.
49525         * lib/fopen.c (fopen): Likewise.
49526         * lib/freopen.c (freopen): Likewise.
49527         * lib/iconv.c (iconv): Likewise.
49528         * lib/iconv_close.c (iconv_close): Likewise.
49529
49530 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49531
49532         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49533
49534 2007-10-15  Bruno Haible  <bruno@clisp.org>
49535
49536         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49537         <stddef.h> instead of <stdlib.h> since we only need NULL.
49538         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49539
49540 2007-10-15  Bruno Haible  <bruno@clisp.org>
49541
49542         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49543         Replace paragraph talking about LIBOBJS.
49544         Reported by Colin Watson <cjwatson@debian.org>.
49545
49546 2007-10-15  Bruno Haible  <bruno@clisp.org>
49547
49548         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49549         <stdlib.h> before using NULL.
49550
49551 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49552
49553         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49554         Reported by Albert Chin <china@thewrittenword.com>.
49555
49556 2007-10-14  Bruno Haible  <bruno@clisp.org>
49557
49558         * modules/iconv_open-utf-tests: New file.
49559         * tests/test-iconv-utf.c: New file.
49560
49561         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49562         * modules/iconv_open-utf: New file.
49563         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49564         (iconv, iconv_close): New declarations.
49565         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49566         be defined.
49567         (iconv_open): Add special handling of conversion between UTF-8 and
49568         UTF-{16,32}{BE,LE}.
49569         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49570         * lib/iconv_close.c: New file.
49571         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49572         gl_FUNC_ICONV_OPEN.
49573         (gl_FUNC_ICONV_OPEN): Use it.
49574         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49575         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49576         and REPLACE_ICONV_UTF.
49577         * modules/iconv_open (Depends-on): Add c-strcase.
49578         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49579         ICONV_CONST.
49580         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49581
49582 2007-10-13  Albert Chin  <china@thewrittenword.com>
49583             Bruno Haible  <bruno@clisp.org>
49584
49585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49586         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49587
49588 2007-10-13  Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49591         defined, use the ISO C99 inline semantics.
49592         * lib/argp.h (ARGP_EI): Likewise.
49593
49594 2007-10-13  Bruno Haible  <bruno@clisp.org>
49595
49596         Handle 'inline' change in gcc 4.3.0.
49597         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49598         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49599         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49600         argp_fmtstream_point): Disable 'extern' declaration if the function
49601         definition is going to be provided inline.
49602         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49603         semantics, not the ISO C99 inline semantics.
49604         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49605         'extern' declaration if the function definition is going to be provided
49606         inline.
49607         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49608         the GNU C inline semantics, not the ISO C99 inline semantics. With
49609         GCC 4.2, avoid a warning.
49610
49611 2007-10-13  Bruno Haible  <bruno@clisp.org>
49612
49613         * lib/freading.h (freading): Enable the use of __freading for
49614         glibc >= 2.7.
49615         * lib/freading.c (freading): Likewise.
49616
49617 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49618
49619         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49620         "warning: C99 inline functions are not supported; using GNU89".
49621
49622 2007-10-12  Bruno Haible  <bruno@clisp.org>
49623
49624         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49625         of 2.
49626         * tests/test-ceilf2.c: New file.
49627         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49628
49629         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49630         * modules/ceilf-tests: Update.
49631
49632 2007-10-12  Bruno Haible  <bruno@clisp.org>
49633
49634         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49635         of 2.
49636         * tests/test-floorf2.c: New file.
49637         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49638
49639         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49640         * modules/floorf-tests: Update.
49641
49642 2007-10-12  Bruno Haible  <bruno@clisp.org>
49643
49644         * tests/test-trunc2.c: New file.
49645         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49646
49647         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49648         * modules/trunc-tests: Update.
49649
49650 2007-10-12  Bruno Haible  <bruno@clisp.org>
49651
49652         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49653         of 2.
49654         * tests/test-truncf2.c: New file.
49655         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49656
49657         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49658         * modules/truncf-tests: Update.
49659
49660 2007-10-11  Eric Blake  <ebb9@byu.net>
49661
49662         Don't claim strerror is broken on Interix.
49663         * doc/functions/strerror.texi (strerror): Known broken systems are
49664         now Solaris 8, and not Interix.
49665         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49666         Interix on cross-compile.
49667         Reported by Martin Koeppe in
49668         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49669
49670 2007-10-11  Bruno Haible  <bruno@clisp.org>
49671
49672         * modules/i-ring-tests: New file.
49673         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49674         instead of assert.
49675
49676 2007-10-11  Bruno Haible  <bruno@clisp.org>
49677
49678         * modules/filenamecat-tests: New file.
49679         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49680         * lib/filenamecat.c: Remove test code.
49681
49682 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49683
49684         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49685
49686         * lib/strerror.c: Include <string.h> always, to test interface,
49687         and to remove the need for the dummy.
49688         Include intprops.h to compute width instead of doing it ourselves
49689         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49690         (strerror): Define it to return NULL if there's no system strerror.
49691         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49692         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49693         ancient pre-strerror Unix systems well any more.  Saying "unknown
49694         system error" is enough.
49695         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49696         simpler strerror.c implementation.
49697         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49698         Simplify the tests to reflect the simpler strerror implementation.
49699         * modules/strerror (Depends-on): Add intprops.
49700
49701 2007-10-09  Eric Blake  <ebb9@byu.net>
49702
49703         Silence test-fpending.
49704         * modules/fpending-tests (Files): Add wrapper script.
49705         * tests/test-fpending.sh: New file.
49706
49707 2007-10-09  Bruno Haible  <bruno@clisp.org>
49708
49709         * MODULES.html.sh (func_module): Don't create a hyperlink for
49710         function names like 'printf_frexp'.
49711         (Misc): Add crc, memxor.
49712         (Characteristics of floating types): New section.
49713         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49714         isnanf-nolibm, signbit, trunc, truncf, truncl.
49715         (Enhancements for ISO C 99 functions): New subsection Input/output.
49716         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49717         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49718         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49719         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49720         (Enhancements for POSIX:2001 functions): Add chdir-long.
49721         (File system functions): Add areadlink, chdir-safer, read-file.
49722         Remove cycle-check.
49723         (File system as inode set): New section.
49724         (Date and time): Add gethrxtime.
49725         (Multithreading): Add openmp.
49726         (Internationalization functions): Add localename.
49727         (Unicode string functions): Add unistr/u*-mbsnlen.
49728         (Support for maintaining and releasing projects): Add git-version-gen.
49729         (Lone files): Remove directories.
49730
49731 2007-10-08  Ben Pfaff  <blp@gnu.org>
49732
49733         * lib/xmalloca.h: Fix typo in comment.
49734
49735 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49736
49737         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49738         when avoiding problems with integer overflow.  Use a portable test
49739         instead.
49740
49741 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49742
49743         * modules/dummy (License): Change to LGPLv2+.
49744         * modules/float (License): Likewise
49745         * modules/realloc (License): Likewise
49746         * modules/stdlib (License): Likewise
49747
49748 2007-10-07  Bruno Haible  <bruno@clisp.org>
49749
49750         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49751         * floor.c (TWO_MANT_DIG): Likewise.
49752         * ceil.c (TWO_MANT_DIG): Likewise.
49753         Reported by Ben Pfaff.
49754
49755 2007-10-07  Bruno Haible  <bruno@clisp.org>
49756
49757         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49758         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49759         * lib/frexp.c (FUNC): Likewise.
49760         * lib/printf-frexp.h (printf_frexp): Likewise.
49761         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49762         * lib/printf-frexp.c (FUNC): Likewise.
49763         Suggested by Jim Meyering.
49764
49765 2007-10-07  Jim Meyering  <meyering@redhat.com>
49766
49767         Make xnanosleep's integer overflow test more robust.
49768         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49769         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49770
49771 2007-10-07  Bruno Haible  <bruno@clisp.org>
49772
49773         * NEWS: Mention the license change.
49774
49775         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49776         abbreviations in the modules files.
49777
49778         Change copyright notice from GPLv2+ to GPLv3+.
49779         * README: Change copyright notice.
49780         * MODULES.html.sh: Likewise.
49781         * build-aux/bootstrap.conf: Likewise.
49782         * build-aux/config.libpath: Likewise.
49783         * build-aux/csharpcomp.sh.in: Likewise.
49784         * build-aux/csharpexec.sh.in: Likewise.
49785         * build-aux/install-reloc: Likewise.
49786         * build-aux/javacomp.sh.in: Likewise.
49787         * build-aux/javaexec.sh.in: Likewise.
49788         * build-aux/ldd.sh.in: Likewise.
49789         * build-aux/reloc-ldflags: Likewise.
49790         * build-aux/relocatable.sh.in: Likewise.
49791         * build-aux/x-to-1.in: Likewise.
49792         * check-module: Likewise.
49793         * config/srclistvars.sh: Likewise.
49794         * gnulib-tool: Likewise.
49795         * lib/acl-internal.h: Likewise.
49796         * lib/acl.c: Likewise.
49797         * lib/acl.h: Likewise.
49798         * lib/acl_entries.c: Likewise.
49799         * lib/areadlink-with-size.c: Likewise.
49800         * lib/areadlink.c: Likewise.
49801         * lib/areadlink.h: Likewise.
49802         * lib/argmatch.c: Likewise.
49803         * lib/argmatch.h: Likewise.
49804         * lib/argp-ba.c: Likewise.
49805         * lib/argp-eexst.c: Likewise.
49806         * lib/argp-fmtstream.c: Likewise.
49807         * lib/argp-fmtstream.h: Likewise.
49808         * lib/argp-fs-xinl.c: Likewise.
49809         * lib/argp-help.c: Likewise.
49810         * lib/argp-namefrob.h: Likewise.
49811         * lib/argp-parse.c: Likewise.
49812         * lib/argp-pin.c: Likewise.
49813         * lib/argp-pv.c: Likewise.
49814         * lib/argp-pvh.c: Likewise.
49815         * lib/argp-xinl.c: Likewise.
49816         * lib/argp.h: Likewise.
49817         * lib/at-func.c: Likewise.
49818         * lib/atanl.c: Likewise.
49819         * lib/backupfile.c: Likewise.
49820         * lib/backupfile.h: Likewise.
49821         * lib/basename.c: Likewise.
49822         * lib/binary-io.h: Likewise.
49823         * lib/byteswap.in.h: Likewise.
49824         * lib/c-stack.c: Likewise.
49825         * lib/c-stack.h: Likewise.
49826         * lib/c-strcasestr.c: Likewise.
49827         * lib/c-strcasestr.h: Likewise.
49828         * lib/c-strstr.c: Likewise.
49829         * lib/c-strstr.h: Likewise.
49830         * lib/c-strtod.c: Likewise.
49831         * lib/calloc.c: Likewise.
49832         * lib/canon-host.c: Likewise.
49833         * lib/canon-host.h: Likewise.
49834         * lib/canonicalize-lgpl.c: Likewise.
49835         * lib/canonicalize.c: Likewise.
49836         * lib/canonicalize.h: Likewise.
49837         * lib/ceil.c: Likewise.
49838         * lib/ceilf.c: Likewise.
49839         * lib/ceill.c: Likewise.
49840         * lib/chdir-long.c: Likewise.
49841         * lib/chdir-long.h: Likewise.
49842         * lib/chdir-safer.c: Likewise.
49843         * lib/chdir-safer.h: Likewise.
49844         * lib/chown.c: Likewise.
49845         * lib/classpath.c: Likewise.
49846         * lib/classpath.h: Likewise.
49847         * lib/clean-temp.c: Likewise.
49848         * lib/clean-temp.h: Likewise.
49849         * lib/cloexec.c: Likewise.
49850         * lib/close-stream.c: Likewise.
49851         * lib/closein.c: Likewise.
49852         * lib/closein.h: Likewise.
49853         * lib/closeout.c: Likewise.
49854         * lib/closeout.h: Likewise.
49855         * lib/concat-filename.c: Likewise.
49856         * lib/copy-file.c: Likewise.
49857         * lib/copy-file.h: Likewise.
49858         * lib/count-one-bits.h: Likewise.
49859         * lib/crc.c: Likewise.
49860         * lib/crc.h: Likewise.
49861         * lib/creat-safer.c: Likewise.
49862         * lib/csharpcomp.c: Likewise.
49863         * lib/csharpcomp.h: Likewise.
49864         * lib/csharpexec.c: Likewise.
49865         * lib/csharpexec.h: Likewise.
49866         * lib/cycle-check.c: Likewise.
49867         * lib/cycle-check.h: Likewise.
49868         * lib/diacrit.c: Likewise.
49869         * lib/diacrit.h: Likewise.
49870         * lib/diffseq.h: Likewise.
49871         * lib/dirchownmod.c: Likewise.
49872         * lib/dirent.in.h: Likewise.
49873         * lib/dirfd.c: Likewise.
49874         * lib/dirfd.h: Likewise.
49875         * lib/dirname.c: Likewise.
49876         * lib/dirname.h: Likewise.
49877         * lib/dummy.c: Likewise.
49878         * lib/dup-safer.c: Likewise.
49879         * lib/dup2.c: Likewise.
49880         * lib/eealloc.h: Likewise.
49881         * lib/error.c: Likewise.
49882         * lib/error.h: Likewise.
49883         * lib/euidaccess.c: Likewise.
49884         * lib/exclude.c: Likewise.
49885         * lib/exclude.h: Likewise.
49886         * lib/execute.c: Likewise.
49887         * lib/execute.h: Likewise.
49888         * lib/exitfail.c: Likewise.
49889         * lib/exitfail.h: Likewise.
49890         * lib/expl.c: Likewise.
49891         * lib/fatal-signal.c: Likewise.
49892         * lib/fatal-signal.h: Likewise.
49893         * lib/fbufmode.c: Likewise.
49894         * lib/fbufmode.h: Likewise.
49895         * lib/fchdir.c: Likewise.
49896         * lib/fchmodat.c: Likewise.
49897         * lib/fchownat.c: Likewise.
49898         * lib/fcntl--.h: Likewise.
49899         * lib/fcntl-safer.h: Likewise.
49900         * lib/fcntl.in.h: Likewise.
49901         * lib/fd-safer.c: Likewise.
49902         * lib/fflush.c: Likewise.
49903         * lib/file-has-acl.c: Likewise.
49904         * lib/file-set.c: Likewise.
49905         * lib/file-type.c: Likewise.
49906         * lib/file-type.h: Likewise.
49907         * lib/fileblocks.c: Likewise.
49908         * lib/filemode.c: Likewise.
49909         * lib/filemode.h: Likewise.
49910         * lib/filename.h: Likewise.
49911         * lib/filenamecat.c: Likewise.
49912         * lib/filenamecat.h: Likewise.
49913         * lib/findprog.c: Likewise.
49914         * lib/findprog.h: Likewise.
49915         * lib/float.in.h: Likewise.
49916         * lib/floor.c: Likewise.
49917         * lib/floorf.c: Likewise.
49918         * lib/floorl.c: Likewise.
49919         * lib/fopen-safer.c: Likewise.
49920         * lib/fopen.c: Likewise.
49921         * lib/fpending.c: Likewise.
49922         * lib/fpending.h: Likewise.
49923         * lib/fprintf.c: Likewise.
49924         * lib/fprintftime.h: Likewise.
49925         * lib/fpucw.h: Likewise.
49926         * lib/fpurge.c: Likewise.
49927         * lib/fpurge.h: Likewise.
49928         * lib/freadable.c: Likewise.
49929         * lib/freadable.h: Likewise.
49930         * lib/freadahead.c: Likewise.
49931         * lib/freadahead.h: Likewise.
49932         * lib/freading.c: Likewise.
49933         * lib/freading.h: Likewise.
49934         * lib/free.c: Likewise.
49935         * lib/freopen.c: Likewise.
49936         * lib/frexp.c: Likewise.
49937         * lib/frexpl.c: Likewise.
49938         * lib/fseek.c: Likewise.
49939         * lib/fseterr.c: Likewise.
49940         * lib/fseterr.h: Likewise.
49941         * lib/fstatat.c: Likewise.
49942         * lib/fstrcmp.c: Likewise.
49943         * lib/fstrcmp.h: Likewise.
49944         * lib/fsusage.c: Likewise.
49945         * lib/fsusage.h: Likewise.
49946         * lib/ftell.c: Likewise.
49947         * lib/ftello.c: Likewise.
49948         * lib/fts-cycle.c: Likewise.
49949         * lib/fts.c: Likewise.
49950         * lib/fts_.h: Likewise.
49951         * lib/full-read.c: Likewise.
49952         * lib/full-read.h: Likewise.
49953         * lib/full-write.c: Likewise.
49954         * lib/full-write.h: Likewise.
49955         * lib/fwritable.c: Likewise.
49956         * lib/fwritable.h: Likewise.
49957         * lib/fwriteerror.c: Likewise.
49958         * lib/fwriteerror.h: Likewise.
49959         * lib/fwriting.c: Likewise.
49960         * lib/fwriting.h: Likewise.
49961         * lib/gcd.c: Likewise.
49962         * lib/gcd.h: Likewise.
49963         * lib/getcwd.c: Likewise.
49964         * lib/getdate.h: Likewise.
49965         * lib/getdate.y: Likewise.
49966         * lib/getdomainname.c: Likewise.
49967         * lib/getdomainname.h: Likewise.
49968         * lib/getgroups.c: Likewise.
49969         * lib/gethostname.c: Likewise.
49970         * lib/gethrxtime.c: Likewise.
49971         * lib/gethrxtime.h: Likewise.
49972         * lib/getloadavg.c: Likewise.
49973         * lib/getndelim2.c: Likewise.
49974         * lib/getndelim2.h: Likewise.
49975         * lib/getnline.c: Likewise.
49976         * lib/getnline.h: Likewise.
49977         * lib/getopt.c: Likewise.
49978         * lib/getopt.in.h: Likewise.
49979         * lib/getopt1.c: Likewise.
49980         * lib/getopt_int.h: Likewise.
49981         * lib/getpagesize.h: Likewise.
49982         * lib/getsubopt.c: Likewise.
49983         * lib/gettime.c: Likewise.
49984         * lib/getugroups.c: Likewise.
49985         * lib/getugroups.h: Likewise.
49986         * lib/getusershell.c: Likewise.
49987         * lib/gl_anyavltree_list1.h: Likewise.
49988         * lib/gl_anyavltree_list2.h: Likewise.
49989         * lib/gl_anyhash_list1.h: Likewise.
49990         * lib/gl_anyhash_list2.h: Likewise.
49991         * lib/gl_anylinked_list1.h: Likewise.
49992         * lib/gl_anylinked_list2.h: Likewise.
49993         * lib/gl_anyrbtree_list1.h: Likewise.
49994         * lib/gl_anyrbtree_list2.h: Likewise.
49995         * lib/gl_anytree_list1.h: Likewise.
49996         * lib/gl_anytree_list2.h: Likewise.
49997         * lib/gl_anytree_oset.h: Likewise.
49998         * lib/gl_anytreehash_list1.h: Likewise.
49999         * lib/gl_anytreehash_list2.h: Likewise.
50000         * lib/gl_array_list.c: Likewise.
50001         * lib/gl_array_list.h: Likewise.
50002         * lib/gl_array_oset.c: Likewise.
50003         * lib/gl_array_oset.h: Likewise.
50004         * lib/gl_avltree_list.c: Likewise.
50005         * lib/gl_avltree_list.h: Likewise.
50006         * lib/gl_avltree_oset.c: Likewise.
50007         * lib/gl_avltree_oset.h: Likewise.
50008         * lib/gl_avltreehash_list.c: Likewise.
50009         * lib/gl_avltreehash_list.h: Likewise.
50010         * lib/gl_carray_list.c: Likewise.
50011         * lib/gl_carray_list.h: Likewise.
50012         * lib/gl_linked_list.c: Likewise.
50013         * lib/gl_linked_list.h: Likewise.
50014         * lib/gl_linkedhash_list.c: Likewise.
50015         * lib/gl_linkedhash_list.h: Likewise.
50016         * lib/gl_list.c: Likewise.
50017         * lib/gl_list.h: Likewise.
50018         * lib/gl_oset.c: Likewise.
50019         * lib/gl_oset.h: Likewise.
50020         * lib/gl_rbtree_list.c: Likewise.
50021         * lib/gl_rbtree_list.h: Likewise.
50022         * lib/gl_rbtree_oset.c: Likewise.
50023         * lib/gl_rbtree_oset.h: Likewise.
50024         * lib/gl_rbtreehash_list.c: Likewise.
50025         * lib/gl_rbtreehash_list.h: Likewise.
50026         * lib/gl_sublist.c: Likewise.
50027         * lib/gl_sublist.h: Likewise.
50028         * lib/group-member.c: Likewise.
50029         * lib/group-member.h: Likewise.
50030         * lib/hard-locale.c: Likewise.
50031         * lib/hard-locale.h: Likewise.
50032         * lib/hash-pjw.c: Likewise.
50033         * lib/hash-pjw.h: Likewise.
50034         * lib/hash-triple.c: Likewise.
50035         * lib/hash.c: Likewise.
50036         * lib/hash.h: Likewise.
50037         * lib/human.c: Likewise.
50038         * lib/human.h: Likewise.
50039         * lib/i-ring.c: Likewise.
50040         * lib/i-ring.h: Likewise.
50041         * lib/idcache.c: Likewise.
50042         * lib/imaxabs.c: Likewise.
50043         * lib/imaxdiv.c: Likewise.
50044         * lib/inet_pton.c: Likewise.
50045         * lib/inet_pton.h: Likewise.
50046         * lib/intprops.h: Likewise.
50047         * lib/inttostr.c: Likewise.
50048         * lib/inttostr.h: Likewise.
50049         * lib/inttypes.in.h: Likewise.
50050         * lib/isapipe.c: Likewise.
50051         * lib/isdir.c: Likewise.
50052         * lib/isnan.c: Likewise.
50053         * lib/isnan.h: Likewise.
50054         * lib/isnanf.c: Likewise.
50055         * lib/isnanf.h: Likewise.
50056         * lib/isnanl-nolibm.h: Likewise.
50057         * lib/isnanl.c: Likewise.
50058         * lib/isnanl.h: Likewise.
50059         * lib/javacomp.c: Likewise.
50060         * lib/javacomp.h: Likewise.
50061         * lib/javaexec.c: Likewise.
50062         * lib/javaexec.h: Likewise.
50063         * lib/javaversion.c: Likewise.
50064         * lib/javaversion.h: Likewise.
50065         * lib/javaversion.java: Likewise.
50066         * lib/lbrkprop.h: Likewise.
50067         * lib/lchmod.h: Likewise.
50068         * lib/lchown.c: Likewise.
50069         * lib/ldexpl.c: Likewise.
50070         * lib/linebreak.c: Likewise.
50071         * lib/linebreak.h: Likewise.
50072         * lib/linebuffer.c: Likewise.
50073         * lib/linebuffer.h: Likewise.
50074         * lib/locale.in.h: Likewise.
50075         * lib/logl.c: Likewise.
50076         * lib/long-options.c: Likewise.
50077         * lib/long-options.h: Likewise.
50078         * lib/lstat.c: Likewise.
50079         * lib/lstat.h: Likewise.
50080         * lib/math.in.h: Likewise.
50081         * lib/mbchar.c: Likewise.
50082         * lib/mbchar.h: Likewise.
50083         * lib/mbfile.h: Likewise.
50084         * lib/mbiter.h: Likewise.
50085         * lib/mbscasecmp.c: Likewise.
50086         * lib/mbscasestr.c: Likewise.
50087         * lib/mbschr.c: Likewise.
50088         * lib/mbscspn.c: Likewise.
50089         * lib/mbslen.c: Likewise.
50090         * lib/mbsncasecmp.c: Likewise.
50091         * lib/mbsnlen.c: Likewise.
50092         * lib/mbspbrk.c: Likewise.
50093         * lib/mbspcasecmp.c: Likewise.
50094         * lib/mbsrchr.c: Likewise.
50095         * lib/mbssep.c: Likewise.
50096         * lib/mbsspn.c: Likewise.
50097         * lib/mbsstr.c: Likewise.
50098         * lib/mbstok_r.c: Likewise.
50099         * lib/mbswidth.c: Likewise.
50100         * lib/mbswidth.h: Likewise.
50101         * lib/mbuiter.h: Likewise.
50102         * lib/memcasecmp.c: Likewise.
50103         * lib/memcasecmp.h: Likewise.
50104         * lib/memchr.c: Likewise.
50105         * lib/memcmp.c: Likewise.
50106         * lib/memcoll.c: Likewise.
50107         * lib/memcoll.h: Likewise.
50108         * lib/memcpy.c: Likewise.
50109         * lib/memrchr.c: Likewise.
50110         * lib/mkancesdirs.c: Likewise.
50111         * lib/mkdir-p.c: Likewise.
50112         * lib/mkdir-p.h: Likewise.
50113         * lib/mkdir.c: Likewise.
50114         * lib/mkdirat.c: Likewise.
50115         * lib/mkdtemp.c: Likewise.
50116         * lib/mkstemp-safer.c: Likewise.
50117         * lib/mkstemp.c: Likewise.
50118         * lib/modechange.c: Likewise.
50119         * lib/modechange.h: Likewise.
50120         * lib/mountlist.c: Likewise.
50121         * lib/mountlist.h: Likewise.
50122         * lib/mpsort.c: Likewise.
50123         * lib/nanosleep.c: Likewise.
50124         * lib/obstack.c: Likewise.
50125         * lib/obstack.h: Likewise.
50126         * lib/open-safer.c: Likewise.
50127         * lib/open.c: Likewise.
50128         * lib/openat-die.c: Likewise.
50129         * lib/openat-priv.h: Likewise.
50130         * lib/openat-proc.c: Likewise.
50131         * lib/openat.c: Likewise.
50132         * lib/openat.h: Likewise.
50133         * lib/pagealign_alloc.c: Likewise.
50134         * lib/pagealign_alloc.h: Likewise.
50135         * lib/physmem.c: Likewise.
50136         * lib/physmem.h: Likewise.
50137         * lib/pipe-safer.c: Likewise.
50138         * lib/pipe.c: Likewise.
50139         * lib/pipe.h: Likewise.
50140         * lib/posixtm.c: Likewise.
50141         * lib/posixtm.h: Likewise.
50142         * lib/posixver.c: Likewise.
50143         * lib/printf-frexp.c: Likewise.
50144         * lib/printf-frexp.h: Likewise.
50145         * lib/printf-frexpl.c: Likewise.
50146         * lib/printf-frexpl.h: Likewise.
50147         * lib/printf.c: Likewise.
50148         * lib/progname.c: Likewise.
50149         * lib/progname.h: Likewise.
50150         * lib/progreloc.c: Likewise.
50151         * lib/putenv.c: Likewise.
50152         * lib/quote.c: Likewise.
50153         * lib/quote.h: Likewise.
50154         * lib/quotearg.c: Likewise.
50155         * lib/quotearg.h: Likewise.
50156         * lib/raise.c: Likewise.
50157         * lib/readline.c: Likewise.
50158         * lib/readline.h: Likewise.
50159         * lib/readlink.c: Likewise.
50160         * lib/readtokens.c: Likewise.
50161         * lib/readtokens.h: Likewise.
50162         * lib/readtokens0.c: Likewise.
50163         * lib/readtokens0.h: Likewise.
50164         * lib/readutmp.c: Likewise.
50165         * lib/readutmp.h: Likewise.
50166         * lib/realloc.c: Likewise.
50167         * lib/relocwrapper.c: Likewise.
50168         * lib/rename-dest-slash.c: Likewise.
50169         * lib/rename.c: Likewise.
50170         * lib/rmdir.c: Likewise.
50171         * lib/rpmatch.c: Likewise.
50172         * lib/safe-read.c: Likewise.
50173         * lib/safe-read.h: Likewise.
50174         * lib/safe-write.c: Likewise.
50175         * lib/safe-write.h: Likewise.
50176         * lib/same-inode.h: Likewise.
50177         * lib/same.c: Likewise.
50178         * lib/same.h: Likewise.
50179         * lib/save-cwd.c: Likewise.
50180         * lib/save-cwd.h: Likewise.
50181         * lib/savedir.c: Likewise.
50182         * lib/savedir.h: Likewise.
50183         * lib/savewd.c: Likewise.
50184         * lib/savewd.h: Likewise.
50185         * lib/search.in.h: Likewise.
50186         * lib/setenv.c: Likewise.
50187         * lib/setenv.h: Likewise.
50188         * lib/settime.c: Likewise.
50189         * lib/sh-quote.c: Likewise.
50190         * lib/sh-quote.h: Likewise.
50191         * lib/sig2str.c: Likewise.
50192         * lib/sig2str.h: Likewise.
50193         * lib/signal.in.h: Likewise.
50194         * lib/signbitd.c: Likewise.
50195         * lib/signbitf.c: Likewise.
50196         * lib/signbitl.c: Likewise.
50197         * lib/sigprocmask.c: Likewise.
50198         * lib/sincosl.c: Likewise.
50199         * lib/sleep.c: Likewise.
50200         * lib/sprintf.c: Likewise.
50201         * lib/sqrtl.c: Likewise.
50202         * lib/stat-time.h: Likewise.
50203         * lib/stdio--.h: Likewise.
50204         * lib/stdio-safer.h: Likewise.
50205         * lib/stdlib--.h: Likewise.
50206         * lib/stdlib-safer.h: Likewise.
50207         * lib/stdlib.in.h: Likewise.
50208         * lib/stpcpy.c: Likewise.
50209         * lib/stpncpy.c: Likewise.
50210         * lib/strchrnul.c: Likewise.
50211         * lib/strcspn.c: Likewise.
50212         * lib/strerror.c: Likewise.
50213         * lib/strftime.c: Likewise.
50214         * lib/strftime.h: Likewise.
50215         * lib/striconveh.c: Likewise.
50216         * lib/striconveh.h: Likewise.
50217         * lib/striconveha.c: Likewise.
50218         * lib/striconveha.h: Likewise.
50219         * lib/stripslash.c: Likewise.
50220         * lib/strnlen1.c: Likewise.
50221         * lib/strnlen1.h: Likewise.
50222         * lib/strtod.c: Likewise.
50223         * lib/strtoimax.c: Likewise.
50224         * lib/strtok_r.c: Likewise.
50225         * lib/strtol.c: Likewise.
50226         * lib/strtoll.c: Likewise.
50227         * lib/strtoul.c: Likewise.
50228         * lib/strtoull.c: Likewise.
50229         * lib/sysexits.in.h: Likewise.
50230         * lib/tempname.c: Likewise.
50231         * lib/tempname.h: Likewise.
50232         * lib/timespec.h: Likewise.
50233         * lib/tls.c: Likewise.
50234         * lib/tls.h: Likewise.
50235         * lib/tmpdir.c: Likewise.
50236         * lib/tmpdir.h: Likewise.
50237         * lib/tmpfile-safer.c: Likewise.
50238         * lib/tmpfile.c: Likewise.
50239         * lib/trigl.c: Likewise.
50240         * lib/trigl.h: Likewise.
50241         * lib/trim.c: Likewise.
50242         * lib/trim.h: Likewise.
50243         * lib/trunc.c: Likewise.
50244         * lib/truncf.c: Likewise.
50245         * lib/truncl.c: Likewise.
50246         * lib/tsearch.c: Likewise.
50247         * lib/unicodeio.c: Likewise.
50248         * lib/unicodeio.h: Likewise.
50249         * lib/unistd--.h: Likewise.
50250         * lib/unistd-safer.h: Likewise.
50251         * lib/unistdio/ulc-fprintf.c: Likewise.
50252         * lib/unistdio/ulc-vfprintf.c: Likewise.
50253         * lib/unlinkdir.c: Likewise.
50254         * lib/unlinkdir.h: Likewise.
50255         * lib/unlocked-io.h: Likewise.
50256         * lib/unsetenv.c: Likewise.
50257         * lib/userspec.c: Likewise.
50258         * lib/utime.c: Likewise.
50259         * lib/utimecmp.c: Likewise.
50260         * lib/utimecmp.h: Likewise.
50261         * lib/utimens.c: Likewise.
50262         * lib/verify.h: Likewise.
50263         * lib/verror.c: Likewise.
50264         * lib/verror.h: Likewise.
50265         * lib/version-etc-fsf.c: Likewise.
50266         * lib/version-etc.c: Likewise.
50267         * lib/version-etc.h: Likewise.
50268         * lib/vfprintf.c: Likewise.
50269         * lib/vprintf.c: Likewise.
50270         * lib/vsprintf.c: Likewise.
50271         * lib/w32spawn.h: Likewise.
50272         * lib/wait-process.c: Likewise.
50273         * lib/wait-process.h: Likewise.
50274         * lib/wcwidth.c: Likewise.
50275         * lib/write-any-file.c: Likewise.
50276         * lib/xalloc-die.c: Likewise.
50277         * lib/xalloc.h: Likewise.
50278         * lib/xasprintf.c: Likewise.
50279         * lib/xgetcwd.c: Likewise.
50280         * lib/xgetcwd.h: Likewise.
50281         * lib/xgetdomainname.c: Likewise.
50282         * lib/xgetdomainname.h: Likewise.
50283         * lib/xgethostname.c: Likewise.
50284         * lib/xmalloc.c: Likewise.
50285         * lib/xmalloca.c: Likewise.
50286         * lib/xmalloca.h: Likewise.
50287         * lib/xmemcoll.c: Likewise.
50288         * lib/xnanosleep.c: Likewise.
50289         * lib/xreadlink.c: Likewise.
50290         * lib/xreadlink.h: Likewise.
50291         * lib/xsetenv.c: Likewise.
50292         * lib/xsetenv.h: Likewise.
50293         * lib/xstriconv.c: Likewise.
50294         * lib/xstriconv.h: Likewise.
50295         * lib/xstrndup.c: Likewise.
50296         * lib/xstrndup.h: Likewise.
50297         * lib/xstrtod.c: Likewise.
50298         * lib/xstrtod.h: Likewise.
50299         * lib/xstrtol-error.c: Likewise.
50300         * lib/xstrtol.c: Likewise.
50301         * lib/xstrtol.h: Likewise.
50302         * lib/xtime.h: Likewise.
50303         * lib/xvasprintf.c: Likewise.
50304         * lib/xvasprintf.h: Likewise.
50305         * lib/yesno.c: Likewise.
50306         * lib/yesno.h: Likewise.
50307         * posix-modules: Likewise.
50308         * tests/test-alloca-opt.c: Likewise.
50309         * tests/test-arcfour.c: Likewise.
50310         * tests/test-arctwo.c: Likewise.
50311         * tests/test-argmatch.c: Likewise.
50312         * tests/test-argp-2.sh: Likewise.
50313         * tests/test-argp.c: Likewise.
50314         * tests/test-arpa_inet.c: Likewise.
50315         * tests/test-array_list.c: Likewise.
50316         * tests/test-array_oset.c: Likewise.
50317         * tests/test-atexit.c: Likewise.
50318         * tests/test-avltree_list.c: Likewise.
50319         * tests/test-avltree_oset.c: Likewise.
50320         * tests/test-avltreehash_list.c: Likewise.
50321         * tests/test-base64.c: Likewise.
50322         * tests/test-binary-io.c: Likewise.
50323         * tests/test-byteswap.c: Likewise.
50324         * tests/test-c-ctype.c: Likewise.
50325         * tests/test-c-strcasecmp.c: Likewise.
50326         * tests/test-c-strcasestr.c: Likewise.
50327         * tests/test-c-strncasecmp.c: Likewise.
50328         * tests/test-c-strstr.c: Likewise.
50329         * tests/test-canonicalize-lgpl.c: Likewise.
50330         * tests/test-canonicalize.c: Likewise.
50331         * tests/test-carray_list.c: Likewise.
50332         * tests/test-ceilf.c: Likewise.
50333         * tests/test-ceill.c: Likewise.
50334         * tests/test-count-one-bits.c: Likewise.
50335         * tests/test-crc.c: Likewise.
50336         * tests/test-dirname.c: Likewise.
50337         * tests/test-fbufmode.c: Likewise.
50338         * tests/test-fcntl.c: Likewise.
50339         * tests/test-fflush.c: Likewise.
50340         * tests/test-floorf.c: Likewise.
50341         * tests/test-floorl.c: Likewise.
50342         * tests/test-fopen.c: Likewise.
50343         * tests/test-fprintf-posix.c: Likewise.
50344         * tests/test-fprintf-posix.h: Likewise.
50345         * tests/test-fpurge.c: Likewise.
50346         * tests/test-freadable.c: Likewise.
50347         * tests/test-freadahead.c: Likewise.
50348         * tests/test-freading.c: Likewise.
50349         * tests/test-freopen.c: Likewise.
50350         * tests/test-frexp.c: Likewise.
50351         * tests/test-frexpl.c: Likewise.
50352         * tests/test-fseek.c: Likewise.
50353         * tests/test-fseeko.c: Likewise.
50354         * tests/test-fseterr.c: Likewise.
50355         * tests/test-fstrcmp.c: Likewise.
50356         * tests/test-ftell.c: Likewise.
50357         * tests/test-ftello.c: Likewise.
50358         * tests/test-fwritable.c: Likewise.
50359         * tests/test-fwriting.c: Likewise.
50360         * tests/test-getaddrinfo.c: Likewise.
50361         * tests/test-getpass.c: Likewise.
50362         * tests/test-gettimeofday.c: Likewise.
50363         * tests/test-hmac-md5.c: Likewise.
50364         * tests/test-hmac-sha1.c: Likewise.
50365         * tests/test-iconv.c: Likewise.
50366         * tests/test-iconvme.c: Likewise.
50367         * tests/test-inttypes.c: Likewise.
50368         * tests/test-isnan.c: Likewise.
50369         * tests/test-isnanf.c: Likewise.
50370         * tests/test-isnanl-nolibm.c: Likewise.
50371         * tests/test-isnanl.c: Likewise.
50372         * tests/test-isnanl.h: Likewise.
50373         * tests/test-ldexpl.c: Likewise.
50374         * tests/test-linked_list.c: Likewise.
50375         * tests/test-linkedhash_list.c: Likewise.
50376         * tests/test-locale.c: Likewise.
50377         * tests/test-localename.c: Likewise.
50378         * tests/test-lock.c: Likewise.
50379         * tests/test-lseek.c: Likewise.
50380         * tests/test-malloca.c: Likewise.
50381         * tests/test-math.c: Likewise.
50382         * tests/test-mbscasecmp.c: Likewise.
50383         * tests/test-mbscasestr1.c: Likewise.
50384         * tests/test-mbscasestr2.c: Likewise.
50385         * tests/test-mbscasestr3.c: Likewise.
50386         * tests/test-mbscasestr4.c: Likewise.
50387         * tests/test-mbschr.c: Likewise.
50388         * tests/test-mbscspn.c: Likewise.
50389         * tests/test-mbsncasecmp.c: Likewise.
50390         * tests/test-mbspbrk.c: Likewise.
50391         * tests/test-mbspcasecmp.c: Likewise.
50392         * tests/test-mbsrchr.c: Likewise.
50393         * tests/test-mbsspn.c: Likewise.
50394         * tests/test-mbsstr1.c: Likewise.
50395         * tests/test-mbsstr2.c: Likewise.
50396         * tests/test-mbsstr3.c: Likewise.
50397         * tests/test-md5.c: Likewise.
50398         * tests/test-memmem.c: Likewise.
50399         * tests/test-netinet_in.c: Likewise.
50400         * tests/test-open.c: Likewise.
50401         * tests/test-printf-frexp.c: Likewise.
50402         * tests/test-printf-frexpl.c: Likewise.
50403         * tests/test-printf-posix.c: Likewise.
50404         * tests/test-printf-posix.h: Likewise.
50405         * tests/test-rbtree_list.c: Likewise.
50406         * tests/test-rbtree_oset.c: Likewise.
50407         * tests/test-rbtreehash_list.c: Likewise.
50408         * tests/test-read-file.c: Likewise.
50409         * tests/test-rijndael.c: Likewise.
50410         * tests/test-search.c: Likewise.
50411         * tests/test-signbit.c: Likewise.
50412         * tests/test-sleep.c: Likewise.
50413         * tests/test-snprintf-posix.c: Likewise.
50414         * tests/test-snprintf-posix.h: Likewise.
50415         * tests/test-snprintf.c: Likewise.
50416         * tests/test-sprintf-posix.c: Likewise.
50417         * tests/test-sprintf-posix.h: Likewise.
50418         * tests/test-stat-time.c: Likewise.
50419         * tests/test-stdbool.c: Likewise.
50420         * tests/test-stdint.c: Likewise.
50421         * tests/test-stdio.c: Likewise.
50422         * tests/test-stdlib.c: Likewise.
50423         * tests/test-stpncpy.c: Likewise.
50424         * tests/test-strcasestr.c: Likewise.
50425         * tests/test-striconv.c: Likewise.
50426         * tests/test-striconveh.c: Likewise.
50427         * tests/test-striconveha.c: Likewise.
50428         * tests/test-string.c: Likewise.
50429         * tests/test-sys_select.c: Likewise.
50430         * tests/test-sys_socket.c: Likewise.
50431         * tests/test-sys_stat.c: Likewise.
50432         * tests/test-sys_time.c: Likewise.
50433         * tests/test-sysexits.c: Likewise.
50434         * tests/test-time.c: Likewise.
50435         * tests/test-tls.c: Likewise.
50436         * tests/test-trunc.c: Likewise.
50437         * tests/test-truncf.c: Likewise.
50438         * tests/test-truncl.c: Likewise.
50439         * tests/test-unistd.c: Likewise.
50440         * tests/test-vasnprintf-posix.c: Likewise.
50441         * tests/test-vasnprintf-posix2.c: Likewise.
50442         * tests/test-vasnprintf.c: Likewise.
50443         * tests/test-vasprintf-posix.c: Likewise.
50444         * tests/test-vasprintf.c: Likewise.
50445         * tests/test-verify.c: Likewise.
50446         * tests/test-vfprintf-posix.c: Likewise.
50447         * tests/test-vprintf-posix.c: Likewise.
50448         * tests/test-vsnprintf-posix.c: Likewise.
50449         * tests/test-vsnprintf.c: Likewise.
50450         * tests/test-vsprintf-posix.c: Likewise.
50451         * tests/test-wchar.c: Likewise.
50452         * tests/test-wctype.c: Likewise.
50453         * tests/test-wcwidth.c: Likewise.
50454         * tests/test-xstrtol.c: Likewise.
50455         * tests/test-xvasprintf.c: Likewise.
50456         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50457         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50458         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50459         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50460         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50461         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50462         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50463         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50464         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50465         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50466         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50467         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50468         * tests/uniname/test-uninames.c: Likewise.
50469         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50470         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50471         * tests/unistdio/test-u16-printf1.h: Likewise.
50472         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50473         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50474         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50475         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50476         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50477         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50478         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50479         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50480         * tests/unistdio/test-u32-printf1.h: Likewise.
50481         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50482         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50483         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50484         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50485         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50486         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50487         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50488         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50489         * tests/unistdio/test-u8-printf1.h: Likewise.
50490         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50491         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50492         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50493         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50494         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50495         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50496         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50497         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50498         * tests/unistdio/test-ulc-printf1.h: Likewise.
50499         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50500         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50501         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50502         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50503         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50504         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50505         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50506         * tests/uniwidth/test-u16-width.c: Likewise.
50507         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50508         * tests/uniwidth/test-u32-width.c: Likewise.
50509         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50510         * tests/uniwidth/test-u8-width.c: Likewise.
50511         * tests/uniwidth/test-uc_width.c: Likewise.
50512         * config/srclist-update: Likewise.
50513         (fixlicense): Update to GPLv3+.
50514
50515         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50516         * tests/test-tsearch.c: Change copyright notice.
50517
50518         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50519         * lib/c-strcaseeq.h: Change copyright notice.
50520         * lib/streq.h: Likewise.
50521         * lib/uniconv.h: Likewise.
50522         * lib/uniconv/u-conv-from-enc.h: Likewise.
50523         * lib/uniconv/u-conv-to-enc.h: Likewise.
50524         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50525         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50526         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50527         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50528         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50529         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50530         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50531         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50532         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50533         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50534         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50535         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50536         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50537         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50538         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50539         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50540         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50541         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50542         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50543         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50544         * lib/uniname.h: Likewise.
50545         * lib/uniname/uniname.c: Likewise.
50546         * lib/unistdio.h: Likewise.
50547         * lib/unistdio/u-asnprintf.h: Likewise.
50548         * lib/unistdio/u-asprintf.h: Likewise.
50549         * lib/unistdio/u-printf-args.c: Likewise.
50550         * lib/unistdio/u-printf-args.h: Likewise.
50551         * lib/unistdio/u-printf-parse.h: Likewise.
50552         * lib/unistdio/u-snprintf.h: Likewise.
50553         * lib/unistdio/u-sprintf.h: Likewise.
50554         * lib/unistdio/u-vasprintf.h: Likewise.
50555         * lib/unistdio/u-vsnprintf.h: Likewise.
50556         * lib/unistdio/u-vsprintf.h: Likewise.
50557         * lib/unistdio/u16-asnprintf.c: Likewise.
50558         * lib/unistdio/u16-asprintf.c: Likewise.
50559         * lib/unistdio/u16-printf-parse.c: Likewise.
50560         * lib/unistdio/u16-snprintf.c: Likewise.
50561         * lib/unistdio/u16-sprintf.c: Likewise.
50562         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50563         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50564         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50565         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50566         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50567         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50568         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50569         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50570         * lib/unistdio/u16-vasnprintf.c: Likewise.
50571         * lib/unistdio/u16-vasprintf.c: Likewise.
50572         * lib/unistdio/u16-vsnprintf.c: Likewise.
50573         * lib/unistdio/u16-vsprintf.c: Likewise.
50574         * lib/unistdio/u32-asnprintf.c: Likewise.
50575         * lib/unistdio/u32-asprintf.c: Likewise.
50576         * lib/unistdio/u32-printf-parse.c: Likewise.
50577         * lib/unistdio/u32-snprintf.c: Likewise.
50578         * lib/unistdio/u32-sprintf.c: Likewise.
50579         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50580         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50581         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50582         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50583         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50584         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50585         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50586         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50587         * lib/unistdio/u32-vasnprintf.c: Likewise.
50588         * lib/unistdio/u32-vasprintf.c: Likewise.
50589         * lib/unistdio/u32-vsnprintf.c: Likewise.
50590         * lib/unistdio/u32-vsprintf.c: Likewise.
50591         * lib/unistdio/u8-asnprintf.c: Likewise.
50592         * lib/unistdio/u8-asprintf.c: Likewise.
50593         * lib/unistdio/u8-printf-parse.c: Likewise.
50594         * lib/unistdio/u8-snprintf.c: Likewise.
50595         * lib/unistdio/u8-sprintf.c: Likewise.
50596         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50597         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50598         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50599         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50600         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50601         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50602         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50603         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50604         * lib/unistdio/u8-vasnprintf.c: Likewise.
50605         * lib/unistdio/u8-vasprintf.c: Likewise.
50606         * lib/unistdio/u8-vsnprintf.c: Likewise.
50607         * lib/unistdio/u8-vsprintf.c: Likewise.
50608         * lib/unistdio/ulc-asnprintf.c: Likewise.
50609         * lib/unistdio/ulc-asprintf.c: Likewise.
50610         * lib/unistdio/ulc-printf-parse.c: Likewise.
50611         * lib/unistdio/ulc-snprintf.c: Likewise.
50612         * lib/unistdio/ulc-sprintf.c: Likewise.
50613         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50614         * lib/unistdio/ulc-vasprintf.c: Likewise.
50615         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50616         * lib/unistdio/ulc-vsprintf.c: Likewise.
50617         * lib/unistr.h: Likewise.
50618         * lib/unistr/u-cpy-alloc.h: Likewise.
50619         * lib/unistr/u-cpy.h: Likewise.
50620         * lib/unistr/u-endswith.h: Likewise.
50621         * lib/unistr/u-move.h: Likewise.
50622         * lib/unistr/u-set.h: Likewise.
50623         * lib/unistr/u-startswith.h: Likewise.
50624         * lib/unistr/u-stpcpy.h: Likewise.
50625         * lib/unistr/u-stpncpy.h: Likewise.
50626         * lib/unistr/u-strcat.h: Likewise.
50627         * lib/unistr/u-strcpy.h: Likewise.
50628         * lib/unistr/u-strcspn.h: Likewise.
50629         * lib/unistr/u-strdup.h: Likewise.
50630         * lib/unistr/u-strlen.h: Likewise.
50631         * lib/unistr/u-strncat.h: Likewise.
50632         * lib/unistr/u-strncpy.h: Likewise.
50633         * lib/unistr/u-strnlen.h: Likewise.
50634         * lib/unistr/u-strpbrk.h: Likewise.
50635         * lib/unistr/u-strspn.h: Likewise.
50636         * lib/unistr/u-strstr.h: Likewise.
50637         * lib/unistr/u-strtok.h: Likewise.
50638         * lib/unistr/u16-check.c: Likewise.
50639         * lib/unistr/u16-chr.c: Likewise.
50640         * lib/unistr/u16-cmp.c: Likewise.
50641         * lib/unistr/u16-cpy-alloc.c: Likewise.
50642         * lib/unistr/u16-cpy.c: Likewise.
50643         * lib/unistr/u16-endswith.c: Likewise.
50644         * lib/unistr/u16-mblen.c: Likewise.
50645         * lib/unistr/u16-mbsnlen.c: Likewise.
50646         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50647         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50648         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50649         * lib/unistr/u16-mbtouc.c: Likewise.
50650         * lib/unistr/u16-mbtoucr.c: Likewise.
50651         * lib/unistr/u16-move.c: Likewise.
50652         * lib/unistr/u16-next.c: Likewise.
50653         * lib/unistr/u16-prev.c: Likewise.
50654         * lib/unistr/u16-set.c: Likewise.
50655         * lib/unistr/u16-startswith.c: Likewise.
50656         * lib/unistr/u16-stpcpy.c: Likewise.
50657         * lib/unistr/u16-stpncpy.c: Likewise.
50658         * lib/unistr/u16-strcat.c: Likewise.
50659         * lib/unistr/u16-strchr.c: Likewise.
50660         * lib/unistr/u16-strcmp.c: Likewise.
50661         * lib/unistr/u16-strcpy.c: Likewise.
50662         * lib/unistr/u16-strcspn.c: Likewise.
50663         * lib/unistr/u16-strdup.c: Likewise.
50664         * lib/unistr/u16-strlen.c: Likewise.
50665         * lib/unistr/u16-strmblen.c: Likewise.
50666         * lib/unistr/u16-strmbtouc.c: Likewise.
50667         * lib/unistr/u16-strncat.c: Likewise.
50668         * lib/unistr/u16-strncmp.c: Likewise.
50669         * lib/unistr/u16-strncpy.c: Likewise.
50670         * lib/unistr/u16-strnlen.c: Likewise.
50671         * lib/unistr/u16-strpbrk.c: Likewise.
50672         * lib/unistr/u16-strrchr.c: Likewise.
50673         * lib/unistr/u16-strspn.c: Likewise.
50674         * lib/unistr/u16-strstr.c: Likewise.
50675         * lib/unistr/u16-strtok.c: Likewise.
50676         * lib/unistr/u16-to-u32.c: Likewise.
50677         * lib/unistr/u16-to-u8.c: Likewise.
50678         * lib/unistr/u16-uctomb-aux.c: Likewise.
50679         * lib/unistr/u16-uctomb.c: Likewise.
50680         * lib/unistr/u32-check.c: Likewise.
50681         * lib/unistr/u32-chr.c: Likewise.
50682         * lib/unistr/u32-cmp.c: Likewise.
50683         * lib/unistr/u32-cpy-alloc.c: Likewise.
50684         * lib/unistr/u32-cpy.c: Likewise.
50685         * lib/unistr/u32-endswith.c: Likewise.
50686         * lib/unistr/u32-mblen.c: Likewise.
50687         * lib/unistr/u32-mbsnlen.c: Likewise.
50688         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50689         * lib/unistr/u32-mbtouc.c: Likewise.
50690         * lib/unistr/u32-mbtoucr.c: Likewise.
50691         * lib/unistr/u32-move.c: Likewise.
50692         * lib/unistr/u32-next.c: Likewise.
50693         * lib/unistr/u32-prev.c: Likewise.
50694         * lib/unistr/u32-set.c: Likewise.
50695         * lib/unistr/u32-startswith.c: Likewise.
50696         * lib/unistr/u32-stpcpy.c: Likewise.
50697         * lib/unistr/u32-stpncpy.c: Likewise.
50698         * lib/unistr/u32-strcat.c: Likewise.
50699         * lib/unistr/u32-strchr.c: Likewise.
50700         * lib/unistr/u32-strcmp.c: Likewise.
50701         * lib/unistr/u32-strcpy.c: Likewise.
50702         * lib/unistr/u32-strcspn.c: Likewise.
50703         * lib/unistr/u32-strdup.c: Likewise.
50704         * lib/unistr/u32-strlen.c: Likewise.
50705         * lib/unistr/u32-strmblen.c: Likewise.
50706         * lib/unistr/u32-strmbtouc.c: Likewise.
50707         * lib/unistr/u32-strncat.c: Likewise.
50708         * lib/unistr/u32-strncmp.c: Likewise.
50709         * lib/unistr/u32-strncpy.c: Likewise.
50710         * lib/unistr/u32-strnlen.c: Likewise.
50711         * lib/unistr/u32-strpbrk.c: Likewise.
50712         * lib/unistr/u32-strrchr.c: Likewise.
50713         * lib/unistr/u32-strspn.c: Likewise.
50714         * lib/unistr/u32-strstr.c: Likewise.
50715         * lib/unistr/u32-strtok.c: Likewise.
50716         * lib/unistr/u32-to-u16.c: Likewise.
50717         * lib/unistr/u32-to-u8.c: Likewise.
50718         * lib/unistr/u32-uctomb.c: Likewise.
50719         * lib/unistr/u8-check.c: Likewise.
50720         * lib/unistr/u8-chr.c: Likewise.
50721         * lib/unistr/u8-cmp.c: Likewise.
50722         * lib/unistr/u8-cpy-alloc.c: Likewise.
50723         * lib/unistr/u8-cpy.c: Likewise.
50724         * lib/unistr/u8-endswith.c: Likewise.
50725         * lib/unistr/u8-mblen.c: Likewise.
50726         * lib/unistr/u8-mbsnlen.c: Likewise.
50727         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50728         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50729         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50730         * lib/unistr/u8-mbtouc.c: Likewise.
50731         * lib/unistr/u8-mbtoucr.c: Likewise.
50732         * lib/unistr/u8-move.c: Likewise.
50733         * lib/unistr/u8-next.c: Likewise.
50734         * lib/unistr/u8-prev.c: Likewise.
50735         * lib/unistr/u8-set.c: Likewise.
50736         * lib/unistr/u8-startswith.c: Likewise.
50737         * lib/unistr/u8-stpcpy.c: Likewise.
50738         * lib/unistr/u8-stpncpy.c: Likewise.
50739         * lib/unistr/u8-strcat.c: Likewise.
50740         * lib/unistr/u8-strchr.c: Likewise.
50741         * lib/unistr/u8-strcmp.c: Likewise.
50742         * lib/unistr/u8-strcpy.c: Likewise.
50743         * lib/unistr/u8-strcspn.c: Likewise.
50744         * lib/unistr/u8-strdup.c: Likewise.
50745         * lib/unistr/u8-strlen.c: Likewise.
50746         * lib/unistr/u8-strmblen.c: Likewise.
50747         * lib/unistr/u8-strmbtouc.c: Likewise.
50748         * lib/unistr/u8-strncat.c: Likewise.
50749         * lib/unistr/u8-strncmp.c: Likewise.
50750         * lib/unistr/u8-strncpy.c: Likewise.
50751         * lib/unistr/u8-strnlen.c: Likewise.
50752         * lib/unistr/u8-strpbrk.c: Likewise.
50753         * lib/unistr/u8-strrchr.c: Likewise.
50754         * lib/unistr/u8-strspn.c: Likewise.
50755         * lib/unistr/u8-strstr.c: Likewise.
50756         * lib/unistr/u8-strtok.c: Likewise.
50757         * lib/unistr/u8-to-u16.c: Likewise.
50758         * lib/unistr/u8-to-u32.c: Likewise.
50759         * lib/unistr/u8-uctomb-aux.c: Likewise.
50760         * lib/unistr/u8-uctomb.c: Likewise.
50761         * lib/unitypes.h: Likewise.
50762         * lib/uniwidth.h: Likewise.
50763         * lib/uniwidth/cjk.h: Likewise.
50764         * lib/uniwidth/u16-strwidth.c: Likewise.
50765         * lib/uniwidth/u16-width.c: Likewise.
50766         * lib/uniwidth/u32-strwidth.c: Likewise.
50767         * lib/uniwidth/u32-width.c: Likewise.
50768         * lib/uniwidth/u8-strwidth.c: Likewise.
50769         * lib/uniwidth/u8-width.c: Likewise.
50770         * lib/uniwidth/width.c: Likewise.
50771
50772 2007-10-07  Bruno Haible  <bruno@clisp.org>
50773
50774         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50775         The file is still under LGPL (see modules/inttypes).
50776
50777 2007-10-06  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/trunc (Dependencies): Add 'extensions'.
50780         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50781         Reported by Ben Pfaff <blp@gnu.org>.
50782
50783 2007-10-06  Bruno Haible  <bruno@clisp.org>
50784
50785         * modules/freopen-tests: New file.
50786         * tests/test-freopen.c: New file.
50787
50788         * modules/fopen-tests: New file.
50789         * tests/test-fopen.c: New file.
50790
50791         * modules/fopen: New file.
50792         * lib/fopen.c: New file.
50793         * m4/fopen.m4: New file.
50794         * modules/freopen: New file.
50795         * lib/freopen.c: New file.
50796         * m4/freopen.m4: New file.
50797         * lib/stdio.in.h (fopen, freopen): New declarations.
50798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50799         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50800         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50801         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50802         * doc/functions/fopen.texi: Mention the 'fopen' module.
50803         * doc/functions/freopen.texi: Mention the 'freopen' module.
50804
50805 2007-10-06  Bruno Haible  <bruno@clisp.org>
50806
50807         * modules/open-tests: New file.
50808         * tests/test-open.c: New file.
50809
50810         * modules/open: New file.
50811         * lib/open.c: New file.
50812         * m4/open.m4: New file.
50813         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50814         lib/open.c does.
50815         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50816         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50817         macros.
50818         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50819         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50820         REPLACE_OPEN.
50821         * doc/functions/open.texi: Mention the 'open' module.
50822
50823 2007-10-04  Bruno Haible  <bruno@clisp.org>
50824
50825         * modules/ceill-tests: New file.
50826         * tests/test-ceill.c: New file.
50827
50828         * modules/ceill: New file.
50829         * lib/ceill.c: Replace entire file.
50830         * m4/ceill.m4: New file.
50831         * lib/math.in.h (ceill): Replace declaration.
50832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50833         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50834         * doc/functions/ceill.texi: Mention the 'ceill' module.
50835         * modules/mathl (Files): Remove lib/ceill.c.
50836         (Depends-on): Add ceill.
50837
50838 2007-10-04  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/ceilf-tests: New file.
50841         * tests/test-ceilf.c: New file.
50842
50843         * modules/ceilf: New file.
50844         * lib/ceil.c: New file.
50845         * lib/ceilf.c: New file.
50846         * m4/ceilf.m4: New file.
50847         * lib/math.in.h (ceilf): New declaration.
50848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50849         HAVE_DECL_CEILF.
50850         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50851         HAVE_DECL_CEILF.
50852         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50853
50854 2007-10-04  Bruno Haible  <bruno@clisp.org>
50855
50856         * modules/floorl-tests: New file.
50857         * tests/test-floorl.c: New file.
50858
50859         * modules/floorl: New file.
50860         * lib/floorl.c: Replace entire file.
50861         * m4/floorl.m4: New file.
50862         * lib/math.in.h (floorl): Replace declaration.
50863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50864         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50865         * doc/functions/floorl.texi: Mention the 'floorl' module.
50866         * modules/mathl (Files): Remove lib/floorl.c.
50867         (Depends-on): Add floorl.
50868
50869 2007-10-04  Bruno Haible  <bruno@clisp.org>
50870
50871         * modules/floorf-tests: New file.
50872         * tests/test-floorf.c: New file.
50873
50874         * modules/floorf: New file.
50875         * lib/floor.c: New file.
50876         * lib/floorf.c: New file.
50877         * m4/floorf.m4: New file.
50878         * lib/math.in.h (floorf): New declaration.
50879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50880         HAVE_DECL_FLOORF.
50881         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50882         HAVE_DECL_FLOORF.
50883         * doc/functions/floorf.texi: Mention the 'floorf' module.
50884
50885 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50886             Bruno Haible  <bruno@clisp.org>
50887
50888         Advertise for the Git server instead of the CVS server.
50889         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50890         repository instead of the CVS one.
50891         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50892         about all VCS systems generically.
50893         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50894
50895 2007-10-04  Bruno Haible  <bruno@clisp.org>
50896
50897         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50898         means.
50899         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50900
50901 2007-10-04  Bruno Haible  <bruno@clisp.org>
50902
50903         * modules/truncl-tests: New file.
50904         * tests/test-truncl.c: New file.
50905
50906         * modules/truncl: New file.
50907         * lib/truncl.c: New file.
50908         * m4/truncl.m4: New file.
50909         * lib/math.in.h (truncl): New declaration.
50910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50911         HAVE_DECL_TRUNCL.
50912         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50913         HAVE_DECL_TRUNCL.
50914         * doc/functions/truncl.texi: Mention the 'truncl' module.
50915
50916 2007-10-04  Bruno Haible  <bruno@clisp.org>
50917
50918         * modules/truncf-tests: New file.
50919         * tests/test-truncf.c: New file.
50920
50921         * modules/truncf: New file.
50922         * lib/trunc.c: Make paramerizable through USE_* macros.
50923         * lib/truncf.c: New file.
50924         * m4/truncf.m4: New file.
50925         * lib/math.in.h (truncf): New declaration.
50926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50927         HAVE_DECL_TRUNCF.
50928         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50929         HAVE_DECL_TRUNCF.
50930         * doc/functions/truncf.texi: Mention the 'truncf' module.
50931
50932 2007-10-03  Bruno Haible  <bruno@clisp.org>
50933
50934         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50935         augmentation also for tests modules.
50936         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50937         * modules/atexit-tests (Makefile.am): Likewise.
50938         * modules/binary-io-tests (Makefile.am): Likewise.
50939         * modules/c-strcase-tests (Makefile.am): Likewise.
50940         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50941         * modules/canonicalize-tests (Makefile.am): Likewise.
50942         * modules/closein-tests (Makefile.am): Likewise.
50943         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50944         * modules/freadahead-tests (Makefile.am): Likewise.
50945         * modules/fseek-tests (Makefile.am): Likewise.
50946         * modules/fseeko-tests (Makefile.am): Likewise.
50947         * modules/ftell-tests (Makefile.am): Likewise.
50948         * modules/ftello-tests (Makefile.am): Likewise.
50949         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50950         * modules/isnanl-tests (Makefile.am): Likewise.
50951         * modules/lseek-tests (Makefile.am): Likewise.
50952         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50953         * modules/mbscasestr-tests (Makefile.am): Likewise.
50954         * modules/mbschr-tests (Makefile.am): Likewise.
50955         * modules/mbscspn-tests (Makefile.am): Likewise.
50956         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50957         * modules/mbspbrk-tests (Makefile.am): Likewise.
50958         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50959         * modules/mbsrchr-tests (Makefile.am): Likewise.
50960         * modules/mbsspn-tests (Makefile.am): Likewise.
50961         * modules/mbsstr-tests (Makefile.am): Likewise.
50962         * modules/printf-posix-tests (Makefile.am): Likewise.
50963         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50964         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50965         * modules/tsearch-tests (Makefile.am): Likewise.
50966         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50967         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50968         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50969         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50970         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50971         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50972         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50973         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50974         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50975         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50976         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50977         * modules/xstrtol-tests (Makefile.am): Likewise.
50978         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50979         * modules/yesno-tests (Makefile.am): Likewise.
50980
50981 2007-10-03  Bruno Haible  <bruno@clisp.org>
50982
50983         * modules/trunc-tests: New file.
50984         * tests/test-trunc.c: New file.
50985
50986         * modules/trunc: New file.
50987         * lib/trunc.c: New file.
50988         * m4/trunc.m4: New file.
50989         * lib/math.in.h (trunc): New declaration.
50990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50991         HAVE_DECL_TRUNC.
50992         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50993         HAVE_DECL_TRUNC.
50994         * doc/functions/trunc.texi: Mention the 'trunc' module.
50995
50996 2007-10-03  Bruno Haible  <bruno@clisp.org>
50997
50998         * tests/test-fpending.c: New file, mostly copied
50999         from coreutils/lib/t-fpending.c.
51000         * modules/fpending-tests: New file.
51001
51002 2007-10-03  Bruno Haible  <bruno@clisp.org>
51003
51004         Port the stdio extensions to QNX (untested).
51005         * lib/fseterr.c (fseterr): Add support for QNX.
51006         * lib/fbufmode.c (fbufmode): Likewise.
51007         * lib/freadable.c (freadable): Likewise.
51008         * lib/fwritable.c (fwritable): Likewise.
51009         * lib/freading.c (freading): Likewise.
51010         * lib/fwriting.c (fwriting): Likewise.
51011         * lib/freadahead.c (freadahed): Likewise.
51012         * lib/fpurge.c (fpurge): Likewise.
51013         * lib/fseeko.c (rpl_fseeko): Likewise.
51014
51015 2007-10-03  Bruno Haible  <bruno@clisp.org>
51016             Jim Meyering  <jim@meyering.net>
51017             Eric Blake  <ebb9@byu.net>
51018
51019         * doc/relocatable.texi: Use @command instead of @program.
51020
51021 2007-10-02  Jim Meyering  <jim@meyering.net>
51022
51023         Perform one more "_.h" -> ".in.h" substitution.
51024         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51025         instead of unistd_.h here, too.
51026
51027 2007-10-01  Bruno Haible  <bruno@clisp.org>
51028
51029         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51030         Needed for the alloca-opt module.
51031
51032 2007-09-30  Bruno Haible  <bruno@clisp.org>
51033
51034         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51035         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51036         alloca_.h.
51037         * lib/argz.in.h: Renamed from lib/argz_.h.
51038         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51039         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51040         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51041         byteswap_.h.
51042         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51043         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51044         dirent_.h.
51045         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51046         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51047         fcntl_.h.
51048         * lib/float.in.h: Renamed from lib/float_.h.
51049         * modules/float (Files, Makefile.am): Use float.in.h instead of
51050         float_.h.
51051         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51052         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51053         fnmatch_.h.
51054         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51055         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51056         getopt_.h.
51057         * lib/glob.in.h: Renamed from lib/glob_.h.
51058         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51059         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51060         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51061         iconv_.h.
51062         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51063         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51064         inttypes_.h.
51065         * lib/locale.in.h: Renamed from lib/locale_.h.
51066         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51067         locale_.h.
51068         * lib/math.in.h: Renamed from lib/math_.h.
51069         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51070         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51071         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51072         of netinet_in_.h. Add dependency.
51073         * lib/poll.in.h: Renamed from lib/poll_.h.
51074         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51075         * lib/search.in.h: Renamed from lib/search_.h.
51076         * modules/search (Files, Makefile.am): Use search.in.h instead of
51077         search_.h.
51078         * lib/signal.in.h: Renamed from lib/signal_.h.
51079         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51080         _signal.h.
51081         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51082         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51083         stdbool_.h.
51084         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51085         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51086         stdint_.h.
51087         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51088         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51089         stdio_.h.
51090         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51091         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51092         stdlib_.h.
51093         * lib/string.in.h: Renamed from lib/string_.h.
51094         * modules/string (Files, Makefile.am): Use string.in.h instead of
51095         string_.h.
51096         * doc/gnulib-tool.texi (Initial import): Update.
51097         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51098         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51099         of sys_select_.h. Add dependency.
51100         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51101         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51102         of sys_socket_.h.
51103         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51104         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51105         sys_stat_.h.
51106         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51107         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51108         sys_time_.h.
51109         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51110         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51111         sysexits_.h.
51112         * lib/time.in.h: Renamed from lib/time_.h.
51113         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51114         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51115         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51116         unistd_.h.
51117         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51118         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51119         wchar_.h.
51120         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51121         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51122         wctype_.h.
51123         * build-aux/bootstrap (slurp): Update.
51124         * lib/.cppi-disable: Update.
51125
51126 2007-09-30  Bruno Haible  <bruno@clisp.org>
51127
51128         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51129         Needed on BeOS.
51130
51131 2007-09-30  Bruno Haible  <bruno@clisp.org>
51132
51133         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51134
51135 2007-09-29  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51138
51139 2007-09-29  Bruno Haible  <bruno@clisp.org>
51140
51141         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51142         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51143         * build-aux/install-reloc: Compile also areadlink.c.
51144         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51145
51146 2007-09-29  Bruno Haible  <bruno@clisp.org>
51147
51148         * gnulib-tool (func_emit_initmacro_done): Indentation.
51149
51150 2007-09-29  Bruno Haible  <bruno@clisp.org>
51151
51152         * README: Add CVS checkout update instructions.
51153         Info from Bob Proulx <bob@proulx.com>.
51154
51155 2007-09-28  Eric Blake  <ebb9@byu.net>
51156
51157         Provide move-if-change.
51158         * build-aux/move-if-change: New file, based on best practice
51159         rather than any canonical upstream location.
51160
51161 2007-09-28  Jim Meyering  <jim@meyering.net>
51162
51163         Fix canonicalize loop-detection corner case.
51164         Do not attempt to stat the symlink values stored via seen_triple.
51165         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51166         on linux-2.6.18, (but not 2.6.22).
51167         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51168         triple_compare.  The former compares dev,ino,filename, while the latter
51169         would actually stat dirname(filename) when dev and ino were equal.
51170         * lib/hash-triple.c: Install <string.h>.
51171         (STREQ): Define.
51172         (triple_compare_ino_str): New function.
51173         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51174
51175 2007-09-28  Eric Blake  <ebb9@byu.net>
51176
51177         Enforce that AC_REPLACE_FUNCS files exist.
51178         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51179         override check for typos.
51180
51181         Fix test-closein on Solaris 10.
51182         * tests/test-closein.c (main): Don't assume stdin can be inherited
51183         closed on all systems.
51184         * tests/test-closein.sh: Likewise.
51185         Reported by Piotr Tarnowski.
51186
51187 2007-09-28  Jim Meyering  <jim@meyering.net>
51188
51189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51190
51191 2007-09-27  Jim Meyering  <jim@meyering.net>
51192
51193         canonicalize: Avoid a false-positive cycle failure.
51194         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51195         Sort.  Remove cycle-check.
51196         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51197         not cycle-check.h.
51198         (seen_triple): New function.
51199         (canonicalize_filename_mode): Use it instead of cycle-check.
51200         * tests/test-canonicalize.c: Add a test for this bug.
51201         * tests/test-canonicalize.sh: Set up and run the test.
51202
51203         New module, file-set, from coreutils.
51204         * modules/file-set: Define it.
51205         * lib/file-set.c, lib/file-set.h: Implement.
51206
51207         New module, hash-triple, from coreutils.
51208         * modules/hash-triple: Define it.
51209         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51210
51211 2007-09-25  Eric Blake  <ebb9@byu.net>
51212
51213         Fix strerror on Interix.
51214         * lib/string_.h (strerror): Declare replacement.
51215         * doc/functions/strerror.texi (strerror): Document the Interix
51216         shortcoming.
51217         * modules/string (Makefile.am): Support new hooks.
51218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51219         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51220         gl_FUNC_STRERROR_SEPARATE.
51221         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51222         * lib/strerror.c (rpl_strerror): Provide replacement.
51223         * modules/strerror (Depends-on): Add string.
51224         (configure.ac): Detect use of module.
51225         * tests/test-strerror.c: New file.
51226         * modules/strerror-tests: New test module.
51227         * modules/argp (Depends-on): Add strerror.
51228         * modules/error (Depends-on): Likewise.
51229         Reported by Martin Koeppe.
51230
51231 2007-09-24  Bruno Haible  <bruno@clisp.org>
51232
51233         * README: Update git instructions.
51234
51235 2007-09-24  Eric Blake  <ebb9@byu.net>
51236
51237         Revert fpending breakage from 2007-09-08.
51238         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51239         __fpending.c.
51240
51241 2007-09-24  Jim Meyering  <jim@meyering.net>
51242
51243         filenamecat.c: Add a test.
51244         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51245         showing how the function works when DIR is the empty string.
51246
51247 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51248
51249         * tests/test-canonicalize.sh: Turn on executable bit.
51250
51251 2007-09-19  Eric Blake  <ebb9@byu.net>
51252
51253         * README: Update CVS instructions.
51254
51255 2007-09-18  Bruno Haible  <bruno@clisp.org>
51256
51257         * modules/areadlink: New file.
51258         * lib/areadlink.h (areadlink): New declaration.
51259         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51260
51261 2007-09-17  Jim Meyering  <jim@meyering.net>
51262
51263         * lib/savewd.c (ESTALE) [!defined]: Define.
51264         Reported to be required on Interix by Martin Koeppe.
51265
51266 2007-09-17  Bruno Haible  <bruno@clisp.org>
51267
51268         * gnulib-tool (func_version): Use $version.
51269
51270 2007-09-16  Bruno Haible  <bruno@clisp.org>
51271
51272         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51273         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51274         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51275         Reported by Greg Schafer <gschafer@zip.com.au>.
51276
51277 2007-09-15  Bruno Haible  <bruno@clisp.org>
51278
51279         * gnulib-tool (sed): Try a little harder to make bash understand the
51280         alias.
51281         Reported by Bruce Korb <bruce.korb@gmail.com>.
51282
51283 2007-09-13  Eric Blake  <ebb9@byu.net>
51284
51285         * ChangeLog: Remove conflict markers.
51286
51287 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51288
51289         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51290         Reported by Bruno Haible <bruno@clisp.org>.
51291
51292 2007-09-12  Bruno Haible  <bruno@clisp.org>
51293
51294         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51295         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51296         is not defined.
51297
51298 2007-09-12  Eric Blake  <ebb9@byu.net>
51299
51300         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51302         Autoconf definition.
51303         * modules/euidaccess (Depends-on): Add extensions, for
51304         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51305         * modules/fnmatch (Depends-on): Likewise.
51306         * modules/getaddrinfo (Depends-on): Likewise.
51307         * modules/getdelim (Depends-on): Likewise.
51308         * modules/getline (Depends-on): Likewise.
51309         * modules/getsubopt (Depends-on): Likewise.
51310         * modules/gettext (Depends-on): Likewise.
51311         * modules/group-member (Depends-on): Likewise.
51312         * modules/mbchar (Depends-on): Likewise.
51313         * modules/memmem (Depends-on): Likewise.
51314         * modules/mempcpy (Depends-on): Likewise.
51315         * modules/memrchr (Depends-on): Likewise.
51316         * modules/pagealign_alloc (Depends-on): Likewise.
51317         * modules/readutmp (Depends-on): Likewise.
51318         * modules/stpcpy (Depends-on): Likewise.
51319         * modules/stpncpy (Depends-on): Likewise.
51320         * modules/strchrnul (Depends-on): Likewise.
51321         * modules/strndup (Depends-on): Likewise.
51322         * modules/strsep (Depends-on): Likewise.
51323         * modules/strverscmp (Depends-on): Likewise.
51324         * modules/vasprintf (Depends-on): Likewise.
51325         * modules/wcwidth (Depends-on): Likewise.
51326         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51327         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51328         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51329         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51332         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51333         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51334         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51335         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51336         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51337         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51338         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51339         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51340         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51341         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51342         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51343         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51345         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51346         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51347         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51348         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51349         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51350         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51351         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51352         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51353         so that lock.m4 can be used in gettext without extensions module.
51354
51355 2007-09-11  Bruno Haible  <bruno@clisp.org>
51356
51357         * m4/isc-posix.m4: Remove file.
51358         Suggested by Eric Blake.
51359
51360 2007-09-11  Eric Blake  <ebb9@byu.net>
51361
51362         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51363
51364 2007-09-10  Bruno Haible  <bruno@clisp.org>
51365
51366         * posix-modules: Fix typo in error message.
51367         Reported by Matt <mkraai@beckman.com>.
51368
51369 2007-09-09  Bruno Haible  <bruno@clisp.org>
51370
51371         * doc/functions/getdelim.texi: Update list of platforms lacking the
51372         function.
51373         * doc/functions/getline.texi: Likewise.
51374
51375 2007-09-09  Jim Meyering  <jim@meyering.net>
51376
51377         * lib/hash.c (hash_initialize): Detect calloc failure.
51378         Reported by Bruno Haible.
51379
51380 2007-09-09  Bruno Haible  <bruno@clisp.org>
51381
51382         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51383         malloc or realloc fails.
51384
51385 2007-09-09  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/getcwd (Depends-on): Add malloc-posix.
51388         * modules/glob (Depends-on): Likewise.
51389         * modules/putenv (Depends-on): Likewise.
51390         * modules/strdup (Depends-on): Likewise.
51391         * modules/getdelim (Depends-on): Add realloc-posix.
51392         * modules/read-file (Depends-on): Likewise.
51393
51394 2007-09-09  Bruno Haible  <bruno@clisp.org>
51395
51396         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51397         (gl_FUNC_MALLOC_POSIX): Require it.
51398         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51399         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51400         * modules/realloc (Files): Add m4/malloc.m4.
51401         * modules/calloc (Files): Likewise.
51402
51403 2007-09-09  Bruno Haible  <bruno@clisp.org>
51404
51405         * modules/malloc-posix: New file.
51406         * modules/malloc (Depends-on): Add malloc-posix.
51407         * lib/malloc.c: Include errno.h.
51408         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51409         and a POSIX-compatible malloc into a single function. Set ENOMEM
51410         when returning NULL.
51411         * m4/malloc.m4: New file.
51412         * doc/functions/malloc.texi: Mention the malloc-posix module.
51413         * lib/stdlib_.h (malloc): New declaration.
51414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51415         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51416         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51417         and HAVE_MALLOC_POSIX.
51418
51419 2007-09-09  Bruno Haible  <bruno@clisp.org>
51420
51421         * modules/realloc-posix: New file.
51422         * modules/realloc (Depends-on): Add realloc-posix.
51423         * lib/realloc.c: Include errno.h.
51424         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51425         and a POSIX-compatible realloc into a single function. Set ENOMEM
51426         when returning NULL.
51427         * m4/realloc.m4: New file.
51428         * doc/functions/realloc.texi: Mention the realloc-posix module.
51429         * lib/stdlib_.h (realloc): New declaration.
51430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51431         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51432         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51433         and HAVE_REALLOC_POSIX.
51434
51435 2007-09-09  Bruno Haible  <bruno@clisp.org>
51436
51437         * modules/calloc-posix: New file.
51438         * modules/calloc (Depends-on): Add calloc-posix.
51439         * lib/calloc.c: Include errno.h.
51440         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51441         and a POSIX-compatible calloc into a single function. Set ENOMEM
51442         when returning NULL.
51443         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51444         * doc/functions/calloc.texi: Mention the calloc-posix module.
51445         * lib/stdlib_.h (calloc): New declaration.
51446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51447         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51448         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51449         and HAVE_CALLOC_POSIX.
51450
51451 2007-09-09  Bruno Haible  <bruno@clisp.org>
51452
51453         Allow for modules to show an arbitrary notice.
51454         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51455         * gnulib-tool: New option --extract-notice.
51456         (func_usage): Document it.
51457         (sed_extract_prog): Update.
51458         (func_get_notice): New function.
51459         (func_modules_notice): New function.
51460         (func_import, func_create_testdir): Invoke it.
51461         Suggested by Jim Meyering.
51462
51463 2007-09-09  Bruno Haible  <bruno@clisp.org>
51464
51465         * gnulib-tool: New options --verbose, --quiet.
51466         (func_usage): Document them.
51467         (verbose): New variable.
51468         (func_execute_command): New function.
51469         (func_import): Don't show the module list and the file list if
51470         $verbose < 0.
51471         (func_create_testdir): Likewise. Use func_execute_command.
51472         (func_create_megatestdir): Use func_execute_command.
51473
51474 2007-09-08  Bruno Haible  <bruno@clisp.org>
51475
51476         * gnulib-tool (func_import): Prefer rsync over wget when available,
51477         for fetching the PO files.
51478
51479 2007-09-08  Bruno Haible  <bruno@clisp.org>
51480
51481         * posix-modules: New file. Portions copied from gnulib-tool.
51482         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51483
51484 2007-09-08  Jim Meyering  <jim@meyering.net>
51485
51486         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51487         * lib/fpending.h: Rename from __fpending.h.
51488         * lib/fpending.c: Rename from __fpending.c.
51489         Include "fpending.h", not "__fpending.h".
51490         * lib/__fpending.h, lib/__fpending.c: Remove files.
51491         * modules/fpending (Files): Reflect new file names.
51492         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51493
51494 2007-09-08  Bruno Haible  <bruno@clisp.org>
51495
51496         * m4/inttypes-h.m4: Remove stub file.
51497
51498 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51499
51500         * doc/headers/stdint.texi: Discuss #include_next issue.
51501
51502 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51505
51506 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51507
51508         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51509         in variable name.
51510
51511 2007-09-03  Jim Meyering  <jim@meyering.net>
51512
51513         New module: git-version-gen.
51514         * modules/git-version-gen: New file.
51515
51516         Import changes from coreutils for bootstrap script.
51517
51518         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51519
51520         bootstrap: uses rsync to download the .po files
51521         * build-aux/bootstrap (po_download_command_format): New global.
51522         (download_po_files): Use rsync.
51523         (update_po_files): Don't remove .po files after download,
51524         so future rsync runs can take advantage of the copies.
51525
51526         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51527
51528         Solve the unnecessary-.po-file-regeneration problem once and for all.
51529         * build-aux/bootstrap (download_po_files): New function, renamed from
51530         get_translations.  Now, downloads, but doesn't update LINGUAS.
51531         (update_po_files): New function.
51532
51533         bootstrap: Ignore more.
51534         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51535         uniwidth to e.g., lib/.gitignore.
51536         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51537
51538         * build-aux/bootstrap: New setting: vc_ignore.
51539         (insert_sorted_if_absent): Create $file if absent.
51540         Adapt to new, possibly empty, list: $vc_ignore.
51541
51542         bootstrap: generate more ignorable names
51543         * build-aux/bootstrap (slurp): When generating ignorable names,
51544         also map .sin to .sed, .gperf to .c, and .y to .c.
51545
51546 2007-09-03  Jim Meyering  <jim@meyering.net>
51547
51548         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51549         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51550
51551 2007-09-02  Bruno Haible  <bruno@clisp.org>
51552
51553         Fix mis-recognition of 'mcs' on QNX 6.
51554         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51555         output contains the string "Mono".
51556         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51557         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51558
51559 2007-09-01  Bruno Haible  <bruno@clisp.org>
51560
51561         Fix collision between uniwidth/* and linebreak modules.
51562         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51563         u32_width): Remove declarations.
51564         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51565         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51566         streq3, streq2, streq1, streq0): Remove functions.
51567         (STREQ): Remove macro.
51568         (is_cjk_encoding): Remove function.
51569         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51570         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51571         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51572         * NEWS: Document the change.
51573
51574 2007-09-01  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/streq.h: Add double-inclusion guard.
51577
51578 2007-09-01  Karl Berry  <karl@gnu.org>
51579
51580         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51581
51582 2007-08-28  Jim Meyering  <jim@meyering.net>
51583
51584         Rename mreadlink_with_size to areadlink_with_size.
51585         * NEWS: Document the change.
51586         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51587         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51588         * lib/mreadlink.h: Rename this to...
51589         * lib/areadlink.h: ...this.
51590         * modules/mreadlink-with-size: Rename this to...
51591         * modules/areadlink-with-size: ...this.
51592         * lib/canonicalize.c: Reflect the renaming.
51593         * modules/canonicalize: Likewise.
51594
51595 2007-08-26  Bruno Haible  <bruno@clisp.org>
51596
51597         * gnulib-tool (func_import): When deciding which files to remove,
51598         consider also dangling symbolic links.
51599         Reported by Eric Blake.
51600
51601 2007-08-26  Bruno Haible  <bruno@clisp.org>
51602
51603         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51604
51605 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51606
51607         * lib/readline.c: Don't include getline.h, the prototype is now
51608         found in stdio.h.
51609
51610 2007-08-23  Jim Meyering  <jim@meyering.net>
51611
51612         Getdelim touchup.
51613         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51614         around the funlockfile call, since funlockfile never sets errno.
51615         Don't set errno upon failed realloc.
51616
51617 2007-08-22  Eric Blake  <ebb9@byu.net>
51618
51619         Getline touchups.
51620         * lib/getdelim.c (getdelim): Revert regression that required *n to
51621         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51622         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51623         getdelim, rather than whether implementation is missing.
51624         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51625         * lib/stdio_.h (getline): Also declare if replacement is
51626         required.
51627         * doc/functions/getdelim.texi: New file.
51628         * doc/functions/getline.texi: Likewise.
51629         * doc/gnulib.texi (Function Substitutes): Add new files.
51630         Reported by Bruno Haible.
51631
51632 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51633
51634         * users.txt: Add Guile.
51635
51636 2007-08-22  Eric Blake  <ebb9@byu.net>
51637
51638         * tests/test-getdelim.c (main): Use remove, not unlink.
51639         * tests/test-getline.c (main): Likewise.
51640
51641         Move getline and getdelim into stdio.h, per POSIX 200x.
51642         * modules/getline (Files): Remove getline.h.
51643         (Depends-on): Add stdio.
51644         (configure.ac): Add module indicator.
51645         * modules/getdelim (Files): Remove getdelim.h.
51646         (Depends-on): Add stdio.
51647         (configure.ac): Add module indicator.
51648         * modules/stdio (Makefile.am): Work with new indicators.
51649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51651         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51652         * lib/getdelim.h: Delete.
51653         * lib/getline.h: Delete.
51654         * lib/stdio_.h (getdelim, getline): Declare.
51655         * modules/getdelim-tests: New module.
51656         * modules/getline-tests: Likewise.
51657         * tests/test-getdelim.c: New file.
51658         * tests/test-getline.c: Likewise.
51659         * NEWS: Document the change.
51660         * lib/getline.c: Update choice of header.
51661         * lib/csharpcomp.c: Likewise.
51662         * lib/getpass.c: Likewise.
51663         * lib/javacomp.c: Likewise.
51664         * lib/javaversion.c: Likewise.
51665         * lib/yesno.c: Likewise.
51666         * lib/getdelim.c: Likewise.
51667         (getdelim): Set errno on failure, and avoid memory leak.
51668
51669 2007-08-19  Bruno Haible  <bruno@clisp.org>
51670
51671         * modules/closein (Depends-on): Add freadahead.
51672         * lib/closein.c: Include freadahead.h.
51673         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51674         is zero.
51675
51676 2007-08-19  Bruno Haible  <bruno@clisp.org>
51677
51678         * modules/freadahead-tests: New file.
51679         * tests/test-freadahead.sh: New file.
51680         * tests/test-freadahead.c: New file.
51681
51682         * modules/freadahead: New file.
51683         * lib/freadahead.h: New file.
51684         * lib/freadahead.c: New file.
51685         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51686         fbufmode, fpurge, freadable, fwritable.
51687
51688 2007-08-19  Eric Blake  <ebb9@byu.net>
51689
51690         Test yesno in combination with closein.
51691         * lib/yesno.c (yesno): Document use of stdin.
51692         * modules/yesno-tests (Files): New module.
51693         * tests/test-yesno.c (main): New file.
51694         * tests/test-yesno.sh: Likewise.
51695
51696 2007-08-19  Bruno Haible  <bruno@clisp.org>
51697
51698         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51699         * lib/fseeko.c (rpl_fseeko): Likewise.
51700         * lib/fseterr.c (fseterr): Likewise.
51701
51702 2007-08-19  Bruno Haible  <bruno@clisp.org>
51703
51704         * tests/test-lseek.c (main): Disable a test for BeOS.
51705         * doc/functions/lseek.texi: Document the BeOS bug.
51706
51707 2007-08-19  Bruno Haible  <bruno@clisp.org>
51708             Eric Blake  <ebb9@byu.net>
51709
51710         * lib/lseek.c: Include <sys/stat.h>.
51711         (rpl_lseek): Add workaround code also for Unix platforms.
51712         Needed for BeOS.
51713         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51714         * doc/functions/lseek.texi: Document BeOS definiency.
51715
51716 2007-08-18  Bruno Haible  <bruno@clisp.org>
51717
51718         * modules/fstrcmp-tests: New file.
51719         * tests/test-fstrcmp.c: New file.
51720
51721 2007-08-18  Bruno Haible  <bruno@clisp.org>
51722
51723         * modules/fstrcmp: New file, from GNU gettext with modifications.
51724         * lib/fstrcmp.h: New file, from GNU gettext.
51725         * lib/fstrcmp.c: New file, from GNU gettext.
51726         * MODULES.html.sh (String handling): Add fstrcmp.
51727
51728 2007-08-18  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51731         'bool'.
51732         (diag, compareseq): Remove const from the ctxt argument.
51733         (USE_HEURISTIC): Undefine at the end.
51734
51735 2007-08-18  Jim Meyering  <jim@meyering.net>
51736
51737         New file: lib/idcache.h
51738         * NEWS: Mention the addition.
51739         * modules/idcache (Files): Add lib/idcache.h
51740         * lib/idcache.c: Include "idcache.h".
51741         Don't include <sys/types.h>.
51742         Add a FIXME comment.
51743         Move file-scoped "static" declarations to the top.
51744         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51745
51746 2007-08-17  Bruno Haible  <bruno@clisp.org>
51747         and Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         * MODULES.html.sh: Add diffseq.
51750         * modules/diffseq: New file.
51751         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51752         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51753
51754 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51755
51756         Import changes from coreutils for bootstrap script.
51757
51758         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51759
51760         * build-aux/bootstrap (slurp): Work even in environments where
51761         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51762         current code does not slurp files whose names start with ".", and
51763         this looks like it might be a troublesome area.
51764
51765         2007-07-11  Jim Meyering  <jim@meyering.net>
51766
51767         If there's a GPL vN copyright comment, require that N == 3.
51768
51769         2007-07-08  Jim Meyering  <jim@meyering.net>
51770
51771         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51772         * build-aux/bootstrap (mam_template): Move definition out of loop.
51773
51774         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51775
51776         * build-aux/bootstrap (symlink_to_dir): Rename function from
51777         symlink_to_gnulib.  Add a directory parameter.  Update all
51778         callers.
51779         (cp_mark_as_generated): Also check for -- and link to -- files in
51780         gl/.
51781
51782         2007-07-08  Jim Meyering  <jim@meyering.net>
51783
51784         Adapt to deeper hierarchy in gnulib.
51785         * build-aux/bootstrap (symlink_to_dir): If the destination
51786         directory doesn't exist, create it. This is required at least for
51787         "lib/uniwidth/cjk.h".
51788
51789         2007-05-15  Jim Meyering  <jim@meyering.net>
51790
51791         * build-aux/bootstrap: Now that generated Makefile.am files
51792         are no longer under version control, they must be created at
51793         bootstrap time.
51794
51795 2007-08-14  Ben Pfaff  <blp@gnu.org>
51796
51797         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51798
51799 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51802         given the changes below.
51803         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51804         even on hosts that have padding bits beyond the supported 64.
51805
51806 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51809         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51810         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51811         depends on it.
51812         (xstrtol_error): Remove.
51813         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51814         but with a different signature.
51815         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51816         * lib/xstrtol-error.c: Include exitfail.h.
51817         (xstrtol_fatal): New function, with a different signature from the
51818         old xstrtol_error, so that the caller need not worry about passing
51819         in an exit status, or about storage management of the option argument.
51820         (xstrtol_error): Now a static function.  Redo signature to
51821         implement xstrtol_fatal.  Output the correct number of hyphens in
51822         front of the option so that the caller need not worry about
51823         storage management.
51824         (N_): New macro.
51825         (_): Remove; not used now.
51826         * modules/xstrtol: Depend on getopt.
51827         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51828         of old STRTOL_FATAL_ERROR macro.
51829         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51830         of test program.
51831         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51832         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51833
51834 2007-08-08  Eric Blake  <ebb9@byu.net>
51835
51836         * lib/xstrtol-error.c: Add missing include.
51837
51838         Move xstrtol messages into gnulib domain, when --pobase is used.
51839         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51840         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51841         * modules/xstrtol (Files): Distribute new file.
51842         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51843         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51844         * tests/test-xstrtol.c: ...into new file.
51845         * tests/test-xstrtoul.c: Also test xstrtoul.
51846         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51847         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51848         * tests/test-xstrtol.sh: Drive the tests.
51849         * tests/test-xstrtoimax.sh: Likewise.
51850         * tests/test-xstrtoumax.sh: Likewise.
51851         * modules/xstrtol-tests: New module.
51852         * modules/xstrtoimax-tests: Likewise.
51853         * modules/xstrtoumax-tests: Likewise.
51854
51855 2007-08-08  Jim Meyering  <jim@meyering.net>
51856
51857         New function: mfile_name_concat.
51858         * lib/filenamecat.c (mfile_name_concat): New function, just like
51859         file_name_concat, but return NULL upon failure rather than exiting
51860         with a diagnostic.
51861         * lib/filenamecat.h: Declare it.
51862
51863 2007-08-07  Bruno Haible  <bruno@clisp.org>
51864
51865         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51866         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51867         warning from gcc.
51868         Reported by Eric Blake.
51869
51870 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51871
51872         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51873         * modules/crypto/arcfour (License): Likewise.
51874         * modules/crypto/des-tests (License): Likewise.
51875         * modules/crypto/gc-arctwo-tests (License): Likewise.
51876         * modules/crypto/gc-des-tests (License): Likewise.
51877         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51878         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51879         * modules/crypto/gc-md2-tests (License): Likewise.
51880         * modules/crypto/gc-md4-tests (License): Likewise.
51881         * modules/crypto/gc-md5-tests (License): Likewise.
51882         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51883         * modules/crypto/gc-rijndael-tests (License): Likewise.
51884         * modules/crypto/gc-sha1-tests (License): Likewise.
51885         * modules/crypto/gc-tests (License): Likewise.
51886         * modules/crypto/hmac-md5 (License): Likewise.
51887         * modules/crypto/hmac-sha1 (License): Likewise.
51888         * modules/crypto/md2-tests (License): Likewise.
51889         * modules/crypto/md4-tests (License): Likewise.
51890         * modules/crypto/md5 (License): Likewise.
51891         * modules/crypto/rijndael (License): Likewise.
51892         * modules/crypto/sha1 (License): Likewise.
51893         * modules/memxor (License): Likewise.
51894
51895 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51896         and Bruno Haible  <bruno@clisp.org>
51897
51898         * NEWS: Describe interface changes to human, xstrtol.
51899         * lib/human.h: Include <xstrtol.h>.
51900         (human_options): Return enum strtol_error, not int.  Remove
51901         bool arg; take int * instead.
51902         * lib/human.c: Don't include "gettext.h".
51903         (_): Remove; no longer used.
51904         Don't include <xstrtol.h>, since human.h does it.
51905         (human_options): Adjust to abovementioned interface changes.
51906         Do not report error to stderr; that's now the caller's
51907         responsibility.
51908         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51909         interface change.
51910         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51911         Str, Argument_type_string.  All uses changed.  Put " argument"
51912         in diagnostics to make them clearer.  Change wording of suffix
51913         message for clarity.
51914         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51915         Argument_type_string.
51916         (STRTOL_FATAL_WARN): Remove; no longer used.
51917         * modules/human (Depends-on): Remove gettext-h.
51918
51919 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51920
51921         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51922
51923 2007-07-31  Bruno Haible  <bruno@clisp.org>
51924
51925         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51926         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51927         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51928
51929 2007-07-31  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51932         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51933
51934 2007-07-30  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51937         * modules/c-ctype (License): Likewise.
51938         * modules/c-strcase (License): Likewise.
51939         * modules/check-version (License): Likewise.
51940         * modules/iconv (License): Likewise.
51941         * modules/iconv_open (License): Likewise.
51942         * modules/read-file (License): Likewise.
51943         * modules/striconv (License): Likewise.
51944         * modules/strverscmp (License): Likewise.
51945         * modules/vasprintf (License): Likewise.
51946         * modules/crypto/des (License): Likewise.
51947         * modules/crypto/gc (License): Likewise.
51948         * modules/crypto/gc-arcfour (License): Likewise.
51949         * modules/crypto/gc-arctwo (License): Likewise.
51950         * modules/crypto/gc-des (License): Likewise.
51951         * modules/crypto/gc-hmac-md5 (License): Likewise.
51952         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51953         * modules/crypto/gc-md2 (License): Likewise.
51954         * modules/crypto/gc-md4 (License): Likewise.
51955         * modules/crypto/gc-md5 (License): Likewise.
51956         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51957         * modules/crypto/gc-random (License): Likewise.
51958         * modules/crypto/gc-rijndael (License): Likewise.
51959         * modules/crypto/gc-sha1 (License): Likewise.
51960         * modules/crypto/md2 (License): Likewise.
51961         * modules/crypto/md4 (License): Likewise.
51962
51963 2007-07-30  Jim Meyering  <jim@meyering.net>
51964
51965         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51966         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51967         it has valid stat data.  This bug would cause du not to count the
51968         sizes of inaccessible directories.
51969         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51970         in <http://bugzilla.redhat.com/250077>.
51971
51972 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51973             Bruno Haible  <bruno@clisp.org>
51974
51975         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51976         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51977         #include_next, gives a diagnostic about it, but reports no error in
51978         the exit code.
51979         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51980
51981 2007-07-24  Ben Pfaff  <blp@gnu.org>
51982
51983         Improve name: "count-one-bits" is better than "popcount".
51984         * MODULES.html.sh: Update name.
51985         * lib/popcount.h: Renamed lib/count-one-bits.h.
51986         (popcount): Renamed count_one_bits.
51987         (popcountl): Renamed count_one_bits_l.
51988         (popcountll): Renamed count_one_bits_ll.
51989         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51990         * modules/popcount: Renamed module/count-one-bits.
51991         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51992         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51993
51994 2007-07-23  Ben Pfaff  <blp@gnu.org>
51995
51996         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51997         better code generation, and add U to large constants to avoid
51998         warnings, in non-GCC case.
51999         Suggested by Bruno Haible.
52000
52001 2007-07-23  Ben Pfaff  <blp@gnu.org>
52002
52003         * lib/popcount.h: Use verify_true instead of if...abort.
52004         * modules/popcount: Depend on verify module.
52005         Suggested by Jim Meyering.
52006
52007 2007-07-23  Bruno Haible  <bruno@clisp.org>
52008
52009         * gnulib-tool (func_import): Create a .cvsignore file also when the
52010         directory is not yet in CVS but the toplevel directory is. When
52011         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52012         Reported by Karl Berry.
52013
52014 2007-07-22  Ben Pfaff  <blp@gnu.org>
52015
52016         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52017         case.
52018         Suggested by Eric Blake.
52019
52020 2007-07-22  Ben Pfaff  <blp@gnu.org>
52021
52022         New module: popcount.
52023         * MODULES.html.sh: Add popcount.
52024         * modules/popcount: New file.
52025         * modules/popcount-tests: New file.
52026         * tests/test-popcount.c: New file.
52027         * lib/popcount.h: New file.
52028         * m4/popcount.m4: New file.
52029
52030 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52031
52032         * build-aux/announce-gen: Update to GPLv3.
52033
52034         * build-aux/config.guess: Update from config.
52035
52036 2007-07-21  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52039         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52040
52041 2007-07-20  Jim Meyering  <jim@meyering.net>
52042
52043         * check-module: Diagnose a self-dependency.
52044
52045 2007-07-19  Bruno Haible  <bruno@clisp.org>
52046
52047         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52048         empty.
52049         Reported by Eric Blake.
52050
52051 2007-07-18  Bruno Haible  <bruno@clisp.org>
52052
52053         * gnulib-tool: New options --po-base, --po-domain.
52054         (func_usage): Document them.
52055         (pobase, po_domain): New variables.
52056         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52057         DEFAULT_TEXT_DOMAIN.
52058         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52059         (func_import): Consider pobase and po_domain. Create a po/ directory.
52060         (func_create_testdir): Set pobase and po_domain to empty.
52061         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52062         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52063
52064 2007-07-18  Bruno Haible  <bruno@clisp.org>
52065
52066         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52067         EXTRA_DIST augmentation for files in build-aux/.
52068
52069 2007-07-16  Bruno Haible  <bruno@clisp.org>
52070
52071         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52072         * modules/getdelim (License): Likewise.
52073
52074 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52075
52076         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52077         * modules/d-type (License): Likewise.
52078         * modules/extensions (License): Likewise.
52079         * modules/fnmatch (License): Likewise.
52080         * modules/fseeko (License): Likewise.
52081         * modules/getaddrinfo (License): Likewise.
52082         * modules/getline (License): Likewise.
52083         * modules/getlogin_r (License): Likewise.
52084         * modules/getpass (License): Likewise.
52085         * modules/gettimeofday (License): Likewise.
52086         * modules/glob (License): Likewise.
52087         * modules/inet_ntop (License): Likewise.
52088         * modules/malloc (License): Likewise.
52089         * modules/malloca (License): Likewise.
52090         * modules/memmem (License): Likewise.
52091         * modules/mempcpy (License): Likewise.
52092         * modules/memset (License): Likewise.
52093         * modules/minmax (License): Likewise.
52094         * modules/mktime (License): Likewise.
52095         * modules/netinet_in (License): Likewise.
52096         * modules/pathmax (License): Likewise.
52097         * modules/poll (License): Likewise.
52098         * modules/regex (License): Likewise.
52099         * modules/snprintf (License): Likewise.
52100         * modules/stdbool (License): Likewise.
52101         * modules/stdint (License): Likewise.
52102         * modules/stdio (License): Likewise.
52103         * modules/strcase (License): Likewise.
52104         * modules/strcasestr (License): Likewise.
52105         * modules/strdup (License): Likewise.
52106         * modules/string (License): Likewise.
52107         * modules/strndup (License): Likewise.
52108         * modules/strnlen (License): Likewise.
52109         * modules/strpbrk (License): Likewise.
52110         * modules/strptime (License): Likewise.
52111         * modules/strsep (License): Likewise.
52112         * modules/sys_select (License): Likewise.
52113         * modules/sys_socket (License): Likewise.
52114         * modules/sys_stat (License): Likewise.
52115         * modules/sys_time (License): Likewise.
52116         * modules/time (License): Likewise.
52117         * modules/time_r (License): Likewise.
52118         * modules/timegm (License): Likewise.
52119         * modules/unistd (License): Likewise.
52120         * modules/vsnprintf (License): Likewise.
52121         * modules/wctype (License): Likewise.
52122
52123 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52124
52125         * modules/argz (License): LGPLv2+.
52126
52127 2007-07-15  Karl Berry  <karl@gnu.org>
52128
52129         * doc/gnulib.texi: revise node structure per new fdl.texi.
52130
52131 2007-07-14  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52134         the output file.
52135         * lib/uniname/uninames.h: Regenerated.
52136
52137 2007-07-14  Karl Berry  <karl@gnu.org>
52138
52139         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52140         omitting sectioning and index commands.
52141
52142 2007-07-13  Bruno Haible  <bruno@clisp.org>
52143
52144         New gnulib-tool option --more-symlinks.
52145         * gnulib-tool (func_usage): Document --more-symlinks.
52146         (do_copyrights): New variable.
52147         Recognize option --more-symlinks.
52148         (func_import): Don't add a copyright notice transform to
52149         sed_transform_lib_file if do_copyrights is empty.
52150
52151 2007-07-13  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/vasnprintf.c (decimal_point_char): Define also if
52154         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52155         && !NEED_PRINTF_DIRECTIVE_A.
52156         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52157         Gary V. Vaughan <gary@gnu.org>.
52158
52159 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52160
52161         * lib/inttypes_.h: Undo previous change, since it was fixed
52162         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52163
52164 2007-07-13  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52167         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52168
52169 2007-07-13  Jim Meyering  <jim@meyering.net>
52170
52171         df: Don't fail for Tru64's "file-on-file mount".
52172         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52173         so we fall through and use statfs instead.  Details here:
52174         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52175         Reported by Albert Chin.
52176
52177 2007-07-13  Bruno Haible  <bruno@clisp.org>
52178
52179         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52180         * modules/configmake (License): Likewise.
52181         * modules/gettext (License): Likewise.
52182         * modules/gettext-h (License): Likewise.
52183         * modules/include_next (License): Likewise.
52184         * modules/link-warning (License): Likewise.
52185         * modules/localcharset (License): Likewise.
52186         * modules/localename (License): Likewise.
52187         * modules/lock (License): Likewise.
52188         * modules/relocatable-lib-lgpl (License): Likewise.
52189         * modules/size_max (License): Likewise.
52190         * modules/vasnprintf (License): Likewise.
52191         * modules/wchar (License): Likewise.
52192         * modules/xsize (License): Likewise.
52193
52194 2007-07-13  Bruno Haible  <bruno@clisp.org>
52195
52196         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52197         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52198
52199 2007-07-12  Bruno Haible  <bruno@clisp.org>
52200
52201         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52202         in the modules files.
52203
52204 2007-07-11  Karl Berry  <karl@gnu.org>
52205
52206         * MODULES.html.sh (func_module): use
52207          sed -e '\|^'"${includefile}"'$|d'
52208          instead of /.../d, to avoid errors on $includefile's containing /.
52209
52210 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52211
52212         * gnulib-tool (func_import): Avoid duplication of --avoid
52213         statements
52214         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52215         names to `_' in variable names.
52216
52217 2007-07-10  Eric Blake  <ebb9@byu.net>
52218
52219         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52220         * NEWS: Document this change.
52221
52222 2007-07-08  Bruno Haible  <bruno@clisp.org>
52223
52224         Update to Unicode 5.0.
52225         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52226         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52227         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52228         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52229         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52230         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52231         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52232         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52233         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52234         U+10A3F, U+1D242..U+1D244.
52235         (nonspacing_table_ind): Update.
52236         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52237         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52238
52239 2007-07-08  Bruno Haible  <bruno@clisp.org>
52240
52241         Update to Unicode 5.0.
52242         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52243         code transform. Extend the name index field of unicode_name_to_code and
52244         unicode_code_to_name from 16 to 24 bits.
52245         * lib/uniname/uniname.c (unicode_character_name,
52246         unicode_name_character): Add the range 0x12xxx to the code transform.
52247         * lib/uniname/uninames.h: Regenerated.
52248         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52249
52250 2007-07-07  Bruno Haible  <bruno@clisp.org>
52251
52252         * modules/wcwidth-tests: New file.
52253         * tests/test-wcwidth.c: New file.
52254
52255         Work around MacOS X wcwidth() bug.
52256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52257         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52258         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52259         original wcwidth in non-UTF-8 locales.
52260         * modules/wcwidth (Depends-on): Add localcharset, streq,
52261         uniwidth/width.
52262         * doc/functions/wcwidth.texi: Update.
52263
52264 2007-07-07  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52267         (wcwidth): New declaration.
52268         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52269         macros.
52270         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52271         here. Prepare for creating <wchar.h> unconditionally.
52272         * modules/wchar (Depends-on): Add link-warning.
52273         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52274         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52275         * lib/wcwidth.h: Remove file.
52276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52277         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52278         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52279         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52280         (Include): Replace wcwidth.h with <wchar.h>.
52281         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52282         * lib/mbchar.h: Don't include wcwidth.h.
52283         * lib/mbswidth.c: Likewise.
52284         * NEWS: Mention the change.
52285
52286 2007-07-07  Bruno Haible  <bruno@clisp.org>
52287
52288         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52289         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52290         definition with an external declaration.
52291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52292         defined as a function. Remove AC_C_INLINE requirement.
52293         * modules/wcwidth (Files): Add lib/wcwidth.c.
52294         (Makefile.am): Remove redundant statement.
52295
52296 2007-07-07  Bruno Haible  <bruno@clisp.org>
52297
52298         * MODULES.html.sh (Unicode string functions): Add the new modules.
52299
52300         * tests/uniwidth/test-u32-strwidth.c: New file.
52301         * modules/uniwidth/u32-strwidth-tests: New file.
52302
52303         * lib/uniwidth/u32-strwidth.c: New file.
52304         * modules/uniwidth/u32-strwidth: New file.
52305
52306         * tests/uniwidth/test-u16-strwidth.c: New file.
52307         * modules/uniwidth/u16-strwidth-tests: New file.
52308
52309         * lib/uniwidth/u16-strwidth.c: New file.
52310         * modules/uniwidth/u16-strwidth: New file.
52311
52312         * tests/uniwidth/test-u8-strwidth.c: New file.
52313         * modules/uniwidth/u8-strwidth-tests: New file.
52314
52315         * lib/uniwidth/u8-strwidth.c: New file.
52316         * modules/uniwidth/u8-strwidth: New file.
52317
52318         * tests/uniwidth/test-u32-width.c: New file.
52319         * modules/uniwidth/u32-width-tests: New file.
52320
52321         * lib/uniwidth/u32-width.c: New file.
52322         * modules/uniwidth/u32-width: New file.
52323
52324         * tests/uniwidth/test-u16-width.c: New file.
52325         * modules/uniwidth/u16-width-tests: New file.
52326
52327         * lib/uniwidth/u16-width.c: New file.
52328         * modules/uniwidth/u16-width: New file.
52329
52330         * tests/uniwidth/test-u8-width.c: New file.
52331         * modules/uniwidth/u8-width-tests: New file.
52332
52333         * lib/uniwidth/u8-width.c: New file.
52334         * modules/uniwidth/u8-width: New file.
52335
52336         * tests/uniwidth/test-uc_width.c: New file.
52337         * modules/uniwidth/width-tests: New file.
52338
52339         * lib/uniwidth/width.c: New file, from GNU libiconv.
52340         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52341         * modules/uniwidth/width: New file.
52342
52343         * lib/uniwidth.h: New file, from GNU libiconv.
52344         * modules/uniwidth/base: New file.
52345
52346 2007-07-07  Bruno Haible  <bruno@clisp.org>
52347
52348         * lib/uniname.h: New file, from GNU gettext.
52349         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52350         * lib/uniname/uninames.h: New file, from GNU gettext.
52351         * lib/uniname/uniname.c: New file, from GNU gettext.
52352         * tests/uniname/test-uninames.sh: New file.
52353         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52354         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52355         * modules/uniname/base: New file.
52356         * modules/uniname/uniname: New file.
52357         * modules/uniname/uniname-tests: New file.
52358         * MODULES.html.sh (Unicode string functions): Add the new modules.
52359
52360 2007-07-06  Bruno Haible  <bruno@clisp.org>
52361
52362         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52363
52364 2007-07-06  Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52367         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52368         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52369         include <sys/time.h>.
52370         Reported by Eric Blake.
52371
52372 2007-07-06  Eric Blake  <ebb9@byu.net>
52373
52374         Fix testing canonicalize on cygwin.
52375         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52376         Revert patch from 2007-06-19.
52377         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52378         canonicalize module is also in use.
52379         * tests/test-canonicalize.c: New file.
52380         * tests/test-canonicalize.sh: Likewise.
52381         * modules/canonicalize-tests: Likewise.
52382
52383 2007-07-06  Jim Meyering  <jim@meyering.net>
52384
52385         * lib/getugroups.c (getugroups): Detect getgrent failure.
52386         Adjust comment to reflect reality: this function may return -1.
52387
52388 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52389
52390         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52391         the new TP address.
52392         (usage): Fix typo
52393         (gnulib_mk): New variable.
52394
52395 2007-07-05  Jim Meyering  <jim@meyering.net>
52396
52397         Don't let endgrent clobber errno, no matter how improbable.
52398         * lib/getugroups.c (getugroups): Save and restore errno around
52399         endgrent call.
52400
52401         Close the group DB even when failing with 2^31 or more members.
52402         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52403
52404 2007-07-04  Jim Meyering  <jim@meyering.net>
52405
52406         * lib/getugroups.h: New file.
52407         * lib/getugroups.c: Include "getugroups.h".
52408         Remove uses of "register" keyword.
52409         Move local variable, "cp", down into scope where used.
52410         Give "username" parameter the "const" attribute.
52411         * modules/getugroups (Files): Add lib/getugroups.h
52412
52413 2007-07-04  Karl Berry  <karl@gnu.org>
52414
52415         * MODULES.html.sh (func_all_modules): Complete rename of
52416         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52417
52418 2007-07-02  Bruno Haible  <bruno@clisp.org>
52419
52420         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52421         mode, when inttypes.h comes from gnulib.
52422         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52423
52424 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52425
52426         * NEWS: Mention lgpl module name change.
52427
52428         * modules/lgpl-2.1: Renamed from lgpl.
52429
52430         * NEWS: Mention gpl module name change.
52431
52432         * modules/gpl-3.0: New file, based on gpl-2.0.
52433
52434         * modules/gpl-2.0: Renamed from gpl.
52435
52436         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52437         doc/gpl-2.0.texi.
52438
52439 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52440
52441         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52442         #define __STDC_LIMIT_MACROS temporarily while including
52443         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52444         Problem reported by Joel E. Denny in
52445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52446
52447 2007-07-01  Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/unistdio.h: New file.
52450         * lib/unistdio/u-asnprintf.h: New file.
52451         * lib/unistdio/u-asprintf.h: New file.
52452         * lib/unistdio/u-printf-args.c: New file.
52453         * lib/unistdio/u-printf-args.h: New file.
52454         * lib/unistdio/u-printf-parse.h: New file.
52455         * lib/unistdio/u-snprintf.h: New file.
52456         * lib/unistdio/u-sprintf.h: New file.
52457         * lib/unistdio/u-vasprintf.h: New file.
52458         * lib/unistdio/u-vsnprintf.h: New file.
52459         * lib/unistdio/u-vsprintf.h: New file.
52460         * lib/unistdio/ulc-asnprintf.c: New file.
52461         * lib/unistdio/ulc-asprintf.c: New file.
52462         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52463         * lib/unistdio/ulc-printf-parse.c: New file.
52464         * lib/unistdio/ulc-snprintf.c: New file.
52465         * lib/unistdio/ulc-sprintf.c: New file.
52466         * lib/unistdio/ulc-vasnprintf.c: New file.
52467         * lib/unistdio/ulc-vasprintf.c: New file.
52468         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52469         * lib/unistdio/ulc-vsnprintf.c: New file.
52470         * lib/unistdio/ulc-vsprintf.c: New file.
52471         * lib/unistdio/u8-asnprintf.c: New file.
52472         * lib/unistdio/u8-asprintf.c: New file.
52473         * lib/unistdio/u8-printf-parse.c: New file.
52474         * lib/unistdio/u8-snprintf.c: New file.
52475         * lib/unistdio/u8-sprintf.c: New file.
52476         * lib/unistdio/u8-vasnprintf.c: New file.
52477         * lib/unistdio/u8-vasprintf.c: New file.
52478         * lib/unistdio/u8-vsnprintf.c: New file.
52479         * lib/unistdio/u8-vsprintf.c: New file.
52480         * lib/unistdio/u8-u8-asnprintf.c: New file.
52481         * lib/unistdio/u8-u8-asprintf.c: New file.
52482         * lib/unistdio/u8-u8-snprintf.c: New file.
52483         * lib/unistdio/u8-u8-sprintf.c: New file.
52484         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52485         * lib/unistdio/u8-u8-vasprintf.c: New file.
52486         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52487         * lib/unistdio/u8-u8-vsprintf.c: New file.
52488         * lib/unistdio/u16-asnprintf.c: New file.
52489         * lib/unistdio/u16-asprintf.c: New file.
52490         * lib/unistdio/u16-printf-parse.c: New file.
52491         * lib/unistdio/u16-snprintf.c: New file.
52492         * lib/unistdio/u16-sprintf.c: New file.
52493         * lib/unistdio/u16-vasnprintf.c: New file.
52494         * lib/unistdio/u16-vasprintf.c: New file.
52495         * lib/unistdio/u16-vsnprintf.c: New file.
52496         * lib/unistdio/u16-vsprintf.c: New file.
52497         * lib/unistdio/u16-u16-asnprintf.c: New file.
52498         * lib/unistdio/u16-u16-asprintf.c: New file.
52499         * lib/unistdio/u16-u16-snprintf.c: New file.
52500         * lib/unistdio/u16-u16-sprintf.c: New file.
52501         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52502         * lib/unistdio/u16-u16-vasprintf.c: New file.
52503         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52504         * lib/unistdio/u16-u16-vsprintf.c: New file.
52505         * lib/unistdio/u32-asnprintf.c: New file.
52506         * lib/unistdio/u32-asprintf.c: New file.
52507         * lib/unistdio/u32-printf-parse.c: New file.
52508         * lib/unistdio/u32-snprintf.c: New file.
52509         * lib/unistdio/u32-sprintf.c: New file.
52510         * lib/unistdio/u32-vasnprintf.c: New file.
52511         * lib/unistdio/u32-vasprintf.c: New file.
52512         * lib/unistdio/u32-vsnprintf.c: New file.
52513         * lib/unistdio/u32-vsprintf.c: New file.
52514         * lib/unistdio/u32-u32-asnprintf.c: New file.
52515         * lib/unistdio/u32-u32-asprintf.c: New file.
52516         * lib/unistdio/u32-u32-snprintf.c: New file.
52517         * lib/unistdio/u32-u32-sprintf.c: New file.
52518         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52519         * lib/unistdio/u32-u32-vasprintf.c: New file.
52520         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52521         * lib/unistdio/u32-u32-vsprintf.c: New file.
52522         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52523         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52524         * tests/unistdio/test-ulc-printf1.h: New file.
52525         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52526         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52527         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52528         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52529         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52530         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52531         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52532         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52533         * tests/unistdio/test-u8-asnprintf1.c: New file.
52534         * tests/unistdio/test-u8-asnprintf1.h: New file.
52535         * tests/unistdio/test-u8-printf1.h: New file.
52536         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52537         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52538         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52539         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52540         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52541         * tests/unistdio/test-u8-vasprintf1.c: New file.
52542         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52543         * tests/unistdio/test-u8-vsprintf1.c: New file.
52544         * tests/unistdio/test-u16-asnprintf1.c: New file.
52545         * tests/unistdio/test-u16-asnprintf1.h: New file.
52546         * tests/unistdio/test-u16-printf1.h: New file.
52547         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52548         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52549         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52550         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52551         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52552         * tests/unistdio/test-u16-vasprintf1.c: New file.
52553         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52554         * tests/unistdio/test-u16-vsprintf1.c: New file.
52555         * tests/unistdio/test-u32-asnprintf1.c: New file.
52556         * tests/unistdio/test-u32-asnprintf1.h: New file.
52557         * tests/unistdio/test-u32-printf1.h: New file.
52558         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52559         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52560         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52561         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52562         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52563         * tests/unistdio/test-u32-vasprintf1.c: New file.
52564         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52565         * tests/unistdio/test-u32-vsprintf1.c: New file.
52566         * modules/unistdio/base: New file.
52567         * modules/unistdio/u-printf-args: New file.
52568         * modules/unistdio/ulc-asnprintf: New file.
52569         * modules/unistdio/ulc-asprintf: New file.
52570         * modules/unistdio/ulc-fprintf: New file.
52571         * modules/unistdio/ulc-printf-parse: New file.
52572         * modules/unistdio/ulc-snprintf: New file.
52573         * modules/unistdio/ulc-sprintf: New file.
52574         * modules/unistdio/ulc-vasnprintf: New file.
52575         * modules/unistdio/ulc-vasprintf: New file.
52576         * modules/unistdio/ulc-vfprintf: New file.
52577         * modules/unistdio/ulc-vsnprintf: New file.
52578         * modules/unistdio/ulc-vsprintf: New file.
52579         * modules/unistdio/u8-asnprintf: New file.
52580         * modules/unistdio/u8-asprintf: New file.
52581         * modules/unistdio/u8-printf-parse: New file.
52582         * modules/unistdio/u8-snprintf: New file.
52583         * modules/unistdio/u8-sprintf: New file.
52584         * modules/unistdio/u8-vasnprintf: New file.
52585         * modules/unistdio/u8-vasprintf: New file.
52586         * modules/unistdio/u8-vsnprintf: New file.
52587         * modules/unistdio/u8-vsprintf: New file.
52588         * modules/unistdio/u8-u8-asnprintf: New file.
52589         * modules/unistdio/u8-u8-asprintf: New file.
52590         * modules/unistdio/u8-u8-snprintf: New file.
52591         * modules/unistdio/u8-u8-sprintf: New file.
52592         * modules/unistdio/u8-u8-vasnprintf: New file.
52593         * modules/unistdio/u8-u8-vasprintf: New file.
52594         * modules/unistdio/u8-u8-vsnprintf: New file.
52595         * modules/unistdio/u8-u8-vsprintf: New file.
52596         * modules/unistdio/u16-asnprintf: New file.
52597         * modules/unistdio/u16-asprintf: New file.
52598         * modules/unistdio/u16-printf-parse: New file.
52599         * modules/unistdio/u16-snprintf: New file.
52600         * modules/unistdio/u16-sprintf: New file.
52601         * modules/unistdio/u16-vasnprintf: New file.
52602         * modules/unistdio/u16-vasprintf: New file.
52603         * modules/unistdio/u16-vsnprintf: New file.
52604         * modules/unistdio/u16-vsprintf: New file.
52605         * modules/unistdio/u16-u16-asnprintf: New file.
52606         * modules/unistdio/u16-u16-asprintf: New file.
52607         * modules/unistdio/u16-u16-snprintf: New file.
52608         * modules/unistdio/u16-u16-sprintf: New file.
52609         * modules/unistdio/u16-u16-vasnprintf: New file.
52610         * modules/unistdio/u16-u16-vasprintf: New file.
52611         * modules/unistdio/u16-u16-vsnprintf: New file.
52612         * modules/unistdio/u16-u16-vsprintf: New file.
52613         * modules/unistdio/u32-asnprintf: New file.
52614         * modules/unistdio/u32-asprintf: New file.
52615         * modules/unistdio/u32-printf-parse: New file.
52616         * modules/unistdio/u32-snprintf: New file.
52617         * modules/unistdio/u32-sprintf: New file.
52618         * modules/unistdio/u32-vasnprintf: New file.
52619         * modules/unistdio/u32-vasprintf: New file.
52620         * modules/unistdio/u32-vsnprintf: New file.
52621         * modules/unistdio/u32-vsprintf: New file.
52622         * modules/unistdio/u32-u32-asnprintf: New file.
52623         * modules/unistdio/u32-u32-asprintf: New file.
52624         * modules/unistdio/u32-u32-snprintf: New file.
52625         * modules/unistdio/u32-u32-sprintf: New file.
52626         * modules/unistdio/u32-u32-vasnprintf: New file.
52627         * modules/unistdio/u32-u32-vasprintf: New file.
52628         * modules/unistdio/u32-u32-vsnprintf: New file.
52629         * modules/unistdio/u32-u32-vsprintf: New file.
52630         * modules/unistdio/ulc-asnprintf-tests: New file.
52631         * modules/unistdio/ulc-vasnprintf-tests: New file.
52632         * modules/unistdio/ulc-vasprintf-tests: New file.
52633         * modules/unistdio/ulc-vsnprintf-tests: New file.
52634         * modules/unistdio/ulc-vsprintf-tests: New file.
52635         * modules/unistdio/u8-asnprintf-tests: New file.
52636         * modules/unistdio/u8-vasnprintf-tests: New file.
52637         * modules/unistdio/u8-vasprintf-tests: New file.
52638         * modules/unistdio/u8-vsnprintf-tests: New file.
52639         * modules/unistdio/u8-vsprintf-tests: New file.
52640         * modules/unistdio/u16-asnprintf-tests: New file.
52641         * modules/unistdio/u16-vasnprintf-tests: New file.
52642         * modules/unistdio/u16-vasprintf-tests: New file.
52643         * modules/unistdio/u16-vsnprintf-tests: New file.
52644         * modules/unistdio/u16-vsprintf-tests: New file.
52645         * modules/unistdio/u32-asnprintf-tests: New file.
52646         * modules/unistdio/u32-vasnprintf-tests: New file.
52647         * modules/unistdio/u32-vasprintf-tests: New file.
52648         * modules/unistdio/u32-vsnprintf-tests: New file.
52649         * modules/unistdio/u32-vsprintf-tests: New file.
52650         * MODULES.html.sh (Unicode string functions): Add the new modules.
52651
52652 2007-07-01  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/sprintf.c (sprintf): Limit the available length estimation,
52655         to avoid address wraparound.
52656         * lib/vsprintf.c (vsprintf): Likewise.
52657         * modules/sprintf-posix (Dependencies): Add stdint.
52658         * modules/vsprintf-posix (Dependencies): Likewise.
52659
52660 2007-07-01  Bruno Haible  <bruno@clisp.org>
52661
52662         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52663         Windows PATH as well. Conservative double-quoting. Comments.
52664
52665 2007-07-01  Bruno Haible  <bruno@clisp.org>
52666             Eric Blake  <ebb9@byu.net>
52667             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52668
52669         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52670         empty components in $PATH, denoting '.'.
52671
52672 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52673
52674         * gnulib-tool: Fix indentation.
52675         (func_create_megatestdir): Likewise.
52676         Report by Bruno Haible.
52677
52678 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52679
52680         Sync from Automake.
52681         * build-aux/gnupload: Fix shell portability issues with for loops.
52682         Report by Karl Berry.
52683
52684 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52685
52686         * build-aux/maint.mk (POURL): Use translationproject.org.
52687
52688 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52689             Bruno Haible  <bruno@clisp.org>
52690
52691         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52692         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52693         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52694         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52695         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52696
52697 2007-06-27  Bruno Haible  <bruno@clisp.org>
52698
52699         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52700         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52701
52702 2007-06-26  Karl Berry  <karl@gnu.org>
52703
52704         * MODULES.html.sh: remove xreadlink-with-size.
52705
52706 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52709         method that I hope also handles the double-include problem noted
52710         by Bruno Haible in
52711         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52712
52713 2007-06-23  Bruno Haible  <bruno@clisp.org>
52714
52715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52716         Don't let the 'mostlyclean' target fail if the last subdirectory could
52717         not be removed.
52718         Reported by Karl Berry.
52719
52720 2007-06-23  Bruno Haible  <bruno@clisp.org>
52721
52722         * gnulib-tool (echo): Add a speedier workaround for ksh.
52723         * tests/test-echo.sh: Likewise.
52724
52725 2007-06-23  Bruno Haible  <bruno@clisp.org>
52726
52727         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52728         * tests/test-echo.sh: Likewise.
52729
52730 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52731
52732         * gnulib-tool (IFS): Initialize early, so we don't set it to
52733         empty later.
52734         (self_abspathname): Rewrite algorithm to set it, reindent.
52735         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52736         (func_create_megatestdir): Merge some sed scripts.
52737
52738 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52739
52740         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52741         exposed by Sun Studio 11 cc on Solaris 8.
52742
52743 2007-06-22  Bruno Haible  <bruno@clisp.org>
52744
52745         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52746         backslashes.
52747         * tests/test-echo.sh: New file.
52748
52749 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52750
52751         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52752         simplify `sed_replace_build_aux' scripts, they are portable but
52753         echoing them with `echo' is not.
52754         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52755
52756 2007-06-21  Karl Berry  <karl@gnu.org>
52757
52758         * config/srclist.txt: guess we can't handle the licenses via
52759         srclist at the moment.
52760
52761 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52762
52763         * MODULES.html.sh: Add include_next.
52764         * modules/include_next: New file.
52765
52766 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52767
52768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52769         INCLUDE_NEXT.
52770         (gl_CHECK_NEXT_HEADERS): New macro.
52771         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52772         the obsolescent gl_ABSOLUTE_HEADER.
52773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52774         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52775         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52776         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52777         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52778         * m4/math_h.m4 (gl_MATH_H): Likewise.
52779         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52780         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52781         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52782         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52783         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52784         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52785         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52788         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52789         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52790         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52791         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52792         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52793         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52794         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52795         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52796         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52797         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52798         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52799         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52800         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52801         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52802         * lib/float_.h: Likewise.
52803         * lib/inttypes_.h: Likewise.
52804         * lib/math_.h: Likewise.
52805         * lib/search_.h: Likewise.
52806         * lib/signal_.h: Likewise.
52807         * lib/stdint_.h: Likewise.
52808         * lib/stdio_.h: Likewise.
52809         * lib/stdlib_.h: Likewise.
52810         * lib/string_.h: Likewise.
52811         * lib/sys_stat_.h: Likewise.
52812         * lib/sys_time_.h: Likewise.
52813         * lib/time_.h: Likewise.
52814         * lib/unistd_.h: Likewise.
52815         * lib/wchar_.h: Likewise.
52816         * lib/wctype_.h: Likewise.
52817         * lib/dirent_.h: Likewise.
52818         * lib/iconv_.h: Likewise.
52819         * lib/locale_.h: Likewise.
52820         * lib/netinet_in_.h: Likewise.
52821         * lib/sys_select_.h: Likewise.
52822         * lib/sys_socket_.h: Likewise.
52823         * lib/sysexits_.h: Likewise.
52824         * modules/fcntl (Depends-on): Depend on include_next, not
52825         absolute_header.
52826         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52827         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52828         * modules/fchdir: Likewise.
52829         * modules/float: Likewise.
52830         * modules/iconv_open: Likewise.
52831         * modules/inttypes: Likewise.
52832         * modules/locale: Likewise.
52833         * modules/math: Likewise.
52834         * modules/netinet_in: Likewise.
52835         * modules/search: Likewise.
52836         * modules/signal: Likewise.
52837         * modules/stdint: Likewise.
52838         * modules/stdio: Likewise.
52839         * modules/stdlib: Likewise.
52840         * modules/string: Likewise.
52841         * modules/sys_select: Likewise.
52842         * modules/sys_socket: Likewise.
52843         * modules/sys_stat: Likewise.
52844         * modules/sys_time: Likewise.
52845         * modules/sysexits: Likewise.
52846         * modules/time: Likewise.
52847         * modules/unistd: Likewise.
52848         * modules/wchar: Likewise.
52849         * modules/wctype: Likewise.
52850         * modules/sys_stat: Change maintainer to "all".
52851         * modules/unistd: Likewise.
52852
52853 2007-06-20  Karl Berry  <karl@gnu.org>
52854
52855         * config/srclist.txt: track www changes in license files.
52856
52857 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52858
52859         * build-aux/bootstrap: Remove stray dot.
52860         Make sure build_aux settings are honored when linking
52861         gnulib_extra_files.
52862
52863 2007-06-19  Eric Blake  <ebb9@byu.net>
52864
52865         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52866         Allow compilation on cygwin.
52867
52868 2007-06-19  Jim Meyering  <jim@meyering.net>
52869
52870         xreadlink-with-size: Remove module.  No longer used.
52871         Ex-callers now use xreadlink or mreadlink-with-size.
52872         * modules/xreadlink-with-size: Remove module.
52873         * lib/xreadlink-with-size.c: Remove file.
52874         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52875         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52876         just before the function definition *is* accurate.
52877
52878         Eliminate one way canonicalize_filename_mode could exit.
52879         * lib/canonicalize.c (canonicalize_filename_mode):
52880         Use mreadlink_with_size, not xreadlink_with_size.
52881
52882 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52883
52884         Detect porting problems to FreeBSD/arm, which has time_t wider than
52885         long int.  Original problem reported for GNU diff by Xin Li in
52886         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52887         * modules/getdate (Depends-on): Add intprops, verify.
52888         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52889         is an integer type no wider than long int.
52890
52891 2007-06-18  Jim Meyering  <jim@meyering.net>
52892
52893         New module: mreadlink-with-size.
52894         * MODULES.html.sh: Add mreadlink-with-size.
52895         * modules/mreadlink-with-size: New module
52896         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52897         not xreadlink-with-size.
52898         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52899
52900 2007-06-16  Bruno Haible  <bruno@clisp.org>
52901
52902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52903         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52904         Reported by Gary V. Vaughan <gary@gnu.org>.
52905
52906 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52907
52908         Revamp lchown so that it lives in unistd.h where it belongs.
52909         * lib/lchown.h: Remove.
52910         * lib/dirchownmod.c: Don't include lib/lchown.h.
52911         * lib/fchownat.c: Likewise.
52912         * lib/openat.c: Likewise.
52913         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52914         does not follow symlinks.
52915         (EOPNOTSUPP): Define if not defined.
52916         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52917         is defined to 0.
52918         (lchown): New decl.
52919         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52920         Do not check for lchown decl.
52921         Set REPLACE_LCHOWN.
52922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52923         REPLACE_LCHOWN.
52924         * modules/chown: Make it clear it follows symlinks.
52925         * modules/lchown: Make it clear it doesn't follow symlinks.
52926         (Files): Remove lib/lchown.h
52927         (Depends-on): Add unistd.
52928         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52929         (Include): Include <unistd.h>, not "lchown.h".
52930         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52931         REPLACE_LCHOWN.
52932
52933 2007-06-15  Jim Meyering  <jim@meyering.net>
52934
52935         Change license (GPL to LGPL) of fsusage and dependents.
52936         * modules/fsusage (License): Change to LGPL.
52937         * modules/full-read (License): Likewise.
52938         * modules/full-write (License): Likewise.
52939         * modules/safe-read (License): Likewise.
52940         * modules/safe-write (License): Likewise.
52941
52942 2007-06-14  Ben Pfaff  <blp@gnu.org>
52943
52944         Missing part of allocsa -> malloca transition.
52945         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52946         gl_MALLOCA.
52947
52948 2007-06-12  Bruno Haible  <bruno@clisp.org>
52949
52950         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52951         to ia64, x86_64, i386.
52952         Reported by Eric Blake.
52953
52954 2007-06-12  Bruno Haible  <bruno@clisp.org>
52955
52956         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52957         cross-compiling to x86_64.
52958
52959 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52960
52961         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52962         glitch reported by Ralf Wildenhues in
52963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52964
52965         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52966         Vin Shelton.
52967
52968 2007-06-11  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52971         replacement string.
52972         Reported by Eric Blake.
52973
52974 2007-06-10  Bruno Haible  <bruno@clisp.org>
52975
52976         Prepare vasnprintf code for use with Unicode strings.
52977         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52978         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52979         TYPE_U32_STRING.
52980         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52981         a_u32_string variants.
52982         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52983         * lib/printf-args.c: Don't include config.h and the specification
52984         header if PRINTF_FETCHARGS is already defined.
52985         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52986         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52987         TYPE_U16_STRING, TYPE_U32_STRING.
52988         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52989         u16_directive, u16_directives, u32_directive, u32_directives): New
52990         types.
52991         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52992         New declarations.
52993         * lib/printf-parse.c: Don't include config.h and the specification
52994         header if PRINTF_PARSE is already defined. Eliminate the set of
52995         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52996         them now. Include c-ctype.h.
52997         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52998         directive and CHAR_T_ONLY_ASCII.
52999         * lib/vasnprintf.c: Don't include config.h and the specification header
53000         if VASNPRINTF is already defined.
53001         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53002         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53003         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53004         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53005         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53006         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53007         code accordingly.
53008         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53009         pad_ourselves also in this case, with the 'c' and 's' directives, and
53010         with a different notion of "width".
53011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53012
53013 2007-06-10  Bruno Haible  <bruno@clisp.org>
53014
53015         * modules/unistr/u32-mbsnlen: New file.
53016         * lib/unistr/u32-mbsnlen.c: New file.
53017
53018         * modules/unistr/u16-mbsnlen: New file.
53019         * lib/unistr/u16-mbsnlen.c: New file.
53020
53021         * modules/unistr/u8-mbsnlen: New file.
53022         * lib/unistr/u8-mbsnlen.c: New file.
53023
53024         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53025         declarations.
53026
53027 2007-06-10  Bruno Haible  <bruno@clisp.org>
53028
53029         * lib/string_.h (mbsnlen): New declaration.
53030         * lib/mbsnlen.c: New file.
53031         * m4/mbsnlen.m4: New file.
53032         * modules/mbsnlen: New file.
53033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53034         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53035         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53036
53037 2007-06-10  Bruno Haible  <bruno@clisp.org>
53038
53039         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53040
53041 2007-06-10  Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53044         * lib/mbuiter.h: Likewise.
53045
53046 2007-06-10  Bruno Haible  <bruno@clisp.org>
53047
53048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53049         declaration.
53050
53051 2007-06-10  Karl Berry  <karl@gnu.org>
53052
53053         * config/srclist.txt: remove gettext entries, Bruno prefers
53054         to update individually.
53055
53056 2007-06-10  Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53059         'maxlen'. Ensure only length + width bytes are allocated, not
53060         length + 1 + width.
53061
53062 2007-06-09  Bruno Haible  <bruno@clisp.org>
53063
53064         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53065         (CHAR_T): Remove macro.
53066         (VASNPRINTF): Update.
53067
53068 2007-06-09  Bruno Haible  <bruno@clisp.org>
53069
53070         * MODULES.html.sh (Unicode string functions): Add the new modules.
53071
53072         * modules/uniconv/u32-conv-to-enc: New file.
53073         * lib/uniconv/u32-conv-to-enc.c: New file.
53074         * modules/uniconv/u32-conv-to-enc-tests: New file.
53075         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53076
53077         * modules/uniconv/u16-conv-to-enc: New file.
53078         * lib/uniconv/u16-conv-to-enc.c: New file.
53079         * lib/uniconv/u-conv-to-enc.h: New file.
53080         * modules/uniconv/u16-conv-to-enc-tests: New file.
53081         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53082
53083         * modules/uniconv/u8-conv-to-enc: New file.
53084         * lib/uniconv/u8-conv-to-enc.c: New file.
53085         * modules/uniconv/u8-conv-to-enc-tests: New file.
53086         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53087
53088         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53089         u32_conv_to_encoding): New declarations.
53090
53091 2007-06-09  Bruno Haible  <bruno@clisp.org>
53092
53093         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53094
53095 2007-06-09  Bruno Haible  <bruno@clisp.org>
53096
53097         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53098         * modules/malloca: Renamed from modules/allocsa, updated.
53099         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53100         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53101         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53102         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53103         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53104         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53105         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53106         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53107         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53108         * modules/c-strcasestr (Depends-on): Update.
53109         * lib/c-strcasestr.c: Update.
53110         * modules/c-strstr (Depends-on): Update.
53111         * lib/c-strstr.c: Update.
53112         * modules/canonicalize-lgpl (Depends-on): Update.
53113         * lib/canonicalize-lgpl.c: Update.
53114         * modules/clean-temp (Depends-on): Update.
53115         * lib/clean-temp.c: Update.
53116         * modules/csharpcomp (Depends-on): Update.
53117         * lib/csharpcomp.c: Update.
53118         * modules/csharpexec (Depends-on): Update.
53119         * lib/csharpexec.c: Update.
53120         * modules/javacomp (Depends-on): Update.
53121         * lib/javacomp.c: Update.
53122         * modules/javaexec (Depends-on): Update.
53123         * lib/javaexec.c: Update.
53124         * modules/mbscasestr (Depends-on): Update.
53125         * lib/mbscasestr.c: Update.
53126         * modules/mbsstr (Depends-on): Update.
53127         * lib/mbsstr.c: Update.
53128         * modules/setenv (Depends-on): Update.
53129         * lib/setenv.c: Update.
53130         * modules/strcasestr (Depends-on): Update.
53131         * lib/strcasestr.c: Update.
53132         * modules/striconveha (Depends-on): Update.
53133         * lib/striconveha.c: Update.
53134         * modules/relocatable-prog-wrapper (Files): Update.
53135         * lib/relocwrapper.c: Update.
53136         * build-aux/install-reloc: Update.
53137         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53138
53139 2007-06-08  Bruno Haible  <bruno@clisp.org>
53140
53141         Port to uClibc.
53142         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53143         * lib/fpurge.c (fpurge): Likewise.
53144         * lib/freading.c (freading): Likewise.
53145         * lib/fseeko.c (rpl_fseeko): Likewise.
53146         * lib/fseterr.c (fseterr): Likewise.
53147         * lib/fwriting.c (fwriting): Likewise.
53148         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53149
53150 2007-06-08  Bruno Haible  <bruno@clisp.org>
53151
53152         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53153         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53154         * modules/gettext (Files): Add m4/intlmacosx.m4.
53155
53156 2007-06-07  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/localename-tests: New file.
53159         * tests/test-localename.c: New file.
53160
53161         New module 'localename'.
53162         * lib/localename.h: New file.
53163         * lib/localename.c: New file, from GNU gettext.
53164         * m4/localename.m4: New file.
53165         * modules/localename: New file.
53166
53167 2007-06-07  Bruno Haible  <bruno@clisp.org>
53168
53169         Work around the lack of <wchar.h> on some builds of uClibc.
53170         * doc/headers/wchar.texi: Update.
53171         * lib/wchar_.h: Include <wchar.h> only if it exists.
53172         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53173         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53174         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53175         doesn't exist.
53176         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53177         * modules/mbfile (Depends-on): Add wchar.
53178         * modules/mbiter (Depends-on): Likewise.
53179         * modules/mbuiter (Depends-on): Likewise.
53180         Reported by Simon Josefsson.
53181
53182 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53183
53184         Work around problem reported by Steven M. Schweda in
53185         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53186         Tru64 5.1B with the Compaq compiler environment installed declares
53187         an 'isblank' function but does not define it in the C library.
53188         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53189         * lib/regex_internal.h (isblank): Likewise.
53190         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53191         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53192
53193 2007-06-05  Bruno Haible  <bruno@clisp.org>
53194
53195         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53196         ia64.
53197         * modules/printf-safe: New file.
53198         * modules/fprintf-posix (Depends-on): Add printf-safe.
53199         * modules/printf-posix (Depends-on): Likewise.
53200         * modules/snprintf-posix (Depends-on): Likewise.
53201         * modules/sprintf-posix (Depends-on): Likewise.
53202         * modules/vasnprintf-posix (Depends-on): Likewise.
53203         * modules/vasprintf-posix (Depends-on): Likewise.
53204         * modules/vfprintf-posix (Depends-on): Likewise.
53205         * modules/vprintf-posix (Depends-on): Likewise.
53206         * modules/vsnprintf-posix (Depends-on): Likewise.
53207         * modules/vsprintf-posix (Depends-on): Likewise.
53208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53209         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53210         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53211         "no" on i386, x86_64, ia64.
53212         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53213         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53214         on i386, x86_64, ia64.
53215         * tests/test-sprintf-posix.h (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-vasnprintf-posix.c: Include float.h.
53219         (LDBL80_WORDS): New macro.
53220         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53221         on i386, x86_64, ia64.
53222         * tests/test-vasprintf-posix.c: Include float.h.
53223         (LDBL80_WORDS): New macro.
53224         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53225         on i386, x86_64, ia64.
53226         * tests/test-snprintf-posix.c: Include float.h.
53227         * tests/test-sprintf-posix.c: Likewise.
53228         * tests/test-vsnprintf-posix.c: Likewise.
53229         * tests/test-vsprintf-posix.c: Likewise.
53230
53231 2007-06-05  Bruno Haible  <bruno@clisp.org>
53232
53233         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53234         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53235         non-IEEE numbers on i386, x86_64, ia64.
53236         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53237         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53238         * tests/test-isnanl.h: Include float.h.
53239         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53240
53241 2007-06-05  Bruno Haible  <bruno@clisp.org>
53242
53243         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53244         also the %a / %A. Handle the %a / %A code before this extra handling.
53245
53246 2007-06-05  Bruno Haible  <bruno@clisp.org>
53247
53248         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53249         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53250
53251 2007-06-05  Bruno Haible  <bruno@clisp.org>
53252
53253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53254         typo in variable name.
53255
53256 2007-06-05  Eric Blake  <ebb9@byu.net>
53257
53258         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53259         Reported by Simon Josefsson.
53260
53261 2007-06-04  Bruno Haible  <bruno@clisp.org>
53262
53263         Avoid test failures on some PowerPC platforms.
53264         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53265         Define differently for PowerPC.
53266         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53267         Reported by Gary V. Vaughan <gary@gnu.org>.
53268
53269 2007-06-02  Bruno Haible  <bruno@clisp.org>
53270
53271         Fix test-stdint failure on FreeBSD/ia64.
53272         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53273         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53274         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53275         * doc/headers/stdint.texi: Update.
53276
53277 2007-06-01  Bruno Haible  <bruno@clisp.org>
53278
53279         * tests/test-binary-io.c (main): Pass a third argument to open().
53280         Reported by Gary V. Vaughan <gary@gnu.org>.
53281
53282 2007-06-01  Bruno Haible  <bruno@clisp.org>
53283
53284         * doc/functions/frexpl.texi: Update for mingw.
53285
53286 2007-06-01  Bruno Haible  <bruno@clisp.org>
53287
53288         * tests/test-lseek.c (main): Disable test of errno for invalid third
53289         argument.
53290         * doc/functions/lseek.texi: Update.
53291         Reported by Gary V. Vaughan <gary@gnu.org>.
53292
53293 2007-05-28  Bruno Haible  <bruno@clisp.org>
53294
53295         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53296
53297 2007-05-31  Eric Blake  <ebb9@byu.net>
53298
53299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53300         cross compiling.
53301
53302 2007-05-30  Eric Blake  <ebb9@byu.net>
53303         and Bruno Haible  <bruno@clisp.org>
53304
53305         Work around mingw test failures exposed by m4-1.4.9b.
53306         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53307         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53308         moment.
53309
53310 2007-05-30  Bruno Haible  <bruno@clisp.org>
53311
53312         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53313         assuming that they are closed. Needed on HP-UX 11.
53314
53315 2007-05-29  Bruno Haible  <bruno@clisp.org>
53316
53317         Fix a problem with #include_next.
53318         * lib/dirent_.h: Split the double-inclusion guard.
53319         * lib/fcntl_.h: Likewise.
53320         * lib/float_.h: Likewise.
53321         * lib/iconv_.h: Likewise.
53322         * lib/inttypes_.h: Likewise.
53323         * lib/locale_.h: Likewise.
53324         * lib/math_.h: Likewise.
53325         * lib/netinet_in_.h: Likewise.
53326         * lib/search_.h: Likewise.
53327         * lib/signal_.h: Likewise.
53328         * lib/stdint_.h: Likewise.
53329         * lib/stdio_.h: Likewise.
53330         * lib/stdlib_.h: Likewise.
53331         * lib/string_.h: Likewise.
53332         * lib/sys_select_.h: Likewise.
53333         * lib/sys_socket_.h: Likewise.
53334         * lib/sys_stat_.h: Likewise.
53335         * lib/sys_time_.h: Likewise.
53336         * lib/sysexits_.h: Likewise.
53337         * lib/time_.h: Likewise.
53338         * lib/unistd_.h: Likewise.
53339         * lib/wchar_.h: Likewise.
53340         * lib/wctype_.h: Likewise.
53341
53342 2007-05-29  Bruno Haible  <bruno@clisp.org>
53343
53344         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53345         for the moment.
53346
53347 2007-05-29  Bruno Haible  <bruno@clisp.org>
53348
53349         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53350         invocation.
53351         Reported by Eric Blake.
53352
53353 2007-05-29  Bruno Haible  <bruno@clisp.org>
53354
53355         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53356         compiling case.
53357
53358 2007-05-29  Eric Blake  <ebb9@byu.net>
53359             Bruno Haible  <bruno@clisp.org>
53360
53361         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53362         cross compiles.
53363
53364 2007-05-28  Eric Blake  <ebb9@byu.net>
53365
53366         * modules/closein-tests (test_closein_LDADD): Support test on
53367         cygwin with libtool.
53368
53369 2007-05-28  Bruno Haible  <bruno@clisp.org>
53370
53371         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53372         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53373         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53374         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53375         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53376         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53377         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53378         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53379         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53380
53381 2007-05-28  Eric Blake  <ebb9@byu.net>
53382
53383         Unconditionally include <config.h> in unit tests.
53384         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53385         * tests/test-allocsa.c, tests/test-arcfour.c,
53386         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53387         tests/test-array_list.c, tests/test-array_oset.c,
53388         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53389         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53390         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53391         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53392         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53393         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53394         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53395         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53396         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53397         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53398         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53399         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53400         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53401         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53402         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53403         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53404         test-md5.c, test-memmem.c, test-printf-posix.c,
53405         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53406         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53407         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53408         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53409         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53410         test-vasnprintf-posix2.c, test-vasnprintf.c,
53411         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53412         test-vfprintf-posix.c, test-vprintf-posix.c,
53413         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53414         test-xvasprintf.c: Likewise.
53415
53416 2007-05-28  Bruno Haible  <bruno@clisp.org>
53417
53418         * gnulib-tool (func_import): Remember the --with-tests command-line
53419         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53420         Reported by Eric Blake.
53421
53422 2007-05-28  Bruno Haible  <bruno@clisp.org>
53423
53424         * modules/ftell-tests: New file.
53425         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53426         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53427
53428         * lib/ftell.c: New file.
53429         * modules/ftell: New file.
53430         * m4/ftell.m4: New file.
53431         * doc/functions/ftell.texi: Update.
53432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53433         REPLACE_FTELL.
53434         * lib/stdio_.h (rpl_ftell): New declaration.
53435         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53436         REPLACE_FTELL.
53437
53438 2007-05-28  Eric Blake  <ebb9@byu.net>
53439
53440         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53441
53442 2007-05-28  Bruno Haible  <bruno@clisp.org>
53443
53444         * modules/fseek-tests: New file.
53445         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53446         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53447
53448         * lib/fseek.c: New file.
53449         * modules/fseek: New file.
53450         * m4/fseek.m4: New file.
53451         * doc/functions/fseek.texi: Update.
53452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53453         REPLACE_FSEEK.
53454         * lib/stdio_.h (rpl_fseek): New declaration.
53455         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53456         REPLACE_FSEEK.
53457
53458 2007-05-28  Bruno Haible  <bruno@clisp.org>
53459
53460         * lib/stdio_.h (fflush): More comments.
53461
53462 2007-05-28  Bruno Haible  <bruno@clisp.org>
53463
53464         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53465         runtime test.
53466
53467 2007-05-28  Eric Blake  <ebb9@byu.net>
53468
53469         Improve lseek module.
53470         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53471         * lib/unistd_.h (lseek): Scale back link warning message.
53472         * tests/test-lseek.c: Beef up test.
53473         * tests/test-lseek.sh: Exercise more facets of lseek.
53474         Reported by Bruno Haible.
53475
53476 2007-05-28  Bruno Haible  <bruno@clisp.org>
53477
53478         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53479         to define.
53480
53481 2007-05-27  Bruno Haible  <bruno@clisp.org>
53482
53483         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53484
53485 2007-05-27  Bruno Haible  <bruno@clisp.org>
53486
53487         * modules/openmp: New file.
53488         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53489         Noah Misch.
53490
53491 2007-05-26  Bruno Haible  <bruno@clisp.org>
53492
53493         * modules/chdir-long (Depends-on): Add fchdir.
53494         * modules/chdir-safer (Depends-on): Likewise.
53495         * modules/fts (Depends-on): Likewise.
53496         * modules/fts-lgpl (Depends-on): Likewise.
53497         * modules/openat (Depends-on): Likewise.
53498         * modules/savewd (Depends-on): Likewise.
53499
53500 2007-05-24  Eric Blake  <ebb9@byu.net>
53501
53502         Fix lseek on mingw.
53503         * modules/lseek: New module.
53504         * m4/lseek.m4: New file.
53505         * lib/lseek.c: New file.
53506         * modules/lseek-tests: New file.
53507         * tests/test-lseek.c: New file.
53508         * tests/test-lseek.sh: New file.
53509         * MODULES.html.sh: Document lseek module.
53510         * modules/fflush (Depends-on): Add lseek, fseeko.
53511         * modules/fseeko (Depends-on): Likewise.
53512         * modules/ftello (Depends-on): Likewise.
53513         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53514         broken.
53515         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53516         broken.
53517         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53518         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53519         * lib/ftello.c (rpl_ftello): Likewise.
53520         * tests/test-fseeko.c (main): Test this.
53521         * tests/test-fseeko.sh: Likewise.
53522         * tests/test-ftello.c (main): Likewise.
53523         * tests/test-ftello.sh: Likewise.
53524         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53525         implies replacing fseek.
53526         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53527         HAVE_FTELLO.
53528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53529         * modules/unistd (Makefile.am): Likewise.
53530         * lib/unistd_.h (lseek): Declare a replacement.
53531         * doc/functions/lseek.texi (lseek): Document this fix.
53532         * doc/functions/fseek.texi (fseek): Likewise.
53533         * doc/functions/ftell.texi (ftell): Likewise.
53534
53535 2007-05-24  Bruno Haible  <bruno@clisp.org>
53536
53537         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53538         in the printed representation of a NaN.
53539         * tests/test-vasprintf-posix.c (test_function): Likewise.
53540         * tests/test-snprintf-posix.h (test_function): Likewise.
53541         * tests/test-sprintf-posix.h (test_function): Likewise.
53542         Reported by Eric Blake.
53543
53544 2007-05-23  Eric Blake  <ebb9@byu.net>
53545
53546         Fix fseeko/ftello on cygwin 1.5.24.
53547         * doc/functions/fseeko.texi (fseeko): Document the fix.
53548         * doc/functions/ftello.texi (ftello): Document the fix.
53549         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53550         * doc/functions/stdout.text (stdout): New file.
53551         * doc/functions/stderr.text (stderr): New file.
53552         * doc/gnulib.texi (Function Substitutes): Use new files.
53553         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53554         prior to 1.7.0.
53555         * tests/test-ftello.c (main): Likewise for ftello.
53556         * tests/test-fseeko.sh: New file.
53557         * tests/test-ftello.sh: New file.
53558         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53559         with seekable stdin.
53560         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53561         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53562         (gl_REPLACE_FSEEKO): New macro.
53563         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53564         * modules/fseeko (Files): Distribute fseeko.c.
53565         * modules/ftello (Files): Distribute ftello.c.
53566         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53567         mode.
53568         * lib/ftello.c (rpl_ftello): New file.
53569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53570         fseeko, ftello.
53571         (gl_STDIN_LARGE_OFFSET): New macro.
53572         * modules/stdio (Makefile.am): Perform the replacement.
53573         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53574
53575 2007-05-23  Bruno Haible  <bruno@clisp.org>
53576
53577         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53578         GNULIB_POSIXCHECK is defined.
53579
53580 2007-05-21  Bruno Haible  <bruno@clisp.org>
53581
53582         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53583         Check also the output for NaN arguments. When cross-compiling, guess
53584         no on IRIX.
53585         * lib/vasnprintf.c: Update comments.
53586         * tests/test-vasnprintf-posix.c (strisnan): New function.
53587         (test_function): Use it.
53588         * tests/test-vasprintf-posix.c (strisnan): New function.
53589         (test_function): Use it.
53590         * tests/test-snprintf-posix.h (strisnan): New function.
53591         (test_function): Use it.
53592         * tests/test-sprintf-posix.h (strisnan): New function.
53593         (test_function): Use it.
53594         Reported by Eric Blake.
53595
53596 2007-05-20  Bruno Haible  <bruno@clisp.org>
53597
53598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53599         numbers that fails on BeOS.
53600         * doc/functions/frexpl.texi: Update.
53601
53602 2007-05-20  Jim Meyering  <jim@meyering.net>
53603
53604         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53605         forced upon us by glibc-2.6.
53606
53607 2007-05-20  Bruno Haible  <bruno@clisp.org>
53608
53609         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53610         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53611         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53612         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53613         NEED_PRINTF_INFINITE.
53614         (is_infinitel): New function.
53615         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53617         gl_PREREQ_VASNPRINTF_INFINITE.
53618         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53620         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53621         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53622         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53623         gl_PREREQ_VASNPRINTF_INFINITE.
53624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53631         * doc/functions/fprintf.texi: Update.
53632         * doc/functions/printf.texi: Update.
53633         * doc/functions/snprintf.texi: Update.
53634         * doc/functions/sprintf.texi: Update.
53635         * doc/functions/vfprintf.texi: Update.
53636         * doc/functions/vprintf.texi: Update.
53637         * doc/functions/vsnprintf.texi: Update.
53638         * doc/functions/vsprintf.texi: Update.
53639
53640 2007-05-20  Bruno Haible  <bruno@clisp.org>
53641
53642         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53643         was not found in libc.
53644         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53645
53646 2007-05-20  Bruno Haible  <bruno@clisp.org>
53647
53648         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53649         printed as "-nan" instead of "nan".
53650         * tests/test-vasprintf-posix.c (test_function): Likewise.
53651         * tests/test-snprintf-posix.h (test_function): Likewise.
53652         * tests/test-sprintf-posix.h (test_function): Likewise.
53653         Needed for HP-UX 11.
53654
53655 2007-05-20  Jim Meyering  <jim@meyering.net>
53656
53657         Fix buggy test for the fchownat-deref bug.
53658         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53659         symlink required for the run-test.  Without it, this test would
53660         always declare that fchownat doesn't work, and client code would
53661         unnecessarily use the replacement function with fixed libc.
53662         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53663         Reported by Greg Schafer.
53664
53665 2007-05-19  Bruno Haible  <bruno@clisp.org>
53666
53667         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53668         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53669         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53670         Needed for IRIX 6.5 and Solaris 2.5.1.
53671
53672 2007-05-19  Bruno Haible  <bruno@clisp.org>
53673
53674         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53675         (test_function): Skip tests involving -0.0 on platforms where
53676         -0.0 = 0.0.
53677         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53678         (test_function): Skip tests involving -0.0 on platforms where
53679         -0.0 = 0.0.
53680         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53681         (test_function): Skip tests involving -0.0 on platforms where
53682         -0.0 = 0.0.
53683         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53684         (test_function): Skip tests involving -0.0 on platforms where
53685         -0.0 = 0.0.
53686         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53687         tests.
53688         * tests/test-printf-posix.h (test_function): Likewise.
53689         * tests/test-printf-posix.output: Remove all -0.0 related results.
53690         Needed for IRIX 6.5.
53691
53692 2007-05-19  Bruno Haible  <bruno@clisp.org>
53693
53694         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53695         printed as "nan0x7fffffff" instead of "nan".
53696         * tests/test-vasprintf-posix.c (test_function): Likewise.
53697         * tests/test-snprintf-posix.h (test_function): Likewise.
53698         * tests/test-sprintf-posix.h (test_function): Likewise.
53699         * tests/test-fprintf-posix.h (NaN): Remove macro.
53700         (test_function): Remove all NaN related tests.
53701         * tests/test-printf-posix.h (NaN): Remove macro.
53702         (test_function): Remove all NaN related tests.
53703         * tests/test-printf-posix.output: Remove all NaN related results.
53704         Needed for IRIX 6.5.
53705
53706 2007-05-19  Bruno Haible  <bruno@clisp.org>
53707
53708         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53710
53711 2007-05-19  Bruno Haible  <bruno@clisp.org>
53712
53713         * lib/float_.h: New file.
53714         * m4/float_h.m4: New file.
53715         * modules/float: New file.
53716         * modules/isnanl (Dependencies): Add float.
53717         * modules/isnanl-nolibm (Dependencies): Likewise.
53718         * modules/mathl (Dependencies): Likewise.
53719         * modules/printf-frexpl (Dependencies): Likewise.
53720         * modules/signbit (Dependencies): Likewise.
53721         * modules/vasnprintf (Dependencies): Likewise.
53722         * doc/headers/float.texi: Update.
53723
53724 2007-05-19  Jim Meyering  <jim@meyering.net>
53725
53726         * lib/utimens.c (gl_futimens): Rename from futimens,
53727         now that glibc-2.6 declares futimens.
53728         * lib/utimens.h: Likewise.
53729
53730 2007-05-19  Bruno Haible  <bruno@clisp.org>
53731
53732         Avoid test failures on mingw.
53733         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53734         * tests/test-printf-posix.sh: Likewise.
53735         * tests/test-vfprintf-posix.sh: Likewise.
53736         * tests/test-vprintf-posix.sh: Likewise.
53737
53738 2007-05-19  Bruno Haible  <bruno@clisp.org>
53739
53740         Fix *printf result for NaN, Inf, -0.0 on mingw.
53741         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53742         * lib/vasnprintf.c: Include math.h and isnan.h.
53743         (is_infinite_or_zero): New function.
53744         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53745         values in the %f, %F, %e, %E, %g, %G directives.
53746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53748         gl_PRINTF_INFINITE and test its result. Invoke
53749         gl_PREREQ_VASNPRINTF_INFINITE.
53750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53757         * doc/functions/fprintf.texi: Update.
53758         * doc/functions/printf.texi: Update.
53759         * doc/functions/snprintf.texi: Update.
53760         * doc/functions/sprintf.texi: Update.
53761         * doc/functions/vfprintf.texi: Update.
53762         * doc/functions/vprintf.texi: Update.
53763         * doc/functions/vsnprintf.texi: Update.
53764         * doc/functions/vsprintf.texi: Update.
53765
53766 2007-05-19  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53769         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53770         Instead of multiplying with 10^k, set extra_zeroes to k.
53771         (scale10_round_long_double): Remove function.
53772
53773 2007-05-18  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53776         introduced on 2007-05-06.
53777
53778 2007-05-18  Bruno Haible  <bruno@clisp.org>
53779
53780         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53781         %g directives.
53782         * tests/test-vasprintf-posix.c (test_function): Likewise.
53783         * tests/test-snprintf-posix.h (test_function): Likewise.
53784         * tests/test-sprintf-posix.h (test_function): Likewise.
53785
53786 2007-05-18  Bruno Haible  <bruno@clisp.org>
53787
53788         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53789         (strmatch): New function.
53790         (test_function): Test the %f directive on numbers of various exponents.
53791         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53792         (strmatch): New function.
53793         (test_function): Test the %f directive on numbers of various exponents.
53794         * tests/test-snprintf-posix.h (strmatch): New function.
53795         (test_function): Test the %f directive on numbers of various exponents.
53796         * tests/test-sprintf-posix.h (strmatch): New function.
53797         (test_function): Test the %f directive on numbers of various exponents.
53798         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53799         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53800         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53801         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53802
53803 2007-05-18  Bruno Haible  <bruno@clisp.org>
53804
53805         Add support for 'long double' number output.
53806         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53807         * lib/vasnprintf.c: Include math.h and float+.h.
53808         (mp_limb_t): New type.
53809         (GMP_LIMB_BITS): New macro.
53810         (mp_twolimb_t): New type.
53811         (GMP_TWOLIMB_BITS): New macro.
53812         (mpn_t): New type.
53813         (multiply, divide, convert_to_decimal, decode_long_double,
53814         scale10_round_long_double, scale10_round_decimal_long_double,
53815         floorlog10l): New functions.
53816         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53817         for the %f, %F, %e, %E, %g, %G directives.
53818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53820         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53821         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53823         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53824         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53825         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53826         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53829         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53830         * modules/snprintf-posix (Depends-on): Likewise.
53831         * modules/sprintf-posix (Depends-on): Likewise.
53832         * modules/vasnprintf-posix (Depends-on): Likewise.
53833         * modules/vasprintf-posix (Depends-on): Likewise.
53834         * modules/vfprintf-posix (Depends-on): Likewise.
53835         * modules/vsnprintf-posix (Depends-on): Likewise.
53836         * modules/vsprintf-posix (Depends-on): Likewise.
53837         * modules/vasnprintf (Files): Add lib/float+.h.
53838         * doc/functions/fprintf.texi: Update.
53839         * doc/functions/printf.texi: Update.
53840         * doc/functions/snprintf.texi: Update.
53841         * doc/functions/sprintf.texi: Update.
53842         * doc/functions/vfprintf.texi: Update.
53843         * doc/functions/vprintf.texi: Update.
53844         * doc/functions/vsnprintf.texi: Update.
53845         * doc/functions/vsprintf.texi: Update.
53846
53847 2007-05-18  Bruno Haible  <bruno@clisp.org>
53848
53849         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53850
53851 2007-05-18  Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53854         for printing 64-bit integers. Needed for mingw.
53855
53856 2007-05-18  Bruno Haible  <bruno@clisp.org>
53857
53858         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53859         gl_FUNC_FREXPL_WORKS.
53860         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53861
53862 2007-05-18  Bruno Haible  <bruno@clisp.org>
53863
53864         * modules/frexpl-nolibm-tests: New file.
53865
53866         * modules/frexpl-nolibm: New file.
53867         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53868
53869 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53870
53871         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53872         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53873         GCC 4.2, which otherwise issues a lot of warnings.
53874         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53875         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53876         Likewise.
53877         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53878         * modules/iconv_open (iconv.h): Likewise.
53879         * modules/locale (locale.h): Likewise.
53880         * modules/netinet_in (netinet/in.h): Likewise.
53881         * modules/sys_select (sys_select.h): Likewise.
53882         * modules/sys_socket (sys/socket.h): Likewise.
53883         * modules/sys_stat (sys/stat.h): Likewise.
53884         * modules/sysexits (sysexits.h): Likewise.
53885         * modules/unistd (unistd.h): Likewise.
53886
53887 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53888
53889         * modules/closein-tests (Makefile.am): Distribute
53890         `test-closein.sh'.
53891
53892 2007-05-17  Bruno Haible  <bruno@clisp.org>
53893
53894         * tests/test-printf-posix.output: Renamed from
53895         tests/test-fprintf-posix.out.
53896         * modules/fprintf-posix-tests: Update.
53897         * modules/printf-posix-tests: Update.
53898         * modules/vfprintf-posix-tests: Update.
53899         * modules/vprintf-posix-tests: Update.
53900         * tests/test-fprintf-posix.sh: Update.
53901         * tests/test-printf-posix.sh: Update.
53902         * tests/test-vfprintf-posix.sh: Update.
53903         * tests/test-vprintf-posix.sh: Update.
53904         Reported by Ralf Wildenhues.
53905
53906 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53909         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53910         GCC 4.2, which otherwise issues a lot of warnings.
53911         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53912         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53913         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53914         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53915         it should no longer be needed.
53916         * lib/string_.h: Likewise.
53917         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53918         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53919         * modules/inttypes (inttypes.h): Likewise.
53920         * modules/math (math.h): Likewise.
53921         * modules/search (search.h): Likewise.
53922         * modules/signal (signal.h): Likewise.
53923         * modules/stdint (stdint.h): Likewise.
53924         * modules/stdio (stdio.h): Likewise.
53925         * modules/stdlib (stdlib.h): Likewise.
53926         * modules/string (string.h): Likewise.
53927         * modules/sys_time (sys/time.h): Likewise.
53928         * modules/time (time.h): Likewise.
53929         * modules/wchar (wchar.h): Likewise.
53930         * modules/wctype (wtype.h): Likewise.
53931
53932 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53933
53934         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53935
53936 2007-05-13  Bruno Haible  <bruno@clisp.org>
53937
53938         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53939         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53940         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53941         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53942         (gl_PREREQ_STRTOK_R): Don't require it here.
53943
53944 2007-05-13  Bruno Haible  <bruno@clisp.org>
53945
53946         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53947         when used in C++ mode.
53948
53949 2007-05-12  Bruno Haible  <bruno@clisp.org>
53950
53951         * lib/linebuffer.h: Tweak doc.
53952         * lib/linebuffer.c: Likewise.
53953
53954 2007-05-12  James Youngman  <jay@gnu.org>
53955
53956         * lib/linebuffer.c (readlinebuffer_delim): New function,
53957         like readlinebuffer, but use a caller-specified delimiter.
53958         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53959         as the delimiter.
53960         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53961
53962 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53963
53964         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53965         * modules/openat (Files): Remove openat-die.c.
53966         (Depends-on): Add openat-die.
53967         * modules/openat-die: New module.
53968
53969 2007-05-06  Bruno Haible  <bruno@clisp.org>
53970
53971         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53972         Update with info about Cygwin.
53973         * doc/functions/fprintf.texi: Update.
53974         * doc/functions/printf.texi: Update.
53975         * doc/functions/snprintf.texi: Update.
53976         * doc/functions/sprintf.texi: Update.
53977         * doc/functions/vfprintf.texi: Update.
53978         * doc/functions/vprintf.texi: Update.
53979         * doc/functions/vsnprintf.texi: Update.
53980         * doc/functions/vsprintf.texi: Update.
53981         Reported by Eric Blake.
53982
53983 2007-05-06  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53986         padding ourselves for the floating-point directives.
53987         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53989         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53990         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53991         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53995         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53996         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53998         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53999         * tests/test-snprintf-posix.h (test_function): Also check the width
54000         and some flags in the %f directive.
54001         * tests/test-sprintf-posix.h (test_function): Likewise.
54002         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54003         * tests/test-vasprintf-posix.c (test_function): Likewise.
54004         * doc/functions/fprintf.texi: Update.
54005         * doc/functions/printf.texi: Update.
54006         * doc/functions/snprintf.texi: Update.
54007         * doc/functions/sprintf.texi: Update.
54008         * doc/functions/vfprintf.texi: Update.
54009         * doc/functions/vprintf.texi: Update.
54010         * doc/functions/vsnprintf.texi: Update.
54011         * doc/functions/vsprintf.texi: Update.
54012
54013 2007-05-06  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54016         pass the ' flag character to sprintf or snprintf.
54017         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54019         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54020         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54021         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54029         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54030         flag.
54031         * tests/test-sprintf-posix.h (test_function): Likewise.
54032         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54033         * tests/test-vasprintf-posix.c (test_function): Likewise.
54034         * doc/functions/fprintf.texi: Update.
54035         * doc/functions/printf.texi: Update.
54036         * doc/functions/snprintf.texi: Update.
54037         * doc/functions/sprintf.texi: Update.
54038         * doc/functions/vfprintf.texi: Update.
54039         * doc/functions/vprintf.texi: Update.
54040         * doc/functions/vsnprintf.texi: Update.
54041         * doc/functions/vsprintf.texi: Update.
54042
54043 2007-05-01  Bruno Haible  <bruno@clisp.org>
54044
54045         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54046
54047 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54050         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54051
54052 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54053
54054         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54055         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54057
54058 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54059
54060         * lib/argp-help.c (struct hol_entry): New member `ord'.
54061         (HOL_ENTRY_PTRCMP): Use ord for comparison
54062         (hol_sort): Initialize ord.
54063
54064 2007-05-01  Bruno Haible  <bruno@clisp.org>
54065
54066         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54067         Reported by Eric Blake.
54068         * doc/gnulib.texi (Function Substitutes): Update.
54069
54070 2007-05-01  Bruno Haible  <bruno@clisp.org>
54071
54072         * doc/functions.texi: Remove file, now redundant through
54073         doc/functions/*.texi.
54074
54075 2007-05-01  Bruno Haible  <bruno@clisp.org>
54076
54077         * modules/argp (Depends-on): Add sleep.
54078
54079 2007-05-01  Bruno Haible  <bruno@clisp.org>
54080
54081         * modules/sleep-tests: New file.
54082         * tests/test-sleep.c: New file.
54083
54084         * modules/sleep: New file.
54085         * lib/sleep.c: New file.
54086         * m4/sleep.m4: New file.
54087         * lib/unistd_.h (sleep): New declaration.
54088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54089         HAVE_SLEEP.
54090         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54091         * doc/functions/sleep.texi: Document the sleep module.
54092
54093 2007-05-01  Bruno Haible  <bruno@clisp.org>
54094
54095         * lib/sigprocmask.h: Remove file.
54096         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54097         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54098         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54099         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54100         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54101         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54102         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54103         HAVE_SIGSET_T as a shell variable.
54104         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54105         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54106         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54107         (Depends-on): Add signal. Remove verify.
54108         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54109         (Include): Mention <signal.h> instead of sigprocmask.h.
54110         * NEWS: Mention the change.
54111         * lib/fatal-signal.c: Don't include sigprocmask.h.
54112
54113 2007-05-01  Bruno Haible  <bruno@clisp.org>
54114
54115         * modules/signal: New file.
54116         * lib/signal_.h: New file.
54117         * m4/signal_h.m4: New file.
54118
54119 2007-05-01  Bruno Haible  <bruno@clisp.org>
54120
54121         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54122         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54123         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54124         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54125
54126 2007-05-01  Bruno Haible  <bruno@clisp.org>
54127
54128         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54129         configure time.
54130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54131         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54132         * modules/sys_stat (Makefile.am): Substitute their values into
54133         sys/stat.h.
54134
54135 2007-05-01  Bruno Haible  <bruno@clisp.org>
54136
54137         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54138         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54139         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54140
54141 2007-05-01  Bruno Haible  <bruno@clisp.org>
54142
54143         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54144         'assert' module here.
54145
54146 2007-05-01  Bruno Haible  <bruno@clisp.org>
54147
54148         * doc/functions/*.texi: New files.
54149         * doc/functions/google-ranking.txt: New file.
54150         * doc/gnulib.texi (Function Substitutes): New chapter.
54151         (ctime, inet_ntoa): Remove sections.
54152         * doc/ctime.texi: Remove file.
54153         * doc/inet_ntoa.texi: Remove file.
54154         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54155         dependencies.
54156         (%.info): New rule, specifying a --reference-limit.
54157
54158 2007-05-01  Bruno Haible  <bruno@clisp.org>
54159
54160         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54161
54162 2007-05-01  Bruno Haible  <bruno@clisp.org>
54163
54164         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54165         the portability of 'mkdir' to mingw systems.
54166
54167 2007-05-01  Bruno Haible  <bruno@clisp.org>
54168
54169         * doc/headers/google-ranking.txt: New file.
54170
54171 2007-04-30  Eric Blake  <ebb9@byu.net>
54172
54173         Prefer fseeko to fseek.
54174         * modules/getpass (Depends-on): Add fseeko.
54175         * lib/getpass.c (getpass): Use fseeko, not fseek.
54176
54177 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54178
54179         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54180         assumes the sorting is stable, while most qsort implementations
54181         are not.  Use argument addresses to ensure they never compare as
54182         equal.
54183
54184         * tests/test-argp-2.sh (usage-indent test): Fix output
54185         (func_compare): Restore diff options
54186         * tests/test-argp.c: Restore #include "progname.h"
54187
54188 2007-04-29  Bruno Haible  <bruno@clisp.org>
54189
54190         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54191         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54192         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54194         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54195         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54196         (TESTS, check_PROGRAMS): Add test-snprintf.
54197         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54198         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54199         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54200         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54201         assertions that fail on HP-UX, OSF/1, or IRIX.
54202         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54203
54204 2007-04-29  Bruno Haible  <bruno@clisp.org>
54205
54206         * MODULES.html.sh (posix_functions): Remove 'contents'.
54207
54208 2007-04-29  Karl Berry  <karl@gnu.org>
54209
54210         * config/srclist.txt (gendocs_template_min): new entry.
54211
54212 2007-04-29  Bruno Haible  <bruno@clisp.org>
54213
54214         Work around fpurge bug on BSD systems.
54215         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54216         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54217         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54218         fpurge to rpl_fpurge if the system already has this function.
54219         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54220         the case where the system already has this function. Correct invariants
54221         on BSD systems.
54222         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54223         BSD systems.
54224
54225 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54226
54227         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54228         proposed by Sven Verdoolaege.
54229
54230         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54231         options.
54232         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54233         (usage and help tests): Update
54234
54235 2007-04-29  Bruno Haible  <bruno@clisp.org>
54236
54237         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54238         Print more information in case of failure. Disable a test on BeOS.
54239
54240 2007-04-29  Bruno Haible  <bruno@clisp.org>
54241
54242         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54243         This helps debugging on systems on which no gdb is available.
54244
54245 2007-04-29  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/freading.h: Improve comments.
54248         * lib/fwriting.h: Likewise.
54249         * tests/test-freading.c (main): Don't check freading immediately after
54250         repositioning. Needed for glibc.
54251
54252 2007-04-29  Bruno Haible  <bruno@clisp.org>
54253
54254         * lib/freading.c (freading): Trivial simplification.
54255
54256 2007-04-28  Bruno Haible  <bruno@clisp.org>
54257
54258         * tests/test-fwriting.c (main): Also test the interaction between
54259         fflush and fwriting.
54260         * modules/fwriting-tests (Depends-on): Add fflush.
54261
54262         * tests/test-freading.c (main): Also test the interaction between
54263         fflush and freading.
54264         * modules/freading-tests (Depends-on): Add fflush.
54265
54266 2007-04-28  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54269         fseeko and ftello.
54270         Suggested by Eric Blake.
54271
54272 2007-04-28  Jim Meyering  <jim@meyering.net>
54273
54274         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54275         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54276         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54277
54278 2007-04-27  Eric Blake  <ebb9@byu.net>
54279
54280         * doc/headers/assert.texi (assert.h): Document assert module use.
54281
54282 2007-04-27  Bruno Haible  <bruno@clisp.org>
54283
54284         * doc/headers/*.texi: New files.
54285         * doc/gnulib.texi (Header File Substitutes): New chapter.
54286         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54287         dependencies.
54288         (standards.info ,standards.html, standards.dvi): Update dependencies.
54289         (mostlyclean, clean): New targets.
54290
54291 2007-04-27  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54294         * modules/sysexits (Files, Makefile.am): Update.
54295
54296         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54297         * modules/sys_socket (Files, Makefile.am): Update.
54298
54299         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54300         * modules/sys_stat (Files, Makefile.am): Update.
54301
54302 2007-04-27  Eric Blake  <ebb9@byu.net>
54303
54304         * lib/freading.h: Improve comments.
54305         * lib/fwriting.h: Likewise.
54306         * lib/fflush.c: Likewise.
54307
54308         Fix closein for mingw.
54309         * modules/closein-tests: Add tests for closein.
54310         * tests/test-closein.c: New file.
54311         * tests/test-closein.sh: Likewise.
54312         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54313         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54314
54315 2007-04-27  Bruno Haible  <bruno@clisp.org>
54316
54317         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54318         version is < 6.
54319         * lib/math_.h [__DECC]: Likewise.
54320         * lib/stdio_.h [__DECC]: Likewise.
54321         * lib/stdlib_.h [__DECC]: Likewise.
54322         * lib/string_.h [__DECC]: Likewise.
54323         * lib/time_.h [__DECC]: Likewise.
54324         * lib/wchar_.h [__DECC]: Likewise.
54325         * lib/wctype_.h [__DECC]: Likewise.
54326
54327 2007-04-27  Bruno Haible  <bruno@clisp.org>
54328
54329         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54330
54331 2007-04-27  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/fflush.c: Add comments.
54334         * modules/fpurge-tests (Depends-on): Add fflush.
54335         * modules/freadable-tests (Depends-on): Likewise.
54336         * modules/fwritable-tests (Depends-on): Likewise.
54337
54338 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54339
54340         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54341         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54342         Report by Bruno Haible <bruno@clisp.org>.
54343
54344 2007-04-26  Eric Blake  <ebb9@byu.net>
54345
54346         Fix fflush on mingw.
54347         * modules/fflush (Depends-on): Add freading.
54348         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54349         but unread data.
54350
54351 2007-04-26  Eric Blake  <ebb9@byu.net>
54352         and Bruno Haible  <bruno@clisp.org>
54353
54354         Implement freading and fwriting.
54355         * lib/freading.c: New file.
54356         * lib/freading.h: Likewise.
54357         * m4/freading.m4: Likewise.
54358         * modules/freading: Likewise.
54359         * modules/freading-tests: Likewise.
54360         * tests/test-freading.c: Likewise.
54361         * lib/fwriting.c: New file.
54362         * lib/fwriting.h: Likewise.
54363         * m4/fwriting.m4: Likewise.
54364         * modules/fwriting: Likewise.
54365         * modules/fwriting-tests: Likewise.
54366         * tests/test-fwriting.c: Likewise.
54367         * MODULES.html.sh (File stream based Input/Output): Mention them.
54368
54369 2007-04-26  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54372         'long' when we assume it.
54373         Suggested by Eric Blake.
54374
54375 2007-04-26  Bruno Haible  <bruno@clisp.org>
54376
54377         Ensure fseeko, ftello are declared on glibc systems.
54378         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54379         * modules/fseeko (configure.ac-early): Likewise.
54380         * modules/ftello (configure.ac-early): Likewise.
54381         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54382         AC_FUNC_FSEEKO for this.
54383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54384         (gl_CHECK_FSEEKO): Remove macro.
54385
54386 2007-04-26  Bruno Haible  <bruno@clisp.org>
54387
54388         * tests/test-fflush.c (main): Also check the ftell result after
54389         fflush and fseek/fseeko.
54390         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54391         file descriptor position cache in the stream.
54392         * lib/fseeko.c (rpl_fseeko): Likewise.
54393
54394 2007-04-26  Bruno Haible  <bruno@clisp.org>
54395
54396         * modules/fflush-tests (Depends-on): Add fseeko.
54397
54398 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54399             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54400
54401         * lib/argz_.h: ensure error_t definition is obtained in same
54402         mechanism system argz.h would have.
54403         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54404         argz facilities are known bad.  Err on the side of caution if
54405         cross-compiling.
54406
54407 2007-04-25  Eric Blake  <ebb9@byu.net>
54408
54409         * lib/fpurge.c (includes): Use stdlib.h for free.
54410         * tests/test-fflush.c (main): Also test fflush-fseeko.
54411
54412 2007-04-25  Bruno Haible  <bruno@clisp.org>
54413
54414         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54415         * lib/fseeko.c: New file.
54416         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54417         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54418         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54419         gl_FUNC_FSEEKO.
54420         (gl_FUNC_FSEEKO): Invoke it.
54421         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54422         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54423         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54424
54425 2007-04-25  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/fflush (Depends-on): Add ftello.
54428
54429 2007-04-25  Bruno Haible  <bruno@clisp.org>
54430
54431         * modules/ftello-tests: New file.
54432         * tests/test-ftello.c: New file.
54433
54434         * modules/ftello: New file.
54435         * m4/ftello.m4: New file.
54436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54437         HAVE_FTELLO.
54438         * lib/stdio_.h (ftello): New declaration.
54439         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54440         HAVE_FTELLO.
54441
54442 2007-04-25  Bruno Haible  <bruno@clisp.org>
54443
54444         * modules/fseeko-tests: New file.
54445         * tests/test-fseeko.c: New file.
54446
54447         * modules/fseeko: New file.
54448         * m4/fseeko.m4: New file.
54449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54450         HAVE_FSEEKO.
54451         * lib/stdio_.h (fseeko): New declaration.
54452         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54453         HAVE_FSEEKO.
54454
54455 2007-04-25  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54458
54459 2007-04-25  Bruno Haible  <bruno@clisp.org>
54460
54461         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54462         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54463         * tests/test-unistd.c: Likewise.
54464         * tests/test-fcntl.c: Likewise.
54465
54466 2007-04-23  Eric Blake  <ebb9@byu.net>
54467
54468         * lib/fflush.c: Fix missing include.
54469         Reported by Bruno Haible.
54470
54471 2007-04-23  Bruno Haible  <bruno@clisp.org>
54472
54473         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54474         Reported by Eric Blake.
54475
54476 2007-04-23  Bruno Haible  <bruno@clisp.org>
54477
54478         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54479
54480 2007-04-23  Bruno Haible  <bruno@clisp.org>
54481
54482         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54483
54484 2007-04-23  Bruno Haible  <bruno@clisp.org>
54485
54486         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54487         Needed on HP-UX 11.
54488
54489 2007-04-16  Eric Blake  <ebb9@byu.net>
54490
54491         Make fflush rely on fpurge.
54492         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54493         open coding all variants.
54494         * modules/fflush (Depends-on): Add fpurge and unistd.
54495         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54496         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54497
54498         Fix --with-tests compilation on cygwin.
54499         * modules/argmatch-tests (Makefile.am): List gnulib library first
54500         in LDADD.
54501         * modules/argp-tests (Makefile.am): Likewise.
54502         * modules/array-list-tests (Makefile.am): Likewise.
54503         * modules/array-oset-tests (Makefile.am): Likewise.
54504         * modules/avltree-list-tests (Makefile.am): Likewise.
54505         * modules/avltree-oset-tests (Makefile.am): Likewise.
54506         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54507         * modules/carray-list-tests (Makefile.am): Likewise.
54508         * modules/dirname-tests (Makefile.am): Likewise.
54509         * modules/frexp-tests (Makefile.am): Likewise.
54510         * modules/isnanl-tests (Makefile.am): Likewise.
54511         * modules/linked-list-tests (Makefile.am): Likewise.
54512         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54513         * modules/lock-tests (Makefile.am): Likewise.
54514         * modules/rbtree-list-tests (Makefile.am): Likewise.
54515         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54516         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54517         * modules/tls-tests (Makefile.am): Likewise.
54518         * modules/tsearch-tests (Makefile.am): Likewise.
54519         * modules/xvasprintf-tests (Makefile.am): Likewise.
54520
54521         Fix fpurge for cygwin.
54522         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54523         value.
54524         * modules/fpurge-tests (Depends-on): Clean up trash.
54525
54526 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54527
54528         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54529
54530         * m4/autobuild.m4: Re-indent.
54531
54532 2007-04-13  Bruno Haible  <bruno@clisp.org>
54533
54534         * modules/fpurge-tests: New file.
54535         * tests/test-fpurge.c: New file.
54536
54537         * modules/fpurge: New file.
54538         * lib/fpurge.h: New file.
54539         * lib/fpurge.c: New file.
54540         * m4/fpurge.m4: New file.
54541
54542 2007-04-13  Bruno Haible  <bruno@clisp.org>
54543
54544         * modules/fbufmode-tests: New file.
54545         * tests/test-fbufmode.c: New file.
54546
54547         * modules/fbufmode: New file.
54548         * lib/fbufmode.h: New file.
54549         * lib/fbufmode.c: New file.
54550         * m4/fbufmode.m4: New file.
54551
54552 2007-04-13  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/fwritable-tests: New file.
54555         * tests/test-fwritable.c: New file.
54556
54557         * modules/fwritable: New file.
54558         * lib/fwritable.h: New file.
54559         * lib/fwritable.c: New file.
54560         * m4/fwritable.m4: New file.
54561
54562 2007-04-13  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/freadable-tests: New file.
54565         * tests/test-freadable.c: New file.
54566
54567         * modules/freadable: New file.
54568         * lib/freadable.h: New file.
54569         * lib/freadable.c: New file.
54570         * m4/freadable.m4: New file.
54571
54572 2007-04-13  Bruno Haible  <bruno@clisp.org>
54573
54574         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54575         MOSTLYCLEANFILES.
54576
54577 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54578
54579         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54580         gzip bootstrap.conf to avoid dragging in i18n machinery.
54581         (gnulib_tool_option): Use it.
54582
54583 2007-04-13  Bruno Haible  <bruno@clisp.org>
54584
54585         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54586         %F directives.
54587         * tests/test-vasprintf-posix.c (test_function): Likewise.
54588         * tests/test-snprintf-posix.h (test_function): Likewise.
54589         * tests/test-sprintf-posix.h (test_function): Likewise.
54590         * tests/test-fprintf-posix.h (test_function): Likewise.
54591         * tests/test-printf-posix.h (test_function): Likewise.
54592         * tests/test-fprintf-posix.out: Likewise.
54593
54594 2007-04-13  Bruno Haible  <bruno@clisp.org>
54595
54596         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54597         * modules/tls-tests (configure.ac): Likewise.
54598         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54599
54600 2007-04-13  Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/tls.c (glthread_tls_get): Fix return type.
54603         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54604
54605 2007-04-12  Eric Blake  <ebb9@byu.net>
54606
54607         * modules/gettime (Depends-on): Remove gettime.
54608         Reported by Dmitry V. Levin.
54609
54610 2007-04-12  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/fflush (Include): Mention <stdio.h>.
54613         * modules/strtoimax (Include): Mention <inttypes.h>.
54614         * modules/strtoumax (Include): Likewise.
54615
54616 2007-04-12  Eric Blake  <ebb9@byu.net>
54617
54618         * .cvsignore: New file.
54619         * .gitignore: Likewise.
54620
54621 2007-04-12  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54624         not before, since $(LDADD) often contains libgnu.a.
54625         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54626         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54627         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54628         Needed on Cygwin.
54629
54630 2007-04-12  Eric Blake  <ebb9@byu.net>
54631
54632         Work around glibc's failure to flush stdin on fclose.
54633         * lib/closein.c (close_stdin): Flush stdin before closing.
54634
54635         Work around glibc's failure to reset seekable stdin on exit.
54636         * modules/closein: New module.
54637         * lib/closein.c: New file.
54638         * lib/closein.h: Likewise.
54639         * m4/closein.m4: Likewise.
54640         * MODULES.html.sh (File stream based Input/Output): Document it.
54641
54642 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54643
54644         * gnulib-tool: Rename generated 'autobuild' script to
54645         'do-autobuild' in --create-megatestdir output.
54646
54647         * doc/gnulib.texi (Build robot for gnulib): Fix.
54648
54649 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54650
54651         * modules/sysexits (Depends-on): Add absolute-header.
54652
54653 2007-04-12  Eric Blake  <ebb9@byu.net>
54654
54655         No need to preserve errno on success.
54656         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54657         Reported by Bruno Haible.
54658
54659 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54660
54661         * MODULES.html.sh (Support for maintaining and releasing
54662         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54663
54664 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54665
54666         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54667
54668 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54669
54670         * modules/autobuild: New module.
54671
54672         * m4/autobuild.m4: New file.
54673
54674 2007-04-11  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54677         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54678         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54683         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54686         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54692         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54702         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54703         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54704         Reported by Eric Blake.
54705
54706 2007-04-11  Bruno Haible  <bruno@clisp.org>
54707
54708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54709
54710 2007-04-10  Bruno Haible  <bruno@clisp.org>
54711
54712         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54713         for NaN and Infinity. Needed on FreeBSD 6.1.
54714         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54715         regarding results for "%010a" of Infinity and NaN.
54716         * tests/test-vasprintf-posix.c (test_function): Likewise.
54717         * tests/test-snprintf-posix.h (test_function): Likewise.
54718         * tests/test-sprintf-posix.h (test_function): Likewise.
54719         * tests/test-fprintf-posix.h (test_function): Likewise.
54720         * tests/test-printf-posix.h (test_function): Likewise.
54721         * tests/test-fprintf-posix.out: Likewise.
54722
54723 2007-04-10  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/locale-tests: New file.
54726         * tests/test-locale.c: New file.
54727
54728         * modules/locale: New file.
54729         * lib/locale_.h: New file.
54730         * m4/locale_h.m4: New file.
54731
54732 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54733             Bruno Haible  <bruno@clisp.org>
54734
54735         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54736         be determined, test for availability of the copysignf, copysign,
54737         copysignl functions.
54738         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54739         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54740         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54741
54742 2007-04-09  Eric Blake  <ebb9@byu.net>
54743
54744         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54745         * modules/stdio (Makefile.am): Support fflush.
54746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54747         * modules/fflush: New file.
54748         * lib/fflush.c: Likewise.
54749         * m4/fflush.m4: Likewise.
54750         * modules/fflush-tests: New test.
54751         * tests/test-fflush.c: Likewise.
54752         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54753
54754 2007-04-06  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54757         (VASNPRINTF): Use signbit for faster determination whether to print a
54758         minus sign.
54759         * modules/vasnprintf (Files): Remove lib/float+.h.
54760         * modules/fprintf-posix (Depends-on): Add signbit.
54761         * modules/snprintf-posix (Depends-on): Likewise.
54762         * modules/sprintf-posix (Depends-on): Likewise.
54763         * modules/vasnprintf-posix (Depends-on): Likewise.
54764         * modules/vasprintf-posix (Depends-on): Likewise.
54765         * modules/vfprintf-posix (Depends-on): Likewise.
54766         * modules/vsnprintf-posix (Depends-on): Likewise.
54767         * modules/vsprintf-posix (Depends-on): Likewise.
54768
54769 2007-04-06  Bruno Haible  <bruno@clisp.org>
54770
54771         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54772         * tests/test-frexpl.c (main): Likewise.
54773         * tests/test-ldexpl.c (main): Likewise.
54774         * modules/frexp-tests (Depends-on): Add signbit.
54775         * modules/frexpl-tests (Depdends-on): Likewise.
54776         * modules/ldexpl-tests (Depdends-on): Likewise.
54777
54778 2007-04-06  Bruno Haible  <bruno@clisp.org>
54779
54780         * modules/signbit-tests: New file.
54781         * tests/test-signbit.c: New file.
54782
54783         * modules/signbit: New file.
54784         * lib/signbitf.c: New file.
54785         * lib/signbitd.c: New file.
54786         * lib/signbitl.c: New file.
54787         * m4/signbit.m4: New file.
54788         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54789         (signbit): New macro.
54790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54791         REPLACE_SIGNBIT.
54792         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54793         REPLACE_FREXPL into math.h.
54794
54795 2007-04-06  Bruno Haible  <bruno@clisp.org>
54796
54797         * modules/isnanf-nolibm-tests: New file.
54798         * tests/test-isnanf.c: New file.
54799
54800         * modules/isnanf-nolibm: New file.
54801         * lib/isnanf.h: New file.
54802         * lib/isnanf.c: New file.
54803         * lib/isnan.c: Consider the USE_FLOAT macro.
54804         * m4/isnanf.m4: New file.
54805
54806 2007-04-06  Bruno Haible  <bruno@clisp.org>
54807
54808         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54809         (Link): New section.
54810
54811         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54812
54813 2007-04-06  Bruno Haible  <bruno@clisp.org>
54814
54815         Assume the 'long double' type.
54816         * m4/longdouble.m4: Remove file.
54817         * config/srclist.txt: Don't mention longdouble.m4.
54818         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54819         * lib/float+.h: Likewise.
54820         * lib/frexp.c: Likewise.
54821         * lib/printf-args.h: Likewise.
54822         * lib/printf-args.c: Likewise.
54823         * lib/printf-frexp.c: Likewise.
54824         * lib/printf-parse.c: Likewise.
54825         * lib/vasnprintf.c: Likewise.
54826         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54827         * m4/intl.m4: Likewise.
54828         * m4/isnanl.m4: Likewise.
54829         * m4/printf.m4: Likewise.
54830         * m4/printf-frexpl.m4: Likewise.
54831         * m4/vasnprintf.m4: Likewise.
54832         * modules/allocsa (Files): Remove m4/longdouble.m4.
54833         * modules/gettext (Files): Likewise.
54834         * modules/relocatable-prog-wrapper (Files): Likewise.
54835         * modules/vasnprintf (Files): Likewise.
54836         * modules/isnanl (Files): Likewise.
54837         (Include): Simplify.
54838         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54839         (Include): Simplify.
54840         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54841         (Include): Simplify.
54842         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54843         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54844         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54845         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54846         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54847         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54848         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54849         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54850         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54851         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54852         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54853         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54854         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54855         * tests/test-isnanl.c: Likewise.
54856         * tests/test-snprintf-posix.h: Likewise.
54857         * tests/test-sprintf-posix.h: Likewise.
54858         * tests/test-vasnprintf-posix.c: Likewise.
54859         * tests/test-vasnprintf-posix2.c: Likewise.
54860         * tests/test-vasprintf-posix.c: Likewise.
54861
54862 2007-04-06  Bruno Haible  <bruno@clisp.org>
54863
54864         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54865         * lib/math_.h [__DECC]: Include the overridden include file through
54866         #include_next, outside the double-inclusion guard.
54867         * lib/stdio_.h [__DECC]: Likewise.
54868         * lib/stdlib_.h [__DECC]: Likewise.
54869         * lib/string_.h [__DECC]: Likewise.
54870         * lib/time_.h [__DECC]: Likewise.
54871         * lib/wchar_.h [__DECC]: Likewise.
54872         * lib/wctype_.h [__DECC]: Likewise.
54873         * lib/inttypes_.h [__DECC]: Likewise.
54874         Reported by Albert Chin <china@thewrittenword.com> in
54875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54876
54877 2007-04-04  Eric Blake  <ebb9@byu.net>
54878
54879         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54880         1.5.x.
54881
54882 2007-04-04  Bruno Haible  <bruno@clisp.org>
54883
54884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54885         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54886
54887 2007-04-04  Bruno Haible  <bruno@clisp.org>
54888
54889         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54890         results for "%010a" of Infinity and NaN.
54891         * tests/test-vasprintf-posix.c (test_function): Likewise.
54892         * tests/test-snprintf-posix.h (test_function): Likewise.
54893         * tests/test-sprintf-posix.h (test_function): Likewise.
54894         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54895         * tests/test-printf-posix.h (test_function): Likewise.
54896         * tests/test-fprintf-posix.out: Update.
54897         Needed for FreeBSD 6.1.
54898
54899 2007-04-04  Bruno Haible  <bruno@clisp.org>
54900
54901         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54902         directly used by the gnulib modules nor by gnulib-tool.
54903
54904 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54905
54906         * DEPENDENCIES: Give overall description of version dependency
54907         desirability.  Use more-typical names for apps.
54908         Add shell, coreutils, diffutils, grep, tar, gzip.
54909
54910 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54911
54912         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54913
54914 2007-04-04  Karl Berry  <karl@gnu.org>
54915
54916         * MODULES.html.sh (func_module): missing '.
54917
54918 2007-04-03  Bruno Haible  <bruno@clisp.org>
54919
54920         * modules/argmatch-tests (Makefile.am): New variable
54921         test_argmatch_LDADD.
54922         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54923         * modules/array-list-tests (Makefile.am): New variable
54924         test_array_list_LDADD.
54925         * modules/array-oset-tests (Makefile.am): New variable
54926         test_array_oset_LDADD.
54927         * modules/avltree-list-tests (Makefile.am): New variable
54928         test_avltree_list_LDADD.
54929         * modules/avltree-oset-tests (Makefile.am): New variable
54930         test_avltree_oset_LDADD.
54931         * modules/avltreehash-list-tests (Makefile.am): New variable
54932         test_avltreehash_list_LDADD.
54933         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54934         test_canonicalize_lgpl_LDADD.
54935         * modules/carray-list-tests (Makefile.am): New variable
54936         test_carray_list_LDADD.
54937         * modules/dirname-tests (Makefile.am): New variable
54938         test_dirname_LDADD.
54939         * modules/linked-list-tests (Makefile.am): New variable
54940         test_linked_list_LDADD.
54941         * modules/linkedhash-list-tests (Makefile.am): New variable
54942         test_linkedhash_list_LDADD.
54943         * modules/rbtree-list-tests (Makefile.am): New variable
54944         test_rbtree_list_LDADD.
54945         * modules/rbtree-oset-tests (Makefile.am): New variable
54946         test_rbtree_oset_LDADD.
54947         * modules/rbtreehash-list-tests (Makefile.am): New variable
54948         test_rbtreehash_list_LDADD.
54949         * modules/xvasprintf-tests (Makefile.am): New variable
54950         test_xvasprintf_LDADD.
54951         Reported by Eric Blake.
54952
54953 2007-04-03  Eric Blake  <ebb9@byu.net>
54954
54955         * DEPENDENCIES: Weaken m4 requirements.
54956
54957 2007-04-03  Bruno Haible  <bruno@clisp.org>
54958
54959         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54960         * modules/isnanl-tests (configure.ac): Likewise.
54961
54962 2007-04-03  Ben Pfaff  <blp@gnu.org>
54963
54964         * modules/iconv_open: Add $(srcdir)/ to source directory
54965         references in Makefile fragments that call gperf, to fix VPATH
54966         builds.
54967
54968 2007-04-03  Bruno Haible  <bruno@clisp.org>
54969
54970         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54971         * lib/ldexpl.c: Undo last change.
54972
54973 2007-04-03  Bruno Haible  <bruno@clisp.org>
54974
54975         * modules/printf-frexpl (Depends-on): Undo last change.
54976         (Files): Add m4/ldexpl.m4.
54977
54978 2007-04-03  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54981         * modules/isnanl (Link): New section.
54982
54983         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54984         * modules/frexp (Link): New section.
54985
54986         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54987         * modules/frexpl (Link): New section.
54988
54989         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54990         * modules/ldexpl (Link): New section.
54991
54992 2007-04-03  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/TEMPLATE-EXTENDED: New file.
54995         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54996
54997 2007-04-03  Bruno Haible  <bruno@clisp.org>
54998
54999         * DEPENDENCIES: New file.
55000         Suggested by Simon Josefsson.
55001
55002 2007-04-03  Bruno Haible  <bruno@clisp.org>
55003
55004         * doc/gnulib.texi: Escape @.
55005
55006 2007-04-03  James Youngman  <jay@gnu.org>
55007         and Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55010         birthtime on all systems that have birthtime, not just those which
55011         use st_birthtimensec rather than st_birthtim.  Putting zero in
55012         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55013         that the birth time is not available for files on an NFS mount.
55014
55015 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55016
55017         * modules/memxor: Move back from crypto/, suggested by Bruno.
55018         * modules/crypto/hmac-sha1: Fix memxor dependency.
55019
55020         * modules/crypto/gc: Moved from ../.
55021
55022 2007-04-02  Eric Blake  <ebb9@byu.net>
55023
55024         * lib/ldexpl.c (includes): Avoid libm.
55025
55026         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55027
55028 2007-04-02  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55031         on IRIX.
55032
55033 2007-04-02  Bruno Haible  <bruno@clisp.org>
55034
55035         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55036         x86 or x86_64 platforms running MacOS X.
55037         Reported by Ryan Schmidt <@ryandesign.com>.
55038
55039 2007-04-02  Bruno Haible  <bruno@clisp.org>
55040
55041         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55042         i386.
55043
55044 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55045
55046         * modules/crypto/arcfour: Moved from ../.
55047         * modules/crypto/arcfour-tests: Moved from ../.
55048         * modules/crypto/arctwo: Moved from ../.
55049         * modules/crypto/arctwo-tests: Moved from ../.
55050         * modules/crypto/des: Moved from ../.
55051         * modules/crypto/des-tests: Moved from ../.
55052         * modules/crypto/gc-arcfour: Moved from ../.
55053         * modules/crypto/gc-arcfour-tests: Moved from ../.
55054         * modules/crypto/gc-arctwo: Moved from ../.
55055         * modules/crypto/gc-arctwo-tests: Moved from ../.
55056         * modules/crypto/gc-des: Moved from ../.
55057         * modules/crypto/gc-des-tests: Moved from ../.
55058         * modules/crypto/gc-hmac-md5: Moved from ../.
55059         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55060         * modules/crypto/gc-hmac-sha1: Moved from ../.
55061         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55062         * modules/crypto/gc-md2: Moved from ../.
55063         * modules/crypto/gc-md2-tests: Moved from ../.
55064         * modules/crypto/gc-md4: Moved from ../.
55065         * modules/crypto/gc-md4-tests: Moved from ../.
55066         * modules/crypto/gc-md5: Moved from ../.
55067         * modules/crypto/gc-md5-tests: Moved from ../.
55068         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55069         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55070         * modules/crypto/gc-random: Moved from ../.
55071         * modules/crypto/gc-rijndael: Moved from ../.
55072         * modules/crypto/gc-rijndael-tests: Moved from ../.
55073         * modules/crypto/gc-sha1: Moved from ../.
55074         * modules/crypto/gc-sha1-tests: Moved from ../.
55075         * modules/crypto/gc-tests: Moved from ../.
55076         * modules/crypto/hmac-md5: Moved from ../.
55077         * modules/crypto/hmac-md5-tests: Moved from ../.
55078         * modules/crypto/hmac-sha1: Moved from ../.
55079         * modules/crypto/hmac-sha1-tests: Moved from ../.
55080         * modules/crypto/md2: Moved from ../.
55081         * modules/crypto/md2-tests: Moved from ../.
55082         * modules/crypto/md4: Moved from ../.
55083         * modules/crypto/md4-tests: Moved from ../.
55084         * modules/crypto/md5: Moved from ../.
55085         * modules/crypto/md5-tests: Moved from ../.
55086         * modules/crypto/memxor: Moved from ../.
55087         * modules/crypto/rijndael: Moved from ../.
55088         * modules/crypto/rijndael-tests: Moved from ../.
55089         * modules/crypto/sha1: Moved from ../.
55090
55091 2007-03-30  James Youngman  <jay@gnu.org>
55092
55093         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55094         rename() to change the ctime of a file (because ctime is unaffected
55095         by rename on jfs2 on AIX 5.1).
55096         (main): Start by doing cleanup, in case a previous run failed leaving
55097         test files behind.
55098
55099 2007-03-31  Bruno Haible  <bruno@clisp.org>
55100
55101         Support old proprietary implementations of iconv.
55102         * modules/iconv_open: New file.
55103         * lib/iconv_.h: New file.
55104         * m4/iconv_h.m4: New file.
55105         * lib/iconv_open.c: New file.
55106         * lib/iconv_open-aix.gperf: New file.
55107         * lib/iconv_open-hpux.gperf: New file.
55108         * lib/iconv_open-irix.gperf: New file.
55109         * lib/iconv_open-osf.gperf: New file.
55110         * m4/iconv_open.m4: New file.
55111         * modules/linebreak (Depends-on): Add iconv_open.
55112         * modules/striconv (Depends-on): Likewise.
55113         * modules/striconveh (Depends-on): Likewise.
55114         * modules/unicodeio (Depends-on): Likewise.
55115         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55116         (iconv_t)(-1).
55117         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55118         conversion if cd is (iconv_t)(-1).
55119         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55120         is not possible.
55121
55122 2007-03-31  Bruno Haible  <bruno@clisp.org>
55123
55124         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55125         work on Solaris either. Protect also second use of "autodetect_jp".
55126
55127 2007-03-31  Bruno Haible  <bruno@clisp.org>
55128
55129         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55130         the function is not present.
55131
55132 2007-03-31  Bruno Haible  <bruno@clisp.org>
55133
55134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55135         the function is not present.
55136
55137 2007-03-31  Bruno Haible  <bruno@clisp.org>
55138
55139         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55140         a bug in HP-UX iconv_open().
55141
55142 2007-03-31  Bruno Haible  <bruno@clisp.org>
55143
55144         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55145         (Mathematics <math.h>): New section, add fpieee.
55146         (Input/output <stdio.h>): Add fseterr.
55147         (Mathematics <math.h>): New section, add printf-frexp.
55148         (Container data structures): Add sublist.
55149         (Core language properties): Add fpucw, inline.
55150         (Functions for greatest-width integer types <inttypes.h>): Add
55151         imaxabs, imaxdiv, inttypes.
55152         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55153         isnanl-nolibm, ldexp.
55154         (Mathematics <math.h>): New section, add printf-frexpl.
55155         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55156         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55157         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55158         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55159         (Unicode string functions): Add unistr/u*-mbtoucr.
55160         (Java): Add javacomp-script, javaexec-script.
55161         (C#): Add csharpcomp-script, csharpexec-script.
55162         (Support for building libraries and executables): Add havelib,
55163         relocatable-*.
55164         (Support for maintaining and releasing projects): Renamed from
55165         'Support for maintaining and release projects'. Add announce-gen.
55166
55167 2007-03-31  Bruno Haible  <bruno@clisp.org>
55168
55169         * README: Talk primarily about git.
55170         (git and CVS): Renamed from CVS.
55171         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55172         gnulib is available through git.
55173         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55174
55175 2007-03-30  Bruno Haible  <bruno@clisp.org>
55176
55177         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55178         * lib/poll_.h: Likewise.
55179         * lib/stat_.h: Likewise.
55180         * lib/sys_time_.h: Likewise.
55181         * lib/sysexit_.h: Likewise.
55182         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55183         * lib/stdbool_.h: Likewise.
55184         * lib/byteswap_.h: Add double-inclusion guard.
55185
55186 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55187
55188         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55189
55190 2007-03-30  Karl Berry  <karl@gnu.org>
55191
55192         * config/srclist-update: double space after USA in the license
55193         substitution, since that's how it's usually (?) written.
55194
55195 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55198         reported by Bruno Haible.
55199
55200 2007-03-29  Bruno Haible  <bruno@clisp.org>
55201
55202         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55203         a bug in AIX iconv().
55204
55205 2007-03-29  Bruno Haible  <bruno@clisp.org>
55206
55207         * modules/ldexpl-tests: New file.
55208         * tests/test-ldexpl.c: New file.
55209
55210 2007-03-29  Bruno Haible  <bruno@clisp.org>
55211
55212         * lib/ldexpl.c: Include fpucw.h.
55213         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55214         multiplication.
55215         * modules/ldexpl (Depends-on): Add fpucw.
55216
55217 2007-03-29  Bruno Haible  <bruno@clisp.org>
55218
55219         * modules/ldexpl: New file.
55220         * m4/ldexpl.m4: New file.
55221         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55222         set.
55223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55224         REPLACE_LDEXPL.
55225         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55226         REPLACE_LDEXPL.
55227         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55228         gl_FUNC_LDEXPL_WORKS.
55229         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55230         * modules/mathl (Files): Remove lib/ldexpl.c.
55231         (Depends-on): Add ldexpl.
55232
55233 2007-03-29  Bruno Haible  <bruno@clisp.org>
55234
55235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55236
55237 2007-03-29  Bruno Haible  <bruno@clisp.org>
55238
55239         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55240         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55241         and possibly also HP-UX.
55242         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55243         work on AIX, IRIX, HP-UX, OSF/1.
55244         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55245         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55246         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55247         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55248         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55249         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55250
55251 2007-03-29  Bruno Haible  <bruno@clisp.org>
55252
55253         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55254
55255 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55258         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55259
55260 2007-03-29  Eric Blake  <ebb9@byu.net>
55261
55262         * lib/acl-internal.h: Remove redundant include.
55263         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55264         Cygwin when a file is locked.
55265
55266 2007-03-29  Bruno Haible  <bruno@clisp.org>
55267
55268         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55269         file.
55270         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55271
55272 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55273
55274         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55275         try to remove a parent directory if the child couldn't be removed
55276         (except for the first rmdir, which could fail because the child
55277         doesn't exist).  Problem reported by Jeff Blaine in
55278         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55279
55280 2007-03-28  Bruno Haible  <bruno@clisp.org>
55281
55282         * lib/striconveh.c (utf8conv_carefully): New function.
55283         (mem_cd_iconveh_internal): Invoke it.
55284
55285 2007-03-28  Bruno Haible  <bruno@clisp.org>
55286
55287         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55288         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55289         input.
55290         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55291         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55292         unistr/u8-uctomb.
55293
55294 2007-03-28  Bruno Haible  <bruno@clisp.org>
55295
55296         * modules/unistr/u8-mbtoucr: New file.
55297         * lib/unistr/u8-mbtoucr.c: New file.
55298         * modules/unistr/u16-mbtoucr: New file.
55299         * lib/unistr/u16-mbtoucr.c: New file.
55300         * modules/unistr/u16-mbtoucr: New file.
55301         * lib/unistr/u16-mbtoucr.c: New file.
55302         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55303
55304 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55305             Bruno Haible  <bruno@clisp.org>
55306
55307         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55308         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55309         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55310
55311         * m4/stdio_h.m4: Add stubs for vasprintf too.
55312
55313         * modules/stdio: Support vasprintf in sed command.
55314
55315         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55316         vasprintf.h.  Add stdio module indicator.
55317
55318         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55319         vasprintf.h.
55320
55321         * lib/vasprintf.h: File removed.
55322
55323         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55324         * lib/vasprintf.c: Ditto.
55325         * lib/xvasprintf.c: Ditto.
55326         * tests/test-vasprintf-posix.c: Ditto.
55327         * tests/test-vasprintf.c: Ditto.
55328
55329 2007-03-27  Bruno Haible  <bruno@clisp.org>
55330
55331         Make vasnprintf multithread-safe.
55332         * lib/vasnprintf.c (decimal_point_char): New function.
55333         (VASNPRINTF): Use it.
55334         Suggested by Simon Josefsson.
55335
55336 2007-03-27  Eric Blake  <ebb9@byu.net>
55337
55338         Support sub-second birthtime on cygwin.
55339         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55340         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55341         (get_stat_birthtime): Also work with st_birthtim.
55342
55343 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55344
55345         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55346         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55347         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55348         (get_stat_birthtime_ns): Simplify compile-time tests.
55349         (get_stat_birthtime): Change the API to look like
55350         get_stat_mtime etc., except return a negative tv_nsec on error.
55351         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55352         Don't check for "spare" fields.
55353         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55354         or for struct stat.st_birthtime, as these tests aren't used.
55355         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55356
55357 2007-03-27  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/stat-time.h: Include <sys/stat.h>.
55360
55361 2007-03-27  James Youngman  <jay@gnu.org>
55362
55363         * lib/stat-time.h (get_stat_birthtime): New function for
55364           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55365         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55366           and its variants.
55367         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55368         * modules/stat-time-test: New file.
55369         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55370
55371 2007-03-26  Bruno Haible  <bruno@clisp.org>
55372
55373         Better support of signalling NaNs.
55374         * lib/atanl.c: Include isnanl.h.
55375         (atanl): Perform test for NaN at the beginning of the function and
55376         through a call to isnanl.
55377         * lib/cosl.c: Include isnanl.h.
55378         (cosl): Perform test for NaN at the beginning of the function and
55379         through a call to isnanl.
55380         * lib/ldexpl.c: Include isnanl.h.
55381         (ldexpl): Perform test for NaN through a call to isnanl.
55382         * lib/logl.c: Include isnanl.h.
55383         (logl): Perform test for NaN at the beginning of the function and
55384         through a call to isnanl.
55385         * lib/sinl.c: Include isnanl.h.
55386         (sinl): Perform test for NaN at the beginning of the function and
55387         through a call to isnanl.
55388         * lib/sqrtl.c: Include isnanl.h.
55389         (sqrtl): Perform test for NaN at the beginning of the function and
55390         through a call to isnanl.
55391         * lib/tanl.c: Include isnanl.h.
55392         (tanl): Perform test for NaN at the beginning of the function and
55393         through a call to isnanl.
55394         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55395         * modules/mathl (Depends-on): Add isnanl.
55396
55397 2007-03-26  Eric Blake  <ebb9@byu.net>
55398
55399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55400         regression in logic sense of previous patch.
55401
55402 2007-03-26  Bruno Haible  <bruno@clisp.org>
55403
55404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55405         unportable shell command "if ! ...".
55406         Reported by Ralf Wildenhues.
55407
55408 2007-03-25  Bruno Haible  <bruno@clisp.org>
55409
55410         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55411         <sysexits.h> file, and only add EX_CONFIG.
55412         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55413         absolute file name and whether it is sufficient. Substitute also
55414         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55415         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55416         ABSOLUTE_SYSEXITS_H into sysexits.h.
55417
55418 2007-03-25  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55421         hints is NULL.
55422
55423 2007-03-25  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55426         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55427
55428 2007-03-25  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/vasnprintf.c: Include langinfo.h.
55431         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55432         multithread-safe.
55433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55437         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55438         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55442         Reported by Simon Josefsson.
55443
55444 2007-03-25  Bruno Haible  <bruno@clisp.org>
55445
55446         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55447         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55448         * modules/vasnprintf (Depends-on): Add stdint.
55449
55450 2007-03-25  Bruno Haible  <bruno@clisp.org>
55451
55452         * modules/fpieee: New file.
55453         * m4/fpieee.m4: New file.
55454         * modules/isnan-nolibm (Depends-on): Add fpieee.
55455         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55456         * modules/isnanl (Depends-on): Add fpieee.
55457
55458 2007-03-25  Bruno Haible  <bruno@clisp.org>
55459
55460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55461
55462 2007-03-25  Bruno Haible  <bruno@clisp.org>
55463
55464         Avoid test failures on IRIX 6.5.
55465         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55466         (main): Use it.
55467         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55468         macros.
55469         (main): Use them.
55470
55471 2007-03-25  Bruno Haible  <bruno@clisp.org>
55472
55473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55474         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55475         exists but doesn't work.
55476         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55477         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55479         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55480         math.h.
55481
55482 2007-03-25  Bruno Haible  <bruno@clisp.org>
55483
55484         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55485         returns inf. Needed on IRIX 6.5.
55486
55487 2007-03-25  Bruno Haible  <bruno@clisp.org>
55488
55489         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55490         (main): Use isnanl instead of x != x idiom.
55491         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55492
55493         * tests/test-frexp.c: Include isnan.h.
55494         (main): Use isnan instead of x != x idiom.
55495         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55496
55497 2007-03-25  Bruno Haible  <bruno@clisp.org>
55498
55499         * tests/test-frexp.c (NaN): New function/macro.
55500         (main): Use it instead of 0.0 / 0.0.
55501         * tests/test-isnan.c (NaN): New function/macro.
55502         (main): Use it instead of 0.0 / 0.0.
55503         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55504         (test_function): Use it instead of 0.0 / 0.0.
55505         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55506         (test_function): Use it instead of 0.0 / 0.0.
55507         * tests/test-snprintf-posix.h (NaN): New function/macro.
55508         (test_function): Use it instead of 0.0 / 0.0.
55509         * tests/test-sprintf-posix.h (NaN): New function/macro.
55510         (test_function): Use it instead of 0.0 / 0.0.
55511         * tests/test-fprintf-posix.h (NaN): New function/macro.
55512         (test_function): Use it instead of 0.0 / 0.0.
55513         * tests/test-printf-posix.h (NaN): New function/macro.
55514         (test_function): Use it instead of 0.0 / 0.0.
55515
55516         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55517
55518 2007-03-25  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55521
55522 2007-03-25  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/regexec.c (merge_state_with_log): Make static.
55525
55526 2007-03-25  Bruno Haible  <bruno@clisp.org>
55527
55528         * lib/trigl.c (kernel_rem_pio2): Make static.
55529
55530 2007-03-25  Bruno Haible  <bruno@clisp.org>
55531
55532         * lib/sincosl.c (sincosl_table): Make static.
55533
55534 2007-03-25  Bruno Haible  <bruno@clisp.org>
55535
55536         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55537         if the compiler does not support C99.
55538
55539 2007-03-25  Bruno Haible  <bruno@clisp.org>
55540
55541         * modules/time (Makefile.am): Ensure all rule action lines start with a
55542         tab.
55543
55544 2007-03-24  Bruno Haible  <bruno@clisp.org>
55545
55546         * modules/tsearch-tests: New file.
55547         * tests/test-tsearch.sh: New file.
55548         * tests/test-tsearch.c: New file, mostly copied from glibc.
55549
55550         * modules/search-tests: New file.
55551         * tests/test-search.c: New file.
55552
55553         * modules/search: New file.
55554         * lib/search_.h: New file, incorporating lib/tsearch.h.
55555         * m4/search_h.m4: New file.
55556         * lib/tsearch.h: Remove file.
55557         * lib/tsearch.c: Include search.h instead of tsearch.h.
55558         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55559         HAVE_TSEARCH.
55560         * modules/tsearch (Files): Remove lib/tsearch.h.
55561         (Depends-on): Add search.
55562         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55563         (Include): Change tsearch.h into search.h.
55564
55565 2007-03-24  Bruno Haible  <bruno@clisp.org>
55566
55567         * modules/fpucw: New file.
55568         * lib/fpucw.h: New file.
55569         * lib/frexp.c: Include fpucw.h.
55570         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55571         (FUNC): Use them.
55572         * lib/printf-frexp.c: Include fpucw.h.
55573         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55574         (FUNC): Use them.
55575         * lib/vasnprintf.c: Include fpucw.h.
55576         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55577         'long double' calculations.
55578         * tests/test-frexpl.c: Include fpucw.h.
55579         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55580         * tests/test-printf-frexpl.c: Include fpucw.h.
55581         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55582         * modules/frexpl (Depends-on): Add fpucw.
55583         * modules/printf-frexpl (Depends-on): Likewise.
55584         * modules/fprintf-posix (Depends-on): Likewise.
55585         * modules/snprintf-posix (Depends-on): Likewise.
55586         * modules/sprintf-posix (Depends-on): Likewise.
55587         * modules/vasnprintf-posix (Depends-on): Likewise.
55588         * modules/vasprintf-posix (Depends-on): Likewise.
55589         * modules/vfprintf-posix (Depends-on): Likewise.
55590         * modules/vsnprintf-posix (Depends-on): Likewise.
55591         * modules/vsprintf-posix (Depends-on): Likewise.
55592         * modules/frexpl-tests (Depends-on): Likewise.
55593         * modules/printf-frexpl-tests (Depends-on): Likewise.
55594
55595 2007-03-24  Bruno Haible  <bruno@clisp.org>
55596
55597         * lib/float+.h: New file.
55598         * lib/isnan.c: Include float+.h.
55599         (SIZE): New macro.
55600         (FUNC): Compare only SIZE bytes of the value.
55601         * lib/vasnprintf.c: Include float+.h.
55602         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55603         SIZEOF_LDBL or SIZEOF_DBL bytes.
55604         * modules/isnan-nolibm (Files): Add lib/float+.h.
55605         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55606         * modules/isnanl (Files): Add lib/float+.h.
55607         * modules/vasnprintf (Files): Add lib/float+.h.
55608
55609 2007-03-24  Bruno Haible  <bruno@clisp.org>
55610
55611         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55612         include isnanl-nolibm.h.
55613
55614 2007-03-24  Bruno Haible  <bruno@clisp.org>
55615
55616         * tests/test-read-file.c (main): Don't produce spurious output for
55617         expected situations. Make the test fail if it encountered unexpected
55618         results.
55619
55620 2007-03-24  Bruno Haible  <bruno@clisp.org>
55621
55622         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55623         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55624
55625 2007-03-24  Bruno Haible  <bruno@clisp.org>
55626
55627         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55628
55629 2007-03-24  Bruno Haible  <bruno@clisp.org>
55630
55631         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55632         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55633
55634         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55635         * modules/utf8-ucs4: Turn into a symbolic link to module
55636         unistr/u8-mbtouc.
55637
55638         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55639         utf8-ucs4-unsafe.
55640         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55641         unistr/u8-mbtouc-unsafe.
55642
55643         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55644         * modules/utf16-ucs4: Turn into a symbolic link to module
55645         unistr/u16-mbtouc.
55646
55647         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55648         utf16-ucs4-unsafe.
55649         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55650         unistr/u16-mbtouc-unsafe.
55651
55652         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55653         * modules/ucs4-utf8: Turn into a symbolic link to module
55654         unistr/u8-ubtomb.
55655
55656         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55657         * modules/ucs4-utf16: Turn into a symbolic link to module
55658         unistr/u16-ubtomb.
55659
55660 2007-03-24  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55663         Enable the function only if HAVE_INLINE.
55664         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55665         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55666         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55667         Enable the function only if HAVE_INLINE.
55668         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55669         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55670         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55671         Enable the function only if HAVE_INLINE.
55672         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55673         Enable the function only if HAVE_INLINE.
55674         * modules/utf8-ucs4: Update.
55675         * modules/utf8-ucs4-unsafe: Update.
55676         * modules/utf16-ucs4: Update.
55677         * modules/utf16-ucs4-unsafe: Update.
55678         * modules/ucs4-utf8: Update.
55679         * modules/ucs4-utf16: Update.
55680
55681 2007-03-24  Bruno Haible  <bruno@clisp.org>
55682
55683         * lib/utf8-ucs4.h: Remove file.
55684         * lib/utf8-ucs4-unsafe.h: Remove file.
55685         * lib/utf16-ucs4.h: Remove file.
55686         * lib/utf16-ucs4-unsafe.h: Remove file.
55687         * lib/ucs4-utf8.h: Remove file.
55688         * lib/ucs4-utf16.h: Remove file.
55689         * lib/unistr.h: Include their previous contents.
55690         * m4/utf-ucs4.m4: Remove file.
55691         * m4/ucs4-utf.m4: Remove file.
55692         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55693         (Depends-on): Add unistr/base.
55694         (configure.ac): Remove gl_UTF_UCS4.
55695         (Makefile.am): Update.
55696         (Include): Change to unistr.h.
55697         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55698         (Depends-on): Add unistr/base.
55699         (configure.ac): Remove gl_UTF_UCS4.
55700         (Makefile.am): Update.
55701         (Include): Change to unistr.h.
55702         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55703         (Depends-on): Add unistr/base.
55704         (configure.ac): Remove gl_UTF_UCS4.
55705         (Makefile.am): Update.
55706         (Include): Change to unistr.h.
55707         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55708         (Depends-on): Add unistr/base.
55709         (configure.ac): Remove gl_UTF_UCS4.
55710         (Makefile.am): Update.
55711         (Include): Change to unistr.h.
55712         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55713         (Depends-on): Add unistr/base.
55714         (configure.ac): Remove gl_UCS4_UTF.
55715         (Makefile.am): Update.
55716         (Include): Change to unistr.h.
55717         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55718         (Depends-on): Add unistr/base.
55719         (configure.ac): Remove gl_UCS4_UTF.
55720         (Makefile.am): Update.
55721         (Include): Change to unistr.h.
55722         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55723         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55724         utf8-ucs4-unsafe.h.
55725         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55726         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55727         utf16-ucs4-unsafe.h.
55728         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55729         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55730         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55731         * lib/unistr/u8-strchr.c: Likewise.
55732         * lib/unistr/u8-strrchr.c: Likewise.
55733         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55734         * lib/unistr/u16-strchr.c: Likewise.
55735         * lib/unistr/u16-strrchr.c: Likewise.
55736         * lib/striconveh.c: Update.
55737         * lib/linebreak.c: Update.
55738
55739 2007-03-24  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55742         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55743
55744 2007-03-22  Bruno Haible  <bruno@clisp.org>
55745
55746         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55747
55748 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         * MODULES.html.sh (File system functions): New module write-any-file.
55751         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55752         * m4/write-any-file.m4: New files.
55753
55754 2007-03-23  Eric Blake  <ebb9@byu.net>
55755
55756         * gnulib-tool: Rearrange space-tab sequences, since some editors
55757         like to eat them.
55758
55759 2007-03-23  Eric Blake  <ebb9@byu.net>
55760
55761         * lib/version-etc.c (version_etc_va): Update license wording to
55762         be more concise.  Recommended by Richard Stallman.
55763
55764 2007-03-22  Bruno Haible  <bruno@clisp.org>
55765
55766         * lib/poll.c (MSG_PEEK): New fallback definition.
55767
55768 2007-03-22  Bruno Haible  <bruno@clisp.org>
55769
55770         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55771         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55772         (main): Update.
55773         Fixes a compilation error on BeOS.
55774
55775 2007-03-22  Bruno Haible  <bruno@clisp.org>
55776
55777         * modules/frexpl-tests: New file.
55778         * tests/test-frexpl.c: New file.
55779
55780         * modules/frexpl: New file.
55781         * m4/frexpl.m4: New file.
55782         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55783         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55785         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55786         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55787         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55788
55789 2007-03-22  Bruno Haible  <bruno@clisp.org>
55790
55791         * lib/frexpl.c: Share code with lib/frexp.c.
55792         * modules/mathl (Files): Add lib/frexp.c.
55793         (Depends-on): Add isnanl-nolibm.
55794
55795 2007-03-22  Bruno Haible  <bruno@clisp.org>
55796
55797         * modules/printf-frexp (Files): Add m4/frexp.m4.
55798         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55799         only if the found frexp function actually works.
55800
55801 2007-03-22  Bruno Haible  <bruno@clisp.org>
55802
55803         * lib/frexp.c: Remove older implementation that uses divisions.
55804
55805 2007-03-21  Bruno Haible  <bruno@clisp.org>
55806
55807         * modules/frexp-tests: New file.
55808         * tests/test-frexp.c: New file.
55809
55810         * modules/frexp: New file.
55811         * lib/frexp.c: New file.
55812         * m4/frexp.m4: New file.
55813         * lib/math_.h (frexp): New declaration.
55814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55815         REPLACE_FREXP.
55816         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55817
55818 2007-03-21  Bruno Haible  <bruno@clisp.org>
55819
55820         * modules/isnanl-tests: New file.
55821         * tests/test-isnanl.c: New file.
55822
55823         * modules/isnanl: New file.
55824         * lib/isnanl.h: New file.
55825         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55826         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55827         gl_FUNC_ISNANL_WORKS.
55828         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55829         New macros.
55830
55831 2007-03-21  Bruno Haible  <bruno@clisp.org>
55832
55833         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55834         lib/isnanl.h.
55835         (Include): Update.
55836         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55837         * lib/vasnprintf.c: Update.
55838         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55839         tests/test-isnanl.h, remove tests/test-isnanl.c.
55840         (Makefile.am): Update.
55841         * tests/test-isnanl-nolibm.c: New file.
55842         * tests/test-isnanl.h: New file.
55843         * tests/test-isnanl.c: Remove file.
55844
55845 2007-03-21  Jim Meyering  <jim@meyering.net>
55846
55847         When trying to open ".", treat ESTALE like EACCES.
55848         * lib/savewd.c (savewd_save): Resort to forking not just upon
55849         failure with EACCES, but also when errno is ESTALE.
55850
55851 2007-03-20  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55854         Needed on AIX 5.1. Reported by Matthew Woehlke.
55855
55856 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55857
55858         Suggestions by Bruno Haible:
55859         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55860         our own.
55861         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55862         * modules/acl (Depends-on): Add gettext.
55863
55864 2007-03-19  Bruno Haible  <bruno@clisp.org>
55865
55866         * modules/iconvme: Remove file.
55867         * lib/iconvme.h: Remove file.
55868         * lib/iconvme.c: Remove file.
55869         * m4/iconvme.m4: Remove file.
55870
55871 2007-03-19  Bruno Haible  <bruno@clisp.org>
55872
55873         * doc/relocatable-maint.texi: Break long shell script line.
55874         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55875
55876 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55877
55878         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55879         handle file_has_acl.
55880         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55881         * lib/acl.c: Move header inclusions and related macro defns into
55882         lib/acl-internal.h.
55883         (S_ISLNK): Remove defn, since that's now done for us.
55884         (file_has_acl): Move to lib/file-has-acl.c.
55885         Call acl_trivial if available.  This is the crucial part of the fix.
55886         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55887         shared within the library.  Rewrite a bit, partly to make it compatible
55888         with the GNU coding style.
55889         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55890         Remove unnecessary double-quotes.
55891         Don't test for acl_to_text; the build will catch that.
55892         Replace acl_entries if it doesn't exist and it is needed.
55893         Check for -lsec and acl_trivial (as used on Solaris 10).
55894         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55895         lib/file-has-acl.c.
55896         (Depends-on): Add sys_stat, for S_ISLNK.
55897
55898 2007-03-19  Ben Pfaff  <blp@gnu.org>
55899
55900         * doc/gnulib.texi: Fix typos.
55901         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55902
55903 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55904
55905         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55906         If size is zero here, buf must be zero.
55907
55908 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55909
55910         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55911         <bruno@clisp.org>.
55912
55913 2007-03-18  Bruno Haible  <bruno@clisp.org>
55914
55915         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55916         Suggested by Eric Blake.
55917
55918 2007-03-18  Ben Pfaff  <blp@gnu.org>
55919
55920         * doc/relocatable.texi: Recommend using as prefix a directory
55921         that does not exist and will never be created.  Based on
55922         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55923         and others.
55924
55925 2007-03-17  Bruno Haible  <bruno@clisp.org>
55926
55927         * lib/fchownat.c: Include lchown.h.
55928
55929 2007-03-17  Bruno Haible  <bruno@clisp.org>
55930
55931         Fix endless loop when the given allocated size was > INT_MAX.
55932         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55933         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55934         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55935         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55936         * lib/sprintf.c (sprintf): Likewise.
55937
55938 2007-03-17  Bruno Haible  <bruno@clisp.org>
55939
55940         * tests/test-argp-2.sh (func_compare): Output a context diff.
55941
55942 2007-03-17  Bruno Haible  <bruno@clisp.org>
55943
55944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55945         locale's decimal-point character.
55946
55947 2007-03-17  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55950         before comparing it. Needed because on some platforms (e.g. x86) a
55951         'long double' occupies less bytes than sizeof (long double).
55952
55953 2007-03-17  Bruno Haible  <bruno@clisp.org>
55954
55955         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55956         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55957         * tests/test-getaddrinfo.c (simple): Likewise.
55958         * tests/test-read-file.c (main): Likewise.
55959
55960 2007-03-17  Bruno Haible  <bruno@clisp.org>
55961
55962         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55963
55964 2007-03-17  Bruno Haible  <bruno@clisp.org>
55965
55966         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55967         unused variable.
55968
55969 2007-03-17  Bruno Haible  <bruno@clisp.org>
55970
55971         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55972         * tests/test-c-strncasecmp.c: Likewise.
55973
55974 2007-03-17  Bruno Haible  <bruno@clisp.org>
55975
55976         * modules/stdlib (Depends-on): Add unistd.
55977         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55978         Needed for MacOS X 10.3.
55979
55980 2007-03-17  Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55983
55984 2007-03-17  Bruno Haible  <bruno@clisp.org>
55985
55986         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55987
55988 2007-03-17  Bruno Haible  <bruno@clisp.org>
55989
55990         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55991         to reflect files copied from gnulib (with or without modifications).
55992         Suggested by Jim Meyering.
55993
55994 2007-03-17  Eric Blake  <ebb9@byu.net>
55995
55996         * NEWS: Document stdlib change from 2007-02-18.
55997
55998 2007-03-17  Jim Meyering  <jim@meyering.net>
55999
56000         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56001         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56002         someone uses a name containing shell meta-characters.
56003         Reported by Alfred M. Szmidt.
56004
56005         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56006
56007 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56008
56009         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56010         and copy gettext configuration files only if configure.ac contains
56011         a use of AM_GNU_GETTEXT_VERSION.
56012
56013 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56014
56015         * build-aux/bootstrap (gnulib_name): New variable.
56016         (gnulib_tool_options): Use it.
56017
56018 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56019
56020         * tests/test-des.c: Use new namespace.
56021
56022 2007-03-15  Bruno Haible  <bruno@clisp.org>
56023
56024         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56025         Reported by James Youngman <jay@gnu.org>.
56026
56027 2007-03-15  Bruno Haible  <bruno@clisp.org>
56028
56029         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56030         declared prototype. Needed with cc on OSF/1 5.1.
56031
56032 2007-03-15  Bruno Haible  <bruno@clisp.org>
56033
56034         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56035         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56036         (struct gl_list_implementation): Add dispose_fn argument to the
56037         'create_empty', 'create' methods.
56038         (struct gl_list_impl_base): Add field 'dispose_fn'.
56039         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56040         argument.
56041         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56042         dispose_fn argument.
56043         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56044         dispose_fn on the dropped values.
56045         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56046         dispose_fn argument.
56047         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56048         dropped values.
56049         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56050         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56051         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56052         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56053         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56054         argument.
56055         (gl_tree_list_free): Call dispose_fn on the dropped values.
56056         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56057         the dropped values.
56058         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56059         Add dispose_fn argument.
56060         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56061         Call dispose_fn on the dropped values.
56062         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56063         Add dispose_fn argument.
56064         (gl_sublist_create): Initialize the 'dispose_fn' field.
56065         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56066         * tests/test-array_list.c (main): Update.
56067         * tests/test-carray_list.c (main): Update.
56068         * tests/test-avltree_list.c (main): Update.
56069         * tests/test-rbtree_list.c (main): Update.
56070         * tests/test-avltreehash_list.c (main): Update.
56071         * tests/test-rbtreehash_list.c (main): Update.
56072         * tests/test-linked_list.c (main): Update.
56073         * tests/test-linkedhash_list.c (main): Update.
56074         * tests/test-array_oset.c (main): Update.
56075
56076 2007-03-15  Bruno Haible  <bruno@clisp.org>
56077
56078         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56079         (gl_oset_create_empty): Add dispose_fn argument.
56080         (struct gl_oset_implementation): Add dispose_fn argument to
56081         'create_empty' method.
56082         (struct gl_oset_impl_base): Add dispose_fn field.
56083         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56084         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56085         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56086         values.
56087         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56088         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56089         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56090         dropped value.
56091         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56092         dropped value.
56093         * tests/test-array_oset.c (main): Update.
56094         * tests/test-avltree_oset.c (main): Update.
56095         * tests/test-rbtree_oset.c (main): Update.
56096         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56097
56098 2007-03-13  Bruno Haible  <bruno@clisp.org>
56099
56100         * tests/test-stdbool.c (i): Update after last patch.
56101
56102 2007-03-12  Bruno Haible  <bruno@clisp.org>
56103
56104         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56105         the iswprint macro. Needed on Solaris 2.5.1.
56106
56107 2007-03-12  Bruno Haible  <bruno@clisp.org>
56108
56109         * tests/test-printf-frexp.c (main): Declare x as volatile.
56110
56111 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56112
56113         * doc/gnulib.texi (Build robot for gnulib): New section.
56114
56115 2007-03-12  Jim Meyering  <jim@meyering.net>
56116
56117         * build-aux/bootstrap: New file.
56118         * build-aux/bootstrap.conf: New file, from coreutils.
56119
56120 2007-03-11  Bruno Haible  <bruno@clisp.org>
56121
56122         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56123
56124 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56125
56126         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56127         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56128         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56129
56130 2007-03-11  Bruno Haible  <bruno@clisp.org>
56131
56132         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56133         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56134
56135 2007-03-11  Bruno Haible  <bruno@clisp.org>
56136
56137         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56138         formula. Needed for SunPRO C 5.0.
56139
56140 2007-03-11  Bruno Haible  <bruno@clisp.org>
56141
56142         * modules/long-options (Depends-on): Add getopt.
56143
56144 2007-03-11  Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/modechange (Depends-on): Add stdbool.
56147
56148 2007-03-11  Bruno Haible  <bruno@clisp.org>
56149
56150         * modules/i-ring (Depends-on): Add stdbool.
56151
56152 2007-03-11  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/gc-des (Depends-on): Add stdbool.
56155
56156 2007-03-11  Bruno Haible  <bruno@clisp.org>
56157
56158         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56159
56160 2007-03-11  Bruno Haible  <bruno@clisp.org>
56161
56162         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56163
56164 2007-03-11  Bruno Haible  <bruno@clisp.org>
56165
56166         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56167
56168 2007-03-11  Bruno Haible  <bruno@clisp.org>
56169
56170         * lib/vasnprintf.c (sprintf): Undefine.
56171
56172 2007-03-11  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56175         initializers in SunPRO C and Compaq C compilers.
56176
56177 2007-03-11  Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56180         decrementing code ANSI C compliant.
56181
56182 2007-03-11  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56185         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56186
56187 2007-03-11  Bruno Haible  <bruno@clisp.org>
56188
56189         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56190         <stdbool.h> substitute doesn't pass.
56191
56192 2007-03-11  Bruno Haible  <bruno@clisp.org>
56193
56194         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56195
56196 2007-03-11  Bruno Haible  <bruno@clisp.org>
56197
56198         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56199         script, for submission to autobuild.josefsson.org.
56200
56201 2007-03-10  Bruno Haible  <bruno@clisp.org>
56202
56203         * modules/canonicalize-lgpl-tests: New file.
56204         * tests/test-canonicalize-lgpl.sh: New file.
56205         * tests/test-canonicalize-lgpl.c: New file.
56206
56207         * modules/c-strcase-tests: New file.
56208         * tests/test-c-strcase.sh: New file.
56209         * tests/test-c-strcasecmp.c: New file.
56210         * tests/test-c-strncasecmp.c: New file.
56211
56212         * modules/atexit-tests: New file.
56213         * tests/test-atexit.sh: New file.
56214         * tests/test-atexit.c: New file.
56215
56216 2007-03-10  Bruno Haible  <bruno@clisp.org>
56217
56218         * tests/test-binary-io.sh: Use temporary filenames that are not so
56219         likely to clash with those of other tests (in a parallel make).
56220         * tests/test-binary-io.c: Likewise.
56221
56222 2007-03-10  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56225         fallback; use #error instead.
56226         Suggested by Simon Josefsson.
56227
56228 2007-03-10  Bruno Haible  <bruno@clisp.org>
56229
56230         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56231         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56232         first and the last.
56233
56234 2007-03-10  Bruno Haible  <bruno@clisp.org>
56235
56236         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56237
56238 2007-03-10  Bruno Haible  <bruno@clisp.org>
56239
56240         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56241         "make distcheck".
56242         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56243         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56244         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56245
56246 2007-03-10  Bruno Haible  <bruno@clisp.org>
56247
56248         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56249         variable.
56250         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56251         variable.
56252
56253 2007-03-09  Eric Blake  <ebb9@byu.net>
56254         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56255
56256         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56257         types are not being provided by gnulib.
56258         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56259         types are supported.
56260
56261 2007-03-10  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/stdio_.h (__attribute__): New macro.
56264         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56265         vsprintf): Specify __attribute__ __format__ for GCC.
56266         Suggested by Eric Blake.
56267
56268 2007-03-09  Bruno Haible  <bruno@clisp.org>
56269
56270         * modules/printf-posix-tests: New file.
56271         * tests/test-printf-posix.sh: New file.
56272         * tests/test-printf-posix.c: New file.
56273
56274         * modules/printf-posix: New file.
56275         * lib/printf.c: New file.
56276         * m4/printf-posix-rpl.m4: New file.
56277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56278         REPLACE_PRINTF.
56279         * lib/stdio_.h (printf): New declaration.
56280         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56281         ____strfmon____): New macros.
56282         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56283         REPLACE_PRINTF.
56284
56285 2007-03-09  Bruno Haible  <bruno@clisp.org>
56286
56287         * tests/test-vasnprintf-posix2.sh: New file.
56288         * tests/test-vasnprintf-posix2.c: New file.
56289         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56290         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56291         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56292
56293         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56294         a locale dependent decimal point, rather than always '.'.
56295
56296 2007-03-09  Eric Blake  <ebb9@byu.net>
56297
56298         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56299         spite of platforms like Tandem/NSK that define it to -1.
56300
56301 2007-03-08  Bruno Haible  <bruno@clisp.org>
56302
56303         * modules/vprintf-posix-tests: New file.
56304         * tests/test-vprintf-posix.sh: New file.
56305         * tests/test-vprintf-posix.c: New file.
56306         * tests/test-printf-posix.h: New file.
56307
56308         * modules/vprintf-posix: New file.
56309         * lib/vprintf.c: New file.
56310         * m4/vprintf-posix.m4: New file.
56311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56312         REPLACE_VPRINTF.
56313         * lib/stdio_.h (vprintf): New declaration.
56314         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56315         REPLACE_VPRINTF.
56316
56317 2007-03-08  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/fprintf-posix-tests: New file.
56320         * tests/test-fprintf-posix.sh: New file.
56321         * tests/test-fprintf-posix.c: New file.
56322
56323         * modules/fprintf-posix: New file.
56324         * lib/fprintf.c: New file.
56325         * m4/fprintf-posix.m4: New file.
56326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56327         REPLACE_FPRINTF.
56328         * lib/stdio_.h (fprintf): New declaration.
56329         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56330         REPLACE_FPRINTF.
56331
56332 2007-03-08  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/vfprintf-posix-tests: New file.
56335         * tests/test-vfprintf-posix.sh: New file.
56336         * tests/test-vfprintf-posix.c: New file.
56337         * tests/test-fprintf-posix.h: New file.
56338         * tests/test-fprintf-posix.out: New file.
56339
56340         * modules/vfprintf-posix: New file.
56341         * lib/vfprintf.c: New file.
56342         * m4/vfprintf-posix.m4: New file.
56343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56344         REPLACE_VFPRINTF.
56345         * lib/stdio_.h (vfprintf): New declaration.
56346         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56347         REPLACE_VFPRINTF.
56348
56349 2007-03-08  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56352
56353 2007-03-08  Bruno Haible  <bruno@clisp.org>
56354
56355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56356         instead of 'expr' invocations.
56357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56361         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56362         Suggested by Paul Eggert.
56363
56364 2007-03-08  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/fseterr-tests: New file.
56367         * tests/test-fseterr.c: New file.
56368
56369         * modules/fseterr: New file.
56370         * lib/fseterr.h: New file.
56371         * lib/fseterr.c: New file.
56372
56373 2007-03-08  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56376         * lib/getopt_.h: Likewise.
56377         * lib/mbswidth.h: Likewise.
56378         * lib/setenv.h: Likewise.
56379         * lib/vasnprintf.h: Likewise.
56380         * lib/vasprintf.h: Likewise.
56381         * lib/verror.h: Likewise.
56382         * lib/xsetenv.h: Likewise.
56383         * lib/xvasprintf.h: Likewise.
56384
56385 2007-03-08  Jim Meyering  <jim@meyering.net>
56386
56387         * users.txt: Add parted.
56388
56389         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56390
56391 2007-03-07  Bruno Haible  <bruno@clisp.org>
56392
56393         * m4/printf.m4: Make the shell script snippets copy&pastable.
56394
56395 2007-03-02  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/netinet_in_.h: New file.
56398         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56399         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56400         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56401         (Depends-on): Add absolute-header.
56402         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56403         into netinet/in.h.
56404
56405 2007-03-03  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/sys_select_.h: New file.
56408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56409         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56410         * modules/sys_select (Files): Add lib/sys_select_.h.
56411         (Depends-on): Add absolute-header.
56412         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56413         into sys/select.h.
56414
56415 2007-03-02  Bruno Haible  <bruno@clisp.org>
56416
56417         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56418         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56419         values.
56420         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56421         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56422         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56423         * modules/sys_socket (Depends-on): Add absolute-header.
56424         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56425         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56426         (Include): Remove requirement of inclusion of <sys/types.h>.
56427
56428 2007-03-02  Bruno Haible  <bruno@clisp.org>
56429
56430         * lib/byteswap_.h (bswap_32): Fix formula.
56431
56432 2007-03-06  Bruno Haible  <bruno@clisp.org>
56433
56434         * modules/sprintf-posix-tests: New file.
56435         * tests/test-sprintf-posix.c: New file.
56436
56437         * modules/sprintf-posix: New file.
56438         * lib/sprintf.c: New file.
56439         * m4/sprintf-posix.m4: New file.
56440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56441         REPLACE_SPRINTF.
56442         * lib/stdio_.h (sprintf): New declaration.
56443         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56444         REPLACE_SPRINTF.
56445
56446 2007-03-06  Bruno Haible  <bruno@clisp.org>
56447
56448         * modules/vsprintf-posix-tests: New file.
56449         * tests/test-vsprintf-posix.c: New file.
56450         * tests/test-sprintf-posix.h: New file.
56451
56452         * modules/vsprintf-posix: New file.
56453         * lib/vsprintf.c: New file.
56454         * m4/vsprintf-posix.m4: New file.
56455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56456         REPLACE_VSPRINTF.
56457         * lib/stdio_.h (vsprintf): New declaration.
56458         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56459         REPLACE_VSPRINTF.
56460
56461 2007-03-06  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/vsnprintf (Depend-on): Remove minmax.
56464
56465 2007-03-06  Bruno Haible  <bruno@clisp.org>
56466
56467         * modules/snprintf-posix-tests: New file.
56468         * tests/test-snprintf-posix.c: New file.
56469
56470         * modules/snprintf-posix: New file.
56471         * m4/snprintf-posix.m4: New file.
56472         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56473         gl_FUNC_SNPRINTF.
56474         (gl_FUNC_SNPRINTF): Invoke it.
56475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56476         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56477         is set.
56478         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56479
56480 2007-03-06  Bruno Haible  <bruno@clisp.org>
56481
56482         * modules/vsnprintf-posix-tests: New file.
56483         * tests/test-vsnprintf-posix.c: New file.
56484         * tests/test-snprintf-posix.h: New file.
56485
56486         * modules/vsnprintf-posix: New file.
56487         * m4/vsnprintf-posix.m4: New file.
56488         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56489         gl_FUNC_VSNPRINTF.
56490         (gl_FUNC_VSNPRINTF): Invoke it.
56491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56492         * lib/stdio_.h (vsnprintf): Define as a replacement if
56493         REPLACE_VSNPRINTF is set.
56494         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56495
56496 2007-03-06  Bruno Haible  <bruno@clisp.org>
56497
56498         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56500
56501 2007-03-06  Bruno Haible  <bruno@clisp.org>
56502
56503         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56504         (asinl): Declare also if HAVE_DECL_ASINL is set.
56505         (atanl): Declare also if HAVE_DECL_ATANL is set.
56506         (ceill): Declare also if HAVE_DECL_CEILL is set.
56507         (cosl): Declare also if HAVE_DECL_COSL is set.
56508         (expl): Declare also if HAVE_DECL_EXPL is set.
56509         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56510         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56511         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56512         (logl): Declare also if HAVE_DECL_LOGL is set.
56513         (sinl): Declare also if HAVE_DECL_SINL is set.
56514         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56515         (tanl): Declare also if HAVE_DECL_TANL is set.
56516         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56518         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56519         declaration of frexpl, ldexpl.
56520         * modules/printf-frexpl (Depends-on): Add math.
56521         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56522
56523 2007-03-05  Bruno Haible  <bruno@clisp.org>
56524
56525         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56526         frexpl and ldexpl are declared.
56527         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56528
56529 2007-03-05  Bruno Haible  <bruno@clisp.org>
56530
56531         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56532         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56533
56534 2007-03-05  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/stdio_.h: Include <stddef.h>.
56537
56538 2007-03-05  Bruno Haible  <bruno@clisp.org>
56539
56540         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56541
56542 2007-03-05  Bruno Haible  <bruno@clisp.org>
56543
56544         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56545         NetBSD 4, from Ralf Wildenhues.
56546
56547 2007-03-04  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/vasprintf.h: Update #if logic for the case when the functions
56550         exist but are overridden.
56551
56552 2007-03-04  Bruno Haible  <bruno@clisp.org>
56553
56554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56555         implementations: glibc-2.4 and MacOS X 10.3.
56556         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56557         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56558         * tests/test-vasprintf-posix.c (test_function): Likewise.
56559
56560 2007-03-04  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/vasprintf-posix-tests: New file.
56563         * tests/test-vasprintf-posix.c: New file.
56564
56565         * modules/vasprintf-posix: New file.
56566         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56567         defined.
56568         * m4/vasprintf-posix.m4: New file.
56569         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56570         gl_FUNC_VASPRINTF.
56571         (gl_FUNC_VASPRINTF): Invoke it.
56572         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56573         here.
56574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56575
56576 2007-03-04  Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56579         REPLACE_GETTIMEOFDAY.
56580         * modules/sys_time (Makefile.am): Likewise.
56581         * m4/sys_time_h.m4: Likewise.
56582         * m4/gettimeofday.m4: Likewise.
56583
56584 2007-03-04  Bruno Haible  <bruno@clisp.org>
56585
56586         * modules/vasnprintf-posix-tests: New file.
56587         * tests/test-vasnprintf-posix.c: New file.
56588
56589         * modules/vasnprintf-posix: New file.
56590         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56591         printf-frexpl.h.
56592         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56593         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56594         REPLACE_VASNPRINTF is defined.
56595         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56596         gl_FUNC_VASNPRINTF.
56597         (gl_FUNC_VASNPRINTF): Invoke it.
56598         * m4/vasnprintf-posix.m4: New file.
56599         * m4/printf.m4: New file.
56600
56601 2007-03-04  Bruno Haible  <bruno@clisp.org>
56602
56603         Compile progreloc.c only if --enable-relocatable is specified.
56604         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56605         if --enable-relocatable was specified.
56606         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56607         lib_SOURCES.
56608
56609 2007-03-04  Jim Meyering  <jim@meyering.net>
56610
56611         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56612         Use it consistently, rather than enumerating errno constants.
56613
56614 2007-03-04  Bruno Haible  <bruno@clisp.org>
56615
56616         * modules/xvasprintf-tests: New file.
56617         * tests/test-xvasprintf.c: New file.
56618
56619         * modules/vasprintf-tests: New file.
56620         * tests/test-vasprintf.c: New file.
56621
56622         * modules/vasnprintf-tests: New file.
56623         * tests/test-vasnprintf.c: New file.
56624
56625         * modules/vsnprintf-tests: New file.
56626         * tests/test-vsnprintf.c: New file.
56627
56628         * modules/snprintf-tests: New file.
56629         * tests/test-snprintf.c: New file.
56630
56631 2007-03-04  Bruno Haible  <bruno@clisp.org>
56632
56633         Compile relocatable.c only if --enable-relocatable is specified.
56634         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56635         gl_RELOCATABLE_LIBRARY.
56636         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56637         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56638         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56639         gl_RELOCATABLE_LIBRARY.
56640         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56641         (Makefile.am): Remove lib_SOURCES.
56642         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56643         gl_RELOCATABLE_LIBRARY.
56644         (Makefile.am): Remove lib_SOURCES.
56645         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56646         always.
56647         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56648         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56649
56650 2007-03-04  Bruno Haible  <bruno@clisp.org>
56651
56652         * modules/argmatch-tests: New file.
56653         * tests/test-argmatch.c: New file.
56654
56655         * tests/test-allocsa.c (main): Halve the number of loop runs.
56656
56657         * modules/alloca-opt-tests: New file.
56658         * tests/test-alloca-opt.c: New file.
56659
56660 2007-03-04  Jim Meyering  <jim@meyering.net>
56661
56662         Work around difference between Linux ACLs and Solaris 10 ZFS.
56663         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56664         for EINVAL.
56665
56666 2007-03-03  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/relocatable-prog (Depends-on): Add back progreloc's
56669         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56670
56671 2007-03-03  Bruno Haible  <bruno@clisp.org>
56672
56673         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56674         * modules/relocatable-lib: New file.
56675
56676 2007-03-03  Bruno Haible  <bruno@clisp.org>
56677
56678         * modules/relocatable-prog: Renamed from modules/relocatable.
56679         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56680
56681 2007-03-03  Bruno Haible  <bruno@clisp.org>
56682
56683         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56684         m4/relocatable-lib.m4.
56685         (Depends-on): Remove 'relocatable'.
56686         (configure.ac): Add gl_RELOCATABLE_NOP.
56687
56688 2007-03-03  Bruno Haible  <bruno@clisp.org>
56689
56690         * modules/relocatable-prog-wrapper: New file.
56691         * modules/relocatable (Depends-on): Add it. Remove all other
56692         dependencies except progname.
56693         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56694
56695         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56696         (gl_FUNC_STRERROR): Nop.
56697         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56698
56699         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56700         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56701
56702         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56703         (gl_FUNC_READLINK): Update.
56704
56705         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56706
56707 2007-03-03  Bruno Haible  <bruno@clisp.org>
56708
56709         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56710         * modules/xreadlink (Depends-on): Add unistd.
56711         * modules/xreadlink-with-size (Depends-on): Likewise.
56712
56713 2007-03-03  Bruno Haible  <bruno@clisp.org>
56714
56715         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56716         extracted from gt_FUNC_SETENV.
56717         (gt_FUNC_SETENV): Remove macro.
56718         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56719         remove gt_FUNC_SETENV.
56720
56721 2007-03-03  Bruno Haible  <bruno@clisp.org>
56722
56723         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56724         ENABLE_RELOCATABLE here.
56725         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56726
56727 2007-03-03  Bruno Haible  <bruno@clisp.org>
56728
56729         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56730         * tests/test-rbtreehash_list.c: Include progname.h.
56731         (main): Call set_program_name.
56732
56733         * modules/rbtree-oset-tests (Depends-on): Add progname.
56734         * tests/test-rbtree_oset.c: Include progname.h.
56735         (main): Call set_program_name.
56736
56737         * modules/rbtree-list-tests (Depends-on): Add progname.
56738         * tests/test-rbtree_list.c: Include progname.h.
56739         (main): Call set_program_name.
56740
56741         * modules/linked-list-tests (Depends-on): Add progname.
56742         * tests/test-linked_list.c: Include progname.h.
56743         (main): Call set_program_name.
56744
56745 2007-03-03  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56748         All uses of __restrict changed to _Restrict_.
56749         * lib/glob_.h (__restrict): Remove macro.
56750
56751 2007-03-02  Bruno Haible  <bruno@clisp.org>
56752
56753         * modules/gettext (configure.ac): Require gettext infrastructure
56754         from version 0.16.1.
56755
56756 2007-03-02  Bruno Haible  <bruno@clisp.org>
56757
56758         * modules/linkedhash-list-tests (Depends-on): Add progname.
56759         * tests/test-linkedhash_list.c: Include progname.h.
56760         (main): Call set_program_name.
56761
56762         * modules/carray-list-tests (Depends-on): Add progname.
56763         * tests/test-carray_list.c: Include progname.h.
56764         (main): Call set_program_name.
56765
56766         * modules/avltreehash-list-tests (Depends-on): Add progname.
56767         * tests/test-avltreehash_list.c: Include progname.h.
56768         (main): Call set_program_name.
56769
56770         * modules/avltree-oset-tests (Depends-on): Add progname.
56771         * tests/test-avltree_oset.c: Include progname.h.
56772         (main): Call set_program_name.
56773
56774         * modules/avltree-list-tests (Depends-on): Add progname.
56775         * tests/test-avltree_list.c: Include progname.h.
56776         (main): Call set_program_name.
56777
56778         * modules/array-oset-tests (Depends-on): Add progname.
56779         * tests/test-array_oset.c: Include progname.h.
56780         (main): Call set_program_name.
56781
56782         * modules/array-list-tests (Depends-on): Add progname.
56783         * tests/test-array_list.c: Include progname.h.
56784         (main): Call set_program_name.
56785
56786         * modules/argp-tests (Depends-on): Add progname.
56787         * tests/test-argp.c: Include argp.h first. Include progname.h.
56788         (main): Call set_program_name.
56789
56790 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56791
56792         * doc/gnulib-tool.texi (Initial import): Reword description of
56793         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56794         limited effect even if defined after the first system include.
56795
56796 2007-03-01  Bruno Haible  <bruno@clisp.org>
56797
56798         * build-aux/config.libpath: Update to libtool-1.5.22.
56799         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56800
56801 2007-03-01  Bruno Haible  <bruno@clisp.org>
56802
56803         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56804         foo_CFLAGS.
56805         Reported by Ralf Wildenhues.
56806
56807 2007-03-01  Bruno Haible  <bruno@clisp.org>
56808
56809         * build-aux/install-reloc: Remove object files left over by some
56810         compilers.
56811         Reported by Ralf Wildenhues.
56812
56813 2007-03-01  Bruno Haible  <bruno@clisp.org>
56814
56815         * build-aux/install-reloc: Break long lines.
56816
56817 2007-03-01  Bruno Haible  <bruno@clisp.org>
56818
56819         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56820         Reported by Ralf Wildenhues.
56821
56822 2007-03-01  Bruno Haible  <bruno@clisp.org>
56823
56824         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56825         include ordering constraints.
56826
56827 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56828
56829         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56831         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56832         as another example.
56833         * lib/time_.h: Fix misspelling.
56834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56835         Require gl_HEADER_TIME_H_DEFAULTS.
56836         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56837         * m4/time_r.m4 (gl_TIME_R): Likewise.
56838         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56839
56840 2007-03-01  Bruno Haible  <bruno@clisp.org>
56841
56842         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56843         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56844
56845 2007-03-01  Jim Meyering  <jim@meyering.net>
56846
56847         * modules/xreadlink (Maintainer): Add my name.
56848         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56849
56850 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56851             Bruno Haible  <bruno@clisp.org>
56852
56853         * build-aux/install-reloc: Compile also c-ctype.c.
56854         * build-aux/relocatable.sh.in: New file.
56855         * doc/relocatable.texi: New file.
56856         * doc/relocatable-maint.texi: New file.
56857         * doc/gnulib.texi: Include relocatable-maint.texi.
56858         * lib/progreloc.c: Include unistd.h unconditionally.
56859         * lib/relocwrapper.c: Include unistd.h unconditionally.
56860         Include c-ctype.h.
56861         (add_dotbin): Use c_tolower.
56862         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56863         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56864         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56865         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56866         to m4/relocatable-lib.m4.
56867         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56868         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56869         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56870         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56871         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56872         * modules/relocatable: New file.
56873         * modules/relocatable-lib: New file.
56874         * modules/relocatable-script: New file.
56875
56876 2007-02-28  Bruno Haible  <bruno@clisp.org>
56877
56878         Import --enable-relocatable infrastructure.
56879         * build-aux/config.libpath: New file, from GNU gettext.
56880         * build-aux/install-reloc: New file, from GNU gettext.
56881         * build-aux/reloc-ldflags: New file, from GNU gettext.
56882         * lib/relocatable.h: New file, from GNU gettext.
56883         * lib/relocatable.c: New file, from GNU gettext.
56884         * lib/relocwrapper.c: New file, from GNU gettext.
56885         * m4/relocatable.m4: New file, from GNU gettext.
56886
56887 2007-02-28  Bruno Haible  <bruno@clisp.org>
56888
56889         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56890
56891         * modules/xreadlink: New file, from GNU gettext with modifications.
56892         * lib/xreadlink.c: New file, from GNU gettext.
56893         * lib/xreadlink.h: Add comments.
56894         (xreadlink): New declaration.
56895
56896         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56897         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56898         lib/xreadlink-with-size.c.
56899         (configure.ac): Remove gl_XREADLINK invocation.
56900         (Makefile.am): Augment lib_SOURCES.
56901         * m4/xreadlink.m4: Remove file.
56902         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56903         (xreadlink_with_size): Renamed from xreadink.
56904         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56905         * modules/canonicalize (Depends-on): Replace xreadlink with
56906         xreadlink-with-size.
56907         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56908
56909 2007-02-25  Jim Meyering  <jim@meyering.net>
56910
56911         * build-aux/announce-gen: When complaining about excess arguments,
56912         list them.
56913
56914 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56915
56916         * README: Document signed integer overflow situation more
56917         accurately.
56918
56919 2007-02-25  Bruno Haible  <bruno@clisp.org>
56920
56921         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56922         'a' or 'A' conversion.
56923
56924 2007-02-25  Bruno Haible  <bruno@clisp.org>
56925
56926         * modules/filename: Renamed from modules/pathname.
56927         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56928         lib/concatpath.c with lib/concat-filename.c.
56929         (Makefile.am): Update.
56930         (Include): Replace pathname.h with filename.h.
56931         * lib/filename.h: Renamed from lib/pathname.h.
56932         (concatenated_filename): Renamed from concatenated_pathname.
56933         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56934         (concatenated_filename): Renamed from concatenated_pathname.
56935         * lib/findprog.c: Include filename.h instead of pathname.h.
56936         (find_in_path): Update.
56937         * lib/javacomp.c: Include filename.h instead of pathname.h.
56938         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56939         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56940         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56941         is_oldgcj_14_13_usable, is_javac_usable): Update.
56942         * lib/javaexec.c: Include filename.h instead of pathname.h.
56943         (execute_java_class): Update.
56944         * modules/findprog: Update.
56945         * modules/javacomp: Update.
56946         * modules/javaexec: Update.
56947         * MODULES.html.sh (File system functions): Add 'filename', remove
56948         'pathname'.
56949
56950 2007-02-25  Bruno Haible  <bruno@clisp.org>
56951
56952         * modules/printf-frexpl-tests: New file.
56953         * tests/test-printf-frexpl.c: New file.
56954
56955         * modules/printf-frexpl: New file.
56956         * lib/printf-frexpl.h: New file.
56957         * lib/printf-frexpl.c: New file.
56958         * m4/printf-frexpl.m4: New file.
56959
56960 2007-02-25  Bruno Haible  <bruno@clisp.org>
56961
56962         * modules/printf-frexp-tests: New file.
56963         * tests/test-printf-frexp.c: New file.
56964
56965         * modules/printf-frexp: New file.
56966         * lib/printf-frexp.h: New file.
56967         * lib/printf-frexp.c: New file.
56968         * m4/printf-frexp.m4: New file.
56969
56970 2007-02-25  Bruno Haible  <bruno@clisp.org>
56971
56972         Assume automake >= 1.10 for the tests.
56973         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56974         * modules/arctwo-tests: Likewise.
56975         * modules/argp-tests: Likewise.
56976         * modules/avltree-list-tests: Likewise.
56977         * modules/avltree-oset-tests: Likewise.
56978         * modules/avltreehash-list-tests: Likewise.
56979         * modules/carray-list-tests: Likewise.
56980         * modules/crc-tests: Likewise.
56981         * modules/des-tests: Likewise.
56982         * modules/gc-arcfour-tests: Likewise.
56983         * modules/gc-arctwo-tests: Likewise.
56984         * modules/gc-des-tests: Likewise.
56985         * modules/gc-hmac-md5-tests: Likewise.
56986         * modules/gc-hmac-sha1-tests: Likewise.
56987         * modules/gc-md2-tests: Likewise.
56988         * modules/gc-md4-tests: Likewise.
56989         * modules/gc-md5-tests: Likewise.
56990         * modules/gc-pbkdf2-sha1-tests: Likewise.
56991         * modules/gc-rijndael-tests: Likewise.
56992         * modules/gc-sha1-tests: Likewise.
56993         * modules/gc-tests: Likewise.
56994         * modules/getaddrinfo-tests: Likewise.
56995         * modules/hmac-md5-tests: Likewise.
56996         * modules/hmac-sha1-tests: Likewise.
56997         * modules/linked-list-tests: Likewise.
56998         * modules/linkedhash-list-tests: Likewise.
56999         * modules/lock-tests: Likewise.
57000         * modules/md2-tests: Likewise.
57001         * modules/md4-tests: Likewise.
57002         * modules/md5-tests: Likewise.
57003         * modules/rbtree-list-tests: Likewise.
57004         * modules/rbtree-oset-tests: Likewise.
57005         * modules/rbtreehash-list-tests: Likewise.
57006         * modules/read-file-tests: Likewise.
57007         * modules/rijndael-tests: Likewise.
57008         * modules/stdint-tests: Likewise.
57009         * modules/tls-tests: Likewise.
57010
57011 2007-02-24  Bruno Haible  <bruno@clisp.org>
57012
57013         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57014         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57015         function; instead check whether isnan with a double argument links.
57016         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57017         function; instead check whether isnan with a 'long double' argument
57018         links.
57019         Reported by Eric Blake <ebb9@byu.net>.
57020
57021 2007-02-24  Bruno Haible  <bruno@clisp.org>
57022
57023         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57024         defined.
57025         * lib/isnanl.c: Remove all code. Just include isnan.c.
57026         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57027
57028 2007-02-25  Jim Meyering  <jim@meyering.net>
57029
57030         Avoid conflicting types for 'unsetenv' on FreeBSD.
57031         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57032         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57033         in stdlib.h.
57034
57035 2007-02-24  Bruno Haible  <bruno@clisp.org>
57036
57037         * modules/isnanl-nolibm-tests: New file.
57038         * tests/test-isnanl.c: New file.
57039
57040         * modules/isnanl-nolibm: New file.
57041         * lib/isnanl.h: New file.
57042         * lib/isnanl.c: New file.
57043         * m4/isnanl.m4: New file.
57044
57045 2007-02-24  Bruno Haible  <bruno@clisp.org>
57046
57047         * modules/isnan-nolibm-tests: New file.
57048         * tests/test-isnan.c: New file.
57049
57050         * modules/isnan-nolibm: New file.
57051         * lib/isnan.h: New file.
57052         * lib/isnan.c: New file.
57053         * m4/isnan.m4: New file.
57054
57055 2007-02-24  Bruno Haible  <bruno@clisp.org>
57056
57057         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57058         assume that an exponent fits in 20 bits.
57059
57060 2007-02-24  Jim Meyering  <jim@meyering.net>
57061
57062         * m4/regex.m4: Update the description of the configure-time option,
57063         --without-included-regex, to state accurately what the defaults are,
57064         and perhaps to give people an idea why using this option is risky.
57065
57066 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57069         loops on small arguments.  This attempts to avoid the problem
57070         Bruno Haible reported for AIX 4.3.2 in
57071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57072
57073 2007-02-23  Bruno Haible  <bruno@clisp.org>
57074
57075         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57076         Needed for help2man.
57077
57078 2007-02-23  Karl Berry  <karl@gnu.org>
57079
57080         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57081         exists, foo.h should be cvs-ignored, not committed.
57082
57083 2007-02-23  Eric Blake  <ebb9@byu.net>
57084
57085         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57086         * lib/stat-time.h (includes): Likewise.
57087         * lib/utimecmp.c (includes): Likewise.
57088         * lib/utimens.h (includes): Likewise.
57089         * lib/getdate.y (includes): Also include "timespec.h" for use
57090         internal to the module.
57091         * modules/utimens (Depends-on): Revert yesterday's patch.
57092         * modules/nanosleep (Depends-on): Add missing dependency.
57093
57094 2007-02-22  Bruno Haible  <bruno@clisp.org>
57095
57096         * lib/glob.c: Don't include getlogin_r.h.
57097
57098 2007-02-22  Jim Meyering  <jim@meyering.net>
57099
57100         * modules/utimens (Depends-on): Add timespec, required for
57101         utimens.h's inclusion of timespec.h.
57102
57103 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57104
57105         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57106         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57107         Schwab in
57108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57109         I'll try to think of a better way to fix the Solaris problem.
57110
57111         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57112         like glibc; on Solaris 10, it fails with errno == EINVAL.
57113         POSIX says the behavior is unspecified if the first argument is NULL,
57114         so play it safe and never pass NULL to the system getcwd.
57115
57116 2007-02-21  Jim Meyering  <jim@meyering.net>
57117
57118         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57119         of gettimeofday.  It would conflict with the one now always
57120         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57121         an IRIX 6.5 build failure.
57122
57123 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         Minor fixups to port to Solaris 10 with Sun C 5.8.
57126         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57127         * modules/getcwd (Depends-on): Add dirfd.
57128         * lib/putenv.c (putenv): #undef it.
57129         (rpl_putenv): New decl.
57130         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57131
57132 2007-02-20  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/stdio-tests: New file.
57135         * tests/test-stdio.c: New file.
57136
57137         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57138         (Depends-on): Add stdio.
57139         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57140         (Include): Use <stdio.h> instead of vsnprintf.h.
57141         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57142         HAVE_DECL_VSNPRINTF.
57143         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57144
57145         * modules/snprintf (Files): Remove lib/snprintf.h.
57146         (Depends-on): Add stdio.
57147         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57148         (Include): Use <stdio.h> instead of snprintf.h.
57149         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57150         HAVE_DECL_SNPRINTF.
57151         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57152         * lib/getaddrinfo.c: Likewise.
57153
57154         * modules/stdio: New file.
57155         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57156         * lib/snprintf.h: Remove file.
57157         * lib/vsnprintf.h: Remove file.
57158         * lib/.cppi-disable: Remove snprintf.h.
57159         * m4/stdio_h.m4: New file.
57160         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57161
57162 2007-02-20  Jim Meyering  <jim@meyering.net>
57163
57164         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57165         used by e.g., mingw.  From Bruno Haible.
57166
57167 2007-02-19  Bruno Haible  <bruno@clisp.org>
57168
57169         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57170         warnings.
57171         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57172
57173 2007-02-19  Bruno Haible  <bruno@clisp.org>
57174
57175         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57176         from mingw users.
57177
57178 2007-02-19  Bruno Haible  <bruno@clisp.org>
57179
57180         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57181         warnings.
57182         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57183
57184 2007-02-19  Jim Meyering  <jim@meyering.net>
57185
57186         Don't use FD after a successful "fdopendir (fd)".
57187         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57188         Reset it by calling dirfd on the just-obtained DIR*.
57189
57190         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57191         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57192
57193 2007-02-18  Bruno Haible  <bruno@clisp.org>
57194
57195         * lib/readlink.c: Include <unistd.h>.
57196         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57197         HAVE_READLINK.
57198         * modules/readlink (Depends-on): Add unistd.
57199         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57200         (Include): Add <unistd.h>.
57201
57202         * lib/getlogin_r.h: Remove file.
57203         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57204         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57205         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57206         HAVE_DECL_GETLOGIN_R.
57207         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57208         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57209         (Include): Use <unistd.h> instead of getlogin_r.h.
57210
57211         * lib/getcwd.h: Remove file.
57212         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57213         * lib/xgetcwd.c: Likewise.
57214         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57215         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57216         * modules/getcwd (Files): Remove lib/getcwd.h.
57217         (Depends-on): Add unistd.
57218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57219         (Include): Use <unistd.h> instad of getcwd.h.
57220
57221         * lib/ftruncate.c: Include <unistd.h> first.
57222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57223         Set HAVE_FTRUNCATE.
57224         * modules/ftruncate (Depends-on): Add unistd.
57225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57226
57227         * lib/fchdir.c: Include <unistd.h> first.
57228         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57230         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57231         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57232         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57233
57234         * lib/dup2.c: Include <unistd.h> first.
57235         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57236         HAVE_DUP2.
57237         * modules/dup2 (Depends-on): Add unistd.
57238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57239
57240         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57241         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57242         REPLACE_CHOWN. Don't define chown as a macro here.
57243         * modules/chown (Depends-on): Add unistd.
57244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57245
57246         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57247         Add definition for GL_LINK_WARNING.
57248         (chown, dup2): New declarations.
57249         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57250         link warning.
57251         (ftruncate): New declaration.
57252         (getcwd): New declaration, taken from old getcwd.h.
57253         (getlogin_r): New declaration, taken from old getlogin_r.h.
57254         (readlink): New declaration.
57255         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57256         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57257         (gl_PREREQ_UNISTD): Remove macro.
57258         (gl_UNISTD_MODULE_INDICATOR): New macro.
57259         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57260         many new variables. Don't set UNISTD_H.
57261         * modules/unistd (Description): Change.
57262         (Depends-on): Add link-warning.
57263         (configure.ac): Update.
57264         (Makefile.am): Create unistd.h always. Substitute many new variables
57265         into it.
57266
57267 2007-02-18  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57270         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57271         HAVE_GETSUBOPT.
57272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57273         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57274         * lib/getsubopt.h: Remove file.
57275         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57276         (Depends-on): Add stdlib.
57277         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57278         (Includes): Use <stdlib.h> instead of getsubopt.h.
57279         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57280         Set HAVE_GETSUBOPT.
57281         * lib/getsubopt.c: Don't include getsubopt.h.
57282
57283 2007-02-18  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/fchdir (Depends-on): Add dup2.
57286
57287 2007-02-18  Bruno Haible  <bruno@clisp.org>
57288
57289         * lib/stdlib_.h: Handle glibc's special invocation convention
57290         specially.
57291
57292 2007-02-18  Bruno Haible  <bruno@clisp.org>
57293
57294         * modules/stdlib-tests: New file.
57295         * tests/test-stdlib.c: New file.
57296
57297         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57298         (Depends-on): Add stdlib.
57299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57300         (Includes): Use <stdlib.h> instead of mkstemp.h.
57301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57302         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57303         * lib/mkstemp.c: Don't include mkstemp.h.
57304         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57305         * lib/stdlib--.h: Don't include mkstemp.h.
57306
57307         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57308         (Depends-on): Add stdlib.
57309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57310         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57311         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57312         HAVE_MKDTEMP.
57313         * lib/mkdtemp.c: Don't include mkdtemp.h.
57314         * lib/clean-temp.c: Don't include mkdtemp.h.
57315
57316         * modules/exit (Files): Remove lib/exit.h.
57317         (Depends-on): Add stdlib.
57318         (Makefile.am): Remove lib_SOURCES.
57319         (Include): Use <stdlib.h> instead of exit.h.
57320         * lib/argmatch.c: Don't include exit.h.
57321         * lib/execute.c: Likewise.
57322         * lib/pagealign_alloc.c: Likewise.
57323         * lib/pipe.c: Likewise.
57324         * lib/wait-process.c: Likewise.
57325         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57326         * lib/exitfail.c: Likewise.
57327         * lib/savewd.c: Likewise.
57328         * lib/xsetenv.c: Likewise.
57329
57330         * modules/stdlib: New file.
57331         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57332         and extra comments about mkstemp().
57333         * lib/exit.h: Remove file.
57334         * lib/mkdtemp.h: Remove file.
57335         * lib/mkstemp.h: Remove file.
57336         * m4/stdlib_h.m4: New file.
57337         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57338
57339 2007-02-18  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/math-tests: New file.
57342         * tests/test-math.c: New file.
57343
57344         * modules/math: New file.
57345         * modules/mathl (Files): Remove lib/mathl.h.
57346         (Depends-on): Add math.
57347         (Makefile.am): Don't mention mathl.h.
57348         (Include): Use <math.h> instead of mathl.h.
57349         * lib/math_.h: New file.
57350         * lib/mathl.h: Remove file.
57351         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57352         mathl.h.
57353         * lib/asinl.c: Likewise.
57354         * lib/atanl.c: Likewise.
57355         * lib/ceill.c: Likewise.
57356         * lib/cosl.c: Likewise.
57357         * lib/expl.c: Likewise.
57358         * lib/floorl.c: Likewise.
57359         * lib/frexpl.c: Likewise.
57360         * lib/ldexpl.c: Likewise.
57361         * lib/logl.c: Likewise.
57362         * lib/sincosl.c: Likewise.
57363         * lib/sinl.c: Likewise.
57364         * lib/sqrtl.c: Likewise.
57365         * lib/tanl.c: Likewise.
57366         * lib/trigl.c: Likewise.
57367         * m4/math_h.m4: New file.
57368         * MODULES.html.sh (Mathematics): Add math.
57369
57370 2007-02-17  Bruno Haible  <bruno@clisp.org>
57371
57372         * modules/wctype-tests: New file.
57373         * tests/test-wctype.c: New file.
57374
57375         * modules/wchar-tests: New file.
57376         * tests/test-wchar.c: New file.
57377
57378         * modules/unistd-tests: New file.
57379         * tests/test-unistd.c: New file.
57380
57381         * modules/time-tests: New file.
57382         * tests/test-time.c: New file.
57383
57384         * modules/sysexits-tests: New file.
57385         * tests/test-sysexits.c: New file.
57386
57387         * modules/sys_time-tests: New file.
57388         * tests/test-sys_time.c: New file.
57389
57390         * modules/sys_stat-tests: New file.
57391         * tests/test-sys_stat.c: New file.
57392
57393         * modules/sys_socket-tests: New file.
57394         * tests/test-sys_socket.c: New file.
57395
57396         * modules/sys_select-tests: New file.
57397         * tests/test-sys_select.c: New file.
57398
57399         * modules/string-tests: New file.
57400         * tests/test-string.c: New file.
57401
57402         * modules/stdbool-tests: New file.
57403         * tests/test-stdbool.c: New file.
57404
57405         * modules/netinet_in-tests: New file.
57406         * tests/test-netinet_in.c: New file.
57407
57408         * modules/inttypes-tests: New file.
57409         * tests/test-inttypes.c: New file.
57410
57411         * modules/fcntl-tests: New file.
57412         * tests/test-fcntl.c: New file.
57413
57414         * modules/byteswap-tests: New file.
57415         * tests/test-byteswap.c: New file.
57416
57417         * modules/arpa_inet-tests: New file.
57418         * tests/test-arpa_inet.c: New file.
57419
57420 2007-02-17  Bruno Haible  <bruno@clisp.org>
57421
57422         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57423         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57424         if the corresponding module is not enabled. Emit link warnings if
57425         the function is used nevertheless.
57426         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57427         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57428         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57429         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57430         * modules/inttypes (Depends-on): Add link-warning.
57431         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57432         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57433         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57434         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57435         * modules/imaxdiv (configure.ac): Likewise.
57436         * modules/strtoimax (configure.ac): Likewise.
57437         * modules/strtoumax (configure.ac): Likewise.
57438
57439 2007-02-17  Bruno Haible  <bruno@clisp.org>
57440
57441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57442         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57443         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57444         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57445
57446 2007-02-17  Bruno Haible  <bruno@clisp.org>
57447
57448         * modules/link-warning: New file.
57449         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57450         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57451         * modules/string (Depends-on): Add link-warning.
57452         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57453         string.h.
57454         * MODULES.html.sh (Support for building libraries and executables): Add
57455         link-warning.
57456
57457 2007-02-17  Bruno Haible  <bruno@clisp.org>
57458
57459         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57460         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57461         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57462         long lines.
57463
57464 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57465             Bruno Haible  <bruno@clisp.org>
57466
57467         * modules/tmpfile: New file.
57468         * lib/tmpfile.c: New file.
57469         * m4/tmpfile.m4: New file.
57470         * MODULES.html.sh (func_all_modules): New section "Input/output".
57471
57472 2007-02-15  Bruno Haible  <bruno@clisp.org>
57473
57474         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57475         (supports_delete_on_close): New function.
57476         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57477
57478 2007-02-14  Bruno Haible  <bruno@clisp.org>
57479
57480         * modules/mbspcasecmp-tests: New file.
57481         * tests/test-mbspcasecmp.sh: New file.
57482         * tests/test-mbspcasecmp.c: New file.
57483
57484         New module mbspcasecmp.
57485         * modules/mbspcasecmp: New file.
57486         * lib/mbspcasecmp.c: New file.
57487         * lib/string_.h (strncasecmp): Change warning message.
57488         (mbspcasecmp): New declaration.
57489         * m4/mbspcasecmp.m4: New file.
57490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57491         GNULIB_MBSPCASECMP.
57492         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57493         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57494
57495 2007-02-14  Bruno Haible  <bruno@clisp.org>
57496
57497         * modules/mbsncasecmp-tests: New file.
57498         * tests/test-mbsncasecmp.sh: New file.
57499         * tests/test-mbsncasecmp.c: New file.
57500
57501         New module mbsncasecmp.
57502         * modules/mbsncasecmp: New file.
57503         * lib/mbsncasecmp.c: New file.
57504         * lib/string_.h (mbsncasecmp): New declaration.
57505         * m4/mbsncasecmp.m4: New file.
57506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57507         GNULIB_MBSNCASECMP.
57508         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57509         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57510
57511 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57512
57513         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57514         Verify that it doesn't overlap with our flags.
57515         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57516         do not have the desired effect in multibyte locales; instead, use
57517         mbscasecmp.
57518         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57519         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57520         we don't require GNU fnmatch ourselves (if our users require it, they
57521         should do so explicitly).
57522
57523         Fix regex code so it doesn't rely on strcasecmp.
57524         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57525         Otherwise, include gnulib's langinfo.h.
57526         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57527         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57528         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57529         * modules/regex (FILES): Remove m4/codeset.m4.
57530         (Depends-on): Add localcharset.  Remove strcase.
57531
57532 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57533
57534         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57535         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57536
57537 2007-02-13  Bruno Haible  <bruno@clisp.org>
57538
57539         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57541
57542 2007-02-12  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57545         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57546         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57547         time warning rather than a link error.
57548
57549 2007-02-12  Bruno Haible  <bruno@clisp.org>
57550
57551         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57552         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57554
57555 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57556
57557         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57558         args, not 2.
57559
57560 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         New module 'time', so that apps can include <time.h> as per
57563         POSIX and GNU instead of separate include files like time_r.h
57564         and timegm.h.  This implementation tries out a simpler approach
57565         for replacing decls in standard include files (as compared to
57566         the string module), somewhat as an experiment.
57567
57568         * config/srclist.txt: Comment out mktime.c for now.
57569         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57570         since it doesn't apply any more.  Use generic wording instead.
57571         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57572         'time'.
57573         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57574         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57575         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57576         Don't include <sys/types.h>; no longer needed since we assume C89.
57577         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57578         * lib/strftime.c: Likewise.
57579         * lib/time_r.c: Likewise.
57580         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57581         * lib/nanosleep.c: Include <time.h> first, to check interface.
57582         * lib/strptime.c: Likewise.
57583         * lib/time_r.c: Likewise.
57584         * lib/timegm.c: Likewise.
57585         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57586         needed.
57587         * lib/timegm.c: Don't include timegm.h; no longer needed.
57588         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57589         time.h now handles any problems in that area.
57590         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57591         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57592         that time.h defines struct timespec.
57593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57594         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57595         handles that.
57596         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57597         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57598         needed.  Set REPLACE_LOCALTIME.
57599         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57600         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57601         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57602         nanosleep; time_h.m4 now does that.  Don't require
57603         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57604         module handles this now.
57605         * modules/getdate (Depends-on): Remove timespec.  Add time.
57606         * modules/nanosleep (Depends-on): Likewise.
57607         * modules/stat-time (Depends-on): Likewise.
57608         * modules/nanosleep (Include): Include time.h, not timespec.h.
57609         * modules/strptime (Files): Remove lib/strptime.h.
57610         (Depends-on): Add extensions, time.
57611         (Include): Include time.h, not strptime.h.
57612         * modules/time_r (Files): Remove lib/time_r.h.
57613         (Depends-on): Add time.
57614         (Include): Include time.h, not time_r.h.
57615         * modules/timegm: Likewise.
57616         * modules/timespec (Description): Now does timespec-related decls
57617         of our own, instead of struct timespec itself.
57618         (Depends-on): Add time; remove extensions.
57619         (Maintainer): Add self.
57620         * modules/utimecmp (Depends-on): Add time; remove timespec.
57621         * modules/utimens (Depends-on): Likewise.
57622         * modules/xnanosleep (Depends-on): Likewise.
57623
57624 2007-02-11  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/c-strstr.c: Include allocsa.h.
57627         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57628         * lib/c-strcasestr.c: Include allocsa.h.
57629         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57630         * lib/strcasestr.c: Include allocsa.h.
57631         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57632         * lib/mbsstr.c: Include allocsa.h.
57633         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57634         allocsa/freesa instead of malloc/free.
57635         * lib/mbscasestr.c: Include allocsa.h.
57636         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57637         allocsa/freesa instead of malloc/free.
57638         * modules/c-strstr (Depends-on): Add allocsa.
57639         * modules/c-strcasestr (Depends-on): Likewise.
57640         * modules/strcasestr (Depends-on): Likewise.
57641         * modules/mbsstr (Depends-on): Likewise.
57642         * modules/mbscasestr (Depends-on): Likewise.
57643
57644 2007-02-11  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57647
57648         * modules/mbsspn-tests: New file.
57649         * tests/test-mbsspn.sh: New file.
57650         * tests/test-mbsspn.c: New file.
57651
57652 2007-02-11  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57655
57656         * modules/mbspbrk-tests: New file.
57657         * tests/test-mbspbrk.sh: New file.
57658         * tests/test-mbspbrk.c: New file.
57659
57660 2007-02-11  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57663         unneeded cast.
57664
57665         * modules/mbscspn-tests: New file.
57666         * tests/test-mbscspn.sh: New file.
57667         * tests/test-mbscspn.c: New file.
57668
57669 2007-02-11  Bruno Haible  <bruno@clisp.org>
57670
57671         * modules/mbscasecmp-tests: New file.
57672         * tests/test-mbscasecmp.sh: New file.
57673         * tests/test-mbscasecmp.c: New file.
57674
57675 2007-02-11  Bruno Haible  <bruno@clisp.org>
57676
57677         Ensure O(n) worst-case complexity of mbscasestr.
57678         * lib/mbscasestr.c: Include stdbool.h.
57679         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57680         functions.
57681         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57682         the bookkeeping indicates that it's worth it.
57683         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57684
57685         * modules/mbscasestr-tests: New file.
57686         * tests/test-mbscasestr1.c: New file.
57687         * tests/test-mbscasestr2.sh: New file.
57688         * tests/test-mbscasestr2.c: New file.
57689         * tests/test-mbscasestr3.sh: New file.
57690         * tests/test-mbscasestr3.c: New file.
57691         * tests/test-mbscasestr4.sh: New file.
57692         * tests/test-mbscasestr4.c: New file.
57693         * m4/locale-tr.m4: New file.
57694
57695 2007-02-11  Bruno Haible  <bruno@clisp.org>
57696
57697         Ensure O(n) worst-case complexity of mbsstr.
57698         * lib/mbsstr.c: Include stdbool.h.
57699         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57700         functions.
57701         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57702         bookkeeping indicates that it's worth it.
57703         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57704
57705         * modules/mbsstr-tests: New file.
57706         * tests/test-mbsstr1.c: New file.
57707         * tests/test-mbsstr2.sh: New file.
57708         * tests/test-mbsstr2.c: New file.
57709         * tests/test-mbsstr3.sh: New file.
57710         * tests/test-mbsstr3.c: New file.
57711         * m4/locale-fr.m4: New file.
57712
57713 2007-02-11  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/mbsrchr.c (mbsrchr): Fix bug.
57716
57717         * modules/mbsrchr-tests: New file.
57718         * tests/test-mbsrchr.sh: New file.
57719         * tests/test-mbsrchr.c: New file.
57720
57721 2007-02-11  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/mbschr.c (mbschr): Fix bug.
57724
57725         * modules/mbschr-tests: New file.
57726         * tests/test-mbschr.sh: New file.
57727         * tests/test-mbschr.c: New file.
57728         * m4/locale-zh.m4: New file.
57729
57730 2007-02-11  Bruno Haible  <bruno@clisp.org>
57731
57732         Support for copying multibyte string iterators.
57733         * lib/mbiter.h: Include <string.h>.
57734         (mbiter_multi_copy): New function.
57735         (mbi_copy): New macro.
57736         * lib/mbuiter.h: Include <string.h>.
57737         (mbuiter_multi_copy): New function.
57738         (mbui_copy): New macro.
57739
57740 2007-02-11  Bruno Haible  <bruno@clisp.org>
57741
57742         New module mbslen.
57743         * modules/mbslen: New file.
57744         * lib/mbslen.c: New file.
57745         * lib/string_.h (mbslen): New declaration.
57746         * m4/mbslen.m4: New file.
57747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57748         GNULIB_MBSLEN.
57749         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57750         * MODULES.html.sh (Internationalization functions): Add mbslen.
57751
57752 2007-02-11  Bruno Haible  <bruno@clisp.org>
57753
57754         Ensure O(n) worst-case complexity of strcasestr substitute.
57755         * lib/strcasestr.c: Include stdbool.h.
57756         (knuth_morris_pratt): New function.
57757         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57758         bookkeeping indicates that it's worth it.
57759         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57760
57761         * modules/strcasestr-tests: New file.
57762         * tests/test-strcasestr.c: New file.
57763
57764 2007-02-11  Bruno Haible  <bruno@clisp.org>
57765
57766         Ensure O(n) worst-case complexity of c_strcasestr.
57767         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57768         (knuth_morris_pratt): New function.
57769         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57770         the bookkeeping indicates that it's worth it.
57771         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57772
57773         * modules/c-strcasestr-tests: New file.
57774         * tests/test-c-strcasestr.c: New file.
57775
57776 2007-02-11  Bruno Haible  <bruno@clisp.org>
57777
57778         Ensure O(n) worst-case complexity of c_strstr.
57779         * lib/c-strstr.c: Include stdbool.h, string.h.
57780         (knuth_morris_pratt): New function.
57781         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57782         bookkeeping indicates that it's worth it.
57783         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57784
57785         * lib/c-strstr.c: Complete rewrite for maintainability.
57786
57787         * modules/c-strstr-tests: New file.
57788         * tests/test-c-strstr.c: New file.
57789
57790 2007-02-11  Bruno Haible  <bruno@clisp.org>
57791
57792         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57793         5.2.1 and earlier, whereby \055 was treated just like the range
57794         delimiter '-'.
57795         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57796
57797 2007-02-08  Bruno Haible  <bruno@clisp.org>
57798
57799         * modules/regex (Depends-on): Add stdbool.
57800         Reported by Dalibor Topic <robilad@kaffe.org>.
57801
57802 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57803
57804         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57805         Prefer returning from main to exiting from it.
57806         Remove unnecessary parens after sizeof.
57807
57808 2007-02-05  Bruno Haible  <bruno@clisp.org>
57809
57810         New module mbssep.
57811         * modules/mbssep: New file.
57812         * lib/mbssep.c: New file.
57813         * lib/string_.h (strsep): Add a conditional link warning.
57814         (mbssep): New declaration.
57815         * m4/mbssep.m4: New file.
57816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57817         GNULIB_MBSSEP.
57818         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57819         * MODULES.html.sh (Internationalization functions): Add mbssep.
57820
57821 2007-02-05  Bruno Haible  <bruno@clisp.org>
57822
57823         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57824         Optimize search in case of 1 delimiter.
57825
57826 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57827
57828         * lib/acl.h: Include sys/types.h before sys/acl.h.
57829
57830 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57831
57832         Merge upstream fix for glibc bugzilla #3957:
57833
57834         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57835
57836         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57837         bit for RE_HAT_LISTS_NOT_NEWLINE.
57838         (build_charclass_op): Remove bogus comment.
57839
57840 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57841
57842         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57843
57844 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57845
57846         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57847         * lib/memmem.c [!defined _LIBC]: Include config.h.
57848
57849 2007-02-04  Bruno Haible  <bruno@clisp.org>
57850
57851         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57852         warning message.
57853
57854 2007-02-04  Bruno Haible  <bruno@clisp.org>
57855
57856         New module mbstok_r.
57857         * modules/mbstok_r: New file.
57858         * lib/mbstok_r.c: New file.
57859         * lib/string_.h (strtok_r): Change argument names to match the
57860         comments. Add a conditional link warning.
57861         (mbstok_r): New declaration.
57862         * m4/mbstok_r.m4: New file.
57863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57864         GNULIB_MBSTOK_R.
57865         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57866         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57867
57868 2007-02-04  Bruno Haible  <bruno@clisp.org>
57869
57870         New module mbsspn.
57871         * modules/mbsspn: New file.
57872         * lib/mbsspn.c: New file.
57873         * lib/string_.h (strspn): Add a conditional link warning.
57874         (mbsspn): New declaration.
57875         * m4/mbsspn.m4: New file.
57876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57877         GNULIB_MBSSPN.
57878         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57879         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57880
57881 2007-02-04  Bruno Haible  <bruno@clisp.org>
57882
57883         New module mbspbrk.
57884         * modules/mbspbrk: New file.
57885         * lib/mbspbrk.c: New file.
57886         * lib/string_.h (strpbrk): Add a conditional link warning.
57887         (mbspbrk): New declaration.
57888         * m4/mbspbrk.m4: New file.
57889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57890         GNULIB_MBSPBRK.
57891         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57892         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57893
57894 2007-02-04  Bruno Haible  <bruno@clisp.org>
57895
57896         New module mbscspn.
57897         * modules/mbscspn: New file.
57898         * lib/mbscspn.c: New file.
57899         * lib/string_.h (strcspn): Add a conditional link warning.
57900         (mbscspn): New declaration.
57901         * m4/mbscspn.m4: New file.
57902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57903         GNULIB_MBSCSPN.
57904         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57905         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57906
57907 2007-02-04  Bruno Haible  <bruno@clisp.org>
57908
57909         New module mbscasestr, reduced goal of strcasestr.
57910         * modules/mbscasestr: New file.
57911         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57912         (mbscasestr): Renamed from strcasestr.
57913         * lib/strcasestr.c: Don't include mbuiter.h.
57914         (strcasestr): Remove support for multibyte locales.
57915         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57916         Change the conditional link warning.
57917         (mbscasestr): New declaration.
57918         * m4/mbscasestr.m4: New file.
57919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57920         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57921         REPLACE_STRCASESTR.
57922         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57924         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57925         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57926         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57927         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57928         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57929         (Depends-on): Remove mbuiter.
57930         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57931
57932 2007-02-04  Bruno Haible  <bruno@clisp.org>
57933
57934         Simplify handling of strncasecmp.
57935         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57936         the conditional link warning.
57937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57938         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57939         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57940         * modules/strcase (configure.ac): Don't invoke
57941         gl_STRING_MODULE_INDICATOR.
57942         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57943
57944 2007-02-04  Bruno Haible  <bruno@clisp.org>
57945
57946         New module mbscasecmp, reduced goal of strcasecmp.
57947         * modules/mbscasecmp: New file.
57948         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57949         (mbscasecmp): Renamed from strcasecmp.
57950         * lib/strcasecmp.c: Don't include mbuiter.h.
57951         (strcasecmp): Remove support for multibyte locales.
57952         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57953         Change the conditional link warning.
57954         (mbscasecmp): New declaration.
57955         * m4/mbscasecmp.m4: New file.
57956         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57957         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57958         REPLACE_STRCASECMP.
57959         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57961         GNULIB_MBSCASECMP.
57962         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57963         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57964         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57965         (Depends-on): Remove mbuiter.
57966         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57967
57968 2007-02-04  Bruno Haible  <bruno@clisp.org>
57969
57970         New module mbsstr. Remove module strstr.
57971         * modules/mbsstr: New file.
57972         * modules/strstr: Remove file.
57973         * lib/mbsstr.c: Renamed from lib/strstr.c.
57974         (mbsstr): Renamed from strstr.
57975         * lib/string_.h (strstr): Remove declaration. Change the conditional
57976         link warning.
57977         (mbsstr): New declaration.
57978         * m4/mbsstr.m4: New file.
57979         * m4/strstr.m4: Remove file.
57980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57981         REPLACE_STRSTR.
57982         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57983         Don't initialize GNULIB_STRSTR.
57984         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57985         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57986         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57987         (Support for systems lacking ANSI C 89): Remove strstr.
57988
57989 2007-02-04  Bruno Haible  <bruno@clisp.org>
57990
57991         New module mbsrchr.
57992         * modules/mbsrchr: New file.
57993         * lib/mbsrchr.c: New file.
57994         * lib/string_.h (strrchr): Add a conditional link warning.
57995         (mbsrchr): New declaration.
57996         * m4/mbsrchr.m4: New file.
57997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57998         GNULIB_MBSRCHR.
57999         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58000         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58001
58002 2007-02-04  Bruno Haible  <bruno@clisp.org>
58003
58004         New module mbschr.
58005         * modules/mbschr: New file.
58006         * lib/mbschr.c: New file.
58007         * lib/string_.h (strchr): Add a conditional link warning.
58008         (mbschr): New declaration.
58009         * m4/mbschr.m4: New file.
58010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58011         GNULIB_MBSCHR.
58012         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58013         * MODULES.html.sh (Internationalization functions): Add mbschr.
58014
58015 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58018
58019         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58020
58021 2007-02-04  Bruno Haible  <bruno@clisp.org>
58022
58023         New module description section 'configure.ac-early'.
58024         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58025         (func_get_autoconf_early_snippet): New function.
58026         (func_import, func_create_testdir): Use it. Remove special cases for
58027         modules 'extensions' and 'lock'.
58028         * modules/extensions (configure.ac-early): Require
58029         gl_USE_SYSTEM_EXTENSIONS.
58030         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58031
58032 2007-02-04  Bruno Haible  <bruno@clisp.org>
58033
58034         Make use of gcj-4.3's -fsource and -ftarget option.
58035         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58036         and if so try the options -fsource and -ftarget.
58037         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58038         source_version, ftarget_option, target_version arguments.
58039         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58040         (is_envjavac_oldgcj_14_14_usable): Renamed from
58041         is_envjavac_gcj_14_14_usable.
58042         (is_envjavac_oldgcj_14_13_usable): Renamed from
58043         is_envjavac_gcj_14_13_usable.
58044         (is_gcj_present): Update.
58045         (is_gcj_43, is_gcj43_usable): New functions.
58046         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58047         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58048         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58049         try the options -fsource and -ftarget.
58050
58051 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58052
58053         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58054         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58055         larger value.
58056
58057 2007-02-03  Jim Meyering  <jim@meyering.net>
58058
58059         Give tools a better chance to allocate space for very large buffers.
58060         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58061
58062         Make pwd and readlink work also when run with an unreadable parent dir
58063         on systems with openat support.
58064         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58065         provided getcwd function, even when we have openat support.
58066         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58067
58068 2007-02-02  Bruno Haible  <bruno@clisp.org>
58069
58070         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58071         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58072         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58073         portability problems if one of these functions is only used on specific
58074         platforms.
58075         Reported by Paul Eggert.
58076
58077 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58080         is causing more trouble than it's curing.
58081         * lib/regex_internal.h (__mempcpy): Remove.
58082         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58083         (and make the code a tad smaller to boot).
58084         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58085
58086 2007-02-02  Jim Meyering  <jim@meyering.net>
58087
58088         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58089         section, not in the Makefile.am: one.
58090
58091 2007-02-02  Eric Blake  <ebb9@byu.net>
58092
58093         * lib/strchrnul.c: Always include config.h first.
58094
58095         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58096         gnulib strstr is not necessary here.
58097
58098 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58099
58100         * m4/socklen.m4: Fix typo.
58101
58102 2007-02-02  Eric Blake  <ebb9@byu.net>
58103
58104         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58105         * modules/netinet_in (Makefile.am): Likewise.
58106
58107 2007-02-01  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/string_.h (GL_LINK_WARNING): New macro.
58110         (strcasecmp, strstr, strcasestr): If provided by the system,
58111         conditionally define as a macro that leads to a warning instead of to
58112         an error.
58113         (strncasecmp): Conditionally define as a macro that leads to a warning.
58114
58115 2007-02-01  Karl Berry  <karl@gnu.org>
58116
58117         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58118
58119 2007-02-01  Bruno Haible  <bruno@clisp.org>
58120
58121         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58122         renamings.
58123
58124 2007-02-01  Eric Blake  <ebb9@byu.net>
58125
58126         * modules/regex (Depends-on): Revert dependence on mempcpy.
58127         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58128         module's definition of mempcpy.
58129         Reported by Paul Eggert.
58130
58131 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58132
58133         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58134         the symbol XYZ before redefining it.  This fixes a problem with
58135         programs that don't use XYZ, when compiled on systems that define
58136         XYZ to something else.
58137
58138 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58141         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58142         writeable to group or other and (2) is intended to have a special
58143         mode bit that is set or cleared.  In such a case, the directory
58144         should be neither group- nor other-writeable until the special
58145         mode bits are right.
58146
58147 2007-01-31  Eric Blake  <ebb9@byu.net>
58148
58149         * modules/mountlist (Depends-on): Add strstr.
58150
58151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58152         bug.
58153         * modules/string (Makefile.am): Remove redundant replacement.
58154         * modules/regex (Depends-on): Add mempcpy.
58155
58156 2007-01-31  Bruno Haible  <bruno@clisp.org>
58157
58158         New module description field 'Link'.
58159         * gnulib-tool (func_usage): Document --extract-link-directive.
58160         (sed_extract_prog): Recognize 'Link' directive.
58161         (func_get_link_directive): New function.
58162         (func_import): Show summary of link directives.
58163         Handle --extract-link-directive option.
58164         * modules/acl (Link): New section.
58165         * modules/clock-time (Link): New section.
58166         * modules/euidaccess (Link): New section.
58167         * modules/gettext (Link): New section.
58168         * modules/iconv (Link): New section.
58169         * modules/lock (Link): New section.
58170         * modules/nanosleep (Link): New section.
58171         * modules/readline (Link): New section.
58172
58173 2007-01-27  Bruno Haible  <bruno@clisp.org>
58174
58175         Enforce the use of gnulib modules for unportable <string.h> functions.
58176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58177         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58178         (gl_HEADER_STRING_H_BODY): Require it.
58179         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58180         the symbol XYZ to one that gives a link error.
58181         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58182         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58183         * modules/mempcpy (configure.ac): Likewise.
58184         * modules/memrchr (configure.ac): Likewise.
58185         * modules/stpcpy (configure.ac): Likewise.
58186         * modules/stpncpy (configure.ac): Likewise.
58187         * modules/strcase (configure.ac): Likewise.
58188         * modules/strcasestr (configure.ac): Likewise.
58189         * modules/strchrnul (configure.ac): Likewise.
58190         * modules/strdup (configure.ac): Likewise.
58191         * modules/strndup (configure.ac): Likewise.
58192         * modules/strnlen (configure.ac): Likewise.
58193         * modules/strpbrk (configure.ac): Likewise.
58194         * modules/strsep (configure.ac): Likewise.
58195         * modules/strstr (configure.ac): Likewise.
58196         * modules/strtok_r (configure.ac): Likewise.
58197
58198 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58199
58200         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58201
58202 2007-01-30  Jim Meyering  <jim@meyering.net>
58203
58204         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58205
58206 2007-01-29  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58209         * lib/execute.c: Likewise.
58210         * lib/pipe.c: Likewise.
58211         * lib/printf-args.h: Likewise.
58212         * lib/printf-args.c: Likewise.
58213         * lib/printf-parse.c: Likewise.
58214         * lib/vasnprintf.c: Likewise.
58215
58216 2007-01-29  Eric Blake  <ebb9@byu.net>
58217
58218         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58219         declaration.
58220
58221 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         * lib/strptime.h (strptime): Use 'restrict' for args where
58224         POSIX requires this.
58225         * lib/strptime.c (strptime): Likewise.
58226         Change license notice from LGPL to GPL, since gnulib-tool will
58227         change this as needed.
58228         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58229         defined.
58230         Include "strptime.h" first, to check interface.
58231         Do not #undef _LIBC and _NL_CURRENT.
58232         Do not include <stdlib.h>; no longer needed.
58233         Include "time_r.h" and declare ptime_locale_status
58234         only if _LIBC is not defined.
58235         (__P): Remove unused macro.
58236         (match_string): Bring back glibc version, but use it only if _LIBC
58237         is defined.
58238         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58239         Remove unnecessary assertion and abort() call.
58240         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58241         * m4/strptime.m4: Fix serial number comment.
58242         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58243         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58244         (Depends-on): Add time_r.
58245
58246 2007-01-29  Bruno Haible  <bruno@clisp.org>
58247
58248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58249         strptime.
58250         * modules/strptime (Depends-on): Add stdbool.
58251         * lib/strptime.h: Include <time.h> always. Add comments.
58252
58253 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58254
58255         * modules/strptime: New file.
58256         * lib/strptime.h: New file.
58257         * lib/strptime.c: New file.
58258         * m4/strptime.m4: New file.
58259
58260 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58261
58262         * MODULES.html.sh: New module mpsort.
58263         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58264
58265         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58266         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58268         All uses changed.
58269         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58270         All uses changed.
58271         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58272         to _Restrict_.
58273         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58274         the parameter matches the prototype.
58275
58276 2007-01-28  Jim Meyering  <jim@meyering.net>
58277
58278         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58279         sys/time.h here, reverting that part of the previous patch:
58280         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58281
58282 2007-01-28  Bruno Haible  <bruno@clisp.org>
58283
58284         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58285         value of $(SYS_TIME_H).
58286         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58287         remove it conditionally, too. [added by Jim Meyering]
58288         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58289         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58290         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58291         GETTIMEOFDAY_REPLACEMENT to 1.
58292
58293 2007-01-28  Bruno Haible  <bruno@clisp.org>
58294
58295         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58296         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58298         Set UNISTD_H instead of UNISTD_H2.
58299         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58300
58301 2007-01-28  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58304         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58305
58306 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58307
58308         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58309         (func_create_testdir): Ensure C locale for `grep' and `tr'
58310         character ranges.
58311         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58312         ACLOCAL_AMFLAGS parsing state machine.
58313
58314 2007-01-27  Bruno Haible  <bruno@clisp.org>
58315
58316         * modules/unistr/base: Update.
58317
58318 2007-01-27  Bruno Haible  <bruno@clisp.org>
58319
58320         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58321         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58322         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58323         modules/unistr/u32-mbtouc.
58324         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58325         * lib/unistr.h: Update.
58326         * lib/linebreak.c: Update.
58327         * modules/unistr/u32-mbtouc: Renamed from
58328         modules/unistr/u32-mbtouc-safe.
58329         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58330         * lib/unistr.h: Update.
58331         * lib/unistr/u32-to-u8.c: Update.
58332         * lib/unistr/u32-to-u16.c: Update.
58333
58334 2007-01-27  Bruno Haible  <bruno@clisp.org>
58335
58336         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58337         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58338         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58339         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58340         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58341         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58342         modules/unistr/u16-mbtouc.
58343         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58344         * lib/unistr.h: Update.
58345         * lib/linebreak.c: Update.
58346         * modules/linebreak: Update.
58347         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58348         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58349         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58350         * modules/unistr/u16-mbtouc: Renamed from
58351         modules/unistr/u16-mbtouc-safe.
58352         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58353         * lib/unistr.h: Update.
58354         * lib/unistr/u16-to-u8.c: Update.
58355         * modules/unistr/u16-to-u8: Update.
58356         * lib/unistr/u16-to-u32.c: Update.
58357         * modules/unistr/u16-to-u32: Update.
58358
58359 2007-01-27  Bruno Haible  <bruno@clisp.org>
58360
58361         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58362         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58363         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58364         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58365         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58366         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58367         modules/unistr/u8-mbtouc.
58368         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58369         * lib/unistr.h: Update.
58370         * lib/striconveh.c: Update.
58371         * modules/striconveh: Update.
58372         * lib/linebreak.c: Update.
58373         * modules/linebreak: Update.
58374         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58375         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58376         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58377         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58378         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58379         * lib/unistr.h: Update.
58380         * lib/striconveh.c: Update.
58381         * modules/striconveh: Update.
58382         * lib/unistr/u8-to-u16.c: Update.
58383         * modules/unistr/u8-to-u16: Update.
58384         * lib/unistr/u8-to-u32.c: Update.
58385         * modules/unistr/u8-to-u32: Update.
58386
58387 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58388
58389         Sync from Libtool.
58390         * lib/argz.c: Do not include strings.h nor memory.h, include
58391         string.h unconditionally.  Patch by Simon Josefsson.
58392
58393 2007-01-27  Bruno Haible  <bruno@clisp.org>
58394
58395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58396         from gl_HEADER_STRING_H_BODY.
58397         (gl_HEADER_STRING_H_BODY): Require it.
58398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58399         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58400         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58401         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58403         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58404         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58405         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58406         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58408         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58409         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58410         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58411         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58412         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58413
58414 2007-01-27  Bruno Haible  <bruno@clisp.org>
58415
58416         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58417         check_PROGRAMS into noinst_PROGRAMS.
58418         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58419         check_PROGRAMS in this case.
58420         (func_import): Set for_test to false.
58421         (func_create_testdir): Set for_test to true.
58422
58423 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58424             Bruno Haible  <bruno@clisp.org>
58425
58426         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58427         (Depends-on): Add string.
58428         (Includes): Use <string.h> instead of strcasestr.h.
58429         * modules/string (Makefile.am): Also substitute the value of
58430         REPLACE_STRCASESTR.
58431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58432         assume strcasestr is declared in <string.h> not <strings.h>. Also
58433         set REPLACE_STRCASESTR.
58434         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58435         REPLACE_STRCASESTR.
58436         * lib/strcasestr.h: Remove file.
58437         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58438         * lib/string_.h (strcasestr): New declaration.
58439
58440 2007-01-27  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/string_.h: Use 'extern'.
58443
58444 2007-01-27  Jim Meyering  <jim@meyering.net>
58445
58446         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58447         of set-but-not-used local, "q".
58448
58449         * lib/mempcpy.c: Include <config.h> before <string.h>.
58450         This fixes a compilation error on HP-UX, due to the system's
58451         "restrict"-using mempcpy prototype.
58452
58453 2007-01-26  Bruno Haible  <bruno@clisp.org>
58454
58455         Small optimization.
58456         * lib/javacomp.c: Include c-strstr.h.
58457          (is_envjavac_gcj): Use c_strstr instead of strstr.
58458         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58459
58460 2007-01-26  Bruno Haible  <bruno@clisp.org>
58461
58462         * MODULES.html.sh (Unicode string functions): Add the new modules.
58463
58464         * modules/uniconv/u32-strconv-to-locale: New file.
58465         * lib/uniconv/u32-strconv-to-locale.c: New file.
58466
58467         * modules/uniconv/u16-strconv-to-locale: New file.
58468         * lib/uniconv/u16-strconv-to-locale.c: New file.
58469
58470         * modules/uniconv/u8-strconv-to-locale: New file.
58471         * lib/uniconv/u8-strconv-to-locale.c: New file.
58472
58473         * modules/uniconv/u32-strconv-from-locale: New file.
58474         * lib/uniconv/u32-strconv-from-locale.c: New file.
58475
58476         * modules/uniconv/u16-strconv-from-locale: New file.
58477         * lib/uniconv/u16-strconv-from-locale.c: New file.
58478
58479         * modules/uniconv/u8-strconv-from-locale: New file.
58480         * lib/uniconv/u8-strconv-from-locale.c: New file.
58481
58482         * modules/uniconv/u32-strconv-to-enc: New file.
58483         * lib/uniconv/u32-strconv-to-enc.c: New file.
58484         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58485         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58486
58487         * modules/uniconv/u16-strconv-to-enc: New file.
58488         * lib/uniconv/u16-strconv-to-enc.c: New file.
58489         * lib/uniconv/u-strconv-to-enc.h: New file.
58490         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58491         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58492
58493         * modules/uniconv/u8-strconv-to-enc: New file.
58494         * lib/uniconv/u8-strconv-to-enc.c: New file.
58495         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58496         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58497
58498         * modules/uniconv/u32-strconv-from-enc: New file.
58499         * lib/uniconv/u32-strconv-from-enc.c: New file.
58500         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58501         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58502
58503         * modules/uniconv/u16-strconv-from-enc: New file.
58504         * lib/uniconv/u16-strconv-from-enc.c: New file.
58505         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58506         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58507
58508         * modules/uniconv/u8-strconv-from-enc: New file.
58509         * lib/uniconv/u8-strconv-from-enc.c: New file.
58510         * lib/uniconv/u-strconv-from-enc.h: New file.
58511         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58512         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58513
58514         * modules/uniconv/u32-conv-from-enc: New file.
58515         * lib/uniconv/u32-conv-from-enc.c: New file.
58516         * modules/uniconv/u32-conv-from-enc-tests: New file.
58517         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58518
58519         * modules/uniconv/u16-conv-from-enc: New file.
58520         * lib/uniconv/u16-conv-from-enc.c: New file.
58521         * lib/uniconv/u-conv-from-enc.h: New file.
58522         * modules/uniconv/u16-conv-from-enc-tests: New file.
58523         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58524
58525         * modules/uniconv/u8-conv-from-enc: New file.
58526         * lib/uniconv/u8-conv-from-enc.c: New file.
58527         * modules/uniconv/u8-conv-from-enc-tests: New file.
58528         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58529
58530         * modules/uniconv/base: New file.
58531         * lib/uniconv.h: New file.
58532
58533 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58534
58535         * doc/gnulib-tool.texi (Initial import): Update to match current
58536         behavior with strdup module.
58537         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58538         * lib/memmem.h: Remove; all uses removed.  This is now done
58539         by <string.h>.
58540         * lib/mempcpy.h: Likewise.
58541         * lib/memrchr.h: Likewise.
58542         * lib/stpcpy.h: Likewise.
58543         * lib/stpncpy.h: Likewise.
58544         * lib/strcase.h: Likewise.
58545         * lib/strchrnul.h: Likewise.
58546         * lib/strdup.h: Likewise.
58547         * lib/strndup.h: Likewise.
58548         * lib/strnlen.h: Likewise.
58549         * lib/strpbrk.h: Likewise.
58550         * lib/strsep.h: Likewise.
58551         * lib/strstr.h: Likewise.
58552         * lib/strtok_r.h: Likewise.
58553         * lib/string_.h: New file.
58554         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58555         Rely on <string.h> instead.
58556         * lib/canon-host.c: Likewise.
58557         * lib/chdir-long.c: Likewise.
58558         * lib/concatpath.c: Likewise.
58559         * lib/exclude.c: Likewise.
58560         * lib/fchdir.c: Likewise.
58561         * lib/getaddrinfo.c: Likewise.
58562         * lib/getcwd.c: Likewise.
58563         * lib/getsubopt.c: Likewise.
58564         * lib/glob.c: Likewise.
58565         * lib/hard-locale.c: Likewise.
58566         * lib/iconvme.c: Likewise.
58567         * lib/javacomp.c: Likewise.
58568         * lib/mempcpy.c: Likewise.
58569         * lib/memrchr.c: Likewise.
58570         * lib/regex_internal.h: Likewise.
58571         * lib/stpncpy.c: Likewise.
58572         * lib/strcasecmp.c: Likewise.
58573         * lib/strchrnul.c: Likewise.
58574         * lib/strdup.c: Likewise.
58575         * lib/striconv.c: Likewise.
58576         * lib/striconveh.c: Likewise.
58577         * lib/striconveha.c: Likewise.
58578         * lib/strncasecmp.c: Likewise.
58579         * lib/strndup.c: Likewise.
58580         * lib/strnlen.c: Likewise.
58581         * lib/strsep.c: Likewise.
58582         * lib/strstr.c: Likewise.
58583         * lib/strtok_r.c: Likewise.
58584         * lib/userspec.c: Likewise.
58585         * lib/w32spawn.h: Likewise.
58586         * lib/xstrndup.c: Likewise.
58587         * lib/mountlist.c (strstr): Remove decl.
58588         * m4/string_h.m4: New file.
58589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58590         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58591         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58592         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58593         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58594         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58595         Set REPLACE_STRCASECMP if necessary.
58596         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58597         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58598         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58599         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58600         HAVE_DECL_STRDUP if necessary.
58601         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58602         since gl_FUNC_STRNDUP does that now.
58603         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58604         Check for decl here...
58605         (gl_PREREQ_STRNLEN): ... not here.
58606         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58607         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58608         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58609         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58610         necessary.
58611         * modules/string: New file.
58612         * modules/memmem (Files): Remove special-purpose include file.
58613         (Depends-on): Add string.
58614         (Include): Include <string.h>, not the removed file.
58615         * modules/mempcpy: Likewise.
58616         * modules/memrchr: Likewise.
58617         * modules/stpcpy: Likewise.
58618         * modules/stpncpy: Likewise.
58619         * modules/strcase: Likewise.
58620         * modules/strchrnul: Likewise.
58621         * modules/strdup: Likewise.
58622         * modules/strndup: Likewise.
58623         * modules/strnlen: Likewise.
58624         * modules/strpbrk: Likewise.
58625         * modules/strsep: Likewise.
58626         * modules/strstr: Likewise.
58627         * modules/strtok_r: Likewise.
58628         * tests/test-dirname.c: Don't include "strdup.h", since
58629         <string.h> now suffices.
58630         * tests/test-memmem.c: Don't include "memmem.h", since
58631         <string.h> now suffices.
58632
58633 2007-01-25  Bruno Haible  <bruno@clisp.org>
58634
58635         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58636         *resultp is 0.
58637
58638         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58639         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58640         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58641         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58642
58643         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58644         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58645         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58646         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58647         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58648         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58649
58650 2007-01-24  Bruno Haible  <bruno@clisp.org>
58651
58652         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58653         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58654         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58655         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58656         gl_FUNC_FTS_CORE.
58657         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58658         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58659         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58660         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58661         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58662         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58663         gl_FUNC_FCHOWNAT.
58664         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58665         gl_FUNC_STRFTIME.
58666         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58667         Reported by Ralf Wildenhues.
58668
58669 2007-01-24  Bruno Haible  <bruno@clisp.org>
58670
58671         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58672         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58673         gl_GETADDRINFO.
58674         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58675         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58676         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58677
58678 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58679
58680         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58681         Don't use 'exit'; just return from 'main'.
58682         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58683
58684         * lib/fnmatch_.h: Readjust white space and comments to match
58685         glibc, to avoid spurious diffs.
58686
58687 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58688
58689         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58690         2004-12-01 change by Jakub Jelinek, since this code won't compile
58691         if !LIBC.  Problem reported by Bob Proulx.
58692
58693 2007-01-23  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/striconveh.c: Include c-strcaseeq.h.
58696         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58697         * modules/striconveh (Depends-on): Add c-strcaseeq.
58698
58699 2007-01-23  Bruno Haible  <bruno@clisp.org>
58700
58701         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58702
58703         * modules/c-strcaseeq: New file.
58704         * lib/c-strcaseeq.h: New file.
58705
58706         * modules/streq: New file.
58707         * lib/streq.h: New file.
58708
58709 2007-01-23  Bruno Haible  <bruno@clisp.org>
58710
58711         * modules/striconveha-tests: New file.
58712         * tests/test-striconveha.c: New file.
58713
58714         * lib/striconveha.h: Include <stdbool.h>.
58715         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58716         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58717         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58718         (mem_iconveha): New function.
58719         (str_iconveha_notranslit): Renamed from str_iconveha.
58720         (str_iconveha): New function.
58721         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58722         c-strcase.
58723
58724 2007-01-23  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58727         encodings without forgiving before trying any encoding with handler.
58728         (str_iconveha): Try all encodings without forgiving before trying any
58729         encoding with handler.
58730
58731 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         Import the following changes from libc.
58734
58735         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58736
58737         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58738
58739         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58740
58741         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58742         normal_bracket label.
58743
58744         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58745
58746         [BZ #361]
58747         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58748         to normal_bracket after fetching the next character.
58749
58750 2007-01-22  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58753         argument.
58754         * lib/striconveh.c (iconv_carefully_1): New function.
58755         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58756         argument.
58757         (str_cd_iconveh): Update.
58758         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58759         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58760         * tests/test-striconveh.c (MAGIC): New macro.
58761         (new_offsets): New function.
58762         (main): Test call with and without offsets.
58763
58764 2007-01-22  Bruno Haible  <bruno@clisp.org>
58765
58766         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58767         * modules/sys_select (Makefile.am): Likewise.
58768         * modules/sys_socket (Makefile.am): Likewise.
58769         * modules/sys_time (Makefile.am): Likewise.
58770
58771 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58772
58773         * modules/gettimeofday (License): Change from GPL to LGPL, since
58774         gettimeofday is a library function.
58775
58776 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58777
58778         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58779
58780 2007-01-21  Bruno Haible  <bruno@clisp.org>
58781
58782         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58783
58784 2007-01-21  Bruno Haible  <bruno@clisp.org>
58785
58786         * modules/striconveha: New file.
58787         * lib/striconveha.h: New file.
58788         * lib/striconveha.c: New file.
58789         * MODULES.html.sh (Internationalization functions): Add striconveha.
58790         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58791         string.
58792         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58793
58794 2007-01-21  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58797         * lib/striconveh.c (str_iconveh): Likewise.
58798
58799 2007-01-21  Bruno Haible  <bruno@clisp.org>
58800
58801         * lib/striconveh.h (mem_iconveh): New declaration.
58802         * lib/striconveh.c (mem_iconveh): New function.
58803         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58804
58805 2007-01-21  Bruno Haible  <bruno@clisp.org>
58806
58807         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58808
58809         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58810         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58811         original result buffer.
58812         (str_cd_iconveh): Update.
58813         * tests/test-striconveh.c (main): Update.
58814
58815         * lib/striconv.h (mem_cd_iconv): Change specification.
58816         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58817         result buffer.
58818         (str_cd_iconv): Update.
58819         * tests/test-striconv.c (main): Update.
58820
58821 2007-01-21  Bruno Haible  <bruno@clisp.org>
58822
58823         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58824
58825 2007-01-20  Jim Meyering  <jim@meyering.net>
58826
58827         * lib/userspec.c (parse_with_separator): If a user or group string
58828         starts with "+", skip the corresponding name-to-ID look-up, since
58829         such a look-up must fail: user and group names may not include "+".
58830
58831 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58832
58833         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58834         since we now assume the sys_time module.
58835         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58836         check for sys/time.h; no longer needed.
58837         * modules/poll (Depends-on): Depend on sys_time.
58838
58839 2007-01-18  Bruno Haible  <bruno@clisp.org>
58840
58841         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58843
58844         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58845         gettimeofday.
58846
58847         * tests/test-gettimeofday.c: Include <time.h>.
58848         (dummy): Remove variable.
58849
58850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58851         gl_HEADER_SYS_TIME_H.
58852         (gl_HEADER_SYS_TIME_H): New macro.
58853
58854         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58855         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58856         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58857         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58858         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58859         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58860         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58861         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58862         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58863         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58864         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58865
58866         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58867         last change; it caused a compilation error when cross-compiling to
58868         Cygwin.
58869
58870 2007-01-18  Jim Meyering  <jim@meyering.net>
58871
58872         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58873         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58874         than the race-prone "test -d sys || mkdir sys".
58875         (configure.ac): Use AC_PROG_MKDIR_P.
58876         * modules/sys_select: Likewise.
58877         * modules/sys_socket: Likewise.
58878         * modules/sys_time: Likewise.
58879
58880 2007-01-18  Eric Blake  <ebb9@byu.net>
58881
58882         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58883         replace gettimeofday.
58884         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58885         name, to avoid infinite recursion.
58886
58887 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58888
58889         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58890         module sys_time.
58891         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58892         assume timespec.h defines struct timeval.
58893         * lib/settime.c: Likewise.
58894         * lib/utimens.c: Likewise.
58895         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58896         since we now assume the gettimeofday module.
58897         * lib/tempname.c (__gen_tempname): Likewise.
58898         * lib/gettimeofday.h: Remove.
58899         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58900         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58901         Include <time.h>, for 'time()'.
58902         (localtime_buffer_addr): Also use this workaround if
58903         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58904         to simplify the uses.  All uses changed.
58905         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58906         that #undef is inside {}, and 'const' follows type name consistently.
58907         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58908         (gettimeofday): Do not use the maximum possible value for
58909         tv->tv_usec, since that might break usages other than ls.c.
58910         Instead, we'll leave ls.c alone.  This undoes today's patch
58911         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58912         we've never observed the problem but might as well keep the
58913         canary.
58914         * lib/nanosleep.c: Include timespec.h first, for interface check.
58915         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58916         now assume the sys_time module.
58917         * lib/tempname.c: Likewise.
58918         * lib/timespec.h: Likewise.
58919         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58920         needed.
58921         * lib/strftime.c: Likewise.
58922         * lib/timespec.h: Likewise.
58923         * lib/posixtm.c: Include posixtm.h first, for interface check.
58924         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58925         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58926         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58927         * lib/sys_time_.h: New file.
58928         * lib/timespec.h (struct timespec): Use long int, not long.
58929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58930         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58931         Remove obsolescent call to AC_HEADER_TIME.
58932         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58934         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58935         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58936         Likewise.
58937         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58938         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58939         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58940         into the sys_time module.  Check for gettimeofday just once.
58941         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58942         for gettimeofday signature to just check the signature.  Merely
58943         compile it, since linking doesn't test signature.  Improve test for
58944         whether gettimeofday.o is actually needed.
58945         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58946         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58947         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58948         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58949         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58950         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58951         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58952         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58953         than worrying about sys/time.h.
58954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58955         Don't bother worrying about TIME_WITH_SYS_TIME.
58956         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58957         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58958         * m4/sys_time_h.m4: New file.
58959         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58960         Don't include sys/time.h.  Return from main rather than exiting.
58961         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58962         all uses changed.
58963         * modules/gethrxtime (Depends-on): Add sys_time.
58964         * modules/gettime (Depends-on): Likewise.
58965         * modules/gettimeofday (Depends-on): Likewise.
58966         * modules/nanosleep (Depends-on): Likewise.
58967         * modules/settime (Depends-on): Likewise.
58968         * modules/tempname (Depends-on): Likewise.
58969         * modules/utimens (Depends-on): Likewise.
58970         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58971         (Include): Change back to <sys/time.h>.
58972         (Maintainer): Add self.
58973         * modules/sys_time: New file.
58974         * modules/tempname (Depends-on): Add gettimeofday.
58975         * tests/test-gettimeofday.c: Include <sys/time.h>
58976         rather than gettimeofday.h.
58977
58978 2007-01-17  Bruno Haible  <bruno@clisp.org>
58979
58980         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58981         the license default to GPL.
58982         (func_create_testdir): Don't complain if a module is LGPL and its
58983         tests module depends on GPLed modules.
58984
58985 2007-01-17  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/gettimeofday.c (gettimeofday): Add code for the case
58988         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58989         maximum possible value for tv->tv_usec, rather than the minimum one.
58990
58991 2005-10-08  Martin Lambers  <marlam@marlam.de>
58992 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58993 2007-01-16  Bruno Haible  <bruno@clisp.org>
58994
58995         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58996         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58997         gl_FUNC_GETTIMEOFDAY.
58998         (Include): Add gettimeofday.h.
58999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59000         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59001         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59002         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59003         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59004         * lib/gettimeofday.h: New file.
59005         * lib/gettimeofday.c: Include <sys/timeb.h>.
59006         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59007         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59008         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59009         fall back on time().
59010
59011         * tests/test-gettimeofday.c: New file.
59012         * modules/gettimeofday-tests: New file.
59013
59014 2007-01-16  Eric Blake  <ebb9@byu.net>
59015
59016         * modules/fnmatch (Depends-on): Depend on wchar.
59017         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59018         * m4/fnmatch.m4: Likewise.
59019         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59020         * m4/mbchar.m4: Likewise.
59021         * modules/mbswidth (Depends-on): Depend on wchar.
59022         * lib/mbswidth.c: Assume <wchar.h>.
59023         * m4/mbswidth.m4: Likewise.
59024         * modules/quotearg (Depends-on): Depend on wchar.
59025         * lib/quotearg.c: Assume <wchar.h>.
59026         * m4/quotearg.m4: Likewise.
59027         * modules/regex (Depends-on): Depend on wchar.
59028         * lib/regex_internal.h: Assume <wchar.h>.
59029         * m4/regex.m4: Likewise.
59030         * modules/stdint (Depends-on): Depend on wchar.
59031         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59032         * m4/stdint.m4: Likewise.
59033         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59034         * modules/strftime (Depends-on): Depend on wchar.
59035         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59036         * modules/strtol (Depends-on): Depend on wchar.
59037         * lib/strtol.c: Assume <wchar.h>.
59038         * modules/wcwidth (Depends-on): Depend on wchar.
59039         * lib/wcwidth.h: Assume <wchar.h>.
59040         * m4/wcwidth.m4: Likewise.
59041
59042 2007-01-16  Bruno Haible  <bruno@clisp.org>
59043
59044         * modules/csharpexec-script: New, created from...
59045         * modules/csharpexec: ... this.
59046
59047 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59048
59049         * modules/javaexec-script: New, created from...
59050         * modules/javaexec: ... this.
59051
59052 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59053
59054         * modules/poll (Dependencies): Add sys_select.
59055
59056 2007-01-15  Jim Meyering  <jim@meyering.net>
59057
59058         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59059         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59060         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59061         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59062
59063 2007-01-15  Bruno Haible  <bruno@clisp.org>
59064
59065         * modules/striconveh: New file.
59066         * lib/striconveh.h: New file.
59067         * lib/striconveh.c: New file.
59068         * MODULES.html.sh (Internationalization functions): Add striconveh.
59069
59070         * modules/striconveh-tests: New file.
59071         * tests/test-striconveh.c: New file.
59072
59073 2007-01-15  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59076         not from GNU libiconv or GNU libc.
59077
59078 2007-01-15  Bruno Haible  <bruno@clisp.org>
59079
59080         * doc/gnulib-intro.texi (Copyright): Explain the different license
59081         terms for module descriptions, autoconf macros, tests, documentation.
59082
59083 2007-01-14  Bruno Haible  <bruno@clisp.org>
59084
59085         * modules/striconv-tests: New file.
59086         * tests/test-striconv.c: New file.
59087
59088 2007-01-14  Bruno Haible  <bruno@clisp.org>
59089
59090         * modules/iconv-tests: New file.
59091         * tests/test-iconv.c: New file.
59092
59093 2007-01-14  Bruno Haible  <bruno@clisp.org>
59094
59095         * gnulib-tool (func_get_license): For test modules, use the license of
59096         the main module.
59097
59098 2007-01-14  Bruno Haible  <bruno@clisp.org>
59099
59100         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59101         if iconv is found to exist.
59102
59103 2007-01-14  Bruno Haible  <bruno@clisp.org>
59104
59105         * modules/c-ctype-tests: New file.
59106         * tests/test-c-ctype.c: New file.
59107
59108 2007-01-14  Bruno Haible  <bruno@clisp.org>
59109
59110         * modules/binary-io-tests: New file.
59111         * tests/test-binary-io.sh: New file.
59112         * tests/test-binary-io.c: New file.
59113
59114 2007-01-14  Bruno Haible  <bruno@clisp.org>
59115
59116         * modules/array-oset-tests: New file.
59117         * tests/test-array_oset.c: New file.
59118
59119 2007-01-14  Bruno Haible  <bruno@clisp.org>
59120
59121         * modules/array-list-tests: New file.
59122         * tests/test-array_list.c: New file.
59123
59124 2007-01-14  Bruno Haible  <bruno@clisp.org>
59125
59126         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59127         and make.
59128         Reported by Simon Josefsson in
59129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59130
59131 2007-01-14  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/allocsa-tests: New file.
59134         * tests/test-allocsa.c: New file.
59135
59136 2007-01-14  Bruno Haible  <bruno@clisp.org>
59137
59138         * modules/fchdir (Depends-on): Add absolute-header.
59139         * modules/unistd (Depends-on): Likewise.
59140
59141 2006-12-30  Bruno Haible  <bruno@clisp.org>
59142
59143         * modules/fchdir: New file.
59144         * modules/unistd (Files): Add lib/unistd_.h.
59145         (Makefile.am): Generate unistd.h from unistd_.h.
59146         * lib/fchdir.c: New file.
59147         * lib/dirent_.h: New file.
59148         * lib/unistd_.h: New file.
59149         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59150         * m4/fchdir.m4: New file.
59151         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59152         (gl_HEADER_UNISTD): Invoke it.
59153         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59154         function.
59155         * lib/backupfile.c (opendir, closedir): Undefine.
59156         * lib/chown.c (open, close): Undefine.
59157         * lib/clean-temp.c (open, close): Undefine.
59158         * lib/copy-file.c (open, close): Undefine.
59159         * lib/execute.c (open, close): Undefine.
59160         * lib/fsusage.c (open, close): Undefine.
59161         * lib/gc-gnulib.c (open, close): Undefine.
59162         * lib/getcwd.c (opendir, closedir): Undefine.
59163         * lib/glob.c (opendir, closedir): Undefine.
59164         * lib/javacomp.c (open, close): Undefine.
59165         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59166         * lib/openat-proc.c (open, close): Undefine.
59167         * lib/pagealign_alloc.c (open, close): Undefine.
59168         * lib/pipe.c (open, close): Undefine.
59169         * lib/progreloc.c (open, close): Undefine.
59170         * lib/savedir.c (opendir, closedir): Undefine.
59171         * lib/utime.c (open, close): Undefine.
59172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59173
59174 2007-01-10  Bruno Haible  <bruno@clisp.org>
59175
59176         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59177
59178 2007-01-12  Eric Blake  <ebb9@byu.net>
59179
59180         Provide a robust <wchar.h>.  Further simplifications are now
59181         possible in other modules, but not included here.
59182         * modules/wchar: New module.
59183         * m4/wchar.m4: New file.
59184         * lib/wchar_.h: Likewise.
59185         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59186         of the new module.
59187         * MODULES.html.sh (Extended multibyte and wide character utilities):
59188         New section.
59189
59190 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59191
59192         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59193         to a reasonable default for memory allocation.
59194         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59195         file system that reports garbage st_size values for symlinks.
59196         Problem reported by Liyang Hu.
59197
59198 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59199
59200         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59201         Emacs .#* auto-save files).
59202
59203 2007-01-11  Bruno Haible  <bruno@clisp.org>
59204
59205         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59206         directory.
59207
59208 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59209
59210         Use @...@ consistently in lib/wctype_.h.
59211         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59212         on it being set to 1 or 0.
59213         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59214         go back to AC_SUBSTing it.
59215         * modules/wctype (Makefile.am): Undo previous change.
59216
59217 2007-01-10  Eric Blake  <ebb9@byu.net>
59218
59219         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59220         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59221         * modules/wctype (Makefile.am): Likewise.
59222         Reported by Chris McGuire.
59223
59224 2007-01-10  Jim Meyering  <jim@meyering.net>
59225
59226         fts.c: a small readability/maintainability improvement
59227         * lib/fts.c (fts_read): Make this code slightly more readable and
59228         maintainable by hoisting the "sp->fts_cur = p" assignments to
59229         immediately follow the statements that set P.  Derived from
59230         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59231
59232 2007-01-10  Eric Blake  <ebb9@byu.net>
59233
59234         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59235         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59237         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59238         Reported by Chris McGuire.
59239
59240 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59241
59242         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59243         in sed script.
59244
59245 2007-01-09  Bruno Haible  <bruno@clisp.org>
59246
59247         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59248         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59249         variables.
59250         (func_module): Use them.
59251
59252 2007-01-09  Bruno Haible  <bruno@clisp.org>
59253
59254         * modules/unistr/base: New file.
59255         * lib/unistr.h: New file.
59256
59257         * modules/unistr/u8-to-u16: New file.
59258         * lib/unistr/u8-to-u16.c: New file.
59259
59260         * modules/unistr/u8-to-u32: New file.
59261         * lib/unistr/u8-to-u32.c: New file.
59262
59263         * modules/unistr/u16-to-u8: New file.
59264         * lib/unistr/u16-to-u8.c: New file.
59265
59266         * modules/unistr/u16-to-u32: New file.
59267         * lib/unistr/u16-to-u32.c: New file.
59268
59269         * modules/unistr/u32-to-u8: New file.
59270         * lib/unistr/u32-to-u8.c: New file.
59271
59272         * modules/unistr/u32-to-u16: New file.
59273         * lib/unistr/u32-to-u16.c: New file.
59274
59275         * modules/unistr/u8-check: New file.
59276         * modules/unistr/u16-check: New file.
59277         * modules/unistr/u32-check: New file.
59278         * lib/unistr/u8-check.c: New file.
59279         * lib/unistr/u16-check.c: New file.
59280         * lib/unistr/u32-check.c: New file.
59281
59282         * modules/unistr/u8-chr: New file.
59283         * modules/unistr/u16-chr: New file.
59284         * modules/unistr/u32-chr: New file.
59285         * lib/unistr/u8-chr.c: New file.
59286         * lib/unistr/u16-chr.c: New file.
59287         * lib/unistr/u32-chr.c: New file.
59288
59289         * modules/unistr/u8-cmp: New file.
59290         * modules/unistr/u16-cmp: New file.
59291         * modules/unistr/u32-cmp: New file.
59292         * lib/unistr/u8-cmp.c: New file.
59293         * lib/unistr/u16-cmp.c: New file.
59294         * lib/unistr/u32-cmp.c: New file.
59295
59296         * modules/unistr/u8-cpy: New file.
59297         * modules/unistr/u16-cpy: New file.
59298         * modules/unistr/u32-cpy: New file.
59299         * lib/unistr/u8-cpy.c: New file.
59300         * lib/unistr/u16-cpy.c: New file.
59301         * lib/unistr/u32-cpy.c: New file.
59302         * lib/unistr/u-cpy.h: New file.
59303
59304         * modules/unistr/u8-cpy-alloc: New file.
59305         * modules/unistr/u16-cpy-alloc: New file.
59306         * modules/unistr/u32-cpy-alloc: New file.
59307         * lib/unistr/u8-cpy-alloc.c: New file.
59308         * lib/unistr/u16-cpy-alloc.c: New file.
59309         * lib/unistr/u32-cpy-alloc.c: New file.
59310         * lib/unistr/u-cpy-alloc.h: New file.
59311
59312         * modules/unistr/u8-endswith: New file.
59313         * modules/unistr/u16-endswith: New file.
59314         * modules/unistr/u32-endswith: New file.
59315         * lib/unistr/u8-endswith.c: New file.
59316         * lib/unistr/u16-endswith.c: New file.
59317         * lib/unistr/u32-endswith.c: New file.
59318         * lib/unistr/u-endswith.h: New file.
59319
59320         * modules/unistr/u8-mblen: New file.
59321         * modules/unistr/u16-mblen: New file.
59322         * modules/unistr/u32-mblen: New file.
59323         * lib/unistr/u8-mblen.c: New file.
59324         * lib/unistr/u16-mblen.c: New file.
59325         * lib/unistr/u32-mblen.c: New file.
59326
59327         * modules/unistr/u8-mbtouc: New file.
59328         * modules/unistr/u16-mbtouc: New file.
59329         * modules/unistr/u32-mbtouc: New file.
59330         * lib/unistr/u8-mbtouc.c: New file.
59331         * lib/unistr/u16-mbtouc.c: New file.
59332         * lib/unistr/u32-mbtouc.c: New file.
59333
59334         * modules/unistr/u8-mbtouc-safe: New file.
59335         * modules/unistr/u16-mbtouc-safe: New file.
59336         * modules/unistr/u32-mbtouc-safe: New file.
59337         * lib/unistr/u8-mbtouc-safe.c: New file.
59338         * lib/unistr/u16-mbtouc-safe.c: New file.
59339         * lib/unistr/u32-mbtouc-safe.c: New file.
59340
59341         * modules/unistr/u8-move: New file.
59342         * modules/unistr/u16-move: New file.
59343         * modules/unistr/u32-move: New file.
59344         * lib/unistr/u8-move.c: New file.
59345         * lib/unistr/u16-move.c: New file.
59346         * lib/unistr/u32-move.c: New file.
59347         * lib/unistr/u-move.h: New file.
59348
59349         * modules/unistr/u8-next: New file.
59350         * modules/unistr/u16-next: New file.
59351         * modules/unistr/u32-next: New file.
59352         * lib/unistr/u8-next.c: New file.
59353         * lib/unistr/u16-next.c: New file.
59354         * lib/unistr/u32-next.c: New file.
59355
59356         * modules/unistr/u8-prev: New file.
59357         * modules/unistr/u16-prev: New file.
59358         * modules/unistr/u32-prev: New file.
59359         * lib/unistr/u8-prev.c: New file.
59360         * lib/unistr/u16-prev.c: New file.
59361         * lib/unistr/u32-prev.c: New file.
59362
59363         * modules/unistr/u8-set: New file.
59364         * modules/unistr/u16-set: New file.
59365         * modules/unistr/u32-set: New file.
59366         * lib/unistr/u8-set.c: New file.
59367         * lib/unistr/u16-set.c: New file.
59368         * lib/unistr/u32-set.c: New file.
59369         * lib/unistr/u-set.h: New file.
59370
59371         * modules/unistr/u8-startswith: New file.
59372         * modules/unistr/u16-startswith: New file.
59373         * modules/unistr/u32-startswith: New file.
59374         * lib/unistr/u8-startswith.c: New file.
59375         * lib/unistr/u16-startswith.c: New file.
59376         * lib/unistr/u32-startswith.c: New file.
59377         * lib/unistr/u-startswith.h: New file.
59378
59379         * modules/unistr/u8-stpcpy: New file.
59380         * modules/unistr/u16-stpcpy: New file.
59381         * modules/unistr/u32-stpcpy: New file.
59382         * lib/unistr/u8-stpcpy.c: New file.
59383         * lib/unistr/u16-stpcpy.c: New file.
59384         * lib/unistr/u32-stpcpy.c: New file.
59385         * lib/unistr/u-stpcpy.h: New file.
59386
59387         * modules/unistr/u8-stpncpy: New file.
59388         * modules/unistr/u16-stpncpy: New file.
59389         * modules/unistr/u32-stpncpy: New file.
59390         * lib/unistr/u8-stpncpy.c: New file.
59391         * lib/unistr/u16-stpncpy.c: New file.
59392         * lib/unistr/u32-stpncpy.c: New file.
59393         * lib/unistr/u-stpncpy.h: New file.
59394
59395         * modules/unistr/u8-strcat: New file.
59396         * modules/unistr/u16-strcat: New file.
59397         * modules/unistr/u32-strcat: New file.
59398         * lib/unistr/u8-strcat.c: New file.
59399         * lib/unistr/u16-strcat.c: New file.
59400         * lib/unistr/u32-strcat.c: New file.
59401         * lib/unistr/u-strcat.h: New file.
59402
59403         * modules/unistr/u8-strchr: New file.
59404         * modules/unistr/u16-strchr: New file.
59405         * modules/unistr/u32-strchr: New file.
59406         * lib/unistr/u8-strchr.c: New file.
59407         * lib/unistr/u16-strchr.c: New file.
59408         * lib/unistr/u32-strchr.c: New file.
59409
59410         * modules/unistr/u8-strcmp: New file.
59411         * modules/unistr/u16-strcmp: New file.
59412         * modules/unistr/u32-strcmp: New file.
59413         * lib/unistr/u8-strcmp.c: New file.
59414         * lib/unistr/u16-strcmp.c: New file.
59415         * lib/unistr/u32-strcmp.c: New file.
59416
59417         * modules/unistr/u8-strcpy: New file.
59418         * modules/unistr/u16-strcpy: New file.
59419         * modules/unistr/u32-strcpy: New file.
59420         * lib/unistr/u8-strcpy.c: New file.
59421         * lib/unistr/u16-strcpy.c: New file.
59422         * lib/unistr/u32-strcpy.c: New file.
59423         * lib/unistr/u-strcpy.h: New file.
59424
59425         * modules/unistr/u8-strcspn: New file.
59426         * modules/unistr/u16-strcspn: New file.
59427         * modules/unistr/u32-strcspn: New file.
59428         * lib/unistr/u8-strcspn.c: New file.
59429         * lib/unistr/u16-strcspn.c: New file.
59430         * lib/unistr/u32-strcspn.c: New file.
59431         * lib/unistr/u-strcspn.h: New file.
59432
59433         * modules/unistr/u8-strdup: New file.
59434         * modules/unistr/u16-strdup: New file.
59435         * modules/unistr/u32-strdup: New file.
59436         * lib/unistr/u8-strdup.c: New file.
59437         * lib/unistr/u16-strdup.c: New file.
59438         * lib/unistr/u32-strdup.c: New file.
59439         * lib/unistr/u-strdup.h: New file.
59440
59441         * modules/unistr/u8-strlen: New file.
59442         * modules/unistr/u16-strlen: New file.
59443         * modules/unistr/u32-strlen: New file.
59444         * lib/unistr/u8-strlen.c: New file.
59445         * lib/unistr/u16-strlen.c: New file.
59446         * lib/unistr/u32-strlen.c: New file.
59447         * lib/unistr/u-strlen.h: New file.
59448
59449         * modules/unistr/u8-strmblen: New file.
59450         * modules/unistr/u16-strmblen: New file.
59451         * modules/unistr/u32-strmblen: New file.
59452         * lib/unistr/u8-strmblen.c: New file.
59453         * lib/unistr/u16-strmblen.c: New file.
59454         * lib/unistr/u32-strmblen.c: New file.
59455
59456         * modules/unistr/u8-strmbtouc: New file.
59457         * modules/unistr/u16-strmbtouc: New file.
59458         * modules/unistr/u32-strmbtouc: New file.
59459         * lib/unistr/u8-strmbtouc.c: New file.
59460         * lib/unistr/u16-strmbtouc.c: New file.
59461         * lib/unistr/u32-strmbtouc.c: New file.
59462
59463         * modules/unistr/u8-strncat: New file.
59464         * modules/unistr/u16-strncat: New file.
59465         * modules/unistr/u32-strncat: New file.
59466         * lib/unistr/u8-strncat.c: New file.
59467         * lib/unistr/u16-strncat.c: New file.
59468         * lib/unistr/u32-strncat.c: New file.
59469         * lib/unistr/u-strncat.h: New file.
59470
59471         * modules/unistr/u8-strncmp: New file.
59472         * modules/unistr/u16-strncmp: New file.
59473         * modules/unistr/u32-strncmp: New file.
59474         * lib/unistr/u8-strncmp.c: New file.
59475         * lib/unistr/u16-strncmp.c: New file.
59476         * lib/unistr/u32-strncmp.c: New file.
59477
59478         * modules/unistr/u8-strncpy: New file.
59479         * modules/unistr/u16-strncpy: New file.
59480         * modules/unistr/u32-strncpy: New file.
59481         * lib/unistr/u8-strncpy.c: New file.
59482         * lib/unistr/u16-strncpy.c: New file.
59483         * lib/unistr/u32-strncpy.c: New file.
59484         * lib/unistr/u-strncpy.h: New file.
59485
59486         * modules/unistr/u8-strnlen: New file.
59487         * modules/unistr/u16-strnlen: New file.
59488         * modules/unistr/u32-strnlen: New file.
59489         * lib/unistr/u8-strnlen.c: New file.
59490         * lib/unistr/u16-strnlen.c: New file.
59491         * lib/unistr/u32-strnlen.c: New file.
59492         * lib/unistr/u-strnlen.h: New file.
59493
59494         * modules/unistr/u8-strpbrk: New file.
59495         * modules/unistr/u16-strpbrk: New file.
59496         * modules/unistr/u32-strpbrk: New file.
59497         * lib/unistr/u8-strpbrk.c: New file.
59498         * lib/unistr/u16-strpbrk.c: New file.
59499         * lib/unistr/u32-strpbrk.c: New file.
59500         * lib/unistr/u-strpbrk.h: New file.
59501
59502         * modules/unistr/u8-strrchr: New file.
59503         * modules/unistr/u16-strrchr: New file.
59504         * modules/unistr/u32-strrchr: New file.
59505         * lib/unistr/u8-strrchr.c: New file.
59506         * lib/unistr/u16-strrchr.c: New file.
59507         * lib/unistr/u32-strrchr.c: New file.
59508
59509         * modules/unistr/u8-strspn: New file.
59510         * modules/unistr/u16-strspn: New file.
59511         * modules/unistr/u32-strspn: New file.
59512         * lib/unistr/u8-strspn.c: New file.
59513         * lib/unistr/u16-strspn.c: New file.
59514         * lib/unistr/u32-strspn.c: New file.
59515         * lib/unistr/u-strspn.h: New file.
59516
59517         * modules/unistr/u8-strstr: New file.
59518         * modules/unistr/u16-strstr: New file.
59519         * modules/unistr/u32-strstr: New file.
59520         * lib/unistr/u8-strstr.c: New file.
59521         * lib/unistr/u16-strstr.c: New file.
59522         * lib/unistr/u32-strstr.c: New file.
59523         * lib/unistr/u-strstr.h: New file.
59524
59525         * modules/unistr/u8-strtok: New file.
59526         * modules/unistr/u16-strtok: New file.
59527         * modules/unistr/u32-strtok: New file.
59528         * lib/unistr/u8-strtok.c: New file.
59529         * lib/unistr/u16-strtok.c: New file.
59530         * lib/unistr/u32-strtok.c: New file.
59531         * lib/unistr/u-strtok.h: New file.
59532
59533         * modules/unistr/u8-uctomb: New file.
59534         * modules/unistr/u16-uctomb: New file.
59535         * modules/unistr/u32-uctomb: New file.
59536         * lib/unistr/u8-uctomb.c: New file.
59537         * lib/unistr/u16-uctomb.c: New file.
59538         * lib/unistr/u32-uctomb.c: New file.
59539
59540         * MODULES.html.sh (Unicode string functions): Add the new modules.
59541
59542 2007-01-08  Bruno Haible  <bruno@clisp.org>
59543
59544         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59545         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59546         subdirectories.
59547
59548 2007-01-08  Karl Berry  <karl@gnu.org>
59549
59550         * doc/error.texi: mention that main() fns must set program_name
59551         when progname is used.
59552
59553 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59554
59555         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59556         WCTYPE_H is empty, for the benefit of builds from non-distclean
59557         directories.  Problem reported by Eric Blake in
59558         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59559
59560 2007-01-08  Bruno Haible  <bruno@clisp.org>
59561
59562         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59563         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59564         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59565         PROVIDE_CANONICALIZE_FILENAME_MODE.
59566         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59567
59568 2007-01-08  Bruno Haible  <bruno@clisp.org>
59569
59570         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59571         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59572         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59573         * lib/fts.c: Likewise.
59574         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59575
59576 2006-12-25  Bruno Haible  <bruno@clisp.org>
59577
59578         * modules/utf8-ucs4-safe: New file.
59579         * lib/utf8-ucs4-safe.h: New file.
59580         * lib/unistr/utf8-ucs4-safe.c: New file.
59581
59582         * modules/utf16-ucs4-safe: New file.
59583         * lib/utf16-ucs4-safe.h: New file.
59584         * lib/unistr/utf16-ucs4-safe.c: New file.
59585
59586         * MODULES.html.sh (Unicode string functions): Add the new modules.
59587
59588 2007-01-08  Bruno Haible  <bruno@clisp.org>
59589
59590         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59591         (Depends-on): Add unitypes.
59592         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59593         (u8_mbtouc_aux): Move out to separate file.
59594         (u8_mbtouc): Use ucs4_t, uint8_t types.
59595         * lib/unistr/utf8-ucs4.c: New file.
59596
59597         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59598         (Depends-on): Add unitypes.
59599         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59600         (u16_mbtouc_aux): Move out to separate file.
59601         (u16_mbtouc): Use ucs4_t, uint16_t types.
59602         * lib/unistr/utf16-ucs4.c: New file.
59603
59604         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59605         (Depends-on): Add unitypes.
59606         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59607         (u8_uctomb_aux): Move out to separate file.
59608         (u8_uctomb): Use ucs4_t, uint8_t types.
59609         * lib/unistr/ucs4-utf8.c: New file.
59610
59611         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59612         (Depends-on): Add unitypes.
59613         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59614         (u16_uctomb_aux): Move out to separate file.
59615         (u16_uctomb): Use ucs4_t, uint16_t types.
59616         * lib/unistr/ucs4-utf16.c: New file.
59617
59618 2006-12-25  Bruno Haible  <bruno@clisp.org>
59619
59620         * modules/unitypes: New file.
59621         * lib/unitypes.h: New file.
59622         * MODULES.html.sh (func_all_modules): New section "Unicode string
59623         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59624         this section. Add unitypes.
59625
59626 2007-01-08  Bruno Haible  <bruno@clisp.org>
59627
59628         Avoid variable names that conflict with those from libtool.
59629         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59630         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59631         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59632         library_names_spec to acl_library_names_spec, hardcode_* to
59633         acl_hardcode_*.
59634         Reported by Ralf Wildenhues.
59635
59636 2007-01-08  Bruno Haible  <bruno@clisp.org>
59637
59638         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59639         definition.
59640         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59641         definition.
59642         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59643         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59644         definition.
59645         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59646         definition.
59647         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59648         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59649         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59650         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59651         definition.
59652         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59653         definition.
59654         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59655         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59656         GC_USE_<algorithm>.
59657         * lib/gc-libgcrypt.c: Likewise.
59658         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59659         * modules/gc-arctwo (configure.ac): Likewise.
59660         * modules/gc-des (configure.ac): Likewise.
59661         * modules/gc-hmac-md5 (configure.ac): Likewise.
59662         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59663         * modules/gc-md2 (configure.ac): Likewise.
59664         * modules/gc-md4 (configure.ac): Likewise.
59665         * modules/gc-md5 (configure.ac): Likewise.
59666         * modules/gc-random (configure.ac): Likewise.
59667         * modules/gc-rijndael (configure.ac): Likewise.
59668         * modules/gc-sha1 (configure.ac): Likewise.
59669
59670 2007-01-08  Bruno Haible  <bruno@clisp.org>
59671
59672         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59673         macro definition.
59674         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59675         definition.
59676         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59677         definition.
59678         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59679         * modules/fcntl-safer (configure.ac): Likewise.
59680         * modules/fopen-safer (configure.ac): Likewise.
59681         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59682         GNULIB_FWRITEERROR macro definition.
59683
59684 2007-01-08  Bruno Haible  <bruno@clisp.org>
59685
59686         * m4/gnulib-common.m4: New file.
59687         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59688         (func_get_filelist): Add m4/gnulib-common.m4.
59689
59690 2007-01-08  Bruno Haible  <bruno@clisp.org>
59691
59692         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59693         command.
59694
59695 2007-01-08  Jim Meyering  <jim@meyering.net>
59696
59697         Use a more robust test for a "can't happen" condition.
59698         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59699         narrowed the st_size value.  Presuming the "can't happen" condition
59700         is true, that narrowing could conceivably convert an invalid st_size
59701         value into a valid one.  Instead, use a change based on Matthew
59702         Woehlke's original patch.
59703
59704         Slight readability improvement: use an assert-like macro
59705         in place of literal "abort ()" uses.
59706         * lib/fts.c (fts_assert): Define.
59707         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59708         Use this macro instead of a bare 'abort'.
59709
59710 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59711
59712         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59713         simply work around them.
59714         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59715         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59716         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59717         declaring.
59718         Don't bother to define as macros, since the standard doesn't require it.
59719         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59720         longer worry about IRIX 5.3.
59721         (HAVE_WCTYPE_CTMP_BUG): Remove.
59722
59723 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59726         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59727         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59728         Problems reported by Georg Schwarz for IRIX 5.3.
59729
59730         * gnulib-tool (autoconf_minversion): Take the maximum version number
59731         found, not the minimum.  Problem reported by James Youngman.
59732
59733 2007-01-03  Karl Berry  <karl@gnu.org>
59734
59735         * doc/error.texi: new file, explaining interaction with progname.
59736         * doc/gnulib.texi: include it.  Update copyright.
59737
59738 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59739
59740         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59741         AC_CANONICAL_HOST, to improve autobuild outputs.
59742
59743 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59744             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59745
59746         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59747         sockets, server sockets, and other file descriptors.  Count errors
59748         to compute the return value.  Reorder the code a bit to be easier
59749         to follow.  Don't set event bits that were not requested (except
59750         POLLERR and POLLHUP).
59751
59752 2007-01-01  Bruno Haible  <bruno@clisp.org>
59753
59754         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59755
59756 2007-01-03  Jim Meyering  <jim@meyering.net>
59757
59758         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59759
59760 2007-01-02  Bruno Haible  <bruno@clisp.org>
59761
59762         * modules/settime (Include): Require timespec.h.
59763         * modules/nanosleep (Include): Likewise.
59764
59765 2007-01-01  Bruno Haible  <bruno@clisp.org>
59766
59767         * gnulib-tool (func_emit_copyright_notice): Bump year.
59768         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59769
59770 2007-01-01  Bruno Haible  <bruno@clisp.org>
59771
59772         Improve support for OpenBSD.
59773         * build-aux/config.rpath (libname_spec): Export.
59774         (library_names_spec): New variable. Export.
59775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59776         library_names_spec from the config.rpath output. Locate shared library
59777         through the name pattern in library_names_spec.
59778
59779 2007-01-01  Eric Blake  <ebb9@byu.net>
59780
59781         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59782
59783 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59786         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59787         assume the C locale, and avoid an "eval" that could cause trouble.
59788         Problem with SORT reported by Bob Proulx.
59789
59790         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59791         Define.  Trivial patch from Henning Nielsen Lund, originally
59792         sent to bug-grep@gnu.org today.
59793
59794 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59795
59796         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59797         struct stat.  Problem reported by Henning Nielsen Lund.
59798         * lib/acl.c: Include acl.h first, to check interface.  Don't
59799         bother to include sys/types.h and sys/stat.h again.
59800
59801 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         Import the following change from libc; problem reported by
59804         Sven Verdoolaege.
59805
59806         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59807
59808         [BZ #1373]
59809         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59810
59811 2006-12-28  Jim Meyering  <jim@meyering.net>
59812
59813         * build-aux/announce-gen: Do not assume that the package
59814         builds any of tar.gz, tar.bz2, and .xdelta files.
59815         Suggestion from Simon Josefsson.
59816
59817 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59818
59819         * modules/announce-gen: New file.
59820
59821 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59822
59823         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59824         handles its gotchas now.
59825         * lib/mbswidth.c: Likewise.
59826         * lib/wcwidth.h: Likewise.
59827         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59828         and iswcntrl; the wctype module does this stuff now.
59829         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59831         * modules/mbchar (Depends-on): Add wctype.
59832         * modules/mbswidth (Depends-on): Likewise.
59833         * modules/wcwidth (Depends-on): Likewise.
59834
59835 2006-12-27  Eric Blake  <ebb9@byu.net>
59836
59837         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59838         module uses more than what <wctype.h> is required to provide.
59839
59840 2006-12-26  Eric Blake  <ebb9@byu.net>
59841
59842         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59843
59844 2006-12-26  Eric Blake  <ebb9@byu.net>
59845
59846         * modules/absolute-header: New module.
59847         * modules/fcntl (Depends-on): Depend on it.
59848         * modules/inttypes (Depends-on): Likewise.
59849         * modules/stdint (Depends-on): Likewise.
59850         * modules/sys_stat (Depends-on): Likewise.
59851         * modules/wctype (Depends-on): Likewise.
59852         * MODULES.html.sh (Support for building libraries and
59853         executables): Document it.
59854
59855 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59856
59857         * gnulib-tool (SED): Remove, undoing previous change.
59858         The problem was that it broke coreutils on Solaris, because
59859         "sed --posix" leaked into a makefile.
59860         (sed): New alias, if 'alias' and GNU sed.
59861
59862 2006-12-24  Jim Meyering  <jim@meyering.net>
59863
59864         Work around an fchownat bug in glibc-2.4:
59865         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59866         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59867         in spite of the -P option.
59868         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59869         New macros.
59870         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59871         * modules/openat (Files): Add lib/fchownat.c.
59872         * lib/openat.c (fchownat): Don't define here.  Move to...
59873         * lib/fchownat.c: ...this new file.
59874
59875 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         Fix bug reported by Bruno Haible in
59878         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59879         where quotearg.c didn't compile on Mac OS X 10.2 because it
59880         lacks <wchar.h> and wint_t.
59881         * lib/wctype_.h (__wctype_wint_t): New type.
59882         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59883         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59884         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59885         Arg is now of type __wctype_wint_t, not wint_t.
59886         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59887         substitute HAVE_WINT_T.
59888         * modules/wctype (Files): Add m4/wint_t.m4.
59889         (wctype.h): Substitute HAVE_WINT_T.
59890
59891 2006-12-23  Bruno Haible  <bruno@clisp.org>
59892
59893         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59894
59895 2006-12-23  Bruno Haible  <bruno@clisp.org>
59896
59897         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59898         S_ISLNK.
59899         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59900         mingw.
59901
59902 2006-12-22  Bruno Haible  <bruno@clisp.org>
59903
59904         * lib/copy-file.c: Include acl.h.
59905         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59906         Close the file descriptors only after being done with copy_acl.
59907         * modules/copy-file (Depends-on): Add acl.
59908
59909 2006-12-22  Bruno Haible  <bruno@clisp.org>
59910
59911         * gnulib-tool (SED): New variable.
59912         Use $SED instead of sed everywhere.
59913
59914 2006-12-22  Bruno Haible  <bruno@clisp.org>
59915
59916         * modules/no-c++: New file.
59917         * m4/no-c++.m4: New file.
59918         * MODULES.html.sh (Support for building libraries and executables):
59919         Add no-c++.
59920
59921 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59924         Include <limits.h>, and use its INT_MAX to rewrite the
59925         j loop so that it does not overflow 'int'.  Problem reported by
59926         Ralf Wildenhues in
59927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59928         Play it safe by shifting left by 1 rather than multiplying by 2,
59929         as GCC is less likely to optimize this away when the value
59930         is signed (when it assumes overflow leads to undefined behavior).
59931         Also, don't assume time_t uses two's complement.
59932
59933 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         * MODULES.html.sh: New module wctype.
59936         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59937         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59938         <wctype.h>, since the new wctype module should fix this.
59939         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59940         the wctype module should arrange for it.
59941         * lib/regex_internal.h: Likewise.
59942         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59943         since the wctype module should handle this now.
59944         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59945         * modules/fnmatch (Depends-on): Add wctype.
59946         * modules/quotearg (Depends-on): Likewise.
59947         * modules/regex (Depends-on): Likewise.
59948
59949 2006-12-19  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59952         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59953
59954 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59955
59956         * modules/savewd (Depends-on): Fix dependency on fcntl.
59957
59958 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59961         conforms to C99, rather than relying on the user's environment
59962         setting of STDINT_H.
59963
59964 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59965         and Eric Blake  <ebb9@byu.net>
59966
59967         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59968         This is more consistent with the other defines here.
59969         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59970         Port to z/OS.  Problem reported by Paul Gilmartin.
59971         Change local vars to use gl_ prefix rather than ac_.
59972         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59973         with other defines.
59974         * modules/double-slash-root: New module.
59975         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59976         (Depends-on): Add double-slash-root.
59977         * MODULES.html.sh (File system functions): Mention new module.
59978
59979 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59982         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59983         This is for the benefit of gzip, which doesn't do i18n.
59984
59985 2006-12-12  Jim Meyering  <jim@meyering.net>
59986
59987         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59988         Reported by Andreas Schwab <schwab@suse.de>.
59989
59990 2006-12-12  Bruno Haible  <bruno@clisp.org>
59991
59992         Merge these changes.
59993         2006-09-05  Bruno Haible  <bruno@clisp.org>
59994         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59995         iconv_alloc succeeded.
59996         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59997         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59998         test for " && dest " at the end - dest is always != NULL there. Call
59999         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60000         with 2xNULL arguments, also to flush the state storage. Handle the
60001         IRIX iconv behaviour. Realloc the final result, to throw away unused
60002         memory.
60003
60004 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60005
60006         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60007         and fchmodat unconditionally, since glibc 2.4 has them.
60008         Problem reported by Arkadiusz Miskiewicz.
60009
60010 2006-12-10  Bruno Haible  <bruno@clisp.org>
60011
60012         * gnulib-tool (func_import): Show the include files only for those
60013         modules that are copied and specified.
60014         Reported by Karl Berry.
60015
60016 2006-12-08  Jim Meyering  <jim@meyering.net>
60017
60018         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60019         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60020
60021         * build-aux/announce-gen: Add two new options, both optional:
60022         --bootstrap-tools=TOOL_LIST
60023               a comma-separated list of tools, e.g.,
60024               autoconf,automake,bison,gnulib
60025         --gnulib-snapshot-date=DATE
60026               if gnulib is in the bootstrap tool list,
60027               then report this as the snapshot date.
60028               If not specified, use the current date/time.
60029               If you specify a date here, be sure it's UTC.
60030
60031 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60032
60033         * tests/test-argp-2.sh: Fix test to match actual output.
60034         (func_compare): Fix sed script to be portable.
60035
60036 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60037
60038         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60039         workaround for this case.  It is not autoconfigured now; offhand
60040         it's hard to see how to autoconfigure it.
60041
60042 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60045         a directory that is about to be chowned.  Such a directory's
60046         initial file permissions should permit the owner only and this
60047         should not be changed until after the chown, since the group and
60048         other bits would be incorrect if they granted permission before
60049         the chown.
60050
60051         Fix porting problem for iswctype reported by Georg Schwarz in:
60052         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60053         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60054         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60056         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60057
60058 2006-12-03  Jim Meyering  <jim@meyering.net>
60059
60060         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60061         p->fts_statp may not yet be defined.
60062         (fts_read): Instead, set it in the caller, once p->fts_statp is
60063         sure to be defined, and corresponds to a top-level directory.
60064         This bug made du -x fail.  Here's the coreutils test case:
60065         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60066         Reported by Mike Frysinger.
60067
60068 2006-12-01  Jim Meyering  <jim@meyering.net>
60069
60070         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60071         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60072         Reported by Simon Josefsson.
60073
60074 2006-11-30  Jim Meyering  <jim@meyering.net>
60075
60076         * m4/warning.m4: Use the all-permissive copyright notice
60077         recommended by RMS (rather than LGPL).
60078         * m4/vararrays.m4: Likewise.
60079         * m4/flexmember.m4: Likewise.
60080
60081 2006-11-29  Bruno Haible  <bruno@clisp.org>
60082
60083         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60084         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60085         using +=.
60086         Reported by Simon Josefsson <simon@josefsson.org>.
60087
60088 2006-11-28  James Youngman <jay@gnu.org>
60089
60090         * README: Advise users that they might find the bug-gnulib@gnu.org
60091         and autotools-announce@gnu.org mailing lists useful.
60092
60093 2006-11-28  Bruno Haible  <bruno@clisp.org>
60094
60095         * m4/ptrdiff_max.m4: Remove file.
60096
60097 2006-11-21  Bruno Haible  <bruno@clisp.org>
60098
60099         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60100         _AC_COMPUTE_INT.
60101         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60102         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60103         _AC_COMPUTE_INT.
60104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60105         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60106         _AC_COMPUTE_INT.
60107         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60108
60109 2006-11-28  Jim Meyering  <jim@meyering.net>
60110
60111         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60112         warning from "gcc -Wshadow" about shadowing the builtin.
60113
60114 2006-11-27  Bruno Haible  <bruno@clisp.org>
60115
60116         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60117         _AC_COMPUTE_INT.
60118         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60119
60120 2006-11-27  Bruno Haible  <bruno@clisp.org>
60121             Paul Eggert  <eggert@cs.ucla.edu>
60122
60123         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60124
60125 2006-11-26  Bruno Haible  <bruno@clisp.org>
60126
60127         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60128         noinst_LTLIBRARIES.
60129
60130 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60131             Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60134         if compiling with "gcc -ansi".
60135
60136 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60137
60138         Fix some incompatibilities with gcc -ansi -pedantic.
60139         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60140         if compiling pedantically with GCC, unless it's C99 or later.
60141         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60142         it mishandles gcc -ansi -pedantic as well.
60143         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60144         if gcc -pedantic.
60145         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60146         initializers for struct if -pedantic, unless it's C99 or later.
60147
60148 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60149
60150         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60151         Don't close an fd more than once. Identical atimes indicate
60152         success, not failure.
60153
60154 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60155
60156         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60157
60158 2006-11-23  Jim Meyering  <jim@meyering.net>
60159
60160         * build-aux/announce-gen: New file.  From coreutils.
60161
60162 2006-11-22  Jim Meyering  <jim@meyering.net>
60163
60164         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60165         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60166         (fts_read): Use a temporary to narrow the overused st_size member
60167         before using it in a switch statement.  Reported by Matthew Woehlke.
60168
60169         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60170         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60171
60172 2006-11-20  Bruno Haible  <bruno@clisp.org>
60173
60174         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60175         changequote instead of pairs of brackets.
60176         Reported by Andreas Schwab <schwab@suse.de>.
60177
60178 2006-11-21  Jim Meyering  <jim@meyering.net>
60179
60180         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60181         so as to remain compatible with older compilers.
60182         Patch from Michael Deutschmann.
60183
60184 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60185
60186         * MODULES.html.sh (File system functions): Add openat.
60187
60188         * lib/openat.h (rpl_fstatat): New macro, if
60189         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60190         (fstatat): Define to rpl_fstatat under the same conditions,
60191         unless COMPILING_FSTATAT.
60192         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60193         seems to have the bug.
60194         * lib/fstatat.c: New file.
60195         * modules/openat (Files): Add it.
60196
60197 2006-11-20  Bruno Haible  <bruno@clisp.org>
60198
60199         * Makefile: New file.
60200
60201 2006-11-20  Jim Meyering  <jim@meyering.net>
60202
60203         The beginnings of syntax-related checks for gnulib.
60204         * lib/Makefile: New file.
60205         * lib/t-idcache: New script.  Ensure that the two halves of
60206         idcache.c stay in sync.
60207
60208         * lib/idcache.c: Adjust comments in user- and group- portions to
60209         be more accurate, and to be consistent with one another.
60210
60211 2006-11-20  Jim Meyering  <jim@meyering.net>
60212
60213         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60214         continue using the flexible array member (thus, this module performs
60215         half as many malloc calls), with the addition that...
60216         (getgroup, getuser): Consistently record a non-match via an empty
60217         "name" string, and map an empty string match to a NULL return value.
60218         * modules/idcache (Depends-on): Re-add flexmember.
60219
60220         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60221         (getuidbyname, getgroup, getgidbyname): Likewise.
60222
60223         Use cleaner syntax: NULL rather than 0.
60224         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60225
60226 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60229         It mishandled the case where the group was missing.
60230         Problem reported by Greg Schafer.
60231         * modules/idcache: Likewise.
60232
60233 2006-11-18  Jim Meyering  <jim@meyering.net>
60234
60235         * check-module (%exempt_header): Add exception for some
60236         conditionally-included headers.
60237
60238         * modules/i-ring (Depends-on): Add verify.
60239         (License): Change to LGPL.
60240
60241 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60244         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60245         and inttostr.h.  Use snprintf rather than uinttostr, so that
60246         LGPLed code doesn't depend on GPLed.
60247
60248 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60249
60250         * modules/inline (License): Change from GPL to LGPL.
60251
60252 2006-11-17  Jim Meyering  <jim@meyering.net>
60253
60254         * modules/d-type (License): Switch to LGPL.
60255
60256 2006-11-15  Bruno Haible  <bruno@clisp.org>
60257
60258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60259
60260 2006-11-15  Eric Blake  <ebb9@byu.net>
60261
60262         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60263         the module dependency.
60264
60265 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60266             Bruno Haible  <bruno@clisp.org>
60267
60268         * gnulib-tool (func_create_testdir): Add license consistency check.
60269
60270 2006-11-15  Eric Blake  <ebb9@byu.net>
60271
60272         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60273         random "(cached)" in configure output.
60274
60275 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60276
60277         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60278         test for conforming inttypes.h is both announced and cached.
60279
60280         * MODULES.html.sh (seen_modules, seen_files): New variables.
60281         (func_module): Rewrite to use a few less gnulib-tool and sed
60282         invocations.  Avoid a couple of quadratic algorithms for ...
60283         (missed_modules, missed_files): ... these, with ...
60284         (func_append, func_tmpdir): ... these new functions, from
60285         gnulib-tool.  Analogously, install traps for cleanup.
60286
60287         * tests/test-gc.c (main): Remove unused variables.
60288         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60289
60290 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * modules/inttostr (License): Change to LGPL.
60293
60294 2006-11-14  Eric Blake  <ebb9@byu.net>
60295
60296         * modules/tempname (License): Change to LGPL.
60297
60298 2006-11-14  Eric Blake  <ebb9@byu.net>
60299
60300         * doc/functions.texi (Function Portability): *printf functions on
60301         Cygwin now understand all POSIX size specifiers.
60302
60303 2006-11-14  Bruno Haible  <bruno@clisp.org>
60304
60305         * modules/c-ctype (License): Change to LGPL.
60306
60307 2006-11-12  Bruno Haible  <bruno@clisp.org>
60308
60309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60310         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60311         for GNOME libraries, for which the include files are installed in
60312         subdirectories of $prefix/include.
60313
60314 2006-11-12  Bruno Haible  <bruno@clisp.org>
60315
60316         * m4/lib-link.m4: Require at least autoconf-2.54.
60317         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60318         name to underscores for the --with option.
60319
60320 2006-11-13  Bruno Haible  <bruno@clisp.org>
60321
60322         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60323         the tests directory.
60324         Reported by Ralf Wildenhues.
60325
60326 2006-11-13  Bruno Haible  <bruno@clisp.org>
60327
60328         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60329         (func_emit_initmacro_end): Undo the override here.
60330         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60331         Works around the famous automake error in coreutils.
60332
60333 2006-11-13  Eric Blake  <ebb9@byu.net>
60334
60335         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60336         element, not its node.
60337
60338 2006-11-12  Bruno Haible  <bruno@clisp.org>
60339
60340         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60341         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60342
60343 2006-11-12  Bruno Haible  <bruno@clisp.org>
60344
60345         * gnulib-tool: New option --local-symlink.
60346         (func_usage): Document it.
60347         (lsymbolic): New variable.
60348         (func_import, func_create_testdir): If --symlink was not specified,
60349         test whether --local-symlink was specified and the file comes from
60350         the local_gnulib_dir.
60351
60352 2006-11-12  Bruno Haible  <bruno@clisp.org>
60353
60354         * gnulib-tool (func_ln): New function.
60355         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60356
60357 2006-11-12  Bruno Haible  <bruno@clisp.org>
60358
60359         Finish support for source files in subdirectories.
60360         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60361         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60362         AUTOMAKE_OPTIONS.
60363         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60364
60365 2006-11-12  Bruno Haible  <bruno@clisp.org>
60366
60367         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60368         EXTRA_lib_SOURCES augmentation.
60369         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60370
60371 2006-11-12  Jim Meyering  <jim@meyering.net>
60372
60373         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60374         file descriptors.  This also averts a failure on systems with
60375         native openat support when a traversed directory lacks "x" access.
60376         * lib/fts_.h: Include "i-ring.h"
60377         (struct FTS) [fts_fd_ring]: New member.
60378         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60379         (FCHDIR): Add parentheses.
60380         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60381         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60382         When descending, rather than simply closing the previous
60383         fts_cwd_fd value, push that file descriptor onto the ring.
60384         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60385         (fts_open): Initialize the new fd_ring member.
60386         (fts_close): Clear the ring.
60387         (fts_safe_changedir): When possible, use our new fd_ring to skip
60388         the diropen and fstat and dev/ino comparison that would normally
60389         accompany a virtual `chdir ("..")'.
60390
60391         * modules/fts (Depends-on): Add i-ring.
60392         * modules/i-ring: New module.
60393         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60394         * m4/i-ring.m4: New file.
60395
60396 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60397
60398         * gnulib-tool (func_create_testdir): Fix replacement of
60399         `build-aux' in configure.ac.  Run autotools in gltests
60400         subdirectory.
60401         (func_create_testdir, func_create_megatestdir, test): There is
60402         no need for '--force' in most autotool invocations in a new
60403         tree.  Actually fail the whole test if any of the tools, or the
60404         configure or make stages fail.
60405
60406         Sync from Automake.
60407         * build-aux/gnupload: Revert last change.  Add pointer to upload
60408         instructions of the GNU Maintenance Instructions.
60409         Suggestion by Karl Berry.
60410
60411 2006-11-10  Jim Meyering  <jim@meyering.net>
60412
60413         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60414
60415 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60416
60417         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60418         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60419         (bind_textdomain_codeset) [! ENABLE_NLS]:
60420         Evaluate all the arguments.  That way, callers get compatible behavior
60421         if the arguments have side effects.  Also, it avoids some GCC
60422         diagnostics in some cases; Joel E. Denny reported problems when Bison
60423         was configured with --enable-gcc-warnigs.
60424
60425 2006-11-10  Jim Meyering  <jim@meyering.net>
60426
60427         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60428         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60429         account.
60430
60431 2006-11-10  Jim Meyering  <jim@meyering.net>
60432
60433         * modules/inline: New file/module.
60434         * modules/xalloc (Files): Remove m4/inline.m4.
60435         (Depends-on): Add inline, instead.
60436         * modules/oset: Likewise.
60437         * modules/list: Likewise.
60438
60439 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60442         Problem reported by Matthew Woehlke.
60443
60444 2006-11-09  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/tempname.c (gen_tempname): Remove variant that invokes
60447         __gen_tempname.
60448         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60449         __gen_tempname.
60450
60451 2006-11-08  Bruno Haible  <bruno@clisp.org>
60452
60453         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60454         to 'yes' instead of 'cross-compiling'.
60455
60456 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60457
60458         * lib/quotearg.h (quotearg_free): New decl.
60459         * lib/quotearg.c (quotearg_free): New function.
60460         (slot0, nslots, slotvec0, slotvec):
60461         Now file-scope so that quotearg_free can get at them.
60462
60463 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60464
60465         Sync from Automake.
60466         * build-aux/gnupload: Add missing 'gnu' to example URL.
60467         Report by Karl Berry.
60468
60469 2006-11-08  Bruno Haible  <bruno@clisp.org>
60470
60471         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60472         Suggested by Paul Eggert.
60473
60474 2006-11-08  Jim Meyering  <jim@meyering.net>
60475
60476         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60477         It's already included if !_LIBC.
60478         (fts_safe_changedir): Add a comment.
60479
60480 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60481
60482         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60483         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60484         Matthew Woehlke.
60485
60486         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60487         definitions up, to avoid colliding with change below.
60488         (static_inline) [HAVE_INLINE]: New macro.
60489         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60490         Provide extern decls when !HAVE_INLINE.  Do not define unless
60491         static_inline is defined, either by us or by xmalloc.c.  Use
60492         static_inline rather than static inline.
60493         (XCALLOC): Optimize sizeof(T) = 1 case.
60494         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60495
60496 2006-11-07  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60499         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60500         AC_C_INLINE.
60501         * modules/xalloc (Files): Add m4/inline.m4.
60502
60503 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60504
60505         * README: Fix typo.
60506         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60507         (Miscellanous Notes): ...from this.
60508
60509 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60512         Mention that offsetof should be used instead of sizeof.
60513         From Bruno Haible.
60514
60515 2006-11-07  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60518
60519 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60520
60521         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60522         * lib/gl_anyavltree_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):
60525         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60526         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60527         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60528         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60529         (gl_linked_add_after, gl_linked_add_at): Likewise.
60530         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60531         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60532         (gl_tree_add_before, gl_tree_add_after): Likewise.
60533         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60534         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60535         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60536
60537 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60538
60539         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60540
60541 2006-11-06  Bruno Haible  <bruno@clisp.org>
60542
60543         * m4/inline.m4: New file.
60544         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60545         * modules/list (Files): Add m4/inline.m4.
60546         * modules/oset (Files): Likewise.
60547
60548 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60549
60550         * lib/idcache.c: Include <stddef.h>, for offsetof.
60551         (struct userid.name): Change from char * to a flexible array member.
60552         All uses changed.
60553         * modules/idcache (Depends-on): Add flexmember.
60554
60555         * MODULES.html.sh (Core language properties): New module flexmember.
60556         * modules/flexmember, m4/flexmember.m4: New files.
60557
60558         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60559         inline functions that are identical with the old xnmalloc_inline,
60560         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60561         that we can avoid some unnecessary integer multiplications and
60562         divisions in the common case where the element size is known at
60563         compile time.
60564         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60565         needed.
60566         (xnboundedmalloc): Remove.
60567         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60568         arguments, for consistency with rest of this header.
60569         (xcharalloc): Rewrite using XNMALLOC.
60570         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60571         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60572         versions have been moved to lib/xalloc.h and renamed to be the
60573         non-*_inline versions.
60574         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60575         and xnrealloc functions, since those functions are now inline and
60576         now call us.
60577         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60578         renaming described above.
60579         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60580         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60581         captures the dependency in AC_C_INLINE.
60582
60583         New module canonicalize-lgpl, proposed by Charles Wilson in
60584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60585         with a few small changes afterwards.
60586         * MODULES.html.sh (File system functions): New module
60587         canonicalize-lgpl.
60588         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60589         and canonicalize_file_name.
60590         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60591         * modules/canonicalize-lgpl: New files.
60592
60593 2006-11-05  Bruno Haible  <bruno@clisp.org>
60594
60595         * gnulib-tool (func_import, func_create_testdir): Create directories
60596         also for files in subdirectories of lib/.
60597
60598 2006-11-05  Bruno Haible  <bruno@clisp.org>
60599
60600         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60601         ANSI C compliant.
60602
60603 2006-11-03  Bruno Haible  <bruno@clisp.org>
60604
60605         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60606         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60607         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60608         (xnboundedmalloc): New inline function.
60609         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60610         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60611         xmalloc.
60612         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60613         xmalloc.
60614         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60615         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60616         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60617         xmalloc.
60618         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60619         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60620         xmalloc.
60621         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60622         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60623         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60624         xmalloc.
60625         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60626         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60627         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60628         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60629         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60630         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60631         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60632
60633 2006-11-03  Bruno Haible  <bruno@clisp.org>
60634
60635         * lib/c-ctype.h [C++]: Define functions without name mangling.
60636         * lib/fwriteerror.h [C++]: Likewise.
60637         * lib/gcd.h [C++]: Likewise.
60638         * lib/linebreak.h [C++]: Likewise.
60639
60640 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60643         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60644         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60645         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60646         Check for functions and headers just once.
60647         Check for declaration of canonicalize_file_name.
60648         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60649
60650 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60651
60652         * gnulib-tool (func_import): Fix typo in actioncmd.
60653
60654 2006-11-02  Bruno Haible  <bruno@clisp.org>
60655
60656         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60657         newline sequence in the Makefile.am snippet as a space, like "make"
60658         does.
60659         Reported by Roger Persson <perrog@gmail.com>.
60660
60661 2006-11-01  Bruno Haible  <bruno@clisp.org>
60662
60663         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60664         already declared in <string.h>.
60665         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60666
60667 2006-11-01  Bruno Haible  <bruno@clisp.org>
60668
60669         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60670         * lib/strcase.h: Include <string.h>.
60671         (strcasecmp): Define to rpl_strcasecmp here.
60672
60673 2006-11-01  Bruno Haible  <bruno@clisp.org>
60674
60675         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60676
60677 2006-11-01  Eric Blake  <ebb9@byu.net>
60678
60679         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60680
60681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60682
60683 2006-10-29  Bruno Haible  <bruno@clisp.org>
60684
60685         Make it compile in C++ mode.
60686         * lib/full-write.c (full_rw): Add a cast.
60687
60688 2006-11-01  Bruno Haible  <bruno@clisp.org>
60689
60690         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60691         be POSIX compliant.
60692         Reported by Roger Persson <perrog@gmail.com>.
60693
60694 2006-11-01  Eric Blake  <ebb9@byu.net>
60695
60696         * lib/getopt_.h: Fix comments.
60697
60698 2006-10-31  Eric Blake  <ebb9@byu.net>
60699
60700         * modules/tmpdir (Depends-on): Add sys_stat.
60701         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60702         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60703         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60704         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60705         tempname.
60706
60707 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60708
60709         Avoid some C++ diagnostics reported by Bruno Haible.
60710         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60711         xmalloc.
60712         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60713         (struct slotvec): Move to top level.
60714         (quotearg_n_options): Rewrite to avoid xmalloc.
60715         * lib/xalloc.h (xcharalloc): New function.
60716         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60717         [defined __cplusplus]: Add function template that provides result
60718         type propagation.  This part of the change is from Bruno Haible.
60719
60720 2006-10-29  Bruno Haible  <bruno@clisp.org>
60721
60722         Make it compile in C++ mode.
60723         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60724         * lib/strnlen1.c (strnlen1): Cast memchr result.
60725         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60726         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60727         (create_temp_dir): Rename local variable 'template'.
60728         (compile_csharp_using_sscli): Add cast.
60729         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60730         * lib/findprog.c (find_in_path): Likewise.
60731         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60732         * lib/wait-process.c (register_slave_subprocess): Likewise.
60733
60734 2006-10-22  Bruno Haible  <bruno@clisp.org>
60735
60736         * modules/tsearch: New file.
60737         * lib/tsearch.h: New file.
60738         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60739         * m4/tsearch.m4: New file.
60740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60741
60742 2006-10-29  Eric Blake  <ebb9@byu.net>
60743
60744         * lib/arcfour.c: Assume config.h.
60745         * lib/arctwo.c: Likewise.
60746         * lib/base64.c: Likewise.
60747         * lib/check-version.c: Likewise.
60748         * lib/crc.c: Likewise.
60749         * lib/des.c: Likewise.
60750         * lib/gc-gnulib.c: Likewise.
60751         * lib/gc-libgcrypt.c: Likewise.
60752         * lib/gc-pbkdf2-sha1.c: Likewise.
60753         * lib/getaddrinfo.c: Likewise.
60754         * lib/getdelim.c: Likewise.
60755         * lib/getline.c: Likewise.
60756         * lib/hmac-md5.c: Likewise.
60757         * lib/hmac-sha1.c: Likewise.
60758         * lib/iconvme.c: Likewise.
60759         * lib/md2.c: Likewise.
60760         * lib/md4.c: Likewise.
60761         * lib/memxor.c: Likewise.
60762         * lib/read-file.c: Likewise.
60763         * lib/readline.c: Likewise.
60764         * lib/rijndael-alg-fst.c: Likewise.
60765         * lib/rijndael-api-fst.c: Likewise.
60766         * lib/xgetdomainname.c: Likewise.
60767
60768 2006-10-28  Eric Blake  <ebb9@byu.net>
60769
60770         * lib/xstrndup.c: Assume config.h.
60771
60772 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60773
60774         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60775         stat-macros.h is now for our own macros, whereas stat_h is for
60776         macros in the <sys/stat.h> name space.
60777         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60778         (STAT_MACROS_H): Remove.
60779         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60780         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60781         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60782         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60783         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60784         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60785         Move these macros to ...
60786         * lib/stat_.h: here.  Don't include stat-macros.h.
60787         * lib/canonicalize.c: Don't include stat-macros.h.
60788         * lib/chown.c: Likewise.
60789         * lib/euidaccess.c: Likewise.
60790         * lib/file-type.c: Likewise.
60791         * lib/filemode.c: Likewise.
60792         * lib/glob.c: Likewise.
60793         * lib/isapipe.c: Likewise.
60794         * lib/lchown.c: Likewise.
60795         * lib/lstat.c: Likewise.
60796         * lib/mkdir-p.c: Likewise.
60797         * lib/rmdir.c: Likewise.
60798         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60800         unless mkdir isn't declared, to speed up 'configure'.
60801         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60802         would define all the S_* symbols.
60803         * modules/canonicalize (Depends-on):
60804         Depend on sys_stat, not stat-macros.
60805         * modules/chown: Likewise.
60806         * modules/euidaccess: Likewise.
60807         * modules/filemode: Likewise.
60808         * modules/file-type: Likewise.
60809         * modules/glob: Likewise.
60810         * modules/isapipe: Likewise.
60811         * modules/lchown: Likewise.
60812         * modules/lstat: Likewise.
60813         * modules/mkancesdirs: Likewise.
60814         * modules/rmdir: Likewise.
60815         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60816         * modules/modechange: Likewise.
60817         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60818         (configure.ac): Remove gl_STAT_MACROS.
60819         * modules/sys_stat (Depends-on): Remove stat-macros.
60820
60821 2006-10-27  Bruno Haible  <bruno@clisp.org>
60822
60823         * m4/signed.m4: Remove file.
60824         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60825         invocation.
60826         * modules/vasnprintf (Files): Remove m4/signed.m4.
60827
60828 2006-10-27  Bruno Haible  <bruno@clisp.org>
60829
60830         Update to GNU gettext 0.16.
60831         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60832         m4/inttypes-h.m4, m4/signed.m4.
60833         * m4/gettext.m4: Update to GNU gettext 0.16.
60834         * m4/intl.m4: New file, from GNU gettext.
60835         * m4/intldir.m4: New file, from GNU gettext.
60836         * config/srclist.txt: Update
60837
60838 2006-10-27  Eric Blake  <ebb9@byu.net>
60839
60840         * MODULES.html.sh: Document tempname.
60841         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60842         dependencies.
60843         (Files): Move lib/tempname.c...
60844         * modules/tempname: ...to this new module.
60845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60846         (gl_PREREQ_TEMPNAME): Move...
60847         * m4/tempname.m4: ...to this new file.
60848         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60849         * modules/sys_stat (Depends-on): Add stat-macros.
60850         * lib/stat_.h (includes): Pick up stat macros.
60851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60852         if stat macros are broken.
60853         * lib/tempname.c (includes): No need to include "stat-macros.h".
60854         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60855         (direxists, __path_search) [!_LIBC]: Don't compile these in
60856         gnulib; the tmpdir module covers that.
60857         * lib/tempname.h: New file.
60858
60859 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60860
60861         * COPYING: Explain how gnulib-tool converts licence headers.
60862         Almost all wording by Eric Blake.
60863
60864 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60865
60866         * lib/mbchar.h (is_basic_table): Make read-only.
60867         * lib/mbchar.c (is_basic_table): Likewise.
60868         Reported by John Darrington.
60869
60870 2006-10-25  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/progname.h (set_program_name): Undefine before defining.
60873
60874 2006-10-25  Bruno Haible  <bruno@clisp.org>
60875
60876         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60877         false for non-gcc C++ compilers.
60878         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60879
60880 2006-10-24  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60883         iconv implementations like Irix iconv.
60884
60885 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60886
60887         * modules/vararrays: New file.
60888         * m4/vararrays.m4: New file, taken from diffutils.
60889         * MODULES.html.sh: New module vararrays.
60890
60891 2006-10-24  Karl Berry  <karl@gnu.org>
60892
60893         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60894         Don't call GNU Unix.
60895
60896 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60897
60898         * users.txt: Add Libtool.
60899
60900         Sync from Libtool:
60901
60902         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60905         to gnulib's policy of including config.h unconditionally.
60906
60907 2006-10-24  Bruno Haible  <bruno@clisp.org>
60908
60909         * modules/wcwidth (Files): Add m4/wint_t.m4.
60910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60911         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60912
60913 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60916         to pacify GCC with some -W flags enabled.  Problem reported by
60917         Bruno Haible.
60918
60919 2006-10-24  Jim Meyering  <jim@meyering.net>
60920
60921         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60922         Reported by Karl Berry.
60923
60924 2006-10-23  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60927
60928 2006-10-24  Bruno Haible  <bruno@clisp.org>
60929
60930         * lib/gl_list.h: Use C comment style, not C++ comment style.
60931
60932 2006-10-23  Eric Blake  <ebb9@byu.net>
60933
60934         * lib/getaddrinfo.c (includes): Add missing include.
60935
60936 2006-10-23  Bruno Haible  <bruno@clisp.org>
60937             Paul Eggert  <eggert@cs.ucla.edu>
60938
60939         Ability to rename obstack_free.
60940         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60941         obstack_free.
60942         (obstack_free): Invoke the __obstack_free macro.
60943         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60944
60945 2006-10-23  Bruno Haible  <bruno@clisp.org>
60946             Paul Eggert  <eggert@cs.ucla.edu>
60947
60948         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60949         __argc, __argv from the declaration. (They are defined as macros on
60950         mingw.)
60951
60952 2006-10-22  Bruno Haible  <bruno@clisp.org>
60953
60954         * doc/gnulib-intro.texi: New file.
60955         * doc/gnulib.texi: Include it.
60956
60957 2006-10-21  Bruno Haible  <bruno@clisp.org>
60958
60959         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60960         "Introduction", "Miscellanous Notes", "Particular Modules".
60961
60962 2006-10-21  Bruno Haible  <bruno@clisp.org>
60963
60964         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60965         Change mostlyclean-local rule to avoid sh syntax error from bash
60966         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60967
60968 2006-10-23  Jim Meyering  <jim@meyering.net>
60969
60970         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60971         in place of snprintf.
60972
60973         * modules/inttostr (Files): Add lib/uinttostr.c.
60974         * lib/uinttostr.c (inttostr): New file/function.
60975         * lib/inttostr.h (uinttostr): Declare.
60976         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60977         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60978         Add uinttostr.
60979         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60980
60981 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         * lib/canonicalize.c (ELOOP): Define if not already defined.
60984         Problem reported by Bruno Haible in
60985         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60986
60987 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60988
60989         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60990         Problem reported by Perry Smith and Ville Laurikari.
60991
60992         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60993         uses.
60994
60995 2006-10-19  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60998         for mingw.
60999
61000 2006-10-19  Bruno Haible  <bruno@clisp.org>
61001
61002         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61003         Needed for mingw.
61004
61005 2006-10-19  Bruno Haible  <bruno@clisp.org>
61006
61007         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61008
61009 2006-10-19  Bruno Haible  <bruno@clisp.org>
61010
61011         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61012         it.
61013
61014 2006-10-19  Bruno Haible  <bruno@clisp.org>
61015
61016         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61017         invocation.
61018
61019 2006-10-19  Bruno Haible  <bruno@clisp.org>
61020
61021         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61022         mountlist by default.
61023
61024 2006-10-16  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/c-strstr.c: Include c-strstr.h.
61027
61028 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61029
61030         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61031         in a slash.
61032
61033 2006-10-18  Bruno Haible  <bruno@clisp.org>
61034
61035         * lib/lock.h [C++]: Wrap definitions in extern "C".
61036
61037 2006-10-18  Bruno Haible  <bruno@clisp.org>
61038
61039         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61040         gl_LIBOBJS list.
61041
61042 2006-10-18  Bruno Haible  <bruno@clisp.org>
61043
61044         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61045
61046 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         * lib/xstrtol.h: Include gettext.h.
61049         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61050         Problem reported by Eric Blake.
61051         * modules/xstrtol (Depends-on): Add gettext-h.
61052
61053 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61054
61055         * lib/strftime.c (advance): New macro.
61056         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61057         incomplete type, so you can't add 0 to it.  Problem and patch
61058         reported by Eelco Dolstra for dietlibc.
61059
61060 2006-10-18  Jim Meyering  <jim@meyering.net>
61061
61062         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61063         type for a local, and rename it: s/up/user_proc/.
61064
61065 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61066
61067         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61068         READ_UTMP_USER_PROCESS.
61069         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61070
61071 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61072
61073         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61074         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61075
61076 2006-10-17  Eric Blake  <ebb9@byu.net>
61077
61078         * lib/sigprocmask.c (sigprocmask): Fix typo.
61079
61080         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61081
61082         * modules/clean-temp (Makefile.am): Don't add to make output...
61083         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61084         config.h.
61085
61086 2006-10-17  Bruno Haible  <bruno@clisp.org>
61087
61088         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61089         differently if DEFAULT_TEXT_DOMAIN is set.
61090
61091 2006-10-16  Bruno Haible  <bruno@clisp.org>
61092
61093         * lib/clean-temp.c: Include fwriteerror.h.
61094
61095 2006-10-16  Bruno Haible  <bruno@clisp.org>
61096
61097         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61098
61099 2006-10-16  Bruno Haible  <bruno@clisp.org>
61100
61101         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61102         * lib/sigprocmask.h: Include <sys/types.h>.
61103         (sigset_t): Use the system's definition if present.
61104
61105 2006-10-17  Eric Blake  <ebb9@byu.net>
61106
61107         * lib/xvasprintf.c (includes): Assume config.h.
61108         * lib/xasprintf.c (includes): Likewise.
61109
61110 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61113         at least as wide as intmax_t.
61114
61115 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61116
61117         (Imported from Automake.)
61118         * build-aux/gnupload: Update to version 1.1 of directive file.
61119
61120 2006-10-16  Eric Blake  <ebb9@byu.net>
61121
61122         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61123         match Automake 1.10a.
61124
61125 2006-10-14  Bruno Haible  <bruno@clisp.org>
61126
61127         * modules/sigprocmask: New file.
61128         * lib/sigprocmask.h: New file.
61129         * lib/sigprocmask.c: New file.
61130         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61131         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61132         request sigprocmask.o.
61133         (gl_PREREQ_SIGPROCMASK): New macro.
61134         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61135         (Depends-on): Add sigprocmask.
61136         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61137         gt_SIGNALBLOCKING. Test for 'raise' only once.
61138         * lib/fatal-signal.c: Include sigprocmask.h.
61139         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61140         unblock_fatal_signals): Define always.
61141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61142         sigprocmask.
61143
61144 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61145
61146         Sync from Automake.
61147         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61148         which incorrectly sets the mode of an existing destination
61149         directory.  In some cases the unpatched install-sh could do the
61150         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61151         system.  We hope this is rare in practice, but it's clearly worth
61152         fixing.  Problem reported by Alex Unleashed in
61153         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61154         Also, don't bother to check for -m bugs unless we're using -m;
61155         suggested by Stepan Kasal.
61156
61157 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61158
61159         Sync from Automake.
61160         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61161         `-c' flag, so they appear at the same position as in %FASTDEP%
61162         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61163         which ignores unknown options only after the first non-option.
61164         Bug report against M4 by Nelson H. F. Beebe.
61165
61166 2006-10-13  Jim Meyering  <jim@meyering.net>
61167
61168         Fix a bug in yesterday's change.
61169         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61170         p->fts_statp->st_dev would be used uninitialized.
61171         Ensures that we always call fts_stat on the very first entry.
61172         Miklos Szeredi reported that find -xdev stopped working.
61173
61174 2006-10-12  Bruno Haible  <bruno@clisp.org>
61175
61176         * gnulib-tool (func_get_automake_snippet): Append an automatically
61177         computed EXTRA_DIST augmentation.
61178         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61179         * modules/alloca-opt (Makefile.am): Likewise.
61180         * modules/allocsa (Makefile.am): Likewise.
61181         * modules/arcfour (Makefile.am): Likewise.
61182         * modules/arctwo (Makefile.am): Likewise.
61183         * modules/argmatch (Makefile.am): Likewise.
61184         * modules/argz (Makefile.am): Likewise.
61185         * modules/atexit (Makefile.am): Likewise.
61186         * modules/backupfile (Makefile.am): Likewise.
61187         * modules/byteswap (Makefile.am): Likewise.
61188         * modules/c-strtod (Makefile.am): Likewise.
61189         * modules/c-strtold (Makefile.am): Likewise.
61190         * modules/calloc (Makefile.am): Likewise.
61191         * modules/canon-host (Makefile.am): Likewise.
61192         * modules/canonicalize (Makefile.am): Likewise.
61193         * modules/chdir-long (Makefile.am): Likewise.
61194         * modules/chdir-safer (Makefile.am): Likewise.
61195         * modules/check-version (Makefile.am): Likewise.
61196         * modules/chown (Makefile.am): Likewise.
61197         * modules/cloexec (Makefile.am): Likewise.
61198         * modules/close-stream (Makefile.am): Likewise.
61199         * modules/closeout (Makefile.am): Likewise.
61200         * modules/crc (Makefile.am): Likewise.
61201         * modules/csharpexec (Makefile.am): Likewise.
61202         * modules/cycle-check (Makefile.am): Likewise.
61203         * modules/des (Makefile.am): Likewise.
61204         * modules/dev-ino (Makefile.am): Likewise.
61205         * modules/dirfd (Makefile.am): Likewise.
61206         * modules/dirname (Makefile.am): Likewise.
61207         * modules/dup2 (Makefile.am): Likewise.
61208         * modules/eealloc (Makefile.am): Likewise.
61209         * modules/error (Makefile.am): Likewise.
61210         * modules/euidaccess (Makefile.am): Likewise.
61211         * modules/exclude (Makefile.am): Likewise.
61212         * modules/exitfail (Makefile.am): Likewise.
61213         * modules/fcntl-safer (Makefile.am): Likewise.
61214         * modules/fcntl (Makefile.am): Likewise.
61215         * modules/file-type (Makefile.am): Likewise.
61216         * modules/fileblocks (Makefile.am): Likewise.
61217         * modules/filemode (Makefile.am): Likewise.
61218         * modules/filenamecat (Makefile.am): Likewise.
61219         * modules/fnmatch (Makefile.am): Likewise.
61220         * modules/fopen-safer (Makefile.am): Likewise.
61221         * modules/fpending (Makefile.am): Likewise.
61222         * modules/fprintftime (Makefile.am): Likewise.
61223         * modules/free (Makefile.am): Likewise.
61224         * modules/fsusage (Makefile.am): Likewise.
61225         * modules/ftruncate (Makefile.am): Likewise.
61226         * modules/fts (Makefile.am): Likewise.
61227         * modules/gc-arcfour (Makefile.am): Likewise.
61228         * modules/gc-des (Makefile.am): Likewise.
61229         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61230         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61231         * modules/gc-md4 (Makefile.am): Likewise.
61232         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61233         * modules/gc-sha1 (Makefile.am): Likewise.
61234         * modules/gc (Makefile.am): Likewise.
61235         * modules/getaddrinfo (Makefile.am): Likewise.
61236         * modules/getcwd (Makefile.am): Likewise.
61237         * modules/getdelim (Makefile.am): Likewise.
61238         * modules/getdomainname (Makefile.am): Likewise.
61239         * modules/getgroups (Makefile.am): Likewise.
61240         * modules/gethostname (Makefile.am): Likewise.
61241         * modules/gethrxtime (Makefile.am): Likewise.
61242         * modules/getline (Makefile.am): Likewise.
61243         * modules/getloadavg (Makefile.am): Likewise.
61244         * modules/getlogin_r (Makefile.am): Likewise.
61245         * modules/getndelim2 (Makefile.am): Likewise.
61246         * modules/getopt (Makefile.am): Likewise.
61247         * modules/getpagesize (Makefile.am): Likewise.
61248         * modules/getpass-gnu (Makefile.am): Likewise.
61249         * modules/getpass (Makefile.am): Likewise.
61250         * modules/getsubopt (Makefile.am): Likewise.
61251         * modules/gettime (Makefile.am): Likewise.
61252         * modules/gettimeofday (Makefile.am): Likewise.
61253         * modules/getugroups (Makefile.am): Likewise.
61254         * modules/getusershell (Makefile.am): Likewise.
61255         * modules/glob (Makefile.am): Likewise.
61256         * modules/group-member (Makefile.am): Likewise.
61257         * modules/hard-locale (Makefile.am): Likewise.
61258         * modules/hash (Makefile.am): Likewise.
61259         * modules/hmac-md5 (Makefile.am): Likewise.
61260         * modules/hmac-sha1 (Makefile.am): Likewise.
61261         * modules/human (Makefile.am): Likewise.
61262         * modules/idcache (Makefile.am): Likewise.
61263         * modules/imaxabs (Makefile.am): Likewise.
61264         * modules/imaxdiv (Makefile.am): Likewise.
61265         * modules/inet_ntop (Makefile.am): Likewise.
61266         * modules/inet_pton (Makefile.am): Likewise.
61267         * modules/intprops (Makefile.am): Likewise.
61268         * modules/inttostr (Makefile.am): Likewise.
61269         * modules/inttypes (Makefile.am): Likewise.
61270         * modules/isapipe (Makefile.am): Likewise.
61271         * modules/javaversion (Makefile.am): Likewise.
61272         * modules/lchmod (Makefile.am): Likewise.
61273         * modules/lchown (Makefile.am): Likewise.
61274         * modules/localcharset (Makefile.am): Likewise.
61275         * modules/long-options (Makefile.am): Likewise.
61276         * modules/lstat (Makefile.am): Likewise.
61277         * modules/malloc (Makefile.am): Likewise.
61278         * modules/mathl (Makefile.am): Likewise.
61279         * modules/mbchar (Makefile.am): Likewise.
61280         * modules/md2 (Makefile.am): Likewise.
61281         * modules/md4 (Makefile.am): Likewise.
61282         * modules/md5 (Makefile.am): Likewise.
61283         * modules/memcasecmp (Makefile.am): Likewise.
61284         * modules/memchr (Makefile.am): Likewise.
61285         * modules/memcmp (Makefile.am): Likewise.
61286         * modules/memcoll (Makefile.am): Likewise.
61287         * modules/memcpy (Makefile.am): Likewise.
61288         * modules/memmem (Makefile.am): Likewise.
61289         * modules/memmove (Makefile.am): Likewise.
61290         * modules/mempcpy (Makefile.am): Likewise.
61291         * modules/memrchr (Makefile.am): Likewise.
61292         * modules/memset (Makefile.am): Likewise.
61293         * modules/memxor (Makefile.am): Likewise.
61294         * modules/mkancesdirs (Makefile.am): Likewise.
61295         * modules/mkdir-p (Makefile.am): Likewise.
61296         * modules/mkdir (Makefile.am): Likewise.
61297         * modules/mkdtemp (Makefile.am): Likewise.
61298         * modules/mkstemp (Makefile.am): Likewise.
61299         * modules/mktime (Makefile.am): Likewise.
61300         * modules/modechange (Makefile.am): Likewise.
61301         * modules/mountlist (Makefile.am): Likewise.
61302         * modules/nanosleep (Makefile.am): Likewise.
61303         * modules/obstack (Makefile.am): Likewise.
61304         * modules/openat (Makefile.am): Likewise.
61305         * modules/pagealign_alloc (Makefile.am): Likewise.
61306         * modules/pathmax (Makefile.am): Likewise.
61307         * modules/physmem (Makefile.am): Likewise.
61308         * modules/poll (Makefile.am): Likewise.
61309         * modules/posixtm (Makefile.am): Likewise.
61310         * modules/posixver (Makefile.am): Likewise.
61311         * modules/putenv (Makefile.am): Likewise.
61312         * modules/quote (Makefile.am): Likewise.
61313         * modules/quotearg (Makefile.am): Likewise.
61314         * modules/raise (Makefile.am): Likewise.
61315         * modules/read-file (Makefile.am): Likewise.
61316         * modules/readline (Makefile.am): Likewise.
61317         * modules/readlink (Makefile.am): Likewise.
61318         * modules/readtokens (Makefile.am): Likewise.
61319         * modules/readutmp (Makefile.am): Likewise.
61320         * modules/realloc (Makefile.am): Likewise.
61321         * modules/regex (Makefile.am): Likewise.
61322         * modules/rename-dest-slash (Makefile.am): Likewise.
61323         * modules/rename (Makefile.am): Likewise.
61324         * modules/rijndael (Makefile.am): Likewise.
61325         * modules/rmdir (Makefile.am): Likewise.
61326         * modules/rpmatch (Makefile.am): Likewise.
61327         * modules/safe-read (Makefile.am): Likewise.
61328         * modules/safe-write (Makefile.am): Likewise.
61329         * modules/same-inode (Makefile.am): Likewise.
61330         * modules/same (Makefile.am): Likewise.
61331         * modules/save-cwd (Makefile.am): Likewise.
61332         * modules/savedir (Makefile.am): Likewise.
61333         * modules/setenv (Makefile.am): Likewise.
61334         * modules/settime (Makefile.am): Likewise.
61335         * modules/sha1 (Makefile.am): Likewise.
61336         * modules/sig2str (Makefile.am): Likewise.
61337         * modules/snprintf (Makefile.am): Likewise.
61338         * modules/stat-macros (Makefile.am): Likewise.
61339         * modules/stat-time (Makefile.am): Likewise.
61340         * modules/stdbool (Makefile.am): Likewise.
61341         * modules/stdint (Makefile.am): Likewise.
61342         * modules/stdlib-safer (Makefile.am): Likewise.
61343         * modules/stpcpy (Makefile.am): Likewise.
61344         * modules/stpncpy (Makefile.am): Likewise.
61345         * modules/strcase (Makefile.am): Likewise.
61346         * modules/strcasestr (Makefile.am): Likewise.
61347         * modules/strchrnul (Makefile.am): Likewise.
61348         * modules/strcspn (Makefile.am): Likewise.
61349         * modules/strdup (Makefile.am): Likewise.
61350         * modules/strerror (Makefile.am): Likewise.
61351         * modules/strftime (Makefile.am): Likewise.
61352         * modules/strndup (Makefile.am): Likewise.
61353         * modules/strnlen (Makefile.am): Likewise.
61354         * modules/strpbrk (Makefile.am): Likewise.
61355         * modules/strsep (Makefile.am): Likewise.
61356         * modules/strstr (Makefile.am): Likewise.
61357         * modules/strtod (Makefile.am): Likewise.
61358         * modules/strtoimax (Makefile.am): Likewise.
61359         * modules/strtok_r (Makefile.am): Likewise.
61360         * modules/strtol (Makefile.am): Likewise.
61361         * modules/strtoll (Makefile.am): Likewise.
61362         * modules/strtoul (Makefile.am): Likewise.
61363         * modules/strtoull (Makefile.am): Likewise.
61364         * modules/strtoumax (Makefile.am): Likewise.
61365         * modules/strverscmp (Makefile.am): Likewise.
61366         * modules/sys_socket (Makefile.am): Likewise.
61367         * modules/sys_stat (Makefile.am): Likewise.
61368         * modules/sysexits (Makefile.am): Likewise.
61369         * modules/time_r (Makefile.am): Likewise.
61370         * modules/timegm (Makefile.am): Likewise.
61371         * modules/timespec (Makefile.am): Likewise.
61372         * modules/tmpfile-safer (Makefile.am): Likewise.
61373         * modules/trim (Makefile.am): Likewise.
61374         * modules/unistd-safer (Makefile.am): Likewise.
61375         * modules/unlinkdir (Makefile.am): Likewise.
61376         * modules/unlocked-io (Makefile.am): Likewise.
61377         * modules/userspec (Makefile.am): Likewise.
61378         * modules/utime (Makefile.am): Likewise.
61379         * modules/utimecmp (Makefile.am): Likewise.
61380         * modules/utimens (Makefile.am): Likewise.
61381         * modules/vasnprintf (Makefile.am): Likewise.
61382         * modules/vasprintf (Makefile.am): Likewise.
61383         * modules/vsnprintf (Makefile.am): Likewise.
61384         * modules/xalloc (Makefile.am): Likewise.
61385         * modules/xgetcwd (Makefile.am): Likewise.
61386         * modules/xnanosleep (Makefile.am): Likewise.
61387         * modules/xreadlink (Makefile.am): Likewise.
61388         * modules/xstrtod (Makefile.am): Likewise.
61389         * modules/xstrtol (Makefile.am): Likewise.
61390         * modules/xstrtold (Makefile.am): Likewise.
61391         * modules/yesno (Makefile.am): Likewise.
61392         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61393
61394 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * modules/error (Makefile.am): Distribute files through
61397         EXTRA_DIST, not lib_SOURCES.
61398
61399 2006-10-12  Eric Blake  <ebb9@byu.net>
61400
61401         * modules/error (Makefile.am): Distribute files in /lib.
61402         * modules/obstack (Makefile.am): Likewise.
61403
61404 2006-10-12  Bruno Haible  <bruno@clisp.org>
61405
61406         * modules/acl (Makefile.am): Distribute all files in lib/ through
61407         EXTRA_DIST.
61408         * modules/arcfour (Makefile.am): Likewise.
61409         * modules/arctwo (Makefile.am): Likewise.
61410         * modules/argmatch (Makefile.am): Likewise.
61411         * modules/argz (Makefile.am): Likewise.
61412         * modules/atexit (Makefile.am): Likewise.
61413         * modules/backupfile (Makefile.am): Likewise.
61414         * modules/c-strtod (Makefile.am): Likewise.
61415         * modules/c-strtold (Makefile.am): Likewise.
61416         * modules/calloc (Makefile.am): Likewise.
61417         * modules/canon-host (Makefile.am): Likewise.
61418         * modules/canonicalize (Makefile.am): Likewise.
61419         * modules/chdir-long (Makefile.am): Likewise.
61420         * modules/chdir-safer (Makefile.am): Likewise.
61421         * modules/check-version (Makefile.am): Likewise.
61422         * modules/chown (Makefile.am): Likewise.
61423         * modules/cloexec (Makefile.am): Likewise.
61424         * modules/close-stream (Makefile.am): Likewise.
61425         * modules/closeout (Makefile.am): Likewise.
61426         * modules/crc (Makefile.am): Likewise.
61427         * modules/cycle-check (Makefile.am): Likewise.
61428         * modules/des (Makefile.am): Likewise.
61429         * modules/dirfd (Makefile.am): Likewise.
61430         * modules/dirname (Makefile.am): Likewise.
61431         * modules/dup2 (Makefile.am): Likewise.
61432         * modules/euidaccess (Makefile.am): Likewise.
61433         * modules/exclude (Makefile.am): Likewise.
61434         * modules/exitfail (Makefile.am): Likewise.
61435         * modules/fcntl-safer (Makefile.am): Likewise.
61436         * modules/file-type (Makefile.am): Likewise.
61437         * modules/fileblocks (Makefile.am): Likewise.
61438         * modules/filemode (Makefile.am): Likewise.
61439         * modules/filenamecat (Makefile.am): Likewise.
61440         * modules/fnmatch (Makefile.am): Likewise.
61441         * modules/fopen-safer (Makefile.am): Likewise.
61442         * modules/fpending (Makefile.am): Likewise.
61443         * modules/fprintftime (Makefile.am): Likewise.
61444         * modules/free (Makefile.am): Likewise.
61445         * modules/fsusage (Makefile.am): Likewise.
61446         * modules/ftruncate (Makefile.am): Likewise.
61447         * modules/fts (Makefile.am): Likewise.
61448         * modules/gc (Makefile.am): Likewise.
61449         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61450         * modules/getaddrinfo (Makefile.am): Likewise.
61451         * modules/getcwd (Makefile.am): Likewise.
61452         * modules/getdelim (Makefile.am): Likewise.
61453         * modules/getdomainname (Makefile.am): Likewise.
61454         * modules/getgroups (Makefile.am): Likewise.
61455         * modules/gethostname (Makefile.am): Likewise.
61456         * modules/gethrxtime (Makefile.am): Likewise.
61457         * modules/getline (Makefile.am): Likewise.
61458         * modules/getloadavg (Makefile.am): Likewise.
61459         * modules/getlogin_r (Makefile.am): Likewise.
61460         * modules/getopt (Makefile.am): Likewise.
61461         * modules/getpass (Makefile.am): Likewise.
61462         * modules/getpass-gnu (Makefile.am): Likewise.
61463         * modules/getsubopt (Makefile.am): Likewise.
61464         * modules/gettime (Makefile.am): Likewise.
61465         * modules/gettimeofday (Makefile.am): Likewise.
61466         * modules/getugroups (Makefile.am): Likewise.
61467         * modules/getusershell (Makefile.am): Likewise.
61468         * modules/glob (Makefile.am): Likewise.
61469         * modules/group-member (Makefile.am): Likewise.
61470         * modules/hard-locale (Makefile.am): Likewise.
61471         * modules/hash (Makefile.am): Likewise.
61472         * modules/hmac-md5 (Makefile.am): Likewise.
61473         * modules/hmac-sha1 (Makefile.am): Likewise.
61474         * modules/human (Makefile.am): Likewise.
61475         * modules/idcache (Makefile.am): Likewise.
61476         * modules/imaxabs (Makefile.am): Likewise.
61477         * modules/imaxdiv (Makefile.am): Likewise.
61478         * modules/inet_ntop (Makefile.am): Likewise.
61479         * modules/inet_pton (Makefile.am): Likewise.
61480         * modules/inttostr (Makefile.am): Likewise.
61481         * modules/isapipe (Makefile.am): Likewise.
61482         * modules/lchown (Makefile.am): Likewise.
61483         * modules/long-options (Makefile.am): Likewise.
61484         * modules/lstat (Makefile.am): Likewise.
61485         * modules/malloc (Makefile.am): Likewise.
61486         * modules/mathl (Makefile.am): Likewise.
61487         * modules/mbchar (Makefile.am): Likewise.
61488         * modules/md2 (Makefile.am): Likewise.
61489         * modules/md4 (Makefile.am): Likewise.
61490         * modules/md5 (Makefile.am): Likewise.
61491         * modules/memcasecmp (Makefile.am): Likewise.
61492         * modules/memchr (Makefile.am): Likewise.
61493         * modules/memcmp (Makefile.am): Likewise.
61494         * modules/memcoll (Makefile.am): Likewise.
61495         * modules/memcpy (Makefile.am): Likewise.
61496         * modules/memmem (Makefile.am): Likewise.
61497         * modules/memmove (Makefile.am): Likewise.
61498         * modules/mempcpy (Makefile.am): Likewise.
61499         * modules/memrchr (Makefile.am): Likewise.
61500         * modules/memset (Makefile.am): Likewise.
61501         * modules/memxor (Makefile.am): Likewise.
61502         * modules/mkancesdirs (Makefile.am): Likewise.
61503         * modules/mkdir (Makefile.am): Likewise.
61504         * modules/mkdir-p (Makefile.am): Likewise.
61505         * modules/mkdtemp (Makefile.am): Likewise.
61506         * modules/mkstemp (Makefile.am): Likewise.
61507         * modules/mktime (Makefile.am): Likewise.
61508         * modules/modechange (Makefile.am): Likewise.
61509         * modules/mountlist (Makefile.am): Likewise.
61510         * modules/nanosleep (Makefile.am): Likewise.
61511         * modules/openat (Makefile.am): Likewise.
61512         * modules/pagealign_alloc (Makefile.am): Likewise.
61513         * modules/physmem (Makefile.am): Likewise.
61514         * modules/poll (Makefile.am): Likewise.
61515         * modules/posixtm (Makefile.am): Likewise.
61516         * modules/posixver (Makefile.am): Likewise.
61517         * modules/putenv (Makefile.am): Likewise.
61518         * modules/quote (Makefile.am): Likewise.
61519         * modules/quotearg (Makefile.am): Likewise.
61520         * modules/raise (Makefile.am): Likewise.
61521         * modules/read-file (Makefile.am): Likewise.
61522         * modules/readline (Makefile.am): Likewise.
61523         * modules/readlink (Makefile.am): Likewise.
61524         * modules/readtokens (Makefile.am): Likewise.
61525         * modules/readutmp (Makefile.am): Likewise.
61526         * modules/realloc (Makefile.am): Likewise.
61527         * modules/regex (Makefile.am): Likewise.
61528         * modules/rename (Makefile.am): Likewise.
61529         * modules/rename-dest-slash (Makefile.am): Likewise.
61530         * modules/rijndael (Makefile.am): Likewise.
61531         * modules/rmdir (Makefile.am): Likewise.
61532         * modules/rpmatch (Makefile.am): Likewise.
61533         * modules/safe-read (Makefile.am): Likewise.
61534         * modules/safe-write (Makefile.am): Likewise.
61535         * modules/same (Makefile.am): Likewise.
61536         * modules/save-cwd (Makefile.am): Likewise.
61537         * modules/savedir (Makefile.am): Likewise.
61538         * modules/setenv (Makefile.am): Likewise.
61539         * modules/settime (Makefile.am): Likewise.
61540         * modules/sha1 (Makefile.am): Likewise.
61541         * modules/sig2str (Makefile.am): Likewise.
61542         * modules/snprintf (Makefile.am): Likewise.
61543         * modules/stdlib-safer (Makefile.am): Likewise.
61544         * modules/stpcpy (Makefile.am): Likewise.
61545         * modules/stpncpy (Makefile.am): Likewise.
61546         * modules/strcase (Makefile.am): Likewise.
61547         * modules/strcasestr (Makefile.am): Likewise.
61548         * modules/strchrnul (Makefile.am): Likewise.
61549         * modules/strcspn (Makefile.am): Likewise.
61550         * modules/strdup (Makefile.am): Likewise.
61551         * modules/strerror (Makefile.am): Likewise.
61552         * modules/strftime (Makefile.am): Likewise.
61553         * modules/strndup (Makefile.am): Likewise.
61554         * modules/strnlen (Makefile.am): Likewise.
61555         * modules/strpbrk (Makefile.am): Likewise.
61556         * modules/strsep (Makefile.am): Likewise.
61557         * modules/strstr (Makefile.am): Likewise.
61558         * modules/strtod (Makefile.am): Likewise.
61559         * modules/strtoimax (Makefile.am): Likewise.
61560         * modules/strtok_r (Makefile.am): Likewise.
61561         * modules/strtol (Makefile.am): Likewise.
61562         * modules/strtoll (Makefile.am): Likewise.
61563         * modules/strtoul (Makefile.am): Likewise.
61564         * modules/strtoull (Makefile.am): Likewise.
61565         * modules/strtoumax (Makefile.am): Likewise.
61566         * modules/strverscmp (Makefile.am): Likewise.
61567         * modules/time_r (Makefile.am): Likewise.
61568         * modules/timegm (Makefile.am): Likewise.
61569         * modules/tmpfile-safer (Makefile.am): Likewise.
61570         * modules/unistd-safer (Makefile.am): Likewise.
61571         * modules/unlinkdir (Makefile.am): Likewise.
61572         * modules/userspec (Makefile.am): Likewise.
61573         * modules/utime (Makefile.am): Likewise.
61574         * modules/utimecmp (Makefile.am): Likewise.
61575         * modules/utimens (Makefile.am): Likewise.
61576         * modules/vasnprintf (Makefile.am): Likewise.
61577         * modules/vasprintf (Makefile.am): Likewise.
61578         * modules/vsnprintf (Makefile.am): Likewise.
61579         * modules/xalloc (Makefile.am): Likewise.
61580         * modules/xgetcwd (Makefile.am): Likewise.
61581         * modules/xnanosleep (Makefile.am): Likewise.
61582         * modules/xreadlink (Makefile.am): Likewise.
61583         * modules/xstrtod (Makefile.am): Likewise.
61584         * modules/xstrtol (Makefile.am): Likewise.
61585         * modules/xstrtold (Makefile.am): Likewise.
61586         * modules/yesno (Makefile.am): Likewise.
61587
61588 2006-10-12  Jim Meyering  <jim@meyering.net>
61589
61590         * m4/getloadavg.m4: Revert the change below.
61591
61592         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61593         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61594         fail with a symlink, which is what coreutils' ./bootstrap now
61595         creates by default.
61596
61597 2006-10-12  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61600         mingw.
61601         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61602         MSVC and mingw explicitly.
61603
61604 2006-10-11  Simon Josefsson  <jas@extundo.com>
61605             Bruno Haible  <bruno@clisp.org>
61606
61607         Add support for multiple gnulib-tool invocations in the scope of a
61608         single configure.ac file.
61609         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61610         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61611         with the same contents as the _LIBADD variable.
61612         (func_emit_initmacro_start, func_emit_initmacro_end,
61613         func_emit_initmacro_done): New functions.
61614         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61615         gl_LIBOBJS and gl_LTLIBOBJS.
61616
61617 2006-10-11  Bruno Haible  <bruno@clisp.org>
61618
61619         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61620         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61621         autoreconf. Instead, invoke autopoint explicitly but move back the
61622         *.m4 files from gnulib.
61623
61624 2006-10-11  Bruno Haible  <bruno@clisp.org>
61625
61626         * gnulib-tool (func_usage): Make module names after --create-testdir
61627         optional.
61628         (func_create_testdir): If no module was specified, use nearly all
61629         modules.
61630
61631 2006-10-12  Jim Meyering  <jim@meyering.net>
61632
61633         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61634         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61635         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61636         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61637         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61638         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61639         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61640         (fts_set_stat_required): New function.
61641         (fts_open): Defer the calls to fts_stat, if possible or requested.
61642         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61643         into fts_stat itself.
61644         (fts_read): Perform any required (deferred) fts_stat call.
61645         (fts_build): Likewise, for the directory we're about to open and read.
61646         In the readdir loop, carefully decide whether each entry will require
61647         an eventual call to fts_stat, using dirent.d_type info if available.
61648         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61649         a command line argument into this function.  Update all callers.
61650         Map a return value of FTS_DOT to FTS_D for a command line argument.
61651         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61652         Thanks to Miklos Szeredi for his tenacity and for the initial
61653         bug report about "find" failing on a FUSE-based file system.
61654
61655         * lib/fts.c (fts_open): Use consistent indentation.
61656
61657 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61658
61659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61660         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61661         reported by Jim Meyering.  All uses of cache variables renamed
61662         to match Autoconf's.
61663         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61664         the other one.
61665
61666         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61667         Fix misspelling in diagnostic.
61668
61669 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61670
61671         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61672         defined.  Problem reported by Matthew Woehlke.
61673
61674         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61675         Add support for Tandem NonStop R series.
61676         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61677         Use new macro.
61678
61679         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61680         (has_trailing_slash): Omit size arg; all callers changed.
61681         Omit 'inline', since it doesn't help performance and we'd
61682         need to configure it.
61683         Don't count //, ///, etc. as having a trailing slash.
61684         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61685         (rpl_rename_dest_slash): On failure, use rename's errno rather
61686         than (in some cases) an incorrect or junk errno.
61687         Simplify code by removing need to compute length; this does
61688         cause it to make two passes instead of one over the file name,
61689         but it's worth it.
61690
61691         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61692         change, since Autoconf's version may no longer be appropriate now
61693         that we are using CVS Autoconf's version.  Add support for Tandem.
61694
61695 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61696             Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61699         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61700         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61701         gl_AC_TYPE_LONG_LONG.
61702
61703         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61704         instead of HAVE_LONG_LONG.
61705         * lib/printf-args.c (printf_fetchargs): Likewise.
61706         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61707         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61708         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61709         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61710         gl_AC_TYPE_LONG_LONG.
61711
61712 2006-10-11  Bruno Haible  <bruno@clisp.org>
61713
61714         * m4/longlong.m4: Add comments.
61715         * m4/ulonglong.m4: Likewise.
61716
61717 2006-10-10  Bruno Haible  <bruno@clisp.org>
61718
61719         Make it possible to #define stpcpy, strdup to aliases.
61720         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61721         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61722
61723 2006-10-10  Bruno Haible  <bruno@clisp.org>
61724
61725         Make it possible to #define gcd to an alias.
61726         * lib/gcd.c: Include config.h.
61727
61728 2006-10-10  Bruno Haible  <bruno@clisp.org>
61729
61730         Make it possible to #define c_isascii to an alias.
61731         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61732         defined. Undefine the macros before defining them, to avoid gcc
61733         warnings.
61734         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61735         define NO_C_CTYPE_MACROS early.
61736
61737 2006-10-10  Bruno Haible  <bruno@clisp.org>
61738
61739         Make it possible to #define set_program_name to an alias.
61740         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61741         ENABLE_RELOCATABLE early.
61742
61743 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61744
61745         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61746         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61747         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61748         More generally, don't assume that 64-bit signed int is available
61749         if unsigned int is, and vice versa.
61750         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61751         unsigned symbols, not on their signed counterparts.
61752         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61753         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61754         (UINT64_C, UINTMAX_C):
61755         Likewise.
61756         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61757         unsigned counterparts.
61758         (Have_long_long, Unsigned): New macros.
61759         (Int): Renamed from INT.
61760         (strtoimax): Use the new macros.
61761         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61762         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61763         * modules/inttypes (inttypes.h): Substitute
61764         HAVE_UNSIGNED_LONG_LONG_INT.
61765         * modules/stdint (stdint.h): Likewise.
61766         (Files): Add m4/ulonglong.m4.
61767
61768 2006-10-10  Bruno Haible  <bruno@clisp.org>
61769
61770         Fix a gcc -Wshadow warning.
61771         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61772         to 'bucket'.
61773         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61774         gl_linked_indexof_from_to): Likewise.
61775         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61776         Likewise.
61777         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61778         Likewise.
61779         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61780         Reported by Eric Blake.
61781
61782 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61783
61784         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61785         for NetBSD.  Problem reported by Bruno Haible.
61786
61787 2006-10-09  Jim Meyering  <jim@meyering.net>
61788
61789         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61790         Patch from Bruno Haible.
61791
61792 2006-10-09  Jim Meyering  <jim@meyering.net>
61793
61794         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61795         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61796         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61797
61798 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61799
61800         Don't include <config.h> twice; this doesn't work in some cases,
61801         e.g., when config.h has "#define intmax_t long long int" and
61802         we include <config.h>, <inttypes.h>, <config.h> in that order.
61803         Problem reported by Matthew Woehlke in:
61804         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61805         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61806         * lib/fts-cycle.c: Don't include config.h.
61807         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61808         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61809         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61810         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61811         inttypes.h.
61812         * lib/xstrtoumax.c: Likewise.
61813         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61814         __strtol and the like, so that this module is more like its siblings.
61815         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61816         Remove; no longer needed now that we assume gnulib inttypes.h.
61817
61818 2006-10-08  Bruno Haible  <bruno@clisp.org>
61819
61820         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61821         option.
61822
61823 2006-10-07  Jim Meyering  <jim@meyering.net>
61824
61825         * modules/inttypes (inttypes.h): Revert what seems to have been
61826         an inadvertent part of today's change: use "|", not "/" in the
61827         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61828
61829 2006-10-07  Bruno Haible  <bruno@clisp.org>
61830
61831         * modules/sublist: New file.
61832
61833 2006-10-07  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61836         * modules/argz (argz.h): Likewise.
61837         * modules/arpa_inet (arpa/inet.h): Likewise.
61838         * modules/byteswap (byteswap.h): Likewise.
61839         * modules/configmake (configmake.h): Likewise.
61840         * modules/fcntl (fcntl.h): Likewise.
61841         * modules/fnmatch (fnmatch.h): Likewise.
61842         * modules/getopt (getopt.h): Likewise.
61843         * modules/glob (glob.h): Likewise.
61844         * modules/inttypes (inttypes.h): Likewise.
61845         * modules/netinet_in (netinet/in.h): Likewise.
61846         * modules/poll (poll.h): Likewise.
61847         * modules/stdbool (stdbool.h): Likewise.
61848         * modules/stdint (stdint.h): Likewise.
61849         * modules/sys_select (sys/select.h): Likewise.
61850         * modules/sys_socket (sys/socket.h): Likewise.
61851         * modules/sys_stat (sys/stat.h): Likewise.
61852         * modules/sysexits (sysexits.h): Likewise.
61853         * modules/unistd (unistd.h): Likewise.
61854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61855         Add a "DO NOT EDIT" comment to the generated file.
61856         (func_import): Likewise for gnulib-comp.m4.
61857
61858 2006-10-07  Bruno Haible  <bruno@clisp.org>
61859
61860         * lib/gl_sublist.h: New file.
61861         * lib/gl_sublist.c: New file.
61862
61863 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61864
61865         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61866         name (relative to the original working directory) and the file
61867         name component (relative to the temporary working directory).  All
61868         callers changed.
61869         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61870         * lib/mkdir-p.c (make_dir_parents): Likewise.
61871         * lib/mkdir-p.h (make_dir_parents): Likewise.
61872
61873 2006-10-06  Eric Blake  <ebb9@byu.net>
61874
61875         Define several macros for use by the clean-temp module.
61876         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61877         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61878         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61879
61880         * lib/clean-temp.h (close_stream_temp): New declaration.
61881         * lib/clean-temp.c (includes): Pull in headers according to what
61882         other modules are in use.
61883         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61884
61885 2006-10-06  Bruno Haible  <bruno@clisp.org>
61886
61887         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61888         instead of fopen, fwriteerror.
61889
61890 2006-10-06  Bruno Haible  <bruno@clisp.org>
61891
61892         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61893         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61894         int.
61895         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61896         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61897         Return an error indicator.
61898         Suggested by Eric Blake.
61899
61900 2006-10-06  Bruno Haible  <bruno@clisp.org>
61901
61902         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61903         Reported by Eric Blake.
61904
61905 2006-10-06  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/closeout (Description): Mention stderr too.
61908
61909 2006-10-06  Bruno Haible  <bruno@clisp.org>
61910         and Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         * lib/closeout.c (close_stdout): Also close stderr.
61913         * lib/closeout.h: Update comment.
61914
61915 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61916
61917         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61918         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61919         * lib/dirchownmod.c: Include lchown.h.
61920         * lib/lchown.c: Don't include files that lchown.h now includes.
61921         Don't declare chown, since lchown.h now does that.
61922         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61923         (lchown): Define to rpl_chown if lchown is declared but
61924         does not exist.  Declare using a prototype if lchown is not
61925         declared.  Add a copyright notice.
61926         * lib/mkstemp.h: Include <unistd.h>.
61927         * lib/openat.c: Include lchown.h.
61928
61929         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61930         we now test for that separately.
61931         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61932         rather than O_NOFOLLOW, when testing whether it's possible to
61933         avoid a race condition reliably.
61934         * lib/savewd.c (savewd_chdir): Likewise.
61935
61936         Remove macros that are no longer needed now that stdint.h is
61937         reliable.
61938         * lib/fsusage.c (UINTMAX_MAX): Remove.
61939         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61940         * lib/utimecmp.c (SIZE_MAX): Remove.
61941
61942         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61943
61944         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61945         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61946         O_NOATIME works.
61947
61948 2006-10-05  Bruno Haible  <bruno@clisp.org>
61949
61950         * lib/gl_list.h (gl_sortedlist_search_from_to,
61951         gl_sortedlist_indexof_from_to): New declarations.
61952         (gl_list_implementation): New fields sortedlist_search_from_to,
61953         sortedlist_indexof_from_to.
61954         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61955         inline functions.
61956         * lib/gl_list.c (gl_sortedlist_search_from_to,
61957         gl_sortedlist_indexof_from_to): New functions.
61958         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61959         function.
61960         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61961         (gl_array_sortedlist_search_from_to): New function.
61962         (gl_array_list_implementation): Update.
61963         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61964         function.
61965         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61966         (gl_carray_sortedlist_search_from_to): New function.
61967         (gl_carray_list_implementation): Update.
61968         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61969         gl_linked_sortedlist_indexof_from_to): New functions.
61970         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61971         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61972         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61973         gl_tree_sortedlist_indexof_from_to): New functions.
61974         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61975         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61976         Update.
61977         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61978         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61979         Update.
61980
61981 2006-10-05  Bruno Haible  <bruno@clisp.org>
61982
61983         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61984         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61985         (struct gl_list_implementation): Add fields search_from_to,
61986         indexof_from_to. Remove fields search, indexof.
61987         (gl_list_search): Use the search_from_to method.
61988         (gl_list_search_from, gl_list_search_from_to): New functions.
61989         (gl_list_indexof): Use the indexof_from_to method.
61990         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61991         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61992         (gl_list_search_from, gl_list_search_from_to): New functions.
61993         (gl_list_indexof): Use the indexof_from_to method.
61994         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61995         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61996         gl_array_indexof. Add start_index, end_index arguments.
61997         (gl_array_search_from_to): Renamed from gl_array_search. Add
61998         start_index, end_index arguments.
61999         (gl_array_remove, gl_array_list_implementation): Update.
62000         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62001         gl_carray_indexof. Add start_index, end_index arguments.
62002         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62003         start_index, end_index arguments.
62004         (gl_carray_remove, gl_carray_list_implementation): Update.
62005         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62006         gl_linked_search. Add start_index, end_index arguments.
62007         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62008         start_index, end_index arguments.
62009         (gl_linked_remove): Update.
62010         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62011         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62012         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62013         field to 'size_t'.
62014         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62015         gl_tree_search. Add start_index, end_index arguments.
62016         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62017         start_index, end_index arguments.
62018         (gl_tree_remove): Update.
62019         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62020         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62021         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62022         function.
62023         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62024         gl_tree_search. Add start_index, end_index arguments.
62025         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62026         start_index, end_index arguments.
62027         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62028         Update.
62029         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62030
62031 2006-10-05  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62034
62035         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62036         fwriteerror_temp): New declarations.
62037         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62038         (descriptors): New variable.
62039         (cleanup): First, close the descriptors.
62040         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62041         fclose_temp, fwriteerror_temp): New functions.
62042
62043 2006-10-04  Jim Meyering  <jim@meyering.net>
62044
62045         * lib/fts.c (fts_open): Tiny comment change.
62046
62047 2006-10-04  Bruno Haible  <bruno@clisp.org>
62048
62049         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62050         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62051         gl_LOCK_BODY.
62052         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62053         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62054         gl_LOCK_EARLY_BODY.
62055         (gl_LOCK): Require gl_LOCK_BODY.
62056
62057 2006-10-04  Bruno Haible  <bruno@clisp.org>
62058
62059         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62060         (gl_oset_search_atleast): New declaration.
62061         (struct gl_oset_implementation): Add field 'search_atleast'.
62062         (gl_oset_search_atleast): New inline function.
62063         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62064         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62065         (gl_array_oset_implementation): Update.
62066         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62067         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62068         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62069
62070 2006-10-04  Bruno Haible  <bruno@clisp.org>
62071
62072         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62073
62074 2006-10-03  Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62077         from gl_avltreehash_list_implementation.
62078
62079 2006-10-03  Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/gl_oset.c (gl_oset_add): Fix return type.
62082
62083 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62084
62085         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62086
62087 2006-10-02  Eric Blake  <ebb9@byu.net>
62088
62089         * modules/strnlen (Depends-on): Add extensions.
62090
62091 2006-10-02  Eric Blake  <ebb9@byu.net>
62092
62093         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62094         definition in 2.60+.
62095
62096 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62097
62098         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62099         checks.
62100
62101 2006-10-02  Bruno Haible  <bruno@clisp.org>
62102
62103         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62104         to the AUTOMAKE_OPTIONS.
62105         Reported by Jim Meyering.
62106
62107 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62108
62109         Work around bug in Solaris 10 /proc file system:
62110         /proc/self/fd/NNN/.. isn't the parent directory of
62111         the directory whose file descriptor is NNN.  This needs to
62112         be worked around at run time, not compile time, since a
62113         program might be built on Solaris 8, where things work, and
62114         run on Solaris 10.
62115         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62116         to use the following interface instead:
62117         (OPENAT_BUFFER_SIZE): New macro.
62118         (openat_proc_name): New function.
62119         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62120         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62121         Likewise.
62122         * lib/openat-proc.c: New file.
62123         * modules/openat (Files): Add lib/openat-proc.c.
62124         (Depends-on): Add same-inode, stdbool.
62125         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62126
62127 2006-09-29  Bruno Haible  <bruno@clisp.org>
62128
62129         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62130         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62131         argument. Set stdout_closed before testing for ferror, not after.
62132         (fwriteerror, fwriteerror_no_ebadf): New functions.
62133
62134 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62135
62136         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62137
62138 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62139
62140         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62141         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62142
62143 2006-09-28  Jim Meyering  <jim@meyering.net>
62144
62145         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62146         Include <unistd.h>.
62147
62148 2006-09-28  Bruno Haible  <bruno@clisp.org>
62149
62150         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62151         * modules/linkedhash-list (Depends-on): Likewise.
62152         * modules/rbtreehash-list (Depends-on): Likewise.
62153
62154 2006-09-28  Bruno Haible  <bruno@clisp.org>
62155
62156         * lib/strndup.h: Simplify the redefinition of strndup.
62157         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62158         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62159
62160 2006-09-28  Bruno Haible  <bruno@clisp.org>
62161
62162         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62163         * lib/gl_linkedhash_list.c: Likewise.
62164         * lib/gl_rbtreehash_list.c: Likewise.
62165
62166 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62169         getaddrinfo.
62170
62171         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62172         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62173         it causes <stdio_ext.h> to cause a compile-time error.
62174         Problem reported by Nelson H. F. Beebe.
62175         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62176         of HAVE_DECL___PENDING.
62177
62178         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62179         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62180         declaration.
62181
62182 2006-09-27  Jim Meyering  <jim@meyering.net>
62183
62184         This file could end up with a definition for a function
62185         named __strndup, rather than rpl_strndup on a system with
62186         incomplete weak_alias support.
62187         * lib/strndup.c (strndup): Rename from __strndup.
62188         Remove #defines that used to map __strndup to strndup.
62189         Don't use K&R prototypes.
62190         Remove LIBC-related code, since this file is not sync'd with glibc.
62191         * lib/strndup.h: Revamp, accordingly.
62192         * m4/strndup.m4: Modernize.
62193
62194 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62195
62196         * modules/savewd (Depends-on): Add 'raise'.
62197         * lib/savewd.c: Include <signal.h>, for 'raise'.
62198
62199 2006-09-26  Jim Meyering  <jim@meyering.net>
62200
62201         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62202         when we detect Darwin 8.7.0's acl_get_file bug.
62203         Rearrange to perform the new (below) run-test while $LIBS
62204         contains any acl-related library.  Set USE_ACL at the end.
62205         (gl_ACL_GET_FILE): New function.
62206
62207 2006-09-26  Eric Blake  <ebb9@byu.net>
62208
62209         * lib/verror.c: Include <config.h> unconditionally.
62210
62211 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62212
62213         * modules/clock-time (Maintainer): Add self.
62214         * modules/getlogin_r (Depends-on): Add extensions.
62215
62216 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62217
62218         * modules/clock-time: New module.
62219         * modules/nanosleep (Depends-on): Add clock-time.
62220         * modules/gethrxtime (Depends-on): Likewise.
62221         * modules/gettime (Depends-on): Likewise.
62222         * modules/settime (Depends-on): Likewise.
62223
62224         * modules/fts-lgpl: Depend on openat.
62225         * modules/mkancesdirs: Depend on savewd.
62226         * modules/mkdir-p: Likewise.
62227
62228 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62229
62230         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62231
62232         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62233         `gl_have_arbitrary_file_name_length_limit' to
62234         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62235         actually works between configure runs.
62236
62237 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62238             Bruno Haible  <bruno@clisp.org>
62239
62240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62241
62242 2006-09-25  Jim Meyering  <jim@meyering.net>
62243
62244         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62245         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62246
62247 2006-09-25  Eric Blake  <ebb9@byu.net>
62248
62249         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62250         exec's in 2006-09-18 patch when shuffling fds.
62251
62252 2006-09-25  Bruno Haible  <bruno@clisp.org>
62253
62254         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62255         Reported by Jim Meyering.
62256
62257 2006-09-24  Jim Meyering  <jim@meyering.net>
62258
62259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62260         compare a pointer against a literal "0".  That caused failures with
62261         at least HP-UX's hpcc.
62262
62263 2006-09-22  Simon Josefsson  <jas@extundo.com>
62264
62265         * modules/gc-sha1:
62266         * modules/gc-md4:
62267         * modules/gc-hmac-sha1:
62268         * modules/gc-hmac-md5:
62269         * modules/gc-des:
62270         * modules/gc-arcfour: Distribute more files.
62271
62272 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62273
62274         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62275         (gl_linked_iterator_from_to): Initialize struct completely.
62276         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62277         (gl_tree_iterator_from_to): Likewise
62278         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62279         * lib/gl_array_list.c [lint] (gl_array_iterator)
62280         (gl_array_iterator_from_to): Likewise.
62281         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62282         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62283         (gl_carray_iterator_from_to): Likewise.
62284
62285         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62286         * lib/md4.c (md4_process_block): Remove unused variable.
62287         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62288         parentheses for clarity.
62289
62290 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62291
62292         * modules/bison-i18n (Depends-on): Add gettext.
62293
62294 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62295
62296         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62297         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62298         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62299         also add missing comma that caused broken test.
62300         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62301         stdlib.h, for `abort'.
62302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62303         variables.
62304         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62305         include unistd.h if present, for `rmdir'.
62306         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62307         variables.
62308         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62309         in the process include standard headers for prototypes.
62310         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62311         gets declared on GNU/Linux.
62312         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62313         unistd.h, for `rmdir'.
62314         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62315
62316         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62317         always true.
62318         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62319
62320         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62321
62322 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62323
62324         * gnulib-tool (func_version): Create output all at once.  This
62325         may help avoid triggering unnecessary SIGPIPEs, and at any
62326         rate it doesn't hurt.
62327
62328 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62329             Bruno Haible  <bruno@clisp.org>
62330
62331         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62332         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62333         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62334
62335         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62336         (gl_FUNC_VASPRINTF): Invoke it.
62337
62338 2006-09-22  Bruno Haible  <bruno@clisp.org>
62339
62340         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62341         getloadavg.c as first argument.
62342
62343 2006-09-22  Bruno Haible  <bruno@clisp.org>
62344
62345         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62346         at the beginning of the gl_INIT macro.
62347         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62348         gl_GETLOADAVG.
62349
62350 2006-09-22  Bruno Haible  <bruno@clisp.org>
62351
62352         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62353         module.
62354         Suggested by Ralf Wildenhues.
62355
62356 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         Import this patch from libc:
62359
62360         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62361
62362         * lib/regex_internal.c (re_string_reconstruct): Handle
62363         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62364         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62365         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62366         re_string_context_at.
62367
62368         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62369         now requires it.
62370         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62371         gl_REGEX now does it for us.
62372         (gl_REGEX): Add test taken from
62373         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62374
62375         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62376         Check that large offsets work.  Modernize Autoconf usages.
62377         Prefer "yes" to mean a good thing rather than a bad.
62378         Don't put "#define mkstemp" in config.h, as this might interfere
62379         with standard system headers that "#define mkstemp mkstemp64".
62380
62381         * modules/mkstemp (Depends-on): Add extensions, so that
62382         mkstemp is visible on some platforms.
62383         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62384         (Include): Change to "mkstemp.h" from <stdlib.h>.
62385         (Files): Add mkstemp.h.
62386
62387         * lib/mkstemp.h: New file, since some standard headers
62388         #define mkstemp.
62389         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62390         Include "mkstemp.h".
62391         Make the _LIBC code resemble glibc original more,
62392         e.g., use K&R style.
62393         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62394         (mkstemp): Remove, since mkstemp.h does this for us.
62395         * lib/stdlib--.h: Include mkstemp.h.
62396
62397         Import this patch from libc:
62398
62399         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62400
62401         * lib/tempname.c (__gen_tempname): Change attempts_min
62402         into a macro.  Use preprocessor to decide how to initialize
62403         attempts [Coverity CID 67].
62404
62405 2006-09-20  Bruno Haible  <bruno@clisp.org>
62406
62407         * lib/mkdtemp.c: Import from libc.
62408         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62409                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62410                 attempts_min into a macro.  Use preprocessor to decide how to
62411                 initialize attempts [Coverity CID 67].
62412         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62413                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62414                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62415
62416 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62417
62418         * gnulib-tool (func_exit): New function, to allow to pass the
62419         exit status portably through the trap.  Use everywhere.
62420         (--help, --version): Signal a write error.
62421         (trap): catch SIGPIPE, for write errors.
62422         Exit at the end of the trap, with the correct exit status.
62423
62424 2006-09-19  Karl Berry  <karl@gnu.org>
62425
62426         * doc/gnulib.texi: note about the license texinfo files.
62427
62428 2006-09-19  Eric Blake  <ebb9@byu.net>
62429
62430         * gnulib-tool: Avoid space-tab.
62431
62432 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62435         that prevented coreutils 6.1 from building.  Problem reported
62436         by Petter Reinholdtsen.
62437
62438 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62439
62440         * gnulib-tool (avoidlist): Fix typo that broke options like
62441         --avoid=lock that are used by coreutils bootstrap.
62442
62443 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62444
62445         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62446         more systematically.
62447
62448 2006-09-18  Jim Meyering  <jim@meyering.net>
62449
62450         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62451
62452 2006-09-18  Bruno Haible  <bruno@clisp.org>
62453
62454         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62455
62456 2006-09-18  Bruno Haible  <bruno@clisp.org>
62457
62458         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62459         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62460         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62461         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62462         * m4/gettext.m4: Require autoconf >= 2.52.
62463         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62464         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62465         of gl_cv_header_inttypes_h.
62466
62467 2006-09-18  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/javaversion.c: Include configmake.h.
62470
62471 2006-09-18  Bruno Haible  <bruno@clisp.org>
62472
62473         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62474         avoid that the while loops be executed in a subshell.
62475
62476 2006-09-18  Bruno Haible  <bruno@clisp.org>
62477
62478         * MODULES.html.sh (func_module): Break long lines.
62479         Suggested by Bruce Korb <bkorb@gnu.org>.
62480
62481 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62482
62483         Speed up by a factor of 1.12.
62484         * gnulib-tool (nl): New variable.
62485         (func_import): Rewrite include directive extraction to only read each
62486         directive once.
62487
62488 2006-09-17  Bruno Haible  <bruno@clisp.org>
62489
62490         * modules/javaversion (Makefile.am): Remove DEFS setting.
62491         (Depends-on): Add configmake, for PKGDATADIR definition.
62492
62493 2006-09-17  Bruno Haible  <bruno@clisp.org>
62494
62495         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62496
62497 2006-09-17  Bruno Haible  <bruno@clisp.org>
62498
62499         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62500         (func_modules_transitive_closure, func_modules_add_dummy,
62501         func_modules_to_filelist, func_import, func_create_testdir,
62502         func_create_megatestdir, ...): Use it wherever possible.
62503         Suggested by Ralf Wildenhues.
62504
62505 2006-09-16  Karl Berry  <karl@gnu.org>
62506
62507         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62508         to avoid sectioning errors.
62509         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62510         [ifinfo]: blank line after @center-ed titles.
62511         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62512         Spell FSF address consistently with others.
62513         (These changes approved by rms.)
62514
62515 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62516
62517         Speed up by a factor of 1.61.
62518         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62519         already checked module names again.
62520
62521 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62522
62523         Speed up by a factor of 1.13.
62524         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62525         for new_files, and the input to func_add_or_update.
62526
62527 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62528
62529         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62530         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62531
62532 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * modules/mkancesdirs (Depends-on): Add fcntl.
62535         * modules/savewd: New file.
62536         * MODULES.html.sh (File system functions): Add savewd.
62537
62538         * modules/configmake (Makefile.am): Add support for the
62539         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62540
62541 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62542
62543         * m4/savewd.m4: New file.
62544
62545 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62548         (dirchownmod): New arg FD.  All callers changed.
62549         Use FD rather than opening the directory ourself, as opening is
62550         now the caller's responsibility.
62551         * lib/dirchownmod.h: Likewise.
62552         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62553         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62554         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62555         (test_dir): Remove.
62556         (mkancesdirs): Return length of prefix of FILE that has already
62557         been made, or -2 if there is a child doing the work.  Redo
62558         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62559         ".", and treat ".." specially since it might stray back into
62560         already-created areas.  Use a subprocess if necessary.  New arg
62561         WD; all users changed.  MAKE_DIR function should now return 1
62562         if it creates a directory that is not readable.  Return -2 if
62563         a child process is spun off.
62564         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62565         Adjust signature to match code.
62566         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62567         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62568         all users changed.
62569         * lib/savewd.c, lib/savewd.h: New files.
62570
62571 2006-09-15  Jim Meyering  <jim@meyering.net>
62572
62573         * modules/rename-dest-slash: New module.
62574         * MODULES.html.sh (posix_compat): Add it here.
62575
62576         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62577
62578 2006-09-15  Jim Meyering  <jim@meyering.net>
62579
62580         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62581         file.
62582
62583         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62584
62585 2006-09-15  Jim Meyering  <jim@meyering.net>
62586
62587         * lib/rename-dest-slash.c (has_trailing_slash): Use
62588         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62589         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62590         test before testing whether SRC is a directory.
62591         Suggestions from Bruno Haible.
62592
62593         Avoid a warning about an unused variable.
62594         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62595         into the #ifdef block where it's used.
62596
62597         * lib/rename-dest-slash.c: New file.
62598
62599 2006-09-14  Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/allocsa.c: Include <config.h> unconditionally.
62602         * lib/asnprintf.c: Likewise.
62603         * lib/asprintf.c: Likewise.
62604         * lib/c-strcasecmp.c: Likewise.
62605         * lib/c-strcasestr.c: Likewise.
62606         * lib/c-strncasecmp.c: Likewise.
62607         * lib/c-strstr.c: Likewise.
62608         * lib/classpath.c: Likewise.
62609         * lib/clean-temp.c: Likewise.
62610         * lib/concatpath.c: Likewise.
62611         * lib/copy-file.c: Likewise.
62612         * lib/csharpcomp.c: Likewise.
62613         * lib/csharpexec.c: Likewise.
62614         * lib/execute.c: Likewise.
62615         * lib/fatal-signal.c: Likewise.
62616         * lib/findprog.c: Likewise.
62617         * lib/fwriteerror.c: Likewise.
62618         * lib/gl_array_list.c: Likewise.
62619         * lib/gl_array_oset.c: Likewise.
62620         * lib/gl_avltree_list.c: Likewise.
62621         * lib/gl_avltree_oset.c: Likewise.
62622         * lib/gl_avltreehash_list.c: Likewise.
62623         * lib/gl_carray_list.c: Likewise.
62624         * lib/gl_linked_list.c: Likewise.
62625         * lib/gl_linkedhash_list.c: Likewise.
62626         * lib/gl_list.c: Likewise.
62627         * lib/gl_oset.c: Likewise.
62628         * lib/gl_rbtree_list.c: Likewise.
62629         * lib/gl_rbtree_oset.c: Likewise.
62630         * lib/gl_rbtreehash_list.c: Likewise.
62631         * lib/imaxabs.c: Likewise.
62632         * lib/imaxdiv.c: Likewise.
62633         * lib/javacomp.c: Likewise.
62634         * lib/javaexec.c: Likewise.
62635         * lib/javaversion.c: Likewise.
62636         * lib/linebreak.c: Likewise.
62637         * lib/localcharset.c: Likewise.
62638         * lib/lock.c: Likewise.
62639         * lib/mbchar.c: Likewise.
62640         * lib/mbswidth.c: Likewise.
62641         * lib/mkdtemp.c: Likewise.
62642         * lib/pipe.c: Likewise.
62643         * lib/printf-args.c: Likewise.
62644         * lib/printf-parse.c: Likewise.
62645         * lib/progname.c: Likewise.
62646         * lib/progreloc.c: Likewise.
62647         * lib/readlink.c: Likewise.
62648         * lib/sh-quote.c: Likewise.
62649         * lib/stpcpy.c: Likewise.
62650         * lib/stpncpy.c: Likewise.
62651         * lib/strcasecmp.c: Likewise.
62652         * lib/strcasestr.c: Likewise.
62653         * lib/strcspn.c: Likewise.
62654         * lib/striconv.c: Likewise.
62655         * lib/strncasecmp.c: Likewise.
62656         * lib/strnlen1.c: Likewise.
62657         * lib/strstr.c: Likewise.
62658         * lib/strtok_r.c: Likewise.
62659         * lib/tls.c: Likewise.
62660         * lib/tmpdir.c: Likewise.
62661         * lib/unicodeio.c: Likewise.
62662         * lib/unsetenv.c: Likewise.
62663         * lib/vasnprintf.c: Likewise.
62664         * lib/vasprintf.c: Likewise.
62665         * lib/wait-process.c: Likewise.
62666         * lib/xallocsa.c: Likewise.
62667         * lib/xsetenv.c: Likewise.
62668         * lib/xstriconv.c: Likewise.
62669
62670 2006-09-13  Simon Josefsson  <jas@extundo.com>
62671
62672         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62673         that internally, suggested by Ralf Wildenhues
62674         <Ralf.Wildenhues@gmx.de>.
62675
62676 2006-09-13  Simon Josefsson  <jas@extundo.com>
62677
62678         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62679         @LIBOBJS@.
62680         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62681
62682 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62683
62684         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62685         longer worry about uses that don't define HAVE_CONFIG_H.
62686         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62687         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62688         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62689         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62690         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62691         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62692         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62693         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62694         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62695         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62696         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62697         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62698         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62699         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62700         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62701         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62702         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62703         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62704         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62705         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62706         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62707         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62708         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62709         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62710         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62711         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62712         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62713         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62714         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62715         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62716         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62717         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62718         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62719         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62720         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62721         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62722         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62723         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62724         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62725         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62726         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62727         Likewise.
62728
62729 2006-09-13  Eric Blake  <ebb9@byu.net>
62730
62731         * lib/getopt.c: Fix typo in last commit.
62732
62733 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62734
62735         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62736         dgettext.
62737
62738 2006-09-12  Jim Meyering  <jim@meyering.net>
62739
62740         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62741         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62742         Reported by Nelson H. F. Beebe.
62743
62744 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62745
62746         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62747         program_invocation_name and program_invocation_short_name are
62748         initialized.
62749         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62750         and program_invocation_short_name to argp.h, so they are visible
62751         to user programs.
62752         * lib/argp.h: Likewise
62753
62754 2006-09-10  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62757         m4/inttypes_h.m4, m4/uintmax_t.m4.
62758
62759 2006-09-10  Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62762         gl_AC_TYPE_UINTMAX_T.
62763
62764 2006-09-10  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62767
62768 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62769
62770         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62771         convention.  Text proposed by Bruno Haible.
62772         (struct argp_option): Document the use of N_() wrappers.
62773
62774         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62775         '\v', and translate the two parts separately, instead of feeding
62776         the whole string to gettext.  This allows to exclude
62777         '\v' from the strings visible to the translator by writing doc
62778         strings as N_("..") "\v" N_("..").
62779
62780 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62781
62782         * config/srclist.txt: Undo latest change; the bug was fixed.
62783
62784 2006-09-09  Bruno Haible  <bruno@clisp.org>
62785
62786         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62787         assignments if building a library without libtool.
62788         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62789         in func_emit_lib_Makefile_am.
62790         (func_import): When building a static library libfoo.a, arrange to
62791         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62792         (func_create_testdir): Likewise.
62793         * modules/gc (configure.ac, Makefile.am): If building statically,
62794         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62795         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62796         * modules/striconv (configure.ac, Makefile.am): Likewise.
62797         Based on a suggestion by Ralf Wildenhues.
62798
62799 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62800
62801         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62802         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62803         Also:
62804
62805         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62806         Add year_2050_test to catch glibc bug 2821
62807         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62808
62809         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62810         Prefer #ifdef to #if.
62811
62812         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62813         Return from 'main' instead of calling 'exit'.
62814
62815 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62818         returned the maximum time_t value rather than (time_t) -1.
62819         Problem originally reported by William Bardwell
62820         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62821
62822         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62823         Moved to here ...
62824         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62825         ... from here.
62826
62827 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62828
62829         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62830         2821 is fixed.
62831
62832 2006-09-08  Jim Meyering  <jim@meyering.net>
62833
62834         Don't make generated files read-only.  That would bother too many
62835         people.  However, do retain the ability to work when targets are
62836         read-only: remove the destination and temporary files before writing
62837         them (when generated via sed or echo), or by using the -f option for
62838         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62839         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62840         * modules/byteswap, modules/configmake, modules/fcntl:
62841         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62842         * modules/localcharset, modules/netinet_in, modules/poll:
62843         * modules/stdbool, modules/stdint, modules/sys_select:
62844         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62845
62846 2006-09-08  Jim Meyering  <jim@meyering.net>
62847
62848         Avoid new build failure on FreeBSD 6.0.
62849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62850         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62851         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62852
62853 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62854
62855         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62856
62857 2006-09-07  Jim Meyering  <jim@meyering.net>
62858
62859         Fix global typo in last change: use chmod u-w, not chmod u-x.
62860         Spotted by Paul Eggert and Bruce Korb.
62861         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62862         * modules/byteswap, modules/configmake, modules/fcntl:
62863         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62864         * modules/localcharset, modules/netinet_in, modules/poll:
62865         * modules/stdbool, modules/stdint, modules/sys_select:
62866         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62867
62868 2006-09-06  Jim Meyering  <jim@meyering.net>
62869
62870         Make generated files be read-only.
62871         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62872         Ensure that each generated file is now read-only.
62873         * modules/argz: Likewise.
62874         * modules/arpa_inet: Likewise.
62875         * modules/byteswap: Likewise.
62876         * modules/configmake: Likewise.
62877         * modules/fcntl: Likewise.
62878         * modules/fnmatch: Likewise.
62879         * modules/getopt: Likewise.
62880         * modules/glob: Likewise.
62881         * modules/inttypes: Likewise.
62882         * modules/netinet_in: Likewise.
62883         * modules/poll: Likewise.
62884         * modules/stdbool: Likewise.
62885         * modules/stdint: Likewise.
62886         * modules/sys_select: Likewise.
62887         * modules/sys_socket: Likewise.
62888         * modules/sys_stat: Likewise.
62889         * modules/sysexits: Likewise.
62890         * modules/localcharset: Same as above, but continue using temporary
62891         file named "t-$@" (why different?) rather than the "$@-t" used
62892         everywhere else.
62893
62894         * modules/sysexits (Makefile.am): Replace literal occurrences
62895         of "sysexit.h" more readable, and more consistent, "$@".
62896
62897 2006-09-06  Bruno Haible  <bruno@clisp.org>
62898
62899         * modules/striconv: New file.
62900         * modules/xstriconv: New file.
62901         * MODULES.html.sh (Internationalization functions): Add striconv,
62902         xstriconv.
62903
62904 2006-09-06  Bruno Haible  <bruno@clisp.org>
62905
62906         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62907         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62908         not using libtool correctly.
62909
62910 2006-09-06  Bruno Haible  <bruno@clisp.org>
62911
62912         * lib/striconv.h: New file.
62913         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62914         iconvstring.c.
62915         * lib/xstriconv.h: New file.
62916         * lib/xstriconv.c: New file.
62917
62918 2006-09-06  Bruno Haible  <bruno@clisp.org>
62919
62920         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62921         lib_..._LDFLAGS.
62922
62923 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62924
62925         * lib/argz_.h: Sync from Libtool.
62926
62927         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62928                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62929
62930         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62931
62932 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62933
62934         * modules/trim: New file.
62935
62936 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62937
62938         * lib/trim.h: New file.
62939         * lib/trim.c: New file.
62940
62941 2006-09-05  Bruno Haible  <bruno@clisp.org>
62942
62943         * MODULES.html.sh (String handling): Add trim.
62944
62945 2006-09-04  Karl Berry  <karl@gnu.org>
62946
62947         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62948         until next release.
62949
62950 2006-09-03  Bruno Haible  <bruno@clisp.org>
62951
62952         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62953         correctly.
62954
62955 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62956
62957         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62958         not gl_GETLOADAVG.  Omit unneeded semicolons.
62959         Problems reported by Ralf Wildenhues in
62960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62961         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62962         at the end, which is the usual gnulib style.
62963
62964         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62965         of doing all the work ourselves.
62966         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62967         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62968
62969 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62970
62971         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62972         Problem reported by Ralf Wildenhues in
62973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62974
62975         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62976         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62977
62978 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62981         yesterday's patch by changing test -n to test -z.
62982
62983 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62986         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62987         the former is now obsolescent.
62988
62989         * modules/chdir-long (Depends-on): Add fcntl.
62990
62991 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62992
62993         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62994         obsolescent, and programs should use gnulib instead.
62995         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62996         but with prefixes changed.
62997
62998 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62999
63000         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63001         or stdbool.h, because they might not exist while configuring.
63002
63003         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63004         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63005         does that for us.
63006         (O_DIRECTORY): Remove.
63007
63008 2006-08-31  Eric Blake  <ebb9@byu.net>
63009
63010         * gnulib-tool: Don't let emacs change spaces to TAB.
63011
63012 2006-08-31  Bruno Haible  <bruno@clisp.org>
63013
63014         * gnulib-tool: When calling func_import more than once, do it in a
63015         subshell.
63016         Reported by Eric Blake <ebb9@byu.net>.
63017
63018 2006-08-31  Bruno Haible  <bruno@clisp.org>
63019
63020         * gnulib-tool (nl): Remove variable.
63021         (sed_transform_lib_file): Use more robust test for config-h module.
63022         (func_import): Fix typo in 2006-08-25 patch.
63023
63024 2006-08-31  Bruno Haible  <bruno@clisp.org>
63025
63026         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63027         specified, augment Makefile.am variables instead of assigning them.
63028
63029 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         Work around a bug in both the Linux and SunOS 64-bit kernels:
63032         nanosleep mishandles sleeps for longer than 2**31 seconds.
63033         Problem reported by Frank v Waveren in
63034         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63036         Check for nanosleep bug.
63037         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63038
63039 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63040
63041         Work around a bug in both the Linux and SunOS 64-bit kernels:
63042         nanosleep mishandles sleeps for longer than 2**31 seconds.
63043         Problem reported by Frank v Waveren in
63044         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63045         * lib/nanosleep.c (BILLION): New constant.
63046         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63047         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63048         implementation.
63049
63050 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         * modules/nanosleep (Depends-on): Add gettime.
63053
63054 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63055         and Simon Josefsson  <jas@extundo.com>
63056         and Oskar Liljeblad  <oskar@osk.mine.nu>
63057
63058         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63059         * gnulib-tool (func_import): New license type 'unmodifiable license
63060         text'.
63061         * modules/fdl: Use it.  Longer description.
63062         * module/gpl, module/lgpl: New files.
63063
63064 2006-08-30  Jim Meyering  <jim@meyering.net>
63065
63066         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63067         shadowing the parameter.
63068
63069 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63070
63071         Sync from Libtool:
63072
63073         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63074
63075         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63076         sharing with gnulib.  Report by Eric Blake.
63077
63078 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         * modules/isapipe: New file.
63081         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63082
63083 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * modules/configmake (Makefile.am): Add a comment, and omit
63086         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63087         by Bruno Haible.
63088
63089 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         * m4/isapipe.m4: New file.
63092
63093 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         * lib/isapipe.c, lib/isapipe.h: New files.
63096
63097 2006-08-29  Jim Meyering  <jim@meyering.net>
63098
63099         * modules/configmake (Makefile.am): Make configmake.h depend on
63100         Makefile.  Otherwise, a stale configmake.h could hang around.
63101
63102 2006-08-29  Eric Blake  <ebb9@byu.net>
63103
63104         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63105         resolution of upstream bug 3044.
63106
63107 2006-08-29  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/localcharset (Depends-on): Add configmake.
63110         (Makefile.am): Remove setting of LIBDIR through DEFS.
63111
63112 2006-08-29  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63115         defined.
63116
63117 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63118
63119         * modules/fcntl: New file.
63120         * modules/chdir-safer (Depends-on): Add fcntl.
63121         * modules/fts: Likewise.
63122         * modules/mkdir-p: Likewise.
63123
63124         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63125         This undoes the most recent change, since we're now addressing the
63126         problem in a different way.
63127
63128         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63129         into output, since the output might be called Makefile.am even
63130         if $makefile_name is something different.
63131         (func_import): Use $makefile_am rather than
63132         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63133         empty.
63134
63135         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63136
63137 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63138
63139         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63140         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63141         recent change to stdint.m4, since we're now addressing the problem in a
63142         different way.
63143
63144 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         * m4/fcntl_h.m4: New file.
63147
63148 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * lib/fcntl_.h: New file.
63151         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63152         the fcntl module.
63153         * lib/dirchownmod.c: Likewise.
63154         * lib/fts.c: Likewise.
63155
63156         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63157         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63158         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63159         just before including <inttypes.h>, to avoid circular inclusion.
63160
63161 2006-08-28  Jim Meyering  <jim@meyering.net>
63162
63163         * doc/visibility.texi: Actually read and correct the grammar of the
63164         sentence affected by yesterday's change.
63165
63166 2006-08-28  Eric Blake  <ebb9@byu.net>
63167
63168         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63169         needs wrapper.
63170
63171 2006-08-28  Eric Blake  <ebb9@byu.net>
63172
63173         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63174
63175 2006-08-28  Eric Blake  <ebb9@byu.net>
63176
63177         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63178
63179 2006-08-28  Bruno Haible  <bruno@clisp.org>
63180
63181         * modules/c-strstr: New file, from GNU gettext.
63182         * MODULES.html.sh (String handling): Add c-strstr.
63183
63184 2006-08-28  Bruno Haible  <bruno@clisp.org>
63185
63186         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63187         macros.
63188         Reported by Eric Blake.
63189
63190 2006-08-28  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63193         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63194         * lib/vasprintf.c: Include errno.h, limits.h.
63195         (EOVERFLOW): New fallback definition.
63196         (vasprintf): Test here whether the string length is > INT_MAX.
63197         * lib/vsnprintf.c: Include errno.h, limits.h.
63198         (EOVERFLOW): New fallback definition.
63199         (vsnprintf): Fix bug when generated string was too long for the buffer.
63200         Test here whether the string length is > INT_MAX.
63201
63202 2006-08-28  Bruno Haible  <bruno@clisp.org>
63203
63204         * lib/inttypes_.h (SCNX*): Remove definitions.
63205         Reported by Eric Blake.
63206
63207 2006-08-28  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/c-strstr.h: New file, from GNU gettext.
63210         * lib/c-strstr.c: New file, from GNU gettext.
63211
63212 2006-08-28  Bruno Haible  <bruno@clisp.org>
63213
63214         * gnulib-tool: Reorder some statements.
63215
63216 2006-08-28  Bruno Haible  <bruno@clisp.org>
63217
63218         * gnulib-tool: New option --makefile-name.
63219         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63220         $makefile_name.
63221         (func_import): Write $makefile_name to the cache file, and read it from
63222         there unless explicitly specified. Use $makefile_name as file name
63223         instead of Makefile.am. Adjust the recommendations accordingly.
63224
63225 2006-08-28  Bruno Haible  <bruno@clisp.org>
63226
63227         * gnulib-tool (func_verify_module): Check against misapplying patch.
63228
63229 2006-08-28  Bruno Haible  <bruno@clisp.org>
63230
63231         * gnulib-tool (func_relativize, func_relconcat): New functions.
63232         Give an error if --local-dir is given with --update.
63233         Remove trailing slashes from $local_gnulib_dir.
63234         (func_import): Store the relativized $local_gnulib_dir in
63235         gnulib-cache.m4, and read it from there if not specified explicitly.
63236
63237 2006-08-28  Bruno Haible  <bruno@clisp.org>
63238
63239         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63240         is the current directory. Respect also $local_gnulib_dir.
63241
63242 2006-08-28  Bruno Haible  <bruno@clisp.org>
63243             Simon Josefsson  <jas@extundo.com>
63244
63245         BeOS portability.
63246         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63247
63248 2006-08-27  Jim Meyering  <jim@meyering.net>
63249
63250         * doc/visibility.texi: Remove duplicate word: "pointer".
63251
63252 2006-08-26  Bruno Haible  <bruno@clisp.org>
63253
63254         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63255         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63256         (Makefile.am): Create inttypes.h from inttypes_.h.
63257         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63258
63259         * modules/imaxabs: New file.
63260
63261         * modules/imaxdiv: New file.
63262
63263 2006-08-26  Bruno Haible  <bruno@clisp.org>
63264
63265         * m4/inttypes.m4: New file.
63266         * m4/_inttypes_h.m4: Remove file.
63267         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63268         PRI_MACROS_BROKEN.
63269         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63270
63271         * m4/imaxabs.m4: New file.
63272
63273         * m4/imaxdiv.m4: New file.
63274
63275 2006-08-26  Bruno Haible  <bruno@clisp.org>
63276
63277         * lib/inttypes_.h: New file.
63278         * lib/inttypes.h: Remove file.
63279         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63280
63281         * lib/imaxabs.c: New file.
63282
63283         * lib/imaxdiv.c: New file.
63284
63285 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63286
63287         New config-h module, so that "make" output needn't be cluttered
63288         by -DHAVE_CONFIG_H.
63289         * MODULES.html.sh (Support for building libraries and executables):
63290         Add config-h.
63291         * modules/config-h: New file.
63292         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63293         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63294         the config-h module is used.
63295
63296         New configmake module, so that "make" output needn't be cluttered
63297         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63298         * MODULES.html.sh (Support for building libraries and executables):
63299         Add configmake.
63300         * modules/configmake: New file.
63301
63302 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         * m4/config-h.m4: New file.
63305
63306 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63307
63308         * config/srclist.txt: Add elisp-comp.
63309
63310 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         * MODULES.html.sh (Support for building libraries and executables):
63313         Add elisp-comp.
63314         * build-aux/elisp-comp: New file.
63315         * modules/elisp-comp: New file.
63316
63317 2006-08-24  Bruno Haible  <bruno@clisp.org>
63318
63319         * gnulib-tool (func_create_testdir): Use non-default values of
63320         sourcebase and m4base.
63321
63322 2006-08-24  Bruno Haible  <bruno@clisp.org>
63323
63324         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63325         HTML structure.
63326
63327 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         * modules/openat (Depends-on): Add lchown.
63330
63331 2006-08-23  Bruno Haible  <bruno@clisp.org>
63332
63333         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63334         of gl_LOCK_EARLY instead of gl_LOCK.
63335
63336 2006-08-23  Bruno Haible  <bruno@clisp.org>
63337
63338         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63339         on OSF/1 to no.
63340         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63341
63342 2006-08-23  Bruno Haible  <bruno@clisp.org>
63343
63344         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63345         as unusable.
63346
63347         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63348         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63349         (gl_LOCK): New macro.
63350
63351 2006-08-22  Simon Josefsson  <jas@extundo.com>
63352
63353         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63354         to md5 module.
63355
63356 2006-08-22  Simon Josefsson  <jas@extundo.com>
63357
63358         * MODULES.html.sh: Add "Support for maintaining and release
63359         projects".
63360
63361         * build-aux/gnupload: New file, from coreutils.
63362
63363 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         Avoid the need for AC_LIBSOURCES in m4 macros.
63366         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63367         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63368         * modules/check-version (EXTRA_DIST): Add check-version.h.
63369         * modules/crc (EXTRA_DIST): Add crc.h.
63370         * modules/des (EXTRA_DIST): Add des.h.
63371         * modules/gc (EXTRA_DIST): Add gc.h.
63372         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63373         * modules/getline (EXTRA_DIST): Add getline.h.
63374         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63375         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63376         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63377         * modules/md2 (EXTRA_DIST): Add md2.h.
63378         * modules/md4 (EXTRA_DIST): Add md4.h.
63379         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63380         * modules/read-file (EXTRA_DIST): Add read-file.h.
63381         * modules/readline (EXTRA_DIST): Add readline.h.
63382         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63383         rijndael-api-fst.h.
63384
63385 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * m4/rijndael.m4 (gl_ARCFOUR):
63388         * m4/arctwo.m4 (gl_ARCTWO):
63389         * m4/check-version.m4 (gl_CHECK_VERSION):
63390         * m4/crc.m4 (gl_CRC):
63391         * m4/des.m4 (gl_DES):
63392         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63393         * m4/gc.m4 (gl_GC):
63394         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63395         * m4/getline.m4 (gl_FUNC_GETLINE):
63396         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63397         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63398         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63399         * m4/md2.m4 (gl_MD2):
63400         * m4/md4.m4 (gl_MD4):
63401         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63402         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63403         * m4/readline.m4 (gl_FUNC_READLINE):
63404         * m4/rijndael.m4 (gl_RIJNDAEL):
63405         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63406         to get the necessary .h files and whatnot.
63407
63408 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63411         gnulib rather than the other way around.
63412         * config/srclistvars.sh (COREUTILS): Remove.
63413
63414 2006-08-22  Jim Meyering  <jim@meyering.net>
63415
63416         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63417
63418         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63419
63420 2006-08-22  Eric Blake  <ebb9@byu.net>
63421
63422         * modules/regexprops-generic: New file.
63423         * MODULES.html.sh (Support for building documentation): List it.
63424
63425 2006-08-22  Eric Blake  <ebb9@byu.net>
63426
63427         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63428         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63429         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63430         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63431
63432 2006-08-22  Bruno Haible  <bruno@clisp.org>
63433
63434         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63435         and lib_LTLIBRARIES like the other lib_* variables.
63436
63437 2006-08-22  Bruno Haible  <bruno@clisp.org>
63438
63439         * build-aux/x-to-1.in: New file, from GNU gettext.
63440
63441 2006-08-22  Bruno Haible  <bruno@clisp.org>
63442
63443         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63444         <utmpx.h> exists.
63445
63446 2006-08-22  Bruno Haible  <bruno@clisp.org>
63447
63448         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63449         <utmpx.h> exists.
63450
63451 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         BeOS portability.
63454         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63455         exist.
63456         Problem reported by Bruno Haible.
63457
63458 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         Avoid the need for AC_LIBSOURCES in m4 macros.
63461         * modules/acl (EXTRA_DIST): Add acl.h.
63462         * modules/argmatch (Files): Add m4/argmatch.m4.
63463         (configure.ac): Add gl_ARGMATCH.
63464         (EXTRA_DIST): Renamed from lib_SOURCES, for
63465         consistency with the other modules.  Remove argmatch.c.
63466         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63467         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63468         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63469         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63470         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63471         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63472         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63473         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63474         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63475         * modules/closeout (EXTRA_DIST): Add closeout.h.
63476         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63477         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63478         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63479         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63480         dirname.h; remove basename.c and stripslash.c.
63481         * modules/exclude (EXTRA_DIST): Add exclude.h.
63482         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63483         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63484         * modules/file-type (EXTRA_DIST): Add file-type.h.
63485         * modules/filemode (EXTRA_DIST): Add filemode.h.
63486         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63487         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63488         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63489         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63490         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63491         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63492         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63493         * modules/getdate (EXTRA_DIST): Add getdate.c.
63494         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63495         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63496         * modules/getpass (EXTRA_DIST): Add getpass.h.
63497         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63498         * modules/group-member (EXTRA_DIST): Add group-member.h.
63499         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63500         * modules/hash (EXTRA_DIST): Add hash.h.
63501         * modules/human (EXTRA_DIST): Add human.h.
63502         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63503         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63504         * modules/lchown (EXTRA_DIST): Add lchown.h.
63505         * modules/long-options (EXTRA_DIST): Add long-options.h.
63506         * modules/lstat (EXTRA_DIST): Add lstat.h.
63507         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63508         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63509         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63510         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63511         * modules/memxor (EXTRA_DIST): Add memxor.h.
63512         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63513         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63514         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63515         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63516         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63517         * modules/physmem (EXTRA_DIST): Add physmem.h.
63518         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63519         * modules/posixver (EXTRA_DIST): Add posixver.h.
63520         * modules/quote (EXTRA_DIST): Add quote.h.
63521         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63522         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63523         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63524         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63525         regex_internal.h regexec.c.
63526         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63527         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63528         * modules/same (EXTRA_DIST): Add same.h.
63529         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63530         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63531         * modules/savedir (EXTRA_DIST): Add savedir.h.
63532         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63533         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63534         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63535         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63536         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63537         * modules/strdup (EXTRA_DIST): Add strdup.h.
63538         * modules/strftime (EXTRA_DIST): Add strftime.h.
63539         * modules/strndup (EXTRA_DIST): Add strndup.h.
63540         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63541         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63542         * modules/time_r (EXTRA_DIST): Add time_r.h.
63543         * modules/timespec (EXTRA_DIST): Add timespec.h.
63544         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63545         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63546         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63547         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63548         * modules/userspec (EXTRA_DIST): Add userspec.h.
63549         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63550         * modules/utimens (EXTRA_DIST): Add utimens.h.
63551         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63552         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63553         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63554         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63555         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63556         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63557         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63558         * modules/yesno (EXTRA_DIST): Add yesno.h.
63559
63560 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63561
63562         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63563
63564         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63565         * m4/dev-ino.m4, same-inode.m4: Remove.
63566
63567         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63568         * m4/acl.m4 (AC_FUNC_ACL):
63569         * m4/backupfile.m4 (gl_BACKUPFILE):
63570         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63571         * m4/canon-host.m4 (gl_CANON_HOST):
63572         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63573         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63574         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63575         * m4/cloexec.m4 (gl_CLOEXEC):
63576         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63577         * m4/closeout.m4 (gl_CLOSEOUT):
63578         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63579         * m4/dirname.m4 (gl_DIRNAME):
63580         * m4/exclude.m4 (gl_EXCLUDE):
63581         * m4/exitfail.m4 (gl_EXITFAIL):
63582         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63583         * m4/file-type.m4 (gl_FILE_TYPE):
63584         * m4/filemode.m4 (gl_FILEMODE):
63585         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63586         * m4/fpending.m4 (gl_FUNC_FPENDING):
63587         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63588         * m4/fts.m4 (gl_FUNC_FTS):
63589         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63590         * m4/getdate.m4 (gl_GETDATE):
63591         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63592         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63593         * m4/getpass.m4 (gl_FUNC_GETPASS):
63594         * m4/gettime.m4 (gl_GETTIME):
63595         * m4/getugroups.m4 (gl_GETUGROUPS):
63596         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63597         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63598         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63599         * m4/hash.m4 (gl_HASH):
63600         * m4/idcache.m4 (gl_IDCACHE):
63601         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63602         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63603         * m4/long-options.m4 (gl_LONG_OPTIONS):
63604         * m4/lstat.m4 (gl_FUNC_LSTAT):
63605         * m4/md5.m4 (gl_MD5):
63606         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63607         * m4/memcoll.m4 (gl_MEMCOLL):
63608         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63610         * m4/memxor.m4 (gl_MEMXOR):
63611         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63612         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63613         * m4/modechange.m4 (gl_MODECHANGE):
63614         * m4/mountlist.m4 (gl_MOUNTLIST):
63615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63616         * m4/openat.m4 (gl_FUNC_OPENAT):
63617         * m4/pathmax.m4 (gl_PATHMAX):
63618         * m4/physmem.m4 (gl_PHYSMEM):
63619         * m4/posixtm.m4 (gl_POSIXTM):
63620         * m4/posixver.m4 (gl_POSIXVER):
63621         * m4/quote.m4 (gl_QUOTE):
63622         * m4/quotearg.m4 (gl_QUOTEARG):
63623         * m4/readtokens.m4 (gl_READTOKENS):
63624         * m4/readutmp.m4 (gl_READUTMP):
63625         * m4/regex.m4 (gl_REGEX):
63626         * m4/safe-read.m4 (gl_SAFE_READ):
63627         * m4/safe-write.m4 (gl_SAFE_WRITE):
63628         * m4/same.m4 (gl_SAME):
63629         * m4/save-cwd.m4 (gl_SAVE_CWD):
63630         * m4/savedir.m4 (gl_SAVEDIR):
63631         * m4/settime.m4 (gl_SETTIME):
63632         * m4/sha1.m4 (gl_SHA1):
63633         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63634         * m4/stat-macros.m4 (gl_STAT_MACROS):
63635         * m4/stat-time.m4 (gl_STAT_TIME):
63636         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63637         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63638         * m4/strdup.m4 (gl_FUNC_STRDUP):
63639         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63640         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63641         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63642         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63643         * m4/time_r.m4 (gl_TIME_R):
63644         * m4/timespec.m4 (gl_TIMESPEC):
63645         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63646         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63647         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63648         * m4/userspec.m4 (gl_USERSPEC):
63649         * m4/utimecmp.m4 (gl_UTIMECMP):
63650         * m4/utimens.m4 (gl_UTIMENS):
63651         * m4/xalloc.m4 (gl_XALLOC):
63652         * m4/xgetcwd.m4 (gl_XGETCWD):
63653         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63654         * m4/xreadlink.m4 (gl_XREADLINK):
63655         * m4/xstrtod.m4 (gl_XSTRTOD):
63656         * m4/yesno.m4 (gl_YESNO):
63657         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63658         to get the necessary .h files and whatnot.
63659
63660 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63661             Bruno Haible  <bruno@clisp.org>
63662
63663         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63664         /bin/sh understanding of '!' conditional negation.
63665
63666 2006-08-21  Jim Meyering  <jim@meyering.net>
63667
63668         * modules/openat (Depends-on): Really alphabetize.
63669
63670         * modules/acl (Depends-on): Add error and quote.
63671
63672         * check-module (find_included_lib_files): Add at-func.c to the
63673         ok-to-include-more-than-once white list.
63674
63675         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63676
63677 2006-08-21  Bruno Haible  <bruno@clisp.org>
63678
63679         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63680         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63681         Reported by Martin Lambers <marlam@marlam.de>.
63682
63683 2006-08-21  Bruno Haible  <bruno@clisp.org>
63684
63685         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63686         specify an installation location, don't emit a noinst_LIBRARIES or
63687         noinst_LTLIBRARIES assignment.
63688
63689 2006-08-21  Bruno Haible  <bruno@clisp.org>
63690
63691         BeOS portability.
63692         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63693         BeOS has mbrtowc() but no <wctype.h>.
63694
63695 2006-08-21  Bruno Haible  <bruno@clisp.org>
63696
63697         BeOS portability.
63698         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63699         exist.
63700
63701 2006-08-21  Bruno Haible  <bruno@clisp.org>
63702
63703         BeOS portability.
63704         * lib/mbchar.h: Include <wctype.h> only if it exists.
63705
63706 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         Remove files that are no longer needed by their respective modules.
63709         * m4/obstack.m4: Remove.
63710         * m4/strerror_r.m4: Remove.
63711         * m4/uint32_t.m4: Remove.
63712         * m4/uintptr_t.m4: Remove.
63713         * m4/ullong_max.m4: Remove.
63714         * m4/xstrtoimax.m4: Remove.
63715         * m4/xstrtoumax.m4: Remove.
63716
63717         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63718         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63719         dependencies now capture this.
63720
63721         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63722         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63723         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63724         * m4/human.m4 (gl_HUMAN): Likewise.
63725         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63726         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63727
63728         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63729
63730         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63731         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63732         stdint.
63733         * m4/human.m4 (gl_HUMAN): Likewise.
63734         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63735         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63736         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63737         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63738         * m4/xstrtol (gl_XSTRTOL): Likewise.
63739
63740         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63741         AC_TYPE_LONG_LONG_INT.
63742         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63743         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63744         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63745         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63746
63747         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63748         on stdbool.
63749
63750         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63751         (gl_PREREQ_XSTRTOUL): Remove.
63752
63753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63754
63755         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63756         mode.
63757
63758 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63759
63760         Add and change modules to make it easier for coreutils to use
63761         gnulib-tool.
63762         * modules/backupfile (Files): Remove m4/d-ino.m4.
63763         (Depends-on): Add d-ino.
63764         * modules/cycle-check (Depends-on): Add stdint.
63765         (lib_SOURCES): Add cycle-check.h.
63766         * modules/d-ino: New module.
63767         * modules/d-type: New module.
63768         * modules/error (Files): Remove m4/strerror_r.m4.
63769         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63770         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63771         m4/inttypes_h.m4, m4/uintmax_t.m4.
63772         (Depends-on): Add stdint.
63773         (lib_SOURCES): Add fsusage.h.
63774         * modules/getcwd (Files): Remove d-ino.m4.
63775         (Depends-on): Add d-ino.
63776         * modules/getndelim2 (Depends-on): Add stdint.
63777         * modules/glob (Files): Remove m4/d-type.m4.
63778         (Depends-on): Add d-type.
63779         * modules/host-os: New module.
63780         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63781         m4/inttypes_h.m4, m4/uintmax_t.m4.
63782         * Depends-on: Add stdint.
63783         (lib_SOURCES): Add human.h.
63784         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63785         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63786         m4/uintmax_t.m4, m4/ulonglong.m4.
63787         (Depends-on): Add stdint.
63788         (EXTRA_DIST): Add inttostr.h.
63789         * modules/lchmod: New module.
63790         * modules/link-follow: New module.
63791         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63792         (Depends-on): Add lchmod.
63793         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63794         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63795         (Depends-on): Add stdint.
63796         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63797         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63798         (Depends-on): Add stdint.
63799         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63800         * modules/perl: New module.
63801         * modules/regex (Depends-on): Add stdint.
63802         * modules/rmdir-errno: New module.
63803         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63804         m4/intmax_t.m4.
63805         (Depends-on): Add stdint.
63806         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63807         m4/uintmax_t.m4.
63808         (Depends-on): Add stdint.
63809         * modules/unlink-busy: New module.
63810         * modules/utimecmp (Depends-on): Add stdint.
63811         * modules/uptime: New module.
63812         * modules/winsz-ioctl: New module.
63813         * modules/winsz-termios: New module.
63814         * modules/xnanosleep (Depends-on): Add nanosleep.
63815         * modules/ullong_max: Remove.
63816         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63817         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63818         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63819         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63820         (Depends-on): Add inttypes.
63821         (lib_SOURCES): Add xstrtol.h.
63822         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63823         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63824         * MODULES.html.sh: Move 'assert' into the assert section.
63825         Move 'dummy' into the linking section.
63826         Remove ullong_max.
63827         Add section for compatibility checks for POSIX:2001 functions,
63828         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63829         winsz-ioctl, and winsz-termios into it.
63830         Add lchmod.
63831         Add top-level Misc section and put host-os, perl, and uptime
63832         into it.
63833
63834 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63837         now assume the stdint module.  Do not include inttypes.h.
63838         * lib/fsusage.h: Likewise.
63839         * lib/getndelim2.c: Likewise.
63840         * lib/human.h: Likewise.
63841         * lib/inttostr.h: Likewise.
63842         * lib/obstack.c: Likewise.
63843         * lib/regex_internal.h: Likewise.
63844         * lib/tempname.c: Likewise.
63845         * lib/utimecmp.c: Likewise.
63846         * lib/xstrtol.h: Likewise.
63847
63848         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63849
63850         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63851         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63852         * lib/xtime.h: Likewise.
63853
63854 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63855
63856         * modules/openat (Files): Add lib/fchmodat.c.
63857         Fixes problem reported by Jay Youngman.
63858
63859 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63860
63861         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63862         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63863
63864 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63865             Bruno Haible  <bruno@clisp.org>
63866
63867         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63868         and is a script that invokes bison. Tighten the code. Add comments.
63869
63870 2006-08-18  Jim Meyering  <jim@meyering.net>
63871
63872         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63873         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63874         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63875         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63876
63877 2006-08-18  Bruno Haible  <bruno@clisp.org>
63878
63879         * modules/bison-i18n: New file.
63880         * MODULES.html.sh (Internationalization functions): Add it.
63881
63882 2006-08-18  Bruno Haible  <bruno@clisp.org>
63883
63884         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63885         sys/statvfs.h. When getmntinfo was found, check its declaration and
63886         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63887
63888 2006-08-18  Bruno Haible  <bruno@clisp.org>
63889
63890         * m4/bison-i18n.m4: New file, from bison.
63891
63892 2006-08-18  Bruno Haible  <bruno@clisp.org>
63893
63894         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63895         (ME_DUMMY): Treat "kernfs" as a dummy.
63896         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63897
63898 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63899
63900         Update from coreutils.
63901
63902         2006-08-15  Jim Meyering  <jim@meyering.net>
63903
63904         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63905
63906         2006-01-17  Jim Meyering  <jim@meyering.net>
63907
63908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63909
63910         2006-01-11  Jim Meyering  <jim@meyering.net>
63911
63912         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63913         Check for the lchmod function.
63914
63915 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63916
63917         Update from coreutils.
63918
63919         * lib/__fpending.h: Add copyright notice.
63920         * lib/fprintftime.h: Likewise.
63921         * lib/savedir.c: Use (C) in copyright notice.
63922         * lib/savedir.h: Likewise.
63923
63924         2006-08-15  Jim Meyering  <jim@meyering.net>
63925
63926         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63927         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63928         in support of the EXPECTED_ERRNO macro.
63929         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63930         definitions.  Instead, define the appropriate symbols and include
63931         "at-func.c".
63932         * lib/mkdirat.c (mkdirat): Likewise.
63933         * lib/fchmodat.c (fchmodat): Likewise.
63934         (ENOSYS): Remove definition.
63935         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63936         it.  Don't include "unistd--.h" -- it wasn't ever used.
63937
63938         2006-01-17  Jim Meyering  <jim@meyering.net>
63939
63940         Rewrite fts.c not to change the current working directory,
63941         by using openat, fstatat, fdopendir, etc..
63942
63943         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63944         (HAVE_OPENAT_SUPPORT): Define.
63945         [_LIBC] (fchdir): Don't undef or define; no longer used.
63946         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63947         Now, this `function' always succeeds, and consumes its file descriptor
63948         parameter -- so callers must not close such FDs.  Update callers.
63949         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63950         (diropen): Add parameter, SP.  Adjust all callers.
63951         Implement using diropen_fd, rather than open.
63952         (fts_open): Initialize new member, fts_cwd_fd.
63953         Remove fts_rft-setting code.
63954         (fts_close): Close fts_cwd_fd, if necessary.
63955         (__opendir2): Define in terms of opendir or opendirat,
63956         depending on whether the FST_NOCHDIR flag is set.
63957         (fts_build): Since fts_safe_changedir consumes its FD, and since
63958         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63959         and close the dup'd file descriptor upon failure.
63960         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63961         (fts_safe_changedir): Tweak semantics to reflect that this function
63962         now calls cwd_advance_fd and hence consumes its FD argument.
63963         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63964         [struct FTS] (fts_rft): Remove now-unused member.
63965         [struct FTS] (fts_cycle.state): Improve comment.
63966
63967         * lib/openat.c (openat_needs_fchdir): New function.
63968         * lib/openat.h (openat_needs_fchdir): Declare it.
63969
63970 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63971
63972         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63973         Problem and fix reported by Pádraig Brady in
63974         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63975
63976 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63977
63978         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63979
63980 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         * lib/memcoll.c (memcoll): Optimize for the common case where the
63983         arguments are bytewise equal.
63984
63985 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * doc/regexprops-generic.texi: Add a copyright notice.
63988
63989 2006-08-15  Bruno Haible  <bruno@clisp.org>
63990
63991         * modules/tmpdir (License): Change to LGPL.
63992
63993 2006-08-15  Bruno Haible  <bruno@clisp.org>
63994
63995         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63996         module.
63997
63998 2006-08-14  Simon Josefsson  <jas@extundo.com>
63999
64000         * config/srclist.txt: Add gnupload.
64001
64002 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64003
64004         Change copyright notice from LGPL 2 to GPL 2, since that's the
64005         standard form used in the gnulib repository.
64006         * tests/test-lock.c: Likewise.
64007         * tests/test-stdint.c: Likewise.
64008         * tests/test-tls.c: Likewise.
64009
64010         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64011         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64012         Add copyright notice.
64013
64014         * check-module: Add copyright notice.  Output a copyright
64015         notice if "--version" is specified.
64016         * modules/COPYING: New file.
64017         * tests/test-getaddrinfo.c: Add copyright notice.
64018         * tests/test-verify.c: Likewise.
64019
64020 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         Change copyright notice from LGPL 2 to GPL 2, since that's the
64023         standard form used in the gnulib repository.
64024         * lib/lock.c: LGPL -> GPL.
64025         * lib/lock.h: Likewise.
64026         * lib/strnlen1.c: Likewise.
64027         * lib/strnlen1.h: Likewise.
64028         * lib/tls.c: Likewise.
64029         * lib/tls.h: Likewise.
64030         * lib/tmpdir.c: Likewise.
64031
64032         * lib/TODO: Remove; this belongs only in coreutils.
64033
64034 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         Add copyright notices to long-enough files that lack them, since
64037         otherwise the files aren't clearly free.  Use the same notice that
64038         getdate.texi already uses.
64039         * doc/alloca-opt.texi: Add copyright notice.
64040         * doc/alloca.texi: Likewise.
64041         * doc/ctime.texi: Likewise.
64042         * doc/functions.texi: Likewise.
64043         * doc/gcd.texi: Likewise.
64044         * doc/gnulib-tool.texi: Likewise.
64045         * doc/inet_ntoa.texi: Likewise.
64046         * doc/visibility.texi: Likewise.
64047
64048         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64049         * doc/quote.texi: Add copyright notice.
64050
64051         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64052         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64053         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64054         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64055         is now obsolete, and give a pointer to the Sun list.
64056         Add copyright notice.
64057
64058 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * config/srclistvars.sh: Add copyright notice.
64061
64062 2006-08-14  Eric Blake  <ebb9@byu.net>
64063
64064         Import the following change from libc:
64065
64066         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64067
64068         Upstream bug 2997.
64069         * lib/misc/error.c: Add space between program name and message if file
64070         name is missing.
64071
64072 2006-08-12  Karl Berry  <karl@gnu.org>
64073
64074         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64075         remove, these originate in gnulib now.
64076
64077 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64078
64079         * doc/Makefile (standards.info standards.html standards.dvi):
64080         Also depend on make-stds.texi.
64081
64082 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64083
64084         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64085         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64086
64087         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64088         in wchar_t.  Problem reported by Eric Blake.
64089
64090         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64091         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64092         Also, help the compiler to keep LEN in a register.
64093
64094 2006-08-11  Eric Blake  <ebb9@byu.net>
64095
64096         * users.txt: Sort.  Add tar.
64097
64098 2006-08-11  Bruno Haible  <bruno@clisp.org>
64099
64100         * users.txt: New file.
64101
64102 2006-08-11  Bruno Haible  <bruno@clisp.org>
64103
64104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64105         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64106
64107 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         * modules/snprintf (Depends-on): Remove minmax.
64110         (Maintainer): Add self and Bruno.
64111
64112 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64115         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64116         (EOVERFLOW): Define if the system does not.
64117         Do not include "minmax.h"; it wasn't used.
64118         (snprintf): Don't assume size_t promotes to an unsigned type.
64119         Fix bug when generated string was too long for the buffer: the
64120         buffer's contents are supposed to be the initial prefix of the
64121         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64122         exceeds INT_MAX; do the check ourselves.
64123
64124         Import the following changes from libc:
64125
64126         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64127
64128         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64129         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64130         set wc to the byte which couldn't be converted.
64131         (re_string_reconstruct): Don't clear valid_raw_len before calling
64132         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64133         tip_context using re_string_context_at.
64134
64135         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64136
64137         * lib/posix/regex.h: g++ still cannot handled [restrict].
64138
64139         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64140
64141         * lib/posix/regex.h: Remove special handling for VMS.
64142
64143 2006-08-10  Jim Meyering  <jim@meyering.net>
64144
64145         * modules/same-inode: New module.
64146         * modules/dev-ino: New module.
64147         * modules/cycle-check: Depend on these modules, rather than simply
64148         including their .h files.
64149         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64150         required via m4/cycle-check.m4.
64151         * modules/same: Depend on new same-inode module, rather than
64152         including same-inode.h.
64153         * modules/chdir-safer: New file.
64154
64155         * modules/chown (Depends-on): Add stat-macros.
64156
64157 2006-08-10  Jim Meyering  <jim@meyering.net>
64158
64159         * m4/cycle-check.m4: New file.
64160         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64161         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64162
64163 2006-08-10  Eric Blake  <ebb9@byu.net>
64164
64165         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64166         in from original proposal.
64167
64168 2006-08-10  Eric Blake  <ebb9@byu.net>
64169         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64170
64171         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64172         namespace.
64173
64174 2006-08-10  Bruno Haible  <bruno@clisp.org>
64175
64176         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64177         as well.
64178
64179 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         Sync from coreutils.
64182
64183         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64184
64185         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64186         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64187
64188 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64189
64190         * modules/restrict: Remove; no longer needed now that we assume
64191         Autoconf 2.59 or later.
64192         * MODULES.html.sh: Remove 'restrict'.
64193         * modules/argp (Depends-on): Remove 'restrict'.
64194         * modules/base64 (Depends-on): Likewise.
64195         * modules/gc (Depends-on): Likewise.
64196         * modules/getaddrinfo (Depends-on): Likewise.
64197         * modules/glob (Depends-on): Likewise.
64198         * modules/inet_ntop (Depends-on): Likewise.
64199         * modules/inet_pton (Depends-on): Likewise.
64200         * modules/memxor (Depends-on): Likewise.
64201         * modules/regex (Depends-on): Likewise.
64202         * modules/strtok_r (Depends-on): Likewise.
64203         * modules/time_r (Depends-on): Likewise.
64204
64205 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64208         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64209         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64210         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64211         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64212         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64213         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64214         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64215
64216         Merge from coreutils.
64217         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64218         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64219         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64220         * m4/time_r.m4 (gl_TIME_R): Likewise.
64221
64222 2006-08-09  Karl Berry  <karl@gnu.org>
64223
64224         * config/srclist.txt: no more gettext-tools, per Bruno.
64225
64226 2006-08-08  Eric Blake  <ebb9@byu.net>
64227
64228         * modules/verror: New module.
64229         * MODULES.html.sh: Document it.
64230
64231 2006-08-08  Eric Blake  <ebb9@byu.net>
64232
64233         * lib/verror.h, lib/verror.c: New files.
64234
64235 2006-08-08  Eric Blake  <ebb9@byu.net>
64236
64237         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64238         verror_at_line output complies with GNU Coding Standards even when
64239         file is NULL.
64240
64241 2006-08-07  Bruno Haible  <bruno@clisp.org>
64242
64243         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64244         versions of AIX.
64245         Reported by Ralf Wildenhues.
64246
64247 2006-08-07  Bruno Haible  <bruno@clisp.org>
64248
64249         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64250         in an AC_DEFUN. Needed so that the autoconf snippets can use
64251         AC_REQUIRE.
64252
64253 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64254
64255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64256         Initialize pkgdata_DATA.
64257         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64258         overriding it.
64259
64260 2006-08-06  Eric Blake  <ebb9@byu.net>
64261
64262         * lib/error.h: Fold in some upstream changes from glibc.
64263         * lib/error.c: Likewise.
64264
64265 2006-08-04  Bruno Haible  <bruno@clisp.org>
64266
64267         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64268         Make the mostlyclean-local rule depend on mostlyclean-generic.
64269         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64270
64271 2006-07-31  Bruno Haible  <bruno@clisp.org>
64272
64273         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64274         <stdlib.h>, <string.h>.
64275
64276 2006-07-30  Bruno Haible  <bruno@clisp.org>
64277
64278         * modules/readlink (License): Change to LGPL.
64279
64280 2006-07-30  Bruno Haible  <bruno@clisp.org>
64281
64282         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64283         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64284         set PKGDATADIR to point to it.
64285
64286 2006-07-30  Bruno Haible  <bruno@clisp.org>
64287
64288         * modules/csharpexec (configure.ac): Comment out macro invocation.
64289         * modules/javaexec (configure.ac): Likewise.
64290         * modules/javacomp-script (configure.ac): Likewise.
64291
64292         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64293
64294 2006-07-30  Bruno Haible  <bruno@clisp.org>
64295
64296         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64297         linked-list.
64298
64299 2006-07-30  Bruno Haible  <bruno@clisp.org>
64300
64301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64302
64303 2006-07-30  Bruno Haible  <bruno@clisp.org>
64304
64305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64306         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64307         get removed.
64308
64309 2006-07-29  Bruno Haible  <bruno@clisp.org>
64310
64311         Make it possible for gnulib-tool to work with locally modified or
64312         augmented gnulib repositories.
64313         * gnulib-tool (func_usage): Document --local-dir option.
64314         (local_gnulib_dir): New variable.
64315         Handle --local-dir option.
64316         (func_lookup_file): New function.
64317         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64318         (func_get_description, func_get_filelist, func_get_description,
64319         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64320         func_get_automake_snippet, func_get_include_directive,
64321         func_get_license, func_get_maintainer): Use func_lookup_file.
64322         (func_import, func_create_testdir): Use func_lookup_file.
64323
64324 2006-07-29  Bruno Haible  <bruno@clisp.org>
64325
64326         * modules/setenv (Depends-on): Add unistd.
64327
64328 2006-07-29  Bruno Haible  <bruno@clisp.org>
64329
64330         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64331
64332 2006-07-29  Bruno Haible  <bruno@clisp.org>
64333
64334         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64335
64336 2006-07-29  Bruno Haible  <bruno@clisp.org>
64337
64338         * gnulib-tool (import, update): If there is no Makefile.am, look at
64339         aclocal.m4, instead of bailing out.
64340
64341 2006-07-29  Bruno Haible  <bruno@clisp.org>
64342
64343         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64344         Categorize the options by when they are useful.
64345
64346 2006-07-29  Bruno Haible  <bruno@clisp.org>
64347
64348         * gnulib-tool (func_usage): Document option --no-libtool.
64349         Handle option --no-libtool.
64350         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64351         for changed semantics of $libtool variable.
64352         (func_import): Likewise. If libtool is not used, show this through
64353         an option --no-libtool.
64354         (func_create_testdir): Update.
64355
64356 2006-07-29  Bruno Haible  <bruno@clisp.org>
64357
64358         * gnulib-tool (func_import): Extend error message about missing
64359         --doc-base.
64360
64361 2006-07-29  Bruno Haible  <bruno@clisp.org>
64362
64363         * gnulib-tool (func_import): Don't create the $docbase directory if
64364         there is no file to store there.
64365
64366 2006-07-29  Bruno Haible  <bruno@clisp.org>
64367
64368         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64369         relevant, look for configure.ac there, not in the current directory.
64370         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64371
64372 2006-07-29  Bruno Haible  <bruno@clisp.org>
64373
64374         * gnulib-tool (SORT): New variable.
64375         (func_usage): Undocument --assume-autoconf option.
64376         Remove --assume-autoconf option handling.
64377         (autoconf_minversion): Determine from the contents of configure.ac.
64378         (func_import): Remove autoconf_minversion handling.
64379         Suggested by Eric Blake.
64380
64381 2006-07-29  Bruno Haible  <bruno@clisp.org>
64382
64383         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64384
64385 2006-07-29  Bruno Haible  <bruno@clisp.org>
64386
64387         * config/srclist.txt (*setenv.[ch]): Remove rules.
64388
64389 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64390
64391         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64392
64393 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64394
64395         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64396         arpa/inet.h.
64397
64398 2006-07-28  Simon Josefsson  <jas@extundo.com>
64399
64400         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64401         * modules/inet_pton (Depends-on): Likewise.
64402
64403 2006-07-28  Simon Josefsson  <jas@extundo.com>
64404
64405         * m4/netinet_in_h.m4: New file.
64406
64407 2006-07-28  Simon Josefsson  <jas@extundo.com>
64408
64409         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64410         #include's.
64411
64412 2006-07-28  Simon Josefsson  <jas@extundo.com>
64413
64414         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64415         #include's.
64416
64417 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64420         setgid on directories only if they set these bits.
64421         * lib/modechange.h: Remove obsolete comment about masks.
64422
64423 2006-07-28  Eric Blake  <ebb9@byu.net>
64424
64425         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64426         macro expansion.
64427
64428 2006-07-28  Bruno Haible  <bruno@clisp.org>
64429
64430         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64431
64432 2006-07-28  Bruno Haible  <bruno@clisp.org>
64433
64434         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64435
64436 2006-07-28  Bruno Haible  <bruno@clisp.org>
64437
64438         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64439         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64440         Define fallbacks.
64441         Avoids link error on FreeBSD 4.x.
64442         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64443
64444         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64445         encoding.
64446         * lib/mbswidth.c (iswcntrl): Likewise.
64447
64448 2006-07-27  Bruno Haible  <bruno@clisp.org>
64449
64450         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64451         test.
64452
64453 2006-07-27  Bruno Haible  <bruno@clisp.org>
64454
64455         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64456         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64457         defined.
64458
64459 2006-07-26  Eric Blake  <ebb9@byu.net>
64460
64461         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64462
64463 2006-07-26  Eric Blake  <ebb9@byu.net>
64464
64465         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64466         like mingw that lack mkstemp.
64467         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64468         avoid compilation warning on mingw.
64469
64470 2006-07-26  Bruno Haible  <bruno@clisp.org>
64471
64472         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64473         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64474         INT_FAST*_MIN, INTPTR_MIN.
64475
64476 2006-07-25  Bruno Haible  <bruno@clisp.org>
64477
64478         * modules/version-etc (Depends-on): Add stdarg.
64479
64480 2006-07-25  Bruno Haible  <bruno@clisp.org>
64481
64482         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64483         complex commands.
64484
64485 2006-07-25  Bruno Haible  <bruno@clisp.org>
64486
64487         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64488         defined in <stdarg.h> or config.h.
64489
64490 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64491
64492         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64493         (gl_STDIO_SAFER): Remove.
64494
64495 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64496
64497         * MODULES.html.sh (File stream based Input/Output):
64498         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64499         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64500         * modules/fopen-safer, modules/tmpfile-safer: New files.
64501         * modules/stdio-safer: Remove.
64502
64503 2006-07-24  Bruno Haible  <bruno@clisp.org>
64504
64505         * modules/tmpdir: New file.
64506         * MODULES.html.sh (File system functions): Add it.
64507
64508 2006-07-24  Bruno Haible  <bruno@clisp.org>
64509
64510         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64511         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64512
64513 2006-07-24  Bruno Haible  <bruno@clisp.org>
64514
64515         * modules/clean-temp: New file.
64516
64517 2006-07-24  Bruno Haible  <bruno@clisp.org>
64518
64519         * m4/tmpdir.m4: New file, from GNU gettext.
64520
64521 2006-07-24  Bruno Haible  <bruno@clisp.org>
64522
64523         * lib/tmpdir.h: New file, from GNU gettext.
64524         * lib/tmpdir.c: New file, from GNU gettext.
64525
64526 2006-07-24  Bruno Haible  <bruno@clisp.org>
64527
64528         * lib/clean-temp.h: New file, from GNU gettext.
64529         * lib/clean-temp.c: New file, from GNU gettext.
64530
64531 2006-07-23  Eric Blake  <ebb9@byu.net>
64532
64533         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64534         (Depends-on): Add binary-io.
64535
64536 2006-07-23  Eric Blake  <ebb9@byu.net>
64537
64538         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64539
64540 2006-07-23  Eric Blake  <ebb9@byu.net>
64541
64542         * lib/tmpfile-safer.c: New file.
64543         * lib/stdio-safer.h (fopen_safer): Add prototype.
64544         * lib/stdio--.h (tmpfile): Make safer.
64545
64546 2006-07-23  Bruno Haible  <bruno@clisp.org>
64547
64548         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64549         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64550         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64551         gl_linked_remove_at): Use it.
64552
64553 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64554         and Simon Josefsson <jas@extundo.com>
64555
64556         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64557
64558         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64559
64560 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * modules/close-stream: New file.
64563         * modules/closeout (Description): Make it clear that it exits
64564         with a diagnostic on error.
64565         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64566         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64567
64568 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * m4/close-stream.m4: New file.
64571
64572 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         * lib/close-stream.c, lib/close-stream.h: New files.
64575
64576 2006-07-22  Bruno Haible  <bruno@clisp.org>
64577
64578         Merge from GNU gettext 0.15.
64579
64580         2006-05-01  Bruno Haible  <bruno@clisp.org>
64581
64582                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64583
64584         2006-07-22  Bruno Haible  <bruno@clisp.org>
64585
64586                 * modules/javaversion: New file.
64587                 * MODULES.html.sh (Java): Add javaversion.
64588
64589         2006-03-12  Bruno Haible  <bruno@clisp.org>
64590
64591                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64592
64593         2005-12-04  Bruno Haible  <bruno@clisp.org>
64594
64595                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64596                 (untested).
64597
64598         2006-06-21  Bruno Haible  <bruno@clisp.org>
64599
64600                 Avoid warnings from recent versions of mcs.
64601                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64602                 -o, -L, -r any more. Use options documented since mcs-1.0
64603                 instead. Similarly for -g.
64604
64605         2005-12-04  Bruno Haible  <bruno@clisp.org>
64606
64607                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64608                 .resources, not .resource.
64609
64610         2005-07-09  Bruno Haible  <bruno@clisp.org>
64611
64612                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64613                 add a .dll suffix.
64614                 Reported by Mark Junker <mjscod@gmx.de>.
64615
64616         2006-07-22  Bruno Haible  <bruno@clisp.org>
64617
64618                 * modules/gettext: Upgrade to gettext-0.15.
64619                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64620                 m4/visibility.m4.
64621                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64622
64623 2006-07-22  Bruno Haible  <bruno@clisp.org>
64624
64625         Merge from GNU gettext 0.15.
64626
64627         2006-03-25  Bruno Haible  <bruno@clisp.org>
64628
64629                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64630
64631         2006-07-21  Bruno Haible  <bruno@clisp.org>
64632
64633                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64634                 "1.1".
64635
64636         2006-05-09  Bruno Haible  <bruno@clisp.org>
64637
64638                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64639                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64640                 for the conftestver execution.
64641
64642         2006-05-01  Bruno Haible  <bruno@clisp.org>
64643
64644                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64645                 optional target-version argument. Verify that the compiler
64646                 groks source of the specified source-version, or add -source
64647                 option as necessary. Verify that the compiler produces
64648                 bytecode in the specified target-version, or add -target and
64649                 -source options as necessary. Make the result of the test
64650                 available as variable CONF_JAVAC. Also log error output in
64651                 config.log.
64652
64653         2006-03-11  Bruno Haible  <bruno@clisp.org>
64654
64655                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64656
64657         2006-05-09  Bruno Haible  <bruno@clisp.org>
64658
64659                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64660                 CLASSPATH_SEPARATOR to a semicolon.
64661
64662         2006-03-12  Bruno Haible  <bruno@clisp.org>
64663
64664                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64665                 available as variable CONF_JAVA, for subsequent autoconf
64666                 tests. Also log error output in config.log.
64667
64668         2006-07-19  Bruno Haible  <bruno@clisp.org>
64669
64670                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64671                 that getline works on glibc2 systems. Needed to avoid trouble
64672                 in relocatable.c.
64673                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64674
64675         2005-12-04  Bruno Haible  <bruno@clisp.org>
64676
64677                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64678                 launcher (untested).
64679
64680         2005-12-04  Bruno Haible  <bruno@clisp.org>
64681
64682                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64683
64684         2006-07-22  Bruno Haible  <bruno@clisp.org>
64685
64686                 * gettext.m4: Update from GNU gettext-0.15.
64687                 * nls.m4: Likewise.
64688                 * po.m4: Likewise.
64689                 * inttypes-pri.m4: Likewise.
64690                 * inttypes-h.m4: Renamed from inttypes.m4.
64691                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64692
64693 2006-07-22  Bruno Haible  <bruno@clisp.org>
64694
64695         Merge from GNU gettext 0.15.
64696
64697         2005-07-05  Bruno Haible  <bruno@clisp.org>
64698
64699                 * printf-args.c (printf_fetchargs): Work around broken
64700                 definition of wint_t on mingw.
64701
64702         2005-02-12  Bruno Haible  <bruno@clisp.org>
64703
64704                 * xallocsa.h: Add extern "C" for C++.
64705
64706         2006-05-17  Bruno Haible  <bruno@clisp.org>
64707
64708                 Cygwin portability.
64709                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64710
64711         2006-04-30  Bruno Haible  <bruno@clisp.org>
64712
64713                 * progreloc.c: Include <mach-o/dyld.h> if available.
64714                 (find_executable): Use _NSGetExecutablePath when possible.
64715
64716         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64717
64718                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64719                 function.
64720
64721         2005-12-29  Bruno Haible  <bruno@clisp.org>
64722
64723                 * progreloc.c (set_program_name_and_installdir): Fix
64724                 compilation error.
64725
64726         2005-12-04  Bruno Haible  <bruno@clisp.org>
64727
64728                 Cygwin portability.
64729                 * progreloc.c: Include <windows.h> also on Cygwin.
64730                 (find_executable): Add support for Cygwin.
64731                 (set_program_name_and_installdir): Handle also platforms with
64732                 nonempty EXEEXT.
64733
64734         2006-07-11  Bruno Haible  <bruno@clisp.org>
64735
64736                 * javacomp.c: Fix a comment.
64737                 Reported by Jim Meyering.
64738
64739         2006-04-30  Bruno Haible  <bruno@clisp.org>
64740
64741                 * javacomp.h (compile_java_class): Add source_version,
64742                 target_version arguments.
64743                 * javacomp.c: Rewritten to choose only a compiler that
64744                 respects the specified source_version and target_version.
64745
64746         2006-06-27  Bruno Haible  <bruno@clisp.org>
64747
64748                 Assume correct S_ISDIR macro.
64749                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64750
64751         2006-07-22  Bruno Haible  <bruno@clisp.org>
64752
64753                 * javaversion.h: New file, from GNU gettext.
64754                 * javaversion.c: New file, from GNU gettext.
64755                 * javaversion.java: New file, from GNU gettext.
64756                 * javaversion.class: New file, from GNU gettext.
64757
64758         2006-05-17  Bruno Haible  <bruno@clisp.org>
64759
64760                 Cygwin portability.
64761                 * javaexec.c (execute_java_class): Test for jview program
64762                 also on Cygwin.
64763
64764         2006-04-09  Bruno Haible  <bruno@clisp.org>
64765
64766                 * fatal-signal.c: Don't include string.h.
64767                 (at_fatal_signal): Use a copying loop instead of memcpy.
64768
64769         2005-12-04  Bruno Haible  <bruno@clisp.org>
64770
64771                 * csharpexec.c: Add support for 'clix' launcher (untested).
64772                 (execute_csharp_using_sscli): New function.
64773                 (execute_csharp_program): Call it.
64774
64775         2006-06-21  Bruno Haible  <bruno@clisp.org>
64776
64777                 Avoid warnings from recent versions of mcs.
64778                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64779                 -o, -L, -r any more. Use options documented since mcs-1.0
64780                 instead. Similarly for -g.
64781
64782         2005-07-09  Bruno Haible  <bruno@clisp.org>
64783
64784                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64785                 add a .dll suffix.
64786                 Reported by Mark Junker <mjscod@gmx.de>.
64787
64788         2006-06-17  Bruno Haible  <bruno@clisp.org>
64789
64790                 * config.charset: Update for NetBSD 3.0.
64791
64792         2006-05-17  Bruno Haible  <bruno@clisp.org>
64793
64794                 Cygwin portability.
64795                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64796
64797         2006-05-16  Bruno Haible  <bruno@clisp.org>
64798
64799                 * localcharset.c [CYGWIN]: Include <windows.h>.
64800                 (get_charset_aliases): For Cygwin, return the same CPxxx
64801                 aliases list as under WIN32.
64802                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64803                 the environment variables. Fall back to GetACP().
64804
64805         2006-04-05  Bruno Haible  <bruno@clisp.org>
64806
64807                 * config.charset: Update Juan Manuel Guerrero's address.
64808
64809         2005-02-12  Bruno Haible  <bruno@clisp.org>
64810
64811                 * allocsa.h: Add extern "C" for C++.
64812
64813         2005-02-10  Bruno Haible  <bruno@clisp.org>
64814
64815                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64816                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64817
64818         2006-07-22  Bruno Haible  <bruno@clisp.org>
64819
64820                 * gettext.h: Update to GNU gettext-0.15.
64821
64822 2006-07-22  Bruno Haible  <bruno@clisp.org>
64823
64824         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64825         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64826         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64827
64828 2006-07-21  Eric Blake  <ebb9@byu.net>
64829
64830         * modules/stdlib-safer: New file.
64831         * MODULES.html.sh (File stream based Input/Output): Add
64832         stdlib-safer.
64833
64834 2006-07-21  Eric Blake  <ebb9@byu.net>
64835
64836         * lib/stdlib-safer.h: New file from coreutils, required by
64837         stdlib--.h.
64838
64839 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64840
64841         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64842
64843 2006-07-20  Bruno Haible  <bruno@clisp.org>
64844
64845         * gnulib-tool: Recognize new option --assume-autoconf.
64846         (autoconf_minversion): New variable.
64847         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64848
64849 2006-07-20  Bruno Haible  <bruno@clisp.org>
64850
64851         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64852
64853 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64854
64855         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64856         Reindent and repaginate.
64857
64858 2006-07-19  Derek Price  <derek@ximbiot.com>
64859
64860         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64861         Correct grammar.
64862
64863 2006-07-17  Bruno Haible  <bruno@clisp.org>
64864
64865         * modules/list: New file.
64866         * modules/array-list: New file.
64867         * modules/carray-list, modules/carray-list-tests: New files.
64868         * modules/linked-list, modules/linked-list-tests: New files.
64869         * modules/avltree-list, modules/avltree-list-tests: New files.
64870         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64871         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64872         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64873         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64874         * modules/oset: New file.
64875         * modules/array-oset: New file.
64876         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64877         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64878         * tests/test-carray_list.c: New file.
64879         * tests/test-linked_list.c: New file.
64880         * tests/test-avltree_list.c: New file.
64881         * tests/test-rbtree_list.c: New file.
64882         * tests/test-linkedhash_list.c: New file.
64883         * tests/test-avltreehash_list.c: New file.
64884         * tests/test-rbtreehash_list.c: New file.
64885         * tests/test-avltree_oset.c: New file.
64886         * tests/test-rbtree_oset.c: New file.
64887         * MODULES.html.sh (Container data structures): New section.
64888
64889 2006-07-17  Bruno Haible  <bruno@clisp.org>
64890
64891         * m4/gl_list.m4: New file.
64892
64893 2006-07-17  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/gl_list.h: New file.
64896         * lib/gl_list.c: New file.
64897         * lib/gl_array_list.h: New file.
64898         * lib/gl_array_list.c: New file.
64899         * lib/gl_carray_list.h: New file.
64900         * lib/gl_carray_list.c: New file.
64901         * lib/gl_linked_list.h: New file.
64902         * lib/gl_linked_list.c: New file.
64903         * lib/gl_anylinked_list1.h: New file.
64904         * lib/gl_anylinked_list2.h: New file.
64905         * lib/gl_avltree_list.h: New file.
64906         * lib/gl_avltree_list.c: New file.
64907         * lib/gl_anyavltree_list1.h: New file.
64908         * lib/gl_anyavltree_list2.h: New file.
64909         * lib/gl_rbtree_list.h: New file.
64910         * lib/gl_rbtree_list.c: New file.
64911         * lib/gl_anyrbtree_list1.h: New file.
64912         * lib/gl_anyrbtree_list2.h: New file.
64913         * lib/gl_anytree_list1.h: New file.
64914         * lib/gl_anytree_list2.h: New file.
64915         * lib/gl_linkedhash_list.h: New file.
64916         * lib/gl_linkedhash_list.c: New file.
64917         * lib/gl_anyhash_list1.h: New file.
64918         * lib/gl_anyhash_list2.h: New file.
64919         * lib/gl_avltreehash_list.h: New file.
64920         * lib/gl_avltreehash_list.c: New file.
64921         * lib/gl_rbtreehash_list.h: New file.
64922         * lib/gl_rbtreehash_list.c: New file.
64923         * lib/gl_anytreehash_list1.h: New file.
64924         * lib/gl_anytreehash_list2.h: New file.
64925
64926         * lib/gl_oset.h: New file.
64927         * lib/gl_oset.c: New file.
64928         * lib/gl_array_oset.h: New file.
64929         * lib/gl_array_oset.c: New file.
64930         * lib/gl_avltree_oset.h: New file.
64931         * lib/gl_avltree_oset.c: New file.
64932         * lib/gl_rbtree_oset.h: New file.
64933         * lib/gl_rbtree_oset.c: New file.
64934         * lib/gl_anytree_oset.h: New file.
64935
64936 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64937
64938         * m4/mkancesdirs.m4: New file.
64939         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64940         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64941         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64942         it.
64943
64944 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64945
64946         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64947         * lib/mkancesdirs.h: New files.
64948         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64949         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64950         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64951         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64952         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64953         callers changed.  Revamp internals significantly, by not
64954         attempting to create directories that are temporarily more
64955         permissive than the final results.  Do not attempt to use
64956         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64957         This removes some race conditions, fixes some bugs, and simplifies
64958         things.  Use new dirchownmod function to do owner and mode changes.
64959         * lib/mkdir-p.h: Likewise.
64960         * lib/modechange.c (octal_to_mode): New function.
64961         (struct mode_change): New member mentioned.
64962         (make_node_op_equals): New arg mentioned.  All callers changed.
64963         (mode_compile): Keep track of which mode bits the user has explicitly
64964         mentioned.
64965         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64966         New arg PMODE_BITS, to keep track of which mode bits the user
64967         mentioned; it treats S_ISUID and S_ISGID speciall.
64968         All callers changed.
64969         * lib/modechange.h: Likewise.
64970
64971 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64972
64973         * MODULES.html.sh: Add mkancestors.
64974         * modules/mkancesdirs: New module.
64975         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64976         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64977         The chdir-safer and afs files are now orphans; I'll remove them
64978         unless someone speaks up.
64979         Add lib/dirchownmod.c, lib/dirchownmod.h.
64980         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64981         Add lchown, mkancesdirs.
64982         (Maintainer): Add self.
64983
64984 2006-07-15  Karl Berry  <karl@gnu.org>
64985
64986         * gnulib-tool: help message wording/arrangement.
64987
64988 2006-07-14  Simon Josefsson  <jas@extundo.com>
64989
64990         * doc/gnulib.texi (Libtool and Windows): New section.
64991
64992 2006-07-12  Simon Josefsson  <jas@extundo.com>
64993
64994         * modules/gendocs (License): Fix license, approved by Karl.
64995
64996 2006-07-12  Eric Blake  <ebb9@byu.net>
64997
64998         * MODULES.html.sh: Add gendocs.
64999
65000 2006-07-11  Eric Blake  <ebb9@byu.net>
65001
65002         * modules/fdl: New module, to install doc/fdl.texi.
65003         * MODULES.html.sh: Add new section for documentation modules.
65004         * gnulib-tool: Avoid space-tab.
65005         (--doc-base): New option, to manage files from doc.
65006
65007 2006-07-11  Eric Blake  <ebb9@byu.net>
65008
65009         * m4/absolute-header.m4: Fix comments to match recent change.
65010
65011 2006-07-11  Eric Blake  <ebb9@byu.net>
65012
65013         * gnulib-tool: List --doc-base before --tests-base.
65014
65015 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65016
65017         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65018
65019 2006-07-11  Bruno Haible  <bruno@clisp.org>
65020
65021         * README: Mention where to put documentation.
65022
65023 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65024
65025         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65026
65027 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65030         to stdint.m4.
65031
65032 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65033
65034         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65035         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65036         "no/such/file/stdint.h" when there is no such file, so that
65037         the resulting C code can be parsed by dodgy compilers.
65038         Problems reported by Bob Proulx.
65039
65040 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65041
65042         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65043         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65044         macros into the GNU _D_EXACT_NAMLEN.
65045         * lib/savedir.c:  Likewise.
65046         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65047
65048 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65049         and Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65052         * m4/savedir.m4:
65053         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65054         macros into the GNU _D_EXACT_NAMLEN.
65055
65056 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65057
65058         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65059         around the absolute name, to work around a problem with the HP-UX
65060         11.23 native C compiler, reported by Bob Proulx.
65061
65062 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65063
65064         * doc/maintain.texi, make-stds.texi: Sync from
65065         <http://savannah.gnu.org/projects/gnustandards>.
65066
65067 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65068
65069         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65070
65071 2006-07-09  Jim Meyering  <jim@meyering.net>
65072
65073         * m4/glob.m4: Remove a doubled word in a comment.
65074
65075 2006-07-09  Jim Meyering  <jim@meyering.net>
65076
65077         * lib/argp-pv.c: Remove a doubled word in a comment.
65078         * lib/check-version.c (check_version): Likewise.
65079         * lib/javacomp.c (compile_java_class): Likewise.
65080
65081 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65082
65083         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65084         for the benefit of people using Autoconf 2.60.  If you want to
65085         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65086         (or m4/onceonly.m4, if pre-2.57) manually.
65087
65088 2006-07-08  Jim Meyering  <jim@meyering.net>
65089
65090         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65091         comment.
65092         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65093         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65094         comment.
65095
65096 2006-07-08  Jim Meyering  <jim@meyering.net>
65097
65098         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65099
65100 2006-07-07  Simon Josefsson  <jas@extundo.com>
65101
65102         * tests/test-crc.c: Change expected crc value, the test vector
65103         were probably computed using the old broken crc.c?
65104
65105 2006-07-06  Simon Josefsson  <jas@extundo.com>
65106
65107         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65108         now the canonical place for the M4 file).
65109
65110         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65111         from the sys_socket dependency now.
65112
65113         * modules/inet_pton (Files): Ditto.
65114
65115         * modules/inet_ntop (Files): Ditto.
65116
65117 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65118
65119         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65120         not gl_PREREQ_GETUSERSHELL.
65121
65122 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65123
65124         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65125         with only one argument, for Autoconf 2.60.
65126         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65127         expand to nothing, so add a shell command to avoid syntax error.
65128         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65129
65130 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65131
65132         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65133
65134 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65137         no longer needed.  Check for isblank decl.
65138         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65139         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65140         of existence.
65141
65142 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * lib/getloadavg.c: Use __VMS, not VMS.
65145         * lib/getopt.c: Likewise.
65146         * lib/getpagesize.h: Likewise.
65147         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65148         and probably does not work.
65149
65150 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65151
65152         * lib/.cppi-disable: Add wcwidth.
65153         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65154         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65155         (ISGRAPH): Remove.  All uses changed to isgraph.
65156         (FOLD) [!defined _LIBC]: Remove special case.
65157         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65158         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65159         HAVE_ISBLANK.
65160         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65161         case.
65162
65163 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65164
65165         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65166         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65167         brackets.  Other minor changes to suppress some compiler
65168         warnings.
65169
65170 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65171         and Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65174         of invoking obsolescent AC_HEADER_DIRENT macro.
65175         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65176         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65177         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65178         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65179         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65180         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65181         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65182         * m4/readdir.m4: Remove; no longer needed.
65183
65184 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65185         and Paul Eggert  <eggert@cs.ucla.edu>
65186
65187         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65188         Don't worry about this obsolete case any more.
65189         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65190         directories.
65191         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65192         worry about this obsolete case any more.
65193         * lib/fts.c: Likewise.
65194         * lib/getcwd.c: Likewise.
65195         * lib/glob.h: Likewise.
65196         * lib/savedir.c: Likewise.
65197
65198 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65199
65200         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65201         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65202         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65203         needed.
65204         All uses removed.
65205         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65206         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65207         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65208         needed.
65209         * m4/getdate.m4 (gl_GETDATE): Likewise.
65210         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65211         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65212         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65213         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65214         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65216         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65217         needed.
65218
65219 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65220
65221         * lib/memcasecmp.c: Include <limits.h>.
65222         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65223         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65224         Don't assume isdigit succeeds only on '0' through '9'.
65225
65226 2006-07-05  Eric Blake  <ebb9@byu.net>
65227
65228         * modules/getaddrinfo (Depends-on): Add snprintf.
65229
65230 2006-07-05  Eric Blake  <ebb9@byu.net>
65231
65232         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65233         to avoid 'header present but could not be compiled' on cygwin.
65234
65235 2006-07-05  Eric Blake  <ebb9@byu.net>
65236
65237         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65238         missing from netdb.h.
65239         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65240
65241 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65242
65243         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65244         no longer needed.
65245         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65246         * m4/getdate.m4 (gl_GETDATE): Likewise.
65247         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65248         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65249         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65250         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65251         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65252
65253 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65254
65255         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65256         All uses of is_space replaced by isspace.
65257         * lib/exit.h: Don't talk about STDC_HEADERS.
65258         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65259         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65260         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65261         replaced by isprint etc.
65262         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65263         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65264         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65265         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65266         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65267         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65268
65269 2006-07-05  Bruno Haible  <bruno@clisp.org>
65270
65271         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65272         the function exists, before testing against AIX.
65273         Reported by Martin Lambers <marlam@marlam.de>.
65274
65275 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65276
65277         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65278         From Mark D. Baushke.
65279
65280 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65281
65282         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65283         to the absolute name, not just one, to bypass Sun C 5.8's
65284         "warning: #include of /usr/include/... may be non-portable".
65285
65286 2006-07-04  Eric Blake  <ebb9@byu.net>
65287
65288         * modules/dirname-tests: New test module.
65289         * tests/test-dirname.c: New file, replacing dirname.c
65290         TEST_DIRNAME section that was recently deleted.
65291
65292 2006-07-04  Bruno Haible  <bruno@clisp.org>
65293
65294         Assume ANSI C header files and <ctype.h> functions.
65295         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65296         (mbsnwidth): Use isprint, iscntrl instead.
65297
65298 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         Merge from coreutils.
65301         * MODULES.html.sh: Add xstrtold.
65302         * modules/xstrtold: New file.
65303         * modules/cycle-check (Files): Add lib/same-inode.h.
65304         * modules/dirname (Files): Add m4/double-slash-root.m4.
65305         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65306         * modules/mkdir-p (Files): Add lib/same-inode.h.
65307         * modules/same (Files): Add lib/same-inode.h.
65308
65309 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65312         This is to keep the terminology clean; POSIX talks about
65313         "absolute pathnames", not "full pathnames", but the GNU
65314         Coding Standards say to use "path" for something else;
65315         so use "absolute" to keep both sides happy.
65316         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65317         Set gl_absolute_header, not gl_full_header_path.
65318         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65319         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65320         All uses changed.
65321
65322         Merge from coreutils.
65323
65324         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65327         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65328         want to require the building of c-strtod.o.
65329         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65330         needs -lm directly.
65331         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65332
65333         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65336         --as-needed option if available.  Problem reported by Albert Chin in
65337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65338         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65339         cc merely issues a bunch of annoying warnings for --as-needed
65340         (this problem was reported by Bob Proulx).  Also, try linking with
65341         -lm to detect a bug in binutils 2.16 (this problem was reported
65342         by Ralf Wildenhues).
65343
65344         2006-06-18  Jim Meyering  <jim@meyering.net>
65345
65346         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65347         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65348         macro.
65349         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65350         also check for glibc-2.4's abort-inducing bug.
65351
65352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65353         Low-probability clean-up should be to use rmdir to get rid of
65354         the just-created directory, not unlink.
65355
65356         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65357         configure fail, and request a bug report to inform us about it.
65358         Add a comment that, barring reports to the contrary, in 2007 we'll
65359         assume ftruncate is universally available.
65360
65361         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65364
65365         2006-03-12  Jim Meyering  <jim@meyering.net>
65366
65367         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65368         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65369         * m4/same.m4 (gl_SAME): Likewise.
65370         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65371
65372         2006-03-11  Eric Blake  <ebb9@byu.net>
65373
65374         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65375         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65376         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65377         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65378
65379 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65380
65381         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65382         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65383         reported by Mark D. Baushke, one in
65384         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65385
65386         Merge from coreutils.
65387
65388         * lib/.cppi-disable: Add stdint_.h.
65389         * lib/.cvsignore: Add stdint.h.
65390
65391         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65394         both double and long double versions.
65395         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65396         * lib/xstrtold.c: New file.
65397         * lib/xstrtod.h (xstrtold): New decl.
65398
65399         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         * lib/filemode.c (setst): Remove.
65402         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65403         (arguably) clearer, and the generated code is a bit smaller on my
65404         Debian GNU/Linux stable x86 host.
65405
65406         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65409         Assume that filemode.h includes sys/types.h and sys/stat.h.
65410         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65411         (ftypelet): Reorder to put common cases first, for efficiency.
65412         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65413         to do 'M'.
65414         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65415         of 10, for compatibility with FreeBSD.  All callers changed.
65416         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65417         types that can't be deduced solely from st_mode.  First arg is now a
65418         const pointer.
65419         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65420         (strmode): Renamed from mode_string.
65421         (filemodestring): New decl.
65422         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65423         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65424         needed.
65425         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65426
65427         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65428
65429         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65430         fsusage.h now does that.  Include fsusage.h first, to test interface.
65431         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65432         at most one method (the old code could have generated decls that
65433         didn't conform to C89, not that this was ever exercised).
65434         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65435
65436         2006-03-19  Jim Meyering  <jim@meyering.net>
65437
65438         Work even in a chroot where d_ino values for entries in "/"
65439         don't match the stat.st_ino values for the same names.
65440         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65441         number, iterate through all entries again, using lstat instead.
65442         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65443         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65444
65445         * lib/getcwd.c (__getcwd): Clarify a comment.
65446         Use memcpy in place of a call to strcpy.
65447
65448         2006-03-12  Jim Meyering  <jim@meyering.net>
65449
65450         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65451         matches that of the current directory (which we're about to chdir ".."
65452         out of), then save the dev-ino of the parent, instead.
65453
65454         * lib/same-inode.h (SAME_INODE): New file/macro.
65455         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65456         Include "same-inode.h", instead.
65457         * lib/same.c: Likewise.
65458         * lib/cycle-check.h: Include "same-inode.h".
65459         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65460         * lib/cycle-check.c (SAME_INODE): Remove definition.
65461         * lib/root-dev-ino.h: Include "same-inode.h".
65462
65463         2006-03-11  Eric Blake  <ebb9@byu.net>
65464
65465         * lib/same.c (same_name): s/base_name/last_component/
65466         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65467         * lib/filenamecat.c (file_name_concat): Likewise.
65468
65469         2006-03-11  Eric Blake  <ebb9@byu.net>,
65470                     Paul Eggert  <eggert@cs.ucla.edu>
65471
65472         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65473         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65474         drive prefix.
65475         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65476         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65477         (last_component): New method.
65478         * lib/dirname.c (dir_len): Determine when drive letters need a
65479         subsequent slash.  Preserve // when it is special.
65480         (dir_name): Don't append dot when drive letter is absolute.
65481         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65482         * lib/basename.c (base_name): New semantics - malloc the result.
65483         Preserve // when it is special.  Preserve relative files that look
65484         like drive letters.
65485         (base_len): Preserve // when it is special.
65486         (last_component): New method, similar to old base_name semantics.
65487         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65488         base_name.  Strip redundant slashes from ///.
65489
65490 2006-07-03  Jim Meyering  <jim@meyering.net>
65491
65492         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65493         macro is used before the first cycle_check call.
65494
65495 2006-07-03  Eric Blake  <ebb9@byu.net>
65496
65497         * modules/dirname (Depends-on): Add xstrndup.
65498
65499 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65502         test cases, so that config.log is a bit easier to follow.
65503
65504 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65507         both are 64 bits, since this seems to be the tradition, and this
65508         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65509         we ever run into a host that prefers long long to long in this
65510         case, we'll need another configure-time test.  Problem reported by
65511         Jim Meyering.
65512
65513 2006-07-02  Eric Blake  <ebb9@byu.net>
65514
65515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65516
65517 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65518
65519         * modules/inttypes (Depends-on): No longer depends on stdint.
65520         * modules/stdint (Description): Say more about assumptions.
65521         Say that the fast types might differ.  Say macros are used.
65522         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65523         (Makefile.am): Revise list of substituted symbols to match
65524         new stdint.m4.
65525         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65526         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65527         * tests/test-stdint.c (verify_same_types)
65528         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65529         the code conforms to C99/C89.
65530         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65531         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65532
65533 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65536         but fix a bug, by requiring at least 64 bits.
65537         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65538         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65539         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65540         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65541
65542         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65543         changes.  Make 2.59 a prerequisite.  Check and substitute for
65544         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65545         inttypes.h.  Do not use special include files; just use the
65546         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65547         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65548         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65549         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65550         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65551         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65552         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65553         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65554         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65555         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65556         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65557         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65558         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65559         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65560         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65561         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65562         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65563         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65564         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65565         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65566         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65567         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65568         not check for things that C99 does not require, e.g., int8_t.  If
65569         a test isn't needed unless <stdint.h> isn't working, and is
65570         unlikely to be needed for any other reason, then don't do it
65571         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65572         size_t, since we assume C89 freestanding at least.  Do not check
65573         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65574         the right thing even if the types are not defined.  Instead use:
65575         (gl_STDINT_TYPE_PROPERTIES): New macro.
65576         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65577         testing whether <sys/types.h> clashes, as Autoconf does this for
65578         us now.  All uses removed.
65579         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65580         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65581         (gl_CHECK_TYPE_SAME):
65582         Remove; no longer needed.
65583         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65584         exists, since we'll return 0 anyway in that case.
65585         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65586
65587 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65590         possible collision with system files.
65591         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65592         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65593         WCHAR_MIN and WCHAR_MAX in this case.
65594         (<stddef.h>): Do not include; no longer needed.
65595         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65596         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65597         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65598         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65599         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65600         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65601         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65602         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65603         !defined(__c99))]: Include in this case too, since it's harmless
65604         now.
65605         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65606         dangerous to do so.
65607         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65608         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65609         (_STDINT_MIN, _STDINT_MAX): New macros.
65610         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65611         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65612         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65613         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65614         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65615         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65616         macros, not typedefs; this simplifies things quite a bit.
65617         Use long int for all types narrower than int64_t.
65618         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65619         Define in terms of long long int or int64_t or long int,
65620         not int64_t or int32_t.  This saves some compile-time testing.
65621         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65622         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65623         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65624         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65625         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65626         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65627         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65628         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65629         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65630         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65631         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65632         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65633         undef any previous version and define our own version, for
65634         simplicity and consistency with the new macros for types.
65635         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65636         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65637         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65638         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65639         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65640         @WINT_T_SUFFIX@ to keep things simple here.
65641         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65642         Simplify by assuming typical 8/16/32/64 host, since we're
65643         already doing that elsewhere anyway.
65644         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65645         and assume long long int is 64 bits if available.  This
65646         speeds up 'configure'.
65647
65648 2006-07-01  Eric Blake  <ebb9@byu.net>
65649
65650         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65651         Reported by Andreas Buening.
65652
65653 2006-07-01  Eric Blake  <ebb9@byu.net>
65654
65655         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65656
65657 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65658
65659         * lib/getaddrinfo.c: fixed typo
65660
65661 2006-06-29  Jim Meyering  <jim@meyering.net>
65662
65663         * modules/strftime (Maintainer): Add my name, since with the
65664         FPRINTFTIME changes strftime.c has forked from glibc.
65665
65666 2006-06-29  Eric Blake  <ebb9@byu.net>
65667
65668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65669
65670 2006-06-29  Eric Blake  <ebb9@byu.net>
65671
65672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65673
65674 2006-06-29  Eric Blake  <ebb9@byu.net>
65675
65676         * lib/stat_.h: New file.
65677
65678 2006-06-29  Eric Blake  <ebb9@byu.net>
65679
65680         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65681         unused static function.
65682
65683 2006-06-29  Eric Blake  <ebb9@byu.net>
65684
65685         * doc/functions.texi (Function Portability): Document missing lstat
65686         on mingw.
65687
65688 2006-06-29  Eric Blake  <ebb9@byu.net>
65689
65690         * MODULES.html.sh: Add sys_stat.
65691         * modules/sys_stat: New module.
65692         * modules/mkstemp (Depends-on): Add sys_stat.
65693
65694 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65695
65696         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65697
65698 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65699
65700         * m4/c-bs-a.m4: Removed.
65701
65702 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65703
65704         * lib/strftime.c: Assume strftime() exists.
65705
65706 2006-06-29  Derek Price  <derek@ximbiot.com>
65707
65708         * modules/c-bs-a: Removed - \a is C89.
65709         * MODULES.html.sh: Remove c-bs-a.
65710
65711 2006-06-29  Bruno Haible  <bruno@clisp.org>
65712
65713         * modules/wcwidth (License): Change to LGPL.
65714
65715 2006-06-28  Simon Josefsson  <jas@extundo.com>
65716
65717         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65718         on _WIN32.
65719
65720         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65721         getnameinfo.
65722
65723 2006-06-28  Simon Josefsson  <jas@extundo.com>
65724
65725         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65726
65727 2006-06-28  Simon Josefsson  <jas@extundo.com>
65728
65729         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65730         functions there.  It will succeed on Windows XP, but on Windows
65731         2000 and (presumably) earlier, it will fail, and use the internal
65732         re-implementation.
65733         (use_win32_p): New function.
65734         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65735         Support AI_NUMERICSERV to disable getservbyname.
65736         (getnameinfo): New function, only supports
65737         NI_NUMERICHOST|NI_NUMERICSERV for now.
65738
65739         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65740         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65741         getnameinfo.
65742
65743 2006-06-28  Eric Blake  <ebb9@byu.net>
65744
65745         * modules/wcwidth: New file.
65746         * modules/mbchar (Depends-on): Add wcwidth.
65747         * modules/mbswidth (Depends-on): Add wcwidth.
65748         * MODULES.html.sh: Add wcwidth.
65749
65750 2006-06-28  Eric Blake  <ebb9@byu.net>
65751
65752         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65754
65755 2006-06-28  Eric Blake  <ebb9@byu.net>
65756
65757         * lib/xvasprintf.h: Fix comments.
65758
65759 2006-06-28  Eric Blake  <ebb9@byu.net>
65760
65761         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65762         * lib/mbswidth.c (wcwidth): Move from here...
65763         * lib/wcwidth.h: ...to this new file.
65764
65765 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65766
65767         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65768
65769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65770         it's obsolete.
65771         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65772
65773 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65774
65775         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65776         Autoconf 2.60 says this stuff was obsolete.
65777
65778 2006-06-28  Bruno Haible  <bruno@clisp.org>
65779
65780         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65781
65782 2006-06-28  Bruno Haible  <bruno@clisp.org>
65783
65784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65785         gt_TYPE_WCHAR_T.
65786
65787 2006-06-28  Bruno Haible  <bruno@clisp.org>
65788
65789         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65790         declaration for wcwidth.
65791         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65792
65793 2006-06-28  Bruno Haible  <bruno@clisp.org>
65794
65795         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65796         (mkdir): Define using _mkdir.
65797
65798 2006-06-28  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/getaddrinfo.h: Fix POSIX URL.
65801         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65802         _WIN32.
65803         (use_win32_p): Make static.
65804         (getaddrinfo): Reject service name if it is empty or does not consist
65805         solely of decimal digits, or if its value is > 65535.
65806         (getnameinfo): Remove useless casts.
65807
65808 2006-06-27  Simon Josefsson  <jas@extundo.com>
65809
65810         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65811         Eggert and Martin Lambers.
65812
65813 2006-06-27  Simon Josefsson  <jas@extundo.com>
65814
65815         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65816         Eggert and Martin Lambers.
65817
65818 2006-06-27  Bruno Haible  <bruno@clisp.org>
65819
65820         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65821         result to 0, not to empty.
65822         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65823
65824 2006-06-27  Bruno Haible  <bruno@clisp.org>
65825
65826         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65827
65828 2006-06-26  Simon Josefsson  <jas@extundo.com>
65829
65830         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65831         present.
65832
65833 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65834
65835         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65836         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65838
65839 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65840
65841         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65842
65843 2006-06-26  Bruno Haible  <bruno@clisp.org>
65844
65845         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65846
65847 2006-06-26  Bruno Haible  <bruno@clisp.org>
65848
65849         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65850
65851 2006-06-26  Bruno Haible  <bruno@clisp.org>
65852
65853         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65854         SGI C compiler in pre-C99 mode.
65855         Suggested by Mark D. Baushke and Larry Jones.
65856
65857 2006-06-26  Bruno Haible  <bruno@clisp.org>
65858
65859         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65860         WCHAR_MAX.
65861         Reported by Mark D. Baushke and Larry Jones.
65862
65863 2006-06-26  Bruno Haible  <bruno@clisp.org>
65864
65865         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65866         in pre-C99 mode.
65867         Suggested by Mark D. Baushke and Larry Jones.
65868
65869 2006-06-23  Simon Josefsson  <jas@extundo.com>
65870             Bruno Haible  <bruno@clisp.org>
65871
65872         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65873         Emit mostlyclean-local rule.
65874         (func_emit_tests_Makefile_am): Likewise.
65875         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65876
65877 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65878
65879         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65880
65881 2006-06-23  Bruno Haible  <bruno@clisp.org>
65882
65883         * tests/test-stdint.c: Update to match ISO C 99 Technical
65884         Corrigendum 1.
65885
65886 2006-06-23  Bruno Haible  <bruno@clisp.org>
65887
65888         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65889
65890 2006-06-23  Bruno Haible  <bruno@clisp.org>
65891
65892         * lib/stdint_.h: Treat IRIX like OpenBSD.
65893
65894 2006-06-23  Bruno Haible  <bruno@clisp.org>
65895
65896         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65897         ISO C 99 Technical Corrigendum 1.
65898
65899 2006-06-22  Simon Josefsson  <jas@extundo.com>
65900
65901         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65902         MinGW.
65903
65904 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65905
65906         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65907         needed.  Some compiler complained about some of them.  Problem reported
65908         by Larry Jones in
65909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65910
65911 2006-06-21  Simon Josefsson  <jas@extundo.com>
65912
65913         * tests/test-getaddrinfo.c: New file.
65914
65915         * modules/getaddrinfo-tests: New file.
65916
65917         * MODULES.html.sh: Add inet_pton.
65918
65919         * modules/inet_pton: New file.
65920
65921 2006-06-21  Simon Josefsson  <jas@extundo.com>
65922
65923         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65924         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65925         of using the (limited) gnulib implementation on Windows XP.
65926
65927         * m4/inet_pton.m4: New file.
65928
65929 2006-06-21  Simon Josefsson  <jas@extundo.com>
65930
65931         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65932         variable.
65933
65934         * lib/socket_.h: Don't define WINVER.
65935
65936         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65937         slightly modified to work in gnulib.
65938
65939 2006-06-21  Simon Josefsson  <jas@extundo.com>
65940
65941         * doc/gnulib.texi (Windows sockets): Add.
65942
65943 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * lib/read-file.c (fread_file): Start with buffer allocation of
65946         0 bytes rather than 1 byte; this simplifies the code.
65947         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65948         code to free buffer and save/restore errno.
65949         (internal_read_file): Remove unused local.
65950
65951 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65952
65953         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65954         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65955         Problem reported by Denis Excoffier in
65956         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65957
65958 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65959
65960         * modules/sys_socket, modules/socklen: Include sys/types since
65961         FreeBSD 4.x's sys/socket.h needs it.
65962
65963 2006-06-19  Simon Josefsson  <jas@extundo.com>
65964
65965         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65966
65967 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65970
65971 2006-06-19  Bruno Haible  <bruno@clisp.org>
65972
65973         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65974         and FULL_PATH_INTTYPES_H in angle brackets.
65975         Reported by Mark D. Baushke <mdb@gnu.org>.
65976
65977 2006-06-17  Eric Blake  <ebb9@byu.net>
65978
65979         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65980         errno.
65981
65982 2006-06-17  Bruno Haible  <bruno@clisp.org>
65983
65984         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65985         <sys/inttypes.h>.
65986
65987 2006-06-17  Bruno Haible  <bruno@clisp.org>
65988
65989         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65990         whether errno is declared. Assume <errno.h> declares errno.
65991
65992 2006-06-17  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65995
65996 2006-06-17  Bruno Haible  <bruno@clisp.org>
65997
65998         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65999         problem on Solaris 2.5.1.
66000
66001 2006-06-16  Eric Blake  <ebb9@byu.net>
66002
66003         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66004         * lib/unicodeio.c [!defined errno]: Likewise.
66005         * lib/strtol.c [!defined errno]: Likewise.
66006         * lib/strtod.c [!defined errno]: Likewise.
66007
66008 2006-06-15  Eric Blake  <ebb9@byu.net>
66009
66010         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66011
66012 2006-06-15  Eric Blake  <ebb9@byu.net>
66013
66014         * config/srclist.txt (ssize_t.m4): Lose sync.
66015
66016 2006-06-15  Bruno Haible  <bruno@clisp.org>
66017
66018         * modules/stdint (Files): Include m4/full-header-path.m4,
66019         m4/size_max.m4, m4/wchar_t.m4.
66020         (Makefile.am): Many more substitutions.
66021         * modules/stdint-tests: New file.
66022         * tests/test-stdint.c: New file.
66023
66024 2006-06-15  Bruno Haible  <bruno@clisp.org>
66025
66026         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66027         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66028         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66029         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66030         gl_CHECK_TYPE_SAME): New macros.
66031
66032 2006-06-15  Bruno Haible  <bruno@clisp.org>
66033
66034         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66035
66036 2006-06-15  Bruno Haible  <bruno@clisp.org>
66037
66038         * lib/stdint_.h: Rewritten to be fully auto-configured.
66039         Fixes bug on HP-UX/IA64.
66040
66041 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         * lib/getdate.y (__attribute__): Don't define if already defined.
66044         Problem reported by Larry Jones.
66045         * lib/utimens.c (__attribute__): Likewise.
66046
66047 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66048
66049         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66050         reported by Andreas Schwab.
66051
66052 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66053             Bruno Haible  <bruno@clisp.org>
66054
66055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66056         check for the declaration of strnlen and a run test that exposes the
66057         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66058         rpl_strndup.
66059
66060 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66061             Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66064
66065 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66066
66067         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66068         compile test, for Tru64 4.0D.
66069
66070 2006-05-28  Karl Berry  <karl@gnu.org>
66071
66072         * config/srclist.txt (printf-args.c): lose sync.
66073
66074 2006-05-26  Martin Lambers  <marlam@marlam.de>
66075
66076         * lib/getpass.c: Updates the test for the native W32 API, and adds
66077         missing includes, thus fixing compilation warnings.
66078
66079 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66080
66081         * lib/exclude.c (exclude_fnmatch): New function.
66082         (excluded_file_name): Call exclude_fnmatch.
66083         * lib/exclude.h (excluded_file_name): New prototype
66084
66085 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66086
66087         * lib/tempname.c (small_open, large_open): New macros.
66088         (__open, __open64) [!_LIBC]: Remove.
66089         (__gen_tempname): Use small_open and large_open instead of __open
66090         and __open64.  This fixes a portability bug on HP-UX 11.11i
66091         reported by Simon Wing-Tang in
66092         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66093
66094 2006-05-24  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66097         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66098         Reported by Thorsten Maerz <torte@netztorte.de> via
66099         Aaron Stone <aaron@serendipity.cx>.
66100
66101 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66102
66103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66104         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66105         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66106         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66107         not really conditional on the cache.
66108         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66109
66110 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66113         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66114         (my_usleep): Don't mishandle maximum value.
66115
66116 2006-05-19  Jim Meyering  <jim@meyering.net>
66117
66118         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66119
66120 2006-05-17  Bruno Haible  <bruno@clisp.org>
66121
66122         Cygwin portability.
66123         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66124
66125 2006-05-17  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/stdint_.h: Fix recognition of Cygwin.
66128
66129 2006-05-15  Bruno Haible  <bruno@clisp.org>
66130
66131         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66132         on libtool patch by Ralf Wildenhues.
66133
66134 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66135
66136         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66137         test for C99 conformance; (bool) 0.5 is an integer constant
66138         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66139         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66140
66141 2006-05-11  Simon Josefsson  <jas@extundo.com>
66142
66143         * m4/xvasprintf.m4: Fix obvious typo.
66144
66145 2006-05-11  Jim Meyering  <jim@meyering.net>
66146
66147         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66148         James Lemley.
66149
66150 2006-05-10  Simon Josefsson  <jas@extundo.com>
66151
66152         * lib/md4.c: Typo fix, update copyright years.
66153         (K1, K2): Don't use L because it turn computations into 64-bit on
66154         64-bit platforms.
66155
66156 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66157
66158         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66159         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66160         unwanted sign propagation, e.g., on hosts with 64-bit int.
66161         There still are some problems with reeelly weird theoretical hosts
66162         (e.g., 33-bit int) but it's not worth worrying about now.
66163         * lib/sha1.c (rol): Likewise.
66164         (K1, K2, K3, K4): Remove unnecessary L suffix.
66165
66166 2006-05-10  Bruno Haible  <bruno@clisp.org>
66167
66168         * lib/des.c: Cast to avoid warnings.
66169
66170 2006-05-09  Bruno Haible  <bruno@clisp.org>
66171
66172         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66173         (Depends-on): Depend also on xsize, stdarg.
66174         (configure.ac): Add gl_XVASPRINTF.
66175
66176 2006-05-09  Bruno Haible  <bruno@clisp.org>
66177
66178         * m4/xvasprintf.m4: New file.
66179
66180 2006-05-09  Bruno Haible  <bruno@clisp.org>
66181
66182         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66183         (EOVERFLOW): Define fallback value.
66184         (xstrcat): New function.
66185         (xvasprintf): Recognize the special case of a string concatenation.
66186
66187 2006-05-08  Eric Blake  <ebb9@byu.net>
66188
66189         * gnulib-tool (func_version): Base copyright year on CVS date.
66190         (func_emit_copyright_notice): New function.
66191         (func_emit_lib_Makefile_am): Use it.
66192         (func_emit_tests_Makefile_am): Likewise.
66193         (func_import): Likewise.
66194
66195 2006-05-08  Bruno Haible  <bruno@clisp.org>
66196
66197         * modules/stdarg: New file.
66198         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66199
66200 2006-05-08  Bruno Haible  <bruno@clisp.org>
66201
66202         * m4/stdarg.m4: New file, from GNU gettext.
66203
66204 2006-05-08  Bruno Haible  <bruno@clisp.org>
66205
66206         * config/srclist.txt (build-aux/config.rpath): different from latest
66207         release.
66208
66209 2006-05-08  Bruno Haible  <bruno@clisp.org>
66210
66211         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66212
66213 2006-05-05  Jim Meyering  <jim@meyering.net>
66214
66215         * m4/warning.m4: New file, derived from bison's file by the same name.
66216
66217 2006-05-03  Bruno Haible  <bruno@clisp.org>
66218
66219         * lib/stdint_.h: Shorter URL.
66220         * lib/inttypes.h: Likewise.
66221
66222 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66223
66224         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66225
66226 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         * lib/verify.h: Document the internals better.  Most of this change
66229         was written by Bruno Haible.
66230
66231 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * doc/verify.texi: New file, partly based on a proposal by
66234         Bruno Haible.
66235
66236 2006-05-02  Bruno Haible  <bruno@clisp.org>
66237
66238         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66239         test from here...
66240         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66241
66242 2006-04-29  Bruno Haible  <bruno@clisp.org>
66243
66244         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66245         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66246
66247 2006-04-29  Bruno Haible  <bruno@clisp.org>
66248
66249         * gnulib-tool: Make --update option actually work.
66250
66251 2006-04-29  Bruno Haible  <bruno@clisp.org>
66252
66253         * doc/gcd.texi: New file.
66254         * doc/gnulib.texi: Include it.
66255
66256 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66257
66258         * lib/getdate.y (get_date): When adding relative date, start with the
66259         initial time, not with the result of the first mktime call.
66260
66261 2006-04-25  Bruno Haible  <bruno@clisp.org>
66262
66263         * gnulib-tool (func_import): Output the include directives in three
66264         blocks, sorted separately.
66265         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66266
66267 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66270         to define main with arguments, for C++.  Reported by Eric Blake.
66271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66272         Prefer 'int main ()' to 'int main (void)', for C++.
66273         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66274         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66275         for 'main', for C99 and C++.
66276
66277 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66280         Don't assume that exit status -1 is valid.
66281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66282         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66283         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66284         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66285         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66286         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66287         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66288         functions can be used without declaring them, or that you can
66289         exit with status -1.
66290         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66291
66292 2006-04-24  Karl Berry  <karl@gnu.org>
66293
66294         * config/srclist.txt (longdouble.m4): sync lost.
66295
66296 2006-04-24  Eric Blake  <ebb9@byu.net>
66297
66298         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66299
66300 2006-04-24  Bruno Haible  <bruno@clisp.org>
66301
66302         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66303         poll() implementation in AIX.
66304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66305
66306 2006-04-24  Bruno Haible  <bruno@clisp.org>
66307
66308         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66309         assigned exactly once.
66310
66311 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66312             Bruno Haible  <bruno@clisp.org>
66313
66314         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66315         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66316         for AM_CPPFLAGS.
66317
66318 2006-04-23  Bruno Haible  <bruno@clisp.org>
66319
66320         * modules/copy-file: Depend on unistd.
66321         * modules/execute: Likewise.
66322         * modules/fatal-signal: Likewise.
66323         * modules/findprog: Likewise.
66324         * modules/mkdtemp : Likewise.
66325         * modules/pipe: Likewise.
66326         * modules/wait-process: Likewise.
66327
66328 2006-04-23  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66331         condition was already detected.
66332         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66333
66334 2006-04-23  Bruno Haible  <bruno@clisp.org>
66335
66336         * lib/copy-file.c: Include <unistd.h> unconditionally.
66337         * lib/execute.c: Likewise.
66338         * lib/fatal-signal.c: Likewise.
66339         * lib/findprog.c: Likewise.
66340         * lib/mkdtemp.c: Likewise.
66341         * lib/pipe.h: Likewise.
66342         * lib/pipe.c: Likewise.
66343         * lib/wait-process.h: Likewise.
66344
66345 2006-04-23  Bruno Haible  <bruno@clisp.org>
66346
66347         * gnulib-tool (func_usage): Fix --import description. Document
66348         --update.
66349         (func_import): Create temporary file in a temporary directory, if
66350         --dry-run is specified. Silence errors from 'grep' when there are no
66351         m4 files in $m4dir.
66352         (func_create_testdir): Silence errors from 'grep' when there are no
66353         m4 files in $m4dir.
66354         Reported by Karl Berry <karl@freefriends.org>.
66355
66356 2006-04-20  Bruno Haible  <bruno@clisp.org>
66357
66358         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66359         one argument, so that the code will be portable to Autoconf 2.60.
66360         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66361         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66362         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66363
66364 2006-04-19  Derek Price  <derek@ximbiot.com>
66365             Eric Blake  <ebb9@byu.net>
66366
66367         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66368         rather than "/full/path.h".  Update comment to match.  Shorten &
66369         generalize m4_translit call via AS_TR_CPP.
66370
66371 2006-04-19  Derek Price  <derek@ximbiot.com>
66372             Eric Blake  <ebb9@byu.net>
66373
66374         * lib/inttypes.h: Correct grammar in comment.
66375
66376 2006-04-18  Derek Price  <derek@ximbiot.com>
66377             Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         * modules/inttypes: New file.
66380         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66381
66382 2006-04-18  Derek Price  <derek@ximbiot.com>
66383             Paul Eggert  <eggert@cs.ucla.edu>
66384
66385         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66386         New files.
66387
66388 2006-04-18  Derek Price  <derek@ximbiot.com>
66389             Paul Eggert  <eggert@cs.ucla.edu>
66390
66391         * lib/inttypes.h: New file.
66392         * lib/strtoimax.c: Assume <inttypes.h>.
66393
66394 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66397         isn't mounted.  Problem reported by Kir Kolyshkin.
66398
66399 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66402         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66403         Derek R. Price.
66404         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66405         implementation.
66406
66407 2006-04-12  Eric Blake  <ebb9@byu.net>
66408
66409         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66410         is now done automatically by the corresponding Autoconf macro.
66411
66412 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66415         time_r.h.
66416
66417 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         Merge regex changes from libc, removing some of our
66420         POSIX-conformance changes that were rejected and redoing them in a
66421         less-intrusive way.
66422
66423         * lib/regcomp.c (re_compile_internal, init_dfa):
66424         Length arg is now size_t, not Idx.  All uses changed.
66425         (peek_token): Forward decl now says internal_function.
66426         (__re_error_msgid, __re_error_msgid_idx):
66427         Now static rather than extern with attribute_hidden.
66428         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66429         For some reason libc prefers K&R style defns for external functions.
66430         (regerror) [!defined _LIBC]: Likewise.
66431         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66432         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66433         (build_range_exp, build_collating_symbol):
66434         Use K&R-style defn.
66435         (re_compile_fastmap): Use '\0' to memset, not 0.
66436         (utf8_sb_map): Make the calculations more obvious.
66437         (init_dfa, parse_bracket_exp, build_charclass_op):
66438         Call calloc and cast result, as glibc does.
66439         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66440         (build_range_exp, build_collating_symbol):
66441         Now internal functions.
66442
66443         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66444
66445         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66446         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66447         Don't depend on VMS; depend on __VMS instead, for POSIX
66448         namespace cleanness.
66449         (regoff_t): Define to ssize_t, not long int.
66450
66451         Remove the REG_ macros named below.  Instead, make the old names
66452         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66453         __USE_GNU_REGEX.
66454         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66455         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66456         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66457         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66458         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66459         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66460         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66461         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66462         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66463         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66464         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66465         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66466         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66467         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66468         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66469         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66470         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66471         (REG_NREGS):
66472         Remove.  All uses replaced by the old RE_* names.
66473         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66474         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66475         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66476         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66477         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66478         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66479         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66480         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66481         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66482         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66483         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66484         Don't bother having these macros be independent of each others'
66485         values, since they no longer exist in the POSIX name space.
66486
66487         Rename the following member names back to their old names,
66488         unless !__USE_GNU_REGEX.  All uses changed back.
66489         (buffer): Renamed from re_buffer.
66490         (allocated): Renamed from re_allocated.
66491         (used): Renamed from re_used.
66492         (syntax): Renamed from re_syntax.
66493         (fastmap): Renamed from re_fastmap.
66494         (translate): Renamed from re_translate.
66495         (can_be_null): Renamed from re_can_be_null.
66496         (regs_allocated): Renamed from re_regs_allocated.
66497         (fastmap_accurate): Renamed from re_fastmap_accurate.
66498         (no_sub): Renamed from re_no_sub.
66499         (not_bol): Renamed from re_not_bol.
66500         (not_eol): Renamed from re_not_eol.
66501         (newline_anchor): Renamed from re_newline_anchor.
66502         (num_regs): Renamed from rm_num_regs.
66503         (start): Renamed from rm_start.
66504         (end): Renamed from rm_end.
66505
66506         (free_state): Move up a bit.
66507
66508         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66509         #define to be empty.
66510         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66511         when that is what is intended.
66512         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66513         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66514         (MAX): New macro.
66515         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66516         All uses changed back to re_malloc, etc.  It's now the caller's
66517         responsibility to check for overflow; all callers changed.
66518         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66519         (re_x2nrealloc): Remove.
66520         (free_state): Remove decl.
66521
66522         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66523         (re_set_registers, re_exec):
66524         Use K&R-style defn.
66525
66526         2006-01-31  Roland McGrath  <roland@redhat.com>
66527
66528         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66529         Reported by Mike Frysinger <vapier@gentoo.org>.
66530
66531         2006-01-15  Andreas Jaeger  <aj@suse.de>
66532
66533         [BZ #1950]
66534         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66535         build_wcs_upper_buffer change.
66536         (build_wcs_upper_buffer): Change return type.
66537
66538         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66539
66540         * lib/regex_internal.h: Include <stdint.h> if available.
66541
66542         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66543
66544         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66545
66546         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66547
66548         * lib/regcomp.c: Adjust for changed secondary hash function.
66549
66550         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66551
66552         * lib/regex.h: Pretty printing.
66553         Clean up namespace a bit.
66554
66555         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66556
66557         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66558         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66559
66560         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66561                     Ulrich Drepper  <drepper@redhat.com>
66562
66563         [BZ #1302]
66564         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66565         changed.
66566         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66567
66568         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66569
66570         [BZ #281]
66571         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66572         * lib/regcomp.c: Remove unnecessary uses of
66573         unsigned RE_TRANSLATE_TYPE.
66574         * lib/regex_internal.h: Likewise.
66575         * lib/regex_internal.c: Likewise.
66576         * lib/regexec.c: Likewise.
66577         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66578
66579         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66580
66581         * lib/regexec.c (find_recover_state): Remove unnecessary
66582         initialization.
66583         (transit_state_bkref): Make DFA a const pointer.
66584         (get_subexp): Likewise.
66585         (check_arrival): Likewise.
66586         (update_cur_sifted_state): Likewise.
66587         (re_search_internal): Likewise.
66588         (prune_impossible_nodes): Likewise.
66589         (acquire_init_state_context): Likewise.
66590         (proceed_next_node): Likewise.
66591         (set_regs): Likewise.
66592         (free_fail_stack_return): Likewise.
66593         (check_arrival_expand_ecl): Mark DFA parameter as const.
66594         (check_arrival_expand_ecl_sub): Likewise.
66595         (check_subexp_limits): Likewise.
66596         (sub_epsilon_src_nodes):  Likewise.
66597         (add_epsilon_src_nodes):  Likewise.
66598         (merge_state_array): Likewise.
66599         (update_regs): Likewise.
66600         (build_trtable): Likewise.
66601         (sift_states_backward): Mark MCTX parameter as const.
66602         (build_sifted_states): Likewise.
66603         (update_cur_sifted_state): Likewise.
66604         (sift_states_mkref): Likewise.
66605         (check_arrival_expand_ecl): Mark eclosure as const.
66606         (check_dst_limits_calc_pos_1): Likewise.
66607         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66608         pointer.
66609
66610         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66611
66612         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66613         (transit_state_sb): Likewise.
66614         (transit_state_mb): Likewise.
66615         (sift_states_iter_mb): Likewise.
66616         (check_arrival_add_next_nodes): Likewise.
66617         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66618         [_LIBC] (re_search_2_stub): Use mempcpy.
66619
66620         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66621         mbrtowc for very simple UTF-8 case.
66622
66623         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66624         a pointer-to-const.
66625         (re_acquire_state_context): Likewise.
66626         * lib/regex_internal.h: Adjust prototypes.
66627
66628         * lib/regex.c: Prevent using C++ compilers.
66629
66630         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66631         (re_acquire_state_context): Likewise.
66632
66633 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66634
66635         * modules/regex (Depends-on): Add ssize_t.
66636
66637 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66638
66639         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66640         translation table.
66641
66642 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66643
66644         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66645
66646 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66647             Bruno Haible  <bruno@clisp.org>
66648
66649         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66650         <sys/types.h> and <inttypes.h>.
66651
66652 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66653
66654         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66655         `__error_t_defined', so argp.h will not typedef the former.
66656
66657 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66658
66659         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66660         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66661         glibc names.  Even if glibc is changed to conform to POSIX, the
66662         traditional names will be available anyway, since regex depends on
66663         the extensions module.  Also, fix a longstanding typo in the
66664         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66665         reported by Emanuele Giaquinta.  Also, change sense of cached
66666         variable, so that the message makes sense.
66667
66668 2006-03-24  Simon Josefsson  <jas@extundo.com>
66669
66670         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66671         including some doc fixes.
66672         (base64_encode_alloc): Fix +1 bug on allocation failures.
66673
66674 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66675
66676         * lib/base64.c (base64_encode): Do not read past end of array with
66677         unsanitized input on systems with CHAR_BIT > 8.
66678
66679 2006-03-24  Eric Blake  <ebb9@byu.net>
66680
66681         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66682
66683 2006-03-22  Karl Berry  <karl@gnu.org>
66684
66685         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66686         * config/srclistvars.sh (COREUTILS): new var.
66687
66688 2006-03-17  Jim Meyering  <jim@meyering.net>
66689
66690         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66691         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66692
66693 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66696         no longer needs it.  Instead, check that regoff_t is as least
66697         as wide as ptrdiff_t.
66698
66699         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66700         so that our regex.h stays compatible with the installed regex.
66701         This is helpful for installers who configure --without-included-regex.
66702         Problem reported by Emanuele Giaquinta.
66703
66704 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66707         Typedef to long int, not to off_, as POSIX will likely change
66708         in that direction.
66709
66710 2006-03-15  Eric Blake  <ebb9@byu.net>
66711
66712         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66713
66714 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66715
66716         * lib/argp-help.c (validate_uparams): Fix typo
66717         * lib/argp-parse.c (argp_default_options): Consistently begin help
66718         messages with a lowercase letter.
66719
66720 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66723         overrun buffers and shouldn't be used (much as gets shouldn't be
66724         used).
66725         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66726
66727 2006-03-08  Simon Josefsson  <jas@extundo.com>
66728
66729         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66730         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66731
66732 2006-03-08  Simon Josefsson  <jas@extundo.com>
66733
66734         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66735         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66736
66737 2006-03-08  Simon Josefsson  <jas@extundo.com>
66738
66739         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66740         signal that configure disabled the device.
66741
66742 2006-03-08  Simon Josefsson  <jas@extundo.com>
66743
66744         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66745         languages.
66746
66747 2006-03-07  Simon Josefsson  <jas@extundo.com>
66748
66749         * modules/getopt (Depends-on): Add unistd.
66750
66751         * modules/unistd: New file.
66752
66753 2006-03-07  Simon Josefsson  <jas@extundo.com>
66754
66755         * modules/gc-random: New file.
66756
66757 2006-03-07  Simon Josefsson  <jas@extundo.com>
66758
66759         * m4/unistd_h.m4: New file.
66760
66761 2006-03-07  Simon Josefsson  <jas@extundo.com>
66762
66763         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66764         test to be side-effect free by storing the result in the cache
66765         variable gl_cv_lib_readline, and moving the assignment of
66766         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66767         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66768
66769 2006-03-07  Simon Josefsson  <jas@extundo.com>
66770
66771         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66772         error on missing devices (the functions will return an error).
66773
66774         * m4/gc.m4: Move random stuff to gc-random.m4
66775
66776 2006-03-07  Simon Josefsson  <jas@extundo.com>
66777
66778         * lib/unistd_.h: New file.
66779
66780 2006-03-07  Simon Josefsson  <jas@extundo.com>
66781
66782         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66783
66784 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66787         Problem reported by Juan Manuel Guerrero.
66788
66789 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66792         the unistd module.
66793         * lib/getlogin_r.c: Likewise.
66794         * lib/getlogin_r.h: Likewise.
66795         * lib/glob.c: Likewise.
66796         * lib/pagealign_alloc.c: Likewise.
66797         * lib/unistd_.h: Remove; no longer needed.
66798
66799 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66800
66801         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66802         Add unistd.
66803         * modules/c-stack (Depends-on): Add unistd.
66804         * modules/getlogin_r: Likewise.
66805         * modules/glob: Likewise.
66806         * modules/pagealign_alloc: Likewise.
66807         * modules/unistd (Files): Remove lib/unistd_.h.
66808         (EXTRA_DIST): Remove.
66809         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66810         need unistd_.h.
66811         (MOSTLYCLEANFILES): Remove unistd.h-t.
66812
66813 2006-03-03  Simon Josefsson  <jas@extundo.com>
66814
66815         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66816
66817 2006-03-03  Simon Josefsson  <jas@extundo.com>
66818
66819         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66820         libidn and bison.
66821
66822 2006-03-03  Simon Josefsson  <jas@extundo.com>
66823
66824         * build-aux/maint.mk: Add indent target.
66825
66826 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66827
66828         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66829         our replacement poll.h in any case, to avoid a differing
66830         declaration from a system header.  Seen on AIX.
66831
66832 2006-03-01  Simon Josefsson  <jas@extundo.com>
66833
66834         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66835         <kasal@ucw.cz>.
66836
66837 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * modules/gettime (Depends-on): Add extensions module.
66840         * modules/nanosleep (Depends-on): Likewise.
66841         * modules/settime (Depends-on): Likewise.
66842
66843 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66844
66845         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66846         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66847         pedantically.
66848         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66849         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66850
66851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66852         not "==".  Reported by Ralf Wildenhues.
66853
66854 2006-03-01  Karl Berry  <karl@gnu.org>
66855
66856         * doc/Copyright/request-*: new files, synced from gnuorg.
66857
66858 2006-03-01  Karl Berry  <karl@gnu.org>
66859
66860         * config/srclist.txt (Copyright/*): new entries.
66861
66862 2006-02-28  Simon Josefsson  <jas@extundo.com>
66863
66864         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66865
66866 2006-02-27  Simon Josefsson  <jas@extundo.com>
66867
66868         * lib/base64.h: Indent #define's.  From Jim Meyering
66869         <jim@meyering.net>.
66870
66871 2006-02-27  Jim Meyering  <jim@meyering.net>
66872
66873         Revert the change of 2006-02-24, so these files can continue
66874         to be sync'd from gettext.
66875         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66876         of `config.h'.
66877
66878 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * modules/intprops: New file.
66881         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66882         Add intprops.
66883         * modules/getloadavg (Files): Remove lib/intprops.h.
66884         (Depends-on): Add intprops.
66885         * modules/human: Likewise.
66886         * modules/inttostr: Likewise.
66887         * modules/openat: Likewise.
66888         * modules/sig2str: Likewise.
66889         * modules/userspec: Likewise.
66890         * modules/utimecmp: Likewise.
66891         * modules/xnanosleep: Likewise.
66892         * modules/xstrtol: Likewise.
66893
66894 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66895
66896         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66897         * modules/lock-tests (TESTS): Use $(EXEEXT).
66898         * modules/tls-tests: Likewise.
66899         * modules/argp-tests: Likewise.
66900         (check_PROGRAMS): New var, replacing...
66901         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66902
66903 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66904
66905         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66906         `config.h'.
66907
66908 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66911
66912 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66913
66914         Sync from coreutils.
66915         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66916         gl_CHDIR_SAFER.
66917
66918 2006-02-22  Jim Meyering  <jim@meyering.net>
66919
66920         Sync from coreutils.
66921         * m4/chdir-safer.m4: New file.
66922
66923 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66926         AT_FDCWD exceeds INT_MAX.
66927         * lib/openat.h (AT_FDCWD): Likewise.
66928
66929 2006-02-17  Eric Blake  <address@hidden>
66930
66931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66932
66933 2006-02-16  Simon Josefsson  <jas@extundo.com>
66934
66935         * modules/getaddrinfo (Depends-on): Add sys_socket.
66936
66937 2006-02-15  Simon Josefsson  <jas@extundo.com>
66938
66939         * build-aux/maint.mk: Add dsyntax-check rule.
66940
66941 2006-02-15  Eric Blake  <ebb9@byu.net>
66942
66943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66944         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66945         'present but cannot compile' warnings on cygwin.
66946         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66947         use ws2tcpip.h if sys/socket.h works.
66948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66949         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66950
66951 2006-02-14  Simon Josefsson  <jas@extundo.com>
66952
66953         * modules/maintainer-makefile (Files): Rename.
66954
66955         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66956         and (the local) Makefile.cfg to maint-cfg.mk.
66957
66958         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66959         to the latter.
66960
66961         * modules/maintainer-makefile: New module.
66962
66963         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66964         severaly stripped to make it possible to build it up from scratch
66965         with reliable tests.
66966
66967         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66968         fixes to permit overriding the default actions when configure and
66969         makefile are not available.
66970
66971 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66972
66973         Sync from coreutils.
66974         * modules/lstat (Depends-on): Don't depend on xalloc.
66975         (License): Change from GPL to LGPL, since this is now simply a
66976         replacement for a libc function.
66977
66978 2006-02-14  Jim Meyering  <jim@meyering.net>
66979
66980         Sync from coreutils.
66981
66982         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66983         failure on deficient systems, and simplify gnulib lgpl dependencies.
66984         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66985         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66986
66987         * lib/xalloc-die.c: Remove unused definition of N_.
66988
66989 2006-02-14  Jim Meyering  <jim@meyering.net>
66990
66991         Sync from coreutils.
66992         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66993         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66994         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66995         double-quote uses of that variable, to accommodate the rare case in
66996         which getmntent is available in none of the libraries checked.  This
66997         happens at least on FreeBSD 5.0.
66998
66999 2006-02-13  Simon Josefsson  <jas@extundo.com>
67000
67001         * gnulib-tool (Usage): Fix --import, from
67002         karl@freefriends.org (Karl Berry).
67003
67004 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67005
67006         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67007
67008 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67009
67010         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67011         "autoupdate" on 2005-12-12.
67012
67013 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * modules/closeout (Depends-on): Remove atexit.
67016
67017 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67020         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67021
67022 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67025         __EXTENSIONS__ if this causes compilation to fail.  Problem
67026         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67027         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67028
67029 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67032         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67033         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67034         All uses changed.
67035
67036 2006-01-26  Simon Josefsson  <jas@extundo.com>
67037
67038         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67039         prototype is visible on mingw32.
67040
67041         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67042         for mingw32.
67043
67044         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67045         mingw32).
67046
67047 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67050         attempt to open for write; this always fails, at least on POSIX
67051         hosts.  This reinstates the 2006-01-09 change, which was
67052         inadvertently removed.
67053
67054 2006-01-26  Bruno Haible  <bruno@clisp.org>
67055
67056         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67057         Reported by Paul Eggert.
67058
67059 2006-01-26  Bruno Haible  <bruno@clisp.org>
67060             Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         * lib/stdbool_.h (_Bool)
67063         [(! (defined __cplusplus || defined __BEOS__)
67064           && !defined __GNUC__
67065           && !(defined __HP_cc || defined __xlc__
67066                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67067                || defined __sgi))]:
67068         #define to signed char in these cases too; this simplifies
67069         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67070         etc., separately) and makes it more conservative.
67071
67072 2006-01-25  Simon Josefsson  <jas@extundo.com>
67073
67074         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67075         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67076         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67077
67078 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67079
67080         * lib/argp-namefrob.h: Bugfix. Remove stray #
67081
67082 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67085         so that we test the test.
67086         Check for yet another HP-UX cc bug involving *bool |= bool.
67087
67088 2006-01-25  Karl Berry  <karl@gnu.org>
67089
67090         * config/srclist.txt (vasnprintf.c): sync lost.
67091
67092 2006-01-25  Jim Meyering  <jim@meyering.net>
67093
67094         Sync from the stable (b5) branch of coreutils:
67095
67096         * lib/fts.c (fts_children): Don't let close() clobber errno from
67097         failed fchdir().
67098
67099         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67100         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67101         a dangling symlink.  That can also happen at least for ELOOP.
67102         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67103         FYI, this bug predates the inclusion of fts.c in coreutils.
67104
67105         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67106         in their own block, so pre-c99 compilers don't object.
67107
67108         Avoid the double-free (first in fts_read, second in fts_close) that
67109         would occur when an `active' directory is made inaccessible (e.g.,
67110         via chmod a-x) during a traversal.
67111         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67112         before returning.  Reproduce this failure by
67113         mkdir -p a/b; cd a; chmod a-x . b
67114         Reported by Stavros Passas.
67115
67116 2006-01-25  Jim Meyering  <jim@meyering.net>
67117
67118         * lib/fileblocks.c: Remove more useless parentheses.
67119         * lib/readutmp.h: Likewise.
67120
67121 2006-01-25  Bruno Haible  <bruno@clisp.org>
67122
67123         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67124         warnings.
67125         Reported by Paul Eggert.
67126
67127 2006-01-25  Bruno Haible  <bruno@clisp.org>
67128
67129         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67130         rid of a trap command. For Solaris sh.
67131         Reported by Mark D. Baushke <mdb@gnu.org>.
67132
67133 2006-01-24  Simon Josefsson  <jas@extundo.com>
67134
67135         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67136         Bruno.
67137
67138 2006-01-24  Karl Berry  <karl@gnu.org>
67139
67140         * config/srclist.txt (argp-namefrob.h): sync lost.
67141
67142 2006-01-24  Jim Meyering  <jim@meyering.net>
67143
67144         * modules/openat (Files): Add lib/intprops.h.
67145         From Mark D. Baushke.
67146
67147 2006-01-24  Jim Meyering  <jim@meyering.net>
67148
67149         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67150         Reported by Mark D. Baushke.
67151
67152 2006-01-24  Jim Meyering  <jim@meyering.net>
67153
67154         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67155
67156 2006-01-24  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/strnlen (Maintainer): Change from glibc to all.
67159
67160 2006-01-24  Bruno Haible  <bruno@clisp.org>
67161
67162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67163         Patch by Paul Eggert.
67164
67165 2006-01-24  Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67168         already has it.
67169         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67170         2005-11-26.
67171
67172         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67173         'signed char' to avoid problems with the built-in _Bool type.
67174         Reported by Paul Eggert on 2005-11-26.
67175
67176 2006-01-24  Bruno Haible  <bruno@clisp.org>
67177
67178         * gnulib-tool (func_import): Avoid constructing complicated sed
67179         expressions inside backquote.
67180         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67181
67182 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67183
67184         These changes imported from libc.
67185         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67186         test and two separate function calls.
67187         * lib/strndup.c (__strndup): Add libc_hidden_def.
67188
67189 2006-01-23  Simon Josefsson  <jas@extundo.com>
67190
67191         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67192         Remove the test_*_SOURCES variable: automake infers it by default.
67193         * modules/tls-tests: Likewise.
67194
67195 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         Work around porting bugs reported by Dieter in
67198         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67199         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67200         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67201         Include "getopt.h" first, to check interface.
67202         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67203         !HAVE_DECL_GETENV.
67204         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67205         (__strndup): Revert to K&R-style function dfns, the glibc style.
67206         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67207         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67208         Include strnlen.h first, to get prototype properly.
67209         (strnlen): Renamed from __strnlen.
67210         Remove weak alias.
67211
67212 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67215
67216 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * config/srclist.txt: Adjust to reflect glibc reorganization.
67219         This affects only comments.
67220
67221 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67222
67223          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67224          Reported by Bruce Korb <bkorb@gnu.org>.
67225
67226 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67229         to pacify gcc -Wswitch-default.
67230
67231 2006-01-22  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67234         temporary buffer for sprintf, take into account the precision also
67235         for 'd', 'i', 'u', 'o', 'x', 'X'.
67236
67237 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67238
67239         * modules/argp-tests: New module
67240         * tests/test-argp.c: New file
67241         * tests/test-argp-2.sh: New file
67242
67243 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67244
67245         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67246         (__argp_base_name): Removed
67247         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67248         typo.
67249         (__argp_base_name): Provide macro definition or extern declaration
67250         depending on the configuration
67251
67252 2006-01-20  Simon Josefsson  <jas@extundo.com>
67253
67254         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67255
67256 2006-01-20  Simon Josefsson  <jas@extundo.com>
67257
67258         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67259
67260 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67261
67262         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67263         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67264         Suggested by Bruno Haible.
67265
67266 2006-01-20  Karl Berry  <karl@gnu.org>
67267
67268         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67269         until changes propagate, I guess.
67270
67271 2006-01-19  Simon Josefsson  <jas@extundo.com>
67272
67273         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67274
67275 2006-01-19  Simon Josefsson  <jas@extundo.com>
67276
67277         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67278
67279 2006-01-19  Simon Josefsson  <jas@extundo.com>
67280
67281         * gnulib-tool: Set check_PROGRAMS.
67282
67283         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67284         modules/des-tests, modules/gc-arcfour-tests,
67285         modules/gc-arctwo-tests, modules/gc-des-tests,
67286         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67287         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67288         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67289         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67290         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67291         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67292         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67293         test_*_SOURCES.
67294
67295 2006-01-18  Simon Josefsson  <jas@extundo.com>
67296
67297         * modules/socklen (Depends-on): Depend on sys_socket.
67298
67299 2006-01-18  Simon Josefsson  <jas@extundo.com>
67300
67301         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67302         modules/des-tests, modules/gc-arcfour-tests,
67303         modules/gc-arctwo-tests, modules/gc-des-tests,
67304         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67305         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67306         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67307         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67308         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67309         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67310         $(EXEEXT) to automake TESTS variable, for mingw32.
67311
67312 2006-01-17  Simon Josefsson  <jas@extundo.com>
67313
67314         * modules/socklen (Include): Need sys/socket.h.
67315
67316 2006-01-17  Bruno Haible  <bruno@clisp.org>
67317
67318         * modules/ssize_t (Include): Add <sys/types.h>.
67319
67320 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67323         it's not portable and it doesn't work with cross-compiles.
67324         Problem reported by Bruno Haible.  Fix missing-$ typo in
67325         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67326         -zignore from being used with Sun's C compiler.
67327
67328 2006-01-12  Simon Josefsson  <jas@extundo.com>
67329
67330         * lib/base64.c: Fix warning, reported by Bruno Haible
67331         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67332
67333 2006-01-12  Bruno Haible  <bruno@clisp.org>
67334
67335         * modules/ldd: New file.
67336         * build-aux/ldd.sh.in: New file.
67337         * MODULES.html.sh (Support for building libraries and executables): Add
67338         ldd.
67339
67340 2006-01-12  Bruno Haible  <bruno@clisp.org>
67341
67342         * m4/ldd.m4: New file.
67343
67344 2006-01-12  Bruno Haible  <bruno@clisp.org>
67345
67346         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67347         endless loop while replacing $auxdir with build-aux.
67348
67349 2006-01-11  Simon Josefsson  <jas@extundo.com>
67350
67351         * lib/stdint_.h (SIZE_MAX): Add missing (.
67352
67353 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         Sync from coreutils.
67356         * lib/md5.c: Fix commentary typos.
67357         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67358         * lib/md5.h (__attribute__): Remove; unused.
67359         * lib/sha1.c: Fix commentary to match md5 better.
67360         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67361         so that we don't need to worry about alignment.  All uses changed.
67362         This merges the 2005-10-28 md5 change into sha1.
67363
67364 2006-01-11  Jim Meyering  <jim@meyering.net>
67365
67366         Sync from coreutils.
67367         * lib/md5.c (OP): Fix spacing.
67368
67369 2006-01-11  Bruno Haible  <bruno@clisp.org>
67370
67371         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67372         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67373         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67374
67375 2006-01-11  Bruno Haible  <bruno@clisp.org>
67376
67377         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67378         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67379         the "early" section as well.
67380
67381 2006-01-11  Bruno Haible  <bruno@clisp.org>
67382
67383         Avoid "ar: no archive members specified" error on MacOS X.
67384         * gnulib-tool (func_modules_add_dummy): New function.
67385         (func_import, func_create_testdir): Invoke it.
67386
67387 2006-01-11  Bruno Haible  <bruno@clisp.org>
67388
67389         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67390         with $auxdir in AC_CONFIG_FILES statements.
67391
67392 2006-01-11  Bruno Haible  <bruno@clisp.org>
67393
67394         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67395         Initialize also noinst_HEADERS to empty.
67396
67397 2006-01-11  Bruno Haible  <bruno@clisp.org>
67398
67399         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67400         variables.
67401         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67402         autoreconf.
67403
67404 2006-01-11  Bruno Haible  <bruno@clisp.org>
67405
67406         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67407         overridable by the user.
67408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67409
67410 2006-01-10  Simon Josefsson  <jas@extundo.com>
67411
67412         * modules/sys_socket: New file.
67413
67414 2006-01-10  Simon Josefsson  <jas@extundo.com>
67415
67416         * m4/sys_socket_h.m4: New file.
67417
67418 2006-01-10  Simon Josefsson  <jas@extundo.com>
67419
67420         * lib/socket_.h: New file.
67421
67422 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67423
67424         * modules/readutmp (Maintainer): Add myself.
67425
67426 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67429         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67430         People who are still concerned with buggy memcmp implementations
67431         can invoke gl_FUNC_MEMCMP themselves.
67432
67433 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * lib/regex_internal.h (BITSET_WORD_BITS):
67436         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67437         preprocessor mishandles large unsigned values as if they were signed.
67438         Problem reported by Claudio Fontana in
67439         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67440
67441 2006-01-10  Jim Meyering  <jim@meyering.net>
67442
67443         Avoid the double-free (first in fts_read, second in fts_close) that
67444         would occur when an `active' directory is made inaccessible (e.g.,
67445         via chmod a-x) during a traversal.
67446         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67447         before returning.  Reproduce this failure by
67448         mkdir -p a/b; cd a; chmod a-x . b
67449         Reported by Stavros Passas.
67450
67451         Sync from coreutils.
67452         * lib/sha1.c: Tweak grammar in a comment.
67453
67454 2006-01-10  Jim Meyering  <jim@meyering.net>
67455
67456         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67457         Patch by Joerg Sonnenberger.
67458
67459 2006-01-10  Bruno Haible  <bruno@clisp.org>
67460
67461         * modules/readutmp: Depend on module free.
67462         * modules/strtok_r: Depend on module restrict.
67463
67464 2006-01-10  Bruno Haible  <bruno@clisp.org>
67465
67466         * modules/gettext (configure.ac): Add an invocation of
67467         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67468
67469 2006-01-10  Bruno Haible  <bruno@clisp.org>
67470
67471         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67472         Reported by Werner Lemberg <wl@gnu.org>.
67473
67474 2006-01-10  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/localcharset.c: Update from GNU gettext.
67477
67478 2006-01-10  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/argp.h (__const): Remove macro. Use const instead.
67481         * lib/argp-fmtstream.h (__const): Likewise.
67482         * lib/glob_.h (__const): Remove macro.
67483         * lib/glob-libc.h: Use const instead of __const.
67484
67485 2006-01-10  Bruno Haible  <bruno@clisp.org>
67486
67487         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67488         variable.
67489         Needed to avoid an automake error regarding the 'gettext' module.
67490
67491 2006-01-09  Simon Josefsson  <jas@extundo.com>
67492
67493         * modules/inet_ntop (Depends-on): Add restrict.
67494
67495 2006-01-09  Simon Josefsson  <jas@extundo.com>
67496
67497         * modules/gc-rijndael-tests (License): Put under LGPL.
67498
67499         * modules/gc-des-tests (License): Likewise.
67500
67501         * modules/gc-arcfour-tests (License): Likewise.
67502
67503         * modules/gc-arctwo-tests (License): Likewise.
67504
67505         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67506
67507         * modules/gc-hmac-sha1-tests (Files): Likewise.
67508
67509         * modules/gc-hmac-md5-tests (License): Likewise.
67510
67511         * modules/gc-sha1-tests (License): Likewise.
67512
67513         * modules/gc-md5-tests (License): Likewise.
67514
67515         * modules/gc-md4-tests (License): Likewise.
67516
67517         * modules/gc-md2-tests (License): Likewise.
67518
67519         * modules/gc-tests (License): Likewise.
67520
67521         * modules/des-tests (License): Likewise.
67522
67523         * modules/md4-tests (License): Likewise.
67524
67525         * modules/md2-tests (License): Likewise.
67526
67527 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67528
67529         Sync from coreutils:
67530
67531         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67532         * modules/lib-ignore: New file.
67533         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67534         chdir-safer.m4, lchmod.m4.
67535         * modules/openat: Add mkdirat.c, openat-priv.h.
67536
67537 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         Sync from coreutils.
67540         * m4/lib-ignore.m4: New file.
67541         * m4/lchmod.m4: New file.
67542
67543 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67544
67545         Sync from coreutils.
67546         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67547         for write access: POSIX says that must fail.
67548         * lib/fts.c (diropen): Likewise.
67549         * lib/save-cwd.c (save_cwd): Likewise.
67550         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67551         well, for minor improvements on hosts that lack O_DIRECTORY.
67552         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67553         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67554         Fall back on chown if open failed with EACCES.
67555
67556         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67557         Report an error at compile-time if only a 1-second nominal clock
67558         resolution is found.
67559
67560         * lib/lchmod.h: New file.
67561         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67562         (make_dir_parents): Use lchown rather than chown, and
67563         lchmod rather than chmod.
67564
67565         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67566         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67567         "proc" reported by n0dalus.
67568
67569         * lib/mountlist.c: Include <limits.h>.
67570         (dev_from_mount_options)
67571         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67572         New function.  It no longer assumes "dev=" has the System V meaning
67573         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67574         (read_file_system_list)
67575         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67576         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67577         dev= in that case.
67578
67579         * lib/posixtm.h (PDS_PRE_2000): New macro.
67580         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67581         allow_century.  All usages changed.  Reject dates outside the range
67582         1969-1999 if PDS_PRE_2000 is used.
67583
67584 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         Sync from coreutils.
67587         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67588         (Time of day items): Mention the possibility of leap seconds.
67589         Problem reported by Dr. David Alan Gilbert.
67590
67591 2006-01-09  Jim Meyering  <jim@meyering.net>
67592
67593         Sync from coreutils.
67594
67595         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67596
67597         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67598
67599         * lib/modechange.c (mode_compile): Reject an invalid mode string
67600         that starts with an octal digit.  From Andreas Gruenbacher.
67601
67602         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67603         and dup to open_safer and dup_safer, respectively.
67604         (openat_permissive): Fix typo in comment.
67605
67606         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67607         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67608         (_): Remove; no longer needed.
67609         (openat): Renamed from rpl_openat; no need for rpl_openat
67610         since openat.h renames openat for us.
67611         Replace most of the body with a call to openat_permissive,
67612         to avoid duplicate code.
67613         Port to (probably hypothetical) environments were mode_t is
67614         wider than int.
67615         (openat_permissive): Require mode arg, so that we can check
67616         types better.  Put it just after flags.  Change cwd failure
67617         indicator from pointer-to-bool to pointer-to-errno-value.
67618         All callers changed.
67619         Invoke openat_save_fail and/or openat_restore_fail if
67620         cwd_errno is null, so that openat can call us.
67621         (openat_permissive, fdopendir, fstatat, unlinkat):
67622         Simplify errno handling to avoid some duplicate code,
67623         as it's OK to set errno on success.
67624         * lib/openat.h: Revamp code so that function macros depend on
67625         __OPENAT_PREFIX only, not also on AT_FDCWD.
67626         (openat_ro): Remove.  Caller changed to use openat_permissive.
67627         (openat_permissive): Now a macro, if not a function.
67628         (openat_restore_fail, openat_save_fail): Now always functions,
67629         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67630
67631         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67632         and openat.c.
67633         * lib/mkdirat.c: Include openat-priv.h.
67634         Remove definitions of macros defined therein.
67635         * lib/openat.c: Likewise.
67636
67637         * lib/mkdirat.c (mkdirat): New file and function.
67638         * lib/openat.h (mkdirat): Declare.
67639
67640         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67641
67642         * lib/openat.h (openat_permissive): Declare.
67643         (openat_ro): Define.
67644
67645         * lib/openat.c (EXPECTED_ERRNO): New macro.
67646         (openat_permissive): New function -- used in remove.c rewrite.
67647         (all functions): Set errno just before returning, only if there
67648         was an actual failure.
67649         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67650
67651         Emulate openat-family functions using Linux's procfs, if possible.
67652         Idea and some code based on Ulrich Drepper's glibc changes.
67653
67654         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67655         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67656         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67657         before falling back on save_cwd and restore_cwd.
67658         (fdopendir, fstatat, unlinkat): Likewise.
67659
67660         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67661         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67662
67663         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67664         as second argument to va_arg.  Otherwise, some versions of gcc
67665         warn that `if this code is reached, the program will abort'.
67666
67667 2006-01-09  Jim Meyering  <jim@meyering.net>
67668
67669         Sync from coreutils.
67670         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67671         Require openat-priv.h.
67672
67673 2006-01-09  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/strnlen (Include): Use strnlen.h.
67676
67677 2006-01-09  Bruno Haible  <bruno@clisp.org>
67678
67679         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67680
67681 2006-01-09  Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/sysexit_.h (EX_OK): New macro.
67684         Suggested by Martin Lambers <marlam@marlam.de>.
67685
67686 2006-01-09  Bruno Haible  <bruno@clisp.org>
67687
67688         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67689         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67690
67691 2006-01-09  Bruno Haible  <bruno@clisp.org>
67692
67693         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67694         numbers.
67695
67696 2006-01-09  Bruno Haible  <bruno@clisp.org>
67697
67698         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67699         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67700         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67701         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67702
67703 2006-01-09  Bruno Haible  <bruno@clisp.org>
67704
67705         * build-aux/javacomp.sh.in: New file, moved from lib/.
67706         * modules/javacomp-script (Files): Update.
67707         (configure.ac): Add AC_CONFIG_FILES invocation.
67708         (EXTRA_DIST): Remove variable.
67709
67710         * build-aux/javaexec.sh.in: New file, moved from lib/.
67711         * modules/javaexec (Files): Update.
67712         (configure.ac): Add AC_CONFIG_FILES invocation.
67713         (EXTRA_DIST): Remove javaexec.sh.in.
67714
67715         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67716         * modules/csharpcomp-script (Files): Update.
67717         (configure.ac): Add AC_CONFIG_FILES invocation.
67718         (EXTRA_DIST): Remove variable.
67719
67720         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67721         * modules/csharpexec (Files): Update.
67722         (configure.ac): Add AC_CONFIG_FILES invocation.
67723         (EXTRA_DIST): Remove csharpexec.sh.in.
67724
67725 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67726
67727         Sync from coreutils.
67728
67729         Add POSIX ACL support
67730         * lib/acl.h (copy_acl, set_acl): Add declarations.
67731         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67732         systems other than Linux.
67733         (chmod_or_fchmod): New function: use fchmod when possible,
67734         and chmod otherwise.
67735         (file_has_acl): Add a POSIX ACL implementation, with a
67736         Linux-specific subcase.
67737         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67738         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67739         acls are unsupported.
67740         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67741         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67742         are unsupported.
67743
67744 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67745
67746         Sync from coreutils.
67747         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67748
67749 2006-01-07  Bruno Haible  <bruno@clisp.org>
67750
67751         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67752         gl_EARLY.
67753
67754 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67755
67756         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67757         Problem reported for Mingw by Mark Junker.
67758
67759 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * README: Gnulib normally doesn't generate a tarball.
67762
67763 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67766         long int, not int, for nanosecond counts, so that people who are
67767         used to POSIX struct timespec won't be surprised.  Reported by Jim
67768         Meyering.
67769
67770 2005-12-28  Bruno Haible  <bruno@clisp.org>
67771
67772         * build-aux/config.rpath: Update from GNU gettext.
67773
67774 2005-12-16  Jim Meyering  <jim@meyering.net>
67775
67776         * modules/fprintftime: New module.
67777         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67778
67779 2005-12-16  Jim Meyering  <jim@meyering.net>
67780
67781         * m4/fprintftime.m4: New file.
67782
67783 2005-12-16  Jim Meyering  <jim@meyering.net>
67784
67785         * lib/fprintftime.c, lib/fprintftime.h: New files.
67786
67787 2005-12-15  Simon Josefsson  <jas@extundo.com>
67788
67789         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67790         new m4/socklen.m4.
67791
67792 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67793
67794         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67795         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67796
67797 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67798
67799         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67800         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67801         struct uparams is valid. Fall back to the default values if it is
67802         not.
67803
67804 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67805
67806         * modules/argp (Files): Add argp-pin.c
67807         (Depends-on): dirname
67808         (lib_SOURCES): Add argp-pin.c
67809
67810 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67811
67812         * m4/argp.m4:  Check if program_invocation_name and
67813         program_invocation_short_name are declared and define appropriate
67814         macros if they are not.
67815
67816 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67817
67818         * lib/argp-help.c (__argp_base_name): New function
67819         (__argp_short_program_name): Rewrite using __argp_base_name
67820         * lib/argp-namefrob.h: Define program_invocation_name and
67821         program_invocation_short_name if requested
67822         (__argp_base_name): Add prototype
67823         * lib/argp-parse.c (argp_def): Use gettext wrappers
67824         (argp_default_parser): Use __argp_base_name
67825         * lib/argp-pin.c: New file. Defines program_invocation_name and
67826         program_invocation_short_name on systems that lack them.
67827
67828 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67829
67830         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67831         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67832         porting problem reported by Georg Schwarz in
67833         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67834
67835 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67838         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67839         porting problem reported by Georg Schwarz in
67840         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67841
67842 2005-12-05  Bruno Haible  <bruno@clisp.org>
67843
67844         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67845         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67846         Reported by Mark Junker <mjscod@gmx.de>.
67847
67848 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67851         Use implementation from Albert Chin, with some
67852         comments/corrections by Stepan Kasal and myself.
67853
67854 2005-12-02  Bruno Haible  <bruno@clisp.org>
67855
67856         * gnulib-tool (func_import): Accept GPLed build tool modules when
67857         --lgpl is given.
67858         * modules/csharpcomp-script: New file.
67859         * modules/csharpcomp: Depend on it.
67860         * modules/javacomp-script: New file.
67861         * modules/javacomp: Depend on it.
67862         Suggested by Simon Josefsson.
67863
67864 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67867         statement, to work around an HP-UX 10.20 compiler bug reported by
67868         Peter O'Gorman.
67869
67870 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * modules/savedir (Depends-on): Add openat.
67873
67874 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67877         (uintmax_t) [defined uintmax_t]: Do not declare.
67878         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67879         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67880         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67881         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67882         sake of portability to weird hosts that C allows (though we don't
67883         know of any practical examples).
67884
67885         * lib/savedir.h (fdsavedir): New decl.
67886         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67887         contains most of the former guts of savedir.
67888         (savedir): Use savedirstream.
67889         Include "openat.h".
67890
67891 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * modules/obstack (Files): Add m4/ulonglong.m4.
67894         Problem reported by Davide Angelocola.
67895
67896 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67899         coreutils no longer futzes with rounding modes.
67900
67901 2005-11-14  Jim Meyering  <jim@meyering.net>
67902
67903         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67904         replacement of mkstemp.
67905
67906 2005-11-10  Simon Josefsson  <jas@extundo.com>
67907
67908         * lib/readline.c: Remove EOL.
67909
67910 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67911
67912         * modules/gethrxtime (Depends-on): Add gettime.
67913
67914 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67915
67916         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67917         or gettimeofday; no longer needed.
67918
67919 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67920
67921         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67922         time business.
67923         (gethrxtime) [! (HAVE_NANOUPTIME
67924         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67925         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67926         our own approximation.
67927
67928 2005-11-08  Eric Blake  <ebb9@byu.net>
67929
67930         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67931
67932 2005-11-08  Eric Blake  <ebb9@byu.net>
67933
67934         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67935
67936 2005-11-04  Bruno Haible  <bruno@clisp.org>
67937
67938         * gnulib-tool: Implement --update mode.
67939
67940 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67941
67942         Fix porting problem reported by Theodoros V. Kalamatianos.
67943         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67944         Don't assume that futimes failing means we must fail.
67945
67946 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67949         variables to suggest the intended function of the PATH_MAX check.
67950
67951 2005-10-30  Kean Johnston  <jkj@sco.com>
67952
67953         Trivial changes to support SCO systems.
67954         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67955         as PATH_MAX.
67956         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67957         where __ptr is null when no I/O is pending.
67958
67959 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67962         leave errno alone.  Problem reported by Dmitry V. Levin.
67963
67964 2005-10-28  Simon Josefsson  <jas@extundo.com>
67965
67966         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67967         Test more.
67968
67969         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67970
67971         * modules/md2, modules/md2-tests: New files.
67972
67973 2005-10-28  Simon Josefsson  <jas@extundo.com>
67974
67975         * m4/inet_ntop.m4: More tests.
67976
67977         * m4/gc-md2.m4, md2.m4: New file.
67978
67979 2005-10-28  Simon Josefsson  <jas@extundo.com>
67980
67981         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67982         "restrict" keywords, as per POSIX.  Protect the function
67983         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67984         Don't use K&R prototypes.  Check the sprintf return values.
67985         Re-define EAFNOSUPPORT if not present.  Indent.
67986
67987         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67988         suggested by Bruno Haible <bruno@clisp.org>.
67989
67990         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67991
67992         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67993
67994         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67995         libgcrypt).
67996
67997         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67998
67999         * lib/md2.h, lib/md2.c: New files.
68000
68001 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68004         errno alone.  Problem reported by Frederic Jolliton.
68005
68006 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         * modules/verify (License): Change from GPL to LGPL.  This is a
68009         tiny module and there are apparently near-equivalents that are
68010         under the BSD license.
68011
68012 2005-10-24  Simon Josefsson  <jas@extundo.com>
68013
68014         * modules/sha1: Relicense to LGPL.
68015
68016 2005-10-24  Simon Josefsson  <jas@extundo.com>
68017
68018         * lib/md4.h: Shrink buffer size, now that we changed the type.
68019
68020 2005-10-23  Simon Josefsson  <jas@extundo.com>
68021
68022         * gnulib-tool (func_import): Fix --tests-base.
68023
68024 2005-10-22  Simon Josefsson  <jas@extundo.com>
68025
68026         * modules/arcfour (Depends-on): Need stdint.
68027
68028 2005-10-22  Simon Josefsson  <jas@extundo.com>
68029
68030         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68031         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68032
68033 2005-10-22  Simon Josefsson  <jas@extundo.com>
68034
68035         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68036         suggested by Bruno Haible <bruno@clisp.org>.
68037
68038 2005-10-22  Simon Josefsson  <jas@extundo.com>
68039
68040         * lib/crc.h: Include stddef.h, for size_t.
68041
68042 2005-10-22  Simon Josefsson  <jas@extundo.com>
68043
68044         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68045         arcfour_context struct (simplify test vector testing in GNU
68046         Shishi).
68047
68048 2005-10-21  Simon Josefsson  <jas@extundo.com>
68049
68050         * modules/des, modules/des-tests: New files.
68051
68052         * modules/gc-des, modules/gc-des-tests: New files.
68053
68054         * tests/test-des.c, tests/test-gc-des.c: New file.
68055
68056 2005-10-21  Simon Josefsson  <jas@extundo.com>
68057
68058         * modules/arctwo, modules/arctwo-tests: New files.
68059
68060         * tests/test-arctwo.c: New file.
68061
68062         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68063
68064         * tests/test-gc-arctwo.c: New file.
68065
68066 2005-10-21  Simon Josefsson  <jas@extundo.com>
68067
68068         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68069         Bruno Haible <bruno@clisp.org>.
68070
68071         * m4/gc-des.m4: New file.
68072
68073 2005-10-21  Simon Josefsson  <jas@extundo.com>
68074
68075         * m4/arctwo.m4: New file.
68076
68077         * m4/gc-arctwo.m4: New file.
68078
68079 2005-10-21  Simon Josefsson  <jas@extundo.com>
68080
68081         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68082         block.
68083
68084 2005-10-21  Simon Josefsson  <jas@extundo.com>
68085
68086         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68087         <bruno@clisp.org>.
68088
68089         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68090
68091         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68092         Bruno Haible <bruno@clisp.org>.
68093
68094         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68095         <bruno@clisp.org>.
68096
68097 2005-10-21  Simon Josefsson  <jas@extundo.com>
68098
68099         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68100
68101 2005-10-21  Simon Josefsson  <jas@extundo.com>
68102
68103         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68104
68105 2005-10-21  Simon Josefsson  <jas@extundo.com>
68106
68107         * lib/des.h, lib/des.c: New files.
68108
68109         * lib/gc-gnulib.c: Support DES.c
68110
68111 2005-10-21  Simon Josefsson  <jas@extundo.com>
68112
68113         * lib/arctwo.h, lib/arctwo.c: New files.
68114
68115         * lib/gc-gnulib.c: Support ARCTWO.
68116
68117 2005-10-21  Simon Josefsson  <jas@extundo.com>
68118
68119         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68120         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68121
68122 2005-10-21  Simon Josefsson  <jas@extundo.com>
68123
68124         * gnulib-tool (func_import, func_create_testdir): Define automake
68125         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68126         Makefile.am snippet),
68127         suggested by Bruno Haible <bruno@clisp.org>.
68128
68129         * modules/gc (Makefile.am): Use it.
68130
68131 2005-10-21  Bruno Haible  <bruno@clisp.org>
68132
68133         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68134         patch.
68135
68136 2005-10-19  Simon Josefsson  <jas@extundo.com>
68137
68138         * tests/test-gc-rijndael.c: New file.
68139
68140         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68141
68142 2005-10-19  Simon Josefsson  <jas@extundo.com>
68143
68144         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68145         interface too.
68146
68147 2005-10-19  Simon Josefsson  <jas@extundo.com>
68148
68149         * tests/test-gc-arcfour.c: New file.
68150
68151         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68152
68153 2005-10-19  Simon Josefsson  <jas@extundo.com>
68154
68155         * modules/gc-md4, modules/gc-md4-tests: New file.
68156
68157         * tests/test-gc-md4.c: New file.
68158
68159 2005-10-19  Simon Josefsson  <jas@extundo.com>
68160
68161         * m4/gc-md4.m4: New file.
68162
68163 2005-10-19  Simon Josefsson  <jas@extundo.com>
68164
68165         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68166         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68167         <kasal@ucw.cz>.
68168
68169 2005-10-19  Simon Josefsson  <jas@extundo.com>
68170
68171         * m4/gc-arcfour.m4: New file.
68172
68173         * m4/gc-rijndael.m4: New file.
68174
68175 2005-10-19  Simon Josefsson  <jas@extundo.com>
68176
68177         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68178
68179 2005-10-19  Simon Josefsson  <jas@extundo.com>
68180
68181         * lib/gc-gnulib.c: Support ARCFOUR.
68182
68183 2005-10-19  Simon Josefsson  <jas@extundo.com>
68184
68185         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68186         support.
68187
68188         * lib/gc.h: Add ECB enum type.
68189
68190         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68191
68192 2005-10-18  Simon Josefsson  <jas@extundo.com>
68193
68194         * tests/test-md5.c: New file.
68195
68196         * modules/md5-tests: New file.
68197
68198 2005-10-18  Simon Josefsson  <jas@extundo.com>
68199
68200         * tests/test-md4.c: New file.
68201
68202         * modules/md4, modules/md4-tests: New files.
68203
68204 2005-10-18  Simon Josefsson  <jas@extundo.com>
68205
68206         * m4/md4.m4: New file.
68207
68208 2005-10-18  Simon Josefsson  <jas@extundo.com>
68209
68210         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68211
68212 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68213
68214         * gnulib-tool (func_create_testdir): Omit the second check whether
68215         BUILT_SOURCES in nonempty.
68216
68217 2005-10-17  Simon Josefsson  <jas@extundo.com>
68218
68219         * tests/test-rijndael.c: New file.
68220
68221 2005-10-17  Simon Josefsson  <jas@extundo.com>
68222
68223         * modules/sha1: Depend on stdint instead of md5.
68224
68225         * modules/md5: Depend on stdint, remove uint32_t.
68226
68227 2005-10-17  Simon Josefsson  <jas@extundo.com>
68228
68229         * modules/gc-sha1-tests: New file.
68230
68231         * tests/test-gc-sha1.c: New file.
68232
68233 2005-10-17  Simon Josefsson  <jas@extundo.com>
68234
68235         * m4/md5.m4: Remove call to uint32_t.m4.
68236
68237 2005-10-17  Simon Josefsson  <jas@extundo.com>
68238
68239         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68240
68241         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68242         md5.h.
68243
68244         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68245
68246         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68247
68248 2005-10-17  Simon Josefsson  <jas@extundo.com>
68249
68250         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68251
68252 2005-10-17  Simon Josefsson  <jas@extundo.com>
68253
68254         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68255
68256 2005-10-17  Simon Josefsson  <jas@extundo.com>
68257
68258         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68259
68260         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68261
68262 2005-10-17  Bruno Haible  <bruno@clisp.org>
68263
68264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68265         that it can also be used in a test.
68266
68267 2005-10-16  Bruno Haible  <bruno@clisp.org>
68268
68269         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68270         TESTS_ENVIRONMENT, so that individual tests can augment it.
68271
68272         * gnulib-tool (func_create_testdir): Use an intermediate target for
68273         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68274         macros, like $(ALLOCA_H), which cannot be passed through the command
68275         line.
68276
68277 2005-10-15  Simon Josefsson  <jas@extundo.com>
68278
68279         * modules/rijndael-tests: New file.
68280
68281         * modules/rijndael: New file.
68282
68283 2005-10-15  Simon Josefsson  <jas@extundo.com>
68284
68285         * m4/rijndael.m4: New file.
68286
68287 2005-10-15  Simon Josefsson  <jas@extundo.com>
68288
68289         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68290
68291         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68292
68293 2005-10-14  Simon Josefsson  <jas@extundo.com>
68294
68295         * tests/test-arcfour.c: New file.
68296
68297         * modules/arcfour, modules/arcfour-tests: New files.
68298
68299 2005-10-14  Simon Josefsson  <jas@extundo.com>
68300
68301         * m4/arcfour.m4: New file.
68302
68303 2005-10-14  Simon Josefsson  <jas@extundo.com>
68304
68305         * lib/arcfour.h, lib/arcfour.c: New files.
68306
68307 2005-10-14  Roland McGrath  <roland@redhat.com>
68308
68309         Import from libc.  [BZ #1331]
68310         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68311         macro argument.
68312         Reported by Matej Vela <vela@debian.org>.
68313
68314 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68317         include <wchar.h>; no longer needed.
68318
68319 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68322
68323 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68324         and  Ulrich Drepper  <drepper@redhat.com>
68325
68326         Import from libc.
68327         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68328         instead of inline stream orientation test and two separate
68329         function calls.  Pay no attention to USE_IN_LIBIO.
68330
68331 2005-10-13  Simon Josefsson  <jas@extundo.com>
68332
68333         * modules/gc-hmac-md5-tests: New file.
68334
68335         * tests/test-gc-hmac-sha1.c: New file.
68336
68337         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68338
68339         * modules/gc-hmac-md5-tests: New file.
68340
68341         * tests/test-gc-md5.c: New file.
68342
68343         * modules/gc-md5-tests: New file.
68344
68345 2005-10-13  Simon Josefsson  <jas@extundo.com>
68346
68347         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68348         Move memory allocation outside of loop.
68349
68350 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68351
68352         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68353         intermediate directory is in a read-only file system.  Problem
68354         reported by Eric Blake.
68355
68356 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68357
68358         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68359
68360 2005-10-12  Simon Josefsson  <jas@extundo.com>
68361
68362         * tests/test-hmac-sha1.c: New file.
68363
68364         * modules/hmac-sha1-tests: New file.
68365
68366         * modules/hmac-sha1: New file.
68367
68368 2005-10-12  Simon Josefsson  <jas@extundo.com>
68369
68370         * modules/gc-sha1: New file.
68371
68372 2005-10-12  Simon Josefsson  <jas@extundo.com>
68373
68374         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68375
68376         * tests/test-gc-pbkdf2-sha1.c: New file.
68377
68378 2005-10-12  Simon Josefsson  <jas@extundo.com>
68379
68380         * modules/gc-md5, modules/gc-hmac-md5: New files.
68381
68382         * modules/gc (Files): Remove md5, memxor and hmac files.
68383
68384 2005-10-12  Simon Josefsson  <jas@extundo.com>
68385
68386         * m4/gc-pbkdf2-sha1.m4: New file.
68387
68388         * m4/gc-hmac-sha1.m4: New file.
68389
68390         * m4/gc-sha1: New file.
68391
68392         * m4/hmac-sha1.m4: New file.
68393
68394 2005-10-12  Simon Josefsson  <jas@extundo.com>
68395
68396         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68397
68398         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68399
68400 2005-10-12  Simon Josefsson  <jas@extundo.com>
68401
68402         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68403         suggested by Bruno Haible <bruno@clisp.org>.
68404
68405 2005-10-12  Simon Josefsson  <jas@extundo.com>
68406
68407         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68408
68409 2005-10-12  Simon Josefsson  <jas@extundo.com>
68410
68411         * lib/gc-pbkdf2-sha1.c: New file.
68412
68413         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68414
68415 2005-10-12  Simon Josefsson  <jas@extundo.com>
68416
68417         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68418
68419         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68420
68421 2005-10-12  Simon Josefsson  <jas@extundo.com>
68422
68423         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68424         GC_USE_HMAC_MD5, respectively.
68425
68426         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68427         (gc_md5): Fix typo.
68428
68429         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68430
68431         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68432
68433         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68434
68435 2005-10-12  Bruno Haible  <bruno@clisp.org>
68436
68437         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68438         Reported by Stepan Kasal <kasal@ucw.cz>.
68439
68440 2005-10-11  Simon Josefsson  <jas@extundo.com>
68441
68442         * tests/test-crc.c: New file.
68443
68444         * modules/crc, modules/crc-tests: New files.
68445
68446 2005-10-11  Simon Josefsson  <jas@extundo.com>
68447
68448         * m4/crc.m4: New file.
68449
68450 2005-10-11  Simon Josefsson  <jas@extundo.com>
68451
68452         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68453
68454         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68455
68456         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68457
68458 2005-10-11  Simon Josefsson  <jas@extundo.com>
68459
68460         * lib/crc.h, lib/crc.c: New files.
68461
68462         * lib/gc.h (gc_hash_buffer): Add doc.
68463
68464 2005-10-11  Bruno Haible  <bruno@clisp.org>
68465
68466         * modules/c-strcasestr: New file.
68467         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68468
68469 2005-10-11  Bruno Haible  <bruno@clisp.org>
68470
68471         * modules/c-strcase: New file.
68472         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68473
68474 2005-10-11  Bruno Haible  <bruno@clisp.org>
68475
68476         * lib/strcasecmp.c: Include limits.h.
68477         (strcasecmp): Avoid integer overflow on exotic platforms.
68478         * lib/strncasecmp.c: Include limits.h.
68479         (strncasecmp): Avoid integer overflow on exotic platforms.
68480         Reported by Paul Eggert.
68481
68482 2005-10-11  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/c-strcasestr.h: New file, from GNU gettext.
68485         * lib/c-strcasestr.c: New file, from GNU gettext.
68486
68487 2005-10-11  Bruno Haible  <bruno@clisp.org>
68488
68489         * lib/c-strcase.h: New file, from GNU gettext.
68490         * lib/c-strcasecmp.c: New file, from GNU gettext.
68491         * lib/c-strncasecmp.c: New file, from GNU gettext.
68492
68493 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68494
68495         * modules/mempcpy (License): GPL -> LGPL.
68496         * modules/strchrnul (License): Likewise.
68497         * modules/sysexits (License): Likewise.
68498
68499 2005-10-08  Simon Josefsson  <jas@extundo.com>
68500
68501         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68502
68503 2005-10-07  Simon Josefsson  <jas@extundo.com>
68504
68505         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68506
68507 2005-10-06  Simon Josefsson  <jas@extundo.com>
68508
68509         * tests/test-hmac-md5.c: New file.
68510
68511         * modules/hmac-md5-tests: New file.
68512
68513         * modules/hmac-md5: New file.
68514
68515 2005-10-06  Simon Josefsson  <jas@extundo.com>
68516
68517         * m4/hmac-md5.m4: New file.
68518
68519         * m4/memxor.m4: Require gl_C_RESTRICT.
68520
68521 2005-10-06  Simon Josefsson  <jas@extundo.com>
68522
68523         * lib/memxor.c (memxor): Avoid casts and warnings.
68524
68525 2005-10-06  Simon Josefsson  <jas@extundo.com>
68526
68527         * lib/hmac-md5.c: New file.
68528
68529         * lib/hmac.h: New file.
68530
68531 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68534         promotes to int, not unsigned int, to catch the AIX 5.3
68535         compiler bug.
68536
68537 2005-10-05  Simon Josefsson  <jas@extundo.com>
68538
68539         * modules/memxor: New file.
68540
68541         * modules/iconv (Files): Move config.rpath to havelib, it is used
68542         there.
68543
68544         * modules/havelib (Files): Add config.rpath.
68545
68546 2005-10-05  Simon Josefsson  <jas@extundo.com>
68547
68548         * m4/memxor.m4: New file.
68549
68550 2005-10-05  Simon Josefsson  <jas@extundo.com>
68551
68552         * lib/memxor.c (memxor): Fix compiler error.
68553
68554         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68555         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68556
68557         * lib/memxor.h, lib/memxor.c: New files.
68558
68559         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68560         we assume all systems have it, suggested by Jim Meyering
68561         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68562         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68563         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68564         same reasons.
68565
68566 2005-10-05  Simon Josefsson  <jas@extundo.com>
68567
68568         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68569
68570 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68573         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68574         needed, since the source code now assumes these .h files.
68575
68576 2005-10-05  Derek Price  <derek@ximbiot.com>
68577
68578         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68579
68580 2005-10-05  Bruno Haible  <bruno@clisp.org>
68581
68582         * modules/stdint (License): Change to LGPL.
68583
68584 2005-10-04  Simon Josefsson  <jas@extundo.com>
68585
68586         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68587         D. Baushke" <mdb@gnu.org>.
68588
68589 2005-10-04  Bruno Haible  <bruno@clisp.org>
68590
68591         * lib/verify.h (verify_true): Provide alternative definition for C++.
68592
68593 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68594
68595         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68596         (SSIZE_MAX): New macro, if not already defined.
68597         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68598         than 2 GiB.
68599
68600 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         Sync from coreutils.
68603         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68604         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68605         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68606         ULLONG_MAX doesn't work with 2.7.2.1.
68607
68608 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68611         From Ben Pfaff.
68612
68613         * modules/exclude (Depends-on): Depend on verify.
68614         * modules/strtoimax (Depends-on): Likewise.
68615         * modules/utimecmp (Depends-on): Likewise.
68616
68617 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * lib/exclude.c: Include verify.h.
68620         (verify): Remove.  All callers changed to use verify.h's version.
68621         * lib/strtoimax.c: Likewise.
68622         * lib/utimecmp.c: Likewis.e
68623
68624         Sync from coreutils.
68625         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68626         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68627         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68628         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68629         bother returning ENOSYS if settimeofday or stime fails; just let
68630         them return whatever errno they want to return.
68631         * lib/utimens.c: Include unistd.h, for dup2.
68632         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68633         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68634
68635 2005-10-02  Jim Meyering  <jim@meyering.net>
68636
68637         Sync from coreutils.
68638         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68639         from glibc-2.2.5 that fails for read-only files.
68640
68641 2005-10-02  Jim Meyering  <jim@meyering.net>
68642
68643         Sync from coreutils.
68644         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68645         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68646         `#if HAVE_CONFIG_H'.
68647         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68648         Remove AT_FDCWD test.
68649         Do not consume the fd unless successful.
68650         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68651         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68652         block, so that we don't even try to compile it if settimeofday is
68653         available.  This works around a compilation failure on OSF1 V5.1,
68654         due to stime requiring a `long int*' while tv_sec is `int'.
68655
68656 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68657
68658         Sync from coreutils.
68659         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68660         against `yes', rather than just testing for nonempty.
68661
68662 2005-10-01  Simon Josefsson  <jas@extundo.com>
68663
68664         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68665         and Darwin.
68666
68667         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68668         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68669         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68670         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68671         Check if struct addrinfo is declared.
68672
68673 2005-10-01  Simon Josefsson  <jas@extundo.com>
68674
68675         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68676         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68677         AI_* and EAI_* definitions.  Protect function declarations.
68678
68679 2005-10-01  Jim Meyering  <jim@meyering.net>
68680
68681         Sync from coreutils.
68682
68683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68684         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68685         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68686         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68687         in the inet and nsl libraries.  Required on Solaris 5.7.
68688
68689 2005-10-01  Jim Meyering  <jim@meyering.net>
68690
68691         Sync from coreutils.
68692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68693         in the inet and nsl libraries.  Required on Solaris 5.7.
68694
68695 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68696
68697         * lib/getdelim.c (getdelim): Remove unused variables.
68698
68699 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68702         so that the code works even with ancient cpp.  Portability problem
68703         with GCC 2.7.2.1 reported by Thomas M.Ott.
68704
68705 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68706
68707         * modules/regex (Depends-on): Add strcase.
68708
68709         * modules/gethostname (Licence): Change from GPL to LGPL, since
68710         gethostname.c is a trivial implementation of a standard library
68711         function.
68712         * modules/poll (License): Change from GPL to LGPL, since it's
68713         derived from LGPL code.
68714
68715 2005-09-27  Jim Meyering  <jim@meyering.net>
68716
68717         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68718         HAVE_CONFIG_H.
68719
68720         * lib/intprops.h (signed_type_or_expr__): Define.
68721         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68722         for unsigned types.
68723
68724 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * lib/verify.h (verify_expr): Remove, replacing with:
68727         (verify_true): New macro that returns true instead of void.
68728         (verify_type__): Remove.
68729         (verify): Use verify_true rather than verify_type__.
68730
68731 2005-09-26  Bruno Haible  <bruno@clisp.org>
68732
68733         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68734         is necessary.
68735         (lib_SOURCES): Remove mbchar.c.
68736         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68737         (Files): Add m4/mbrtowc.m4.
68738         * modules/mbiter: Likewise.
68739         * modules/mbuiter: Likewise.
68740
68741 2005-09-26  Bruno Haible  <bruno@clisp.org>
68742
68743         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68744         compile mbchar.c if they are not both present.
68745         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68746         * m4/mbiter.m4 (gl_MBITER): Likewise.
68747         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68748         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68749         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68750
68751 2005-09-25  Jim Meyering  <jim@meyering.net>
68752
68753         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68754         also uses socklen_t.
68755
68756 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68757
68758         * lib/utimens.c (ENOSYS): Define if not already defined.
68759         (futimens): Support having a null PATH if the file descriptor
68760         is nonnegative.
68761
68762         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68763         Remove.
68764         (__attribute): Define to empty unless GCC 3.1 or later.
68765         This works around a core dump on OpenBSD 3.4, which has GCC
68766         2.95.3, which dumps core when given __attribute__(()).  It also
68767         simplifies other tests, since we really don't want to bother with
68768         worrying about which ancient version of GCC supported what.
68769         Original problem reported by Yoann Vandoorselaere, with part of
68770         the fix suggested by Derek Price.
68771
68772 2005-09-24  Jim Meyering  <jim@meyering.net>
68773
68774         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68775         so we can once again use a positive bitfield width of 1 -- now we
68776         don't have to explain why we were using a bitfield width of 2.
68777
68778 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68781         and similarly for the other external symbols.  Problem reported
68782         by James Gallager.
68783
68784         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68785         bug reported by Jim Meyering.
68786
68787         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68788         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68789         not needed, since socklen is a prerequisite module.
68790
68791 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68792
68793         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68794         Problem reported by Eric Blake.
68795         (getaddrinfo): Initialize se so that it's not garbage.
68796         Redo internal storage allocation so that it doesn't make unportable
68797         assumptions about alignment.
68798         Fix a memory leak.
68799
68800         * lib/utimens.c (futimens): Use futimesat if available.
68801         Prefer it to futimes since it doesn't have the futimes bug.
68802
68803         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68804         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68805         Instead, declare a function that returns a pointer to an array,
68806         and use verify_type__ to declare the size of the array.
68807         Problem and germ of a solution reported by Bruno Haible.
68808         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68809         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68810
68811 2005-09-23  Jim Meyering  <jim@meyering.net>
68812
68813         Sync from coreutils.
68814         Correct build failure (socklen_t not defined) on at least
68815         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68817
68818 2005-09-23  Jim Meyering  <jim@meyering.net>
68819
68820         * modules/getaddrinfo (Depends-on): Add socklen.
68821
68822 2005-09-23  Bruno Haible  <bruno@clisp.org>
68823
68824         * tests/test-verify.c: New file.
68825
68826 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         Sync from coreutils.
68829
68830         * modules/argmatch (Depends-on): Add verify.
68831         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68832         unistd-safer.
68833         * modules/save-cwd (Depends-on): Likewise.
68834
68835         * modules/openat (Files): Add lib/openat-die.c.
68836         (Depends-on): Remove error, exitfail.
68837         Add dirname.
68838
68839         * modules/verify: New file.
68840         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68841         with "verify" module.
68842
68843 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68844
68845         Sync from coreutils.
68846
68847         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68848         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68849         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68850         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68851         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68852         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68853         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68854         Don't bother checking for string.h, stdlib.h, unistd.h.
68855         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68856         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68857         module's job.
68858         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68859         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68860
68861         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68862         (gl_GETDATE): Use it.
68863
68864         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68865
68866 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         Sync from coreutils.
68869
68870         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68871         stat-time.h.
68872         * lib/argmatch.h: Include verify.h
68873         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68874         (ARGMATCH_ASSERT): Remove; unused.
68875         * lib/canonicalize.c: Assume STDC_HEADERS.
68876         * lib/exclude.c: Include "strcase.h".
68877         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68878         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68879         and stdio-safer.h.
68880         (getusershell): Call fopen, not fopen_safer.
68881         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68882         Do not include unistd-safer.h.
68883         (save_cwd): Don't call fd_safer; no longer needed
68884         now that we include fcntl--.h.
68885
68886         * lib/getdate.y (relative_time): New type.
68887         (RELATIVE_TIME_0): New constant.
68888         (parser_control): Use relative_time instead of doing it ourselves.
68889         (%union): Add new relative_time rel member.
68890         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68891         Now typeless.
68892         (relunit, relunit_snumber): Now of type rel.
68893         (zone, rel, relunit, get_date): Adjust to above changes.
68894
68895         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68896         Do not include unistd-safer.h.
68897         (getloadavg): Don't call fd_safer; no longer needed
68898         now that we include fcntl--.h.
68899
68900         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68901         (make_dir_parents): Treat ENOSYS like EEXIST.
68902
68903         Improve quality of diagnostics on restore_cwd failure.
68904         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68905         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68906         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68907         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68908         each time through the loop.  Do not diagnose restore_cwd failure;
68909         that is the caller's job (and perhaps the caller does not care).
68910
68911         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68912         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68913         If the file already exists but is not a directory, don't bother
68914         to try to make its parents.
68915         Close potential file descriptor leak if we can't chdir("/") (!).
68916         Don't always return true if chdir($PWD) fails; return true only
68917         if the requested action was done successfully (except for the
68918         chdir($PWD)).
68919         Don't log final directory unless we actually made it.
68920         Refactor to avoid duplicate code to fix up permissions.
68921         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68922
68923         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68924         to make it a bit faster and (I hope) clearer.
68925         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68926         Fix bug in formats like %2N.
68927
68928         * lib/verify.h: New file.
68929
68930 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         Sync from coreutils.
68933         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68934
68935 2005-09-22  Jim Meyering  <jim@meyering.net>
68936
68937         Sync from coreutils.
68938
68939         * m4/lstat.m4 (gl_FUNC_LSTAT):
68940         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68941         Remove obsolete comment.
68942         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68943         * m4/xstrtod.m4: Likewise.
68944
68945         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68946
68947 2005-09-22  Jim Meyering  <jim@meyering.net>
68948
68949         Sync from coreutils.
68950
68951         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68952
68953         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68954         the .tm_year member, since otherwise gcc-4.0 would now warn about
68955         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68956
68957         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68958         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68959
68960         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68961         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68962         when run in a time zone for which daylight savings time is in effect
68963         for the starting date.
68964
68965         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68966         stop us from restricting permissions of just-created absolute-named
68967         directories.
68968         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68969         to restore initial working directory.
68970         * lib/mkdir-p.c (make_dir_parents): New parameter:
68971         different_working_dir, to tell caller if/when we change the working
68972         directory and are unable to return to the initial one.
68973         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68974         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68975         `return false'.  This fixes a bug introduced on 2004-07-30.
68976
68977         * lib/openat.c (fdopendir): Be sure to close the supplied
68978         file descriptor before returning.  This makes our replacement
68979         implementation a little closer to Solaris's, where fdopendir
68980         ties the file descriptor to the returned DIR* pointer.
68981         * lib/openat.c (unlinkat): New function.
68982         * lib/openat.h (unlinkat): Add prototype.
68983         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68984         (openat_restore_fail): Rename from openat_restore_die.
68985         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68986
68987         Provide an alternative to exiting immediately upon save_cwd or
68988         restore_cwd failure.  Now, an application can arrange e.g.,
68989         to perform a longjump in that case.
68990         * lib/openat.c: Include dirname.h.
68991         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68992         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68993         and openat_restore_die rather than calling error directly.
68994         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68995
68996         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68997         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68998         define.
68999
69000         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69001         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69002                             int utc, int nanoseconds);
69003         Background:
69004         date should not have to allocate a megabyte of virtual memory to
69005         handle a format argument like +%1048575T.  When implemented with
69006         strftime, it must allocate such a buffer, use strftime to fill it
69007         in, print it, then free it.
69008         With fprintftime, it simply prints everything and exits.
69009         With no need for memory allocation, that's one fewer way to fail.
69010         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69011         optional field width, not before, so we accept %9:z, not %:9z.
69012         (my_strftime): Be sure to use L_('x') for literals.
69013
69014         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69015         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69016         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69017         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69018         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69019         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69020         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69021         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69022         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69023         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69024         * lib/xgethostname.c, lib/xreadlink.c:
69025         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69026
69027         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69028         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69029         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69030         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69031         and don't include <sys/file.h>).
69032
69033 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69034
69035         Sync from coreutils.
69036
69037         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69038         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69039         [!LDAV_DONE]: Avoid unused variable warning.
69040
69041 2005-09-21  Bruno Haible  <bruno@clisp.org>
69042
69043         * lib/unicodeio.h (unicode_to_mb): New declaration.
69044
69045 2005-09-20  Derek Price  <derek@ximbiot.com>
69046
69047         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69048         getaddrinfo.h.
69049
69050 2005-09-20  Bruno Haible  <bruno@clisp.org>
69051
69052         * gnulib-tool: Remove trailing slashes from the values specified for
69053         --source-base, --m4-base, --tests-base, --aux-dir.
69054         Suggested by Simon Josefsson <jas@extundo.com>.
69055
69056 2005-09-20  Bruno Haible  <bruno@clisp.org>
69057
69058         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69059         func_modules_to_filelist, func_import, func_create_testdir): Make all
69060         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69061         change when gnulib-tool is invoked in a different locale.
69062
69063 2005-09-19  Simon Josefsson  <jas@extundo.com>
69064
69065         * m4/socklen.m4: Fix typo.
69066
69067 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69068
69069         Use a consistent style for including <config.h>.
69070         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69071         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69072         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69073         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69074         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69075         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69076         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69077         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69078         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69079         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69080         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69081         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69082         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69083         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69084         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69085         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69086         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69087         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69088         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69089         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69090         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69091         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69092         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69093         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69094         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69095         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69096         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69097         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69098         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69099         lib/xstrtoumax.c, lib/yesno.c:
69100         Standardize inclusion of config.h.
69101         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69102         lib/inttostr.h:  Removed inclusion of config.h from header files.
69103         * lib/inttostr.c:  Adjusted in-tree users.
69104         * lib/timespec.h: Remove superfluous warning to include config.h.
69105         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69106         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69107         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69108         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69109         config.h with HAVE_CONFIG_H.
69110
69111 2005-09-19  Jim Meyering  <jim@meyering.net>
69112
69113         * modules/pathmax (License): Change to LGPL.
69114
69115 2005-09-19  Derek Price  <derek@ximbiot.com>
69116
69117         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69118
69119 2005-09-19  Bruno Haible  <bruno@clisp.org>
69120
69121         * gnulib-tool (import): Provide default for --tests-base.
69122
69123 2005-09-19  Bruno Haible  <bruno@clisp.org>
69124
69125         * doc/quote.texi: New file, extracted from gnulib.texi.
69126         * doc/ctime.texi: New file, extracted from gnulib.texi.
69127         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69128         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69129         * doc/gnulib.texi: Include them.
69130
69131 2005-09-18  Bruno Haible  <bruno@clisp.org>
69132
69133         Portability fix.
69134         * gnulib-tool (func_readlink): New function.
69135         (func_ln_if_changed): Use it.
69136
69137 2005-09-18  Bruno Haible  <bruno@clisp.org>
69138
69139         * gnulib-tool: Support --with-tests also with --import.
69140         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69141         (func_import): Use variables $testsbase and $inctests. Emit a
69142         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69143         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69144         SUBDIRS += $testsdir.
69145         (func_create_testdir): Update.
69146
69147 2005-09-18  Bruno Haible  <bruno@clisp.org>
69148
69149         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69150         instead of $dry_run.
69151         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69152         (func_ln_if_changed): Don't handle dry-run here.
69153         (func_import): In dry-run mode, detect more precisely which actions
69154         would be performed, and don't use "...ing" verbs.
69155
69156 2005-09-18  Bruno Haible  <bruno@clisp.org>
69157
69158         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69159         (func_import): Use join on two temporary files instead of three nested
69160         loops, in order to determine which files are new or old.
69161
69162 2005-09-18  Bruno Haible  <bruno@clisp.org>
69163
69164         * gnulib-tool (func_import): Comment out code that spits out the
69165         new files with --dry-run.
69166
69167 2005-09-18  Bruno Haible  <bruno@clisp.org>
69168
69169         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69170
69171 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * lib/stat-time.h: New file.
69174         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69175         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69176         in a different way.
69177         (timespec_cmp): New function.
69178         * lib/utimecmp.c: Include stat-time.h.
69179         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69180         members exist, not on the obsolescent ST_MTIM_NSEC.
69181         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69182
69183 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69184
69185         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69186
69187 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * MODULES.html.sh (File system functions): Add stat-time.
69190         * modules/stat-time: New file.
69191         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69192         is now done in a different way, by the stat-time module.
69193         * modules/utimecmp (Depends-on): Add stat-time.
69194
69195 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * m4/st_mtim.m4: Remove.  Superseded by...
69198         * m4/stat-time.m4: New file.
69199         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69200         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69201
69202 2005-09-15  Derek Price  <derek@ximbiot.com>
69203
69204         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69205
69206 2005-09-15  Derek Price  <derek@ximbiot.com>
69207
69208         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69209         * lib/regex_internal.c: Ditto, using this...
69210         (__GNUC_PREREQ): ...new macro.
69211         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69212         using...
69213         (__GNUC_PREREQ): ...this new macro.
69214
69215         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69216
69217 2005-09-15  Derek Price  <derek@ximbiot.com>
69218             Paul Eggert  <eggert@cs.ucla.edu>
69219
69220         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69221         changes, consolidating in...
69222         * lib/regex_internal.h: ...this file.
69223
69224 2005-09-13  Jim Meyering  <jim@meyering.net>
69225
69226         * lib/canon-host.c: Filter through gnu indent and reword comments
69227         slightly.
69228         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69229
69230 2005-09-13  Derek Price  <derek@ximbiot.com>
69231
69232         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69233         failure.
69234         Reported by Jim Meyering  <jim@meyering.net>.
69235
69236 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69237
69238         * lib/base64.c: Typo.
69239         (base64_encode): Put b64str in initialized data section.
69240
69241 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         Merge glibc and coreutils changes into gnulib, plus a few
69244         extra fixes.
69245         * lib/md5.c: Use #error rather than a string.
69246         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69247         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69248         (__attribute__): Define to empty for non recent-GCC.
69249         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69250         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69251         Renamed from their non-__ counterparts, with new macros replacing
69252         them if not _LIBC.  Add __THROW attribute.
69253         (rol): Remove.
69254         (struct md5_ctx): Align buffer if using GCC.
69255         * lib/sha1.h (struct sha1_ctx): Likewise.
69256         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69257         The old name was backwards.
69258         (NOTSWAP): Remove; not used.
69259         (rol): New macro, moved here from md5.h.
69260         (sha1_process_block): Remove a FIXME that doesn't make sense.
69261
69262 2005-09-12  Derek Price  <derek@ximbiot.com>
69263
69264         Return usable errors from canon-host.
69265         * lib/canon-host.h: New file.
69266         * lib/canon-host.c (canon_host): Wrap...
69267         (canon_host_r): ...this new function, which now relies exclusively on
69268         getaddrinfo.
69269         (ch_strerror): New function.
69270         (last_cherror): New global.
69271         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69272         interface.
69273         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69274         void *.
69275         (freeaddrinfo): Free ai->ai_canonname when set.
69276
69277 2005-09-12  Derek Price  <derek@ximbiot.com>
69278
69279         Make canon-host require getaddrinfo.
69280         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69281         AC_LIBSOURCE canon-host.h.  Call...
69282         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69283         gl_GETADDRINFO.
69284         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69285
69286 2005-09-12  Derek Price  <derek@ximbiot.com>
69287
69288         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69289         LGPL.
69290         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69291
69292 2005-09-12  Derek Price  <derek@ximbiot.com>
69293
69294         * lib/gai_strerror.c: Include config.h when available.  Include
69295         getaddrinfo.h before other headers to test interface.
69296         Reported by Larry Jones <lawrence.jones@ugs.com>.
69297
69298 2005-09-12  Derek Price  <derek@ximbiot.com>
69299             Paul Eggert  <eggert@cs.ucla.edu>
69300
69301         * modules/glob (Files): Add glob-libc.h.
69302
69303 2005-09-12  Derek Price  <derek@ximbiot.com>
69304             Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69307         glob_.h, glob-libc.h.
69308         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69309
69310 2005-09-12  Derek Price  <derek@ximbiot.com>
69311             Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69314         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69315         protecting things that should be done only in gnulib contexts.
69316         * lib/glob_.h: New file, containing only the glob things needed for
69317         gnulib.
69318         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69319         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69320         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69321         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69322         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69323         and to respect the namespace rules better.
69324
69325 2005-09-08  Simon Josefsson  <jas@extundo.com>
69326
69327         * modules/socklen: New file.
69328
69329 2005-09-08  Simon Josefsson  <jas@extundo.com>
69330
69331         * m4/socklen.m4: New file.
69332
69333 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         * modules/utimens (Files): Add m4/utimbuf.m4, since
69336         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69337         Reported by Sergey Poznyakoff.
69338
69339 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69342         definitions, since that's the preferred style in glibc.
69343         Fix a minor spacing issue, and update copyright notice to match
69344         glibc's.
69345
69346 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69349
69350 2005-09-06  Simon Josefsson  <jas@extundo.com>
69351
69352         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69353         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69354
69355 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69358         warning.
69359
69360 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         * config/srclist.txt: Add glibc bug 1302.
69363
69364 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69365
69366         Change bitset word type from unsigned int to unsigned long int,
69367         as this has better performance on typical 64-bit hosts.
69368         Port bitset code to hosts with unusual word sizes.
69369         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69370         (build_collating_symbol):
69371         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69372         argument is a bitset.  This is merely a style issue, but it makes
69373         it clearer that an entire array is expected.
69374         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69375         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69376         Port to the case where bitset_word is not the same as unsigned int.
69377         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69378         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69379         Likewise.
69380         * lib/regexec.c (check_dst_limits_calc_pos_1,
69381         check_subexp_matching_top):
69382         (build_trtable, group_nodes_into_DFAstates):
69383         Likewise.
69384         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69385         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69386         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69387         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69388         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69389         * lib/regcomp.c (optimize_subexps, lower_subexp):
69390         Work even if bitset_word has holes in its bitwise representation.
69391         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69392         * lib/regexec.c (check_dst_limits_calc_pos_1,
69393         check_subexp_matching_top):
69394         Likewise.
69395         * lib/regex_internal.c (re_string_reconstruct):
69396         Don't assume UCHAR_MAX == 255.
69397         * lib/regex_internal.h (bitset_set_all): Likewise.
69398         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69399         All uses changed.
69400         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69401         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69402         All uses changed.
69403         (BITSET_WORD_MAX): New macro.
69404         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69405         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69406         (bitset_empty, bitset_copy):
69407         Prefer sizeof (bitset) to multiplying it out ourselves.
69408         (bitset_not_merge): Remove; unused.
69409         (bitset_contain): Return bool, not unsigned int with one bit on.
69410         All callers changed.
69411         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69412         alignment than re_node_set; do this by defining a new internal
69413         type struct dests_alloc and using it to allocate memory.
69414
69415 2005-09-05  Bruno Haible  <bruno@clisp.org>
69416
69417         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69418         links.
69419
69420 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69421
69422         * modules/size_max (Makefile.am): Add size_max.h
69423
69424 2005-09-04  Derek Price  <derek@ximbiot.com>
69425
69426         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69427
69428 2005-09-03  Simon Josefsson  <jas@extundo.com>
69429
69430         * gnulib-tool: Fix typo.
69431
69432 2005-09-03  Simon Josefsson  <jas@extundo.com>
69433
69434         * config/srclist.txt: Add glibc bug 1293.
69435
69436 2005-09-03  Derek Price  <derek@ximbiot.com>
69437
69438         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69439         From Larry Jones <lawrence.jones@ugs.com>.
69440
69441 2005-09-02  Simon Josefsson  <jas@extundo.com>
69442
69443         * modules/socklen: New file.
69444
69445 2005-09-02  Simon Josefsson  <jas@extundo.com>
69446
69447         * modules/havelib: New module.
69448
69449         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69450         Use havelib.
69451
69452 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69453
69454         Check for arithmetic overflow when calculating sizes, to prevent
69455         some buffer-overflow issues.  These patches are conservative, in the
69456         sense that when I couldn't determine whether an overflow was possible,
69457         I inserted a run-time check.
69458         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69459         macros.
69460         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69461         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69462         (re_xnrealloc, re_x2nrealloc): New inline functions.
69463         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69464         parse_bracket_exp):
69465         (build_equiv_class, build_charclass): Check for arithmetic overflow
69466         in size expression calculations.
69467         * lib/regex_internal.c (re_string_realloc_buffers):
69468         (build_wcs_upper_buffer, re_node_set_add_intersect):
69469         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69470         (re_dfa_add_node, register_state): Likewise.
69471         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69472         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69473         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69474         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69475
69476 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69479         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69480
69481 2005-09-02  Bruno Haible  <bruno@clisp.org>
69482
69483         Support for lib vs. lib64 distinction on biarch platforms.
69484         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69485         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69486         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69487
69488 2005-09-02  Bruno Haible  <bruno@clisp.org>
69489
69490         * gnulib-tool (import): In the other first-use case, provide defaults
69491         as well.
69492
69493 2005-09-02  Bruno Haible  <bruno@clisp.org>
69494
69495         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69496         patches not yet found in the latest gettext release.
69497
69498 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69499
69500         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69501         to avoid a collision with bits/local_lim.h in glibc.
69502         All uses changed.  Problem reported by Dmitry V. Levin in
69503         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69504
69505         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69506         bugs in int versus size_t comparisons.
69507         (re_string_context_at): Fix bug where the code assumed that
69508         Idx is signed.
69509
69510         Use bool where appropriate.
69511         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69512         All callers changed.
69513         (calc_eclosure_iter): Likewise, for ROOT arg.
69514         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69515         (build_charclass_op): Likewise, for NON_MATCH arg.
69516         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69517         (re_string_construct_common): Likewise, for ICASE arg.
69518         * lib/regexec.c (re_search_2_stub, re_search_stub):
69519         Likewise, for RET_LEN arg.
69520         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69521         (set_regs): Likewise, for FL_BACKTRACK arg.
69522         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69523         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69524         (calc_eclosure_iter, parse_bracket_exp):
69525         Use bool for internal variables that are booleans.
69526         * lib/regexec.c (re_search_internal, check_matching,
69527         proceed_next_node):
69528         (set_regs, build_sifted_states, sift_states_bkref):
69529         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69530         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69531         (find_collation_sequence_value):
69532         Likewise.
69533         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69534         (re_node_set_compare):
69535         Return bool, not int. All callers changed.
69536         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69537         (build_trtable, check_node_accept): Likewise.
69538         * lib/regex_internal.h: Include stdbool.h.
69539
69540         Fix bugs uncovered when converting to bool.
69541         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69542         failure instead of charging ahead blindly.
69543         * lib/regex_internal.c (register_state): Likewise.
69544         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69545         for freeing internal storage.
69546         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69547         bitset pieces used as boolean, to avoid undefined behavior
69548         on hosts that do int overflow checking.
69549
69550 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69551
69552         * config/srclist.txt: Add glibc bugs 1285-1287.
69553
69554 2005-09-01  Jim Meyering  <jim@meyering.net>
69555
69556         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69557         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69558         Require gl_STAT_MACROS, too.
69559
69560 2005-09-01  Bruno Haible  <bruno@clisp.org>
69561
69562         * gnulib-tool (import): In the first-use case, provide defaults.
69563
69564 2005-09-01  Bruno Haible  <bruno@clisp.org>
69565
69566         * gnulib-tool (func_import): Remove the .tmp files.
69567
69568 2005-09-01  Bruno Haible  <bruno@clisp.org>
69569
69570         * gnulib-tool (func_import): Fix handling of symbolic links.
69571
69572 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69575         old glibc regex code mishandles strings longer than 2**31 bytes.
69576         This patch fixes this when the regex code is used in gnulib
69577         (i.e., outside glibc).
69578
69579         This patch should not affect the use of the regex code inside
69580         glibc.  No doubt this problem also needs to be handled for glibc
69581         as well, but the result will be an incompatible change to the
69582         glibc ABI, and the old ABI will have to be supported too.  That
69583         can be the the subject for another patch.
69584
69585         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69586         governing whether the rest of this patch is active.  By default,
69587         the macro is disabled and the patch has no effect.
69588         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69589         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69590         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69591         (re_match_2, re_set_registers): Use the new types.
69592         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69593         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69594         New macros.
69595         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69596         (re_string_context_at, bin_tree_t, re_dfastate_t):
69597         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69598         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69599         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69600         (re_string_char_size_at, re_string_wchar_at):
69601         (re_string_elem_size_at):
69602         Use the new types and macros to port to 64-bit hosts.
69603         Use unsigned types for internal values, so that the code
69604         mostly works even for arrays larger than SSIZE_MAX.
69605         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69606         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69607         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69608         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69609         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69610         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69611         (calc_inveclosure, parse_dup_op, build_range_exp):
69612         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69613         (fetch_number, create_token_tree, mark_opt_subexp):
69614         Likewise.
69615         * lib/regex_internal.c (re_string_construct_common,
69616         create_ci_newstate):
69617         (create_cd_newstate, re_string_allocate, re_string_construct):
69618         (re_string_realloc_buffers, build_wcs_upper_buffer):
69619         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69620         (re_string_reconstruct, re_string_peek_byte_case):
69621         (re_string_fetch_byte_case, re_string_context_at):
69622         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69623         (re_node_set_init_copy, re_node_set_add_intersect):
69624         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69625         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69626         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69627         (re_acquire_state, re_acquire_state_context, register_state):
69628         Likewise.
69629         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69630         search_cur_bkref_entry):
69631         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69632         (re_search_internal, re_search_2_stub, re_search_stub)
69633         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69634         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69635         (update_cur_sifted_state, check_dst_limits):
69636         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69637         (check_subexp_limits, sift_states_bkref, merge_state_array):
69638         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69639         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69640         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69641         (expand_bkref_cache, check_node_accept_bytes):
69642         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69643         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69644         (acquire_init_state_context, check_halt_node_context):
69645         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69646         (sift_states_backward, clean_state_log_if_needed):
69647         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69648         (find_recover_state, transit_state_sb, transit_state_mb):
69649         (transit_state_bkref, build_trtable, match_ctx_clean):
69650         Likewise.
69651         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69652         to work around an assumption that REG_MISSING is negative.
69653
69654         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69655         (seek_collating_symbol_entry) [defined _LIBC]:
69656         (lookup_collation_sequence_value) [defined _LIBC]:
69657         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69658         Use prototypes rather than old-style function definitions.
69659         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69660         (transit_state_sb) [0]:
69661         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69662
69663         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69664         rm_eo.
69665
69666         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69667         (optimize_subexps, lower_subexp):
69668         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69669         since the signed shift might overflow.  Use 1u<<31 instead.
69670         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69671         Likewise.
69672         * lib/regexec.c (check_dst_limits_calc_pos_1,
69673         check_subexp_matching_top): Likewise.
69674
69675         * lib/regcomp.c (optimize_subexps, lower_subexp):
69676         Use CHAR_BIT rather than 8, for clarity.
69677         * lib/regexec.c (check_dst_limits_calc_pos_1):
69678         (check_subexp_matching_top): Likewise.
69679         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69680         have to worry about portability issues when shifting it left.
69681         Remove no-longer-needed test for table_size > 0.
69682         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69683         in a word, as the resulting behavior is undefined.
69684         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69685         in one case, a <= should have been an <, and in another case the
69686         whole test was missing.
69687         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69688         the standard name CHAR_BIT.
69689         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69690         this is not true on one's complement and signed-magnitude hosts.
69691
69692         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69693         next_last_offset.
69694         (struct re_dfa_t): Remove unused member states_alloc.
69695         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69696
69697 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69700         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69701         and large-file glibc and in 32-bit large-file Solaris.
69702
69703 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69704
69705         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69706         lengths fit in regoff_t; this isn't true if regoff_t is the same
69707         width as size_t.
69708         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69709         (= START + RANGE) instead of RANGE.  This avoids overflow
69710         problems when regoff_t is the same width as size_t.
69711         All callers changed.
69712         (re_search_2_stub): Check for overflow when adding the
69713         sizes of the two strings.
69714         (re_search_stub): Check for overflow when adding START
69715         to RANGE; if it occurs, substitute the extreme value.
69716
69717 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69718
69719         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69720
69721 2005-08-31  Jim Meyering  <jim@meyering.net>
69722
69723         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69724         a pointer-to-const.
69725         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69726         (register_state): Likewise.
69727         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69728         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69729         (group_nodes_into_DFAstates): Likewise.
69730
69731 2005-08-31  Jim Meyering  <jim@meyering.net>
69732
69733         * check-module: Add a FIXME comment.
69734
69735 2005-08-31  Eric Blake  <ebb9@byu.net>
69736
69737         * modules/unistd-safer (Files): Add unistd--.h.
69738         * modules/stdio-safer (Files): Add stdio--.h.
69739
69740 2005-08-31  Derek Price  <derek@ximbiot.com>
69741
69742         * lib/getdelim.c (getdelim): Return EOF on EOF.
69743         Reported by Larry Jones <lawrence.jones@ugs.com>.
69744
69745 2005-08-31  Bruno Haible  <bruno@clisp.org>
69746
69747         Avoid unnecessary diffs in the generated lib/Makefile.am.
69748         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69749         the generated files.
69750         (func_import): Don't set cmd.
69751
69752 2005-08-31  Bruno Haible  <bruno@clisp.org>
69753
69754         * lib/strstr.c: Include <stddef.h>, for NULL.
69755         * lib/strcasestr.c: Likewise.
69756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69757
69758 2005-08-31  Bruno Haible  <bruno@clisp.org>
69759
69760         * gnulib-tool: New option --macro-prefix.
69761         (func_import): Use macro_prefix.
69762         (import): Handle option --macro-prefix.
69763
69764 2005-08-31  Bruno Haible  <bruno@clisp.org>
69765
69766         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69767         Also use new variables cached_lgpl, cached_libtool.
69768
69769 2005-08-31  Bruno Haible  <bruno@clisp.org>
69770
69771         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69772         always instantiating them.
69773
69774 2005-08-31  Bruno Haible  <bruno@clisp.org>
69775
69776         * gnulib-tool (func_import): Read the previous cached settings
69777         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69778         earlier added by gnulib but are now dropped. Warn when a gnulib file
69779         overwrites a non-gnulib file.
69780
69781 2005-08-31  Bruno Haible  <bruno@clisp.org>
69782
69783         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69784         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69785         projects that don't keep autogenerated files in CVS. Put into
69786         actioncmd only the specified modules, not the transitive closure.
69787
69788 2005-08-31  Bruno Haible  <bruno@clisp.org>
69789
69790         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69791         Create directories that shall be filled.
69792         (import): Don't look for gl_* macros in configure.ac. Recurse across
69793         all directories containing a gnulib-cache.m4 files, if meaningful.
69794
69795 2005-08-31  Bruno Haible  <bruno@clisp.org>
69796
69797         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69798         (import): Set seen_libtool when we see gl_LIBTOOL.
69799
69800 2005-08-31  Bruno Haible  <bruno@clisp.org>
69801
69802         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69803         declaration macro definitions from generated gnulib.m4.
69804
69805 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69806
69807         * lib/iconvme.h: Add prototype for iconv_alloc.
69808
69809 2005-08-29  Simon Josefsson  <jas@extundo.com>
69810
69811         * lib/iconvme.c: Fix errno.
69812
69813 2005-08-29  Bruno Haible  <bruno@clisp.org>
69814
69815         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69816         that it works when the directory contains spaces.
69817
69818 2005-08-29  Bruno Haible  <bruno@clisp.org>
69819
69820         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69821
69822 2005-08-29  Bruno Haible  <bruno@clisp.org>
69823
69824         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69825         Emit more advice.
69826
69827 2005-08-29  Bruno Haible  <bruno@clisp.org>
69828         and Stepan Kasal  <kasal@ucw.cz>
69829
69830         * check-module: If more parameters are given, check each of them
69831         separately; add more exceptions, as noted by Jim Meyering.
69832         (check_module): New procedure.
69833         (%exempt_header): Now contains all exceptions.
69834
69835 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69836
69837         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69838
69839 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69840
69841         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69842
69843 2005-08-28  Bruno Haible  <bruno@clisp.org>
69844
69845         * m4/gnulib-tool.m4: New file.
69846
69847 2005-08-27  Jim Meyering  <jim@meyering.net>
69848
69849         * modules/unistd-safer (Files): Add pipe-safer.c.
69850         * modules/fcntl-safer (Files): Add creat-safer.c.
69851
69852 2005-08-27  Jim Meyering  <jim@meyering.net>
69853
69854         * m4/stdlib-safer.m4: New file.  From coreutils.
69855         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69856         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69857         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69858         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69859         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69860
69861 2005-08-27  Jim Meyering  <jim@meyering.net>
69862
69863         * lib/fopen-safer.c: Merge minor changes from coreutils.
69864         * lib/dup-safer.c: Likewise.
69865         * lib/fd-safer.c: Likewise.
69866
69867         Merge from coreutils.
69868         * lib/stdio--.h: New file.
69869         * lib/stdlib--.h: New file.
69870         * lib/mkstemp-safer.c: New file.
69871
69872         GNU tar needs these.
69873         * lib/pipe-safer.c: New file.
69874         * lib/creat-safer.c: New file.
69875         * lib/fcntl--.h (creat): Define to creat_safer.
69876         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69877         * lib/unistd--.h (pipe): Define to pipe_safer.
69878         * lib/unistd-safer.h: Declare pipe_safer.
69879
69880 2005-08-26  Simon Josefsson  <jas@extundo.com>
69881
69882         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69883         Haible <bruno@clisp.org>.
69884
69885 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * lib/regex_internal.h: Remove all references to
69888         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69889         or better.
69890         (bitset_not, bitset_merge, bitset_not_merge):
69891         (bitset_mask, re_string_allocate, re_string_construct):
69892         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69893         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69894         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69895         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69896         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69897         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69898         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69899         (re_acquire_state_context):
69900         Remove unnecessary forward decls.
69901         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69902         Put __attribute at function definition,
69903         now that the function decl has been removed.
69904         * lib/regex_internal.c (re_string_peek_byte_case):
69905         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69906         Likewise.
69907
69908 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69909
69910         * m4/regex.m4: Add AC_PREREQ(2.50).
69911         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69912
69913 2005-08-25  Simon Josefsson  <jas@extundo.com>
69914
69915         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69916         __fsetlocking.
69917
69918 2005-08-25  Simon Josefsson  <jas@extundo.com>
69919
69920         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69921         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69922         GLIBC specific code.
69923
69924 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69925
69926         Make regex safe for g++.  This fixes one real bug (an "err"
69927         that should have been "*err").  g++ problem reported by
69928         Sam Steingold.
69929         * lib/regex_internal.h (re_calloc): New macro, consistent with
69930         re_malloc etc.  All callers of calloc changed to use re_calloc.
69931         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69932         not int.  All callers changed.
69933         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69934         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69935         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69936         (find_recover_state): Change "err" to "*err"; this fixes what
69937         appears to be a real bug.
69938         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69939         versus int.
69940
69941 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * modules/regex (Depends-on): Add malloc, since the code
69944         assumes that !malloc(0) means failure.
69945
69946 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69949
69950         alloca modernization/simplification for regex.
69951         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69952         needs to be at the start of the file, and can be moved into
69953         regex_internal.h and simplified.
69954         * lib/regex_internal.h: Include <alloca.h>.
69955         (__libc_use_alloca) [!defined _LIBC]: New macro.
69956         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69957         now works outside glibc.
69958
69959 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * config/srclist.txt: Add glibc bugs 1241, 1245.
69962
69963 2005-08-25  Jim Meyering  <jim@meyering.net>
69964
69965         * lib/open-safer.c: Include <config.h>.
69966         Otherwise, we'd lose LARGEFILE support in any file using
69967         e.g. "fcntl--.h"
69968
69969 2005-08-25  Bruno Haible  <bruno@clisp.org>
69970
69971         * m4/minmax.m4: Require autoconf 2.52.
69972         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69973         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69974         alternatives of translit over the alphabet.
69975         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69976
69977 2005-08-24  Simon Josefsson  <jas@extundo.com>
69978
69979         * tests/test-getpass.c: New file.
69980
69981 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69984         for GNU regex features.
69985
69986 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69989         * lib/regex.h (regerror): Likewise.
69990
69991         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69992         requires this.  (The code never needed it.)
69993
69994         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69995         All uses of recently-renamed identifiers changed to use the new,
69996         POSIX-compliant names.  The code will build and run just fine
69997         without these changes, but it's better to eat our own dog food
69998         and use the standard-conforming names.
69999
70000         * lib/regex.h: Fix a multitude of POSIX name space violations.
70001         These changes have an effect only for programs that define
70002         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70003         do not change anything for programs compiled in the normal way.
70004         Also, there is no effect on the ABI.
70005
70006         (_REGEX_SOURCE): New macro.
70007         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70008         defined and _GNU_SOURCE is not; this fixes a name space violation.
70009
70010         Rename the following macros to obey POSIX requirements.
70011         The old names are still visible as macros if _REGEX_SOURCE is defined.
70012         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70013         RE_BACKSLASH_ESCAPE_IN_LISTS.
70014         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70015         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70016         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70017         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70018         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70019         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70020         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70021         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70022         (REG_INTERVALS): renamed from RE_INTERVALS.
70023         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70024         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70025         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70026         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70027         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70028         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70029         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70030         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70031         RE_UNMATCHED_RIGHT_PAREN_ORD.
70032         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70033         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70034         (REG_DEBUG): renamed from RE_DEBUG.
70035         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70036         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70037         unusual, since we can't clash with the POSIX REG_ICASE.
70038         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70039         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70040         (REG_NO_SUB): renamed from RE_NO_SUB.
70041         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70042         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70043         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70044         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70045         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70046         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70047         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70048         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70049         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70050         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70051         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70052         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70053         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70054         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70055         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70056         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70057         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70058         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70059         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70060         (REG_FIXED): Renamed from REGS_FIXED.
70061         (REG_NREGS): Renamed from RE_NREGS.
70062
70063         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70064         of other REG_* macros, since POSIX says the user is allowed to
70065         #undef these macros selectively.
70066
70067         (reg_errcode_t): Update comment stating what other tables need
70068         to be consistent.
70069
70070         Rename the following enum values to obey POSIX requirements.
70071         The old names are still visible as macros.
70072         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70073         is not defined, since GNU is supposed to be a superset of POSIX as
70074         much as possible, and since we want reg_errcode_t to be a signed
70075         type for implementation consistency.
70076         (_REG_NOERROR): Renamed from REG_NOERROR.
70077         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70078         (_REG_BADPAT): Renamed from REG_BADPAT.
70079         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70080         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70081         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70082         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70083         (_REG_EBRACK): Renamed from REG_EBRACK.
70084         (_REG_EPAREN): Renamed from REG_EPAREN.
70085         (_REG_EBRACE): Renamed from REG_EBRACE.
70086         (_REG_BADBR): Renamed from REG_BADBR.
70087         (_REG_ERANGE): Renamed from REG_ERANGE.
70088         (_REG_ESPACE): Renamed from REG_ESPACE.
70089         (_REG_BADRPT): Renamed from REG_BADRPT.
70090         (_REG_EEND): Renamed from REG_EEND.
70091         (_REG_ESIZE): Renamed from REG_ESIZE.
70092         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70093         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70094         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70095         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70096         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70097
70098         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70099         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70100         changed.  But support the old name if the new one is not defined
70101         and if _REGEX_SOURCE.
70102
70103         Change the following member names in struct re_pattern_buffer.
70104         The old names are still supported if !_REGEX_SOURCE.
70105         The new names are always supported, regardless of _REGEX_SOURCE.
70106         (re_buffer): Renamed from buffer.
70107         (re_allocated): Renamed from allocated.
70108         (re_used): Renamed from used.
70109         (re_syntax): Renamed from syntax.
70110         (re_fastmap): Renamed from fastmap.
70111         (re_translate): Renamed from translate.
70112         (re_can_be_null): Renamed from can_be_null.
70113         (re_regs_allocated): Renamed from regs_allocated.
70114         (re_fastmap_accurate): Renamed from fastmap_accurate.
70115         (re_no_sub): Renamed from no_sub.
70116         (re_not_bol): Renamed from not_bol.
70117         (re_not_eol): Renamed from not_eol.
70118         (re_newline_anchor): Renamed from newline_anchor.
70119
70120         Change the following member names in struct re_registers.
70121         The old names are still supported if !_REGEX_SOURCE.
70122         The new names are always supported, regardless of _REGEX_SOURCE.
70123         (rm_num_regs): Renamed from num_regs.
70124         (rm_start): Renamed from start.
70125         (rm_end): Renamed from end.
70126
70127         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70128         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70129         Prepend __ to parameter names.
70130
70131         Undo yesterday's changes.
70132
70133 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70136         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70137         lib/regex.c.
70138
70139 2005-08-24  Jim Meyering  <jim@meyering.net>
70140
70141         Sync from coreutils.
70142         * m4/fcntl-safer.m4: New file.
70143
70144         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70145         and object files for this module.
70146
70147 2005-08-24  Jim Meyering  <jim@meyering.net>
70148
70149         Sync from coreutils.
70150         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70151
70152 2005-08-24  Jim Meyering  <jim@meyering.net>
70153
70154         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70155         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70156
70157 2005-08-24  Jim Meyering  <jim@meyering.net>
70158
70159         * modules/fcntl-safer: New module.
70160         * modules/fts (Depends-on): Add fcntl-safer.
70161         * MODULES.html.sh (File descriptor based Input/Output):
70162         Add fcntl-safer.
70163
70164 2005-08-24  Bruno Haible  <bruno@clisp.org>
70165
70166         Support for unit test modules.
70167         * modules/README: Mention tests modules.
70168         * modules/TEMPLATE-TESTS: New file.
70169         * gnulib-tool: New options --extract-tests-module, --with-tests and
70170         --tests-base (unused for the moment).
70171         (testsbase, inctests): New variables.
70172         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70173         (func_verify_module): Exclude TEMPLATE-TESTS.
70174         (func_verify_nontests_module, func_verify_tests_module): New functions.
70175         (func_get_dependencies): Add implicit dependency for tests modules.
70176         (func_get_tests_module): New function.
70177         (func_modules_transitive_closure): When --with-tests was specified,
70178         include the unit tests as well, unless explicitly avoided.
70179         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70180         (func_emit_tests_Makefile_am): New function.
70181         (func_create_testdir): When --with-tests was specified, emit a
70182         tests/ directory.
70183         * MODULES.html.sh (Future developments): Update.
70184
70185 2005-08-24  Bruno Haible  <bruno@clisp.org>
70186
70187         * modules/tls-tests: New file.
70188         * tests/test-tls.c: New file, from GNU gettext.
70189
70190 2005-08-24  Bruno Haible  <bruno@clisp.org>
70191
70192         * modules/lock-tests: New file.
70193         * tests/test-lock.c: New file, from GNU gettext.
70194
70195 2005-08-24  Bruno Haible  <bruno@clisp.org>
70196
70197         * lib/lock.h: Add multiple inclusion guard.
70198         * lib/tls.h: Add multiple inclusion guard.
70199
70200 2005-08-24  Bruno Haible  <bruno@clisp.org>
70201
70202         * gnulib-tool: Add support for the --aux-dir option to
70203         --create-testdir, --create-megatestdir, --test, --megatest.
70204         (func_create_testdir, func_create_megatestdir): Optionally emit a
70205         AC_CONFIG_AUX_DIR directive.
70206         (create-testdir, create-megatestdir, test, megatest): Provide a
70207         default value for $auxdir.
70208
70209 2005-08-24  Bruno Haible  <bruno@clisp.org>
70210
70211         * gnulib-tool (import): Use compound statement instead of subshell
70212         where possible.
70213
70214 2005-08-24  Bruno Haible  <bruno@clisp.org>
70215
70216         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70217
70218 2005-08-24  Bruno Haible  <bruno@clisp.org>
70219
70220         * gnulib-tool (func_version): Update.
70221
70222 2005-08-24  Bruno Haible  <bruno@clisp.org>
70223
70224         * gnulib-tool (func_import, func_create_testdir,
70225         func_create_megatestdir): Quote all autoconf macro arguments.
70226
70227 2005-08-24  Bruno Haible  <bruno@clisp.org>
70228
70229         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70230         option --force, because --force causes the aclocal.m4 of each
70231         subdirectory to be newer than the corresponding config.h.in.
70232
70233 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70236         All contents moved to gl_REGEX.
70237         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70238         assume that it does.
70239
70240 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70241
70242         * lib/regex.h (REG_NOSYS)
70243         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70244         Define, since POSIX requires it as of 2001.
70245         (_REG_ENOSYS)
70246         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70247         New private symbol, used to keep the enum signed in all cases.
70248         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70249         Youngman in
70250         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70251
70252         * lib/regex_internal.c (re_string_skip_chars, register_state):
70253         (calc_state_hash):
70254         Remove forward decls; no longer needed now that we use prototypes.
70255         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70256         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70257         (clean_state_log_if_needed): Likewise.
70258
70259 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70260
70261         * config/srclist.txt: Add glibc bugs 1231-1233.
70262
70263 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         Fix problems reported by Sam Steingold in
70266         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70267         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70268         assumed that reg_errcode_t is a signed type, which is not
70269         necessarily true if _XOPEN_SOURCE is not defined.
70270         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70271         since some compilers warn about it otherwise.
70272
70273 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70274
70275         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70276         (init_word_char, create_initial_state, duplicate_node_closure):
70277         (fetch_token, peek_token_bracket, build_range_exp):
70278         (build_collating_symbol): Remove forward decls; no longer needed
70279         now that we use prototypes.
70280
70281         * lib/regcomp.c:
70282         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70283         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70284         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70285         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70286         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70287         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70288         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70289         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70290         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70291         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70292         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70293         (build_charclass, build_charclass_op, fetch_number, create_tree):
70294         (create_token_tree, mark_opt_subexp, duplicate_tree):
70295         Use prototypes rather than old-style definitions.
70296
70297         * lib/regex_internal.c:
70298         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70299         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70300         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70301         (re_string_reconstruct, re_string_peek_byte_case):
70302         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70303         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70304         (re_node_set_init_copy, re_node_set_add_intersect):
70305         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70306         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70307         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70308         (re_acquire_state, re_acquire_state_context, register_state):
70309         (create_ci_newstate, create_cd_newstate, free_state):
70310         Likewise.
70311         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70312         re_search_2):
70313         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70314         (re_search_internal, prune_impossible_nodes):
70315         (acquire_init_state_context, check_matching, static):
70316         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70317         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70318         (update_regs, sift_states_backward, build_sifted_states):
70319         (clean_state_log_if_needed, merge_state_array):
70320         (update_cur_sifted_state, add_epsilon_src_nodes):
70321         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70322         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70323         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70324         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70325         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70326         (check_arrival, check_arrival_add_next_nodes):
70327         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70328         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70329         (check_node_accept_bytes, check_node_accept, extend_buffers):
70330         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70331         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70332         (sift_ctx_init):
70333         Likewise.
70334
70335         * lib/regex_internal.h:
70336         (re_string_allocate, re_string_construct, re_string_reconstruct):
70337         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70338         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70339         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70340         (re_string_context_at, re_string_peek_byte_case):
70341         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70342         is defined, since we now use prototypes always.
70343
70344         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70345         C89 or better.  All uses removed.
70346
70347 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * config/srclist.txt: Add glibc bugs 1220-1227.
70350
70351 2005-08-20  Jim Meyering  <jim@meyering.net>
70352
70353         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70354         of unused local, dfa.
70355
70356 2005-08-20  Bruno Haible  <bruno@clisp.org>
70357
70358         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70359
70360 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70361
70362         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70363         (re_node_set_insert_last, re_dfa_add_node):
70364         Rename local variables to avoid GCC shadowing warnings.
70365
70366 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70369         [defined lint]: Suppress bogus uninitialized-variable warnings.
70370
70371         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70372         and let the caller return REG_ESPACE if out of space.  This
70373         removes an uninitialied-variable warning with GCC 4.0.1, and also
70374         avoids taking the address of a local variable.  All callers
70375         changed.
70376
70377 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70378
70379         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70380         $LIBCSRC/posix/regexec.c.
70381         Add glibc bug 1217 for regcomp.c.
70382
70383 2005-08-19  Jim Meyering  <jim@meyering.net>
70384
70385         * lib/regexec.c (proceed_next_node): Redo local variables to
70386         avoid GCC shadowing warnings.
70387
70388 2005-08-18  Bruno Haible  <bruno@clisp.org>
70389
70390         * lib/strstr.c (strstr): Fix return value in multibyte case.
70391         * lib/strcasestr.c (strcasestr): Likewise.
70392
70393 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70396
70397 2005-08-17  Jim Meyering  <jim@meyering.net>
70398
70399         Make the %s format (seconds since the epoch) work for a negative
70400         number and when used with a zero-padded field width, e.g. %015s.
70401
70402         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70403         label so that it precedes the code to set `digits'.  Otherwise,
70404         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70405         print `00-22'.  Now, it prints `-0022', as it should.
70406
70407 2005-08-17  Bruno Haible  <bruno@clisp.org>
70408
70409         * modules/strstr (Files): Add m4/mbrtowc.m4.
70410         (Depends-on): Add mbuiter.
70411
70412 2005-08-17  Bruno Haible  <bruno@clisp.org>
70413
70414         * modules/strcasestr: New file.
70415         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70416         strcasestr.
70417
70418 2005-08-17  Bruno Haible  <bruno@clisp.org>
70419
70420         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70421
70422 2005-08-17  Bruno Haible  <bruno@clisp.org>
70423
70424         * modules/mbuiter: New file.
70425         * MODULES.html.sh (Extended multibyte and wide character utilities):
70426         Add mbuiter.
70427
70428 2005-08-17  Bruno Haible  <bruno@clisp.org>
70429
70430         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70431         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70432
70433 2005-08-17  Bruno Haible  <bruno@clisp.org>
70434
70435         * m4/strcasestr.m4: New file.
70436
70437 2005-08-17  Bruno Haible  <bruno@clisp.org>
70438
70439         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70440         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70441
70442 2005-08-17  Bruno Haible  <bruno@clisp.org>
70443
70444         * lib/strcasestr.h: New file.
70445         * lib/strcasestr.c: New file.
70446
70447 2005-08-17  Bruno Haible  <bruno@clisp.org>
70448
70449         * lib/strcasecmp.c: Use mbuiter.h.
70450
70451 2005-08-17  Bruno Haible  <bruno@clisp.org>
70452
70453         * lib/mbuiter.h: New file.
70454
70455 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70458         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70459         and gl_GETOPT are both invoked via different paths (as happens
70460         with GNU tar CVS because it uses both argp and getopt), the former
70461         wins.
70462
70463 2005-08-16  Bruno Haible  <bruno@clisp.org>
70464
70465         * modules/tls: New file.
70466         * MODULES.html.sh (Multithreading): Add tls.
70467
70468 2005-08-16  Bruno Haible  <bruno@clisp.org>
70469
70470         * modules/strnlen1: New file.
70471         * MODULES.html.sh (String handling): Add strnlen1.
70472
70473 2005-08-16  Bruno Haible  <bruno@clisp.org>
70474
70475         * modules/strcase (Files): Add m4/mbrtowc.m4.
70476         (Depends-on): Add strnlen1, mbchar.
70477
70478 2005-08-16  Bruno Haible  <bruno@clisp.org>
70479
70480         * modules/mbiter: New file.
70481         * MODULES.html.sh (Extended multibyte and wide character utilities):
70482         Add mbiter.
70483
70484 2005-08-16  Bruno Haible  <bruno@clisp.org>
70485
70486         * modules/mbfile: New file.
70487         * MODULES.html.sh (Extended multibyte and wide character utilities):
70488         Add mbfile.
70489
70490 2005-08-16  Bruno Haible  <bruno@clisp.org>
70491
70492         * modules/mbchar: New file.
70493         * MODULES.html.sh (Extended multibyte and wide character utilities):
70494         New section.
70495
70496 2005-08-16  Bruno Haible  <bruno@clisp.org>
70497
70498         * m4/tls.m4: New file, from GNU gettext.
70499
70500 2005-08-16  Bruno Haible  <bruno@clisp.org>
70501
70502         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70503         always.
70504         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70505
70506 2005-08-16  Bruno Haible  <bruno@clisp.org>
70507
70508         * m4/mbiter.m4: New file.
70509
70510 2005-08-16  Bruno Haible  <bruno@clisp.org>
70511
70512         * m4/mbfile.m4: New file.
70513
70514 2005-08-16  Bruno Haible  <bruno@clisp.org>
70515
70516         * m4/mbchar.m4: New file.
70517
70518 2005-08-16  Bruno Haible  <bruno@clisp.org>
70519
70520         * lib/tls.h: New file, from GNU gettext.
70521         * lib/tls.c: New file, from GNU gettext.
70522
70523 2005-08-16  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/strnlen1.h: New file.
70526         * lib/strnlen1.c: New file.
70527
70528 2005-08-16  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70531         (mbi_init): Update.
70532         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70533         NUL byte, not after it.
70534
70535 2005-08-16  Bruno Haible  <bruno@clisp.org>
70536
70537         * lib/strcase.h (strcasecmp): Add note in comments.
70538         * lib/strncasecmp.c: Use code from strcasecmp.c.
70539         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70540         (strcasecmp): Work correctly in multibyte locales.
70541
70542 2005-08-16  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/mbiter.h: New file.
70545
70546 2005-08-16  Bruno Haible  <bruno@clisp.org>
70547
70548         * lib/mbfile.h: New file.
70549
70550 2005-08-16  Bruno Haible  <bruno@clisp.org>
70551
70552         * lib/mbchar.h: New file.
70553         * lib/mbchar.c: New file.
70554
70555 2005-08-16  Bruno Haible  <bruno@clisp.org>
70556
70557         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70558         the valid ones. Makes the comparison operations transitive:
70559         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70560         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70561
70562 2005-08-15  Simon Josefsson  <jas@extundo.com>
70563
70564         * modules/ssize_t (License): Change to 'unlimited'.
70565
70566         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70567
70568 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70571         Add comments for each pending glibc patch.
70572
70573 2005-08-15  Bruno Haible  <bruno@clisp.org>
70574
70575         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70576         __cplusplus is defined.
70577
70578 2005-08-14  Jim Meyering  <jim@meyering.net>
70579
70580         Sync from coreutils.
70581
70582         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70583         Use the hash-table-based cycle-detection code not just when
70584         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70585         Reported by James Youngman in
70586         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70587         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70588         FTS_TIGHT_CYCLE_CHECK.
70589         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70590         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70591         once again.
70592         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70593         * lib/fts.c (fd_safer): Remove decl.
70594         Include fcntl--.h rather than unistd-safer.h
70595         (fts_safe_changedir): Don't call fd_safer; no longer needed
70596         now that we include fcntl--.h.
70597
70598 2005-08-12  Simon Josefsson  <jas@extundo.com>
70599
70600         * modules/getndelim2: Use ssize_t module.
70601         * modules/getnline: Likewise.
70602         * modules/safe-read: Likewise.
70603         * modules/xreadlink: Likewise.
70604
70605         * modules/ssize_t: New file.
70606
70607 2005-08-12  Simon Josefsson  <jas@extundo.com>
70608
70609         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70610
70611 2005-08-12  Simon Josefsson  <jas@extundo.com>
70612
70613         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70614         ssize_t.
70615
70616 2005-08-12  Simon Josefsson  <jas@extundo.com>
70617
70618         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70619         readline, getdelim and check_version.
70620         (Support for systems lacking ISO C 99: Sizes of integer types):
70621         Add size_max.
70622
70623 2005-08-12  Bruno Haible  <bruno@clisp.org>
70624
70625         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70626
70627 2005-08-11  Simon Josefsson  <jas@extundo.com>
70628
70629         * modules/readline: New file.
70630
70631         * modules/strnlen (Files): Add strnlen.h.
70632
70633 2005-08-11  Simon Josefsson  <jas@extundo.com>
70634
70635         * m4/readline.m4: New file.
70636
70637 2005-08-11  Simon Josefsson  <jas@extundo.com>
70638
70639         * lib/readline.h, readline.c: New file.
70640
70641 2005-08-11  Simon Josefsson  <jas@extundo.com>
70642
70643         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70644         gl_AVOID.
70645
70646 2005-08-11  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70649
70650 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70651
70652         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70653
70654 2005-08-10  Simon Josefsson  <jas@extundo.com>
70655
70656         * tests/test-iconvme.c: New file.
70657
70658 2005-08-10  Simon Josefsson  <jas@extundo.com>
70659
70660         * m4/strnlen.m4: New file.
70661
70662         * m4/strndup.m4: Don't check for strnlen declaration, done in
70663         strnlen.m4.
70664
70665 2005-08-10  Simon Josefsson  <jas@extundo.com>
70666
70667         * lib/strndup.c: Use strnlen.h.
70668
70669         * lib/strnlen.h: New file.
70670
70671 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70672
70673         * README: Typos.
70674
70675 2005-08-02  Simon Josefsson  <jas@extundo.com>
70676
70677         * modules/readline: New file.
70678
70679 2005-08-02  Simon Josefsson  <jas@extundo.com>
70680
70681         * modules/getdelim: New file.
70682
70683         * modules/getline: Rewrite, don't use getndelim2.
70684
70685 2005-08-02  Simon Josefsson  <jas@extundo.com>
70686
70687         * m4/getline.m4: Separate out getdelim stuff into separate module.
70688
70689         * m4/getdelim.m4: New file.
70690
70691 2005-08-02  Simon Josefsson  <jas@extundo.com>
70692
70693         * lib/getline.h, getline.c: Rewrite.
70694
70695         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70696
70697 2005-07-31  Bruno Haible  <bruno@clisp.org>
70698
70699         * lib/lock.h (gl_lock_initializer): New macro.
70700         (gl_lock_define_initialized): Use it.
70701         (gl_rwlock_initializer): New macro.
70702         (gl_rwlock_define_initialized): Use it.
70703         (gl_recursive_lock_initializer): New macro.
70704         (gl_recursive_lock_define_initialized): Use it.
70705
70706 2005-07-30  Karl Berry  <karl@gnu.org>
70707
70708         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70709         Report from Ben Pfaff, regarding getopt.
70710
70711 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70714         normal way.
70715         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70716         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70717         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70718         (gl_GETOPT): Use the new macros.  Most of the implementation
70719         is moved to the new macros.  This is for programs like Emacs
70720         that don't want all the functionality of gl_GETOPT.
70721
70722 2005-07-26  Bruno Haible  <bruno@clisp.org>
70723
70724         * m4/lock.m4: Update from GNU gettext.
70725
70726 2005-07-26  Bruno Haible  <bruno@clisp.org>
70727
70728         * lib/lock.h: Update from GNU gettext.
70729         * lib/lock.c: Update from GNU gettext.
70730
70731 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70734         obsolescent AC_TRY_RUN.  Include the default includes files, for
70735         'exit'.
70736
70737 2005-07-24  Bruno Haible  <bruno@clisp.org>
70738
70739         * modules/visibility: New file.
70740         * MODULES.html.sh (Misc): Add visibility.
70741
70742 2005-07-24  Bruno Haible  <bruno@clisp.org>
70743
70744         * m4/visibility.m4: New file.
70745
70746 2005-07-24  Bruno Haible  <bruno@clisp.org>
70747
70748         * doc/visibility.texi: New file.
70749
70750 2005-07-22  Bruno Haible  <bruno@clisp.org>
70751
70752         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70753         $(ALLOCA_H), redundant through BUILT_SOURCES.
70754         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70755         redundant through BUILT_SOURCES.
70756         * modules/byteswap (Makefile.am): Remove explicit dependency on
70757         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70758         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70759         $(FNMATCH_H), redundant through BUILT_SOURCES.
70760         * modules/getopt (Makefile.am): Remove explicit dependency on
70761         $(GETOPT_H), redundant through BUILT_SOURCES.
70762         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70763         redundant through BUILT_SOURCES.
70764         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70765         redundant through BUILT_SOURCES.
70766         * modules/stdbool (Makefile.am): Remove explicit dependency on
70767         $(STDBOOL_H), redundant through BUILT_SOURCES.
70768         * modules/stdint (Makefile.am): Remove explicit dependency on
70769         $(STDINT_H), redundant through BUILT_SOURCES.
70770         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70771         Remove explicit dependency on $(SYSEXITS_H).
70772         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70773
70774 2005-07-18  Simon Josefsson  <jas@extundo.com>
70775
70776         * lib/check-version.c (check_version): Accept identical versions too.
70777
70778 2005-07-18  Bruno Haible  <bruno@clisp.org>
70779
70780         * modules/lock: New file.
70781         * MODULES.html.sh (Multithreading): New section.
70782
70783 2005-07-18  Bruno Haible  <bruno@clisp.org>
70784
70785         * m4/lock.m4: New file, from GNU gettext.
70786
70787 2005-07-18  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/lock.h: New file, from GNU gettext.
70790         * lib/lock.c: New file, from GNU gettext.
70791
70792 2005-07-18  Bruno Haible  <bruno@clisp.org>
70793
70794         * lib/lock.h (gl_once_t): New type.
70795         (gl_once_define, gl_once): New macros.
70796         * lib/lock.c (fresh_once): New variable.
70797         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70798         functions.
70799
70800 2005-07-16  Simon Josefsson  <jas@extundo.com>
70801
70802         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70803         workaround, suggested by Bruno.
70804
70805 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70806
70807         * modules/xalloc (Depends-on): Add xalloc-die.
70808         * modules/xvasprintf (Depends-on): Add xalloc-die.
70809
70810 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70813         with a minor change.
70814
70815 2005-07-15  Bruno Haible  <bruno@clisp.org>
70816
70817         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70818         When using lib/poll.c, define poll as rpl_poll.
70819
70820 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * modules/argp (Depends-on): Remove unlocked-io.
70823
70824 2005-07-14  Derek Price  <derek@ximbiot.com>
70825
70826         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70827         for glob symlink bug.
70828
70829 2005-07-14  Bruno Haible  <bruno@clisp.org>
70830
70831         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70832         Instead, test for *_unlocked function declarations directly.
70833
70834 2005-07-11  Simon Josefsson  <jas@extundo.com>
70835
70836         * modules/size_max: New file.
70837
70838         * modules/xsize: Depend on size_max module for size_max.m4.
70839
70840 2005-07-11  Simon Josefsson  <jas@extundo.com>
70841
70842         * lib/size_max.h: New file.
70843
70844 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70847         copyright symbol and the year.
70848         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70849         (version_etc_va): Use parameterized copyright notice.
70850         Reword to conform to the current GNU coding standards.
70851
70852 2005-07-11  Karl Berry  <karl@gnu.org>
70853
70854         * doc/gnulib.texi (Quoting): new node.
70855         (Initial import): more info, from Patrice.
70856
70857 2005-07-11  Bruno Haible  <bruno@clisp.org>
70858
70859         * gnulib-tool (func_usage): Document option --avoid.
70860         (Command line options): Handle --avoid.
70861         (func_acceptable): New function.
70862         (func_modules_transitive_closure): Use it.
70863
70864 2005-07-11  Bruno Haible  <bruno@clisp.org>
70865
70866         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70867         Reported by Jim Meyering.
70868
70869 2005-07-10  Bruno Haible  <bruno@clisp.org>
70870
70871         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70872         Needed when size_t is smaller than 'unsigned int'.
70873         Reported by Paul Eggert.
70874
70875 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70876
70877         * modules/argp (Depends-on): Add unlocked-io
70878
70879 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70880
70881         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70882         block of defines.
70883
70884 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70887         fix now.
70888
70889 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70890         and Paul Eggert  <eggert@cs.ucla.edu>
70891
70892         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70893         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70894
70895 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * modules/regex (Files): Add lib/regex_internal.c,
70898         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70899         (Depends-on): Add extensions.
70900         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70901
70902 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70903
70904         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70905         pathconf.
70906         * m4/same.m4 (gl_SAME): Likewise.
70907         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70908
70909         * m4/regex.m4: Adjust to new libc regex implementation.
70910         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70911         all the .c and .h parts of (the new) regex.
70912         Quote the m4 stuff better.
70913         Check for RE_ICASE bug of old gnulib.
70914         Check for REG_STARTEND of recent libc.
70915         Rename local variables from jm_* to gl_*.
70916         Quote operand of "test -f".
70917         Say "recent enough" version of libc, not "version 2".
70918         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70919         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70920         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70921         Remove check for btowc, isascii.
70922         Require AM_LANGINFO_CODESET.
70923
70924 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * lib/regex.c, regex.h: Sync from libc.
70927         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70928         * lib/regexec.c:
70929         New files, synced from libc, except that regex_internal.h
70930         currently has a small porting fix.
70931
70932 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70935         regex_internal.c, regexec.c.
70936         Add regex_internal.h too, but as a comment, since the libc version
70937         is currently broken in gnulib mode.
70938
70939 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         Support programs like Emacs that use gnulib but not gettext.
70942         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70943         * modules/gettext-h: New file.
70944         * modules/gettext (Files): Remove lib/gettext.h.
70945         (Depends-on): Add gettext-h.
70946         (Makefile.am): Remove lib_SOURCES.
70947         * modules/argmatch, modules/c-stack, modules/closeout:
70948         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70949         * modules/execute, modules/file-type, modules/getaddrinfo:
70950         * modules/getopt, modules/human, modules/javacomp:
70951         * modules/javaexec, modules/mkdir-p, modules/obstack:
70952         * modules/openat, modules/pagealign_alloc, modules/pipe:
70953         * modules/quotearg, modules/regex, modules/rpmatch:
70954         * modules/unicodeio, modules/userspec, modules/version-etc:
70955         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70956         * modules/xsetenv:
70957         Depend on gettext-h, not gettext.
70958
70959 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * gnulib-tool (func_import): Add support for 'public domain' license.
70962         * modules/alloca, modules/atexit, modules/memmove:
70963         Now public domain, not GPL.
70964         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70965         * modules/realloc, modules/strerror, modules/strtod:
70966         Now LGPL, not GPL.
70967
70968 2005-07-05  Bruno Haible  <bruno@clisp.org>
70969
70970         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70971         autoconf CVS. Needed for mingw.
70972
70973 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70974
70975         Remove the dependency of the strftime module on the tzset module.
70976         * modules/strftime (Depends-on): Remove dependency on tzset.
70977
70978 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         Remove the dependency of the strftime module on the tzset module.
70981         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70982         gl_FUNC_TZSET_CLOBBER.
70983
70984 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         Remove the dependency of the strftime module on the tzset module.
70987         * lib/strftime.c (my_strftime)
70988         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70989         Copy the input structure, to work around some of the bug with
70990         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70991         Solaris releases, you should also use the tzset module, but we won't
70992         require it as a dependency any more since we don't want LGPLed code
70993         to depend on GPLed code.
70994
70995 2005-07-02  Jim Meyering  <jim@meyering.net>
70996
70997         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70998         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70999         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71000         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71001
71002 2005-07-02  Jim Meyering  <jim@meyering.net>
71003
71004         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71005
71006 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71009         declares only 'struct timespec;' (!).
71010
71011 2005-07-01  Jim Meyering  <jim@meyering.net>
71012
71013         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71014         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71015         * lib/save-cwd.c, tempname.c:
71016         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71017         and don't include <sys/file.h>).
71018
71019 2005-06-29  Jim Meyering  <jim@meyering.net>
71020
71021         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71022         type name.  Use the variable name instead.
71023         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71024         Likewise.
71025
71026 2005-06-28  Simon Josefsson  <jas@extundo.com>
71027
71028         * modules/check-version (Files): Add check-version.m4.
71029
71030 2005-06-28  Simon Josefsson  <jas@extundo.com>
71031
71032         * m4/check-version.m4: New file, suggested by Jim Meyering
71033         <jim@meyering.net>.
71034
71035 2005-06-28  Simon Josefsson  <jas@extundo.com>
71036
71037         * lib/check-version.h, lib/check-version.c: New files.
71038
71039 2005-06-28  Simon Josefsson  <jas@extundo.com>
71040
71041         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71042         collision with global variable.  Better indentation.  Don't
71043         increment buffer pointer beyond buffer end.  Based on comments
71044         from Paul Eggert <eggert@cs.ucla.edu>.
71045
71046         * lib/base64.h: Indent.
71047
71048 2005-06-28  Simon Josefsson  <jas@extundo.com>
71049
71050         * doc/gnulib.texi (Library version handling): New section.
71051
71052 2005-06-28  Jim Meyering  <jim@meyering.net>
71053
71054         * check-module (find_included_lib_files): Hard-code another
71055         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71056         but modules/fts-lgpl (correctly) does not list those files.
71057
71058         * modules/canonicalize (Files): Add lib/pathmax.h.
71059
71060 2005-06-25  Simon Josefsson  <jas@extundo.com>
71061
71062         * modules/check-version: New file.
71063
71064 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71067         initializer of struct addrinfo, as an indication that we don't
71068         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71075         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71076         * m4/stat.m4: Remove this file.
71077
71078 2005-06-24  Derek Price  <derek@ximbiot.com>
71079         and Bruno Haible  <bruno@clisp.org>
71080
71081         Remove stat module & update lstat.
71082         * lib/stat.c: Remove this file...
71083         (slash_aware_lstat): ...moving this content and its support...
71084         * lib/lstat.c (rpl_lstat): ...into here.
71085         * lib/lstat.h: New file.
71086
71087 2005-06-24  Derek Price  <derek@ximbiot.com>
71088         and Bruno Haible  <bruno@clisp.org>
71089
71090         Remove stat module & update lstat.
71091         * config/srclist.txt (libc sources): Remove stat.
71092
71093 2005-06-24  Derek Price  <derek@ximbiot.com>
71094         and Bruno Haible  <bruno@clisp.org>
71095
71096         Remove stat module & update lstat.
71097         * MODULES.html.sh (stat): Remove.
71098         * MODULES.html: Regenerated.
71099         * modules/lstat (Description): Correct function name.
71100         (Files): Add "lstat.h".
71101         (Depends-on): Remove stat, add xalloc, stat-macros.
71102         * modules/stat: Remove this file.
71103         (Include): Add "lstat.h", remove <sys/stat.h>.
71104
71105 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71108         (ranged_convert): Don't save conversion in a temporary struct.
71109         This causes a warning with GCC 4.0.0, and anyway in the typical
71110         case it's not worth the extra 100 bytes or so of code.
71111         (ranged_convert, __mktime_internal): When calling a function via a
71112         pointer P, use P () rather than (*P) (), as we now assume C89 or
71113         better.
71114
71115 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71116
71117         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71118         "who -r" failed to give output.  Problem reported by Tim Waugh.
71119
71120         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71121         (xcalloc): Use it to avoid needless tests.
71122         Problem reported by Jim Meyering.
71123
71124 2005-06-20  Derek Price  <derek@ximbiot.com>
71125
71126         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71127         unnecessary for Autoconfs > 2.59c.
71128
71129 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71130
71131         * lib/argp.h (__option_is_short): Check upper limit of
71132         __key. Isprint() requires its argument to have the value
71133         of an unsigned char or EOF.
71134
71135 2005-06-16  Jim Meyering  <jim@meyering.net>
71136
71137         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71138         when either N or S is zero.
71139
71140 2005-06-16  Derek Price  <derek@ximbiot.com>
71141
71142         * m4/bison.m4: Declare YACC & YFLAGS precious.
71143
71144 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71145
71146         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71147         multibyte string or pattern, fall back on unibyte matching.
71148         Problem reported by James Youngman.
71149
71150 2005-06-08  Bruno Haible  <bruno@clisp.org>
71151
71152         * modules/csharpcomp: New file.
71153         * MODULES.html.sh (C#): Add csharpcomp.
71154
71155 2005-06-08  Bruno Haible  <bruno@clisp.org>
71156
71157         * m4/csharpcomp.m4: New file, from GNU gettext.
71158
71159 2005-06-08  Bruno Haible  <bruno@clisp.org>
71160
71161         * lib/csharpcomp.h: New file, from GNU gettext.
71162         * lib/csharpcomp.c: New file, from GNU gettext.
71163         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71164
71165 2005-06-08  Bruno Haible  <bruno@clisp.org>
71166
71167         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71168         warning on mingw.
71169
71170 2005-06-07  Derek Price  <derek@ximbiot.com>
71171
71172         Sync from CVS.
71173         * lib/glob_.h: Indent nested #ifdef.
71174
71175 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         Sync from coreutils.
71178         Use "file name" when talking about file names, instead of "filename"
71179         or "path", as per the GNU coding standards.
71180         * lib/mkdir-p.c: Renamed from makepath.c.
71181         (make_dir_parents): Renamed from make_path.  All callers changed.
71182         * lib/mkdir-p.h: Likewise.  All includers changed.
71183         * lib/filenamecat.c: Renamed from path-concat.c.
71184         (file_name_concat): Renamed from path_concat.  All callers changed.
71185         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71186         * lib/filenamecat.h: Likewise.  All includers changed.
71187         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71188         in comments or local variable names.
71189         * lib/basename.c: Likewise.
71190         * lib/canonicalize.c, canonicalize.h: Likewise.
71191         * lib/dirname.c, dirname.h: Likewise.
71192         * lib/euidaccess.c: Likewise.
71193         * lib/exclude.c: Likewise
71194         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71195         * lib/fsusage.c, fsuage.h: Likewise.
71196         * lib/fts.c, fts_.h: Likewise.
71197         * lib/getcwd.c: Likewise.
71198         * lib/getloadavg.c: Likewise.
71199         * lib/mkstemp.c: Likewise.
71200         * lib/mountlist.c, mountlist.h: Likewise.
71201         * lib/openat.c, openat.h: Likewise.
71202         * lib/readlink-stub.c: Likewise.
71203         * lib/readutmp.c, readutmp.h: Likewise.
71204         * lib/rename.c: Likewise.
71205         * lib/rmdir.c: Likewise.
71206         * lib/same.c: Likewise.
71207         * lib/savedir.c: Likewise.
71208         * lib/stripslash.c: Likewise.
71209         * lib/tempname.c: Likewise.
71210         * lib/xreadlink.c: Likewise.
71211         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71212         All uses changed.
71213         * lib/exclude.h: Likewise.
71214
71215         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71216         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71217         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71218         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71219         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71220         files have been getting away with it for years (MORE/BSD 4.3
71221         is extinct now).
71222         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71223         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71224
71225         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71226         Define to 256, not 255, as per modern POSIX.
71227
71228 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71229
71230         Sync from coreutils.
71231         Use "file name" when talking about file names, instead of "filename"
71232         or "path", as per the GNU coding standards.
71233         * MODULES.html.sh: mkdir-p renamed from makepath.
71234         filenamecat renamed from path-concat.
71235         * modules/filenamecat: Renamed from modules/path-concat.
71236         (Files): filenamecat.h and filenamecat.c renamed from
71237         path-concat.h and path-concat.c.
71238         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71239         (Include): filenamecat.h, not path-concat.h.
71240         * modules/mkdir-p: Renamed from modules/makepath.
71241         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71242         makepath.c.
71243         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71244         (Include): mkdir-p.h, not makepath.h.
71245
71246 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71247
71248         Sync from coreutils.
71249         * m4/mkdir-p.m4: Renamed from makepath.m4.
71250         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71251         Rename files from makepath.c to mkdir-p.c, and from
71252         makepath.h to mkdir-p.h.
71253         * m4/filenamecat.m4: Renamed from path-concat.m4.
71254         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71255         Rename files from path-concat.c to filenamecat.c,
71256         and from path-concat.h to filenamecat.h.
71257         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71258         "file name" in local variables or comments.
71259         * m4/rename.m4: Likewise.
71260
71261 2005-06-01  Bruno Haible  <bruno@clisp.org>
71262
71263         * modules/csharpexec: New file.
71264         * MODULES.html.sh (C#): New section.
71265
71266 2005-06-01  Bruno Haible  <bruno@clisp.org>
71267
71268         * m4/csharp.m4: New file, from GNU gettext.
71269         * m4/csharpexec.m4: New file, from GNU gettext.
71270
71271 2005-06-01  Bruno Haible  <bruno@clisp.org>
71272
71273         * lib/csharpexec.h: New file, from GNU gettext.
71274         * lib/csharpexec.c: New file, from GNU gettext.
71275         * lib/csharpexec.sh.in: New file, from GNU gettext.
71276
71277 2005-05-31  Derek Price  <derek@ximbiot.com>
71278             Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         Sync from cvs.
71281         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71282
71283 2005-05-31  Derek Price  <derek@ximbiot.com>
71284             Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         Sync from cvs.
71287         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71288
71289 2005-05-29  Derek Price  <derek@ximbiot.com>
71290
71291         * config/srclist.txt (glob_.h, glob.c): Add these files.
71292
71293 2005-05-29  Derek Price  <derek@ximbiot.com>
71294
71295         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71296         * modules/glob: New file.
71297         * modules/getlogin_r: Add link to POSIX spec in description.
71298
71299 2005-05-29  Derek Price  <derek@ximbiot.com>
71300             Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * m4/glob.m4: New file.
71303
71304 2005-05-29  Derek Price  <derek@ximbiot.com>
71305             Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * lib/glob_.h, lib/glob.c: New files.
71308
71309 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71312         * modules/fts-lgpl (Depends-on): Remove gettext.
71313
71314 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71315
71316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71317         and don't require gt_INTTYPES_PRI.
71318
71319 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71322
71323         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71324         the configuration hassle isn't worth it.
71325         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71326         (LONGEST_MODIFIER, PRIuMAX): Remove.
71327
71328 2005-05-27  Bruno Haible  <bruno@clisp.org>
71329
71330         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71331
71332 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71335         _POSIX_PTHREAD_SEMANTICS for Solaris.
71336
71337 2005-05-25  Derek Price  <derek@ximbiot.com>
71338
71339         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71340
71341 2005-05-25  Derek Price  <derek@ximbiot.com>
71342             Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71345         * lib/getlogin_r.c, getlogin_r.h: New files.
71346
71347 2005-05-25  Bruno Haible  <bruno@clisp.org>
71348             Derek Price  <derek@ximbiot.com>
71349
71350         * lib/getlogin_r.h: Simplify API documentation.
71351
71352 2005-05-23  Derek Price  <derek@ximbiot.com>
71353
71354         * modules/minmax (Files): Add m4/minmax.m4.
71355         (configure.ac): Add gl_MINMAX.
71356
71357 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71360         so that unistd-safer.h (GPL'ed code) need not be included.
71361
71362 2005-05-22  Bruno Haible  <bruno@clisp.org>
71363
71364         * m4/minmax.m4: New file.
71365         Based on a patch by Derek Price <derek@ximbiot.com>.
71366
71367 2005-05-22  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71370         (INT64_MIN): Fix definition.
71371         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71372
71373         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71374         NEED_SIGNED_INT_TYPES.
71375
71376         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71377         HAVE_SYSTEM_INTTYPES.
71378
71379 2005-05-22  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71382         Also include <sys/param.h> if it defines MIN, MAX.
71383         Based on a patch by Derek Price <derek@ximbiot.com>.
71384
71385 2005-05-21  Jim Meyering  <jim@meyering.net>
71386
71387         * modules/fts (Files): Add m4/inttypes-pri.m4.
71388         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71389
71390 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71391
71392         New fts module.
71393         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71394         (setup_dir, free_dir): New functions.
71395         (enter_dir, leave_dir): Define trivial
71396         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71397         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71398         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71399         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71400         Move to fts-cycle.c.
71401         (fts_open): Use setup_dir.
71402         (fts_close): Use free_dir.
71403         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71404         This adds a label and some gotos, but the alternatives were messier.
71405         Check for memory allocation failure when entering a dir.
71406         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71407         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71408         (FTS): New member fts_cycle, that is a union that contains the
71409         old active_dir_ht and cycle_state.  All uses changed to mention
71410         fts_cycle.ht and fts_cycle.state.
71411         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71412         fts.c, with the following changes:
71413         (setup_dir, free_dir): New functions.
71414         (enter_dir): Now returns bool.  Return true if successful, false
71415         if memory exhausted.  All callers changed.
71416         Do not bother partly cleaning up on
71417         memory allocation failure; that is free_dir's job.
71418         However, free ad if hash_insert fails, to avoid memory leak.
71419         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71420         fts->fts_options to see which union member to use.
71421
71422 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71425         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71426
71427 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71430
71431 2005-05-20  Jim Meyering  <jim@meyering.net>
71432
71433         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71434         Now a macro, to pacify GCC.
71435
71436 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71437
71438         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71439         of -1.
71440
71441 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71442
71443         * lib/chown.c (rpl_chown): Return -1 on failure.
71444
71445 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71448         Don't check for stddef.h.
71449         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71450         don't use its results.
71451         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71452         since we include them unconditionally.  Don't require
71453         AM_STDBOOL_H, since stdbool is a prerequisite.
71454         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71455         since we assume C89 or better.
71456         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71457         as we don't use their results.
71458         Don't check for fchdir, memmove, memset, strrchr, as we use
71459         them unconditionally.
71460         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71461         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71462
71463 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71466         Include <stddef.h> unconditionally, since we assume C89 now.
71467         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71468         * lib/fts.c: Include fts_.h first, to check interface.
71469         Do not include intprops.h; no longer needed.
71470         Include cycle-check.h and hash.h, since fts_.h no longer does.
71471         Remove unnecessary casts of closedir to void.
71472         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71473         decide whether to decrement nlinks.
71474         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71475         (FTS): Use struct hash_table * instead of Hash_table, so that
71476         we no longer need to include hash.h here.
71477
71478 2005-05-18  Jim Meyering  <jim@meyering.net>
71479
71480         * modules/dirfd (License): Change to LGPL.  Most of the code
71481         is already in the public domain.
71482
71483 2005-05-18  Jim Meyering  <jim@meyering.net>
71484
71485         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71486         Reported by Yoann Vandoorselaere.
71487
71488 2005-05-17  Jim Meyering  <jim@meyering.net>
71489
71490         * m4/fts.m4: New file, from coreutils.
71491
71492 2005-05-17  Jim Meyering  <jim@meyering.net>
71493
71494         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71495
71496 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         Sync from coreutils.
71499         * m4/unlinkdir.m4: New file.
71500
71501 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         Sync from coreutils.
71504         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71505         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71506         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71507         White space changes only.
71508         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71509         special.
71510         * lib/yesno.c: Include getline.h, not ctype.h.
71511         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71512         Use getline to remove arbitrary restriction on response length.
71513
71514 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71515
71516         * config/srclist-update: Spell out "Street" in FSF postal
71517         mail address; this is the style the FSF seems to prefer.
71518
71519         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71520         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71521         this updates FSF postal mail address.
71522
71523         Sync from coreutils.
71524         * modules/unlinkdir: New file.
71525         * modules/yesno (Depends-on): Add getline.
71526         * MODULES.html.sh (File system functions): Add unlinkdir.
71527
71528 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71529
71530         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71531         lib/strsep.h:
71532         Change the initial comment to refer to GPL, not LGPL.
71533         gnulib-tool will change it to LGPL as needed.
71534
71535         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71536         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71537         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71538         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71539         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71540         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71541         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71542         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71543         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71544         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71545         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71546         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71547         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71548         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71549         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71550         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71551         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71552         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71553         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71554         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71555         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71556         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71557         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71558         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71559         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71560         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71561         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71562         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71563         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71564         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71565         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71566         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71567         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71568         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71569         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71570         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71571         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71572         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71573         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71574         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71575         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71576         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71577         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71578         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71579         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71580         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71581         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71582         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71583         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71584         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71585         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71586         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71587         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71588         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71589         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71590         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71591         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71592         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71593         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71594         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71595         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71596         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71597         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71598         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71599         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71600         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71601         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71602         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71603         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71604         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71605         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71606         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71607         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71608         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71609         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71610         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71611         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71612         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71613         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71614         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71615         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71616         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71617         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71618         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71619         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71620         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71621         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71622         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71623         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71624         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71625         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71626         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71627         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71628         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71629         lib/yesno.c, lib/yesno.h:
71630         Update FSF postal mail address.
71631
71632 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71635         tests/test-memmem.c, tests/test-stpncpy.c:
71636         Update FSF postal mail address.
71637
71638 2005-05-13  Bruno Haible  <bruno@clisp.org>
71639
71640         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71641         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71642         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71643         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71644         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71645         Add support for 64-bit integers in the MSVC compiler.
71646
71647 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71648
71649         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71650
71651 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71652
71653         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71654
71655 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * doc/getdate.texi (General date syntax): Don't say that date
71658         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71659         Problem reported by Nic Ferrier.
71660
71661 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71662
71663         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71664         specified in ai_socktype. Fix invalid ai_protocol
71665         check. ai_protocol is usually set to 0 or depending on
71666         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71667         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71668         ai_socktype / ai_protocol in the returned addrinfo structure.
71669
71670 2005-05-10  Simon Josefsson  <jas@extundo.com>
71671
71672         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71673         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71674
71675 2005-05-10  Karl Berry  <karl@gnu.org>
71676
71677         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71678         (from http://www.gnu.org/licenses).
71679         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71680         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71681         fdl.texi suffices.
71682
71683 2005-05-10  Karl Berry  <karl@gnu.org>
71684
71685         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71686         (COPYING.DOC): remove.
71687
71688         * config/srclist-update: new FSF address.
71689
71690 2005-05-10  Derek Price  <derek@ximbiot.com>
71691
71692         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71693         possible.
71694
71695 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71696             Bruno Haible  <bruno@clisp.org>
71697
71698         * modules/inet_ntop: New file.
71699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71700         inet_ntop.
71701
71702 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71703             Bruno Haible  <bruno@clisp.org>
71704
71705         * m4/inet_ntop.m4: New file.
71706
71707 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71708             Bruno Haible  <bruno@clisp.org>
71709
71710         * lib/inet_ntop.h: New file.
71711         * lib/inet_ntop.c: New file, from glibc with modifications.
71712
71713 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * modules/time_r (License): Change to LGPL.
71716         * modules/extensions (License): Change to LGPL.  Actually,
71717         the license is more permissive than that, but currently gnulib-tool
71718         doesn't know how to handle more-permissive licenses.
71719
71720         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71721         Problem reported by Dave Love.
71722
71723 2005-05-08  Jim Meyering  <jim@meyering.net>
71724
71725         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71726         blank.
71727
71728 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * modules/argmatch (Depends-on): Add stdbool.
71731         * modules/backupfile (Depends-on): Likewise.
71732         * modules/chdir-long (Depends-on): Likewise.
71733         * modules/closeout (Depends-on): Likewise.
71734         * modules/cycle-check (Depends-on): Likewise.
71735         * modules/dirname (Depends-on): Likewise.
71736         * modules/fnmatch (Depends-on): Likewise.
71737         * modules/fsusage (Depends-on): Likewise.
71738         * modules/fwriteerror (Depends-on): Likewise.
71739         * modules/getcwd (Depends-on): Likewise.
71740         * modules/getloadavg (Depends-on): Likewise.
71741         * modules/hard-locale (Depends-on): Likewise.
71742         * modules/makepath (Depends-on): Likewise.
71743         * modules/mountlist (Depends-on): Likewise.
71744         * modules/nanosleep (Depends-on): Likewise.
71745         * modules/posixtm (Depends-on): Likewise.
71746         * modules/quotearg (Depends-on): Likewise.
71747         * modules/readtokens (Depends-on): Likewise.
71748         * modules/readtokens0 (Depends-on): Likewise.
71749         * modules/readutmp (Depends-on): Likewise.
71750         * modules/save-cwd (Depends-on): Likewise.
71751         * modules/strftime (Depends-on): Likewise.
71752         * modules/userspec (Depends-on): Likewise.
71753         * modules/utimecmp (Depends-on): Likewise.
71754         * modules/xgetcwd (Depends-on): Likewise.
71755         * modules/xnanosleep (Depends-on): Likewise.
71756         * modules/xstrtod (Depends-on): Likewise.
71757         * modules/yesno (Depends-on): Likewise.
71758
71759 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71760
71761         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71762         needless checks.
71763
71764 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         Merge from coreutils.  Among other things,
71767         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71768         * lib/fd-safer.c: New file.
71769         * lib/fcntl-safer.h, open-safer.c: Remove.
71770         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71771         * lib/dup-safer.c: Include unistd-safer.h first.
71772         Don't include errno.h.
71773         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71774         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71775         * lib/file-type.c: Rely on file-type.h change.
71776         * lib/getloadavg.c: Include unistd-safer.h.
71777         (getloadavg): Use safer open.
71778         * lib/getusershell.c: Include "stdio-safer.h".
71779         (getusershell): Use safer fopen.
71780         * lib/long-options.c (long_options): Use NULL rather than 0.
71781         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71782         'free'.
71783         * lib/modechange.c: Likewise.
71784         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71785         (MODE_DONE): New constant.
71786         (struct mode_change): Remove 'next' member.
71787         (make_node_op_equals): New function; like the old one of the
71788         same name, except it allocates an array.
71789         (mode_compile, mode_create_from_ref): Use it.
71790         (mode_compile): Allocate result as an array, not a linked list.
71791         Parse octal string ourself, so that we catch mistakes like "+0".
71792         (mode_adjust): Arg is an array, not a linked list.
71793         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71794         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71795         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71796         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71797         Remove.  This is now stat-macros.h's job.
71798         (talloc): Remove.  All callers replaced by xalloc, so that
71799         our invokers don't have to worry about reporting memory failures.
71800         (make_node_op_equals): Remove.
71801         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71802         New constants.
71803         (struct mode_change): Moved here from modechange.h.
71804         (mode_append_entry): Remove.
71805         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71806         apps to have incorrect behavior.  Use simpler algorithm for head
71807         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71808         Detect more invalid usages rather than having somewhat-random behavior.
71809         Don't insert an "a=" action, as that leads to incorrect behavior.
71810         (mode_compile, mode_create_from_ref): Return NULL on error instead
71811         of an enum, since now there's only one way to have an error.  All
71812         callers changed.
71813         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71814         at the correct time.  Simplify calculation of "+u" and its ilk.
71815         Don't mishandle "+X".
71816         (mode_free): Remove "register" and localize decls.
71817         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71818         (struct mode_change): Move to modechange.c; callers don't
71819         need to see this stuff.
71820         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71821         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71822         (mode_change, mode_adjust): Reflect the new signatures noted above.
71823         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71824         that might redefine system include files.
71825         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71826         (my_usleep): Use NULL rather than (void *) 0.
71827         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71828         Use siginterrupt to specify that system calls should be interrupted.
71829         (rpl_nanosleep): Move initialization of suspended closer to call of
71830         my_usleep.
71831         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71832         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71833         (desirable_utmp_entry): New function.
71834         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71835         using x2nrealloc, to simplify logic.
71836         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71837         size calculation.  Do not assume utmp file is a regular file.
71838         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71839         (READ_UTMP_CHECK_PIDS): New constant.
71840         * lib/save-cwd.c: Include unistd-safer.h.
71841         (save_cwd): Use fd_safer.
71842         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71843         [!_LIBC] Include "stat-macros.h" instead.
71844         * lib/unistd-safer.h (fd_safer): New decl.
71845
71846 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         * modules/getloadavg (Depends-on): Add unistd-safer.
71849         * modules/getusershell (Depends-on): Add stdio-safer.
71850         * modules/lstat (Depends-on): Remove xalloc.
71851         * modules/mkstemp (Depends-on): Add stat-macros.
71852         * modules/modechange (Depends-on): Remove xstrtol.
71853         Add stat-macros, xalloc.
71854         * modules/save-cwd (Depends-on): Add unistd-safer.
71855         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71856         * modules/unistd-safer (Files): Add lib/fd-safer.c
71857         (Makefile.am): Remove lib_SOURCES.
71858
71859         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71860         Remove fcntl-safer; unistd-safer supersedes it.
71861
71862 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71863
71864         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71865         AC_HEADER_STAT.
71866         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71867         (gl_PREREQ_CHOWN): Remove.
71868         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71869         it.  Don't require AC_HEADER_STAT.
71870         (gl_PREREQ_LSTAT): Remove.
71871         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71872         Don't require AC_HEADER_STAT.
71873         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71874         (gl_PREREQ_RMDIR): Remove.
71875         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71876         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71877         the stat-macros module a prerequisite.
71878         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71879         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71880         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71881         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71882         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71883         variable names.
71884         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71885         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71886         variable prefixes.
71887         * m4/fcntl-safer.m4: Remove.
71888         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71889         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71890         Invoke gl_PREREQ_FD_SAFER.
71891         (gl_PREREQ_FD_SAFER): New macro.
71892         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71893         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71894         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71895         Remove duplicate call to AC_LIBOBJ(readutmp).
71896         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71897
71898         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71899         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71900
71901 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * MODULES.html.sh (Misc): Add byteswap.
71904
71905 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71906
71907         * modules/getcwd (Depends-on): Add extensions.
71908         * modules/openat (Depends-on): Likewise.
71909
71910 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71911
71912         * modules/byteswap: New file.
71913
71914 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71915
71916         * m4/byteswap.m4: New file.
71917
71918 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71919
71920         * lib/byteswap_.h: New file.
71921
71922 2005-04-25  Karl Berry  <karl@gnu.org>
71923
71924         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71925
71926 2005-04-25  Albert Chin  <china@thewrittenword.com>
71927
71928         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71929         Toolkit C bug.
71930
71931 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71932
71933         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71934         (func_ln_if_changed): Remove forcibly for no error message
71935         in case file does not exist.
71936
71937 2005-04-19  Simon Josefsson  <jas@extundo.com>
71938
71939         * gnulib-tool (Options): Make --symlink mean --symbolic.
71940
71941 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71942
71943         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71944
71945 2005-04-16  Simon Josefsson  <jas@extundo.com>
71946
71947         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71948
71949 2005-04-15  Simon Josefsson  <jas@extundo.com>
71950
71951         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71952
71953 2005-04-15  Simon Josefsson  <jas@extundo.com>
71954
71955         * gnulib-tool: Rename --symlink to --symbolic.
71956
71957 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71958
71959         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71960         symbolic links to files instead of copying/moving.  Add --aux-dir,
71961         specifying directory relative --dir where auxiliary build tools
71962         are placed.
71963
71964 2005-04-14  Bruno Haible  <bruno@clisp.org>
71965
71966         * modules/allocsa (License): Change to LGPL.
71967         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71968
71969 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71972         that "UTC +1 second" continues to work.  Problem reported
71973         by Dmitry V. Levin.
71974         (relunit_snumber): New rule.
71975         (relunit): Use it.
71976
71977 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71978
71979         * lib/getdate.y (universal_time_zone_table): New constant.
71980         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71981         universal_time_zone_table.
71982         (lookup_zone): Prefer universal_time_zone_table to
71983         local_time_zone_table, so that "GMT" time stamps are allowed in
71984         London during the summer.  Problem reported by Ian Abbott.
71985
71986 2005-04-12  Jim Meyering  <jim@meyering.net>
71987
71988         * lib/human.c (humblock): Set *options even when returning due to
71989         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71990         warning from gcc-4.
71991
71992 2005-04-09  Jim Meyering  <jim@meyering.net>
71993
71994         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71995         -Wuninitialized: initialize tm0.tm_year.
71996
71997 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72000         count, since there's no maximum.  All uses changed.
72001         Add member dsts_seen.
72002         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72003         not being INT_MAX.
72004         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72005         Use pc_rels_seen to decide whther a date is absolute.
72006
72007         * lib/getdate.y (number): Don't overwrite year.
72008         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72009         check.
72010
72011 2005-04-02  Simon Josefsson  <jas@extundo.com>
72012
72013         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72014         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72015
72016 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72017
72018         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72019         where no absolute path name can be longer than PATH_MAX.
72020
72021 2005-03-27  Jim Meyering  <jim@meyering.net>
72022
72023         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72024
72025 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72028         "one's complement" -> "ones' complement" in comment, as per Knuth.
72029         "value of type" -> "type or expression" in comment.
72030         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72031
72032 2005-03-26  Jim Meyering  <jim@meyering.net>
72033
72034         Comment nits.
72035         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72036         Correct typos: s/or/of/.
72037
72038 2005-03-26  Jim Meyering  <jim@meyering.net>
72039
72040         * modules/check-include-files: Move to ../ and rename to...
72041         * check-module: ...this.
72042
72043 2005-03-25  Jim Meyering  <jim@meyering.net>
72044
72045         * modules/xvasprintf (Files): Add xalloc.h.
72046
72047 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72048
72049         * modules/gettext (Files): config/config.rpath ->
72050         build-aux/config.rpath
72051         * modules/iconv (Files): Likewise.
72052         Problem reported by Oskar Liljeblad.
72053
72054 2005-03-23  Jim Meyering  <jim@meyering.net>
72055
72056         * modules/check-include-files: New script to check for
72057         missing dependencies, multiple includes, etc.
72058
72059         * modules/c-strtold (Depends-on): Add xalloc.
72060         * modules/c-strtod (Depends-on): Add xalloc.
72061         * modules/hash (Depends-on): Add xalloc.
72062         (Files): Remove lib/xalloc.h.
72063
72064         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72065         * modules/userspec (Files): Add lib/inttostr.h.
72066
72067 2005-03-23  Jim Meyering  <jim@meyering.net>
72068
72069         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72070
72071 2005-03-22  Jim Meyering  <jim@meyering.net>
72072
72073         * modules/stat-macros: New module.
72074         * modules/canonicalize, modules/euidaccess, modules/file-type,
72075         * modules/filemode, modules/lchown, modules/makepath,
72076         * modules/rmdir, modules/stat: Depend on new stat-macros module
72077         rather than listing lib/stat-macros.h manually.
72078         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72079
72080 2005-03-22  Jim Meyering  <jim@meyering.net>
72081
72082         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72083
72084 2005-03-22  Bruno Haible  <bruno@clisp.org>
72085
72086         * config/srclist.txt: Replace target directory 'config' with
72087         'build-aux'.
72088         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72089         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72090         ../build-aux/.
72091
72092 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72093
72094         * modules/chdir-long (Depends-on): Add mempcpy.
72095
72096         * modules/acl, modules/backupfile, modules/c-strtod,
72097         modules/c-strtold, modules/canon-host, modules/canonicalize,
72098         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72099         modules/exclude, modules/exitfail, modules/file-type,
72100         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72101         modules/getdate, modules/getline, modules/getpagesize,
72102         modules/getpass, modules/getugroups, modules/group-member,
72103         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72104         modules/inttostr, modules/long-options, modules/makepath,
72105         modules/md5, modules/memcasecmp, modules/memcoll,
72106         modules/modechange, modules/mountlist, modules/path-concat,
72107         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72108         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72109         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72110         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72111         modules/strftime, modules/strndup, modules/strverscmp,
72112         modules/timespec, modules/unlocked-io, modules/userspec,
72113         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72114         modules/yesno:
72115         Remove lib_SOURCES line from Makefile.am section, as this is now
72116         done automatically by the corresponding Autoconf macro.
72117
72118 2005-03-21  Jim Meyering  <jim@meyering.net>
72119
72120         Changes imported from coreutils.
72121
72122         * lib/cycle-check.c: Don't include xalloc.h.
72123
72124         * lib/path-concat.c: Don't include assert.h.
72125         (path_concat): Remove assertion that would have triggered
72126         for ABASE starting with more than one slash.
72127         Reported by Andreas Schwab.
72128
72129         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72130         properly when ABASE is an absolute file name.
72131         Correct the description of this function.
72132         Include <assert.h>.
72133         Add an assertion and a test driver.
72134         This fixes a bug introduced on 2004-07-02.
72135         Andreas Schwab reported the resulting failure of cp --parents:
72136         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72137
72138 2005-03-21  Jim Meyering  <jim@meyering.net>
72139
72140         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72141         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72142
72143 2005-03-21  Jim Meyering  <jim@meyering.net>
72144         and  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72147         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72148         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72149         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72150         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72151         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72152         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72153         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72154         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72155         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72156         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72157         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72158         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72159         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72160         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72161         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72162         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72163         for these modules.
72164
72165 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72168         (which shouldn't happen), generate nothing instead of returning 0
72169         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72170
72171 2005-03-16  Bruno Haible  <bruno@clisp.org>
72172
72173         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72174         HAVE_LONGLONG_64BIT.
72175
72176 2005-03-16  Bruno Haible  <bruno@clisp.org>
72177
72178         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72179         HAVE_LONGLONG_64BIT.
72180
72181 2005-03-16  Bruno Haible  <bruno@clisp.org>
72182
72183         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72184         HAVE_LONGLONG_64BIT.
72185
72186 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72189         reliably distinguish strftime failure from empty output on POSIX
72190         hosts.
72191
72192 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72193
72194         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72195         (iconv_string): Don't guess a size-zero buffer, as that might cause
72196         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72197         result would be 'too large', where 'too large' is (heuristically)
72198         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72199         overflow concerns.  This will prevent some unwanted malloc failures
72200         when the inputs are very large.
72201
72202 2005-03-15  Karl Berry  <karl@gnu.org>
72203
72204         * config/srclist.txt (config.rpath): from gettext.
72205         * config/config.rpath: update.
72206
72207 2005-03-15  Bruno Haible  <bruno@clisp.org>
72208
72209         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72210         to 'negate'.
72211
72212         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72213         variable.
72214
72215         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72216         results.
72217
72218 2005-03-14  Simon Josefsson  <jas@extundo.com>
72219
72220         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72221         <fx@gnu.org>.
72222
72223 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72224
72225         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72226         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72227         intprops.h.
72228         * lib/strtol.c: Likewise.
72229
72230 2005-03-14  Jim Meyering  <jim@meyering.net>
72231
72232         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72233         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72234         to be nonzero so that we (and caller) can detect the difference
72235         between a valid zero-length expansion and an error return, even
72236         when the underlying strftime fails before writing anything into
72237         that location.
72238
72239 2005-03-14  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72242         Update from GNU gettext 0.14.3.
72243
72244 2005-03-10  Jim Meyering  <jim@meyering.net>
72245
72246         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72247
72248 2005-03-10  Jim Meyering  <jim@meyering.net>
72249
72250         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72251         so that this module works on systems without fchdir.
72252
72253 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72254
72255         Factor int-properties macros into a single file, except for
72256         glibc-related files.
72257         * lib/intprops.h: New file.
72258         * lib/getloadavg.c: Include it instead of limits.h.
72259         (INT_STRLEN_BOUND): Remove.
72260         * lib/human.c: Include intprops.h.
72261         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72262         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72263         302/1000.
72264         * lib/inttostr.h: Include intprops.h instead of limits.h.
72265         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72266         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72267         for consistency with intprops.h.
72268         (time_t_is_integer, twos_complement_arithmetic): Use them.
72269         * lib/sig2str.h: Include <signal.h>, intprops.h.
72270         (INT_STRLEN_BOUND): Remove.
72271         * lib/strftime.c (TYPE_SIGNED): Remove.
72272         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72273         * lib/strtol.c: Adjust comments to match intprops.h.
72274         * lib/userspec.c: Include intprops.h.
72275         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72276         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72277         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72278         instead of rolling our own expressions.
72279         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72280
72281         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72282         instead of int.
72283         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72284         the right thing even if adding 1900 would overflow.  Similarly
72285         for tm_mon + 1 and tm_yday + 1.
72286         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72287         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72288         (DO_SIGNED_NUMBER): New macro.
72289         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72290
72291 2005-03-07  Bruno Haible  <bruno@clisp.org>
72292
72293         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72294
72295 2005-03-07  Bruno Haible  <bruno@clisp.org>
72296
72297         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72298
72299 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72300
72301         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72302         (func_import): Only replace files via --import when they have actually
72303         changed.
72304
72305 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72306
72307         * m4/mmap-anon.m4: New file.
72308         * m4/pagealign_alloc.m4: New file.
72309
72310 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72311             Bruno Haible  <bruno@clisp.org>
72312
72313         * modules/pagealign_alloc: New file.
72314         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72315
72316 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72317             Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/pagealign_alloc.h: New file.
72320         * lib/pagealign_alloc.c: New file.
72321
72322 2005-03-03  Bruno Haible  <bruno@clisp.org>
72323
72324         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72325         Use an all-permissive copyright notice, recommended by RMS.
72326
72327 2005-03-02  Bruno Haible  <bruno@clisp.org>
72328
72329         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72330         of AIX, the replacement has to be done only after <string.h> is
72331         included, therefore not in config.h. stpncpy.h does the replacement,
72332         and stpncpy.c uses it.
72333
72334 2005-03-02  Bruno Haible  <bruno@clisp.org>
72335
72336         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72337         stpncpy.c uses it.
72338
72339 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72342         The workaround isn't strictly needed for POSIX conformance, and
72343         it's too much of a pain to configure and maintain.  We'll ask
72344         people to fix their kernels instead.
72345         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72346         (NANOSLEEP_BUG_WORKAROUND): Remove.
72347         (xnanosleep): Remove the workaround.
72348
72349 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72352         Reported by Derek Price.
72353         (Include): Add "timespec.h".
72354
72355         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72356
72357 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72360         to detect nanosleep bug.
72361
72362 2005-03-01  Bruno Haible  <bruno@clisp.org>
72363
72364         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72365
72366 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * modules/gethrxtime: New file.
72369         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72370         (Depends-on): Add gethrxtime.
72371         (configure.ac): Add gl_XNANOSLEEP.
72372         (Makefile.am): Remove lib_SOURCES line.
72373
72374 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72377         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72378
72379 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72380
72381         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72382         * lib/timespec.h (gettime): Return void, since it always
72383         succeeds now.  All uses changed.
72384         * lib/gettime.c (gettime): Likewise.
72385         [HAVE_NANOTIME]: Prefer nanotime.
72386         Assume gettimeofday succeeds, as POSIX requires.
72387         Assime time () succeeds, since other code already does.
72388         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72389         (timespec_subtract): Remove.
72390         (NANOSLEEP_BUG_WORKAROUND): New constant.
72391         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72392         things considerably.  Use it only on GNU/Linux hosts, since the
72393         workaround shouldn't be needed elsewhere.
72394
72395 2005-02-24  Bruno Haible  <bruno@clisp.org>
72396
72397         * modules/gettext (Files): Add m4/glibc2.m4.
72398
72399 2005-02-24  Bruno Haible  <bruno@clisp.org>
72400
72401         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72402         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72403         * m4/progtest.m4:
72404         Update from GNU gettext 0.14.2.
72405         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72406
72407 2005-02-24  Bruno Haible  <bruno@clisp.org>
72408
72409         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72410         * lib/config.charset: Update from GNU gettext 0.14.2.
72411
72412 2005-02-24  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/gettext.h: Update from GNU gettext 0.14.2.
72415
72416 2005-02-23  Simon Josefsson  <jas@extundo.com>
72417
72418         * m4/iconvme.m4: New file.
72419
72420 2005-02-23  Jim Meyering  <jim@meyering.net>
72421
72422         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72423         change.
72424         Thanks to Bruno Haible for catching it.
72425
72426 2005-02-22  Simon Josefsson  <jas@extundo.com>
72427
72428         * modules/iconvme: New file.
72429
72430         * MODULES.html.sh: Add iconvme.
72431
72432 2005-02-22  Simon Josefsson  <jas@extundo.com>
72433
72434         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72435
72436 2005-02-22  Simon Josefsson  <jas@extundo.com>
72437
72438         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72439
72440 2005-02-22  Jim Meyering  <jim@meyering.net>
72441
72442         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72443         s/ifndef/ifdef/.
72444
72445 2005-02-20  Neil Conway  <neilc@samurai.com>
72446
72447         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72448         returned by OSX/Darwin if the specified buffer is not large
72449         enough for the hostname.
72450
72451 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72452
72453         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72454         pass it to _help, otherwise the latter coredumps trying to
72455         dereference state.root_argp.
72456
72457 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72458
72459         * modules/chdir-long (Depends-on): Add memrchr.
72460         * modules/memrchr (Files): Add lib/memrchr.h.
72461         (Include): "memrchr.h".
72462
72463 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72466
72467 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * lib/memrchr.h: New file.
72470         * lib/chdir-long.c: Include it.
72471         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72472         Don't bother including stddef.h.
72473
72474 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72475
72476         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72477         inclusion.
72478         Include <sys/types.h>, for dev_t.
72479         (ME_DUMMY, ME_REMOTE): Move from here....
72480         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72481         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72482         Dmitry V. Levin.
72483         Include mountlist.h first, to test the interface.
72484
72485 2005-01-29  Bruno Haible  <bruno@clisp.org>
72486
72487         * lib/progname.c (program_name): Initialize.
72488         Needed when linking statically on MacOS X.
72489
72490 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         Sync from coreutils.
72493         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72494         (Depends-on): Add c-strtod.
72495         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72496
72497 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         Sync from coreutils.
72500         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72501
72502         Remove files that are specific to coreutils.
72503         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72504
72505 2005-01-28  Bruno Haible  <bruno@clisp.org>
72506
72507         * modules/javacomp: New file.
72508         * MODULES.html.sh (Java): Add javacomp.
72509
72510 2005-01-28  Bruno Haible  <bruno@clisp.org>
72511
72512         * m4/javacomp.m4: New file, from GNU gettext.
72513
72514 2005-01-28  Bruno Haible  <bruno@clisp.org>
72515
72516         * lib/javacomp.sh.in: New file, from GNU gettext.
72517         * lib/javacomp.h: New file, from GNU gettext.
72518         * lib/javacomp.c: New file, from GNU gettext.
72519
72520 2005-01-26  Simon Josefsson  <jas@extundo.com>
72521
72522         * lib/gai_strerror.c: Use GPL in header.
72523
72524 2005-01-26  Bruno Haible  <bruno@clisp.org>
72525
72526         * modules/javaexec: New file.
72527         * MODULES.html.sh (Java): Add javaexec.
72528
72529 2005-01-26  Bruno Haible  <bruno@clisp.org>
72530
72531         * m4/javaexec.m4: New file, from GNU gettext.
72532
72533 2005-01-26  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/javaexec.sh.in: New file, from GNU gettext.
72536         * lib/javaexec.h: New file, from GNU gettext.
72537         * lib/javaexec.c: New file, from GNU gettext.
72538
72539 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72540
72541         * modules/lchown (Depends-on): Remove lchown.h
72542
72543 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72544
72545         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72546         must be defined if the header file was not found, in order
72547         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72548
72549 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72550
72551         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72552         initializers for struct pentry_state.
72553         (__argp_error): Check return value of __asprintf
72554         (__argp_failure): Translate error message
72555
72556         * lib/argp-parse.c: Removed braces around the expansion of N_()
72557
72558 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72559
72560         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72561         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72562         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72563         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72564         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72565         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72566         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72567         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72568         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72569         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72570         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72571         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72572         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72573         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72574         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72575         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72576         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72577         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72578         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72579         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72580         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72581         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72582         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72583         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72584         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72585         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72586         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72587         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72588         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72589         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72590         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72591         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72592         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72593         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72594         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72595         Use an all-permissive copyright notice, recommended by RMS.
72596
72597 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         * modules/chdir-long (Depends-on): Remove mempcpy.
72600
72601 2005-01-21  Jim Meyering  <jim@meyering.net>
72602
72603         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72604         same value as for Solaris 9.
72605
72606         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72607         component length.  This included changing the parameter to be
72608         of type `char *' rather than `char const *'.
72609         * lib/chdir-long.h (chdir_long): Update prototype.
72610
72611         * lib/openat.c (fdopendir, fstatat): New functions.
72612         * lib/openat.h: Include headers required for use of DIR and struct
72613         stat.
72614         [AT_SYMLINK_NOFOLLOW]: Define.
72615         (fdopendir, fstatat): Add prototypes.
72616
72617 2005-01-21  Bruno Haible  <bruno@clisp.org>
72618
72619         * modules/classpath: New file.
72620         * MODULES.html.sh (Java): Add classpath.
72621
72622 2005-01-21  Bruno Haible  <bruno@clisp.org>
72623
72624         * lib/classpath.h: New file, from GNU gettext.
72625         * lib/classpath.c: New file, from GNU gettext.
72626
72627 2005-01-20  Simon Josefsson  <jas@extundo.com>
72628
72629         * modules/version-etc-fsf: New file.
72630
72631 2005-01-20  Simon Josefsson  <jas@extundo.com>
72632
72633         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72634         * lib/version-etc.c: Remove version_etc_copyright.
72635         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72636         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72637
72638 2005-01-20  Simon Josefsson  <jas@extundo.com>
72639
72640         * lib/base64.h (isbase64): Add.
72641
72642         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72643         using a unsigned prototype, don't inline.
72644         (base64_decode): Use it.
72645
72646 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72647
72648         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72649         it.
72650
72651 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72652
72653         * lib/save-cwd.c (save_cwd): Remove code to support the case
72654         where fchdir is missing or flaky.
72655
72656 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72659
72660 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72663         AC_LIBSOURCES now does this.
72664         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72665         with new ullong_max module.
72666
72667 2005-01-19  Bruno Haible  <bruno@clisp.org>
72668
72669         * modules/sh-quote: New file.
72670         * MODULES.html.sh (Executing programs): Add sh-quote.
72671
72672 2005-01-19  Bruno Haible  <bruno@clisp.org>
72673
72674         * lib/sh-quote.h: New file, from GNU gettext.
72675         * lib/sh-quote.c: New file, from GNU gettext.
72676
72677 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72678
72679         Merge from coreutils.
72680         * m4/ullong_max.m4: New file.
72681         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72682         (gl_MACROS): Assume localeconv exists.
72683
72684 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         Merge changes from coreutils, as described below in several
72687         changelogs dated today.
72688
72689         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72690         (O_DIRECTORY): Remove; not needed here, since "." must be
72691         a directory.  All uses removed.
72692         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72693         universal on Suns, and we also need to test for IRIX.
72694         Revamp code to use 'if' rather than '#if'.
72695         Avoid unnecessary comparison of cwd->desc to 0.
72696
72697         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72698         for known valid error numbers rather than observed invalid ones.
72699
72700 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         * modules/ullong_max: New file.
72703
72704         * modules/chdir-long, modules/openat: New files.
72705         * modules/save-cwd (Depends-on): Depend on chdir-long.
72706         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72707
72708 2005-01-18  Jim Meyering  <jim@meyering.net>
72709
72710         Merge from coreutils.
72711         * m4/chdir-long.m4, m4/openat.m4: New files.
72712         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72713         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72714         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72715         is sane and DOES follow symlinks.  Besides, testing 20 different
72716         systems found no broken chown implementations.
72717         Prompted by a change in rsync's copy of this macro.
72718         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72719
72720         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72721
72722         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72723         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72724         NULL-means-set-to-current-time semantics.
72725         Remove temporary file immediately, rather than waiting
72726         for configure's at-exit trap code to do it.
72727
72728 2005-01-18  Jim Meyering  <jim@meyering.net>
72729
72730         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72731
72732         * lib/utimens.c (futimens): Account for the fact that futimes
72733         can also fail with errno == ENOSYS or errno == ENOENT.
72734         Patch from Dmitry V. Levin.
72735
72736         Change the name of the robust chdir function from chdir to chdir_long.
72737         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72738         (restore_cwd): Use chdir_long, not chdir.
72739         * lib/chdir-long.c: Renamed from chdir.c.
72740         * lib/chdir-long.h: Renamed from chdir.h.
72741         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72742         Hurd.
72743
72744 2005-01-18  Bruno Haible  <bruno@clisp.org>
72745
72746         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72747         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72748         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72749         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72750         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72751         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72752         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72753         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72754         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72755         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72756         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72757         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72758         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72759         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72760         Use an all-permissive copyright notice, recommended by RMS.
72761
72762 2005-01-18  Bob Proulx  <bob@proulx.com>
72763
72764         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72765         simplify offsetof() macro construct to avoid compile failure with
72766         native HP-UX 11.0 ANSI C compiler.
72767
72768 2005-01-17  Bruno Haible  <bruno@clisp.org>
72769
72770         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72771         redundant because stpncpy.m4 takes care of it.
72772
72773 2005-01-17  Bruno Haible  <bruno@clisp.org>
72774
72775         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72776
72777 2005-01-17  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72780         used.
72781
72782 2005-01-17  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/fwriteerror.h (fwriteerror): Change specification to include
72785         fclose.
72786         * lib/fwriteerror.c: Include <stdbool.h>.
72787         (fwriteerror): At the end, close the file stream. Record whether
72788         stdout was already closed.
72789
72790 2005-01-17  Bruno Haible  <bruno@clisp.org>
72791
72792         * lib/execute.c (environ): Declare if needed.
72793         * lib/pipe.c (environ): Likewise.
72794         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72795
72796 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72797
72798         * modules/argp: Depend on vsnprintf
72799
72800 2005-01-10  Jim Meyering  <jim@meyering.net>
72801
72802         * modules/closeout (Depends-on): Add atexit.
72803
72804 2005-01-06  Bruno Haible  <bruno@clisp.org>
72805
72806         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72807
72808 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72811         definitions to be after all include files, to avoid collisions.
72812         Problem reported by Bob Proulx.
72813
72814 2005-01-04  Jim Meyering  <jim@meyering.net>
72815
72816         Changes imported from coreutils.
72817         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72818         as the mkstemp template, use a temporary directory and an
72819         8.3-friendly template to avoid trouble on systems like DJGPP.
72820         Reported by Juan M. Guerrero via Stepan Kasal.
72821         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72822         close. Remove the temporary directory right away, rather than waiting
72823         for configure's at-exit trap code to do it.
72824         Suggestion from Stepan Kasal.
72825
72826 2005-01-01  Simon Josefsson  <jas@extundo.com>
72827
72828         * gnulib-tool: Print #include directives when --import'ing.
72829
72830 2004-12-28  Simon Josefsson  <jas@extundo.com>
72831
72832         * tests/test-base64.c: Include required header files.  Remove
72833         unused variables.
72834
72835 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * modules/error (Depends-on): Remove gettext.
72838
72839 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72842         not needed.  This removes a dependency on the gettext module.
72843         [defined _LIBC]: Do not include <libintl.h>; not needed.
72844
72845 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72846
72847         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72848         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72849
72850 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72853         HAVE_DECL_STRTOLD.
72854
72855 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * modules/getdate (Depends-on): Remove alloca-opt.
72858
72859 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72862
72863 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * lib/argp-parse.c: Include <stddef.h>.
72866         (alignof, alignto): New macros.
72867         (parser_init): Don't assume that void * is aligned sufficiently
72868         for struct option.
72869
72870         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72871         need to extend the stack.
72872         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72873         large.
72874
72875 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72876
72877         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72878
72879 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72882         (2004-10-24) change.  Apparently this was a false alarm.
72883
72884         * modules/getdate: Depend on alloca-opt, not alloca.
72885
72886 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72889         Remove now-obsolete comment about AIX.
72890         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72891         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72892         (YYMAXDEPTH): New macro.
72893
72894 2004-12-18  Simon Josefsson  <jas@extundo.com>
72895
72896         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72897
72898 2004-12-18  Bruno Haible  <bruno@clisp.org>
72899
72900         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72901
72902 2004-12-18  Bruno Haible  <bruno@clisp.org>
72903
72904         * lib/fatal-signal.c (fatal_signals): Make non-const.
72905         (init_fatal_signals): New function.
72906         (uninstall_handlers, install_handlers): Ignore signals that were set to
72907         SIG_IGN.
72908         (at_fatal_signal): Call init_fatal_signals.
72909         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72910         SIG_IGN.
72911         Reported by Paul Eggert.
72912
72913 2004-12-18  Bruno Haible  <bruno@clisp.org>
72914
72915         * doc/alloca.texi: New file.
72916         * doc/alloca-opt.texi: New file.
72917
72918 2004-12-17  Jim Meyering  <jim@meyering.net>
72919
72920         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72921         Otherwise, install-sh could exit with improper exit status when
72922         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72923
72924 2004-12-16  Simon Josefsson  <jas@extundo.com>
72925
72926         * tests/test-base64.c: Add license.
72927
72928 2004-12-15  Stepan Kasal  <address@hidden>
72929
72930         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72931
72932 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72933
72934         * modules/getcwd (Files): Add m4/d-ino.m4.
72935         Suggested by Mark D. Baushke.
72936
72937 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72938
72939         * lib/getdate.y (textint): New member "negative".
72940         (time_zone_hhmm): New function.
72941         Expect 14 shift-reduce conflicts, not 13.
72942         (o_colon_minutes): New rule.
72943         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72944         (yylex): Set the "negative" member of signed numbers.
72945
72946 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72947
72948         * doc/getdate.texi (Time of day items, Time zone items):
72949         Describe new formats +00:00, UTC+00:00.
72950
72951 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72954         spurious "-l"s.  Problem reported by Stepan Kasal.
72955
72956 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72959         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72960
72961 2004-12-04  Simon Josefsson  <jas@extundo.com>
72962
72963         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72964         Vandoorselaere <yoann@prelude-ids.org>.
72965
72966 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         Changes imported from coreutils.
72969         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72970         exist.
72971         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72972
72973 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72974
72975         Changes imported from coreutils.
72976         * lib/hard-locale.c: Assume <locale.h> exists.
72977         Include "strdup.h".
72978         (GLIBC_VERSION): New macro.
72979         (hard_locale): Assume setlocale exists.
72980         Rewrite to avoid #ifdef.
72981         Use strdup rather than malloc + strcpy.
72982         * lib/human.c: Assume <locale.h> exists.
72983         (human_readable): Assume localeconv exists.
72984
72985 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72986
72987         * modules/hard-locale (Depends-on): Add strdup.
72988
72989 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72990
72991         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72992         convert T2, not T.  (Imported from libc.)
72993
72994 2004-11-30  Simon Josefsson  <jas@extundo.com>
72995
72996         * modules/restrict (License): Change to LGPL.
72997
72998 2004-11-30  Simon Josefsson  <jas@extundo.com>
72999
73000         * m4/restrict.m4: Add copyright and copying conditions.
73001
73002 2004-11-30  Simon Josefsson  <jas@extundo.com>
73003
73004         * m4/base64.m4: New file.
73005
73006 2004-11-30  Simon Josefsson  <jas@extundo.com>
73007
73008         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73009         base64.
73010
73011         * tests/test-base64.c: New file.
73012
73013         * modules/base64: New file.
73014
73015 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73018         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73019
73020         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73021
73022 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73023
73024         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73025         (__getcwd.c): Don't restore errno; glibc doesn't.
73026         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73027         first, falling back to our code only if its results look suspicious.
73028         Ensure that the resulting buffer is only as large as necessary.
73029
73030         * lib/readutmp.c: Include readutmp.h first.
73031         Include <errno.h>, since readutmp.h no longer does that.
73032         * lib/readutmp.h: Don't include <errno.h>,
73033         <sys/param.h>, <time.h>; not needed to establish interface.
73034         (errno): Remove decl.
73035         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73036         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73037         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73038
73039 2004-11-28  Simon Josefsson  <jas@extundo.com>
73040
73041         * lib/base64.h, base64.c: New file.
73042
73043 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73046
73047 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73050         (Depends-on): Remove pathmax, same.  Add mempcpy.
73051         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73052         (Makefile.am): Append getcwd.h to lib_SOURCES.
73053         (Include): Add getcwd.h.
73054         (Maintainer): Change from Jim Meyering to "all, glibc",
73055         since getdate now uses intended-for-glibc code.
73056         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73057         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73058
73059 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73062         HP's ANSI C compiler.
73063         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73064         Declaring int functions causes warnings on some modern systems and
73065         shouldn't be needed to compile on ancient ones.
73066         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73067         defined.
73068
73069         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73070         with the following changes.
73071         (__set_errno): Parenthesize properly.
73072         Include <stdbool.h>.
73073         (MIN, MAX, MATCHING_INO): New macros.
73074         (__getcwd): Define with prototype, not K&R form.
73075         Use heuristics to allocate default buffer on stack if possible.
73076         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73077         behavior, and to avoid the PATH_MAX limit when computing
73078         ../../../../...
73079         Use MATCHING_INO to compare inode number to file.
73080         Check for arithmetic overflow in size calculations.
73081         Fix bug in reallocation of dot array that caused getcwd to fail
73082         on directories nested deeper than 75.
73083         Be more careful about saving errno on error.
73084         Do not use realloc; use only free+malloc, as this is a bit
73085         more flexible and avoids a needless copy operation.
73086         Do not inspect st_dev and st_ino for symbolic links; POSIX
73087         doesn't specify the latter.
73088         Check for closedir errors.
73089         Avoid needless casts.
73090         Use "#ifdef weak_alias" around weak_alias, to be like other
73091         glibc code.
73092         The following changes to getcwd.c have effect only when used in
73093         gnulib; they have no effect inside glibc proper.
73094         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73095         as alloca isn't used.
73096         (alloca, __alloca): Likewise.
73097         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73098         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73099         unconditionally, as gnulib assumes C89 or better.
73100         Do not include <sys/param.h>.
73101         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73102         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73103         better.
73104         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73105         Include <dirent.h> in a way that is compatible with modern Autoconf.
73106         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73107         New macros, if not already defined.
73108         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73109         Use "_LIBC", not "defined _LIBC", for consistency.
73110         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73111         a mempcpy module.
73112         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73113         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73114         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73115         credit only to Jim Meyering and adjust the copyright dates.
73116         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73117         <stdlib.h>, <unistd.h>, "pathmax.h".
73118         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73119         (INITIAL_BUFFER_SIZE): Remove.
73120         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73121
73122 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73125         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73126         Use the _ONCE methods, for efficiency.
73127         Check for fcntl.h.  In test program, include <errno.h>
73128         and <fcntl.h> if available.  Remove old K&R cruft from
73129         test program.  Check for common errors in GNU/Linux,
73130         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73131         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73132         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73133         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73134         name accordingly.
73135         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73136         accommodate new getcwd.c.
73137         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73138         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73139         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73140         that's all we need now.
73141
73142 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73143
73144         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73145         argp-parse.c depends on getopt internals, that means we should
73146         always use our getopt, to be on the safe side.
73147         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73148         order not to spoil the result of an eventual previous invocation
73149         of gl_GETOPT_SUBSTITUTE.
73150
73151 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73152
73153         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73154         redefinition warnings. To avoid them, include the defines
73155         in `#if !defined __need_getopt ... #endif'. The only place
73156         where __getopt_argv_const is used is in definitions
73157         of getopt_long and getopt_long_only below, which are as well
73158         protected by `#ifndef __need_getopt'.
73159         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73160         __need_getopt after including <stdio.h> and <unistd.h> These
73161         headers might have defined it.
73162
73163 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73164
73165         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73166
73167 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73168
73169         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73170         (futimens): New function, which uses futimes if available.
73171         (futimens, utimens): Support timespec==NULL, with same semantics
73172         as utime and utimens.
73173         * lib/utimens.h (futimens): New decl.
73174
73175 2004-11-23  Jim Meyering  <jim@meyering.net>
73176
73177         * lib/getopt_.h: Remove trailing blanks.
73178
73179 2004-11-23  Jim Meyering  <jim@meyering.net>
73180
73181         * lib/__fpending.c: Add comment.
73182
73183 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73184
73185         * modules/canonicalize (Depends-on): Add xreadlink.
73186         Problem reported by James Youngman.
73187
73188 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73189
73190         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73191         New macros.
73192         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73193         optopt): Use them instead of invoking ## directly; otherwise, the
73194         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73195
73196 2004-11-19  Bruno Haible  <bruno@clisp.org>
73197
73198         * lib/strtok_r.c: Move comments from here...
73199         * lib/strtok_r.h: ... to here.
73200
73201 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73204         implementations that mishandle size_t overflow.
73205
73206 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73209         might fail.  Problem reported by Yoann Vandoorselaere.
73210         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73211         implementations that mishandle size_t overflow.
73212
73213 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * modules/canon-host (Depends-on): Add strdup.
73216
73217 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73220
73221 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * lib/canon-host.c: Include "strdup.h".
73224         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73225         Use strdup instead of malloc/strcpy to duplicate strings.
73226
73227         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73228         (human_space_before_unit): New constant.
73229         * lib/human.c (human_readable): Support it.
73230
73231         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73232         (xgetcwd): Set errno correctly when failing.
73233         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73234         the failure is actually due to a PATH_MAX problem.
73235
73236         Further getopt changes to make it more likely that glibc will
73237         buy the changes back.
73238         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73239         (getopt): Use it, so to preserve glibc semantic
73240         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73241         when compiling for libc.
73242         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73243         (getopt_long, getopt_long_only): Use it.
73244
73245         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73246         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73247         (getopt): Argv is now char * const *, as per standard.
73248         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73249         not char *__getopt_argv_const *.
73250         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73251         _getopt_long_only_r): Likewise.
73252         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73253         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73254         _getopt_long_r, _getopt_long_only_r): Likewise.
73255         * lib/getopt_.h (__getopt_argv_const): Remove.
73256         (getopt): Argv is now char * const *, as per standard.
73257
73258         * lib/getdate.y (tORDINAL): New token.
73259         (day, relunit): Allow it for relative times.
73260         (relative_time_table): Use tORDINAL for ordinals.
73261
73262 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73263
73264         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73265         Document that "second" isn't allowed as an ordinal number.
73266
73267 2004-11-16  Jim Meyering  <jim@meyering.net>
73268
73269         * modules/closeout (Depends-on): Add fpending.
73270
73271 2004-11-15  Jim Meyering  <jim@meyering.net>
73272
73273         * lib/closeout.c: Include "__fpending.h" once again.
73274         Include <stdbool.h>.
73275         (close_stdout): Don't fail just because stdout was closed initially,
73276         since some programs don't write to stdout in the normal course of
73277         operation (other than --version and --help), and we don't want this
73278         function to make e.g. `touch file >&-' fail.
73279         But do fail if it was closed and someone has tried to write to it.
73280         E.g., `printf foo >&-' must fail.
73281
73282 2004-11-13  Jim Meyering  <jim@meyering.net>
73283
73284         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73285
73286 2004-11-12  Simon Josefsson  <jas@extundo.com>
73287
73288         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73289         small doc fix is still pending.
73290
73291 2004-11-11  Simon Josefsson  <jas@extundo.com>
73292
73293         * modules/strtok_r: New file.
73294
73295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73296         strtok_r.
73297
73298 2004-11-11  Simon Josefsson  <jas@extundo.com>
73299
73300         * m4/strtok_r.m4: New file.
73301
73302         * m4/getopt.m4: Replace opterr.
73303
73304 2004-11-11  Simon Josefsson  <jas@extundo.com>
73305
73306         * lib/strtok_r.h, strtok_r.c: New file.
73307
73308 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73309
73310         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73311         of replacing opterr, getopt, etc.  This should handle the
73312         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73313
73314 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73317         we can stop lying to compilers about the constness of argv when we
73318         are compiled outside glibc.
73319         (getopt, getopt_long, getopt_long_only): Use it.
73320         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73321         _getopt_internal, getopt): Likewise.
73322         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73323         _getopt_long_only_r): Likewise.
73324         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73325         _getopt_long_r, _getopt_long_only_r): Likewise.
73326
73327         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73328         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73329         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73330         the other external symbols.
73331         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73332         declaration, since the above renaming now works around collisions.
73333
73334 2004-11-11  Jim Meyering  <jim@meyering.net>
73335
73336         * lib/linebreak.c: Remove trailing blanks.
73337         * lib/alloca_.h: Likewise.
73338         * lib/acosl.c: Likewise.
73339         * lib/euidaccess.c: Likewise.
73340         * lib/allocsa.h: Likewise.
73341
73342 2004-11-10  Simon Josefsson  <jas@extundo.com>
73343
73344         * m4/getaddrinfo.m4: New file.
73345
73346 2004-11-10  Simon Josefsson  <jas@extundo.com>
73347
73348         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73349
73350 2004-11-10  Simon Josefsson  <jas@extundo.com>
73351
73352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73353         getaddrinfo.
73354
73355         * modules/getaddrinfo: New file.
73356
73357 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73358
73359         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73360
73361 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73362
73363         * lib/mktime.c (SHR): New macro, which is a portable
73364         substitute for >> that should work even on Crays.
73365         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73366         Problem reported by Mark D. Baushke in
73367         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73368         * lib/getdate.y (SHR): Likewise.
73369         (tm_diff): Use it.
73370         * lib/strftime.c (SHR): Likewise.
73371         (tm_diff): Use it.
73372         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73373         quote_these_too, so that right shifts are well defined.  All uses
73374         changed.
73375
73376 2004-11-10  Jim Meyering  <jim@meyering.net>
73377
73378         Ensure that no close failure goes unreported.
73379         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73380         return early when it seems there's nothing to flush.
73381         Don't include __fpending.h.
73382
73383 2004-11-10  Jim Meyering  <jim@meyering.net>
73384
73385         * modules/closeout (Depends-on): Remove fpending.
73386
73387 2004-11-10  Jim Meyering  <jim@meyering.net>
73388
73389         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73390
73391 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73392
73393         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73394         gl_FUNC_STRFTIME.
73395         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73396         and AC_REQUIRE when possible, to avoid duplicate checks.
73397         Check for <wchar.h>.
73398
73399 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73402
73403 2004-11-09  Bruno Haible  <bruno@clisp.org>
73404
73405         * m4/sockpfaf.m4: New file.
73406
73407 2004-11-05  Bruno Haible  <bruno@clisp.org>
73408
73409         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73410         Reported by Mark D. Baushke <mdb@cvshome.org>.
73411
73412 2004-11-04  Bruno Haible  <bruno@clisp.org>
73413
73414         2004-09-11  Bruno Haible  <bruno@clisp.org>
73415                 * allocsa.valgrind: New file.
73416         2004-02-06  Bruno Haible  <bruno@clisp.org>
73417                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73418                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73419                 Reported by Christopher Seip <chris.seip@hp.com>.
73420
73421 2004-11-04  Bruno Haible  <bruno@clisp.org>
73422
73423         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73424         (Makefile.am): Distribute it.
73425
73426 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73427
73428         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73429         with errno == ERANGE if the buffer is too small.
73430         Problem reported by Mark D. Baushke.
73431
73432 2004-11-03  Albert Chin  <china@thewrittenword.com>
73433             Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73436         equivalent, substitute $ac_type for equivalent type rather than
73437         blindly using uint32_t *always* which won't work if uint32_t is not
73438         available.  Define _UINT32_T to work around typedef of uint32_t if
73439         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73440         2.5.1.
73441
73442 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * m4/jm-macros.m4: Sync from coreutils.
73445         (gl_MACROS): Check for mbrlen, for pathchk.
73446         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73447
73448 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * lib/xreadlink.c (MAXSIZE): New macro.
73451         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73452         size does not exceed MAXSIZE.  Avoid cast.
73453         As suggested by Mark D. Baushke in
73454         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73455         if readlink fails with buffer size just under MAXSIZE, try again
73456         with MAXSIZE.
73457
73458 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73461
73462 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73463         and  Paul Eggert  <eggert@cs.ucla.edu>
73464
73465         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73466         (get_date): Overparenthesize to avoid GCC warning.
73467
73468 2004-11-02  Bruno Haible  <bruno@clisp.org>
73469
73470         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73471         returns void.
73472
73473 2004-11-02  Bruno Haible  <bruno@clisp.org>
73474
73475         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73476         function returns void.
73477
73478 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73481         fflush_unlocked, flockfile, funlockfile, funlockfile,
73482         fputs_unlocked, putc_unlocked.
73483
73484 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73487         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73488         already declared.
73489
73490 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * modules/getdate (Files): Add doc/getdate.texi.
73493         (Depends-on): Add setenv, xalloc.
73494
73495 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * lib/getdate.y: Add support for TZ="foo" within a date string.
73498         Fix some bugs near time_t boundaries.  Reject dates with
73499         out-of-range components, e.g., "Sept 31".
73500         Include <stdlib.h>, "setenv.h", "xalloc.h".
73501         (ISDIGIT_LOCALE): Remove; unused.
73502         Note that the TZ and time functions used here are not reentrant.
73503         (mktime_ok, get_tz): New functions.
73504         (TZBUFSIZE): New constant.
73505         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73506         This requires that we sometimes generate our own TZ="XXX..." setting.
73507
73508 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * doc/getdate.texi: New file, from coreutils with modifications for
73511         the new TZ parsing.
73512
73513 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73514
73515         * lib/mktime.c (not_equal_tm): Remove redundant check.
73516
73517 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * modules/regex (lib_SOURCES): Add regex.c.
73520         Reported by James Youngman in
73521         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73522
73523 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         * lib/getdate.y: Use Bison 1.875 features, and some minor
73526         code cleanups.  This change does not affect semantics.
73527         Don't include <stdlib.h>; no longer needed.
73528         Don't include unlocked-io.h; only the "#if TEST" code uses
73529         stdio, and performance isn't crucial there.
73530         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73531         Bison 1.875 features as described below.
73532         All uses of "PC." replaced by "pc->".
73533         (YYSTYPE): Add a forward declaration.
73534         (yylex, yyerror): Use full prototypes in forward decls.
73535         Use "%pure-parser" rather than obsolescent "%pure_parser".
73536         Use %parse-param and %lex-param instead of obsolescent
73537         YYPARSE_PARAM and YYLEX_PARAM.
73538         (meridian_table, month_and_day_table, time_units_table,
73539         relative_time_table, time_zone_table, military_table,
73540         lookup_zone, lookup_word, get_date):
73541         Use NULL instead of 0 where appropriate.
73542         (to_hour): Avoid abort (), to avoid a dependency on
73543         stdlib.h.
73544         (yyerror, yylex): Now accepts parser_control * arg.
73545         (main) [TEST]: Use '\0' rather than 0 for char.
73546
73547 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73550
73551 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73552
73553         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73554         It's now the caller's responsibility to handle the case where
73555         !HAVE_GETPAGESIZE && !defined getpagesize.
73556
73557         * lib/mktime.c (leapyear): Arg is long int, not int.
73558
73559 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73562
73563 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73564
73565         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73566         missing.  Problem reported by James Youngman.
73567
73568 2004-10-16  Simon Josefsson  <jas@extundo.com>
73569
73570         * gnulib-tool: Fix comments.  Fix parse problem.
73571         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73572
73573 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73576         implementation of getopt_long.  Problem reported by Alexander Taler in:
73577         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73578
73579 2004-10-15  Bruno Haible  <bruno@clisp.org>
73580
73581         * gnulib-tool: Untabify. Initialize supplied_libname.
73582         (func_usage): More homogenous output.
73583         (func_modules_transitive_closure, func_modules_to_filelist,
73584         func_emit_lib_Makefile_am): New functions.
73585         (func_import): New function, extracted from big case statement. Use
73586         func_get_license, func_modules_transitive_closure,
73587         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73588         opt_lgpl. Don't use test -a, as it's not portable.
73589         (func_create_testdir): Use func_modules_transitive_closure,
73590         func_modules_to_filelist, func_emit_lib_Makefile_am.
73591
73592 2004-10-15  Bruno Haible  <bruno@clisp.org>
73593
73594         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73595
73596 2004-10-15  Bruno Haible  <bruno@clisp.org>
73597
73598         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73599         the portions belonging to each module.
73600         Suggested by Derek Robert Price <derek@ximbiot.com>.
73601
73602 2004-10-12  Simon Josefsson  <jas@extundo.com>
73603
73604         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73605         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73606         to real functions.
73607
73608 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73609
73610         * modules/vsnprintf: New file.
73611
73612 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73613
73614         * m4/vsnprintf.m4: New file.
73615
73616 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73617
73618         * lib/vsnprintf.h: New file.
73619         * lib/vsnprintf.c: New file.
73620
73621 2004-10-11  Bruno Haible  <bruno@clisp.org>
73622
73623         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73624         vsnprintf.
73625
73626 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73629
73630 2004-10-07  Bruno Haible  <bruno@clisp.org>
73631
73632         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73633         fits into the provided buffer.
73634
73635 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * lib/diacrit.c, diacrit.h: Add GPL notice.
73638
73639         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73640         notice.
73641         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73642         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73643         This avoids a potential constant-folding bug.
73644
73645 2004-10-05  Bruno Haible  <bruno@clisp.org>
73646
73647         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73648         for the declaration of strsep.
73649
73650 2004-10-05  Bruno Haible  <bruno@clisp.org>
73651
73652         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73653
73654 2004-10-04  Simon Josefsson  <jas@extundo.com>
73655
73656         * modules/memmem: New file.
73657         * tests/test-memmem.c: New file.
73658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73659
73660 2004-10-04  Simon Josefsson  <jas@extundo.com>
73661
73662         * m4/memmem.m4: New file.
73663
73664 2004-10-04  Simon Josefsson  <jas@extundo.com>
73665
73666         * lib/memmem.h: New file.
73667         * lib/memmem.c: New file, taken from glibc.
73668
73669 2004-10-04  Simon Josefsson  <jas@extundo.com>
73670
73671         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73672         '#ifdef USE_UNLOCKED_IO'.
73673
73674 2004-10-04  Simon Josefsson  <jas@extundo.com>
73675
73676         * config/srclist.txt: Add memmem from glibc.
73677
73678 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73681
73682         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73683         modules/exclude, modules/getdate, modules/getline,
73684         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73685         modules/getusershell, modules/linebuffer, modules/md5,
73686         modules/mountlist, modules/posixtm, modules/readtokens,
73687         modules/readutmp, modules/regex, modules/sha1,
73688         modules/version-etc, modules/yesno:
73689         Remove dependency on unlocked-io.
73690
73691 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73692
73693         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73694
73695         * m4/unlocked-io.m4: Add copyright notice.
73696         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73697
73698 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73701         * lib/xmalloc.c (xmemdup): Likewise.
73702         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73703         XFREE): Remove these long-obsolescent macros.
73704         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73705         * lib/xstrdup.c: Remove.
73706
73707         * lib/regex.c (re_comp): Cast gettext return value to char *,
73708         Problem reported by Martin Neitzel via Mark D. Baushke.
73709
73710 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73713         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73714         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73715         regex.c, sha1.c, version-etc.c, yesno.c:
73716         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73717         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73718         the includer's responsibility.
73719
73720         Sync from coreutils.
73721
73722         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73723         points to the start of a string, as the C Standard says the
73724         resulting behavior is undefined.
73725
73726         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73727         simple -> simple_backups, numbered_existing ->
73728         numbered_existing_backups, numbered -> numbered_backups
73729         to avoid shadowing problems.  All uses changed.
73730         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73731         * lib/backupfile.c (check_extension, numbered_backup):
73732         Rename locals to avoid shadowing 'basename'.
73733         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73734         once.
73735
73736         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73737         * lib/.cvsignore: Add getopt.h.
73738
73739 2004-10-04  Bruno Haible  <bruno@clisp.org>
73740
73741         * modules/README: New file.
73742         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73743         not a module.
73744
73745 2004-10-02  Jim Meyering  <jim@meyering.net>
73746
73747         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73748
73749 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73750
73751         * modules/strsep: New file.
73752
73753 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73754
73755         * m4/strsep.m4: New file.
73756
73757 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73758
73759         * lib/strsep.h: New file.
73760         * lib/strsep.c: New file.
73761
73762 2004-10-01  Simon Josefsson  <jas@extundo.com>
73763
73764         * lib/snprintf.c (snprintf): Handle size==0.
73765
73766 2004-10-01  Simon Josefsson  <jas@extundo.com>
73767             Bruno Haible  <bruno@clisp.org>
73768
73769         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73770         (snprintf): Declare 'args'.
73771
73772 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * lib/snprintf.c: Remove comments as to why each header is needed.
73775
73776 2004-10-01  Bruno Haible  <bruno@clisp.org>
73777
73778         * MODULES.html.sh: Add strsep.
73779
73780 2004-09-30  Simon Josefsson  <jas@extundo.com>
73781
73782         * modules/snprintf: New file.
73783
73784 2004-09-30  Simon Josefsson  <jas@extundo.com>
73785
73786         * m4/snprintf.m4: New file.
73787
73788 2004-09-30  Simon Josefsson  <jas@extundo.com>
73789
73790         * lib/snprintf.h, lib/snprintf.c: New files.
73791
73792 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73793
73794         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73795         (hol_entry_help): Never translate an empty string.
73796         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73797         * lib/argp.h (OPTION_NO_TRANS): New option.
73798
73799 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73800
73801         * modules/argp (Maintainer): Replace Simon Josefsson
73802         by Sergey Poznyakoff.
73803
73804 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73805
73806         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73807         changes merged back into glibc.
73808
73809 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73810
73811         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73812
73813 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73814
73815         * lib/xvasprintf.c: Include xalloc.h.
73816         (xvasprintf): Use xalloc_die, not xmalloc_die.
73817
73818 2004-09-29  Bruno Haible  <bruno@clisp.org>
73819
73820         * modules/alloca-opt: New file, derived from modules/alloca.
73821         * modules/allocsa: Depend on alloca-opt instead of alloca.
73822         * modules/setenv: Likewise.
73823         * modules/vasnprintf: Likewise.
73824         * MODULES.html.sh: Add alloca-opt.
73825
73826 2004-09-28  Simon Josefsson  <jas@extundo.com>
73827
73828         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73829         LGPL, and to replace license template from GPL to LGPL.
73830
73831 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * modules/dummy: Change license to LGPL.
73834
73835 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73838
73839 2004-09-24  Simon Josefsson  <jas@extundo.com>
73840
73841         * modules/minmax (License): Change from GPL to LGPL.
73842
73843 2004-09-23  Simon Josefsson  <jas@extundo.com>
73844
73845         * gnulib-tool (--import): Typo.
73846
73847 2004-09-23  Simon Josefsson  <jas@extundo.com>
73848
73849         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73850
73851 2004-09-22  Bruno Haible  <bruno@clisp.org>
73852
73853         * modules/*: Add 'License' field.
73854         * gnulib-tool: Accept --extract-license option.
73855         (func_get_license): New function.
73856
73857 2004-09-21  Bruno Haible  <bruno@clisp.org>
73858
73859         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73860         Reported by Simon Josefsson.
73861
73862 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73865         gl_AC_TYPE_LONG_LONG.
73866
73867 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73870
73871 2004-09-18  Simon Josefsson  <jas@extundo.com>
73872         and  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73875         calls with autoreconf.  Define GL_LIB.
73876
73877 2004-09-14  Karl Berry  <karl@gnu.org>
73878
73879         * config/srclist.txt: unsync setenv.c, sigh.
73880
73881 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73884         Problem reported by Bruno Haible in:
73885         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73886
73887 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * config/srclist.txt: Comment out argp-pvh.c.
73890
73891 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73894         in case some system header has #define'd it.  Problem reported by
73895         Soeren D. Schulze in
73896         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73897
73898 2004-09-09  Karl Berry  <karl@gnu.org>
73899
73900         * regex.[ch]: delete from the root.  These were supposed to be
73901                 synced with emacs cvs, but this has not happened for about
73902                 a year, and anyway nothing else uses emacs regex.[ch].
73903                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73904                 lib/regex[.ch] is untouched.
73905
73906 2004-09-09  Bruno Haible  <bruno@clisp.org>
73907
73908         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73909
73910 2004-09-09  Bruno Haible  <bruno@clisp.org>
73911
73912         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73913         modifications.
73914         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73915
73916 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73917
73918         * modules/xvasprintf: New file.
73919         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73920
73921 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73922
73923         * lib/xvasprintf.h: New file.
73924         * lib/xvasprintf.c: New file.
73925         * lib/xasprintf.c: New file.
73926
73927 2004-09-08  Bruno Haible  <bruno@clisp.org>
73928
73929         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73930
73931 2004-09-08  Bruno Haible  <bruno@clisp.org>
73932
73933         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73934         length is > INT_MAX.
73935         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73936         more.
73937
73938 2004-09-08  Bruno Haible  <bruno@clisp.org>
73939
73940         * lib/stdint_.h: New file, taken from GNU clisp.
73941
73942 2004-09-08  Bruno Haible  <bruno@clisp.org>
73943             Oskar Liljeblad  <oskar@osk.mine.nu>
73944
73945         * modules/stdint: New file.
73946         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73947
73948 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         Import from coreutils.
73951         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73952         strings on unbounded length.  alloca's performance benefits aren't
73953         that important here.
73954         (V_STRDUP): Remove.
73955         (parse_with_separator): New function, with most of the internals
73956         of the old parse_user_spec.  Allow user to omit both user and group,
73957         for compatibility with FreeBSD.
73958         Clone only the user name, not the entire spec.
73959         Do not set *uid, *gid unless entirely successful.
73960         Avoid memory leak in some failing cases.
73961         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73962         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73963         (parse_user_spec): Rewrite to use parse_with_separator.
73964
73965 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * modules/userspec: Don't depend on alloca.
73968
73969 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73970
73971         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73972
73973 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73976         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73977         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73978
73979 2004-08-16  Simon Josefsson  <jas@extundo.com>
73980
73981         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73982         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73983         Add --dry-run for --import.
73984         Let user provided command line parameters override configure.ac
73985         settings.
73986
73987 2004-08-12  Simon Josefsson  <jas@extundo.com>
73988
73989         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73990         as discussed with Paul Eggert in threads rooted at
73991         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73992         and
73993         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73994         Before, the test was empty, and relied on ELIDE_CODE in source
73995         code.)
73996         (gl_PREREQ_GETOPT): New macro.
73997         (gl_GETOPT): Use them.
73998
73999 2004-08-12  Simon Josefsson  <jas@extundo.com>
74000
74001         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74002         * lib/getopt_.h: Renamed from getopt.h.
74003
74004 2004-08-12  Simon Josefsson  <jas@extundo.com>
74005
74006         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74007         Change default library name from libfoo to libgnu.
74008         Now, if you have a configure.ac that says:
74009                 gl_SOURCE_BASE(gl)
74010                 gl_M4_BASE(gl/m4)
74011                 gl_MODULES(error getopt etcetera)
74012                 gl_INIT
74013         you can import all you need by running:
74014                 ../gnulib/gnulib-tool --import
74015
74016         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74017         (Makefile.am): Rewrite, use logic from argz.
74018         (Include): Use <getopt.h> instead of "getopt.h".
74019
74020 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * modules/argp (Files): Add m4/unlocked-io.m4.
74023         (Depends-on): Add extensions.
74024
74025 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74028         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74029         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74030         Check for program_invocation_name, program_invocation_short_name,
74031         flockfile, funlockfile, features.h, _getopt_long_only_r.
74032
74033 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74036         its complicated substitute.
74037         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74038         and program_invocation_name.
74039         (__argp_basename) [!_LIBC]: Remove; the only use was
74040         replaced by its body.
74041         (__argp_short_program_name): Change condition from
74042         !defined __argp_short_program_name to
74043         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74044         to match argp-namefrob.h.
74045         (__argp_failure): Don't assume strerror_r returns char *.
74046         * lib/argp-parse.c (N_): Define unconditionally.
74047         (argp_default_options): Fill out initializers with 0 to avoid
74048         gcc warnings.
74049
74050 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74053         getopt1.c.
74054
74055 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74056
74057         Merge from coreutils.
74058
74059         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74060
74061         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74062         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74063
74064 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74065
74066         Merge from coreutils.
74067
74068         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74069         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74070         for Reliant Unix 5.43.
74071
74072         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74073         (union fooround): Use uintmax_t, not long int.
74074         The rest is a merge from libc:
74075         [defined _LIBC]: Include <shlib-compat.h>.
74076         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74077
74078         * lib/settime.c (settime): Recode to avoid warning with
74079         Sun Forte C 6U2.
74080
74081         * lib/strverscmp.c: Convert to UTF-8.
74082
74083 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74084
74085         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74086         m4/uintmax_t.m4.
74087
74088 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * modules/xalloc-die: New file.
74091         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74092
74093         * modules/md5 (Files): Add m4/uint32_t.m4.
74094         * modules/sha1: Renamed from modules/sha.
74095         (Files):
74096         Rename lib/sha.h to lib/sha1.h.
74097         Rename lib/sha.c to lib/sha1.c.
74098         Rename m4/sha.m4 to m4/sha1.m4.
74099         (lib_SOURCES): Likewise.
74100         (configure.ac): Rename gl_SHA to gl_SHA1.
74101         (Include): sha.h -> sha1.h.
74102
74103 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74104
74105         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74106         * m4/sha1.m4: Renamed from sha.m4.
74107         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74108
74109 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         * lib/obstack.h (obstack_empty_p):
74112         Don't assume that chunk->contents is suitably aligned.
74113         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74114         Likewise. Problem reported by Benno in
74115         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74116
74117         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74118         readable.  This could be improved further but it'd take some work.
74119
74120 2004-08-08  Simon Josefsson  <jas@extundo.com>
74121
74122         * modules/xgethostname (Depends-on): Remove exit and error (not
74123         used).
74124
74125         * modules/getpass-gnu: Add getpass.h.
74126         (Depends-on): Add stdbool.
74127         * modules/getpass: Add getpass.h.
74128
74129 2004-08-08  Simon Josefsson  <jas@extundo.com>
74130
74131         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74132         Check getpass declaration.
74133
74134 2004-08-08  Simon Josefsson  <jas@extundo.com>
74135
74136         * lib/xgethostname.c: Don't include error.h (not used).
74137
74138         * lib/getpass.h: Add.
74139         * lib/getpass.c: Include getpass.h first.
74140
74141 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74142
74143         * lib/xalloc-die.c: New file.
74144         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74145         All uses removed.
74146         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74147         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74148         xalloc-die.c.
74149         (_, N_, xalloc_die): Move to xalloc-die.c.
74150         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74151         so that we needn't mess with xalloc_msg_memory_exhausted.
74152
74153         * lib/sha1.h: Renamed from sha.h.
74154         (SHA1_H): Renamed from _SHA_H.
74155         (sha1_ctx): Renamed from sha_ctx.
74156         (sha1_init_ctx): Renamed from sha_init_ctx.
74157         (sha1_process_block): Renamed from sha_process_block.
74158         (sha1_process_bytes): Renamed from sha_process_bytes.
74159         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74160         (sha1_read_ctx): Renamed from sha_read_ctx.
74161         (sha1_stream): Renamed from sha_stream.
74162         (sha1_buffer): Renamed from sha_buffer.
74163         * lib/sha1.c: Likewise; renamed from sha.c.
74164         Do not include <sys/types.h>.
74165         Include <stddef.h> rather than <stdlib.h>.
74166
74167 2004-08-08  Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74170         FILESYSTEM_PREFIX_LEN.
74171         * lib/progreloc.c: Likewise.
74172         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74173
74174 2004-08-06  Simon Josefsson  <jas@extundo.com>
74175
74176         * modules/progname (Depends-on): Don't depend on stdbool.
74177
74178 2004-08-06  Simon Josefsson  <jas@extundo.com>
74179
74180         * modules/getsubopt: New file.
74181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74182         getsubopt.
74183
74184 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         More merge from coreutils.
74187
74188         * m4/utimens.m4, m4/utimecmp.m4: New files.
74189         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74190         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74191         prereq.m4, sha.m4: Import changes from coreutils.
74192
74193 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         More merge from coreutils.
74196         * modules/raise, modules/readtokens0, modules/utimens:
74197         * modules/utimecmp, module/xnanosleep: New files.
74198         * modules/strftime: Add lib/strftime.h.
74199         Change include from <time.h> to "strftime.h".
74200         * modules/yesno: Add lib/yesno.h.
74201         * modules/backupfile: Remove lib/addext.c.
74202         * modules/euidaccess: Add stat-macros.h.
74203         * modules/canonicalize, modules/euidaccess,
74204         modules/filemode, modules/lchown, modules/makepath,
74205         modules/rmdir, modules/stat: Likewise.
74206
74207 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         Merge from tar.
74210         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74211         SIZE_MAX is a valid preprocessor constant.
74212         (__argp_basename): Change from "#ifndef _LIBC"
74213         to "#ifndef __argp_short_program_name", so that
74214         we don't compile these functions for tar.
74215
74216         More merges from coreutils.
74217         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74218         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74219         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74220         * lib/addext.c: Remove; no longer needed.
74221         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74222         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74223         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74224         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74225         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74226         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74227         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74228         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74229         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74230         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74231         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74232         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74233         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74234         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74235         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74236         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74237         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74238         Import changes from coreutils.
74239
74240 2004-08-05  Simon Josefsson  <jas@extundo.com>
74241
74242         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74243
74244 2004-08-05  Simon Josefsson  <jas@extundo.com>
74245
74246         * m4/getsubopt.m4: New file.
74247
74248 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         Merge from coreutils.
74251
74252         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74253         * m4/getcwd-path-max.m4: New files.
74254
74255         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74256         FILESYSTEM_PREFIX_LEN ->
74257         FILE_SYSTEM_PREFIX_LEN.
74258         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74259         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74260         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74261         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74262
74263         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74264         prerequisite modules now handle the DOS stuff.
74265         Don't check for unistd.h.
74266
74267 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74268
74269         Merge from coreutils.
74270
74271         * lib/.gdb-history: Remove; this doesn't belong here.
74272
74273         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74274         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74275         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74276         * lib/getcwd.c: New files.
74277
74278         * lib/dirname.h: Include <stdbool.h>.
74279         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74280         for consistency with POSIX terminology.  All uses changed.
74281         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74282         (strip_trailing_slashes): Use bool for booleans.
74283         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74284
74285         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74286         sometimes returns a positive errno value even when it succeeds.
74287         (print_errno_message) [!LIBC]: Fall back on strerror if
74288         __strerror_r fails.
74289
74290         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74291         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74292         (longest_relative_suffix): New function.
74293         (path_concat): Use it.  Assume first argument is not NULL.
74294         Port to DOS.  Omit redundant separators.
74295         Report an error instead of returning NULL.
74296         Use mempcpy instead of memcpy.
74297         (xpath_concat): Remove: not declared or used.
74298
74299         * lib/same.h: Include <stdbool.h>
74300         (same_name): Return bool, not int.
74301         * lib/same.c (same_name): Likewise.
74302         (errno): Don't declare; we assume C89 or better now.
74303
74304         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74305         if not already defined.
74306
74307         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74308         * lib/dup-safer.c (errno): Likewise.
74309
74310 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         Merge from coreutils.
74313         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74314         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74315         * modules/path-concat: Don't depend on strdup.
74316
74317 2004-08-03  Simon Josefsson  <jas@extundo.com>
74318
74319         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74320         * lib/progname.h: Don't include stdbool.h.
74321
74322 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74325         * MODULES.html.sh (func_all_modules): Remove fatal.
74326
74327 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74328
74329         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74330
74331 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74332
74333         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74334         working.
74335
74336 2004-08-02  Simon Josefsson  <jas@extundo.com>
74337
74338         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74339         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74340         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74341
74342 2004-08-01  Simon Josefsson  <jas@extundo.com>
74343
74344         * lib/xgetdomainname.c: Include stdlib.h, for free().
74345
74346 2004-07-19  Bruno Haible  <bruno@clisp.org>
74347
74348         * MODULES.html.sh (func_all_modules): Add dummy.
74349
74350 2004-07-16  Simon Josefsson  <jas@extundo.com>
74351
74352         * modules/dummy: New file.
74353
74354 2004-07-16  Simon Josefsson  <jas@extundo.com>
74355
74356         * lib/dummy.c: New file.
74357
74358 2004-07-16  Bruno Haible  <bruno@clisp.org>
74359
74360         * lib/backupfile.h: Add extern "C" for C++.
74361         * lib/closeout.h: Likewise.
74362         * lib/copy-file.h: Likewise.
74363         * lib/findprog.h: Likewise.
74364         * lib/full-write.h: Likewise.
74365         * lib/pathname.h: Likewise.
74366         * lib/progname.h: Likewise.
74367         * lib/stpcpy.h: Likewise.
74368         * lib/stpncpy.h: Likewise.
74369         * lib/strcase.h: Likewise.
74370         * lib/strstr.h: Likewise.
74371         * lib/xalloc.h: Likewise.
74372
74373         * lib/mbswidth.h: Add extern "C" for C++.
74374         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74375
74376 2004-07-13  Robert Millan  <robertmh@gnu.org>
74377
74378         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74379
74380 2004-07-09  Simon Josefsson  <jas@extundo.com>
74381
74382         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74383         failed without this.)
74384
74385 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74386
74387         * modules/chown (Files): Add lib/fchown-stub.c, since
74388         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74389
74390 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * lib/fchown-stub.c: New file.
74393
74394 2004-06-24  Jim Meyering  <jim@meyering.net>
74395
74396         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74397
74398 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * modules/argz: Omit "#include".
74401
74402         * MODULES.html.sh (func_all_modules): Add calloc, to match
74403         2004-06-01 addition of calloc module.
74404
74405 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * m4/argz.m4: New file, which is autoupdated from libtool.
74408
74409 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74410
74411         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74412         libtool.
74413
74414 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * config/srclist-update: Don't insist on "USA." before the
74417         close-comment, as libtool omits the period and puts the */ on a
74418         separate line.
74419         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74420         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74421
74422 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74423
74424         * modules/argz: New file.
74425         * MODULES.html.sh (func_all_modules): Add argz.
74426
74427 2004-06-12  Jim Meyering  <jim@meyering.net>
74428         and  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * modules/hash (Files): Add lib/xalloc.h.
74431         * modules/pipe (Depends-on): Add wait-process.
74432         * modules/stat (Depends-on): Add xalloc.
74433         * modules/userspec (Files): Add lib/userspec.h.
74434         * modules/xstrto
74435
74436         Upgrade from gettext-0.13.
74437         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74438         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74439         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74440
74441 2004-06-10  Jim Meyering  <jim@meyering.net>
74442
74443         * lib/calloc.c: New file.
74444
74445 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74446
74447         * lib/getdate.y (yylex): Allow space between sign and number.
74448         Problem reported by Dan Jacobson.
74449
74450 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74451
74452         Merge from coreutils CVS.
74453
74454         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74455         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74456         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74457         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74458         xstrtol.m4: Fix copyright date and/or serial number.
74459
74460         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74461         See if we need an fchown replacement.
74462         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74463         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74464         and use the replacement function if we detect either defect.
74465
74466         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74467         gl_UTIMECMP.
74468
74469 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74470         and  Jim Meyering  <jim@meyering.net>
74471
74472         Merge from coreutils CVS.
74473
74474         * lib/stat-macros.h: New file, with contents from file-type.h
74475         and coreutils' system.h.
74476         * lib/file-type.c: Include "stat-macros.h".
74477         * lib/file-type.h (file_type): Move all macro definitions to new file,
74478         stat-macros.h.
74479
74480         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74481         Wrap old code with this conditional.
74482         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74483         function that does not dereference symlinks.
74484         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74485
74486         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74487         dependency problems.
74488         (xreadlink): Accept new arg SIZE, for efficiency.
74489         All decls and uses changed.
74490         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74491
74492         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74493         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74494
74495         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74496         sysexits.h.
74497
74498 2004-06-01  Jim Meyering  <jim@meyering.net>
74499
74500         * m4/calloc.m4: New file.
74501
74502 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74505         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74506         Also, fix a typo in a diagnostic.
74507
74508 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74509
74510         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74511         or AC_FUNC_REALLOC.
74512
74513 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74516         macros to be defined.
74517         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74518         the allocator returns NULL because the requested size is zero.
74519
74520 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74521
74522         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74523         var.  Add comment explaining why libc still defines it.  This
74524         merges the following patch from glibc:
74525         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74526
74527 2004-05-20  Andreas Schwab  <schwab@suse.de>
74528
74529         * m4/free.m4: Replace free if it not known to work, not the other
74530         way round.
74531
74532 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74535         present in glibc since revision 1.1 of this file.
74536         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74537         obstack_alignment_mask, obstack_alloc, obstack_base,
74538         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74539         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74540         obstack_grow0, obstack_init, obstack_int_grow,
74541         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74542         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74543         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74544         nonexistent functions.
74545
74546 2004-05-18  Karl Berry  <karl@gnu.org>
74547
74548         * config/srclist.txt: break link for vasnprintf.c.
74549
74550 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         Port obstack to the AS/400, where pointers are 16 bytes wide and
74553         you cannot cast an integer to a valid pointer.  This patch is
74554         currently waiting to be integrated into glibc; see
74555         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74556
74557         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74558         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74559         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74560         (struct obstack): temp member is now a union of a pointer and
74561         an integer, instead of an integer.  All integer uses changed.
74562         This does not affect the physical layout of struct obstack,
74563         except on hosts (like the AS/400) where the size or alignment of
74564         void * is greater than that of ptrdiff_t.
74565         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74566         __STDC__)]: Store temporary in pointer member of union, not
74567         integer member.
74568         * lib/obstack.c: Include <stddef.h>, for offsetof.
74569         (struct fooalign): Remove; it doesn't need a name.
74570         (union fooround): Change double to long double, and add void *.
74571         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74572         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74573         not a macro.  Hence the values are always int; so remove all
74574         casts-to-int in uses.
74575
74576 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74577
74578         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74579         we can get this patch merged into glibc.
74580
74581 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74582             Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * m4/argp: Depend on alloca.
74585
74586 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74587             Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74590         freecoding.
74591
74592 2004-05-17  Bruno Haible  <bruno@clisp.org>
74593
74594         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74595         precision that consists of a '.' followed by an empty digit string.
74596         Patch by Tor Lillqvist <tml@iki.fi>.
74597
74598 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74601         for backward compatibility with older code.  We need our own
74602         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74603         it under some other name, and our alloca.h will define it.
74604
74605 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74606             Derek Price  <derek@ximbiot.com>
74607
74608         * lib/alloca.c: Include <alloca.h>, to get our interface.
74609         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74610         include <alloca.h> first.  Use C89 prototype for alloca; this
74611         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74612         Use #elif for simplicity, since we can assume C89 now.
74613         Don't try to source the system alloca.h since it will not be found
74614         and to prevent recursively including its replacement.
74615         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74616         * lib/regex.c: Likewise.
74617
74618 2004-05-16  Derek Price  <derek@ximbiot.com>
74619             Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         getline cleanup.  This changes the getndelim2 API: both order of
74622         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74623         no delimiter).
74624
74625         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74626         interface does that.
74627         (getline): Always use getdelim, so that we don't have two
74628         copies of this code.
74629         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74630         if available.
74631         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74632         (GETNDELIM2_MAXIMUM): New macro.
74633         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74634         instead of the old practice of delim2==0.  All callers changed.
74635         Return -1 on overflow, instead of returning junk.
74636         Do not set *linesize unless allocation succeeds.
74637         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74638         that we include sys/types.h.
74639         * lib/getnline.h: Likewise.
74640         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74641         (getndelim2): Reorder arguments.
74642         * lib/getnline.c (getnline, getndelim):
74643         Don't discard the NMAX argument.
74644         (getnline): Invoke getndelim, to avoid code duplication.
74645         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74646         of (size_t) -1 by callers of the getnline family.
74647
74648 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74649
74650         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74651         Check for gettimeofday.
74652         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74653         Check for settimeofday, stime.
74654
74655 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74656
74657         * lib/nanosleep.c (suspended): Change its type from int to
74658         sig_atomic_t volatile.
74659         (first_call): Make it private to rpl_nanosleep, and have it
74660         be zero initially as that's a bit faster.
74661         (my_usleep): Round up fractional times instead of truncating them,
74662         as this is the usual meaning for 'sleep'.
74663
74664         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74665         doesn't work.
74666         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74667         (ENOSYS): Define if not defined.
74668         (settime): Fall back on stime if it exists and settimeofday fails.
74669         But don't bother with fallbacks if a method fails with errno == EPERM.
74670
74671 2004-05-11  Jim Meyering  <jim@meyering.net>
74672
74673         Prior to this change, the save_cwd caller required read access to the
74674         current directory on most systems (ones with the fchdir function).
74675
74676         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74677         fails, try write-only, and finally, resort to using xgetcwd.
74678
74679 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * lib/obstack.c, obstack.h: Import changes from libc.
74682
74683 2004-04-28  Bruno Haible  <bruno@clisp.org>
74684
74685         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74686         also implicitly appends .exe to executables.
74687         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74688         accepts Windows pathnames.
74689         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74690         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74691         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74692         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74693         Reported by Derek Robert Price <derek@ximbiot.com>.
74694
74695 2004-04-21  Karl Berry  <karl@gnu.org>
74696
74697         * config/srclist.txt (localcharset.c): break sync.
74698
74699 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74700
74701         * m4/host-os.m4: Add a copyright notice.
74702
74703 2004-04-20  Jim Meyering  <jim@meyering.net>
74704
74705         Change UTILS_ to gl_ in AC_DEFINE'd names.
74706         Change utils_- and jm_-prefixed variables, too.
74707         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74708         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74710
74711         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74712         Don't emit trailing blanks.
74713         Also rename jm_-prefixed variables to have gl_ prefix.
74714
74715         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74716         Also rename jm_-prefixed variables to have gl_ prefix.
74717
74718         * m4/jm-macros.m4: Reflect the renamings.
74719         * m4/prereq.m4: Likewise.
74720
74721 2004-04-20  Jim Meyering  <jim@meyering.net>
74722
74723         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74724         memory.
74725
74726 2004-04-20  Jim Meyering  <jim@meyering.net>
74727             Bruno Haible  <bruno@clisp.org>
74728
74729         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74730         memory when realloc fails.
74731
74732 2004-04-19  Jim Meyering  <jim@meyering.net>
74733
74734         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74735         now that readutmp.c may call `free (0)'.
74736
74737 2004-04-19  Bruno Haible  <bruno@clisp.org>
74738
74739         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74740         * m4/inttypes_h.m4: Likewise.
74741         * m4/stdint_h.m4: Likewise.
74742         * m4/intmax_t.m4: Likewise.
74743         * m4/uintmax_t.m4: Likewise.
74744
74745 2004-04-18  Jim Meyering  <jim@meyering.net>
74746
74747         * m4/prereq.m4: Don't forbid jm_ prefix.
74748
74749         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74750         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74751         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74752         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74753         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74754         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74755         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74756         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74757         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74758         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74759         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74760         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74761         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74762         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74763         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74764         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74765         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74766         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74767         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74768
74769 2004-04-18  Jim Meyering  <jim@meyering.net>
74770
74771         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74772         failure, don't leak memory and do call END_UTMP_ENT.
74773
74774 2004-04-16  Jim Meyering  <jim@meyering.net>
74775
74776         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74777         coreutils' stat program.
74778         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74779
74780 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74781
74782         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74783         C89.
74784         (CHAR_BIT): Remove, since we assume C89.
74785         Include <stdint.h> if available, as per current Autoconf CVS advice.
74786
74787 2004-03-31  Jim Meyering  <jim@meyering.net>
74788
74789         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74790         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74791         * m4/xalloc.m4: Likewise.
74792
74793 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74794
74795         Merge from coreutils.
74796
74797         * m4/inttostr.m4: New file.
74798         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74799         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74800         Require gl_CLOCK_TIME.
74801         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74802
74803 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74804
74805         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74806         not bool, to be more consistent with Unix conventions.
74807         Suggested by Bruno Haible.
74808
74809         Merge from coreutils.
74810
74811         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74812         * lib/umaxtostr.c: New files.
74813
74814         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74815         the usual <time.h> dance.
74816         (get_date): Change signature to support fractional time stamps.
74817         All callers changed.
74818         * lib/getdate.y: Include "getdate.h" first, as we can now
74819         assume C89 and don't need to worry about 'const'.
74820         Similarly, include "unlocked-io.h" near start, not in middle.
74821         Include <limits.h>.
74822         (textint.value): Use long int rather than int.
74823         (textint.digits): Use size_t rather than int.
74824         (BILLION, LOG10_BILLION): New constants.
74825         (parser_control): New member rel_ns.  Members day_ordinal,
74826         time_zone, month, day, hour, minutes, rel_year, rel_month,
74827         rel_day, rel_hour, rel_minutes, rel_seconds
74828         are now long int, not int.  Member seconds is now struct timespec,
74829         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74830         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74831         not int.
74832         (%union.intval): Now long int, not int.
74833         New member timespec.
74834         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74835         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74836         (spec): Now is a timespec or an item list.
74837         (timespec, items): New nonterminals.
74838         (time, rel, relunit, number, get_date):
74839         Add support for fractional seconds.
74840         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74841         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74842         (to_hour): First arg is now long int, not int.
74843         (to_year): Returns long int, not int.
74844         Don't treat year -70 like 70.
74845         (tm_diff): Returns long int, not int.
74846         (lookup_word): Use bool instead of int when appropriate.
74847         (yylex): Use size_t for count, not int.
74848         Detect overflow when parsing large integer constants.
74849         Add support for fractions.
74850         (get_date): Make pointers 'const' if possible.
74851         Use more-portable code to detect integer overflow.
74852         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74853         Don't use ctime; it's not reliable if the year has >4 digits.
74854
74855         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74856         This is for compatibility with BSD.
74857
74858         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74859         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74860         From coreutils' system.h.
74861
74862         * lib/userspec.c: Don't include "posixver.h".
74863         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74864         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74865         compatible extension.  Simplify code by removing a boolean int
74866         that was always nonzero if a string was nonnull.
74867
74868 2004-03-30  Jim Meyering  <jim@meyering.net>
74869
74870         Merge from coreutils.
74871
74872         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74873         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74874         on some systems one must include <grp.h> before it.
74875         Reported by Christian Krackowizer.
74876
74877 2004-03-30  Jim Meyering  <jim@meyering.net>
74878
74879         Merge from coreutils.
74880
74881         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74882
74883         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74884         an empty input stream.
74885
74886         * lib/readtokens.c: Include <stdbool.h>.
74887         (readtoken): Use `size_t' rather than int/long.
74888         All callers adjusted.
74889         Use `bool' rather than `int' where appropriate.
74890         Use memset rather than an explicit loop.
74891         Use x2nrealloc rather than xrealloc.
74892         Allow the use of `\0' as a delimiter.
74893         (readtokens): Likewise.
74894         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74895
74896 2004-03-30  Jim Meyering  <jim@meyering.net>
74897
74898         * m4/realloc.m4: Remove file, since now it does no more than
74899         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74900         the `configure.ac' section of module/realloc.
74901         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74902
74903 2004-03-30  Bruno Haible  <bruno@clisp.org>
74904
74905         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74906         nonnull.
74907
74908 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74909
74910         Merge changes to getloadavg.c from coreutils and Emacs.
74911
74912         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74913         Define to an expression, not to the empty string.
74914         Include cloexec.h and xalloc.h.
74915         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74916         Use set_cloexec_flag rather than rolling our own.
74917         * lib/cloexec.c, lib/cloexec.h: New files.
74918
74919 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74920
74921         * m4/cloexec.m4: New file.
74922
74923 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74924
74925         * lib/getopt.h: Sync with libc CVS.
74926
74927 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74928             Bruno Haible  <bruno@clisp.org>
74929
74930         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74931         mbswidth.
74932
74933 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74934             Bruno Haible  <bruno@clisp.org>
74935
74936         * lib/mbswidth.h: Include <wchar.h> only if
74937         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74938         <wchar.h>.
74939         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74940
74941 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74942
74943         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74944         Sync with libc CVS.
74945         * lib/getopt_int.h: New file, also synced from libc.
74946
74947 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74948
74949         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74950         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74951         Bring back getopt.c, getopt.h, getopt1.c.
74952
74953 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74954
74955         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74956         All uses changed.  Check for sa_sigaction member; this fixes
74957         a bug first reported by Jason Andrade in
74958         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74959
74960 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74961
74962         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74963         '#if' expressions.  Unlike the code it replaces, it does not
74964         depend on (defined _SC_PAGESIZE).  However, it does depend on
74965         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74966         first reported by Jason Andrade in
74967         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74968
74969 2004-02-25  Simon Josefsson  <jas@extundo.com>
74970
74971         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74972
74973 2004-02-25  Simon Josefsson  <jas@extundo.com>
74974
74975         * lib/strdup.h: New file.
74976         * lib/strdup.c: Include it.
74977         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74978         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74979
74980 2004-02-23  Karl Berry  <karl@gnu.org>
74981
74982         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74983         (from fencepost.gnu.org:/gd/gnuorg).
74984
74985 2004-02-23  Karl Berry  <karl@gnu.org>
74986
74987         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74988         * config/srclist.txt: add maintain/standards documents.
74989
74990 2004-02-18  Bruno Haible  <bruno@clisp.org>
74991
74992         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74993         Reported by Derek Robert Price <derek@ximbiot.com>.
74994
74995 2004-02-16  Karl Berry  <karl@gnu.org>
74996
74997         * config/mkinstalldirs, install-sh: update from automake.
74998
74999 2004-02-06  Karl Berry  <karl@gnu.org>
75000
75001         * m4/po.m4: update from gettext 0.14.1.
75002
75003 2004-02-06  Karl Berry  <karl@gnu.org>
75004
75005         * lib/config.charset: update from gettext 0.14.1.
75006
75007 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75008
75009         Add comments and code, prompted by suggestions from Bruno Haible
75010         for sh-quote.
75011         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75012         describing the enum quoting_style values.
75013         * lib/quotearg.c (quotearg_alloc): New function.
75014         (quotearg_buffer_restyled): Treat lone { and } as special.
75015         Treat = as special.  Work around bug with older shells
75016         that "see" a '\' that is really the 2nd byte of a multibyte char.
75017         Quote empty string with shell_quoting_style.
75018
75019 2004-02-03  Bruno Haible  <bruno@clisp.org>
75020
75021         * m4/pipe.m4: New file, from GNU gettext.
75022
75023 2004-02-03  Bruno Haible  <bruno@clisp.org>
75024
75025         * lib/pipe.h: New file, from GNU gettext.
75026         * lib/pipe.c: New file, from GNU gettext.
75027
75028 2004-01-27  Bruno Haible  <bruno@clisp.org>
75029
75030         * m4/execute.m4: New file, from GNU gettext.
75031
75032 2004-01-27  Bruno Haible  <bruno@clisp.org>
75033
75034         * lib/execute.h: New file, from GNU gettext.
75035         * lib/execute.c: New file, from GNU gettext.
75036         * lib/w32spawn.h: New file, from GNU gettext.
75037
75038 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75039
75040         Merge from diffutils.
75041
75042         * lib/file-type.c (file_type): Add typed memory objects.
75043         * lib/file-type.h (S_TYPEISTMO): New macro.
75044
75045         * lib/c-stack.h (c_stack_action): Remove argv argument.
75046         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75047         (die): Don't calculate message unless segv_action returns.
75048         (get_stack_location, min_address_from_argv, max_address_from_argv,
75049         volatile stack_base, volatile_stack_size): Remove.
75050         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75051         that every segmentation violation is a stack overflow.  (Ouch!)
75052         See Debian bug 136249 (still outstanding) for more info about why
75053         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75054
75055 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75056
75057         Exit-status fix from coreutils.
75058
75059         Use exit_failure consistently in place of EXIT_FAILURE,
75060         so that program exit statuses are consistent on failure.
75061
75062         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75063         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75064         * lib/argmatch.h: Comment fix to match the above.
75065         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75066         Now a macro referring to exit_failure, instead of a separate
75067         variable.  Include "exitfail.h" to get it.
75068         * lib/xstrtol.h: Include "exitfail.h".
75069         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75070
75071         * lib/long-options.c (parse_long_options): Use prototype
75072         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75073         for clarity.
75074
75075 2004-01-21  Jim Meyering  <jim@meyering.net>
75076
75077         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75078         so as not to conflict with a different-sized __mktime_internal
75079         function in GNU libc.
75080         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75081         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75082
75083 2004-01-20  Karl Berry  <karl@gnu.org>
75084
75085         * config/config.guess: update from config.
75086
75087         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75088
75089 2004-01-20  Bruno Haible  <bruno@clisp.org>
75090
75091         Safer stack allocation.
75092         * lib/setenv.c: Include allocsa.h.
75093         (alloca): Remove fallback definition.
75094         (freea): Remove macro.
75095         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75096         instead of freea.
75097
75098 2004-01-20  Bruno Haible  <bruno@clisp.org>
75099
75100         * m4/eealloc.m4: New file, from GNU gettext.
75101
75102 2004-01-20  Bruno Haible  <bruno@clisp.org>
75103
75104         * m4/allocsa.m4: New file, from GNU gettext.
75105
75106 2004-01-20  Bruno Haible  <bruno@clisp.org>
75107
75108         * lib/xallocsa.h: New file, from GNU gettext.
75109         * lib/xallocsa.c: New file, from GNU gettext.
75110
75111 2004-01-20  Bruno Haible  <bruno@clisp.org>
75112
75113         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75114
75115 2004-01-20  Bruno Haible  <bruno@clisp.org>
75116
75117         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75118         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75119         specially.
75120
75121 2004-01-20  Bruno Haible  <bruno@clisp.org>
75122
75123         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75124         patch.
75125
75126 2004-01-20  Bruno Haible  <bruno@clisp.org>
75127
75128         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75129
75130 2004-01-20  Bruno Haible  <bruno@clisp.org>
75131
75132         * lib/eealloc.h: New file.
75133
75134 2004-01-20  Bruno Haible  <bruno@clisp.org>
75135
75136         * lib/binary-io.h: Avoid warnings on Cygwin.
75137
75138 2004-01-20  Bruno Haible  <bruno@clisp.org>
75139
75140         * lib/allocsa.h: New file, from GNU gettext.
75141         * lib/allocsa.c: New file, from GNU gettext.
75142
75143 2004-01-18  Karl Berry  <karl@gnu.org>
75144
75145         * doc/gpl.texi, doc/lgpl.texi: new files.
75146
75147 2004-01-18  Karl Berry  <karl@gnu.org>
75148
75149         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75150         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75151
75152 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75153
75154         Merge from coreutils.
75155
75156         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75157         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75158         (gl_DEFAULT_POSIX2_VERSION): Move
75159         the documentation from 'configure' into 'config.hin',
75160         so that 'configure --help' isn't burdened by it and
75161         we don't have to worry about its formatting there.
75162         Reword the documentation so that it's more succinct
75163         and can be run together into a single paragraph.
75164         * m4/same.m4 (gl_SAME): Check for pathconf.
75165
75166 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75167
75168         Merge from coreutils.
75169
75170         * lib/posixver.c: Include posixver.h.
75171
75172         * lib/same.c: Include <stdbool.h>, <limits.h>.
75173         (_POSIX_NAME_MAX): Define if not defined.
75174         (MIN): New macro.
75175         (same_name): If file names are silently truncated, report
75176         that the file names are the same if they are the same after
75177         the silent truncation.
75178
75179         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75180         conversion function.
75181         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75182         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75183         longer needed.
75184
75185 2004-01-15  Jim Meyering  <jim@meyering.net>
75186
75187         Merge from coreutils.
75188
75189         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75190         if no library is required.
75191         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75192         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75193         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75194         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75195         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75196         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75197         value, $ac_cv_search_crypt, if it's "none required".
75198         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75199         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75200         not gl_FUNC_GETLOADAVG.
75201         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75202         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75203
75204 2004-01-15  Jim Meyering  <jim@meyering.net>
75205
75206         Merge from coreutils.
75207
75208         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75209         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75210         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75211
75212         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75213         optional configure-time default.
75214
75215         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75216
75217         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75218
75219 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75220
75221         Merge from coreutils.
75222
75223         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75224         value, $ac_cv_search_nanosleep, if it's "none required".
75225
75226 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75227
75228         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75229         with like-named macro in fnmatch.c.
75230         (EXT): Use an internal constant instead.
75231
75232         Merge fnmatch patches from glibc.
75233         * lib/fnmatch.c (mbsinit): Remove define.
75234         Add libc_hidden_ver (__fnmatch, fnmatch).
75235         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75236         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75237
75238 2004-01-14  Karl Berry  <karl@gnu.org>
75239
75240         * config/install-sh: update from automake.
75241
75242 2004-01-13  Karl Berry  <karl@gnu.org>
75243
75244         * config/install-sh: update from automake.
75245
75246 2004-01-09  Karl Berry  <karl@gnu.org>
75247
75248         * config/install-sh: update from automake.
75249
75250 2004-01-05  Karl Berry  <karl@gnu.org>
75251
75252         * config/config.{sub,guess}: update from config.
75253
75254 2003-12-31  Karl Berry  <karl@gnu.org>
75255
75256         * config/depcomp: update from automake.
75257
75258 2003-12-14  Karl Berry  <karl@gnu.org>
75259
75260         * lib/config.charset: update from gettext-runtime.
75261
75262 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75263
75264         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75265         Bug reported by Alfred M. Szmidt.
75266
75267 2003-12-03  Bruno Haible  <bruno@clisp.org>
75268
75269         * m4/gettext.m4: Upgrade from gettext-0.13.
75270         * m4/po.m4: Upgrade from gettext-0.13.
75271         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75272         * m4/intmax.m4: New file, from gettext-0.13.
75273         * m4/printf-posix.m4: New file, from gettext-0.13.
75274
75275 2003-11-29  Karl Berry  <karl@gnu.org>
75276
75277         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75278
75279 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75280             Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/printf-parse.h: Don't include sys/types.h.
75283         (ARG_NONE): New macro.
75284         (char_directive): Change type of *arg_index fields to size_t.
75285         * lib/printf-parse.c: Don't include sys/types.h.
75286         (SSIZE_MAX): Remove macro.
75287         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75288         Remove unnecessary overflow check.
75289         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75290         fields.
75291
75292 2003-11-25  Bruno Haible  <bruno@clisp.org>
75293
75294         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75295
75296 2003-11-25  Bruno Haible  <bruno@clisp.org>
75297
75298         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75299         gt_TYPE_SSIZE_T.
75300
75301 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75302
75303         * modules/alloca: Remove dependency on xalloc.
75304
75305 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75306
75307         * lib/alloca.c: Remove dependency on xalloc module.
75308         (xalloc_die): Remove.
75309         (memory_full) [!defined emacs]: New macro.
75310         [!defined emacs]: Don't include xalloc.h.
75311         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75312         address arithmetic overflows.  Change datatypes a bit to avoid
75313         unnecessary casts.
75314
75315 2003-11-22  Jim Meyering  <jim@meyering.net>
75316
75317         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75318         s/size/size_t/.
75319
75320 2003-11-21  Karl Berry  <karl@gnu.org>
75321
75322         * config/config.{sub,guess}: update from config.
75323
75324 2003-11-18  Karl Berry  <karl@gnu.org>
75325
75326         * config/config.{sub,guess}: update from config.
75327
75328         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75329
75330 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75331
75332         * README: Mention that S+T cannot overflow if S is the size of
75333         an existing object and T is sufficiently small.
75334
75335 2003-11-17  Jim Meyering  <jim@meyering.net>
75336
75337         On systems without utime and without a utimes function capable of
75338         dealing with a NULL struct utimbuf* argument, this utime replacement
75339         could -- in unusual circumstances -- leak a file descriptor.
75340         * lib/utime.c: Include <unistd.h> and <errno.h>.
75341         (utime_null): Be sure to close `fd' and to preserve errno.
75342         Reported by Geoff Collyer via Arnold Robbins.
75343
75344 2003-11-17  Bruno Haible  <bruno@clisp.org>
75345
75346         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75347         (Depends-on): Add xsize.
75348
75349 2003-11-17  Bruno Haible  <bruno@clisp.org>
75350
75351         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75352
75353 2003-11-17  Bruno Haible  <bruno@clisp.org>
75354
75355         * lib/vasnprintf.c (alloca): Remove fallback definition.
75356         (freea): Remove definition.
75357         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75358         Reported by Paul Eggert.
75359
75360 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75361             Bruno Haible  <bruno@clisp.org>
75362
75363         Protect against address arithmetic overflow.
75364         * lib/printf-args.h: Include stddef.h.
75365         (arguments): Change type of field 'count' to size_t.
75366         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75367         'unsigned int' where appropriate.
75368         * lib/printf-parse.h: Include sys/types.h.
75369         (char_directive): Change type of *arg_index fields to ssize_t.
75370         (char_directives): Change type of fields 'count', max_*_length to
75371         size_t.
75372         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75373         (SSIZE_MAX): Define fallback value.
75374         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75375         instead of 'int' where appropriate. Check a_allocated, d_allocated
75376         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75377         * lib/vasnprintf.c: Include xsize.h.
75378         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75379         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75380         overflow. Avoid wraparound when converting a width or precision from
75381         decimal to binary.
75382
75383 2003-11-16  Bruno Haible  <bruno@clisp.org>
75384
75385         Update from GNU gettext.
75386         * lib/printf-parse.c: Generalize to it can be compiled for wide
75387         strings.
75388         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75389         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75390         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75391         SNPRINTF): New macros.
75392         Don't include <alloca.h> if the file is used inside libintl.
75393         (local_wcslen): New function, for Solaris 2.5.1.
75394         (VASNPRINTF): Use it instead of wcslen.
75395
75396 2003-11-16  Bruno Haible  <bruno@clisp.org>
75397
75398         * lib/xsize.h (xmax): New function.
75399         (xsum, xsum3, xsum4): Declare as "pure" functions.
75400
75401 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75402
75403         * modules/xalloc (Files): Undo latest change, since xalloc.h
75404         no longer needs SIZE_MAX or PTRDIFF_MAX.
75405
75406 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75407
75408         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75409         gl_PTRDIFF_MAX.
75410
75411 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75412
75413         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75414         "return", to pacify some unknown compiler.  Problem reported
75415         by Joerg Schilling.
75416
75417 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75418
75419         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75420         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75421         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75422         heuristic is just as accurate as far as we know, and it removes a
75423         dependency on size_max.m4 and ptrdiff_max.m4.
75424
75425 2003-11-11  Bruno Haible  <bruno@clisp.org>
75426
75427         * modules/xsize (Files): Add m4/size_max.m4.
75428         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75429
75430 2003-11-11  Bruno Haible  <bruno@clisp.org>
75431
75432         * m4/size_max.m4: New file.
75433         * m4/ptrdiff_max.m4: New file.
75434         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75435         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75436         (gl_XALLOC): Invoke it.
75437
75438 2003-11-11  Bruno Haible  <bruno@clisp.org>
75439
75440         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75441         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75442         defined.
75443
75444 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75445
75446         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75447         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75448         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75449         From Bruno Haible.
75450         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75451         not (size_t) -1, since it's defined here.
75452
75453 2003-11-09  Karl Berry  <karl@gnu.org>
75454
75455         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75456
75457 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75458
75459         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75460         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75461         Reject sizes of exactly SIZE_MAX bytes.
75462         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75463         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75464
75465 2003-11-05  Bruno Haible  <bruno@clisp.org>
75466
75467         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75468         SIZE_MAX defined in <limits.h> on Solaris.
75469
75470 2003-11-04  Jim Meyering  <jim@meyering.net>
75471
75472         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75473         variable names, rather than @VAR@.
75474         * modules/poll: Likewise.
75475
75476 2003-11-04  Bruno Haible  <bruno@clisp.org>
75477
75478         * modules/xsize: New file.
75479         * modules/linebreak: Depend on xsize.
75480         * MODULES.html.sh (func_all_modules): Add xsize.
75481
75482 2003-11-04  Bruno Haible  <bruno@clisp.org>
75483
75484         * m4/xsize.m4: New file.
75485
75486 2003-11-04  Bruno Haible  <bruno@clisp.org>
75487
75488         * lib/xsize.h: New file.
75489         * lib/linebreak.c: Include xsize.h.
75490         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75491         argument for overflow.
75492         Suggested by Paul Eggert.
75493
75494 2003-11-03  Karl Berry  <karl@gnu.org>
75495
75496         * config/config.{guess,sub}: update from config.
75497
75498 2003-11-03  Jim Meyering  <jim@meyering.net>
75499
75500         * modules/userspec (lib_SOURCES): Add userspec.h.
75501         (Include): Add "userspec.h".
75502         Improve description.
75503
75504 2003-11-03  Jim Meyering  <jim@meyering.net>
75505
75506         * lib/userspec.c: Include "userspec.h".
75507         * lib/userspec.h: New file.
75508
75509 2003-11-03  Bruno Haible  <bruno@clisp.org>
75510
75511         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75512
75513 2003-11-03  Bruno Haible  <bruno@clisp.org>
75514
75515         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75516         available, to avoid (extremely rare) race condition.
75517         Suggested by Paul Eggert.
75518
75519 2003-11-02  Karl Berry  <karl@gnu.org>
75520
75521         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75522
75523 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75524
75525         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75526         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75527         (read_filesystem_list): Set and use me_type_malloced.
75528         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75529         whatever the type happens to be), for brevity and consistency.
75530         Check for size calculation overflow on Alphas running OSF/1.
75531
75532 2003-10-31  Jim Meyering  <jim@meyering.net>
75533
75534         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75535
75536         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75537
75538 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75539             Bruno Haible  <bruno@clisp.org>
75540
75541         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75542         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75543
75544 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75545
75546         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75547         netbsd*-gnu*.  Suggested by Robert Millan.
75548
75549 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75550
75551         * modules/group-member: Depend on stdbool.
75552
75553 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75554
75555         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75556
75557 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75558
75559         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75560         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75561         after the 'gnu' in these cases.  This fixes some bugs in the
75562         previous change, and is based on suggestions by Robert Millan.
75563
75564 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75565
75566         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75567         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75568         no longer needed.
75569         * lib/quotearg.c (quotearg_n_options): Use it.
75570         * lib/group-member.c: Include <stdbool.h>.
75571         (free_group_info): Arg is now const *; don't free arg.
75572         (get_group_info): Now returns bool and accepts struct group_info *,
75573         rather than returning a malloc'ed struct group_info *.
75574         All uses changed.  Check for overflow in internal size calculation.
75575
75576         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75577         rather than xmalloc/xrealloc.
75578         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75579         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75580         conformance bug: the old code used a pointer after freeing the
75581         storage that it addressed.
75582         * lib/hash.c (hash_initialize): Simplify the code by using
75583         xalloc_oversized rather than doing it by hand.
75584         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75585         the buffer preserved.  Use free and xmalloc instead.
75586         * lib/quotearg.c (quotearg_n_options): Likewise.
75587         Use a simpler test for size overflow.  Don't use xalloc_oversized
75588         because unsigned int might be wider than size_t (!); this suggests
75589         that we should switch from unsigned int to size_t for slot numbers.
75590
75591 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75592
75593         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75594         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75595         NetBSD kernels.  Requested by Richard Stallman.
75596
75597 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75598
75599         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75600         to allocate the returned structure.  Do not allocate a subarray,
75601         as x2nrealloc will do that.
75602         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75603         instead of xnrealloc.
75604         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75605
75606 2003-10-27  Bruno Haible  <bruno@clisp.org>
75607
75608         * lib/stdbool_.h: Better support for BeOS.
75609
75610 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75611
75612         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75613         now uses inline.
75614
75615 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75616
75617         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75618         callers that want to do their own size-overflow checking.  Include
75619         <stdbool.h>, since xalloc_oversized returns bool.
75620         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75621         to use xalloc_oversized.
75622
75623         Add two functions x2realloc, x2nrealloc, for programs that grow
75624         arrays dynamically by doubling their sizes.
75625         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75626         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75627         New functions.
75628
75629         Port to C99 semantics for 'inline' of external functions.
75630         Bug reported by Bruno Haible.
75631         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75632         with the old contents of xnmalloc.
75633         (xnmalloc, xmalloc): Use it.
75634         (xnrealloc_inline): New static inline function,
75635         with the old contents of xnrealloc.
75636         (xnrealloc, xrealloc): Use it.
75637
75638         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75639         that.
75640
75641 2003-10-26  Karl Berry  <karl@gnu.org>
75642
75643         * config/srclist.txt (COPYING.DOC): no longer available from
75644         /gd/gnuorg; don't know where the ultimate source is.
75645
75646 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75647
75648         Fix several address-calculation bugs in the hash modules,
75649         plus some minor code cleanup.
75650
75651         * lib/hash.h: Include <stdbool.h>, for bool.
75652         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75653         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75654         hash_get_n_entries, hash_get_max_bucket_length,
75655         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75656         hash_rehash): Use size_t rather than unsigned.
75657         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75658         hash_get_n_buckets_used, hash_get_n_entries,
75659         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75660         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75661         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75662         Likewise.
75663         (SIZE_MAX): Define if not defined.
75664         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75665         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75666         hash_print):
75667         Use const * when possible.
75668         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75669         (check_tuning): Fix bug: if tuning parameters were very close to
75670         0 or 1, rounding errors could have caused subscript violations.
75671         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75672         (hash_initialize): Add 'fail:' label
75673         to free table and return NULL, and use it to simplify code.
75674         Use calloc rather than clearing the storage ourself.
75675         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75676         buffer size calculations.
75677         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75678         Include <stddef.h>, for size_t.
75679         * lib/hash-pjw.c (hash_pjw): Likewise.
75680         Switch to method described by Bruno Haible.
75681         Include <limits.h>, for CHAR_BIT.
75682         (SIZE_BITS): New macro.
75683
75684 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75685
75686         * m4/getline.m4 (AM_FUNC_GETLINE):
75687         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75688         hosts.  Problem reported by Derek Robert Price in
75689         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75690         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75691         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75692
75693 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75694
75695         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75696         ceiling the allocation at NMAX bytes rather than silently
75697         discarding input bytes before NMAX is reached.  This makes
75698         a difference only if NMAX exceeds SIZE_MAX / 2.
75699
75700         * lib/obstack.c: Merge from glibc.
75701         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75702         Add libc_hidden_def (_obstack_newchunk).
75703         (_obstack_free) [! defined _LIBC]: Remove.
75704         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75705         a clone of the function body.
75706         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75707         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75708
75709         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75710         glibc.
75711         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75712         arg to memcpy.
75713
75714         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75715         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75716         Don't use lvalue casts, as GCC plans to remove support for them
75717         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75718         was also present in the non-GCC version, indicating that this
75719         code had always been buggy and had never been widely used.
75720         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75721         Use the fast variant of each macro, rather than copying the
75722         definiens of the fast variant; that way, we'll be more likely to
75723         catch future bugs in the fast variants.
75724
75725 2003-10-20  Bruno Haible  <bruno@clisp.org>
75726
75727         * modules/wait-process: New file.
75728         * MODULES.html.sh (func_all_modules): Add wait-process.
75729
75730 2003-10-20  Bruno Haible  <bruno@clisp.org>
75731
75732         * m4/wait-process.m4: New file.
75733
75734 2003-10-20  Bruno Haible  <bruno@clisp.org>
75735
75736         * lib/wait-process.h: New file, from GNU gettext.
75737         * lib/wait-process.c: New file, from GNU gettext.
75738
75739 2003-10-19  Jim Meyering  <jim@meyering.net>
75740
75741         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75742         HPUX 10.20.
75743
75744 2003-10-18  Karl Berry  <karl@gnu.org>
75745
75746         * config/config.guess: update from config.
75747
75748 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75749
75750         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75751         (getgroups): First arg is int, not size_t.
75752         Don't let 'free' mangle errno.
75753
75754 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75755
75756         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75757
75758 2003-10-16  Karl Berry  <karl@gnu.org>
75759
75760         * config/config.{guess,sub}: update from config.
75761
75762 2003-10-16  Jim Meyering  <jim@meyering.net>
75763
75764         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75765         memcpy.
75766
75767 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75768
75769         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75770         (SIZE_MAX): Remove.
75771         (new_exclude, add_exclude_file): Initial size no longer needs to
75772         be a power of 2.
75773         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75774         our own address arithmetic overflow checking.
75775
75776         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75777         (fnmatch): Do not alloca more than 2000 wide characters;
75778         instead, use malloc for large buffers.
75779         Check for address arithmetic overflow, and return -1
75780         with errno set to ENOMEM in that case.
75781         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75782         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75783         instead, return -1.  Check for address arithmetic overflow.
75784
75785 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75786
75787         Handle invalid suffixes and overflow independently, so that
75788         callers can treat them independently as needed.  Fix some bugs in
75789         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75790         suffix for a human-readable blocksize.  The major caller-visible
75791         change is the addition of a new
75792         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75793         that both overflow and suffix chars were found.
75794
75795         * lib/human.c (humblock): Don't check separately for invalid suffix
75796         char; that is xstrtoumax's job (now that its bug is fixed).
75797         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75798         INTMAX_MAX]: New macros.
75799         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75800         TYPE_MAXIMUM): New macros.
75801         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75802         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75803         if overflow occurs, as it's what __strtol does and it's more useful
75804         in practice.
75805         (__xstrtol): If __strtol reports some error other than ERANGE,
75806         reflect it to the caller as LONGINT_INVALID.  If it reports
75807         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75808         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75809         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75810         value.
75811         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75812         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75813         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75814         [defined UINTMAX_MAX]: New macros.
75815
75816 2003-10-14  Bruno Haible  <bruno@clisp.org>
75817
75818         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75819
75820 2003-10-14  Bruno Haible  <bruno@clisp.org>
75821
75822         * m4/sig_atomic_t: New file, from GNU gettext.
75823         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75824
75825 2003-10-14  Bruno Haible  <bruno@clisp.org>
75826
75827         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75828         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75829         Also use volatile where needed.
75830
75831 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75832
75833         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75834         Change maintainer from Bruno Haible to 'all'.
75835
75836 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75837
75838         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75839
75840 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75841
75842         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75843         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75844         and define in terms of the other primitives.
75845         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75846         (SIZE_MAX): Define if not already defined.
75847         (array_size_overflow): New function.
75848         (xalloc_die): Abort instead of exiting if 'error' returns.
75849         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75850         (xmalloc, xrealloc): Use them.
75851         (xcalloc): Check for address arithmetic overflow.
75852         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75853         a bit faster than strcpy.
75854
75855 2003-10-10  Simon Josefsson  <jas@extundo.com>
75856
75857         * modules/argp (Depends-on): Add restrict and strcase.
75858
75859 2003-10-10  Simon Josefsson  <jas@extundo.com>
75860
75861         * m4/argp.m4: Add AC_C_INLINE.
75862
75863 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75864
75865         Merge getpass from libc, plus a few fixes.
75866
75867         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75868         Include <stdbool.h>.
75869         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75870         __fsetlocking to empty.
75871         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75872         do include <bits/libc-lock.h>.
75873         Do not include <fcntl.h>; not needed.
75874         [_LIBC]: Include <wchar.h>.
75875         (NOTCANCEL_MODE): New macro.
75876         (flockfile, funlockfile) [_LIBC]: New macros.
75877         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75878         [!_LIBC]: New macros.
75879         (call_fclose): New function.
75880         (getpass): Use it.  Save tty stream separately; this simplifies the
75881         code and makes it more reliable if stdin happens to equal stdout.
75882         Invoke __fsetlocking on tty.
75883         Handle thread cancellation if needed.
75884         Namespace cleanup (use __tcgetattr, __getline).
75885         Use bool for Booleans.
75886         [USE_IN_LIBIO]: Handle wide streams.
75887         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75888         stream might go where.
75889
75890         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75891         doesn't have to include <stdio.h> before us.
75892         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75893         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75894         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75895         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75896         if not declared, so that we can use getpass.c code from libc without
75897         rewriting it.
75898         (flockfile, ftrylockfile, funlockfile): New macros.
75899
75900 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75901
75902         * modules/getpass: Depend on stdbool.
75903
75904 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75905
75906         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75907
75908 2003-10-07  Karl Berry  <karl@gnu.org>
75909
75910         * config/config.{guess,sub}: update from config.
75911
75912 2003-10-06  Jim Meyering  <jim@meyering.net>
75913             Bruno Haible  <bruno@clisp.org>
75914
75915         This lets translators provide better translations for the
75916         "Written by ..." part of --version output.
75917         * lib/version-etc.h: Include stdarg.h.
75918         (version_etc_copyright): Declare as readonly.
75919         (version_etc): Make this function variadic with a NULL-terminated list
75920         of author name strings.
75921         (version_etc_va): New declaration.
75922         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75923         (version_etc_copyright): Declare as readonly.
75924         (version_etc_va): New function. Provide a different translatable string
75925         for each possible number of authors < 10. Abbreviate when there are 10
75926         authors or more.
75927         (version_etc): Make this function variadic. Call version_etc_va.
75928         Suggestion from Gary V. Vaughan.
75929
75930         * lib/long-options.h (parse_long_options): Change prototype: the
75931         authors string is moved to the end and becomes variadic.
75932         * lib/long-options.c: Include stdarg.h.
75933         (parse_long_options): Make this function variadic, too.
75934         Call version_etc_va, not version_etc.
75935
75936 2003-10-06  Bruno Haible  <bruno@clisp.org>
75937
75938         * modules/version-etc-2: Remove file.
75939         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75940
75941 2003-10-06  Bruno Haible  <bruno@clisp.org>
75942
75943         * modules/fatal-signal: New file.
75944         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75945
75946 2003-10-06  Bruno Haible  <bruno@clisp.org>
75947
75948         * m4/fatal-signal.m4: New file.
75949         * m4/signalblocking.m4: New file, from GNU gettext.
75950
75951 2003-10-06  Bruno Haible  <bruno@clisp.org>
75952
75953         * lib/version-etc-2.h: Remove file.
75954         * lib/version-etc-2.c: Remove file.
75955
75956 2003-10-06  Bruno Haible  <bruno@clisp.org>
75957
75958         * lib/fatal-signal.h: New file, from GNU gettext.
75959         * lib/fatal-signal.c: New file, from GNU gettext.
75960
75961 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75962
75963         * README: Rework advice for preventing empty .o files.
75964         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75965         not <sys/types.h>.
75966
75967 2003-10-04  Karl Berry  <karl@gnu.org>
75968
75969         * lib/argp*: update from libc.
75970
75971 2003-10-04  Karl Berry  <karl@gnu.org>
75972
75973         * config/config.{guess,sub}: update from config.
75974
75975 2003-10-02  Bruno Haible  <bruno@clisp.org>
75976
75977         * modules/lchown (Include): Add lchown.h.
75978         * modules/time_r (Include): Use "..." syntax.
75979         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75980
75981 2003-10-01  Simon Josefsson  <jas@extundo.com>
75982
75983         * MODULES.html.sh (func_all_modules): Move gethostname from section
75984         'based on' to section 'lacking' POSIX:2001.
75985
75986 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75987
75988         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75989         to output mode on the same stream.
75990
75991 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75992
75993         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75994         Fix arg typo in previous patch.
75995
75996 2003-09-28  Jim Meyering  <jim@meyering.net>
75997
75998         * lib/error.c: Correct cpp indentation.
75999
76000 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76001
76002         * modules/free: New file.
76003
76004 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76005
76006         * m4/free.m4: New file.
76007
76008 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76009
76010         * lib/minmax.h (MIN, MAX)
76011         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76012         Omit the special code that used __typeof__, since we worry that
76013         it could be more trouble than it's worth.  See:
76014         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76015         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76016
76017         * lib/free.c: New file.
76018
76019 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76020
76021         Trivial fixes to Makefile.am parts of module listings.
76022         * modules/strstr: Append strstr.h to lib_SOURCES.
76023         * modules/strcase: Likewise, for strcase.h.
76024
76025 2003-09-27  Karl Berry  <karl@gnu.org>
76026
76027         * config/mkinstalldirs: update from automake.
76028
76029 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76030
76031         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76032         (error_tail): Do not loop, reallocating temporary buffer, since
76033         the output cannot contain more wide characters than the input
76034         contains bytes, the size must be big enough already.  This avoids
76035         one potential size overflow calculation.  Check for size overflow
76036         when calculating temporary buffer size.  Free temporary buffer
76037         when done, if it was allocated with malloc; this plugs a memory
76038         leak.  Remove casts from void * to pointers, that are no longer
76039         needed now that we're assuming C89 or better.
76040
76041         Merge error changes from glibc.
76042
76043         * lib/error.c, error.h: Update copyright notice header to match glibc.
76044         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76045         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76046         Disable cancellation while printing error.
76047         * lib/error.h: Prepend __ to parameter names.
76048
76049 2003-09-26  Jim Meyering  <jim@meyering.net>
76050
76051         * lib/error.c (error_tail): Move some declarations
76052         into inner scope where the local variables are used.
76053
76054 2003-09-26  Bruno Haible  <bruno@clisp.org>
76055
76056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76057         stpncpy().
76058         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76059
76060 2003-09-26  Bruno Haible  <bruno@clisp.org>
76061
76062         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76063         (stpncpy): Define as alias for gnu_stpncpy.
76064         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76065
76066 2003-09-25  Simon Josefsson  <jas@extundo.com>
76067
76068         * lib/xgetdomainname.h: New file.
76069         * lib/xgetdomainname.c: New file.
76070
76071 2003-09-25  Simon Josefsson  <jas@extundo.com>
76072             Bruno Haible  <bruno@clisp.org>
76073
76074         * modules/getdomainname: New file.
76075         * modules/xgetdomainname: New file.
76076         * MODULES.html.sh (func_all_modules): Add getdomainname,
76077         xgetdomainname.
76078
76079 2003-09-25  Simon Josefsson  <jas@extundo.com>
76080             Bruno Haible  <bruno@clisp.org>
76081
76082         * m4/getdomainname.m4: New file.
76083
76084 2003-09-25  Simon Josefsson  <jas@extundo.com>
76085             Bruno Haible  <bruno@clisp.org>
76086
76087         * lib/getdomainname.h: New file.
76088         * lib/getdomainname.c: New file.
76089
76090 2003-09-25  Karl Berry  <karl@gnu.org>
76091
76092         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76093
76094 2003-09-25  Karl Berry  <karl@gnu.org>
76095
76096         * config/install-sh: update from automake.
76097
76098 2003-09-25  Bruno Haible  <bruno@clisp.org>
76099
76100         * modules/version-etc-2: New file, from modules/version-etc with
76101         modifications.
76102         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76103
76104 2003-09-25  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76107         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76108
76109 2003-09-24  Simon Josefsson  <jas@extundo.com>
76110
76111         * modules/xgethostname: Add xgethostname.h.
76112
76113 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76114
76115         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76116         the buffer associated with the argument.  Bug reported by
76117         Simon Josefsson.
76118
76119 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76120
76121         * README: Document assumptions that 'int' is at least 32 bits
76122         wide, that integer arithmetic is 2's complement without overflow,
76123         that there are no holes in integer values, that adding sizes of
76124         two nonoverlapping objects can't overflow, and that all-bits-zero
76125         yields scalar zero.  Fix spelling and capitalization typos.
76126
76127 2003-09-19  Karl Berry  <karl@gnu.org>
76128
76129         * lib/argp.h: update from libc.
76130
76131 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76132
76133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76134         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76135         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76136
76137 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76138
76139         * gnulib-tool: Use "test -h", not "test -L", for portability
76140         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76141         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76142         (sed_extract_prog): Issue s commands one-by-one, rather than
76143         using \| in one s command.
76144
76145 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76146
76147         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76148         input error, instead of returning NULL the next time we are called
76149         (and therefore losing track of errno).
76150
76151 2003-09-16  Bruno Haible  <bruno@clisp.org>
76152
76153         * gnulib-tool (func_create_testdir): Warn about duplicated
76154         dependencies.
76155
76156 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76157
76158         * modules/argmatch, modules/fatal, modules/obstack,
76159         modules/xalloc, modules/xgethostname: Sort dependencies by
76160         importance, not alphabetically.
76161
76162 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76163
76164         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76165         fails, so that the caller gets the proper errno.
76166
76167         * lib/readutmp.c (read_utmp): Likewise.
76168         Check for fstat error.  Close stream and free storage
76169         when failing.
76170
76171 2003-09-14  Karl Berry  <karl@gnu.org>
76172
76173         * config/srclist.txt (strdup.c): disable for c89 changes.
76174
76175 2003-09-14  Jim Meyering  <jim@meyering.net>
76176
76177         * lib/getloadavg.c: Correct cpp indentation.
76178         * lib/strdup.c: Likewise.
76179         * lib/vasnprintf.c: Likewise.
76180
76181 2003-09-14  Bruno Haible  <bruno@clisp.org>
76182
76183         * modules/fwriteerror: New file.
76184         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76185
76186 2003-09-14  Bruno Haible  <bruno@clisp.org>
76187
76188         * lib/fwriteerror.h: New file.
76189         * lib/fwriteerror.c: New file.
76190
76191 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76192
76193         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76194         modules/xgethostname, modules/xalloc: Depend on exit.
76195
76196 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76197
76198         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76199
76200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76201         and AC_MINIX, too, so that their extensions are available.
76202
76203         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76204         This macro has been superseded by gl_BACKUPFILE.
76205
76206         More patches to assume C89 or better.
76207
76208         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76209
76210         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76211         unconditionally.
76212         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76213         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76214         Include <string.h>, <stdlib.h> unconditionally.
76215         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76216         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76217         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76218         headers or for string.h.
76219         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76220         or strtoul.
76221
76222         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76223         headers.
76224         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76225         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76226         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76227         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76228         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76229         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76230         memcpy, memset.
76231         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76232         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76233         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76234         strtol.
76235         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76236         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76237         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76238         strtoul.
76239
76240 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76241
76242         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76243         * lib/obstack.c [!defined _LIBC]: Likewise.
76244         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76245         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76246         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76247
76248         More changes to assume C89 or better.
76249
76250         * lib/error.c (error_tail): Assume vprintf.
76251
76252         * lib/argmatch.c (getenv): Remove decl.
76253         * lib/progreloc.c (get_full_program_name): Define via prototype.
76254         * lib/setenv.c (clearenv): Likewise.
76255         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76256         needed.
76257         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76258         (malloc, memcpy): Remove decls.
76259         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76260         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76261         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76262         (memcpy): Remove macro.
76263         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76264         (__P): Remove.  All uses removed.
76265         (PTR): Remove.  All uses changed to void *.
76266         (CHAR_BIT, NULL): Remove.
76267         (spaces, zeros, memset_space, memset_zero)
76268         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76269         Remove.
76270         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76271         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76272         Define with prototype.
76273         Remove now-unnecessary prototype decl.
76274         (extra_args_spec): Assume ANSI C.  All uses changed.
76275         (extra_args_spec_iso): Remove.
76276         (my_strftime, emacs_strftimeu): Define via prototype.
76277         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76278         unconditionally.
76279         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76280         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76281         (strtoul, strtol): Remove decls.
76282         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76283         LONG_MAX): Remove.
76284         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76285         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76286         (LOCALE_PARAM_PROTO): New macro.
76287         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76288         (INTERNAL (strtol), strtol): Define with a prototype.
76289         (PARAMS): Remove.  All uses removed.
76290         * lib/tempname.c: Include <string.h> unconditionally.
76291         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76292         * lib/xgethostname.c (main): Define with a prototype.
76293         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76294         Include <stdlib.h> unconditionally.
76295         (calloc, malloc, realloc, free): Remove decls.
76296         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76297         Include <stdlib.h> unconditionally.  Sort include file names.
76298         (strtod): Remove.
76299         (xstrtod): Define with a prototype.
76300         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76301         (strtol, strtoul): Remove decls.
76302
76303 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76304
76305         More patches to assume C89 or better.
76306         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76307         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76308         string.h, memchr, STDC_HEADERS.
76309
76310 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76311
76312         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76313         Include <stdlib.h>, <string.h> unconditionally.
76314         Remove now-unnecessary cast to char *.
76315         * lib/strnlen.c: Include <string.h> unconditionally.
76316         * lib/yesno.c (yesno): Define with a prototype.
76317
76318 2003-09-11  Bruno Haible  <bruno@clisp.org>
76319
76320         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76321
76322 2003-09-10  Jim Meyering  <jim@meyering.net>
76323
76324         * lib/error.c: Correct indentation of cpp directives.
76325
76326 2003-09-10  Bruno Haible  <bruno@clisp.org>
76327
76328         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76329         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76330         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76331         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76332         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76333         <stdlib.h> and <string.h> checks.
76334         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76335         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76336
76337 2003-09-10  Bruno Haible  <bruno@clisp.org>
76338
76339         * lib/strcspn.c: Include <string.h> unconditionally.
76340         * lib/strpbrk.c: Include <string.h> unconditionally.
76341         * lib/strstr.c: Include <string.h> unconditionally.
76342         * lib/unicodeio.c: Include <string.h> unconditionally.
76343         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76344         * lib/unsetenv.c: Likewise.
76345         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76346         * lib/yesno.c: Include <stdlib.h> unconditionally.
76347         (rpmatch): Add prototype.
76348
76349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76350
76351         More patches to assume C89 or better.
76352         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76353         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76354         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76355         or for string.h.
76356         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76357         stdlib.h.
76358         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76359         C headers.
76360         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76361         string.h.
76362         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76363         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76364         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76365         or for string.h.
76366         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76367         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76368         C headers.
76369         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76370         memcpy.
76371         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76372         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76373         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76374         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76375         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76376         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76377         string.h, free.
76378         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76379         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76380         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76381         C headers, or for string.h.
76382         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76383         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76384         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76385         headers, memory.h, stdlib.h, string.h, strings.h.
76386         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76387         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76388         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76389         strchr.
76390         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76391         headers, memory.h, string.h.
76392         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76393         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76394         free.
76395         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76396         headers.
76397         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76398         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76399         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76400         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76401         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76402
76403 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76404
76405         More K&R removal.
76406
76407         * lib/acosl.c (main): Use a prototype.
76408         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76409         tanl.c: Likewise.
76410
76411         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76412
76413         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76414         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76415         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76416         with a prototype.
76417         * lib/getopt.c (const): Remove macro.
76418         Include <string.h> unconditionally.
76419         (my_index): Remove; all uses changed to strchr.
76420         (strlen): Remove decl.
76421         (exchange): Remove forward decl; no longer needed.
76422         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76423         Define with prototype.
76424         * lib/getopt1.c (const): Remove macro.
76425         (getopt_long, getopt_long_only, main): Define with prototype.
76426
76427         * lib/getugroups.c: Include <string.h> unconditionally.
76428
76429         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76430         (getusershell, setusershell, endusershell, readname, main):
76431         Define with prototypes.
76432
76433         * lib/group-member.c: Include group-member.h first.
76434         Include <stdlib.h> unconditionally.
76435
76436         * lib/hard-locale.c: Include hard-locale.h first.
76437         Include <stdlib.h>, <string.h> unconditionally.
76438
76439         * lib/hash.c (free, malloc): Remove decls.
76440         Include <stdlib.h> unconditionally.
76441
76442         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76443         (getenv): Do not declare.
76444
76445         * lib/idcache.c: Include <string.h> unconditionally.
76446
76447         * lib/long-options.c: Include long-options.h first, to test interface.
76448         Include <stdlib.h> unconditionally.
76449
76450         * lib/makepath.c: Include makepath.h first, to test interface.
76451         Include <stdlib.h> and <string.h> unconditionally.
76452
76453         * lib/linebuffer.c: Include <stdlib.h>.
76454         (free): Remove decl.
76455
76456         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76457         stddef.h. rpl_malloc returns void *, not char *.
76458         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76459         prototype.
76460
76461         * lib/md5.h: Include <limits.h> unconditionally.
76462         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76463         (__P): Remove; all uses removed.
76464         * lib/md5.c: Include "md5.h" first.
76465         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76466         md5_buffer, md5_process_bytes, md5_process_block):
76467         Define with prototypes.
76468         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76469         * lib/sha.c: Include "sha.h" first.
76470         Include <stdlib.h>, <string.h> unconditionally.
76471
76472         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76473         * lib/memcmp.c (__ptr_t): Likewise.
76474         * lib/memrchr.c (__ptr_t): Likewise.
76475         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76476         Include <string.h> unconditionally.
76477         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76478         * lib/memchr.c: Include <stdlib.h> unconditionally.
76479         * lib/memchr.c (LONG_MAX): Remove.
76480         * lib/memrchr.c (LONG_MAX): Likewise.
76481         * lib/memchr.c (__memchr): Define via a prototype.
76482         * lib/memrchr.c (__memrchr): Likewise.
76483         * lib/memcmp.c (__P): Remove, and remove all uses.
76484         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76485         Remove forward decls; no longer needed.
76486         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76487         Use types required by C89 in prototype.
76488
76489         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76490         * lib/savedir.c: Likewise.
76491         * lib/mkdir.c (free): Remove decl.
76492         * lib/rmdir.c (rmdir): Define with a prototype.
76493         * lib/savedir.c: Include savedir.h first, to test interface.
76494
76495         * lib/mktime.c (STDC_HEADERS): Remove.
76496         Include <stdlib.h>, <string.h> unconditionally.
76497
76498         * lib/modechange.c: Include <stdlib.h> unconditionally.
76499         (malloc): Remove decl.
76500
76501         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76502         (free): Remove decl.
76503
76504         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76505         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76506         (This type really should be intptr_t, but that's a C99ism.)
76507         (_obstack_memcpy): Remove: all uses changed to memcpy.
76508         Include <string.h> unconditionally.
76509         (struct obstack): Assume __STDC__ for types of members
76510         chunkfun, freefun, extra_arg.
76511         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76512         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76513         obstack_begin, obstack_specify_allocation,
76514         obstack_specify_allocation_with_arg, obstack_chunkfun,
76515         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76516         Remove unprototyped decls and the macros that use them.
76517         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76518         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76519         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76520         (defined __STDC__ && __STDC__)]:
76521         Remove nonprototyped code.
76522         Include <stdlib.h> unconditionally.
76523         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76524         _obstack_allocated_p, _obstack_free, obstack_free,
76525         _obstack_memory_used, print_and_abort):
76526         Define using prototypes.
76527         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76528         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76529         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76530         obstack_next_free, obstack_object_size, obstack_room) [0]:
76531         Remove unused, unprototyped code.
76532
76533         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76534
76535         * lib/physmem.c (physmem_total, physmem_available, main): Define
76536         with prototypes.
76537
76538         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76539         (main): Define with a prototype.
76540
76541         * lib/posixver.c (getenv): Remove decl.
76542
76543         * lib/putenv.c (malloc): Returns void *, not char *.
76544         Include <string.h> unconditionally.
76545         (strchr, memcpy, NULL): Do not define.
76546
76547         * lib/readtokens.c: Include readtokens.h first, to test interface.
76548         Include <stdlib.h>, <string.h> unconditionally.
76549         (init_tokenbuffer): Define with a prototype.
76550
76551         * lib/regex.c (PARAMS): Remove.  All uses removed.
76552         All uses of _RE_ARGS removed, too.
76553         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76554         unconditionally.
76555         (bzero): Assume memset exists.
76556         (memcmp, memcpy, NULL): Remove.
76557         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76558         char, or assignments to local vars of type signed char.
76559         (init_syntax_once, PREFIX(extract_number_and_incr),
76560         PREFIX(print_partial_compiled_pattern),
76561         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76562         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76563         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76564         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76565         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76566         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76567         wcs_compile_range, byte_compile_range, truncate_wchar,
76568         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76569         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76570         count_mbs_length, wcs_re_match_2_internal,
76571         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76572         PREFIX(alt_match_null_string_p),
76573         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76574         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76575         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76576         now-unnecessary declaration, if any.
76577         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76578         regcomp, regexec):
76579         Remove now-unnecessary casts among pointer types.
76580         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76581
76582         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76583         (free): Remove decl.
76584
76585         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76586
76587         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76588         (free): Remove decl.
76589
76590         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76591         * lib/xgetcwd.c: Likewise.
76592
76593         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76594         (free): Remove decl.
76595
76596         * lib/strchrnul.c (strchrnul): Define with a prototype.
76597         Fix bug: c_in was not converted to char before searching.
76598
76599         The following changes are not K&R related:
76600
76601         * lib/group-member.h: Include <sys/types.h>, so that this file is
76602         self-contained.
76603         * lib/makepath.h: Likewise.
76604
76605         * lib/getusershell.c (readname, default_index, line_size, readname):
76606         Use size_t, not int, for sizes.
76607         (readname): If the size overflows, report an error instead of
76608         looping forever.
76609
76610 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76611
76612         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76613         libc.
76614
76615 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76616
76617         * README: New section: portability guidelines.
76618
76619 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76620
76621         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76622         C89 spec.
76623
76624 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76625
76626         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76627
76628 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76629
76630         Assume C89 or better; remove K&R cruft.
76631         A few of these changes were first proposed by Derek Robert Price
76632         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76633
76634         * lib/addext.c: Include <string.h> unconditionally.
76635         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76636         Don't declare getenv or malloc.
76637
76638         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76639         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76640         (NULL): Remove.
76641         (find_stack_direction, alloca): Use prototypes.
76642
76643         * lib/atexit.c (atexit): Define using a prototype.
76644
76645         * lib/basename.c, dirname.c, stripslash.c:
76646         Include <string.h> unconditionally.
76647
76648         * lib/bcopy.c: Include <stddef.h>.
76649         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76650
76651         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76652
76653         * lib/error.h (error, error_at_line, error_print_progname)
76654         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76655         * lib/error.c: Include error.h first, to check interface.
76656         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76657         (VA_START): Remove; all uses changeed to va_start.
76658         (exit, strerror): Remove decls.
76659         (error_print_progname): Prototype uncondionally.
76660         Don't include <errno.h>; no longer needed.
76661         (private_strerror): Remove.
76662         (error_tail): Always define.
76663         (error, error_at_line): Assume C89 or better; always use prototypes.
76664         * lib/fatal.c: Include "fatal.h" first, to test interface.
76665         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76666         (VA_START): Remove; all uses changed to va_start.
76667         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76668         this case.
76669         (exit): Remove decl.
76670         (fatal): Prototype unconditionally.  Assume va_start works.
76671         Abort at end, to pacify gcc.
76672
76673         * lib/euidaccess.c (main): Define with a prototype.
76674
76675         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76676
76677         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76678
76679         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76680         prototypes.
76681         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76682         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76683         (getenv): Remove decl.
76684         (fnmatch): Define using a prototype.
76685         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76686         (FCT): Define using a prototype.
76687
76688         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76689
76690         * lib/gethostname.c: Include <stddef.h>.
76691         (gethostname): Define with prototype.  Length is size_t, not int.
76692
76693 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76694
76695         Assume C89 or better; remove K&R cruft.
76696         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76697         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76698         string.h, getenv, malloc.
76699         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76700         headers.
76701         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76702         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76703         do not check for strerror.
76704         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76705         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76706         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76707         do not check for doprnt or vprintf.
76708         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76709         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76710
76711 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76712
76713         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76714         getversion.c should have been removed then, but was accidentally
76715         preserved.
76716
76717         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76718         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76719
76720 2003-09-08  Karl Berry  <karl@gnu.org>
76721
76722         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76723                 config, forget about prep.
76724
76725         * config/depcomp, missing: update from automake.
76726
76727 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76728
76729         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76730         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76731
76732 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76733
76734         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76735         copy_tm_result.  Bug reported by Simon Josefsson in
76736         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76737
76738 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76739
76740         * m4/time_r.m4: New file.
76741         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76742         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76743         is. Check for timegm declaration.
76744         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76745         Do not check for gmtime_r.
76746         Replace mktime if __mktime_internal does not exist and if mktime
76747         hasn't been replaced already.
76748
76749 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76750
76751         * lib/time_r.c, lib/time_r.h: New files.
76752
76753         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76754         __localtime_r.
76755         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76756         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76757
76758         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76759         __gmtime_r.
76760         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76761         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76762         Include <time_r.h>.
76763
76764         * lib/timegm.c: Switch to glibc implementation, with the following
76765         changes:
76766         [defined HAVE_CONFIG_H]: Include <config.h>.
76767         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76768         (__mktime_internal) [!defined _LIBC]: New decl.
76769         (__gmtime_r) [!defined _LIBC]: New macro and function.
76770         (timegm): Use a prototype, since gnulib assumes C89.
76771         Do not bother declaring tmp to be const, as it's not really usefu.
76772         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76773         (timegm): Declare only if HAVE_DECL_TIMEGM.
76774
76775 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76776
76777         * MODULES.html.sh (func_all_modules): Add time_r.
76778         * modules/time_r: New file.
76779         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76780         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76781
76782 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76783
76784         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76785         Bug reported by Lute Kamstra in
76786         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76787
76788         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76789         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76790         course with correspondingly smaller numbers for tomorrow and
76791         yesterday.  From Tadayoshi Funaba.  Originally installed into
76792         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76793         coreutils merge?).
76794
76795 2003-08-31  Simon Josefsson  <jas@extundo.com>
76796
76797         * modules/timegm: New file.
76798         * MODULES.html.sh (func_all_modules): Add timegm.
76799
76800 2003-08-31  Simon Josefsson  <jas@extundo.com>
76801
76802         * m4/timegm.m4: New file.
76803
76804 2003-08-31  Simon Josefsson  <jas@extundo.com>
76805
76806         * lib/timegm.h: New file.
76807         * lib/timegm.c: New file.  Based on
76808         wget-1.8.2/src/http.c:mktime_from_utc.
76809
76810 2003-08-31  Karl Berry  <karl@gnu.org>
76811
76812         * lib/argp.h: update from libc.
76813
76814 2003-08-28  Bruno Haible  <bruno@clisp.org>
76815
76816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76817         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76818         followed by '#define fnmatch fnmatch_posix' gives an error.
76819
76820 2003-08-28  Bruno Haible  <bruno@clisp.org>
76821
76822         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76823         warning on QNX, which defines O_BINARY to 000000.
76824
76825 2003-08-27  Jim Meyering  <jim@meyering.net>
76826
76827         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76828         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76829         would fail after 32.  Reported by Danny Levinson.  Details here:
76830         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76831
76832 2003-08-24  Bruno Haible  <bruno@clisp.org>
76833
76834         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76835         MSVC7 <stdio.h> is included later.
76836
76837 2003-08-22  Simon Josefsson  <jas@extundo.com>
76838
76839         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76840
76841 2003-08-20  Karl Berry  <karl@gnu.org>
76842
76843         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76844
76845 2003-08-20  Bruno Haible  <bruno@clisp.org>
76846
76847         * modules/progname: New file.
76848         * MODULES.html.sh (func_all_modules): Add progname.
76849
76850 2003-08-20  Bruno Haible  <bruno@clisp.org>
76851
76852         * lib/progname.h: New file, from GNU gettext.
76853         * lib/progname.c: New file, from GNU gettext.
76854         * lib/progreloc.c: New file, from GNU gettext.
76855
76856 2003-08-19  Jim Meyering  <jim@meyering.net>
76857
76858         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76859         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76860
76861 2003-08-19  Bruno Haible  <bruno@clisp.org>
76862
76863         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76864         more.
76865
76866 2003-08-19  Bruno Haible  <bruno@clisp.org>
76867
76868         * lib/xstrdup.c: Assume <string.h> exists.
76869
76870 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76871
76872         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76873         in makefile rules.
76874
76875 2003-08-18  Jim Meyering  <jim@meyering.net>
76876
76877         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76878         * m4/lib-ld.m4: Likewise.
76879
76880 2003-08-18  Jim Meyering  <jim@meyering.net>
76881
76882         * lib/setenv.h: Indent nested cpp directive.
76883         * lib/vasnprintf.c: Remove trailing blanks.
76884
76885 2003-08-17  Simon Josefsson  <jas@extundo.com>
76886
76887         * modules/xstrndup: New file.
76888         * MODULES.html.sh (func_all_modules): Add xstrndup.
76889
76890 2003-08-17  Simon Josefsson  <jas@extundo.com>
76891
76892         * modules/argp: Fix autoconf macro name. Add more dependencies.
76893
76894 2003-08-17  Simon Josefsson  <jas@extundo.com>
76895
76896         * m4/xstrndup.m4: New file.
76897
76898 2003-08-17  Simon Josefsson  <jas@extundo.com>
76899
76900         * m4/argp.m4: New file.
76901
76902 2003-08-17  Simon Josefsson  <jas@extundo.com>
76903             Bruno Haible  <bruno@clisp.org>
76904
76905         * lib/xstrndup.h: New file.
76906         * lib/xstrndup.c: New file.
76907
76908 2003-08-17  Bruno Haible  <bruno@clisp.org>
76909
76910         * modules/strndup (Files, Include): Add lib/strndup.h.
76911
76912 2003-08-17  Bruno Haible  <bruno@clisp.org>
76913
76914         * modules/euidaccess (Files): Add lib/euidaccess.h.
76915
76916 2003-08-17  Bruno Haible  <bruno@clisp.org>
76917
76918         * lib/strndup.h: New file.
76919
76920 2003-08-17  Bruno Haible  <bruno@clisp.org>
76921
76922         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76923         like AC_GNU_SOURCE.
76924         * modules/extensions (configure.ac): Comment out the invocation of
76925         gl_USE_SYSTEM_EXTENSIONS.
76926
76927 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76928
76929         Merges from coreutils, etc.
76930         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76931         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76932         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76933         fixing a typo.
76934         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76935         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76936
76937 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76938
76939         Document merge from coreutils.
76940         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76941         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76942         * modules/utime: Add m4/utimes-null.m4.
76943
76944 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76945
76946         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76947         space, undoing this 2003-08-12 change:
76948         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76949
76950 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76951
76952         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76953         strtoul.c from libc, undoing this 2003-08-12 change:
76954         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76955
76956 2003-08-16  Jim Meyering  <jim@meyering.net>
76957
76958         Merges from coreutils.
76959         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76960         prefix.  Adjust cache variables similarly.  Create 500 rather than
76961         just 300 files, to exercise bug on Darwin6.5, too.
76962         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76963         $missing_dir.
76964         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76965         AM_SYS_POSIX_TERMIOS.
76966         Reported by mkc@mathdogs.com.
76967         Also change use of $am_cv_sys_posix_termios
76968         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76969         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76970         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76971         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76972         in /proc/mounts until it finds one with matching device number.  This
76973         is unnecessary when the FILE argument *is* a mount point.  No stat call
76974         is necessary in that case.  So, disable the statvfs-testing code on
76975         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76976         as RedHat bug# 84846.
76977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76978         to 1MB, so as not to render systems with no stack size limit (e.g.,
76979         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76980         Include <unistd.h>.  On some systems,
76981         it is required for the definition of _SC_PAGESIZE.
76982
76983 2003-08-16  Jim Meyering  <jim@meyering.net>
76984
76985         Merge from coreutils.
76986         * lib/xstrtoimax.c: #else #if -> #elif.
76987         * lib/xstrtoumax.c: Likewise.
76988
76989 2003-08-16  Jim Meyering  <jim@meyering.net>
76990
76991         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76992         * m4/utimes.m4: Removed.
76993         * m4/utimes-null.m4: Renamed from utimes.m4.
76994
76995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76996         to 1MB, so as not to render systems with no stack size limit (e.g.,
76997         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76998         Include <unistd.h>.  On some systems,
76999         it is required for the definition of _SC_PAGESIZE.
77000
77001 2003-08-16  Jim Meyering  <jim@meyering.net>
77002         and Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         Merges from coreutils, etc.
77005
77006         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77007         using the latest version from cvs.  This avoids problems with #line
77008         directives using a vendor (Sun) compiler.
77009         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77010         Don't set GETGROUPS_LIB here; now it's
77011         done via getgroups.m4's wrapper function.
77012         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77013         rather than just in sh-util/configure.in, so that the
77014         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77015         same.
77016         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77017         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77018         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77019         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77020         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77021         Remove code that is now done by the newly-required macros.
77022         Append $(EXEEXT) to DF_PROG.
77023         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77024         Do not invoke or require the following here,
77025         since prereq.m4 or some gnulib .m4 now does this for us:
77026         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77027         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77028         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77029         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77030         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77031         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77032         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77033         AC_FUNC_OBSTACK.
77034         Do not replace the following functions, as this is now the job
77035         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77036         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77037         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77038         atexit getpass, strdup, getpagesize.
77039         Replace 'raise'.
77040         Do not check for the following functions, as this is now the job
77041         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77042         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77043         setregid.
77044         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77045         Check for sys/sysctl.h.
77046         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77047         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77048         of checking for ssize_t ourselves.
77049
77050         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77051         Require every macro that gnulib/modules/* suggests for us.
77052         (jm_PREREQ_ADDEXT): New macro.
77053         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77054         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77055
77056         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77057         (gl_PHYSMEM): Use it.
77058         Also check for `table' function.
77059         Check for new headers and functions.
77060         Add check for sys/sysmp.h.
77061         With suggestions from Kaveh Ghazi.
77062         Ignore headers that are present but cannot be compiled.  This
77063         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77064         C 5.4.
77065
77066 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77067
77068         Document merge from coreutils.
77069         * modules/userspec: Depend on posixver.
77070         * modules/strftime: Depend on tzset.
77071
77072 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77073
77074         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77075         rather than tab, after '#' in shell-script copyright notices.
77076         Suggested by Bruno Haible.
77077
77078 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77079
77080         * config/srclist-update: Use three spaces, rather than tab, after '#'
77081         in shell-script copyright notices.  Suggested by Bruno Haible.
77082         Remove unnecessary parenthesization in regular expression.
77083
77084 2003-08-15  Jim Meyering  <jim@meyering.net>
77085
77086         Merge from coreutils.
77087         * lib/xgethostname.c: Include <stdlib.h>.
77088         (xghostname): Don't exit for anything other than memory-related
77089         failure; just return NULL.
77090         * lib/userspec.c: Include "posixver.h".
77091         (parse_user_spec): Accept `.' as a separator only
77092         in pre-POSIX-200112 mode.
77093         * lib/strtoimax.c: Use #elif rather than #else #if.
77094         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77095         Remove function, now that we can rely on a working tzset function.
77096         [!_LIBC]: Ensure that the required autoconf test has been run.
77097         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77098         Use underlying_strftime for %r.
77099         * lib/sha.c: Merge in some clean-up and optimization changes from
77100         glibc.
77101         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77102         Ensure that it is a multiple of 64.
77103         Rearrange loop exit tests so as to avoid performing an
77104         additional fread after encountering an error or EOF.
77105         * lib/realloc.c: Update copyright date.
77106
77107 2003-08-15  Jim Meyering  <jim@meyering.net>
77108         and Paul Eggert  <eggert@twinsun.com>
77109
77110         Merge from coreutils.
77111         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77112         member but strut utmpx does not.  Needed for AIX 4.3.3.
77113         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77114
77115 2003-08-15  Jim Meyering  <jim@meyering.net>
77116         and Paul Eggert  <eggert@cs.ucla.edu>
77117
77118         Merges from coreutils, etc.
77119         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77120         Require gl_FUNC_TZSET_CLOBBER.
77121         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77122         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77123         members.
77124
77125 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77126
77127         Help the merge from coreutils.
77128         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77129         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77130         * m4/tzset.m4: Use it too.
77131
77132 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77133
77134         * modules/tzset: New file.
77135
77136 2003-08-14  Jim Meyering  <jim@meyering.net>
77137
77138         Merges from coreutils.
77139         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77140         variable names, rather than @FNMATCH_H@.
77141         * modules/alloca: Likewise for $(ALLOCA_H).
77142
77143         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77144         the three copies of the literal target, `fnmatch.h'.
77145         * modules/alloca (alloca.h): Likewise.
77146
77147 2003-08-14  Jim Meyering  <jim@meyering.net>
77148
77149         Merge from coreutils.
77150         * m4/tzset.m4: New file.
77151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77152         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77153         otherwise, AIX 5.1 systems would end up using the latter.
77154         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77155         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77156         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77157         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77158
77159 2003-08-14  Jim Meyering  <jim@meyering.net>
77160
77161         Merge from coreutils.
77162         * lib/obstack.h: Whitespace changes.
77163         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77164         and xcalloc return values.
77165         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77166         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77167         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77168         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77169         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77170         error from mntctl.
77171         Use mntctl's return value to drive the entry-processing loop, since
77172         we can't rely on the value of the vmt_length member in the last
77173         entry.  On some systems doing so could result in exhausting
77174         virtual memory.  Based in part on a patch from Mike Jetzer.
77175
77176 2003-08-14  Jim Meyering  <jim@meyering.net>
77177         and Paul Eggert  <eggert@twinsun.com>
77178
77179         Merges from coreutils, plus other fixes.
77180         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77181         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77182         for credits and details.  Thanks to Kaveh Ghazi for helping
77183         to keep these files in sync.
77184         (ARRAY_SIZE): Define it.
77185         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77186         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77187         (memcasecmp): Don't assume size_t fits in unsigned int.
77188         Remove casts and duplicate code.
77189         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77190         (memcpy): Remove definition.
77191         Merge in some clean-up and optimization changes from glibc.
77192         [BLOCKSIZE]: Move definition to top of file.
77193         Ensure that it is a multiple of 64.
77194         Rearrange loop exit tests so as to avoid performing an
77195         additional fread after encountering an error or EOF.
77196         * lib/md5.h (md5_uintptr): Define.
77197         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77198         return to the initial working directory.  Preserve errno
77199         for caller.
77200         * lib/idcache.c: Include "xalloc.h".
77201         (xmalloc, xrealloc): Remove decls.
77202         (getuser): Remove casts no longer required in C89.
77203         * lib/human.c: Include stdio.h, for sprintf.
77204         * lib/group-member.c: Include "xalloc.h".
77205         (xmalloc, xrealloc): Remove decls.
77206         (get_group_info): Remove casts no longer required in C89.
77207         * lib/getusershell.c (readname): Remove casts no longer required in
77208         C89.
77209         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77210         * lib/getline.c: Whitespace fix, from coreutils.
77211
77212 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77213
77214         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77215         Check for isascii.
77216
77217         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77218         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77219         Undo previous (whitespace-only) change.
77220
77221 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77222
77223         * lib/exclude.c: Include <ctype.h>
77224         (IN_CTYPE_DOMAIN): New macro.
77225         (is_space): New fn.
77226         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77227         and empty lines.
77228
77229         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77230         Undo previous (whitespace-only) change.
77231
77232 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77233
77234         * config/srclist-update: Change update back to the old behavior,
77235         leaving whitespace alone.  Use one 'sed' command rather than a
77236         pipeline.
77237         (fixlicense): Now a variable, not a function.
77238         (remove_trailing_blanks): Remove.
77239         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77240         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77241         Undo previous (whitespace-only) change.
77242
77243 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77244
77245         Merge from coreutils.
77246         * modules/euidaccess: Add lib_SOURCES, include for new
77247         file euidaccess.h
77248
77249 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77250
77251         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77252         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77253         Normalize leading white space and remove trailing white space.
77254
77255         Merge from coreutils
77256         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77257
77258         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77259         0.12.1.  These files are now being upgraded automatically by
77260         ../config/srclist-update.
77261
77262 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77263
77264         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77265         Normalize leading white space and remove trailing white space.
77266         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77267         notice, as per ../config/srclist-update.
77268
77269         Merge from coreutils.
77270         * lib/euidaccess.h: New file.
77271         * lib/euidaccess.c: Include it.
77272         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77273         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77274         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77275
77276 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77277
77278         * config/srclist-update: Add copyright notice.
77279         (remove_id_lines, remove_trailing_blanks): New constants.
77280         (fixfile): Use them to normalize spacing a bit in copied files.
77281         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77282         Normalize leading white space and remove trailing white space.
77283
77284         * config/texinfo.tex: Sync with texinfo.
77285
77286         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77287         strtoul.c from libc, to merge coreutils whitespace changes.
77288
77289         * config/srclist.txt: Get the following m4 files from gettext:
77290         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77291         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77292         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77293         wint_t.m4.
77294
77295 2003-08-12  Karl Berry  <karl@gnu.org>
77296
77297         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77298         been made.
77299
77300 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77301
77302         * modules/gnu-source, m4/gnu-source.m4:
77303         Remove; we're assuming Autoconf 2.54 or later now.
77304         Suggested by Bruno Haible.
77305         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77306
77307 2003-08-11  Bruno Haible  <bruno@clisp.org>
77308
77309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77310
77311 2003-08-11  Bruno Haible  <bruno@clisp.org>
77312
77313         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77314         (vasnprintf): Use it instead of wcslen.
77315
77316 2003-08-11  Bruno Haible  <bruno@clisp.org>
77317
77318         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77319         value to ensure that _Bool promotes to int. Use #define for _Bool when
77320         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77321
77322 2003-08-10  Karl Berry  <karl@gnu.org>
77323
77324         * lib/regex.h: update from libc (whitespace fix).
77325
77326 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77327
77328         Merge some files from coreutils.  These changes were
77329         originally made by Jim Meyering.
77330         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77331         many older Unixes require this.
77332         * lib/alloca.c (alloca): Remove cast to argument of free;
77333         no longer needed in C89.
77334         * lib/alloca_.h, regex.h: Fix white space to match
77335         what GNU indent does.
77336
77337 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77338
77339         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77340         apparently Emacs's Unicode mode got confused before my 2003-08-05
77341         checkin.
77342
77343 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77344
77345         * m4/extensions.m4: New file.
77346         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77347         Require gl_USE_SYSTEM_EXTENSIONS.
77348         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77349         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77350
77351 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77352
77353         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77354         * modules/extensions, modules/gnu-source: New files.
77355         * modules/timespec, modules/unlocked-io: Depend on extensions.
77356
77357 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77358
77359         * modules/restrict: New file.
77360         * MODULES.html.sh (func_all_modules): Add restrict.
77361         * modules/regex: Depend on restrict.
77362
77363 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77364
77365         * m4/restrict.m4: New file.
77366         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77367
77368 2003-08-07  Bruno Haible  <bruno@clisp.org>
77369
77370         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77371         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77372
77373 2003-08-07  Bruno Haible  <bruno@clisp.org>
77374
77375         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77376         makes the module 'getndelim2' compatible with the module 'getline'.
77377
77378 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77379
77380         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77381         byte with "\201" to avoid glitches when editing that source file
77382         with multi-gnome-terminal.
77383
77384 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77385
77386         * lib/bumpalloc.h: Remove.
77387
77388 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77389
77390         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77391         * modules/bumpalloc: Remove.
77392
77393 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77394
77395         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77396         GNU coding style.
77397
77398         Merge from coreutils.
77399         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77400         1. From glibc.
77401         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77402         from Karl Berry, implemented by Jim Meyering.
77403         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77404         from Dmitry V. Levin.
77405         Remove anachronistic cast of xrealloc.
77406         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77407         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77408         type. Otherwise, it wouldn't compile with at least /bin/cc on
77409         ymp-cray-unicos9.0.2.X.
77410         Combine two mostly-identical uses of alloca into one.
77411         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77412
77413 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77414
77415         [From Emacs.]
77416
77417         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77418         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77419         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77420         obsolete NLIST_NAME_UNION.
77421         [__GNU__]: Undef BSD and FSCALE.
77422         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77423
77424 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77425
77426         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77427         an enum type, so that it's guaranteed to promote to int.  See:
77428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77429
77430 2003-08-03  Karl Berry  <karl@gnu.org>
77431
77432         * config/depcomp: update from automake.
77433
77434 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77435
77436         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77437         (strerror): Don't assume that a printable int fits in 14 bytes.
77438
77439 2003-07-31  Bruno Haible  <bruno@clisp.org>
77440
77441         * modules/getpass-gnu: New file.
77442         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77443
77444 2003-07-31  Bruno Haible  <bruno@clisp.org>
77445
77446         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77447
77448 2003-07-24  Karl Berry  <karl@gnu.org>
77449
77450         * config/missing: update from automake.
77451
77452 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77453             Bruno Haible  <bruno@clisp.org>
77454
77455         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77456         * lib/getline.c (getline, getdelim): Likewise.
77457         Remove _GNU_SOURCE define; now it's defined in config.h through
77458         m4/getline.m4.
77459
77460 2003-07-23  Karl Berry  <karl@gnu.org>
77461
77462         * config/config.sub: update from prep.
77463
77464 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77465
77466         * modules/xalloc (Depends-on): Add exitfail.
77467         * modules/xmemcoll: Likewise.
77468
77469 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77470
77471         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77472         over-parenthesization in macros.
77473
77474         Sync with coreutils.
77475
77476         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77477         required by C99.
77478
77479         Use `exit_failure' for xalloc and xmemcoll instead of their own
77480         private exit-failure variables.
77481         * lib/xalloc.h (xalloc_exit_failure): Remove.
77482         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77483         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77484         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77485         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77486         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77487
77488 2003-07-20  Jim Meyering  <jim@meyering.net>
77489
77490         * modules/closeout (Depends-on): Add exitfail.
77491         Suggestion from Bruno Haible.
77492
77493 2003-07-19  Karl Berry  <karl@gnu.org>
77494
77495         * config/config.sub: update from prep.
77496
77497 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77498
77499         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77500         Remove.
77501         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77502         to test that it can stand by itself.  Include "exitfail.h".
77503         Clients should set exit_failure instead.
77504         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77505
77506 2003-07-18  Bruno Haible  <bruno@clisp.org>
77507
77508         * modules/getndelim2: New file.
77509         * modules/getline: Share files with module getndelim2.
77510         * modules/getnline: Depend on getndelim2 instead of sharing files with
77511         it. Add getnline.c to lib_SOURCES.
77512         * MODULES.html.sh (func_all_modules): Add getndelim2.
77513
77514 2003-07-18  Bruno Haible  <bruno@clisp.org>
77515
77516         * m4/getndelim2.m4: New file.
77517         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77518         invoke gl_PREREQ_GETNDELIM2.
77519         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77520         gl_PREREQ_GETNDELIM2.
77521         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77522         gl_GETNDELIM2.
77523
77524 2003-07-18  Bruno Haible  <bruno@clisp.org>
77525
77526         * lib/getndelim2.h: New file.
77527         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77528         getndelim2.h.
77529         (getndelim2): Make non-static. Change return type to ssize_t.
77530         * lib/getline.h: Change argument names.
77531         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77532         * lib/getnline.c: Include getndelim2.h.
77533
77534 2003-07-18  Andreas Schwab  <schwab@suse.de>
77535
77536         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77537
77538 2003-07-17  Karl Berry  <karl@gnu.org>
77539
77540         * config/config.sub: update from prep.
77541
77542 2003-07-17  Bruno Haible  <bruno@clisp.org>
77543
77544         * modules/getnline: New file.
77545         * modules/getline: Add lib/getndelim2.c to source file list.
77546         * MODULES.html.sh (func_all_modules): Add getnline.
77547
77548 2003-07-17  Bruno Haible  <bruno@clisp.org>
77549
77550         * m4/getnline.m4: New file.
77551
77552 2003-07-17  Bruno Haible  <bruno@clisp.org>
77553
77554         * m4/Makefile.am.in: Remove file.
77555         * m4/Makefile.am: Remove file.
77556         * m4/Makefile.in: Remove file.
77557
77558 2003-07-17  Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/getnline.h: New file.
77561         * lib/getnline.c: New file.
77562         * lib/getndelim2.c: New file, extracted from getline.c.
77563         (getndelim2): Renamed from getdelim2, with added nmax argument.
77564         * lib/getline.c: Include getndelim2.c.
77565         (getdelim2): Moved out to getndelim2.c.
77566         (getline, getdelim): Update.
77567
77568 2003-07-17  Bruno Haible  <bruno@clisp.org>
77569
77570         * lib/Makefile.am: Remove file.
77571         * lib/Makefile.in: Remove file.
77572
77573 2003-07-17  Bruno Haible  <bruno@clisp.org>
77574
77575         * configure.in: Remove file.
77576         * Makefile.in: Remove file.
77577
77578 2003-07-17  Bruno Haible  <bruno@clisp.org>
77579
77580         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77581
77582 2003-07-16  Karl Berry  <karl@gnu.org>
77583
77584         * config/srclist-update: was running fixlicense twice, which caused
77585                 texinfo.tex to be nullified for some reason.  Simplify,
77586                 $gplsrc is no longer needed as far as I can see?
77587
77588 2003-07-16  Jim Meyering  <jim@meyering.net>
77589
77590         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77591
77592 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77593
77594         * config/srclist.txt: Get the following files from gettext-runtime/intl
77595         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77596         ref-del.sin.  From Bruno Haible.
77597         * config/srclist-update (fixfile): Change grep pattern again, since the
77598         previous fix didn't work (there was another trailing $).  Use
77599         '[$]' to escape the $s.
77600
77601 2003-07-15  Karl Berry  <karl@gnu.org>
77602
77603         * lib/vasnprintf.c: update from gettext.
77604
77605 2003-07-15  Karl Berry  <karl@gnu.org>
77606
77607         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77608         gets expanded when surrounded by '$'.
77609
77610 2003-07-15  Jim Meyering  <jim@meyering.net>
77611
77612         * modules/save-cwd: Don't depend on error.  From Derek Price.
77613
77614 2003-07-15  Jim Meyering  <jim@meyering.net>
77615
77616         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77617
77618 2003-07-14  Simon Josefsson  <jas@extundo.com>
77619
77620         * modules/mempcpy: New file.
77621         * MODULES.html.sh (func_all_modules): Add mempcpy.
77622
77623 2003-07-14  Simon Josefsson  <jas@extundo.com>
77624
77625         * m4/mempcpy.m4: New file.
77626
77627 2003-07-14  Simon Josefsson  <jas@extundo.com>
77628
77629         * lib/mempcpy.h: New file.
77630         * lib/mempcpy.c: New file.
77631
77632 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77633
77634         * modules/getdate, modules/posixtm: Depend on mktime.
77635
77636 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77637
77638         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77639         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77640         unicodeio.c, unicodeio.h, unlocked-io.h:
77641         Switch from LGPL to GPL.
77642
77643 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77644
77645         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77646         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77647         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77648         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77649         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77650         updated automatically by ../config/srclist-update.  This changes
77651         their license from LPGL to GPL.
77652
77653 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77654
77655         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77656         assumed to refer to the root of the most recent stable gettext version.
77657         * config/srclistvars.sh: Add defaults for eggert.
77658         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77659         Match "This program" as well as "The program".  This is needed
77660         for gettext.
77661
77662 2003-07-14  Jim Meyering  <jim@meyering.net>
77663
77664         Don't emit diagnostics.  Let callers do that.
77665         * lib/save-cwd.c: Don't include "error.h".
77666         (save_cwd): Don't call error.  Ensure that errno is valid
77667         when returning nonzero.
77668
77669         * lib/save-cwd.h (restore_cwd): Update prototype.
77670         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77671         Simplify.  Don't call error upon failure.  Let callers do that.
77672         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77673         when auditing is enabled.  But don't bother updating the #if.
77674
77675 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77676
77677         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77678         it breaks C++ compilation.
77679         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77680
77681 2003-07-10  Simon Josefsson  <jas@extundo.com>
77682
77683         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77684
77685 2003-07-10  Jim Meyering  <jim@meyering.net>
77686
77687         * m4/clock_time.m4: Remove trailing blank.
77688         * m4/intmax_t.m4: Likewise.
77689
77690 2003-07-10  Jim Meyering  <jim@meyering.net>
77691
77692         * lib/vasnprintf.c: Remove trailing blanks.
77693         Make cpp indentation consistent.
77694
77695 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77696
77697         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77698         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77699         Switch from LGPL to GPL.
77700
77701 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77702
77703         * config/srclist.txt: Sort sublists.  Add
77704         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77705         that differ from gnulib for one reason or another; we'd like this list
77706         to be smaller but for now let's document what we have.
77707
77708 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77709
77710         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77711         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77712         and sweeter "eval x=$x".
77713         * config/srclist.txt: Get lib/argp* from glibc.
77714
77715 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77716
77717         * lib/mktime.c: Fix some boundary cases and remove need for floating
77718         point.
77719
77720         Issue a compile-time diagnostic if time_t is floating point, or if
77721         two's complement arithmetic is not in effect, or if arithmetic
77722         right shift does not propagate the sign.  These assumptions were
77723         all in the original code but they weren't checked.
77724
77725         (TIME_T_MIDPOINT, verify): New macros.
77726         (__isleap): Remove; it has integer overflow problems.
77727         (leapyear): New function, without those problems.
77728         (ydhms_tm_diff): Remove; splitting into two parts.
77729         (ydhms_diff): New function, containing the arithmetic part of
77730         the old ydhms_tm_diff function.  Issue a compile-time
77731         diagnostic if we are not using C99 integer division.
77732         Avoid casts when possible.
77733         (guess_time_tm): New function, containing the checking part of
77734         the old ydhms_tm_diff function.  Return the new value, rather than
77735         the difference between it and the old.  Accept a new argument T
77736         so that *T specifies the old value.  Check for overflow in the result.
77737
77738         (__mktime_internal): Use a time_t offset, not a long int offset.
77739         This undoes the 2003-06-04 change, which is no longer needed now
77740         that we have better overflow checking.
77741         (localtime_offset): Likewise.
77742
77743         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77744         and long are 64-bit but int is only 32-bit.
77745         (ydhms_diff): Use long int to store year1 and yday1.
77746         Issue a compile-time diagnostic if long int is not wide enough.
77747
77748         (__mktime_internal): Use long int to store adjusted year and yday.
77749         Use plain C rather than preprocessor commands, if that doesn't
77750         affect efficiency.
77751         Check for overflow (and try to repair) after each probe
77752         rather than checking only at the very end.  This avoids some bugs
77753         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77754         does not equal GMT offset at maximum time).
77755         Use integer to check for overflow rather than floating point; this
77756         is more portable to non-IEEE hosts, and is a tad faster.
77757         When we detect that we are oscillating between two values,
77758         don't check whether tm_isdst has the requested value, since
77759         we already know the answer.  When tm_isdst has the wrong value,
77760         use a different heuristic to find the right one, based on the
77761         extreme values actually observed in practice in tz2003a,
77762         rather than the (overly optimistic) "previous 3 calendar quarters".
77763
77764         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77765         "T const" to accommodate glibc style.
77766         (check_result): Use less-confusing report format.  "long" -> "long int.
77767         (main): Likewise.
77768         Don't loop if the iteration overflows time_t.
77769         Allow a negative step in the iteration.
77770
77771 2003-07-06  Karl Berry  <karl@gnu.org>
77772
77773         * config/depcomp: update from automake.
77774         * config/config.sub: update from prep.
77775
77776 2003-07-03  Karl Berry  <karl@gnu.org>
77777
77778         * config/config.guess: update from prep.
77779
77780 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77781
77782         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77783         xreadlink.c now includes it unconditionally.
77784
77785 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77786
77787         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77788         having it depend on HAVE_SYS_TYPES_H.
77789
77790 2003-07-01  Bruno Haible  <bruno@clisp.org>
77791
77792         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77793         <sys/types.h> should be sufficient.
77794         Reported by Paul Eggert.
77795
77796 2003-06-26  Karl Berry  <karl@gnu.org>
77797
77798         * config/depcomp: update from automake.
77799
77800 2003-06-26  Bruno Haible  <bruno@clisp.org>
77801
77802         * modules/human: Depend on module stdbool.
77803
77804 2003-06-25  Bruno Haible  <bruno@clisp.org>
77805
77806         * modules/readlink: New file.
77807         * modules/xreadlink: Depend on it.
77808         * MODULES.html.sh (func_all_modules): Add readlink.
77809
77810 2003-06-25  Bruno Haible  <bruno@clisp.org>
77811
77812         * m4/readlink.m4: New file.
77813
77814 2003-06-25  Bruno Haible  <bruno@clisp.org>
77815
77816         * lib/readlink.c: New file.
77817
77818 2003-06-22  Karl Berry  <karl@gnu.org>
77819
77820         * config/srclist.txt: update mkinstalldirs from automake.
77821         * config/mkinstalldirs: update.
77822
77823 2003-06-22  Bruno Haible  <bruno@clisp.org>
77824
77825         Portability to mingw32.
77826         * m4/ssize_t.m4: New file, from GNU gettext.
77827         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77828         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77829
77830 2003-06-22  Bruno Haible  <bruno@clisp.org>
77831
77832         * modules/safe-read: Add m4/ssize_t.m4.
77833         * modules/xreadlink: Add m4/ssize_t.m4.
77834
77835 2003-06-20  Bruno Haible  <bruno@clisp.org>
77836
77837         Assume C89, so PARAMS isn't needed.
77838         * lib/unicodeio.h (PARAMS): Remove.
77839         * lib/unicodeio.c: Don't use PARAMS.
77840
77841 2003-06-18  Karl Berry  <karl@gnu.org>
77842
77843         * config/config.{guess,sub}: update from prep.
77844
77845 2003-06-18  Jim Meyering  <jim@meyering.net>
77846
77847         Merge changes from coreutils.
77848         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77849         Remove explicit declarations of xmalloc and realloc.
77850         Include xalloc.h.
77851         (read_utmp): Remove anachronistic cast of xmalloc.
77852
77853 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77854
77855         Assume C89, so PARAMS isn't needed.
77856         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77857         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77858         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77859         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77860         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77861         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77862         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77863         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77864         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77865         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77866         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77867         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77868         no longer needed. Anyway, config.h should always be included before any
77869         other file.
77870
77871 2003-06-11  Simon Josefsson  <jas@extundo.com>
77872
77873         * modules/sysexits: New file.
77874         * MODULES.html.sh (func_all_modules): Add sysexits.
77875
77876 2003-06-11  Simon Josefsson  <jas@extundo.com>
77877
77878         * lib/sysexit_.h: New file.
77879
77880 2003-06-11  Derek Price  <derek@ximbiot.com>
77881
77882         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77883         necessary.
77884
77885 2003-06-11  Bruno Haible  <bruno@clisp.org>
77886
77887         * m4/sysexits.m4: New file.
77888
77889 2003-06-10  Simon Josefsson  <jas@extundo.com>
77890
77891         * lib/argp.h: New file, from glibc.
77892         * lib/argp-ba.c: New file, from glibc.
77893         * lib/argp-eexst.c: New file, from glibc.
77894         * lib/argp-fmtstream.c: New file, from glibc.
77895         * lib/argp-fmtstream.h: New file, from glibc.
77896         * lib/argp-fs-xinl.c: New file, from glibc.
77897         * lib/argp-help.c: New file, from glibc.
77898         * lib/argp-namefrob.h: New file, from glibc.
77899         * lib/argp-parse.c: New file, from glibc.
77900         * lib/argp-pv.c: New file, from glibc.
77901         * lib/argp-pvh.c: New file, from glibc.
77902         * lib/argp-xinl.c: New file, from glibc.
77903
77904 2003-06-10  Simon Josefsson  <jas@extundo.com>
77905
77906         * modules/strchrnul: New file.
77907
77908 2003-06-10  Simon Josefsson  <jas@extundo.com>
77909
77910         * modules/argp: New file.
77911
77912 2003-06-10  Simon Josefsson  <jas@extundo.com>
77913
77914         * m4/strchrnul.m4: New file.
77915
77916 2003-06-10  Simon Josefsson  <jas@extundo.com>
77917
77918         * lib/strchrnul.h: New file.
77919         * lib/strchrnul.c: New file.
77920
77921 2003-06-10  Bruno Haible  <bruno@clisp.org>
77922
77923         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77924
77925 2003-06-07  Karl Berry  <karl@gnu.org>
77926
77927         * config/config.{guess,sub}: update from prep.
77928
77929 2003-06-07  Jim Meyering  <jim@meyering.net>
77930
77931         * modules/strtod: Use $(...) notation, not @...@ for
77932         AC_REPLACE'd variables.
77933         * modules/localcharset: Likewise.
77934
77935 2003-06-07  Jim Meyering  <jim@meyering.net>
77936
77937         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77938         in place of my name in the copyright comment.
77939         Remove definition and uses of __P.
77940
77941         From coreutils.
77942         * lib/stat.c: Don't declare xmalloc explicitly.
77943         Instead, include "xalloc.h".
77944         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77945         xrealloc, and xcalloc return values.
77946         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77947         Improve comment.
77948         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77949
77950 2003-06-07  Bruno Haible  <bruno@clisp.org>
77951
77952         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77953         avoid AC_CONFIG_LINKS.
77954         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77955         fnmatch.h, to avoid AC_CONFIG_LINKS.
77956         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77957
77958 2003-06-07  Bruno Haible  <bruno@clisp.org>
77959
77960         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77961         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77962         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77963         directory.
77964         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77965         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77966         directory.
77967
77968 2003-06-06  Jim Meyering  <jim@meyering.net>
77969
77970         Merge from coreutils.
77971         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77972         Consolidate declarations and initializations of *_base* locals.
77973
77974         Merge from coreutils.
77975         This avoids a core dump on systems without GNU putenv,
77976         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77977         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77978         (unsetenv): New static function, from GNU libc.
77979         (rpl_putenv): Use it.
77980
77981         * lib/modechange.c: Remove trailing blanks.
77982
77983         Merge from coreutils.
77984         * lib/fsusage.c: Remove declaration of statfs.
77985         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77986
77987         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77988
77989 2003-06-06  Jim Meyering  <jim@meyering.net>
77990
77991         * lib/stdbool_.h: Renamed from stdbool.h.in.
77992
77993 2003-06-06  Jim Meyering  <jim@meyering.net>
77994             Bruno Haible  <bruno@clisp.org>
77995
77996         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77997         Adjust Makefile.am snippet not to redirect directly to target.
77998         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77999
78000 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78001
78002         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78003         mismatch, look in future quarters as well as past.  This fixes a
78004         bug when processing fall-backwards gaps immediately after a long
78005         period of daylight-saving time.
78006
78007         * lib/mktime.c: Assume freestanding C89 or better.
78008         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78009         (__P): Remove; not used.
78010         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78011         (mktime, not_equal_tm, print_tm, check_result,
78012         main): Use prototypes.  Use const * where appropriate.
78013         (main): Fix typo in testing code that uncovered by above changes.
78014         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78015
78016 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78017
78018         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78019         locale.h, localeconv.  This merges changes from coreutils.
78020
78021         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78022         It can be removed after the next Autoconf is released.
78023         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78024         needed.
78025
78026 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78027
78028         * lib/mktime.c: Fix Debian bug 177940
78029         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78030         (localtime_offset): Now long int, not time_t, because we want it
78031         to be guaranteed to be signed.  All uses changed.
78032         (__mktime_internal): If overflow would occur when adding offset,
78033         don't add it.
78034
78035         Merge 'human' changes from coreutils.  Rewrite to support
78036         locale-specific notations like thousands separators.
78037         * lib/human.c: Simplify authorship notice.
78038         Include human.h immediately after config.h.
78039         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78040         <limits.h>: Do not include, since human.h does.
78041         (SIZE_MAX, UINTMAX_MAX): New macros.
78042         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78043         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78044         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78045         (power_letter): Renamed from suffixes.
78046         (generate_suffix_backwards): Remove.
78047         (adjust_value): Now takes int style (because of human.h changes)
78048         and long double value (for greater precision on some platforms).
78049         (group_number): New function.
78050         (human_readable): Use it.  Use integer options, not enum.
78051         Put the options before the sizes in the arg list.
78052         Support all the new options.
78053         The old human_readable function has been removed;
78054         use inttostr.h instead.
78055         (human_readable, default_block_size, humblock):
78056         Use uintmax_t, not int, for block sizes.
78057         (human_readable_inexact, block_size_types): Remove.
78058         (block_size_opts): New constant.
78059         (human_options): Renamed from human_block_size, with new signature
78060         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78061         * lib/human.h: Add copyright and authorship notice.
78062         Include <limits.h> and <stdbool.h> unconditionally.
78063         (PARAMS): Remove.  All uses removed.
78064         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78065         (enum human_inexact_style): Remove tag; now a nameless enum.
78066         (human_floor, human_ceiling, human_round_to_even): Now have
78067         values 2, 0, 1 rather than -1, 1, 0.
78068         (human_group_digits, human_suppress_point_zero, human_autoscale,
78069         human_base_1024, human_SI, human_B): New constants.
78070         (human_readable_inexact, human_block_size): Remove.
78071         (human_readable): Size args are now uintmax_t, not int.
78072         (human_options): New decl.
78073
78074         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78075         unnecessary now that we assume C89 or better.  This change
78076         imported from coreutils.
78077
78078         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78079         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78080         in the 2003-05-30 sync from glibc.
78081
78082         .h files should stand alone, but we shouldn't include <sys/types.h>
78083         if we can get away with just <stddef.h>.
78084
78085         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78086         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78087         rather than <sys/types.h>, as we merely need size_t.
78088         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78089         to get size_t.
78090         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78091         Include <stdio.h>, to get FILE.
78092         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78093         memcasecmp.h has included <stddef.h> and all we need is size_t.
78094         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78095         our interface, instead of including <sys/types.h>
78096
78097 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78098
78099         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78100         now, as glibc mktime is buggy on non-glibc systems.
78101
78102 2003-06-03  Karl Berry  <karl@gnu.org>
78103
78104         * config/config.sub: update from prep.
78105
78106 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78107
78108         [from coreutils]
78109         Fix some minor time-related bugs with POSIX time arguments.
78110         Some valid time stamps were being rejected (notably -1, and
78111         time stamps before 1900 on 64-bit hosts).  And some invalid
78112         time stamps were being accepted, e.g. September 31.
78113
78114         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78115         that we can return (time_t) -1 successfully.
78116         * lib/posixtm.c: Likewise.
78117         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78118         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78119         (t): Remove static var.
78120         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78121         of static var.  All uses changed.
78122         (year): Do not reject years before 1900; they can occur with
78123         64-bit time_t.
78124         (posix_time_parse): Do not check for out-of-range components;
78125         that is now the caller's responsibility, since our checks were
78126         only approximations.
78127         (posixtime): Use mktime to check for out-of-range components,
78128         since it knows them exactly.
78129         If mktime returns (time_t) -1, check whether an error actually occurred
78130         by invoking localtime on -1.
78131         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78132         posixtime failures better.
78133         Improve the test data (in comments only).
78134
78135 2003-06-02  Karl Berry  <karl@gnu.org>
78136
78137         * config/mkinstalldirs (version): new variable.
78138         (--version): new option.
78139         (usage): improve message.
78140
78141 2003-05-30  Karl Berry  <karl@gnu.org>
78142
78143         * lib/mktime.c: update from libc.
78144
78145 2003-05-30  Bruno Haible  <bruno@clisp.org>
78146
78147         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78148         * config/config.rpath: Upgrade to gettext-0.12.1.
78149
78150 2003-05-30  Bruno Haible  <bruno@clisp.org>
78151
78152         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78153         * m4/nls.m4: New file, from gettext-0.12.1.
78154         * m4/po.m4: New file, from gettext-0.12.1.
78155         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78156
78157 2003-05-30  Bruno Haible  <bruno@clisp.org>
78158
78159         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78160         * lib/localcharset.h: Likewise.
78161         * lib/localcharset.c: Likewise.
78162
78163 2003-05-29  Karl Berry  <karl@gnu.org>
78164
78165         * config/config.rpath: update from gettext.
78166
78167 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78168
78169         Assume the headers required for C89 freestanding compilers.
78170         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78171         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78172         * m4/human.m4 (gl_HUMAN): Likewise.
78173         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78174         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78175         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78176         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78177         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78178         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78179
78180 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78181
78182         Assume the headers required for C89 freestanding compilers.
78183         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78184         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78185         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78186         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78187         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78188         define, since <limits.h> is guaranteed to do that.
78189         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78190         * lib/exclude.c: Include <stdbool.h> unconditionally.
78191         * lib/tempname.c: Include <stddef.h> unconditionally.
78192         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78193         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78194         <stddef.h> does that.
78195         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78196         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78197         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78198         needed.
78199         * lib/xstrtol.c: Likewise.
78200         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78201         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78202
78203         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78204         warnings on some platforms.
78205
78206         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78207         arbitrarily.
78208
78209 2003-05-26  Jim Meyering  <jim@meyering.net>
78210
78211         Merge in a change from coreutils:
78212         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78213         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78214         that condition, rather than `-1' which is slightly misleading.
78215         Change the name of the cache variable to have the gl_ prefix.
78216         Prompted by a patch from Richard Dawe for DJGPP.
78217
78218 2003-05-24  Karl Berry  <karl@gnu.org>
78219
78220         * config/config.guess: update from prep.
78221
78222 2003-05-22  Karl Berry  <karl@gnu.org>
78223
78224         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78225
78226 2003-05-20  Karl Berry  <karl@gnu.org>
78227
78228         * config/config.guess: update from prep.
78229
78230 2003-05-18  Karl Berry  <karl@gnu.org>
78231
78232         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78233         might actually be set by the user.
78234
78235         * config/depcomp, install-sh, mdate-sh: update from automake.
78236
78237 2003-05-17  Bruno Haible  <bruno@clisp.org>
78238
78239         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78240         invalid expansion for AC_EGREP_CPP.
78241         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78242         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78243         Suggested by Akim Demaille <akim@epita.fr> in
78244         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78245
78246 2003-05-12  Jim Meyering  <jim@meyering.net>
78247
78248         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78249         the space-padded-by-default conversion specifiers, %e, %k, %l.
78250
78251 2003-05-12  Bruno Haible  <bruno@clisp.org>
78252
78253         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78254         the string is longer than 4 KB.
78255
78256 2003-05-11  Karl Berry  <karl@gnu.org>
78257
78258         * config/config.{guess,sub}: update from prep.
78259
78260 2003-05-09  Bruno Haible  <bruno@clisp.org>
78261
78262         * modules/error: Add m4/strerror_r.m4 to file list.
78263
78264 2003-05-03  Bruno Haible  <bruno@clisp.org>
78265
78266         Upgrade to Unicode-4.0.
78267         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78268         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78269         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78270         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78271         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78272         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78273         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78274         Change width of U+E0100..U+E01EF from 1 to 0.
78275
78276 2003-04-25  Jim Meyering  <jim@meyering.net>
78277
78278         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78279         of type size_t, not int.
78280
78281 2003-04-25  Bruno Haible  <bruno@clisp.org>
78282
78283         * lib/copy-file.c: Include <stddef.h>, for size_t.
78284
78285 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78286
78287         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78288         code which expansion is under static control.  Patch imported from
78289         Akim Demaille's patch to Bison; see
78290         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78291
78292 2003-04-14  Bruno Haible  <bruno@clisp.org>
78293
78294         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78295
78296 2003-04-11  Jim Meyering  <jim@meyering.net>
78297
78298         Merge changes from Coreutils.
78299
78300         2003-03-22  Jim Meyering  <jim@meyering.net>
78301
78302         * lib/strftime.c (widen): Cast alloca return value to proper type.
78303
78304         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78305
78306         From GNU libc.
78307         * lib/strftime.c (my_strftime): Handle very large width
78308         specifications for numeric values correctly.  Improve checks for
78309         overflow.
78310
78311         2003-01-19  Jim Meyering  <jim@meyering.net>
78312
78313         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78314         definitions.
78315         (nl_get_alt_digit) [! defined my_strftime]: Define.
78316         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78317         _nl_get_alt_digit and _nl_get_walt_digit.
78318
78319         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78320         libc. These changes have no effect outside of _LIBC.
78321
78322 2003-04-10  Bruno Haible  <bruno@clisp.org>
78323
78324         * modules/findprog: New file.
78325         * MODULES.html.sh (func_all_modules): Add it.
78326
78327 2003-04-10  Bruno Haible  <bruno@clisp.org>
78328
78329         * m4/findprog.m4: New file.
78330         * m4/eaccess.m4: New file.
78331
78332 2003-04-10  Bruno Haible  <bruno@clisp.org>
78333
78334         * lib/findprog.h: New file, from GNU gettext.
78335         * lib/findprog.c: New file, from GNU gettext.
78336
78337 2003-04-05  Jim Meyering  <jim@meyering.net>
78338
78339         Merge changes from Coreutils.
78340
78341         * lib/exclude.h (PARAMS): Remove definition and uses.
78342         * lib/exclude.c: Remove uses of `PARAMS'.
78343
78344         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78345         Add test-cases for DOS filenames. Declare program_name.
78346         (main): Set up program_name.  Patch by Rich Dawe.
78347
78348         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78349         error from mntctl.
78350         Use mntctl's return value to drive the entry-processing loop, since
78351         we can't rely on the value of the vmt_length member in the last
78352         entry.  On some systems doing so could result in exhausting
78353         virtual memory.  Based in part on a patch from Mike Jetzer.
78354
78355 2003-04-04  Bruno Haible  <bruno@clisp.org>
78356
78357         * modules/linebreak: New file.
78358         * MODULES.html.sh (func_all_modules): Add it.
78359
78360 2003-04-04  Bruno Haible  <bruno@clisp.org>
78361
78362         * m4/linebreak.m4: New file.
78363
78364 2003-04-04  Bruno Haible  <bruno@clisp.org>
78365
78366         * lib/linebreak.h: New file, from GNU gettext.
78367         * lib/linebreak.c: New file, from GNU gettext with slight
78368         modifications.
78369         * lib/lbrkprop.h: New file, from GNU gettext.
78370
78371 2003-04-03  Bruno Haible  <bruno@clisp.org>
78372
78373         * modules/utf8-ucs4: New file.
78374         * modules/utf16-ucs4: New file.
78375         * modules/ucs4-utf8: New file.
78376         * modules/ucs4-utf16: New file.
78377         * MODULES.html.sh (func_all_modules): Add them.
78378
78379 2003-04-03  Bruno Haible  <bruno@clisp.org>
78380
78381         * m4/utf-ucs4.m4: New file.
78382         * m4/ucs4-utf.m4: New file.
78383
78384 2003-04-03  Bruno Haible  <bruno@clisp.org>
78385
78386         * lib/utf8-ucs4.h: New file, from GNU gettext.
78387         * lib/utf16-ucs4.h: New file, from GNU gettext.
78388         * lib/ucs4-utf8.h: New file, from GNU gettext.
78389         * lib/ucs4-utf16.h: New file, from GNU gettext.
78390
78391 2003-04-02  Bruno Haible  <bruno@clisp.org>
78392
78393         * modules/binary-io: New file.
78394         * MODULES.html.sh (func_all_modules): Add it.
78395
78396 2003-04-02  Bruno Haible  <bruno@clisp.org>
78397
78398         * lib/binary-io.h: New file, from GNU gettext.
78399
78400 2003-04-01  Bruno Haible  <bruno@clisp.org>
78401
78402         * modules/pathname: New file.
78403         * MODULES.html.sh (func_all_modules): Add it.
78404
78405 2003-04-01  Bruno Haible  <bruno@clisp.org>
78406
78407         * lib/pathname.h: New file, from GNU gettext.
78408         * lib/concatpath.c: New file, from GNU gettext.
78409
78410 2003-03-30  Bruno Haible  <bruno@clisp.org>
78411
78412         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78413
78414 2003-03-30  Bruno Haible  <bruno@clisp.org>
78415
78416         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78417         function chown() doesn't exist.
78418
78419 2003-03-28  Bruno Haible  <bruno@clisp.org>
78420
78421         * modules/copy-file: New file.
78422         * MODULES.html.sh (func_all_modules): Add it.
78423
78424 2003-03-28  Bruno Haible  <bruno@clisp.org>
78425
78426         * m4/copy-file.m4: New file.
78427
78428 2003-03-28  Bruno Haible  <bruno@clisp.org>
78429
78430         * lib/copy-file.h: New file, from GNU gettext.
78431         * lib/copy-file.c: New file, from GNU gettext.
78432
78433 2003-03-18  Jim Meyering  <jim@meyering.net>
78434
78435         * lib/quote.c (quote_n): Fix typo in comment.
78436
78437 2003-03-18  Bruno Haible  <bruno@clisp.org>
78438
78439         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78440         checking.
78441         * m4/onceonly_2_57.m4: Likewise.
78442
78443 2003-03-17  Bruno Haible  <bruno@clisp.org>
78444
78445         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78446         (m4_quote): Remove macro.
78447         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78448
78449 2003-03-14  Jim Meyering  <jim@meyering.net>
78450
78451         Merge changes from Coreutils.
78452         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78453         to be const, in order to avoid warnings.
78454         (obstack_room): Likewise.
78455         (obstack_empty_p): Likewise.
78456
78457 2003-03-14  Bruno Haible  <bruno@clisp.org>
78458
78459         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78460         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78461
78462 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78463
78464         Merge changes from Bison.
78465         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78466         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78467         when compiling Bison 1.875's `bitset bset = obstack_alloc
78468         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78469         * lib/hash.c: Include <stdbool.h> unconditionally.
78470
78471 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78472
78473         * m4/onceonly.m4 (m4_quote): New macro.
78474         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78475         Quote AC_FOREACH variable-expansions properly.
78476
78477 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78478
78479         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78480
78481 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78482
78483         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78484         Reported by Bruce Becker; see:
78485         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78486
78487 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78488             Bruno Haible  <bruno@clisp.org>
78489
78490         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78491         Reported by John Hughes, see
78492         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78493
78494 2003-02-20  Bruno Haible  <bruno@clisp.org>
78495
78496         * MODULES.html.sh (func_all_modules): Add poll.
78497
78498 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78499
78500         * modules/poll: New file.
78501
78502 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78503
78504         * lib/poll_.h: New file.
78505         * lib/poll.c: New file.
78506
78507 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78508
78509         * m4/poll.m4: New file.
78510
78511 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78512
78513         * modules/mathl: New file.
78514
78515 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78516
78517         * lib/mathl.h: New file.
78518         * lib/acosl.c: New file.
78519         * lib/asinl.c: New file.
78520         * lib/atanl.c: New file.
78521         * lib/ceill.c: New file.
78522         * lib/cosl.c: New file.
78523         * lib/expl.c: New file.
78524         * lib/floorl.c: New file.
78525         * lib/frexpl.c: New file.
78526         * lib/ldexpl.c: New file.
78527         * lib/logl.c: New file.
78528         * lib/sincosl.c: New file.
78529         * lib/sinl.c: New file.
78530         * lib/sqrtl.c: New file.
78531         * lib/tanl.c: New file.
78532         * lib/trigl.c: New file.
78533         * lib/trigl.h: New file.
78534
78535 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78536
78537         * m4/mathl.m4: New file.
78538
78539 2003-02-18  Bruno Haible  <bruno@clisp.org>
78540
78541         * MODULES.html.sh (func_all_modules): Add mathl.
78542
78543 2003-02-17  Bruno Haible  <bruno@clisp.org>
78544
78545         * modules/mkdtemp: New module.
78546         * MODULES.html.sh (func_all_modules): Add it.
78547
78548 2003-02-17  Bruno Haible  <bruno@clisp.org>
78549
78550         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78551
78552 2003-02-17  Bruno Haible  <bruno@clisp.org>
78553
78554         * lib/mkdtemp.h: New file, from GNU gettext.
78555         * lib/mkdtemp.c: New file, from GNU gettext.
78556
78557 2003-02-02  Jim Meyering  <jim@meyering.net>
78558
78559         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78560         e.g. glibc-2.2.93.
78561
78562 2003-01-31  Bruno Haible  <bruno@clisp.org>
78563
78564         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78565         'rpl_rename'.
78566         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78567         'rpl_strnlen'.
78568         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78569         'rpl_strtod'.
78570         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78571         'rpl_utime'.
78572
78573 2003-01-31  Bruno Haible  <bruno@clisp.org>
78574
78575         * lib/rename.c: #undef rename before defining rpl_rename.
78576         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78577
78578 2003-01-30  Bruno Haible  <bruno@clisp.org>
78579
78580         * modules/vasnprintf, modules/vasprintf: New modules.
78581         * MODULES.html.sh (func_all_modules): Add them.
78582
78583 2003-01-30  Bruno Haible  <bruno@clisp.org>
78584
78585         * m4/signed.m4: New file, from GNU gettext.
78586         * m4/longdouble.m4: New file, from GNU gettext.
78587         * m4/wchar_t.m4: New file, from GNU gettext.
78588         * m4/wint_t.m4: New file, from GNU gettext.
78589         * m4/vasnprintf.m4: New file.
78590         * m4/vasprintf.m4: New file.
78591
78592 2003-01-30  Bruno Haible  <bruno@clisp.org>
78593
78594         * lib/printf-args.h: New file, from GNU gettext.
78595         * lib/printf-args.c: New file, from GNU gettext.
78596         * lib/printf-parse.h: New file, from GNU gettext.
78597         * lib/printf-parse.c: New file, from GNU gettext.
78598         * lib/vasnprintf.h: New file, from GNU gettext.
78599         * lib/vasnprintf.c: New file, from GNU gettext.
78600         * lib/asnprintf.c: New file, from GNU gettext.
78601         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78602         * lib/vasprintf.c: New file, from GNU gettext.
78603         * lib/asprintf.c: New file, from GNU gettext.
78604
78605 2003-01-29  Bruno Haible  <bruno@clisp.org>
78606
78607         * modules/stpncpy: New module.
78608         * MODULES.html.sh (func_all_modules): Add it.
78609
78610 2003-01-29  Bruno Haible  <bruno@clisp.org>
78611
78612         * m4/stpncpy.m4: New file.
78613
78614 2003-01-29  Bruno Haible  <bruno@clisp.org>
78615
78616         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78617         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78618
78619 2003-01-28  Bruno Haible  <bruno@clisp.org>
78620
78621         * modules/c-ctype: New module.
78622         * MODULES.html.sh (func_all_modules): Add it.
78623
78624 2003-01-28  Bruno Haible  <bruno@clisp.org>
78625
78626         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78627         Paul Eggert.
78628         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78629         Paul Eggert.
78630
78631 2003-01-27  Bruno Haible  <bruno@clisp.org>
78632
78633         * modules/xsetenv: New module.
78634         * MODULES.html.sh (func_all_modules): Add it.
78635
78636 2003-01-27  Bruno Haible  <bruno@clisp.org>
78637
78638         * lib/xsetenv.h: New file, from GNU gettext.
78639         * lib/xsetenv.c: New file, from GNU gettext.
78640
78641 2003-01-23  Jim Meyering  <jim@meyering.net>
78642
78643         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78644         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78645
78646 2003-01-23  Bruno Haible  <bruno@clisp.org>
78647
78648         * modules/minmax: New module.
78649         * MODULES.html.sh (func_all_modules): Add it.
78650
78651 2003-01-23  Bruno Haible  <bruno@clisp.org>
78652
78653         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78654         Eggert.
78655
78656 2003-01-22  Bruno Haible  <bruno@clisp.org>
78657
78658         * modules/exit: New module.
78659         * MODULES.html.sh (func_all_modules): Add it.
78660
78661 2003-01-22  Bruno Haible  <bruno@clisp.org>
78662
78663         * lib/exit.h: New file, from GNU gettext.
78664
78665 2003-01-19  Bruno Haible  <bruno@clisp.org>
78666
78667         * gnulib-tool: Recognize option --extract-maintainer.
78668         (func_get_maintainer): New function.
78669         * modules/*: Add Maintainer entry.
78670
78671 2003-01-16  Jim Meyering  <jim@meyering.net>
78672
78673         * m4/regex.m4: The `regex' struct is both input and output.
78674         Initialize it before each use.  Patch by Tim Waugh.
78675
78676 2003-01-16  Bruno Haible  <bruno@clisp.org>
78677
78678         * MODULES.html.sh: Add a table of contents. Add the module name as
78679         leftmost column. Add hyperlinks.
78680
78681 2003-01-15  Bruno Haible  <bruno@clisp.org>
78682
78683         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78684
78685 2003-01-15  Bruno Haible  <bruno@clisp.org>
78686
78687         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78688         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78689         suffix.
78690
78691 2003-01-15  Bruno Haible  <bruno@clisp.org>
78692
78693         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78694
78695 2003-01-15  Bruno Haible  <bruno@clisp.org>
78696
78697         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78698         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78699
78700 2003-01-14  Jim Meyering  <jim@meyering.net>
78701
78702         * lib/same.c (same_name): Tweak a comment.
78703
78704 2003-01-14  Bruno Haible  <bruno@clisp.org>
78705
78706         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78707         when a string comparison is sufficient.
78708
78709 2003-01-14  Bruno Haible  <bruno@clisp.org>
78710
78711         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78712         'unsigned int'.
78713
78714 2003-01-14  Bruno Haible  <bruno@clisp.org>
78715
78716         * lib/hash-pjw.c: Add comment about low quality of this function.
78717
78718 2003-01-13  Bruno Haible  <bruno@clisp.org>
78719
78720         * modules/stpcpy: Distribute lib/stpcpy.h.
78721         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78722
78723 2003-01-13  Bruno Haible  <bruno@clisp.org>
78724
78725         * modules/*: Add a description.
78726         * modules/strpbrk: Fix Makefile.am snippet.
78727         * modules/strtoimax: Fix dependencies.
78728         * modules/strtoumax: Likewise.
78729
78730 2003-01-13  Bruno Haible  <bruno@clisp.org>
78731
78732         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78733         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78734         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78735
78736 2003-01-13  Bruno Haible  <bruno@clisp.org>
78737
78738         * gnulib-tool (func_create_testdir): Store config/* files in the main
78739         directory.
78740         * config.rpath: Move to ...
78741         * config/config.rpath: ... here.
78742         * modules/gettext: Contains config/config.rpath, not config.rpath.
78743         * modules/iconv: Likewise.
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         * m4/getstr.m4: Remove.
78751         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78752
78753 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78754
78755         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78756         to avoid collisions with libcurses and libreadline.
78757
78758         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78759         * lib/getstr.h, getstr.c: Remove.
78760         * lib/getline.c: Include "getline.h", to check interface.
78761         Move body of old getstr.c here: this defines MIN_CHUNK and
78762         declares getdelim2, which is renamed from getstr.
78763         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78764
78765         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78766         All uses changed.
78767         * lib/linebuffer.h: Likewise.
78768         (readline): Remove backward-compatibility macro.
78769
78770 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78771
78772         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78773         to avoid collisions with libcurses and libreadline.
78774         * getstr: Remove.
78775         * MODULES.html.sh: Remove getstr.
78776         * modules/getline: Depend on unlocked-io, not getstr.
78777
78778 2003-01-12  Jim Meyering  <jim@meyering.net>
78779
78780         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78781
78782 2003-01-10  Bruno Haible  <bruno@clisp.org>
78783
78784         * modules/alloca: Change Makefile.am requirements. Simplify Include
78785         requirements. Add lib/alloca_.h to file list.
78786
78787 2003-01-10  Bruno Haible  <bruno@clisp.org>
78788
78789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78790
78791 2003-01-10  Bruno Haible  <bruno@clisp.org>
78792
78793         * lib/alloca_.h: New file.
78794         * lib/getdate.y: Unconditionally include alloca.h.
78795         * lib/makepath.c: Likewise.
78796         * lib/setenv.c: Likewise.
78797         * lib/userspec.c: Likewise.
78798
78799 2003-01-09  Karl Berry  <karl@gnu.org>
78800
78801         * MODULES.html.sh: include `dirname $0` in PATH, to find
78802         gnulib-tool.
78803
78804 2003-01-09  Bruno Haible  <bruno@clisp.org>
78805
78806         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78807         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78808
78809 2003-01-09  Bruno Haible  <bruno@clisp.org>
78810
78811         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78812
78813 2003-01-09  Bruno Haible  <bruno@clisp.org>
78814
78815         * lib/stdbool.h.in: New file.
78816
78817 2003-01-09  Bruno Haible  <bruno@clisp.org>
78818
78819         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78820         * MODULES.html.sh: Likewise.
78821
78822 2003-01-08  Jim Meyering  <jim@meyering.net>
78823
78824         * lib/full-write.c: Undefine and define-away `const' after inclusion
78825         of errno.h, not before.  Suggestion from Bruno Haible.
78826
78827 2003-01-08  Bruno Haible  <bruno@clisp.org>
78828
78829         * modules/full-read: Depend on full-write.
78830
78831 2003-01-08  Bruno Haible  <bruno@clisp.org>
78832
78833         * lib/safe-read.c: Include specification header first, to ensure its
78834         selfcontainedness.
78835         * lib/full-write.c: Likewise.
78836
78837 2003-01-07  Jim Meyering  <jim@meyering.net>
78838
78839         * lib/full-write.c: Rework so that it may serve to define full_read,
78840         too.
78841         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78842
78843 2003-01-07  Bruno Haible  <bruno@clisp.org>
78844
78845         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78846         <inttypes.h>.
78847         * lib/xstrtol.h: Likewise.
78848         * lib/xstrtoimax.c: Likewise.
78849         * lib/xstrtoumax.c: Likewise.
78850         * lib/human.h: Likewise.
78851
78852         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78853         on systems that have <inttypes.h> but not <stdint.h>.
78854
78855 2003-01-07  Bruno Haible  <bruno@clisp.org>
78856
78857         * MODULES.html.sh: Add copyright notice.
78858         (missed_files): Omit CVS directory entries.
78859         (func_module): Make it work with sed-3.02.
78860         * MODULES.txt: Remove file.
78861
78862 2003-01-06  Jim Meyering  <jim@meyering.net>
78863
78864         * lib/version-etc.c: Update year in translatable copyright string.
78865
78866 2003-01-03  Karl Berry  <karl@gnu.org>
78867
78868         * config/config.{guess,sub}: update from prep.
78869
78870 2003-01-02  Karl Berry  <karl@gnu.org>
78871
78872         * doc/COPYING.DOC: belatedly updated to 1.2.
78873
78874 2003-01-01  Karl Berry  <karl@gnu.org>
78875
78876         * gnulib-tool (func_verify_module): report module name $module in
78877         error message, not $1.
78878         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78879         be created, only if it doesn't exist.
78880         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78881
78882 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78883
78884         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78885
78886 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78887
78888         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78889         memcmp if strcoll doesn't work.
78890
78891 2002-12-31  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78894         nonempty.
78895
78896 2002-12-31  Bruno Haible  <bruno@clisp.org>
78897
78898         * lib/memcoll.c (STRCOLL): New macro.
78899         (memcoll): Use it.
78900
78901 2002-12-31  Bruno Haible  <bruno@clisp.org>
78902
78903         * lib/localcharset.h: New file.
78904         * lib/localcharset.c: Include it.
78905         * lib/unicodeio.c: Likewise.
78906
78907 2002-12-31  Bruno Haible  <bruno@clisp.org>
78908
78909         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78910         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78911
78912 2002-12-31  Bruno Haible  <bruno@clisp.org>
78913
78914         * lib/getline.h: Include <stddef.h>, for size_t.
78915
78916         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78917         * lib/unicodeio.c: Don't include <stddef.h>.
78918
78919 2002-12-31  Bruno Haible  <bruno@clisp.org>
78920
78921         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78922         HAVE_TM_ZONE.
78923
78924 2002-12-24  Karl Berry  <karl@gnu.org>
78925
78926         * config/config.guess: update from prep.
78927
78928 2002-12-24  Bruno Haible  <bruno@clisp.org>
78929
78930         General infrasructure.
78931         * m4/README: Rewritten.
78932         * m4/onceonly.m4: New file.
78933         * m4/onceonly_2_57.m4: New file.
78934
78935         Module atexit.
78936         * m4/atexit.m4: New file.
78937
78938         Module strtod.
78939         * m4/strtod.m4: New file.
78940
78941         Module strtol.
78942         * m4/strtol.m4: New file.
78943
78944         Module strtoul.
78945         * m4/strtoul.m4: New file.
78946
78947         Module memchr.
78948         * m4/memchr.m4: New file.
78949
78950         Module memcmp.
78951         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78952         (jm_FUNC_MEMCMP): Invoke it.
78953
78954         Module memcpy.
78955         * m4/memcpy.m4: New file.
78956
78957         Module memmove.
78958         * m4/memmove.m4: New file.
78959
78960         Module memset.
78961         * m4/memset.m4: New file.
78962
78963         Module strcspn.
78964         * m4/strcspn.m4: New file.
78965
78966         Module strpbrk.
78967         * m4/strpbrk.m4: New file.
78968
78969         Module strstr.
78970         * m4/strstr.m4: New file.
78971
78972         Module strerror.
78973         * m4/strerror.m4: New file.
78974
78975         Module mktime.
78976         * m4/mktime.m4: Renamed from jm-mktime.m4.
78977         (gl_PREREQ_MKTIME): New macro.
78978         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78979
78980         Module malloc.
78981         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78982         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78983         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78984
78985         Module realloc.
78986         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78987         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78988         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78989
78990         Module strftime.
78991         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78992         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78993         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78994         gl_TM_GMTOFF.
78995         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78996
78997         Module xalloc.
78998         * m4/xalloc.m4: New file.
78999
79000         Module alloca.
79001         * m4/alloca.m4: New file.
79002
79003         Module putenv.
79004         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79005         (jm_FUNC_PUTENV): Invoke it.
79006
79007         Module setenv.
79008         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79009         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79010         when invoked twice.
79011         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79012         gt_FUNC_SETENV.
79013
79014         Module memrchr.
79015         * m4/memrchr.m4: New file.
79016
79017         Module stpcpy.
79018         * m4/stpcpy.m4: New file.
79019
79020         Module strcase.
79021         * m4/strcase.m4: New file.
79022
79023         Module strdup.
79024         * m4/strdup.m4: New file.
79025
79026         Module strnlen.
79027         * m4/strnlen.m4: New file.
79028
79029         Module strndup.
79030         * m4/strndup.m4: New file.
79031
79032         Module xstrtod.
79033         * m4/xstrtod.m4: New file.
79034
79035         Module xstrtol.
79036         * m4/xstrtol.m4: New file.
79037
79038         Module getdate.
79039         * m4/getdate.m4: New file.
79040
79041         Module unlocked-io.
79042         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79043         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79044         * m4/jm-glibc-io.m4n: Remove file.
79045
79046         Module long-options.
79047         * m4/long-options.m4: New file.
79048
79049         Module md5.
79050         * m4/md5.m4: New file.
79051
79052         Module sha.
79053         * m4/sha.m4: New file.
79054
79055         Module getstr.
79056         * m4/getstr.m4: New file.
79057
79058         Module getline.
79059         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79060         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79061         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79062         simply getline. Infoke gl_PREREQ_GETLINE.
79063
79064         Module obstack.
79065         * m4/obstack.m4: New file.
79066
79067         Module hash.
79068         * m4/hash.m4: New file.
79069
79070         Module readtokens.
79071         * m4/readtokens.m4: New file.
79072
79073         Module strverscmp.
79074         * m4/strverscmp.m4: New file.
79075
79076         Module stdbool.
79077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79078         OSF/1.
79079
79080         Module strtoll.
79081         * m4/strtoll.m4: New file.
79082
79083         Module strtoull.
79084         * m4/strtoull.m4: New file.
79085
79086         Module strtoimax.
79087         * m4/strtoimax.m4: New file.
79088
79089         Module strtoumax.
79090         * m4/strtoumax.m4: New file.
79091
79092         Module xstrtoimax.
79093         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79094         jm_AC_PREREQ_XSTRTOIMAX.
79095         Moved the strtol prerequisites to strtol.m4.
79096         Moved the strtoll prerequisites to strtoll.m4.
79097         Moved the strtoimax prerequisites to strtoimax.m4.
79098
79099         Module xstrtoumax.
79100         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79101         jm_AC_PREREQ_XSTRTOUMAX.
79102         Moved the strtoul prerequisites to strtoul.m4.
79103         Moved the strtoull prerequisites to strtoull.m4.
79104         Moved the strtoumax prerequisites to strtoumax.m4.
79105
79106         Module chown.
79107         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79108         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79109
79110         Module dup2.
79111         * m4/dup2.m4: New file.
79112
79113         Module ftruncate.
79114         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79115         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79116
79117         Module getgroups.
79118         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79119         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79120
79121         Module gettimeofday.
79122         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79123         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79124         gl_PREREQ_GETTIMEOFDAY.
79125
79126         Module mkdir.
79127         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79128         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79129
79130         Module mkstemp.
79131         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79132         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79133         jm_AC_TYPE_UINTMAX_T.
79134         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79135
79136         Module stat.
79137         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79138         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79139
79140         Module lstat.
79141         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79142         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79143
79144         Module timespec.
79145         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79146         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79147         * m4/st_mtim.m4: Indentation.
79148
79149         Module nanosleep.
79150         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79151         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79152         gl_PREREQ_NANOSLEEP.
79153
79154         Module regex.
79155         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79156         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79157         (gl_REGEX): New macro.
79158
79159         Module rename.
79160         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79161         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79162
79163         Module rmdir.
79164         * m4/rmdir.m4: New file.
79165
79166         Module utime.
79167         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79168         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79169         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79170
79171         Module dirname.
79172         * m4/dirname.m4: New file.
79173
79174         Module getopt.
79175         * m4/getopt.m4: New file.
79176
79177         Module unistd-safer.
79178         * m4/unistd-safer.m4: New file.
79179
79180         Module fnmatch.
79181         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79182         declaration.
79183         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79184         (gl_FUNC_FNMATCH_POSIX): New macro.
79185         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79186         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79187         simply fnmatch.
79188
79189         Module exclude.
79190         * m4/exclude.m4: New file.
79191
79192         Module human.
79193         * m4/human.m4: New file.
79194
79195         Module acl.
79196         * m4/acl.m4: Nop.
79197
79198         Module backupfile.
79199         * m4/backupfile.m4: New file.
79200         * m4/d-ino.m4: Indentation.
79201
79202         Module fsusage.
79203         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79204         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79205         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79206
79207         Module dirfd.
79208         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79209         requirements.
79210
79211         Module euidaccess.
79212         * m4/euidaccess.m4: New file.
79213
79214         Module file-type.
79215         * m4/file-type.m4: New file.
79216
79217         Module fileblocks.
79218         * m4/fileblocks.m4: New file.
79219
79220         Module filemode.
79221         * m4/filemode.m4: New file.
79222
79223         Module isdir.
79224         * m4/isdir.m4: New file.
79225
79226         Module lchown.
79227         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79228         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79229
79230         Module makepath.
79231         * m4/makepath.m4: New file.
79232
79233         Module modechange.
79234         * m4/modechange.m4: New file.
79235
79236         Module mountlist.
79237         * m4/mountlist.m4: New file.
79238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79239         Indentation.
79240
79241         Module path-concat.
79242         * m4/path-concat.m4: New file.
79243
79244         Module pathmax.
79245         * m4/pathmax.m4: New file.
79246
79247         Module same.
79248         * m4/same.m4: New file.
79249
79250         Module save-cwd.
79251         * m4/save-cwd.m4: New file.
79252
79253         Module savedir.
79254         * m4/savedir.m4: New file.
79255
79256         Module xgetcwd.
79257         * m4/xgetcwd.m4: New file.
79258         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79259
79260         Module xreadlink.
79261         * m4/xreadlink.m4: New file.
79262
79263         Module safe-read.
79264         * m4/safe-read.m4: New file.
79265
79266         Module safe-write.
79267         * m4/safe-write.m4: New file.
79268
79269         Module closeout.
79270         * m4/closeout.m4: New file.
79271
79272         Module stdio-safer.
79273         * m4/stdio-safer.m4: New file.
79274
79275         Module getpass.
79276         * m4/getpass.m4: New file.
79277
79278         Module getugroups.
79279         * m4/getugroups.m4: New file.
79280
79281         Module group-member.
79282         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79283         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79284
79285         Module idcache.
79286         * m4/idcache.m4: New file.
79287
79288         Module userspec.
79289         * m4/userspec.m4: New file.
79290
79291         Module gettime.
79292         * m4/clock_time.m4: New file.
79293         * m4/gettime.m4: New file.
79294
79295         Module settime.
79296         * m4/settime.m4: New file.
79297
79298         Module posixtm.
79299         * m4/posixtm.m4: New file.
79300
79301         Module gethostname.
79302         * m4/gethostname.m4: New file.
79303
79304         Module canon-host.
79305         * m4/canon-host.m4: New file.
79306
79307         Module gettext.
79308         * m4/codeset.m4: New file, from gettext-0.11.5.
79309         * m4/gettext.m4: New file, from gettext-0.11.5.
79310         * m4/glibc21.m4: New file, from gettext-0.11.5.
79311         * m4/iconv.m4: New file, from gettext-0.11.5.
79312         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79313         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79314         * m4/inttypes.m4: New file, from gettext-0.11.5.
79315         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79316         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79317         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79318         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79319         * m4/lib-link.m4: New file, from gettext-0.11.5.
79320         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79321         * m4/progtest.m4: New file, from gettext-0.11.5.
79322         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79323         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79324         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79325
79326         Module localcharset.
79327         * m4/localcharset.m4: New file.
79328
79329         Module hard-locale.
79330         * m4/hard-locale.m4: New file.
79331
79332         Module mbswidth.
79333         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79334         onceonly macros.
79335         * m4/mbrtowc.m4: Add comment.
79336
79337         Module memcasecmp.
79338         * m4/memcasecmp.m4: New file.
79339
79340         Module memcoll.
79341         * m4/memcoll.m4: New file.
79342
79343         Module unicodeio.
79344         * m4/unicodeio.m4: New file.
79345
79346         Module rpmatch.
79347         * m4/rpmatch.m4: New file.
79348
79349         Module yesno.
79350         * m4/yesno.m4: New file.
79351
79352         Module exitfail.
79353         * m4/exitfail.m4: New file.
79354
79355         Module c-stack.
79356         * m4/c-stack.m4 (gl_C_STACK): New macro.
79357         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79358
79359         Module error.
79360         * m4/error.m4 (gl_ERROR): New macro.
79361         (jm_PREREQ_ERROR): Use onceonly macros.
79362
79363         Module fatal.
79364         * m4/fatal.m4: New file.
79365
79366         Module getloadavg.
79367         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79368         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79369
79370         Module getpagesize.
79371         * m4/getpagesize.m4: New file.
79372
79373         Module getusershell.
79374         * m4/getusershell.m4: New file.
79375
79376         Module physmem.
79377         * m4/physmem.m4: New file.
79378
79379         Module posixver.
79380         * m4/posixver.m4: New file.
79381
79382         Module quotearg.
79383         * m4/quotearg.m4: New file.
79384
79385         Module quote.
79386         * m4/quote.m4: New file.
79387
79388         Module readutmp.
79389         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79390
79391         Module sig2str.
79392         * m4/sig2str.m4: New file.
79393
79394         Other.
79395         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79396         ulonglong.m4.
79397         * m4/intmax_t.m4: New file.
79398         * m4/d-type.m4: Indentation.
79399         * m4/jm-macros.m4: Update.
79400         * m4/prereq.m4 (jm_PREREQ): Update.
79401         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79402         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79403         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79404         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79405         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79406         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79407         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79408         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79409         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79410         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79411         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79412         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79413         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79414         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79415         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79416         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79417         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79418         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79419         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79420
79421 2002-12-24  Bruno Haible  <bruno@clisp.org>
79422
79423         * MODULES.txt: Update according to m4/ changes.
79424
79425         Module gettext.
79426         * config.rpath: New file, from gettext-0.11.5.
79427
79428         * modules/*: New module descriptions.
79429         * gnulib-tool: New file.
79430         * MODULES.html.sh: New file.
79431
79432 2002-12-21  Karl Berry  <karl@gnu.org>
79433
79434         * doc/fdl.texi: update to version 1.2.
79435
79436 2002-12-19  Karl Berry  <karl@gnu.org>
79437
79438         * config/config.guess: update from prep.
79439
79440 2002-12-18  Bruno Haible  <bruno@clisp.org>
79441
79442         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79443         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79444
79445 2002-12-17  Bruno Haible  <bruno@clisp.org>
79446
79447         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79448         stdlib.h, string.h.
79449
79450 2002-12-17  Bruno Haible  <bruno@clisp.org>
79451
79452         * lib/canon-host.c (strdup): Remove unused declaration.
79453
79454         * lib/fsusage.c: Include full_read.h.
79455         (get_fs_usage): Use full_read instead of safe_read.
79456
79457         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79458
79459 2002-12-12  Karl Berry  <karl@gnu.org>
79460
79461         * config/config.guess: update from prep.
79462
79463 2002-12-11  Bruno Haible  <bruno@clisp.org>
79464
79465         * m4/setenv.m4: New file, from gettext-0.11.5.
79466
79467 2002-12-11  Bruno Haible  <bruno@clisp.org>
79468
79469         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79470         not unsetenv().
79471         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79472         modifications:
79473
79474         2002-12-11  Bruno Haible  <bruno@clisp.org>
79475
79476                 * setenv.c (alloca): Fall back to malloc.
79477                 (freea): New macro.
79478                 (setenv): Use freea() to free memory allocated with alloca().
79479
79480         2002-11-13  Bruno Haible  <bruno@clisp.org>
79481
79482                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79483                 function declarations.
79484                 * unsetenv.c (unsetenv): Likewise.
79485
79486         2002-03-04  Bruno Haible  <bruno@clisp.org>
79487
79488                 Portability to AIX 4.3.3.
79489                 * unsetenv.c: New file, extracted from setenv.c.
79490                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79491
79492         2001-12-20  Bruno Haible  <bruno@clisp.org>
79493
79494                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79495                 use malloc instead. For SunOS 4.
79496
79497         2001-12-11  Bruno Haible  <bruno@clisp.org>
79498
79499                 * setenv.c: Declare alloca.
79500                 (compar_fn_t): New typedef.
79501                 (KNOWN_VALUE, STORE_VALUE): Use it.
79502
79503         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79504         setenv.h.
79505
79506 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79507
79508         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79509         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79510         Choose values that are less likely to collide with system fnmatch
79511         options.
79512         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79513         defined (e.g., a pure POSIX system).
79514         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79515         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79516
79517 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79518
79519         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79520         a pain in practice to deal with generated m4 files.  This change
79521         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79522
79523         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79524         and jm-glibc-io.m4, as they are no longer a special case.
79525         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79526         kludge and the auto-generation stuff.  Check only whether the
79527         functions are declared, not whether they exist, since older hosts
79528         that don't declare the functions can't use the optimization anyway.
79529
79530 2002-12-06  Jim Meyering  <jim@meyering.net>
79531
79532         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79533
79534         Merge in changes from libc's misc/error.c, in preparation
79535         for the merge of gnulib's changes back into libc.
79536
79537         * lib/error.c (_): Define only if not already defined.
79538         Move definition to follow all #include directives.
79539         Include unlocked-io.h only if !_LIBC.
79540         [_LIBC]: Include <libio/libioP.h>.
79541         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79542         (fflush): Tweak definition to use INTUSE.
79543         (putc): Define.
79544
79545 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79546
79547         * lib/alloca.c [defined emacs]: Include "lisp.h".
79548         (xalloc_die) [defined emacs]: New macro.
79549         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79550         [! defined emacs]: Include <xalloc.h>.
79551         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79552         (pointer): Typedef to POINTER_TYPE *.
79553         (malloc): Remove decl; we now always use xmalloc.
79554         (alloca): Use old-style definition, since Emacs needs this.
79555         Check for arithmetic overflow when computing combined size.
79556
79557 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79558
79559         Do not generate unlocked-io.h automatically, since it's easier to
79560         maintain it by hand.
79561
79562         * lib/unlocked-io.h: New file, from GNU diffutils,
79563         but with proper copyright notice and attribution.
79564         * lib/gen-uio: Remove.
79565         * lib/Makefile.am: Add copyright notice.
79566         (libfetish_a_SOURCES): Add unlocked-io.h.
79567         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79568         (DISTCLEANFILES, io_functions): Remove macros.
79569         (EXTRA_DIST): Remove gen_uio.
79570         (unlocked-io.h): Remove rule.
79571
79572 2002-12-04  Jim Meyering  <jim@meyering.net>
79573
79574         Reflect the fact that stat.c and lstat.c are no longer generated.
79575         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79576         (DISTCLEANFILES): Likewise.
79577         (EXTRA_DIST): Likewise.
79578         (all_local): Don't depend on stat.c or lstat.c.
79579         (stat.c, lstat.c): Remove rules.
79580         (EXTRA_DIST): Remove xstat.in.
79581
79582         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79583         * lib/stat.c: New file.  Contents mostly from xstat.in.
79584         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79585         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79586
79587         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79588         too.
79589         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79590
79591 2002-12-03  Jim Meyering  <jim@meyering.net>
79592
79593         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79594         but not semantics, to minimize the differences between these two files.
79595         (safe_read): Change comment to mention SAFE_READ_ERROR.
79596
79597         * lib/safe-read.c (IS_EINTR): Define.
79598         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79599
79600 2002-12-02  Jim Meyering  <jim@meyering.net>
79601
79602         * lib/safe-read.c (EINTR): Define.
79603         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79604         (INT_MAX): Provide fallback.
79605         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79606
79607         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79608
79609 2002-12-02  Bruno Haible  <bruno@clisp.org>
79610
79611         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79612         Define, taken from safe-read.c.
79613         (INT_MAX): Provide fallback.
79614         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79615         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79616
79617         * lib/safe-read.c (EINTR): Remove definition.
79618         (safe_read): Don't use EINTR if it is absent.
79619
79620 2002-12-01  Jim Meyering  <jim@meyering.net>
79621
79622         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79623         zero.
79624         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79625
79626 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79627
79628         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79629         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79630         with `if (! (value < limit)) abort ();', for readability.
79631
79632 2002-11-26  Karl Berry  <karl@gnu.org>
79633
79634         * lib/strdup.c: copy from libc again, with jim's ok.
79635         * lib/.cppi-disable: re-add strdup.c
79636
79637 2002-11-25  Karl Berry  <karl@gnu.org>
79638
79639         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79640         instead of "strtol.c".
79641
79642 2002-11-25  Karl Berry  <karl@gnu.org>
79643
79644         * config/install-sh: update from automake for variable quoting, $0 in
79645         error msgs, etc.
79646
79647         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79648         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79649         entry.
79650
79651 2002-11-25  Jim Meyering  <jim@meyering.net>
79652
79653         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79654
79655 2002-11-24  Karl Berry  <karl@gnu.org>
79656
79657         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79658         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79659
79660 2002-11-24  Jim Meyering  <jim@meyering.net>
79661
79662         Update from coreutils:
79663
79664         * lib/mktime.c: Merge in changes from libc.
79665
79666         Avoid a link-time failure on some Linux systems.
79667         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79668         (otherwise).
79669         (__mon_yday): Declare with the STATIC attribute.
79670         (__mktime_internal): Likewise.
79671         Based on a report from Greg Schafer.
79672
79673 2002-11-23  Jim Meyering  <jim@meyering.net>
79674
79675         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79676         Use `unsigned', not `int', as type of index.
79677
79678         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79679
79680         * lib/fsusage.c: Remove unneeded parentheses around operands of
79681         `defined'.
79682
79683 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79684
79685         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79686         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79687         so that we can be included first.
79688         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79689         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79690         No need to include stddef.h or sys/types.h any more.
79691         Surround local include files with "", not "<>".
79692         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79693         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79694         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79695         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79696         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79697         (ISPRINT): Remove; no longer needed now that we assume C89.
79698
79699         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79700         Preserve errno.
79701
79702         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79703         quotearg_char): Use SIZE_MAX rather than
79704         (size_t) -1 when we are talking about "infinity".
79705
79706         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79707
79708 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79709
79710         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79711         hint that one should use `if (! x) abort ();' rather than `assert
79712         (x);', and anyway it's one less thing to worry about configuring.
79713         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79714         hash_rehash, hash_insert): Use abort rather than assert.
79715
79716 2002-11-22  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/safe-read.h: Assume C89. Add comments.
79719         (safe_read): Change return type to size_t.
79720         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79721         byte counts > SSIZE_MAX correctly.
79722         * lib/safe-write.h: New file.
79723         * lib/safe-write.c: New file.
79724         * lib/full-read.h: New file.
79725         * lib/full-read.c: New file.
79726         * lib/full-write.h: Assume C89. Add comments.
79727         * lib/full-write.c: Include safe-write.h.
79728         (full_write): Rewritten to use safe_write.
79729         Suggested by Jim Meyering and Paul Eggert.
79730
79731 2002-11-21  Jim Meyering  <jim@meyering.net>
79732
79733         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79734
79735         Merge in changes from the coreutils.
79736
79737         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79738         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79739         <stdint.h>.
79740         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79741         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79742         int.  Work more efficiently if X is the same width as uintmax_t.
79743         Do not compare X to -1, to avoid bogus compiler warning.
79744         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79745         Don't assume that f_frsize and f_bsize are the same type.
79746
79747         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79748         warning on FreeBSD.
79749
79750         * lib/makepath.c (make_path): Restore umask *before* creating the final
79751         component.
79752         (make_path): Minor reformatting.
79753
79754         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79755         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79756         HAVE_MALLOC/HAVE_REALLOC.
79757
79758         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79759         dummy ones.  At least on GNU/Linux systems, `auto' means something
79760         else.
79761         From Michael Stone.
79762
79763 2002-11-21  Bruno Haible  <bruno@clisp.org>
79764
79765         Remove case insensitive option matching.
79766         * lib/argmatch.h (argcasematch): Remove declaration.
79767         (ARGCASEMATCH): Remove macro.
79768         (__xargmatch_internal): Remove case_sensitive argument.
79769         (XARGMATCH): Update.
79770         (XARGCASEMATCH): Remove macro.
79771         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79772         case_sensitive argument.
79773         (argcasematch): Remove function.
79774         (__xargmatch_internal): Remove case_sensitive argument.
79775         (main): Use XARGMATCH instead of XARGCASEMATCH.
79776
79777         * lib/xmalloc.c: Change compile-time error message. Add comment about
79778         required autoconf version.
79779
79780 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79781
79782         Merge argmatch cleanups from Bison.  Assume C89.
79783
79784         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79785         Include stdlib.h, for EXIT_FAILURE.
79786         Always include <string.h>, since we assume C89.
79787         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79788         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79789         Include <stddef.h> instead, since it's all we need for size_t.
79790         (PARAMS): Remove.  All uses removed.
79791         (ARRAY_CARDINALITY): Do not bother to #undef.
79792         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79793         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79794         Remove unnecessary parentheses.
79795         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79796         Insert necessary parentheses.
79797         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79798         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79799
79800 2002-11-19  Bruno Haible  <bruno@clisp.org>
79801
79802         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79803         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79804
79805         * lib/mbswidth.h (PARAMS): Remove macro.
79806         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79807         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79808
79809         * lib/gcd.h (PARAMS): Remove macro.
79810         (gcd): Use ANSI C function declarations.
79811         * lib/gcd.c (gcd): Likewise.
79812
79813 2002-11-15  Bruno Haible  <bruno@clisp.org>
79814
79815         * lib/strcspn.c: Include <stddef.h>.
79816         (strcspn): Use ANSI C function declaration. Change return type to
79817         size_t. Use NULL.
79818         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79819         (strpbrk): Use NULL.
79820         * lib/strpbrk.h (PARAMS): Remove macro.
79821         (strpbrk): Use ANSI C function declaration.
79822         * lib/strstr.c: Don't include <sys/types.h>.
79823         * lib/strstr.h (PARAMS): Remove macro.
79824         (strstr): Use ANSI C function declarations.
79825
79826 2002-11-14  Karl Berry  <karl@gnu.org>
79827
79828         * config/mkinstalldirs: `do' on separate line, instead of
79829         `for var; do'.
79830
79831 2002-11-06  Bruno Haible  <bruno@clisp.org>
79832
79833         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79834         * lib/gcd.c (gcd): Likewise.
79835
79836 2002-11-05  Bruno Haible  <bruno@clisp.org>
79837
79838         * lib/gcd.h: New file, from gettext-0.11.5.
79839         * lib/gcd.c: New file, from gettext-0.11.5.
79840
79841 2002-11-05  Bruno Haible  <bruno@clisp.org>
79842
79843         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79844         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79845         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79846         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79847
79848         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79849         <libintl.h>.
79850         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79851         <libintl.h>.
79852
79853         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79854         * lib/human.c: Include gettext.h instead of <libintl.h>.
79855         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79856         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79857         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79858         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79859         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79860         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79861         (textdomain): Remove definition.
79862         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79863
79864         * lib/long-options.c: Remove include of <libintl.h> and definition of
79865         _.
79866         * lib/same.c: Remove include of <libintl.h> and definition of _.
79867
79868 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79869
79870         * lib/config.charset: A few additions for Solaris.
79871
79872 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79873
79874         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79875         * lib/localcharset.c (locale_charset): Declare as extern "C".
79876
79877 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79878
79879         * lib/config.charset: msdos in uk_UA uses CP1125.
79880
79881 2002-11-04  Bruno Haible  <bruno@clisp.org>
79882
79883         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79884         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79885         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79886         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79887         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79888
79889 2002-11-04  Bruno Haible  <bruno@clisp.org>
79890
79891         * lib/localcharset.c (locale_charset): Don't return an empty string.
79892
79893 2002-11-04  Bruno Haible  <bruno@clisp.org>
79894
79895         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79896         aliases.
79897
79898 2002-11-04  Bruno Haible  <bruno@clisp.org>
79899
79900         * lib/config.charset: Update for newest glibc. Add canonical names
79901         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79902
79903 2002-11-04  Bruno Haible  <bruno@clisp.org>
79904
79905         * lib/config.charset: Add support for NetBSD.
79906
79907 2002-11-04  Bruno Haible  <bruno@clisp.org>
79908
79909         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79910
79911 2002-11-01  Bruno Haible  <bruno@clisp.org>
79912
79913         * configure.in: Add AC_CONFIG_AUX_DIR call.
79914         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79915         test/Makefile.
79916         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79917
79918 2002-09-28  Karl Berry  <karl@gnu.org>
79919
79920         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79921         installed automake until the next release, since changes have been
79922         made.
79923
79924 2002-09-25  Karl Berry  <karl@gnu.org>
79925
79926         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79927         * lib/getopt*: copy from libc/posix.
79928         * lib/gettext.h: copy from gettext.
79929         * lib/.cppi-disable: add strdup.c, gettext.h.
79930
79931 2002-09-25  Karl Berry  <karl@gnu.org>
79932
79933         * config/srclist.txt: enable gettext.h check.
79934         * config/config.{guess,sub}: update from prep.
79935         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79936                 from automake 1.6.3.
79937         See srclist*.
79938
79939 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79940
79941         * regex.c (PATFETCH): Remove the translating fetch.
79942         (PATFETCH_RAW): Rename to PATFETCH.
79943         (set_image_of_range): New fun.
79944         (SET_RANGE_TABLE_WORK_AREA): Use it.
79945         (regex_compile): Don't translate the pattern chars so eagerly.
79946         Only do it when inserting an `exactn' bytecode or when handling
79947         a char-range.
79948         (mutually_exclusive_p): Avoid empty statement.
79949
79950 2002-07-06  Jim Meyering  <meyering@lucent.com>
79951
79952         * m4/README: Don't mention Makefile.am.in.
79953         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79954
79955 2002-07-01  Jim Meyering  <meyering@lucent.com>
79956
79957         * lib/c-stack.c: Include sys/time.h.
79958         From Volker Borchert.
79959
79960 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79961
79962         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79963
79964 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79965
79966         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79967         New macro.  Use it uniformly instead of
79968         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79969         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79970         reported by Vin Shelton.
79971
79972 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79973
79974         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79975         Do not assume SA_SIGINFO behavior.
79976         Bug reported by Jim Meyering on NetBSD 1.5.2.
79977
79978 2002-06-22  Jim Meyering  <meyering@lucent.com>
79979
79980         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79982
79983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79984         now that configure.ac uses AC_GNU_SOURCE.
79985         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79986         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79987
79988         Update to latest tools.  Suggestions from Paul Eggert.
79989         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79990         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79991         * m4/fnmatch.m4: Likewise.
79992         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79993         to AC_HEADER_STDBOOL
79994
79995 2002-06-22  Jim Meyering  <meyering@lucent.com>
79996
79997         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79998         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79999
80000 2002-06-22  Jim Meyering  <meyering@lucent.com>
80001
80002         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80003
80004         * lib/exitfail.c, exitfail.h: Likewise.
80005         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80006
80007         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80008         of fnmatch.h.
80009         (EXTRA_DIST): Add fnmatch_loop.c.
80010         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80011
80012         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80013         * lib/fnmatch.c: Update from diffutils-2.8.2.
80014         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80015         * lib/fnmatch.h: Remove file.
80016
80017 2002-06-21  Jim Meyering  <meyering@lucent.com>
80018
80019         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80020         * m4/mbrtowc.m4: Likewise.
80021
80022         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80023         * m4/mbswidth.m4: Reflect name change:
80024         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80025         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80026
80027         * m4/lib-link.m4: Update from gettext-0.11.2.
80028         * m4/gettext.m4: Likewise.
80029
80030         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80031         From Alfred M. Szmidt.
80032
80033 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80034
80035         * lib/file-type.h: Report an error if neither S_ISREG nor
80036         S_IFREG is defined, instead of using a test specific to glibc
80037         2.2.  This should be safe, since POSIX requires S_ISREG and
80038         Unix Version 7 had S_IFREG.  We don't need to check for
80039         <sys/types.h> since we don't use any symbols that it defines.
80040
80041 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80042
80043         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80044         $@-t, so that each temporary file name is unique and valid in the first
80045         8 characters, for operation under DOS.
80046
80047 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80048
80049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80050
80051 2002-06-15  Jim Meyering  <meyering@lucent.com>
80052
80053         Work even with DJGPP 2.03, which lacks support for symlinks.
80054         From Richard Dawe.
80055         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80056         is defined.
80057         * lib/lchown.c (S_ISLNK): Likewise.
80058
80059 2002-06-15  Jim Meyering  <meyering@lucent.com>
80060
80061         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80062         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80063         have been included before this file.
80064
80065 2002-06-14  Jim Meyering  <meyering@lucent.com>
80066
80067         * lib/file-type.h: Use the version from diffutils-2.8.2.
80068         * lib/file-type.c: Likewise.
80069
80070 2002-06-07  Jim Meyering  <meyering@lucent.com>
80071
80072         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80073         They're needed at least for NetBSD 1.5.2.
80074         ($statxfs_includes): Include those same headers.
80075         ($statxfs_includes): Include sys/vfs.h if available.
80076         ($statxfs_includes): Likewise for sys/statvfs.h.
80077         Check for the following members in both structs statfs and statvfs:
80078         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80079
80080 2002-06-01  Jim Meyering  <meyering@lucent.com>
80081
80082         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80083         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80084
80085 2002-05-28  Jim Meyering  <meyering@lucent.com>
80086
80087         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80088         Reported by Volker Borchert.
80089
80090 2002-05-27  Jim Meyering  <meyering@lucent.com>
80091
80092         Fix a problem seen only on nonconforming systems whereby ls.c's
80093         use of localtime, and then of gettimeofday would cause trouble:
80094         the localtime call used to initialize rpl_gettimeofday's save
80095         mechanism would clobber ls's current local time information so
80096         that in any long listing the first file would always be listed
80097         with date 1970-01-01.  Analysis by Volker Borchert.
80098
80099         * lib/gettimeofday.c (localtime): Undefine.
80100         (rpl_localtime): New function.
80101
80102 2002-05-27  Jim Meyering  <meyering@lucent.com>
80103
80104         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80105         localtime.
80106
80107         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80108         use the replacement function; it wouldn't resolve at link time.
80109         Reported by Volker Borchert.
80110
80111 2002-05-22  Jim Meyering  <meyering@lucent.com>
80112
80113         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80114         file-type.h.
80115         * lib/file-type.h: New file.
80116         * lib/file-type.c (file_type): New file/function.  Extracted from
80117         diffutils.
80118
80119 2002-04-30  Jim Meyering  <meyering@lucent.com>
80120
80121         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80122
80123 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80124
80125         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80126
80127 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80128
80129         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80130         Do not check for alloca.h (no longer used) or stdbool.h (was never
80131         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80132
80133 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80134
80135         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80136
80137 2002-04-29  Jim Meyering  <meyering@lucent.com>
80138
80139         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80140         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80141         Use AC_FUNC_STRNLEN here instead.
80142
80143         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80144         With autoconf-2.53a, it's part of AC_PROG_CC.
80145
80146 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80147
80148         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80150
80151 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80152
80153         * lib/sig2str.h, lib/sig2str.c: New files.
80154         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80155
80156 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80157
80158         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80159         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80160         of 127, since 64 is the largest conceivable number for ancient
80161         nonstandard hosts.
80162         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80163
80164 2002-04-28  Jim Meyering  <meyering@lucent.com>
80165
80166         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80167
80168 2002-04-24  Jim Meyering  <meyering@lucent.com>
80169
80170         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80171         (jm_PREREQ): Use it.
80172
80173         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80174         mach/mach.h fcntl.h.
80175         Check for this function: setlocale.
80176
80177 2002-04-24  Jim Meyering  <meyering@lucent.com>
80178
80179         * lib/gettext.h: New file, from Gettext.
80180         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80181         (libfetish_a_SOURCES): Add gettext.h.
80182
80183 2002-04-16  Jim Meyering  <meyering@lucent.com>
80184
80185         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80186         ut_pid, ut_id, ut_exit.
80187
80188 2002-04-16  Jim Meyering  <meyering@lucent.com>
80189
80190         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80191         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80192         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80193
80194 2002-04-12  Jim Meyering  <meyering@lucent.com>
80195
80196         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80197         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80198         existence of the getmntinfo function.  Needed for Darwin 5.3.
80199
80200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80201         This is necessary at least on Darwin 5.3.
80202
80203         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80204         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80205         strnlen.o in the library, and that makes some versions of ranlib
80206         object.
80207
80208 2002-04-12  Jim Meyering  <meyering@lucent.com>
80209
80210         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80211
80212 2002-04-09  Jim Meyering  <meyering@lucent.com>
80213
80214         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80215         to be more precise.  Rather than saying we're checking whether the
80216         function `works', say what we're testing.
80217         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80218         Reported by Bruno Haible.
80219
80220 2002-03-10  Jim Meyering  <meyering@lucent.com>
80221
80222         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80223         Suggestion from Santiago Vila.
80224
80225 2002-03-08  Jim Meyering  <meyering@lucent.com>
80226
80227         * lib/rename.c: Mention that this wrapper is needed also on
80228         mips-dec-ultrix4.4 systems.
80229
80230 2002-03-02  Jim Meyering  <meyering@lucent.com>
80231
80232         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80233         not HAVE_CLOCK_SETTIME.
80234
80235 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80236
80237         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80238         Check for clock_settime.
80239
80240 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80241
80242         * lib/nanosleep.h: Rename to....
80243         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80244
80245         * lib/gettime.c: New file.
80246         * lib/settime.c: New file.
80247         * lib/stime.c: Remove.
80248
80249         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80250         timespec.h.  Remove nanosleep.h.
80251
80252 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80253
80254         * m4/acl.m4: New file.
80255         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80256         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80257
80258 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80259
80260         * lib/acl.c, lib/acl.h: New files.
80261         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80262
80263 2002-02-24  Jim Meyering  <meyering@lucent.com>
80264
80265         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80266         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80267         cause trouble.  Reported by Nelson Beebe.
80268
80269 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80270
80271         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80272         compilers that don't know that xalloc_die never returns.
80273
80274 2002-02-20  Jim Meyering  <meyering@lucent.com>
80275
80276         * lib/getdate.c: Regenerate using bison-1.33.
80277
80278 2002-02-17  Jim Meyering  <meyering@lucent.com>
80279
80280         * config/config.guess (main): Don't use `head -1'; it's no longer
80281         portable. Use `sed 1q' instead.
80282
80283 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80284
80285         * m4/codeset.m4: Upgrade to gettext-0.11.
80286         * m4/gettext.m4: Upgrade to gettext-0.11.
80287         * m4/glibc21.m4: Upgrade to gettext-0.11.
80288         * m4/iconv.m4: Upgrade to gettext-0.11.
80289         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80290         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80291         * m4/lib-ld.m4: New file, from gettext-0.11.
80292         * m4/lib-link.m4: New file, from gettext-0.11.
80293         * m4/lib-prefix.m4: New file, from gettext-0.11.
80294         * m4/progtest.m4: Upgrade to gettext-0.11.
80295
80296 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80297
80298         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80299         (jm_PREREQ): Use it.
80300
80301 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80302
80303         * lib/posixver.c, lib/posixver.h: New files.
80304         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80305
80306 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80307             Bruno Haible  <bruno@clisp.org>
80308
80309         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80310         (fwrite_success_callback): New declaration.
80311         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80312         print_unicode_char. Call failure callback instead of error.
80313         (fwrite_success_callback): New function.
80314         (exit_failure_callback): New function.
80315         (fallback_failure_callback): New function.
80316         (print_unicode_char): Call unicode_to_mb.
80317
80318 2002-01-26  Jim Meyering  <meyering@lucent.com>
80319
80320         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80321         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80322
80323 2002-01-26  Jim Meyering  <meyering@lucent.com>
80324
80325         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80326
80327 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80328
80329         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80330
80331 2002-01-22  Jim Meyering  <meyering@lucent.com>
80332
80333         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80334         Otherwise, some versions of automake would omit the rule that makes
80335         Makefile from Makefile.in.
80336
80337 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80338
80339         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80340         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80341         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80342         (memcoll): Set errno to zero if there is no error.
80343
80344         * lib/quotearg.c (quotearg_buffer_restyled):
80345         Fix bug with quoting buffers containing NUL when backslashing escapes.
80346         This bug was exposed by the other changes in this patch.
80347         (quotearg_n_options): New arg ARGSIZE.
80348         All callers changed.
80349         (quoting_options_from_style): New function.
80350         (quotearg_n_style): Use it.
80351         (quotearg_n_style_mem): New function.
80352
80353         * lib/quotearg.h (quotearg_n_style_mem): New function.
80354
80355 2002-01-19  Jim Meyering  <meyering@lucent.com>
80356
80357         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80358         Remove useless quotes: DF_PROG="df".
80359         * m4/strnlen.m4: New file.
80360
80361 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80362
80363         * lib/backupfile.c (ISDIGIT): Comment fix.
80364         * lib/getdate.y (ISDIGIT): Likewise.
80365         * lib/posixtm.c (ISDIGIT, year): Likewise.
80366         * lib/strverscmp.c (ISDIGIT): Likewise.
80367         * lib/userspec.c (ISDIGIT): Likewise.
80368
80369 2002-01-16  Jim Meyering  <meyering@lucent.com>
80370
80371         * lib/getdate.y: Add three semicolons, each just before a closing
80372         brace. Bison (as of version 1.31) no longer papers over that mistake.
80373
80374 2002-01-05  Jim Meyering  <meyering@lucent.com>
80375
80376         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80377
80378 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80379
80380         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80381         not silently exit merely because the output buffer happens to
80382         have nothing pending.
80383
80384 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80385
80386         See the big note in ../ChangeLog.
80387         * lib/human.c (suffixes): Prefer K to k for 1024.
80388         (generate_suffix_backwards): New function.
80389         (human_readable_inexact): Use it.
80390         * lib/xstrtol.c (__xstrtol): If there is no number but there
80391         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80392         Accept 'K' as well as 'k'.
80393
80394 2001-12-15  Jim Meyering  <meyering@lucent.com>
80395
80396         * lib/regex.h (__restrict_arr): Update from libc.
80397
80398         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80399         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80400         (STREQ): Define.
80401
80402 2001-12-14  Jim Meyering  <meyering@lucent.com>
80403
80404         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80405         Suggestion from Bruno Haible.
80406
80407 2001-12-10  Jim Meyering  <meyering@lucent.com>
80408
80409         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80410         xrealloc, Instead, include "xalloc.h".
80411         (initbuffer): Don't cast xmalloc return value to char*.
80412         (readline): Reword comment.
80413         Don't cast xrealloc return value to char*
80414         Return NULL, not 0.
80415
80416 2001-12-09  Jim Meyering  <meyering@lucent.com>
80417
80418         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80419         about `signed and unsigned type in conditional expression'.
80420         * lib/posixtm.c (posix_time_parse): Likewise.
80421
80422         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80423
80424         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80425         to avoid a pedantic warning.
80426
80427         * lib/getstr.c: Don't include assert.h.
80428         (getstr): Remove warning-evoking assertions.
80429         Return -1 if offset parameter is out of bounds.
80430         Change the type of a local from int to size_t.
80431
80432         * lib/strftime.c (my_strftime_localtime_r): Include this function
80433         definition in the `#if ! HAVE_TM_GMTOFF' block.
80434
80435         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80436         Include xalloc.h instead.
80437
80438 2001-12-02  Jim Meyering  <meyering@lucent.com>
80439
80440         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80441         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80442         included.
80443
80444         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80445         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80446
80447 2001-11-30  Akim Demaille  <akim@epita.fr>
80448
80449         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80450         before being defined.
80451
80452 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80453
80454         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80455         First arg is int, not unsigned.
80456         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80457         (SIZE_MAX, UINT_MAX): New macros.
80458         (quotearg_n_options): Abort if N is negative.
80459         Avoid overflow check on hosts where size_t is 64 bits and int
80460         is 32 bits, as overflow is impossible there.
80461         Fix off-by-one typo that caused unnecessary reallocation.
80462
80463 2001-11-27  Jim Meyering  <meyering@lucent.com>
80464
80465         * lib/tempname.c: Merge with version from libc.
80466         * lib/regex.c: Likewise.
80467
80468         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80469         systems for which STDC_HEADERS is 0, it was not included, resulting in
80470         a warning about an integer-to-pointer conversion problem with getenv.
80471         Reported by Volker Borchert.
80472
80473 2001-11-26  Jim Meyering  <meyering@lucent.com>
80474
80475         * lib/gtod.h: Remove file.
80476         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80477         * lib/gettimeofday.c: Don't include gtod.h.
80478         (GTOD_init): Remove function.
80479         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80480         Suggestion from Volker Borchert.
80481
80482 2001-11-23  Jim Meyering  <meyering@lucent.com>
80483
80484         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80485         it.
80486         * lib/hash.c (struct hash_table): Define it here instead.
80487
80488 2001-11-22  Jim Meyering  <meyering@lucent.com>
80489
80490         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80491
80492 2001-11-20  Jim Meyering  <meyering@lucent.com>
80493
80494         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80495         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80496
80497 2001-11-19  Jim Meyering  <meyering@lucent.com>
80498
80499         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80500         directory.  Use "conftestXXXXXX" as the template.
80501         Suggestion from Paul Eggert.
80502
80503         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80504         immediately, so the test doesn't mistakenly hit the max-open-files
80505         limit.
80506
80507 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80508
80509         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80510         (TEMPORARIES): New macro.
80511         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80512         removes an artificial limitation (e.g. HP-UX 10.20, where
80513         TMP_MAX is 17576).
80514
80515 2001-11-18  Jim Meyering  <meyering@lucent.com>
80516
80517         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80518
80519 2001-11-18  Jim Meyering  <meyering@lucent.com>
80520
80521         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80522         on SunOS 4.
80523
80524         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80525         files will be created before anything else.
80526
80527 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80528
80529         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80530         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80531
80532 2001-11-17  Jim Meyering  <meyering@lucent.com>
80533
80534         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80535         Prompted by a report from Bob Proulx.
80536
80537         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80538         Instead, require UTILS_FUNC_MKSTEMP.
80539
80540 2001-11-17  Jim Meyering  <meyering@lucent.com>
80541
80542         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80543         Now, that's done as part of AC_FUNC_STRTOD.
80544
80545 2001-11-17  Jim Meyering  <meyering@lucent.com>
80546
80547         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80548         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80549         rather than group writable.  Patch by Juan F. Codagnone.
80550
80551         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80552         xrealloc, Instead, include "xalloc.h".
80553
80554         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80555         Remove explicit declarations of xmalloc, xrealloc,
80556         and xstrdup.  Instead, include "xalloc.h".
80557
80558         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80559         unlocked-io.h.
80560         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80561         Likewise.
80562         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80563
80564         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80565         Reported by Padraig Brady.
80566
80567         * lib/mkstemp.c: #undef mkstemp.
80568         Include config.h.
80569         (rpl_mkstemp): Rename from mkstemp.
80570         Protoize.
80571
80572 2001-11-16  Jim Meyering  <meyering@lucent.com>
80573
80574         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80575         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80576         determine the amount of total physical memory, use pstat_getstatic.
80577         HPUX-11 doesn't define _SC_PHYS_PAGES.
80578         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80579         If sysconf couldn't be used to determine the amount of available
80580         physical memory, use both pstat_getstatic and pstat_getdynamic.
80581         Based on a patch from Bob Proulx.
80582
80583 2001-11-10  Jim Meyering  <meyering@lucent.com>
80584
80585         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80586         (jm_PREREQ): Use it.
80587
80588 2001-11-09  Jim Meyering  <meyering@lucent.com>
80589
80590         * m4/jm-macros.m4: Require autoconf-2.52f.
80591         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80592         Use these AC_-prefixed names, not the AM_-prefixed ones.
80593
80594         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80595
80596 2001-11-05  Jim Meyering  <meyering@lucent.com>
80597
80598         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80599
80600 2001-11-04  Jim Meyering  <meyering@lucent.com>
80601
80602         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80603         $DEFS.
80604
80605 2001-11-03  Jim Meyering  <meyering@lucent.com>
80606
80607         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80608         of AC_DEFUN.
80609
80610         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80611         know the name of the variable in the macro definition.
80612
80613 2001-11-03  Jim Meyering  <meyering@lucent.com>
80614
80615         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80616         in argmatch_to_argument call.
80617
80618         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80619         argument.
80620
80621         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80622         e.g., a fault due to an attempt to free a NULL pointer.
80623
80624 2001-11-01  Jim Meyering  <meyering@lucent.com>
80625
80626         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80627         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80628
80629 2001-11-01  Jim Meyering  <meyering@lucent.com>
80630
80631         * lib/dirfd.c, lib/dirfd.h: New files.
80632         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80633
80634         * lib/hash.c (hash_print) [TESTING]: Clean up.
80635
80636 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80637
80638         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80639         to avoid a warning if -Wall.
80640
80641 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80642
80643         * README: New file
80644         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80645         (per RMS's instructions, this is now the canonical source)
80646         * lgpl/, gpl/: New directories.
80647
80648 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80649
80650         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80651
80652 2001-10-21  Jim Meyering  <meyering@lucent.com>
80653
80654         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80655         this code would end up calling gettext even in packages built
80656         with --disable-nls.
80657         * lib/getopt.c (_): Likewise.
80658         * lib/regex.c (_): Likewise.
80659
80660 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80661
80662         * m4/error.m4 (jm_PREREQ_ERROR):
80663         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80664         AC_FUNC_STRERROR_R does that.
80665         Check for strerror declaration.
80666
80667         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80668         are supposed to have them these days.
80669         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80670         Merge changes from latest Autoconf CVS.
80671         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80672         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80673         POSIX decided to standardize on the int flavor of strerror_r.
80674
80675 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80676
80677         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80678         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80679         Use strerror_r that is only a macro, even if it is not a function.
80680         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80681         (private_strerror): Use prototypes, not old-style function definition.
80682         (print_errno_message): New function.
80683         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80684         char*-flavored one.
80685         (error_tail, error, error_at_line): Use it.
80686
80687 2001-10-11  Jim Meyering  <meyering@lucent.com>
80688
80689         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80690         and quote_n (1, ... to avoid clobbering a buffer.
80691
80692 2001-10-05  Jim Meyering  <meyering@lucent.com>
80693
80694         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80695         hash-pjw.h.
80696         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80697         * lib/hash-pjw.h: New file.
80698
80699 2001-09-30  Jim Meyering  <meyering@lucent.com>
80700
80701         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80702         `struct fsstat' has the `f_fstypename' member.
80703         Use that to define FS_TYPE, which is now used to make
80704         the getfsstat link test tighter.
80705
80706 2001-09-30  Jim Meyering  <meyering@lucent.com>
80707
80708         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80709         Include <sys/ucred.h>, for Apple Darwin.
80710         Include sys/mount.h and sys/fs_types.h only if available.
80711         (FS_TYPE): Define.
80712         (read_filesystem_list): Use FS_TYPE.
80713
80714 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80715
80716         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80717         a boolean context.
80718
80719 2001-09-29  Jim Meyering  <meyering@lucent.com>
80720
80721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80722         [one-argument getmntent function]): Include stdio.h before mntent.h.
80723         SunOS 4.1.x needs it for the declaration of `FILE'.
80724         Patch by Volker Borchert.
80725
80726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80727         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80728         sys/fs_types.h, and make the link-test for getfsstat guard #include
80729         directives with appropriate #if HAVE_*_H tests so that we can
80730         detect getfsstat on Apple Darwin1.3.7 systems.
80731         Reported by Nelson Beebe.
80732         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80733
80734 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80735
80736         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80737         #defines strtoimax.  Also treat the other strto* functions
80738         like strtoimax.
80739
80740         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80741         Check for strtoul and strtoumax,
80742         as those declarations are made even in the signed case.
80743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80744         Likewise, for strtol and strtoimax.
80745
80746 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80747
80748         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80749         #defines strtoimax.  Also treat the other strto* functions
80750         like strtoimax.
80751
80752         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80753         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80754         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80755
80756 2001-09-26  Jim Meyering  <meyering@lucent.com>
80757
80758         Most macros in unlocked-io.h had the wrong number of arguments.
80759         * lib/gen-uio: New script.
80760         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80761         * lib/unlocked-io.hin: Remove file.
80762         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80763         rather than trying to embed it here.
80764         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80765         Reported by Padraig Brady.
80766
80767 2001-09-25  Volker Borchert  <bt@teknon.de>
80768
80769         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80770         `result'.
80771
80772 2001-09-24  Jim Meyering  <meyering@lucent.com>
80773
80774         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80775
80776 2001-09-23  Jim Meyering  <meyering@lucent.com>
80777
80778         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80779         instead of the mere test for existence of mntent.h.  The latter
80780         would get a false-positive on AIX 3.4 systems.
80781         In the outer getmntent if-block, don't die if neither of the getmntent
80782         tests succeeds.  Instead, just fall through and continue with the
80783         remaining tests.
80784
80785 2001-09-23  Jim Meyering  <meyering@lucent.com>
80786
80787         * lib/mountlist.c: Remove useless parentheses in #if directives.
80788         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80789         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80790
80791 2001-09-22  Jim Meyering  <meyering@lucent.com>
80792
80793         * m4/gettext.m4: New file.  From gettext.
80794         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80795         * m4/progtest.m4: Likewise
80796         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80797         * m4/glibc21.m4: Likewise.
80798
80799         * m4/libintl.m4: Remove.  No longer used.
80800
80801 2001-09-22  Jim Meyering  <meyering@lucent.com>
80802
80803         * lib/localcharset.c: Update from latest gettext.
80804         * lib/config.charset: Likewise.
80805
80806 2001-09-20  Jim Meyering  <meyering@lucent.com>
80807
80808         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80809         strtoimax.
80810         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80811         strtoumax.
80812
80813 2001-09-20  Jim Meyering  <meyering@lucent.com>
80814
80815         * lib/xstrtol.c (strtoimax): Guard declaration with
80816         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80817         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80818         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80819         (strtoumax): Likewise, for completeness (it wasn't necessary).
80820
80821 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80822
80823         * lib/strtoimax.c (HAVE_LONG_LONG):
80824         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80825         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80826         to work around bug in IBM C compiler.
80827
80828 2001-09-17  Jim Meyering  <meyering@lucent.com>
80829
80830         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80831         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80832         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80833         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80834         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80835         whenever the right hand side need not be expanded by the shell.
80836
80837 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80838
80839         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80840         library.  It's not correct, as some older glibcs are buggy.
80841         fnmatch wasn't fixed until glibc 2.2.
80842
80843         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80844         special shell magic here.
80845
80846 2001-09-16  Jim Meyering  <meyering@lucent.com>
80847
80848         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80849         * m4/jm-macros.m4: Require it.
80850
80851 2001-09-16  Jim Meyering  <meyering@lucent.com>
80852
80853         * lib/mkdir.c: New file.
80854
80855 2001-09-15  Jim Meyering  <meyering@lucent.com>
80856
80857         * m4/jm-macros.m4: Check for help2man.
80858
80859 2001-09-11  Jim Meyering  <meyering@lucent.com>
80860
80861         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80862         The body, by Paul Eggert, was moved here from configure.in.
80863         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80864
80865 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80866
80867         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80868         (jm_PREREQ): Use it.
80869
80870 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80871
80872         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80873         Use ssize_t, not int, to store result of readlink.
80874         Check for ssize_t overflow as well as size_t overflow,
80875         as POSIX says the result of readlink is implementation-defined
80876         when ssize_t overflows.
80877         Remove unnecessary cast to char*.
80878         Use free+malloc instead of realloc, as the storage doesn't need
80879         to be preserved and it's clearer and can be more efficient that way.
80880         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80881         * lib/xreadlink.h (xreadlink): Update prototype.
80882
80883 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80884
80885         * lib/xgetcwd.c: Revert some of the previous change; intead,
80886         fix the HAVE_GETCWD_NULL code to behave more like the
80887         !HAVE_GETCWD_NULL code used to.
80888
80889         Include "xalloc.h".
80890         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80891         invoke xalloc_die.
80892
80893 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80894
80895         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80896         sys/param.h, as pathmax.h includes them.
80897
80898 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80899
80900         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80901         (jm_PREREQ_XGETCWD): New macro.
80902
80903         * m4/getcwd.m4: New file.
80904
80905 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80906
80907         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80908         like the HAVE_GETCWD_NULL code.
80909         Include pathmax.h if not HAVE_GETCWD.
80910         Do not include xalloc.h.
80911         (INITIAL_BUFFER_SIZE): New symbol.
80912         Do not use xmalloc / xrealloc, since the caller is responsible for
80913         handling errors.  Preserve errno around `free' during failure.
80914         Do not overrun buffer when using getwd.
80915
80916 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80917
80918         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80919         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80920         getcwd (NULL, 0).
80921
80922 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80923
80924         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80925         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80926         spotted by Jim Meyering.
80927
80928 2001-09-03  Jim Meyering  <meyering@lucent.com>
80929
80930         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80931         failure.
80932
80933 2001-09-02  Jim Meyering  <meyering@lucent.com>
80934
80935         * lib/error.c: Update from GNU libc.
80936
80937 2001-09-01  Jim Meyering  <meyering@lucent.com>
80938
80939         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80940         Used by df.
80941
80942 2001-09-01  Jim Meyering  <meyering@lucent.com>
80943
80944         * lib/xreadlink.c: New file.
80945         * lib/xreadlink.h: New file.
80946         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80947         xreadlink.h.
80948
80949         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80950         doesn't conflict with sparc Solaris 7's definition in
80951         /usr/include/sys/int_types.h.
80952
80953         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80954         files.
80955         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80956         and strncasecmp as r-values.  Unixware didn't have declarations.
80957
80958 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80959
80960         * lib/xstrtol.h: Add copyright notice.
80961         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80962         LONGINT_INVALID_SUFFIX_CHAR.
80963
80964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80965
80966         * lib/xstrtol.c (strtoimax): New decl.
80967
80968 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80969
80970         * lib/xgetcwd.c: Don't include pathmax.h.
80971         Include stdlib.h and unistd.h if available.
80972         Include xalloc.h.
80973         (xmalloc, xstrdup, free): Remove decls.
80974         (xgetcwd): Don't assume sizes fit in unsigned.
80975         Check for overflow when computing sizes.
80976         Simplify reallocation code.
80977
80978 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80979
80980         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80981         a directory's st_size can have an arbitrary value, so the old
80982         usage could waste an arbitrary amount of memory.  All uses
80983         changed.
80984         * lib/savedir.h: Update prototype.
80985
80986 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80987
80988         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80989
80990         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80991         old strtoimax.c.
80992
80993         Also, make the following further changes to make this file's
80994         configuration more similar to that of strtol.c:
80995         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80996         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80997         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80998         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80999         changed to signed values.
81000
81001         And make the following changes as well:
81002         Fix copyright notice, as 1999 was missing.
81003         (verify): New macro.
81004         (strtoimax): Check sizes at compile-time, not run-time.
81005         Prefer strtol to strtoll if both work.
81006         (main): Remove; it was not that useful and was a pain to maintain.
81007
81008         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81009
81010 2001-08-31  Jim Meyering  <meyering@lucent.com>
81011
81012         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81013         Use an initial, malloc'd, buffer of length 128 rather than
81014         a statically allocated one of length 1024.
81015
81016 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81017
81018         Simplify code, partly by assuming autoconf 2.52 semantics.
81019
81020         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81021
81022         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81023         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81024         All uses removed.
81025         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81026         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81027         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81028         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81029         jm_AC_HEADER_INTTYPES_H.
81030         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81031
81032         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81033
81034         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81035         Quote first arg of AC_DEFUN.
81036         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81037         since they are needed to parse the include file even if we need
81038         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81039         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81040         but with opposite signedness.
81041
81042 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81043
81044         Merge 'exclude' changes from tar 1.13.22.
81045         This fixes one or two unlikely storage allocation overflow bugs,
81046         but doesn't change user-visible behavior otherwise.
81047
81048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81049
81050         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81051         (jm_PREREQ_EXCLUDE): New macro.
81052
81053 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81054
81055         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81056         tm to be declared.
81057
81058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81059
81060         * lib/hash.c: Remove '2001' from copyright notice.
81061
81062 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81063
81064         * lib/full-write.h: New file.
81065         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81066         * lib/full-write.c: Correct credits, as cccp.c no longer
81067         exists and anyway it was so heavily changed from the old cccp
81068         code as to be unrecognizable.  Include full-write.h.
81069         (full_write): Return size_t, with short writes meaning failure.
81070         All callers changed.  This fixes a bug with large buffers
81071         on 64-bit hosts.
81072         * lib/utime.c: Include full-write.h.
81073
81074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81075
81076         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81077         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81078         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81079         Include if available.
81080         (<xalloc.h>): Include
81081         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81082         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81083         collide with FNM macros.
81084         (struct patopts): New struct.
81085         (struct exclude): Use it, as exclude patterns now come with options.
81086         (new_exclude): Support above changes.
81087         (new_exclude, add_exclude_file):
81088         Initial size must now be a power of two to simplify overflow checking.
81089         (free_exclude, fnmatch_no_wildcards): New function.
81090         (excluded_filename): No longer requires options arg, as the options
81091         are determined by add_exclude.  Now returns bool, not int.
81092         (excluded_filename, add_exclude):
81093         Add support for the fancy new exclusion options.
81094         (add_exclude, add_exclude_file): Now takes int options arg.
81095         Check for arithmetic overflow when computing sizes.
81096         (add_exclude_file): xrealloc might modify errno, so don't
81097         realloc until after errno might be used.
81098
81099         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81100         New macros.
81101         (free_exclude): New decl.
81102         (add_exclude, add_exclude_file): Now takes int options arg.
81103         (excluded_filename): No longer requires options arg, as the options
81104         are determined by add_exclude.  Now returns bool, not int.
81105
81106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81107
81108         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81109
81110 2001-08-27  Jim Meyering  <meyering@lucent.com>
81111
81112         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81113
81114         * lib/version-etc.c (N_): Remove definition.
81115         Revert most of last change.
81116         Instead, simply don't mark the `Copyright...' string for translation.
81117         Based on advice from Paul Eggert.
81118
81119         * lib/strtoxmax.c: Tweak comment.
81120
81121 2001-08-26  Jim Meyering  <meyering@lucent.com>
81122
81123         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81124
81125         * m4/xstrtoimax.m4: New file.
81126         * m4/xstrtoumax.m4: Add comments explaining why we
81127         AC_REPLACE_FUNCS(strtol).
81128
81129 2001-08-26  Jim Meyering  <meyering@lucent.com>
81130
81131         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81132         of copyright with `%s' so translators don't get an untranslated
81133         message in 2002.
81134         (COPYRIGHT_YEAR): Define.
81135         (version_etc): Use fprintf rather than fputs.
81136         Suggestion from Ulrich Drepper.
81137
81138         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81139
81140         * lib/strtoll.c: New file, from GNU libc.
81141         * lib/xstrtoimax.c: New file.
81142
81143         * lib/xstrtol.h: Add xstrtoimax.
81144         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81145         * lib/strtoimax.c: New file.  Likewise, but first define
81146         STRTOUXMAX_SIGNED.
81147
81148         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81149         ...
81150         * lib/strtoxmax.c: ... then renamed to this.
81151
81152 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81153
81154         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81155         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81156         (jm_AC_TYPE_INTMAX_T): New macro.
81157         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81158
81159         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81160
81161         * m4/longlong.m4: Renamed from ulonglong.m4.
81162         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81163         * m4/uintmax_t.m4: Removed.
81164
81165 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81166
81167         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81168         Port to Solaris 8, where 'sed' requires a space after the 'r'
81169         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81170         Redirect output to $tmp just once.
81171
81172 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81173
81174         * lib/addext.c (<errno.h>): Include.
81175         (errno): Declare if not defined.
81176         (addext): Work correctly when pathconf returns -1 and leaves
81177         errno alone because there is no limit.  Also, work even if
81178         pathconf returns a value greater than SIZE_MAX.
81179
81180 2001-08-12  Jim Meyering  <meyering@lucent.com>
81181
81182         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81183         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81184         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81185         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81186         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81187         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81188         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81189         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81190         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81191         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81192         utime.m4, utimes.m4, xstrtoumax.m4:
81193         Quote the first argument in each use of AC_DEFUN.
81194
81195 2001-08-12  Jim Meyering  <meyering@lucent.com>
81196
81197         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81198         Simply `return getcwd (NULL, 0);'.
81199         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81200         Use 1300 as initial value for length, not PATH_MAX.
81201
81202         * lib/pathmax.h: Clean up cpp syntax.
81203
81204 2001-08-12  Jim Meyering  <meyering@lucent.com>
81205
81206         * lib/gettimeofday.c: New file.
81207         * lib/gtod.h: New file.
81208         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81209
81210 2001-08-05  Jim Meyering  <meyering@lucent.com>
81211
81212         * m4/jm-macros.m4: Require autoconf-2.52.
81213
81214 2001-08-04  Jim Meyering  <meyering@lucent.com>
81215
81216         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81217         stmt, to get in sync with glibc.
81218
81219 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81220
81221         The following changes are from gettext 0.10.39 as maintained by
81222         Bruno Haible.
81223
81224         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81225         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81226         with inverted sense.  All uses changed.
81227
81228         * lib/mbswidth.c: Don't include <limits.h>.
81229         Include <stdlib.h> and <string.h> unconditionally.
81230         (iswcntrl, mbsinit, ISCNTRL): New macros.
81231         (mbsnwidth): Use K&R style function declarations.
81232         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81233         can optimize it when MB_CUR_MAX == 1.
81234         The width of control characters is zero, not 1.
81235
81236 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81237
81238         The following changes are from gettext 0.10.39 as maintained by
81239         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81240
81241         * m4/codeset.m4: Upgrade to serial AM1.
81242         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81243         all uses changed.  Quote first arg of AC_DEFUN.
81244         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81245
81246         * m4/iconv.m4: Upgrade to serial AM2.
81247         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81248         Add --with-libconv-prefix.
81249         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81250         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81251         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81252         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81253         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81254
81255         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81256         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81257         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81258         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81259         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81260         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81261         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81262         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81263         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81264
81265         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81266         string.h any more.
81267
81268         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81269         not the default value.
81270
81271         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81272         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81273         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81274         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81275         Also check for iswcntrl, used for wcwidth fallback.
81276         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81277         to Autoconf 2.13.
81278
81279 2001-08-03  Jim Meyering  <meyering@lucent.com>
81280
81281         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81282         as it was in the original.  Reported by Paul Eggert.
81283
81284 2001-07-16  Jim Meyering  <meyering@lucent.com>
81285
81286         * m4/gettimeofday.m4: New file.
81287         Prompted by a report from Bernhard Baehr.
81288
81289 2001-07-15  Jim Meyering  <meyering@lucent.com>
81290
81291         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81292         stuff. Now it's in ../Makefile.cfg.
81293
81294 2001-07-15  Jim Meyering  <meyering@lucent.com>
81295
81296         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81297         (BUILT_SOURCES): Add unlocked-io.h.
81298         (io_functions): Define.
81299         (unlocked-io.h): New rule.
81300         (DISTCLEANFILES): Add unlocked-io.h.
81301         (all-local): Depend on unlocked-io.h, to ensure it is created.
81302
81303         * lib/unlocked-io.hin: New file
81304
81305         * lib/regex.c: Update from glibc.
81306
81307 2001-07-05  Jim Meyering  <meyering@lucent.com>
81308
81309         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81310         recommendation.
81311         (libfetish_a_SOURCES): Put all .h files here instead.
81312         Remove a thus-exposed (better checks in automake) duplicate and
81313         two unnecessary .h files.
81314
81315 2001-07-04  Jim Meyering  <meyering@lucent.com>
81316
81317         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81318         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81319         distcheck failure.
81320
81321 2001-07-02  Jim Meyering  <meyering@lucent.com>
81322
81323         The following changes were prompted by suggestions from Bruno Haible.
81324
81325         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81326         is now generated.
81327         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81328         definition of EXTRA_DIST.
81329         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81330         ensure that the generated file is created/updated whenever the list
81331         of $(unlocked_functions) is changed.
81332         (jm-glibc-io.m4): New rule.
81333         (unlocked-io.h): New rule -- currently unused.
81334
81335 2001-06-24  Jim Meyering  <meyering@lucent.com>
81336
81337         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81338         unmatched right bracket, rather than kludging it with an extra,
81339         falsely-matching quote in a comment.  Patch by Akim Demaille.
81340
81341 2001-06-11  Jim Meyering  <meyering@lucent.com>
81342
81343         * lib/regex.c: Update from GNU libc.
81344
81345 2001-05-27  Jim Meyering  <meyering@lucent.com>
81346
81347         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81348         Check for ut_type in struct utmp.
81349
81350 2001-05-27  Jim Meyering  <meyering@lucent.com>
81351
81352         * lib/readutmp.h (UT_TYPE): Define.
81353
81354 2001-05-24  Jim Meyering  <meyering@lucent.com>
81355
81356         * lib/argmatch.c: Include "quote.h".
81357         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81358         quote function.  Reported by Göran Uddeborg.
81359
81360 2001-05-22  Jim Meyering  <meyering@lucent.com>
81361
81362         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81363         now that we use the package-supplied version unconditionally.
81364         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81365
81366 2001-05-21  Jim Meyering  <meyering@lucent.com>
81367
81368         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81369         shell syntax errors.
81370
81371 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81372
81373         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81374
81375 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81376
81377         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81378         Don't bother to check library strftime, since
81379         we'll be using our own my_strftime function anyway.
81380         Define my_strftime instead of strftime.
81381
81382 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81383
81384         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81385         which is not yet declared.
81386
81387 2001-05-15  Jim Meyering  <meyering@lucent.com>
81388
81389         * m4/regex.m4: Use proper quoting so brackets appear in the test
81390         program.
81391         Reported by, and with help from, Bruno Haible.
81392
81393 2001-05-13  Jim Meyering  <meyering@lucent.com>
81394
81395         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81396         undefined.
81397
81398 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81399
81400         dirname code cleanup.  base_name now behaves more compatibly
81401         with POSIX basename when given file names that have trailing
81402         slashes, and similarly for dir_name.  Add new primitives
81403         base_len and dir_len.  Put the directory-name-related decls
81404         into dirname.h.
81405
81406         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81407         * lib/backupfile.c (base_name): Likewise.
81408         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81409         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81410         * lib/makepath.c (strip_trailing_slashes): Likewise.
81411         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81412         ISSLASH): Likewise.
81413         * lib/rename.c (strip_trailing_slashes): Likewise.
81414         * lib/same.c (base_name): Likewise.
81415         * lib/stripslash.c (ISSLASH): Likewise.
81416
81417         * lib/addext.c: Include <dirname.h> after size_t is defined.
81418         * lib/backupfile.c: Likewise.
81419
81420         * lib/addext.c (addext): Use base_len to trim redundant
81421         trailing slashes instead of doing it ourselves.
81422         But do not trim the last slash if it is not redundant.
81423
81424         * lib/backupfile.c (find_backup_file_name,
81425         max_backup_version): Use base_len instead of rolling it ourselves.
81426         Handle the case of "" and (on DOS) "C:" correctly.
81427
81428         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81429         needed. Include <string.h>, <dirname.h>.
81430         (base_name): Allow file names ending in slashes, other than names
81431         that are all slashes.  In this case, return the basename followed
81432         by the slashes.  This is more general, and can be used in places
81433         where the original base_name purposely had an assertion failure.
81434         (base_len): New function.
81435
81436         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81437         Do not include <assert.h>; no longer needed.
81438         Include xalloc.h.
81439         (memrchr): Remove decl.
81440         (dir_name_r): Remove.
81441         (dir_len): Renamed from dirlen.  All callers changed.
81442         Rewrite in terms of base_name, for simplicity and consistency.
81443         (dir_name): Never return NULL.  All callers changed.
81444         Do not include <stdlib.h> in test program; no longer needed.
81445         return 0; is fine for test program.
81446
81447         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81448         New macros.
81449         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81450
81451         * lib/path-concat.c (path_concat): Use base_len to compute
81452         base length, not strlen; this means we cannot rely on memcpy
81453         to null-terminate.
81454
81455         * lib/same.c (STREQ): Remove.
81456         (same_name): Handle the case where the basename ends in trailing '/'.
81457
81458         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81459         a slash was stripped.  Do not strip the last slash after a
81460         file system prefix.
81461
81462 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/Makefile.am (libfetish_a_SOURCES):
81465         Add strftime.c, since we now compile it on all hosts.
81466
81467         * lib/strftime.c (my_strftime):
81468         Define to nstrftime if emacs, but only if my_strftime is not defined.
81469         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81470         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81471         Add one more extra argument: a nanoseconds value.
81472         All uses changed.
81473         (ns): New macro.
81474         (my_strftime function): Add %N format.
81475         (emacs_strftimeu): Renamed from emacs_strftime,
81476         with extra ut argument.
81477
81478 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81479
81480         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81481
81482 2001-04-21  Jim Meyering  <meyering@lucent.com>
81483
81484         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81485         doesn't interfere.
81486
81487 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81488
81489         * m4/ftruncate.m4: Check for chsize.
81490         Link with ftruncate.o unconditionally if ftruncate is missing.
81491         This was required when cross-compiling to i586-mingw32msvc.
81492
81493 2001-04-08  Jim Meyering  <meyering@lucent.com>
81494
81495         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81496         recomputed; that's necessary when the offset spans a DST transition.
81497         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81498
81499 2001-04-02  Jim Meyering  <meyering@lucent.com>
81500
81501         * lib/regex.h, regex.c: Update from GNU libc.
81502
81503 2001-03-24  Jim Meyering  <meyering@lucent.com>
81504
81505         * m4/jm-macros.m4: Require autoconf-2.49d.
81506
81507 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81508
81509         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81510
81511 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81512
81513         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81514
81515 2001-03-17  Jim Meyering  <meyering@lucent.com>
81516
81517         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81518         now that the version in autoconf is equivalent.
81519         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81520
81521         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81522         Suggestion from Akim Demaille.
81523
81524         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81525         (jm_PREREQ_TEMPNAME): New function.
81526
81527 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81528
81529         * lib/tempname.c (uint64_t): Define to uintmax_t if
81530         not defined, and if UINT64_MAX is not defined.
81531         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81532         Reported by John David Anglin.
81533
81534 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81535
81536         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81537         resolve alias if codeset is empty.
81538         * lib/config.charset (BeOS): Use wildcard syntax.
81539
81540 2001-03-13  Jim Meyering  <meyering@lucent.com>
81541
81542         * lib/path-concat.c (path_concat)
81543         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81544         concatenating e.g., `C:' and `foo'.
81545         From Bruno Haible.
81546
81547 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81548
81549         * lib/localcharset.c (locale_charset): Don't use
81550         setlocale(LC_CTYPE,NULL). Don't return NULL.
81551         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81552
81553 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81554
81555         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81556         support for DOS/DJGPP.
81557
81558 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81559
81560         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81561         lacks mkstemp.  Compile our own tempname.c if we compile our own
81562         mkstemp.c, as mkstemp relies on tempname.
81563
81564 2001-03-01  Jim Meyering  <meyering@lucent.com>
81565
81566         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81567         AH_VERBATIM really does output its argument verbatim.
81568
81569 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81570
81571         * lib/Makefile.am (libfetish_a_SOURCES):
81572         Add dup-safer.c, fopen-safer.c.
81573         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81574
81575         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81576         * lib/unistd-safer.h: New files.
81577
81578 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81579
81580         The mkstemp replacement is taken from glibc 2.2.2, with some
81581         portability fixes for use outside glibc, as follows:
81582
81583         * lib/tempname.c (struct_stat64): New macro.
81584         (direxists, __gen_tempname): Use it.
81585         This avoids a portability problem with Solaris 8.
81586
81587         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81588         (<stddef.h>, <stdint.h>, <string.h>):
81589         Include only if STDC_HEADERS || _LIBC.
81590         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81591         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81592         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81593         (__set_errno): Define this macro if <errno.h> doesn't.
81594         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81595         Define these macros if <stdio.h> doesn't.
81596         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81597         Define these macros if <sys/stat.h>
81598         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81599         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81600         __xstat64): Define if not _LIBC.
81601         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81602         (__gen_tempname): Invoke gettimeofday only if
81603         HAVE_GETTIMEOFDAY || _LIBC;
81604         otherwise, fall back on plain "time".
81605         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81606
81607         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81608
81609         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81610
81611 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81612
81613         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81614
81615 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81616
81617         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81618         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81619         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81620         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81621
81622 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81623
81624         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81625         Remove workaround macros for hosts that have mbrtowc but not
81626         mbstate_t, as we now insist on proper declarations for both
81627         before using mbrtowc.
81628
81629 2001-02-17  Jim Meyering  <meyering@lucent.com>
81630
81631         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81632         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81633         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81634         UnixWare 7.1.1.
81635
81636         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81637         rather than AC_CACHE_VAL.
81638
81639 2001-02-17  Jim Meyering  <meyering@lucent.com>
81640
81641         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81642         around included file name.
81643
81644         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81645
81646         * lib/strftime.c: Update from GNU libc (the only changes were to
81647         comments).
81648
81649 2001-02-17  Jim Meyering  <meyering@lucent.com>
81650
81651         * lib/regex.c: Update from libc.
81652
81653 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81654
81655         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81656         clash.
81657
81658 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81659
81660         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81661         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81662         Reported by Mark Hounschell via Paul Eggert.
81663
81664 2001-02-07  Jim Meyering  <meyering@lucent.com>
81665
81666         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81667
81668 2001-02-05  Jim Meyering  <meyering@lucent.com>
81669
81670         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81671         it includes the patch required for `large file' support with at least
81672         HP-UX's 10.20 /bin/cc.
81673
81674 2001-02-03  Jim Meyering  <meyering@lucent.com>
81675
81676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81677         AS_IF, now that it works once again (mysteriously).
81678         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81679
81680 2001-01-30  Jim Meyering  <meyering@lucent.com>
81681
81682         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81683         * m4/chown.m4: Rename conftestchown to conftest.chown.
81684         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81685         s/conftestdir2/conftest.d2/.
81686         * m4/utimes.m4: s/conftestdata/conftest.data/
81687         Inspired by Pavel Roskin's change in autoconf.
81688
81689 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81690
81691         * lib/config.charset: Update for FreeBSD 4.2.
81692
81693 2001-01-27  Jim Meyering  <meyering@lucent.com>
81694
81695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81696         a use of AS_IF.
81697         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81698
81699 2001-01-26  Jim Meyering  <meyering@lucent.com>
81700
81701         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81702         quotearg.c includes it.
81703
81704 2001-01-26  Jim Meyering  <meyering@lucent.com>
81705
81706         * lib/quotearg.c: Include stddef.h.
81707         * lib/quote.c: Include stddef.h.
81708         Reported by Axel Kittenberger.
81709
81710         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81711         line in double quotes so that it evokes a better diagnostic.
81712         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81713         Reported by Axel Kittenberger.
81714
81715 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81716
81717         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81718         as if it was a `charset'.
81719
81720 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81721
81722         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81723         has const.
81724
81725 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81726
81727         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81728         to avoid a warning.  Add back 'const' to inptr.
81729
81730 2001-01-20  Jim Meyering  <meyering@lucent.com>
81731
81732         Be sure that headers are checked before used in code compiled
81733         for the type checks.
81734         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81735         In place of that, invoke jm_CHECK_ALL_TYPES.
81736         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81737         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81738         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81739         The check for ssize_t was mistakenly run before the test for unistd.h.
81740
81741         The configure-time check for stdbool.h was missing.
81742         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81743         (jm_PREREQ_HASH): New function.
81744
81745 2001-01-17  Jim Meyering  <meyering@lucent.com>
81746
81747         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81748         for autoconf-2.49c.
81749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81750
81751 2001-01-16  Jim Meyering  <meyering@lucent.com>
81752
81753         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81754         From Bruno Haible.
81755
81756 2001-01-14  Jim Meyering  <meyering@lucent.com>
81757
81758         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81759         foo and bar.  Create conftestdir/ in the script, not in the C code.
81760         Remove directories in the script, not in the C code.
81761         Remove conftestdir{,2} before trying to create the directory.
81762         Make the entire configure script fail if the mkdir fails.
81763
81764 2001-01-14  Jim Meyering  <meyering@lucent.com>
81765
81766         * lib/rename.c: New file.  From Volker Borchert.
81767         Include stdlib.h, string.h or strings.h, and xalloc.h.
81768         Use strip_trailing_slashes rather than open-coding it.
81769
81770 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81771
81772         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81773
81774 2001-01-03  Jim Meyering  <meyering@lucent.com>
81775
81776         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81777         of local `inptr' to avoid warning with some system declarations of
81778         iconv.
81779
81780 2001-01-02  Volker Borchert  <bt@teknon.de>
81781
81782         * m4/rename.m4: New file.
81783         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81784
81785 2001-01-01  Jim Meyering  <meyering@lucent.com>
81786
81787         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81788         even on systems with utmpx.h.  It's necessary for the declaration of
81789         utmp's ut_user member.  Reported by Andreas Jaeger.
81790
81791         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81792         available. They are required for the declarations of getgrgid and
81793         getpwuid resp.
81794         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81795         Reported by Andreas Jaeger.
81796
81797 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81798
81799         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81800         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81801         so `make install' also works in VPATH builds.
81802
81803 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81804
81805         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81806         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81807         can be used in subdirectories.
81808
81809 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81810
81811         * lib/modechange.c: Do not assume that mode_t uses the
81812         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81813         the other-execute bit of FOO even if S_IXOTH != 1.
81814
81815         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81816         WOTH, XOTH, ALLM): New macros.
81817         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81818          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81819         Use them.
81820         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81821         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81822         (mode_compile):
81823         No need to use uintmax_t; unsigned long is long enough.
81824         Don't bother to get suffix since we don't use it.
81825
81826 2000-12-26  Jim Meyering  <meyering@lucent.com>
81827
81828         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81829         better with autoheader.
81830
81831 2000-12-24  Jim Meyering  <meyering@lucent.com>
81832
81833         * lib/hash.c (is_prime): Return explicit boolean values.
81834         (hash_get_first): Return NULL to appease Irix5.6's 89.
81835         Reported by Nelson Beebe.
81836
81837 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81838
81839         * lib/localcharset.c (locale_charset): Add support for Win32.
81840
81841 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81842
81843         * lib/physmem.h, lib/physmem.c: New files.
81844
81845         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81846         (noinst_HEADERS): Add physmem.h.
81847
81848         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81849         't' for compatibility with Solaris 8 sort.
81850
81851 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81852
81853         * lib/config.charset: Add support for BeOS.
81854
81855 2000-12-17  Jim Meyering  <meyering@lucent.com>
81856
81857         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81858         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81859
81860 2000-12-16  Jim Meyering  <meyering@lucent.com>
81861
81862         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81863         N and M) would have treated it like `chown N:N FILE'.
81864
81865         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81866
81867 2000-12-16  Jim Meyering  <meyering@lucent.com>
81868
81869         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81870         SHELLS_FILE to a file name that's useful on djgpp systems.
81871         Include stdlib.h.
81872         (ADDITIONAL_DEFAULT_SHELLS): Define.
81873         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81874         Based mostly on a patch from Prashant TR.
81875
81876 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81877
81878         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81879         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81880         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81881
81882 2000-12-08  Andreas Schwab  <schwab@suse.de>
81883
81884         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81885         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81886
81887 2000-12-07  Jim Meyering  <meyering@lucent.com>
81888
81889         * lib/stripslash.c (ISSLASH): Define.
81890         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81891         `/'.
81892         From Prashant TR.
81893
81894         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81895         (dir_name_r): Declare this function as static.
81896         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81897         manifest itself on a name containing a mix of slashes and
81898         backslashes.
81899         Make this function work with names starting with a DOS-style
81900         drive letter and colon prefix.
81901         (dir_name): Append `.' if necessary.
81902         Based mostly on patches from Prashant TR and Eli Zaretskii.
81903
81904         * lib/dirname.h (dir_name_r): Remove prototype.
81905
81906 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81907
81908         * m4/off_t-format.m4: Remove this file.
81909         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81910
81911 2000-12-06  Jim Meyering  <meyering@lucent.com>
81912
81913         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81914         replacement strtoull, we may well need the replacement strtoul, too.
81915         Check for declarations of strtoul and strtoull.
81916         Check for strtol.  Mainly as a cue to cause automake to include
81917         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81918         Check for limits.h -- strtol.c needs it.
81919
81920 2000-12-05  Jim Meyering  <meyering@lucent.com>
81921
81922         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81923
81924 2000-12-04  Jim Meyering  <meyering@lucent.com>
81925
81926         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81927         Also include memory.h, stdlib.h, unistd.h if appropriate.
81928         Reported by Andreas Jaeger (conflicting declaration of malloc).
81929
81930 2000-12-02  Jim Meyering  <meyering@lucent.com>
81931
81932         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81933         * m4/jm-macros.m4 (jm_MACROS): require it.
81934
81935 2000-12-02  Jim Meyering  <meyering@lucent.com>
81936
81937         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81938
81939 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81940
81941         * lib/memrchr.c: Include <config.h> before any system include file.
81942
81943 2000-11-30  Jim Meyering  <meyering@lucent.com>
81944
81945         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81946
81947 2000-11-30  Jim Meyering  <meyering@lucent.com>
81948
81949         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81950
81951 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81952
81953         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81954
81955 2000-11-26  Jim Meyering  <meyering@lucent.com>
81956
81957         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81958
81959 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81960
81961         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81962         size of (size_t) -1; it's not portable.
81963
81964 2000-11-17  Jim Meyering  <meyering@lucent.com>
81965
81966         * lib/strstr.c: Update from GNU libc.
81967
81968 2000-11-17  Akim Demaille  <akim@epita.fr>
81969
81970         * lib/obstack.h: Formatting changes.
81971         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81972         prevent type checking.
81973         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81974         cast the value to (void *): assigning a `foo *' to a `void *'
81975         variable is valid.
81976         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81977
81978 2000-11-16  Jim Meyering  <meyering@lucent.com>
81979
81980         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81981
81982 2000-11-11  Jim Meyering  <meyering@lucent.com>
81983
81984         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81985
81986 2000-11-10  Jim Meyering  <meyering@lucent.com>
81987
81988         * lib/obstack.h: Update from GNU libc.
81989         * lib/obstack.c: Likewise.
81990
81991 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81992
81993         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81994
81995 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81996
81997         * lib/getusershell.c (setusershell): Use rewind rather than
81998         fseek/fseeko, to avoid configuration hassles with fseeko.
81999         Don't bother opening SHELLS_FILE if shellstream is NULL;
82000         it's not necessary.
82001
82002 2000-11-05  Jim Meyering  <meyering@lucent.com>
82003
82004         * lib/makepath.h (make_dir): Declare.
82005         * lib/makepath.c (make_dir): Remove `static' attribute.
82006         Tweak a comment.
82007
82008 2000-11-04  Jim Meyering  <meyering@lucent.com>
82009
82010         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82011
82012 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82013
82014         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82015         last one in a bucket, advance to the next bucket.
82016
82017 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82018
82019         * lib/fnmatch.c: Do not comment out all the code if we are using
82020         the GNU C library, because in some cases we are replacing buggy
82021         code in the GNU C library itself.
82022
82023 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82024
82025         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82026         (regex_compile): Catch bogus \(\1\).
82027
82028 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82029
82030         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82031         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82032         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82033
82034 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82035
82036         * lib/error.h, getline.h, modechange.h:
82037         Remove "2000" from Copyright line, as the file hasn't been
82038         changed this year other than in the copyright notice.
82039
82040         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82041         was changed this year.
82042
82043 2000-10-29  Jim Meyering  <meyering@lucent.com>
82044
82045         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82046         renaming.
82047         * m4/ls-mntd-fs.m4: Likewise
82048
82049 2000-10-29  Jim Meyering  <meyering@lucent.com>
82050
82051         * lib/xstat.in: Fix grammar in comment.
82052
82053 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82054
82055         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82056         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82057         doesn't define __restrict_arr.
82058
82059 2000-10-28  Jim Meyering  <meyering@lucent.com>
82060
82061         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82062         (jm_PREREQ_MEMCHR): New function.
82063
82064 2000-10-28  Jim Meyering  <meyering@lucent.com>
82065
82066         * lib/memchr.c: Update from libc.
82067         Adjust for portability:
82068         [HAVE_STDLIB_H]: Include stdlib.h.
82069         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82070         Undef __memchr, too.
82071         [!weak_alias]: Define __memchr to memchr.
82072
82073         * lib/regex.c: Update from libc.
82074         * lib/regex.h: Likewise.
82075         * lib/getopt1.c: Likewise.
82076         * lib/memcmp.c: Likewise.
82077
82078         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82079         Avoid using fseek, when possible -- it's broken by design.
82080         Patch by Ulrich Drepper.
82081
82082 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82083
82084         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82085         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82086         Giving in to popular pressure to shut up the compiler with casts.
82087
82088 2000-10-26  Jim Meyering  <meyering@lucent.com>
82089
82090         * lib/strftime.c: Update from libc.
82091
82092 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82093
82094         * regex.c: More `unsigned char' -> `re_char' changes.
82095         Also change several `int' into `re_wchar_t'.
82096         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82097         (PUSH_FAILURE_POINTER): Don't cast any more.
82098         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82099         We want GCC to complain, since this piece of code makes
82100         re_match non-reentrant, which *should* be fixed.
82101         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82102         (EXTEND_BUFFER): Use RETALLOC.
82103         (SET_LIST_BIT): Don't cast.
82104         (re_wchar_t): New type.
82105         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82106         that those two functions will always properly return.
82107         (IMMEDIATE_QUIT_CHECK): Cast to void.
82108         (analyse_first): Use recursion rather than an explicit stack.
82109         (re_compile_fastmap): Can't fail anymore.
82110         (re_search_2): Don't check re_compile_fastmap for failure.
82111         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82112         Now also sets the new value (passed in a new argument).
82113         (re_match_2_internal): Use it.
82114         Also, use a new var `reg' of type size_t when looping through regs
82115         rather than reuse the inappropriate `mcnt'.
82116
82117 2000-10-25  Jim Meyering  <meyering@lucent.com>
82118
82119         * lib/obstack.c: Update from libc.
82120
82121 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82122
82123         * regex.c (regex_compile): Change the way of handling a range from
82124         a char less than 256 to a char not less than 256.
82125
82126 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82127
82128         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82129         NT-Emacs only.
82130         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82131         so that re_search functions only quit when callers expect them to.
82132
82133 2000-10-23  Jim Meyering  <meyering@lucent.com>
82134
82135         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82136         wrong.  That set_locale call must not have any side effects.
82137         From Paul Eggert.
82138
82139 2000-10-22  Jim Meyering  <meyering@lucent.com>
82140
82141         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82142         [CYCLIC]: Remove now-unused definition.
82143
82144         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82145         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82146         Suggestion from Ulrich Drepper.
82147
82148 2000-10-21  Jim Meyering  <meyering@lucent.com>
82149
82150         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82151         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82153
82154 2000-10-21  Jim Meyering  <meyering@lucent.com>
82155
82156         * lib/dirname.c (memrchr): Declare if necessary.
82157         (dir_name): Remove the restriction that there be no
82158         trailing slashes.  Now, this code skips past them, effectively
82159         ignoring them.
82160         [TEST_DIRNAME] (main): New unit tests.
82161
82162         * lib/memrchr.c: New file from GNU libc.
82163         Undef __memrchr, too.
82164         [!weak_alias]: Define __memrchr to memrchr.
82165         Guard weak_alias use with `#ifdef weak_alias'.
82166
82167 2000-10-21  Jim Meyering  <meyering@lucent.com>
82168
82169         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82170         (dir_name): Use dir_name_r.
82171         * lib/dirname.h (dir_name_r): Declare it.
82172
82173 2000-10-17  Jim Meyering  <meyering@lucent.com>
82174
82175         * lib/quote.h (PARAMS): Define and use.
82176         Reported by Akim Demaille.
82177
82178         * lib/getopt.c: Update from libc.
82179
82180 2000-10-16  Jim Meyering  <meyering@lucent.com>
82181
82182         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82183         setlocale.
82184         From Jan Fedak.
82185
82186 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82187
82188         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82189
82190 2000-09-25  Jim Meyering  <meyering@lucent.com>
82191
82192         * lib/md5.h (rol): Define (from GnuPG).
82193
82194         * lib/sha.c: Give credit (GnuPG) where due.
82195         (M): Use rol rather than open-coding it.
82196         Add a FIXME comment.
82197
82198 2000-09-21  Jim Meyering  <meyering@lucent.com>
82199
82200         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82201         Reported by Michael Stone.
82202
82203 2000-09-20  Jim Meyering  <meyering@lucent.com>
82204
82205         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82206         (noinst_HEADERS): Add sha.h.
82207         Based on code from Scott G. Miller and from GnuPG.
82208
82209 2000-09-18  Jim Meyering  <meyering@lucent.com>
82210
82211         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82212         LIBS. Otherwise, everyone ends up linking with -lelf for some
82213         configurations.
82214         Reported by Mike Stone.
82215
82216 2000-09-15  Jim Meyering  <meyering@lucent.com>
82217
82218         * lib/regex.c: Update from libc.
82219
82220 2000-09-10  Jim Meyering  <meyering@lucent.com>
82221
82222         * lib/getopt.c (_getopt_internal): Update from glibc.
82223
82224 2000-09-09  Jim Meyering  <meyering@lucent.com>
82225
82226         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82227         think it should be used as a general replacement for isascii.
82228         * lib/fnmatch.c: Likewise.
82229         * lib/mbswidth.c: Likewise
82230         * lib/regex.c: Likewise.
82231
82232         Don't use atoi.
82233         * lib/userspec.c: Include sys/param.h and limits.h.
82234         Include xstrtol.h.
82235         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82236         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82237         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82238         UID, GID.  Check range.
82239
82240 2000-09-06  Jim Meyering  <meyering@lucent.com>
82241
82242         * lib/getopt.c (_getopt_internal): Update from glibc.
82243
82244 2000-08-30  Jim Meyering  <meyering@lucent.com>
82245
82246         * lib/strftime.c: Merge in changes from GNU libc.
82247
82248 2000-08-26  Jim Meyering  <meyering@lucent.com>
82249
82250         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82251         * m4/fpending.m4: New file.
82252
82253 2000-08-26  Jim Meyering  <meyering@lucent.com>
82254
82255         * lib/closeout.c: Include "__fpending.h".
82256         (close_stdout_status): Return right away if there's nothing to flush.
82257
82258         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82259         * lib/__fpending.c: New file.
82260         * lib/__fpending.h: New file.
82261
82262 2000-08-20  Jim Meyering  <meyering@lucent.com>
82263
82264         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82265         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82266         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82267
82268 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82269
82270         Improve fileutils installation on systems where running
82271         programs (like install) can't be unlinked.
82272         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82273         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82274
82275 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82276
82277         Standardize on "memory exhausted" instead of "Memory exhausted"
82278         or "virtual memory exhausted".
82279         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82280         "virtual memory exhausted".
82281         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82282         our own message.
82283         * lib/userspec.c (parse_user_spec): Likewise.
82284         * lib/bumpalloc.h: comment fix
82285         * lib/same.c, userspec.c: Include xalloc.h.
82286
82287         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82288         not char *const and pointing to a constant array.
82289         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82290         (xrealloc): Comment fix.
82291
82292         * lib/userspec.c (parse_user_spec):
82293         Don't translate a message until just before returning,
82294         to avoid unnecessary translation.
82295
82296 2000-08-07  Jim Meyering  <meyering@lucent.com>
82297
82298         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82299         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82300         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82301         getgroups.c, gethostname.c, getopt.h, group-member.c,
82302         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82303         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82304         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82305         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82306         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82307         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82308         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82309         yesno.c: Back out Copyright date changes for each file with no change
82310         this year.  This eases coordination with other programs using the same
82311         source code modules.  From Paul Eggert.
82312
82313 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82314
82315         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82316         not char, for compatibility with glibc 2.1.3 strftime.c.
82317
82318 2000-08-03  Greg McGary  <greg@mcgary.org>
82319
82320         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82321         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82322         (EXTEND_BUFFER): Use them.
82323
82324 2000-08-01  Jim Meyering  <meyering@lucent.com>
82325
82326         * lib/dirname.c (ISSLASH): Define.
82327         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82328         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82329         both `\' and `/' may be use as path separators.
82330         Based on a patch from Prashant TR.
82331
82332 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82333
82334         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82335         slot vector a constant, since it might get modified.
82336
82337 2000-07-31  Jim Meyering  <meyering@lucent.com>
82338
82339         * lib/xmalloc.c: Use `virtual memory exhausted', not
82340         `Memory exhausted'.
82341         * lib/obstack.c (print_and_abort): Likewise.
82342
82343 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82344
82345         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82346         buffer, so that the caller can always quote one small
82347         component of a "memory exhausted" message in slot 0.
82348         From a suggestion by Jim Meyering.
82349
82350 2000-07-30  Jim Meyering  <meyering@lucent.com>
82351
82352         * lib/makepath.c (make_path): Quote the other instance, too.
82353
82354         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82355         (STATIC_BUF_SIZE): Define.
82356         (quotearg_n_options): Use only statically allocated storage when
82357         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82358         than STATIC_BUF_SIZE.
82359
82360 2000-07-29  Jim Meyering  <meyering@lucent.com>
82361
82362         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82363         * lib/dirname.c (dir_name): Likewise.
82364
82365         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82366         `/'.
82367
82368         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82369         (dir_name): Assert that there are no trailing slashes.
82370
82371 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82372
82373         * lib/mbswidth.h (mbswidth): Add a flags argument.
82374         (mbswidth): New declaration.
82375         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82376         * lib/mbswidth.c (mbswidth): Add a flags argument.
82377         (mbsnwidth): New function.
82378
82379 2000-07-24  Jim Meyering  <meyering@lucent.com>
82380
82381         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82382
82383 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82384
82385         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82386
82387 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82388
82389         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82390         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82391         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82392         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82393         invoke multibyte primitives.
82394
82395 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82396
82397         * lib/quotearg.c:
82398         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82399         so that mbstate_t is always defined.
82400
82401         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82402         be 1 in at least one GCC installation, and this configuration
82403         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82404         performance on hosts that have mbrtowc but have only unibyte
82405         locales, but I assume these hosts are rare.
82406
82407 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82408
82409         * lib/mbswidth.c (_XOPEN_SOURCE):
82410         Don't define; this causes problems on Solaris 7.
82411         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82412
82413 2000-07-23  Jim Meyering  <meyering@lucent.com>
82414
82415         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82416         too: getgrgid, getpwuid, getuid.
82417
82418 2000-07-23  Jim Meyering  <meyering@lucent.com>
82419
82420         * lib/basename.c (base_name): Add an assertion.
82421
82422 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82423
82424         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82425         shadow its mbsinit function.
82426
82427 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82428
82429         * lib/mbswidth.h: New file.
82430         * lib/mbswidth.c: New file.
82431         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82432         (noinst_HEADERS): Add mbswidth.h.
82433
82434 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82435
82436         * lib/config.charset: Add support for FreeBSD. Improve support for
82437         HP-UX and IRIX 6.
82438
82439 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82440
82441         * m4/mbswidth.m4: New file.
82442         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82443
82444 2000-07-15  Jim Meyering  <meyering@lucent.com>
82445
82446         * lib/makepath.c: Include quote.h.
82447         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82448         corresponding argument in a `quote (...)' call.
82449         Give better diagnostics.
82450
82451         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82452         (noinst_HEADERS): Add quote.h.
82453
82454         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82455         from tar's src/misc.c.
82456         * lib/quote.h: New file.  Prototypes for same.
82457
82458 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82459
82460         From a suggestion by Bruno Haible.
82461         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82462         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82463         to decide whether to define the BeOS workaround macro;
82464         this adjusts to the change to AC_MBSTATE_T.
82465
82466 2000-07-14  Jim Meyering  <meyering@lucent.com>
82467
82468         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82469         jm_AC_TYPE_UINTMAX_T.
82470
82471 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82472
82473         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82474
82475         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82476         quotearg_buffer_restyled): Add support for
82477         clocale_quoting_style.  Undo previous change to
82478         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82479         and "{RIGHT QUOTATION MARK}" msgids.
82480
82481 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82482
82483         From a suggestion by Bruno Haible.
82484         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82485         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82486         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82487         and mbstate_t, to a single-part test that simply defines mbstate_t.
82488         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82489         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82490
82491 2000-07-10  Jim Meyering  <meyering@lucent.com>
82492
82493         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82494
82495         * m4/gnu-source.m4: Output to confdefs.h directly.
82496         Suggestion from Akim Demaille.
82497
82498 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82499
82500         The old behavior of quoting `like this' doesn't look good with
82501         newer, ISO-style fonts.  See:
82502         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82503
82504         Instead, quote "like this" by default.  Let the translator
82505         tailor the locale-specific quoting behavior by providing
82506         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82507
82508         * lib/quotearg.c (N_): New macro.
82509         (gettext_default): New function.
82510         (quotearg_buffer_restyled): Use
82511         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82512         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82513
82514 2000-07-09  Jim Meyering  <meyering@lucent.com>
82515
82516         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82517         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82518
82519         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82521
82522 2000-07-09  Jim Meyering  <meyering@lucent.com>
82523
82524         * lib/Most files: Update copyright dates to include 2000.
82525
82526 2000-07-08  Jim Meyering  <meyering@lucent.com>
82527
82528         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82529         if not defined.
82530         (xgethostname): Remove now-unnecessary #ifdef.
82531         Move declaration of `err' into loop where it's used.
82532
82533 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82534         and Bruno Haible  <haible@clisp.cons.org>
82535
82536         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82537         only if the test for an object-type mbstate_t fails.  This
82538         prevents us from mistakenly reporting that mbstate_t is a
82539         system object type after we "#define mbstate_t int" to work
82540         around its lack.
82541
82542 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82543         and Bruno Haible  <haible@clisp.cons.org>
82544
82545         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82546
82547 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82548
82549         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82550         to strerror_r.
82551         Include <ctype.h> for use of isalpha.
82552
82553 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82554
82555         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82556         by allocating a larger buffer. Test the gethostname return value for
82557         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82558         returns an error and ENAMETOOLONG isn't defined.
82559
82560 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82561
82562         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82563         dimension.
82564
82565 2000-07-04  Jim Meyering  <meyering@lucent.com>
82566
82567         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82568         of the deprecated AC_CHECKING.
82569
82570 2000-07-04  Jim Meyering  <meyering@lucent.com>
82571
82572         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82573         Reported by Bruno Haible.
82574
82575 2000-07-04  Jim Meyering  <meyering@lucent.com>
82576
82577         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82578         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82579         lacks mbrtowc.
82580
82581 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82582
82583         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82584         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82585
82586 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82587         and Bruno Haible  <haible@clisp.cons.org>
82588
82589         * lib/quotearg.c (mbrtowc):
82590         Assign to *pwc, and return 1 only if result is nonzero.
82591         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82592
82593 2000-07-03  Jim Meyering  <meyering@lucent.com>
82594
82595         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82596
82597 2000-07-03  Jim Meyering  <meyering@lucent.com>
82598
82599         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82600         This is necessary to get a definition of e.g., UTMP_FILE on
82601         HP-UX 10.20.
82602         From Bob Proulx.
82603
82604 2000-07-02  Jim Meyering  <meyering@lucent.com>
82605
82606         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82607
82608         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82609         AC_LIBOBJ(function_name).
82610         * m4/chown.m4: Likewise.
82611         * m4/fnmatch.m4: Likewise.
82612         * m4/ftruncate.m4: Likewise.
82613         * m4/getgroups.m4: Likewise.
82614         * m4/getline.m4: Likewise.
82615         * m4/group-member.m4: Likewise.
82616         * m4/jm-macros.m4: Likewise.
82617         * m4/lstat.m4: Likewise.
82618         * m4/malloc.m4: Likewise.
82619         * m4/memcmp.m4: Likewise.
82620         * m4/nanosleep.m4: Likewise.
82621         * m4/putenv.m4: Likewise.
82622         * m4/realloc.m4: Likewise.
82623         * m4/regex.m4: Likewise.
82624         * m4/stat.m4: Likewise.
82625         * m4/strftime.m4: Likewise.
82626
82627 2000-07-02  Jim Meyering  <meyering@lucent.com>
82628
82629         * lib/quotearg.c (mbstate_t): Don't define here.
82630
82631 2000-07-02  Jim Meyering  <meyering@lucent.com>
82632
82633         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82634
82635 2000-07-01  Jim Meyering  <meyering@lucent.com>
82636
82637         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82638
82639 2000-07-01  Jim Meyering  <meyering@lucent.com>
82640
82641         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82642         problem.
82643
82644 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82645
82646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82647         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82648
82649 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82650
82651         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82652         per change in ../m4/ls-mntd-fs.m4.
82653         (read_filesystem_list): Ignore symbolic links.
82654
82655 2000-06-29  Jim Meyering  <meyering@lucent.com>
82656
82657         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82658         for declaration of strcmp.
82659
82660         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82661
82662         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82663         Avoid warning by casting result to `char *' to remove `const'.
82664
82665 2000-06-28  Jim Meyering  <meyering@lucent.com>
82666
82667         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82668         included by quotearg.c, for which we perform this test.  From
82669         Bruno Haible.
82670
82671 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82672
82673         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82674         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82675         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82676
82677 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82678
82679         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82680
82681 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82682
82683         savedir now sets errno on failure and invokes xmalloc to get memory.
82684         Fix a couple of other minor bugs while we're at it.
82685
82686         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82687         (NAMLEN): Remove macro.
82688         (malloc, realloc): Remove decls.
82689         (stpcpy): Likewise.
82690         ("xalloc.h"): Include.
82691         (NAME_SIZE_DEFAULT): New macro.
82692         (savedir): Use xmalloc / xrealloc to allocate memory.
82693         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82694         Skip "" directory entries.
82695         Use strlen to calculate directory entry length, since the old method
82696         is rarely used these days and isn't worth supporting.
82697         Don't use a pointer after freeing it.
82698         Check for integer overflow when calculating allocation size.
82699         Use memcpy to copy entries, instead of stpcpy.
82700         Set errno properly when returning NULL.
82701         Check for readdir error.
82702
82703 2000-06-26  Jim Meyering  <meyering@lucent.com>
82704
82705         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82706
82707 2000-06-25  Jim Meyering  <meyering@lucent.com>
82708
82709         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82710         Linux header bug when _XOPEN_SOURCE is defined to 500.
82711
82712 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82713
82714         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82715         deficiency.
82716
82717 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82718
82719         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82720         Include xalloc.h.
82721         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82722
82723 2000-06-24  Jim Meyering  <meyering@lucent.com>
82724
82725         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82726         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82727         for which strerror does return char*, but which lacks a conveniently
82728         accessible declaration of the function.  If the compile-test says
82729         strerror_r doesn't work, then resort to a `run'-test that works on
82730         BeOS and segfaults on DEC Unix.
82731
82732 2000-06-24  Jim Meyering  <meyering@lucent.com>
82733
82734         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82735
82736 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82737
82738         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82739         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82740
82741 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82742
82743         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82744         (mbrtowc, mbstate_t): Define substitutes if
82745         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82746         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82747         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82748
82749 2000-06-23  Jim Meyering  <meyering@lucent.com>
82750
82751         * m4/afs.m4: Add missing AC_MSG_RESULT.
82752         Reported by Bruno Haible.
82753
82754         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82755         Suggestion from Bruno Haible.
82756
82757 2000-06-23  Jim Meyering  <meyering@lucent.com>
82758
82759         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82760
82761 2000-06-21  Jim Meyering  <meyering@lucent.com>
82762
82763         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82764
82765 2000-06-21  Jim Meyering  <meyering@lucent.com>
82766
82767         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82768         (noinst_HEADERS): Add getstr.h.
82769
82770         * lib/getline.c (getstr): Move into a separate file.
82771         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82772         the following changes: new parameter, delim2; both delim[12]
82773         parameters have type `int', not `char'.  The latter would lose
82774         with 8-bit delimiters.
82775         * lib/getstr.h: New file.
82776
82777 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82778
82779         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82780         than 1024, return a memory chunk of least possible size, instead
82781         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82782         Use free/xmalloc instead of xrealloc to avoid copying for very long
82783         paths.
82784
82785 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82786
82787         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82788         the empty string.
82789
82790 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82791
82792         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82793         address, not strdup.  Include <stdlib.h> and don't declare free().
82794
82795 2000-06-19  Jim Meyering  <meyering@lucent.com>
82796
82797         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82798
82799 2000-06-18  Jim Meyering  <meyering@lucent.com>
82800
82801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82802
82803         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82804         `checking whether...' message to be consistent with that of the
82805         lstat test.
82806
82807 2000-06-18  Jim Meyering  <meyering@lucent.com>
82808
82809         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82810         Besides, these days every porting target provides a mkdir function.
82811
82812         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82813         needed. (this snippet comes from src/system.h).
82814
82815 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82816
82817         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82818
82819 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82820
82821         * lib/human.c (adjust_value): New function.
82822         (human_readable_inexact): Apply rounding style even when
82823         printing approximate values.
82824
82825 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82826
82827         * lib/human.c (human_readable_inexact): Allow an input block
82828         size that is not a multiple of the output block size, and vice versa.
82829         Reported by Piergiorgio Sartor.
82830
82831 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82832
82833         * lib/getdate.y (get_date): Apply relative times after time
82834         zone indicator, not before.  Reported by Todd A. Jacobs.
82835
82836 2000-06-13  Jim Meyering  <meyering@lucent.com>
82837
82838         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82839
82840         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82841
82842 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82843
82844         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82845
82846 2000-06-12  Jim Meyering  <meyering@lucent.com>
82847
82848         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82849         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82850         optional argument.
82851         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82852         the optional argument, `lib'.
82853
82854 2000-06-08  Jim Meyering  <meyering@lucent.com>
82855
82856         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82857
82858 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82859
82860         Rewrite largefile configuration so that we don't need to run
82861         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82862         AC_CANONICAL_HOST in configure.in -- jmm]
82863
82864         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82865         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82866         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82867         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82868         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82869         All uses changed.
82870         Instead of inspecting the output of getconf, try to compile the
82871         test program without and with the macro definition.
82872         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82873         for getconf.  Instead, check for the needed flags by compiling
82874         test programs.
82875
82876 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82877
82878         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82879
82880 2000-06-04  Jim Meyering  <meyering@lucent.com>
82881
82882         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82883         SunOS 4.1.4 for which gid_t is an unsigned type.
82884
82885 2000-06-03  Jim Meyering  <meyering@lucent.com>
82886
82887         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82888         now that autoconf requires that.
82889
82890         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82891         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82892         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82893
82894 2000-06-03  Jim Meyering  <meyering@lucent.com>
82895
82896         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82897
82898 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82899
82900         * m4/glibc21.m4: New file.
82901         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82902
82903 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82904
82905         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82906         newer, don't install charset.alias.
82907         * lib/config.charset: Change the Linux/glibc rules so they become empty
82908         on glibc-2.1 or newer.
82909
82910 2000-06-02  Jim Meyering  <meyering@lucent.com>
82911
82912         * lib/mountlist.c: Back out last change.  Instead, do this...
82913         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82914         me_dummy member using the same `ignore'-testing code.
82915         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82916         fs_type strings.
82917         From Mark D. Roth.
82918
82919 2000-05-29  Jim Meyering  <meyering@lucent.com>
82920
82921         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82922         mounts with the `ignore' attribute.  Based on a patch from
82923         Mark D. Roth.
82924
82925 2000-05-28  Jim Meyering  <meyering@lucent.com>
82926
82927         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82928         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82929         * m4/stat.m4: Likewise.
82930         * m4/lstat.m4: Likewise.
82931         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82932
82933         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82934         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82935
82936 2000-05-26  Jim Meyering  <meyering@lucent.com>
82937
82938         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82939
82940 2000-05-24  Jim Meyering  <meyering@lucent.com>
82941
82942         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82943         autoconf requires that.
82944         * m4/lib-check.m4: Likewise.
82945         * m4/jm-macros.m4: Likewise.
82946         * m4/strftime.m4: Likewise.
82947
82948         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82949         AC_CHECK_DECLS, now that autoconf requires that.
82950
82951 2000-05-22  Jim Meyering  <meyering@lucent.com>
82952
82953         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82954         * m4/lstat.m4: Likewise.
82955
82956 2000-05-22  Jim Meyering  <meyering@lucent.com>
82957
82958         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82959
82960 2000-05-20  Jim Meyering  <meyering@lucent.com>
82961
82962         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82963         (jm_PREREQ): Use it.
82964
82965 2000-05-18  Jim Meyering  <meyering@lucent.com>
82966
82967         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82968         back, too, since it may have been modified by allocate_entry.
82969         (hash_delete): Rewrite to use neither the assignment operator
82970         nor the comma operator in an if-expression.
82971
82972 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82973
82974         * lib/closeout.c:
82975         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82976         Remove; no longer needed.
82977         "quotearg.h": Add include.
82978         (file_name): Do not bother to explicitly initialize to NULL; it's less
82979         efficient on some hosts.
82980         (close_stdout_status): Remove test as to whether stdout was already
82981         closed; it breaks for the case "echo x | sort >&-".
82982         Quote file name colons.
82983         Do not assume that _("write error") lacks format strings.
82984
82985 2000-05-15  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/version-etc.c (version_etc_copyright): Update the copyright
82988         string used in all --version output.
82989
82990 2000-05-14  Jim Meyering  <meyering@lucent.com>
82991
82992         * lib/closeout.c (close_stdout_set_file_name): New function.
82993         (close_stdout_status): Use new file-scoped global.
82994         Return right away if fstat says the stdout file descriptor is invalid.
82995         * lib/closeout.h (close_stdout_set_file_name): Declare.
82996
82997 2000-05-10  Jim Meyering  <meyering@lucent.com>
82998
82999         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83000         (close_stdout_set_status): New function.
83001         * lib/closeout.h (close_stdout_set_status): Declare.
83002
83003 2000-05-09  Jim Meyering  <meyering@lucent.com>
83004
83005         * m4/gettext.m4: Rename this...
83006         * m4/libintl.m4: ...to this.
83007
83008 2000-05-08  Jim Meyering  <meyering@lucent.com>
83009
83010         * lib/long-options.c: Don't include closeout.h.
83011         (parse_long_options): Don't call close_stdout for --version.
83012
83013 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83014
83015         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83016         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83017         2.1.3 bug.  This avoids a clash when files like regex.c define
83018         _GNU_SOURCE.
83019
83020 2000-05-06  Jim Meyering  <meyering@lucent.com>
83021
83022         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83023         (AC_REPLACE_FUNCS): Add strnlen.
83024
83025         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83026         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83027
83028         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83029         AC_SEARCH_LIBS call for nanosleep.
83030         (LIB_NANOSLEEP): Set and AC_SUBST.
83031
83032 2000-05-06  Jim Meyering  <meyering@lucent.com>
83033
83034         * lib/strnlen.c: Undefine __strnlen and strnlen.
83035         [!weak_alias]: Define __strnlen to strnlen.
83036
83037         * lib/atexit.c: New file, from libiberty.
83038
83039 2000-05-06  Jim Meyering  <meyering@lucent.com>
83040
83041         * lib/closeout.c (close_stdout_status): Also check for errors on the
83042         stderr stream.
83043
83044 2000-05-05  Jim Meyering  <meyering@lucent.com>
83045
83046         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83047         AC_SEARCH_LIBS call for clock_gettime.
83048         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83049
83050         * m4/search-libs.m4: Update from autoconf.
83051
83052         su doesn't work on Solaris 2.6.
83053         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83054         <shadow.h>.  Reported by Dragos Harabor.
83055
83056 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83057
83058         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83059         memcpy instead of xmalloc, xrealloc, path_concat.
83060         (locale_charset): Treat empty environment variables as absent.
83061         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83062
83063 2000-05-04  Jim Meyering  <meyering@lucent.com>
83064
83065         * lib/getopt.c: Update from glibc.
83066         * lib/obstack.c: Likewise.
83067         * lib/obstack.h: Likewise.
83068         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83069         file
83070
83071         * lib/regex.h: Likewise.
83072         * lib/strndup.c: Likewise.
83073         * lib/strnlen.c: New file, from glibc.
83074
83075 2000-05-03  Jim Meyering  <meyering@lucent.com>
83076
83077         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83078
83079 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83080
83081         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83082         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83083         compile-time test, rather than inspecting host and OS, to
83084         decide whether to define _LARGEFILE_SOURCE.
83085
83086 2000-05-01  Jim Meyering  <meyering@lucent.com>
83087
83088         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83089
83090         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83091         Based on a patch from Bruno Haible.
83092
83093 2000-05-01  Jim Meyering  <meyering@lucent.com>
83094
83095         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83096
83097 2000-04-29  Jim Meyering  <meyering@lucent.com>
83098
83099         * lib/path-concat.c: Declare strdup only if it's not defined.
83100         * lib/canon-host.c: Likewise.
83101
83102 2000-04-28  Jim Meyering  <meyering@lucent.com>
83103
83104         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83105         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83106         is included first, then limits.h is included by locale.h by libintl.h.
83107         From John David Anglin.
83108
83109 2000-04-25  Jim Meyering  <meyering@lucent.com>
83110
83111         * lib/makepath.c (S_IRWXUGO): Define.
83112         (make_path): Always perform explicit chmod if MODE specifies any
83113         of the `special' permission bits.  Prompted by a bug report against
83114         install from Mate Wierdl and Joost van Baal.
83115
83116 2000-04-18  Jim Meyering  <meyering@lucent.com>
83117
83118         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83119         (jm_PREREQ): Use it.
83120
83121 2000-04-18  Jim Meyering  <meyering@lucent.com>
83122
83123         * lib/README: New file.
83124
83125         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83126         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83127
83128 2000-04-17  Jim Meyering  <meyering@lucent.com>
83129
83130         Get it right :-)
83131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83132         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83133         Suggestion from Akim Demaille.
83134
83135 2000-04-17  Jim Meyering  <meyering@lucent.com>
83136
83137         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83138         the definition of it to rpl_strftime also defined-away the system's
83139         declaration.
83140
83141 2000-04-15  Jim Meyering  <meyering@lucent.com>
83142
83143         Use `C' to denote so-called `contiguous' files, the same way
83144         that tar does.
83145         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83146         (ftypelet): Use S_ISCTG.
83147         From Michael Deutschmann.
83148
83149 2000-04-14  Jim Meyering  <meyering@lucent.com>
83150
83151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83152         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83153         clobbered.
83154
83155 2000-04-14  Jim Meyering  <meyering@lucent.com>
83156
83157         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83158
83159 2000-04-13  Jim Meyering  <meyering@lucent.com>
83160
83161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83162         AH_VERBATIM to insert required #ifndef into config.h.in.
83163         Suggestion from Akim Demaille.
83164
83165 2000-04-12  Jim Meyering  <meyering@lucent.com>
83166
83167         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83168         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83169         Christian Krackowizer.
83170
83171         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83172         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83173         (AC_SYS_LARGEFILE): Require.
83174         (AM_C_PROTOTYPES): Require.
83175
83176 2000-04-08  Jim Meyering  <meyering@lucent.com>
83177
83178         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83179         names don't conflict.  Reported by Eli Zaretskii.
83180
83181 2000-04-07  Jim Meyering  <meyering@lucent.com>
83182
83183         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83184         sys/types.h, to work around system header problems on AIX 3.2.5.
83185         From Bruno Haible.
83186
83187 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83188
83189         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83190         bug.  Deal with the different error behavior of Irix iconv.
83191
83192 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83193
83194         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83195         IRIX if the installer said otherwise.
83196
83197 2000-04-05  Jim Meyering  <meyering@lucent.com>
83198
83199         Portability tweaks required for ultrix4.3.
83200         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83201         (jm_CHECK_DECLS): Add getutent to the list of functions.
83202         (_jm_DECL_HEADERS): Add utmpx.h.
83203         From John David Anglin.
83204
83205         * m4/strftime.m4: Back out the 2000-04-02 change.
83206         Instead of that change, simply undefine putenv in the test program.
83207
83208 2000-04-05  Jim Meyering  <meyering@lucent.com>
83209
83210         Portability tweaks required for ultrix4.3.
83211         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83212         getutent.
83213         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83214         * lib/canon-host.c: Declare strdup.
83215         * lib/path-concat.c: Likewise.
83216         From John David Anglin.
83217
83218 2000-04-04  Jim Meyering  <meyering@lucent.com>
83219
83220         Be more DOS 8.3-friendly.
83221         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83222         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83223         * lib/Makefile.am: Reflect renaming.
83224         Reported by Eli Zaretskii.
83225
83226         Use a temporary file name that won't clash with `charset.alias'
83227         in the DOS 8.3 name space.
83228         * lib/Makefile.am (charset_tmp): Define.
83229         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83230         (uninstall-local): Likewise.
83231         Reported by Eli Zaretskii.
83232
83233 2000-04-03  Jim Meyering  <meyering@lucent.com>
83234
83235         * m4/gettext.m4: Fix typo in comment.
83236
83237         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83238         textutils/configure.in).  Suggestion from Paul Eggert.
83239         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83240
83241 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83242
83243         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83244         variable in the shell rather than using putenv, which isn't
83245         portable.  This avoids the configure-time inter-test dependency
83246         on the potentially-renamed putenv function.
83247
83248 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83249
83250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83251         before checking struct stat.st_blksize, so that
83252         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83253
83254 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83255
83256         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83257         since strftime.c uses HAVE_STRFTIME to decide whether to use
83258         the underlying strftime.
83259
83260 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83261
83262         * lib/time/strftime.c (my_strftime): Make sure we call the system
83263         strftime, not ourselves, when invoking the underlying strftime.
83264
83265 2000-03-24  Jim Meyering  <meyering@lucent.com>
83266
83267         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83268         (charset_alias): Define.
83269         (install-exec-local): Factor out common code.
83270         (uninstall-local): Split lines longer than 80.
83271         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83272         (SUFFIXES): Define.
83273         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83274         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83275
83276 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83277
83278         * lib/config.charset: Output a line containing "Packages using this
83279         file".
83280         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83281         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83282         ref-del.sed): New rules.
83283
83284 2000-03-17  Jim Meyering  <meyering@lucent.com>
83285
83286         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83287         Otherwise, include <strings.h>
83288
83289 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83290
83291         * lib/unicodeio.c (utf8_wctomb): New function.
83292         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83293         format instead of in UCS-4 with platform dependent endianness.
83294
83295 2000-03-10  Jim Meyering  <meyering@lucent.com>
83296
83297         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83298         From Marco Franzen.
83299
83300 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83301
83302         * lib/savedir.c (savedir): Work even if directory size is
83303         negative; this can happen with some screwy NFS configurations.
83304
83305 2000-03-06  Jim Meyering  <meyering@lucent.com>
83306
83307         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83308         if it's NULL (because we ran out of memory).  From Bruno Haible.
83309
83310 2000-03-05  Jim Meyering  <meyering@lucent.com>
83311
83312         * lib/localcharset.c ("path-concat.h"): Include.
83313         (get_charset_aliases): Use path_concat instead of ANSI string
83314         concatenation.
83315
83316         * lib/unicodeio.h (PARAMS): Define.
83317         Use it to guard prototype.
83318
83319 2000-03-04  Jim Meyering  <meyering@lucent.com>
83320
83321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83322         for lib/localcharset.c.
83323
83324 2000-03-04  Jim Meyering  <meyering@lucent.com>
83325
83326         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83327         installing into it.
83328         (uninstall-local): Uncomment this rule so `make distcheck' works
83329         once again.
83330
83331         * lib/unicodeio.c (<errno.h>): Include it.
83332         (errno): Declare if not defined.
83333
83334         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83335
83336         * lib/config.charset: New version, incorporating remarks from a linux
83337         i18n mailing list.  From Bruno Haible.
83338
83339 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83340
83341         * m4/codeset.m4: New file.
83342         * m4/iconv.m4: New file.
83343         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83344
83345 2000-03-03  Jim Meyering  <meyering@lucent.com>
83346
83347         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83348
83349 2000-03-02  Jim Meyering  <meyering@lucent.com>
83350
83351         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83352         the messages come out on separate lines.
83353
83354         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83355         rather than jm_CHECK_DECLARATIONS.
83356         * m4/decl.m4: Remove now-unused file.
83357
83358         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83359         geteuid.
83360
83361 2000-03-02  Jim Meyering  <meyering@lucent.com>
83362
83363         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83364
83365 2000-03-01  Jim Meyering  <meyering@lucent.com>
83366
83367         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83368         * lib/unicodeio.c: Likewise.
83369
83370 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83371
83372         * lib/config.charset: New file.
83373         * lib/localcharset.c: New file.
83374         * lib/unicodeio.h, lib/unicodeio.c: New files.
83375         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83376         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83377         (noinst_HEADERS): Add unicodeio.h.
83378         (all-local, install-exec-local, charset.alias): New targets.
83379
83380 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83381
83382         * lib/quotearg.c (ALERT_CHAR): New macro.
83383         (quotearg_buffer_restyled): Use it.
83384
83385 2000-02-27  Jim Meyering  <meyering@lucent.com>
83386
83387         * m4/check-decl.m4: Add getenv to the list.
83388
83389 2000-02-27  Jim Meyering  <meyering@lucent.com>
83390
83391         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83392         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83393
83394         * lib/backupfile.c: Guard inclusion of stdlib.h with
83395         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83396         Declare malloc if needed.
83397
83398         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83399         `#ifndef HAVE_DECL..'
83400         now that autoconf always defines the HAVE_DECL_ symbols.
83401         * lib/human.c: Likewise.
83402         * lib/same.c: Likewise.
83403         * lib/strtoumax.c: Likewise.
83404
83405         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83406         declaration check was not run.
83407         * lib/hash.c: Likewise.
83408         * lib/human.c: Likewise.
83409         * lib/same.c: Likewise.
83410         * lib/strtoumax.c: Likewise.
83411
83412         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83413         `.', then first look up the entire `.'-containing string as a login
83414         name.
83415
83416 2000-02-23  Jim Meyering  <meyering@lucent.com>
83417
83418         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83419         in place of my hack.
83420
83421 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83422
83423         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83424         (textint): New typedef.
83425         (parser_control): Member year changed from int to textint.
83426         All uses changed.
83427         (YYSTYPE): Removed; replaced by %union with int and textint members.
83428         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83429         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83430         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83431         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83432         (date, number, to_year): Use width of number in digits, not its value,
83433         to determine whether it's a 2-digit year, or a 2-digit time.
83434         (yylex): Store number of digits of numeric tokens.
83435         Reported by John Kendall.
83436
83437         (parser_control): Changed from struct parser_control to typedef (for
83438         consistency).  All uses changed.
83439
83440         (tID): Removed; not used.
83441         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83442
83443 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83444
83445         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83446         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83447
83448 2000-02-12  Jim Meyering  <meyering@lucent.com>
83449
83450         * lib/userspec.c (ISDIGIT): Define it.
83451         (isdigit): Remove definition.
83452         (is_number): Use ISDIGIT, not isdigit.
83453         <libintl.h>: Include.
83454         (_ and N_): Define.
83455         (parse_user_spec): Mark translatable strings.
83456
83457 2000-02-10  Jim Meyering  <meyering@lucent.com>
83458
83459         With these changes, nanosleep.[ch] are finally enough like the other
83460         lib/* replacement files to compile on a few more losing systems.
83461
83462         * lib/nanosleep.h: Don't include config.h.
83463         Remove prototype from declaration of nanosleep.
83464         (PARAMS): Remove now-unneeded definition.
83465         * lib/nanosleep.c: #undef nanosleep.
83466         (rpl_nanosleep): Rename from nanosleep.
83467
83468 2000-02-10  Jim Meyering  <meyering@lucent.com>
83469
83470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83471         gnu_nanosleep to rpl_nanosleep.
83472
83473 2000-02-09  Jim Meyering  <meyering@lucent.com>
83474
83475         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83476         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83477
83478 2000-02-08  Akim Demaille  <akim@epita.fr>
83479
83480         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83481         `[' and `]' and remove uses of `changequote'.
83482         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83483         (AC_SYS_LARGEFILE): Likewise.
83484         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83485         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83486         of changequote.
83487         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83488         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83489         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83490         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83491
83492 2000-02-05  Jim Meyering  <meyering@lucent.com>
83493
83494         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83495         Remove explicit use of AC_HEADER_TIME.  It is required by
83496         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83497         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83498         in autoconf whereby the expansion of the latter ended up preceding
83499         the expansion of its prerequisite, AC_HEADER_TIME.
83500         Reported by Volker Borchert.
83501
83502 2000-02-03  Jim Meyering  <meyering@lucent.com>
83503
83504         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83505
83506 2000-02-03  Jim Meyering  <meyering@lucent.com>
83507
83508         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83509         rather than with `#if HAVE_UTMPNAME'.
83510
83511 2000-02-02  Jim Meyering  <meyering@lucent.com>
83512
83513         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83514         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83515         Reported by Eli Zaretskii.
83516
83517 2000-02-01  Jim Meyering  <meyering@lucent.com>
83518
83519         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83520
83521 2000-01-31  Jim Meyering  <meyering@lucent.com>
83522
83523         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83524         functions.  Add the time.h and sys/time.h headers along with the
83525         AC_REQUIRE'ment of AC_HEADER_TIME.
83526
83527 2000-01-31  Jim Meyering  <meyering@lucent.com>
83528
83529         * lib/nanosleep.h (nanosleep): Guard declaration with
83530         `#if ! HAVE_DECL_NANOSLEEP'.
83531         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83532         the declaration in that vendor's sys/timers.h.
83533         Reported by Christian Krackowizer.
83534
83535         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83536         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83537         (ISPRINT): Likewise.
83538         Reported by Tom Tromey.
83539
83540 2000-01-30  Jim Meyering  <meyering@lucent.com>
83541
83542         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83543
83544         * m4/prereq.m4 (utmp_includes): Define.
83545         Check for ut_user and ut_name members in both struct utmpx
83546         and struct utmp.
83547
83548 2000-01-30  Jim Meyering  <meyering@lucent.com>
83549
83550         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83551         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83552         header files where only utmpx.ut_user is declared.
83553
83554         * lib/readutmp.h (UT_USER): Define.
83555
83556 2000-01-29  Jim Meyering  <meyering@lucent.com>
83557
83558         * m4/lib-check.m4: New file containing library-related checks from
83559         fileutils and sh-utils (textutils had none).
83560
83561 2000-01-28  Jim Meyering  <meyering@lucent.com>
83562
83563         * m4/perl.m4: Change format of warning message to look more like that
83564         from the missing script.  Suggestion from François Pinard.
83565
83566 2000-01-25  Jim Meyering  <meyering@lucent.com>
83567
83568         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83569         well as time.h in the compile check.
83570         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83571         Fix typo in cross-compiling case: s/yes/no/.
83572
83573 2000-01-23  Jim Meyering  <meyering@lucent.com>
83574
83575         * m4/jm-macros.m4: Move df-related tests here from
83576         fileutils/configure.in
83577
83578         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83579         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83580
83581         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83582         s/space/ac_fsusage_space/.
83583         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83584
83585         * m4/ftruncate.m4: New file (derived from part of
83586         fileutils/configure.in).
83587         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83588         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83589
83590         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83591         AC_SUBST these here, rather than just in sh-util/configure.in, so
83592         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83593         all the same.
83594         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83595         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83596         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83597         (AC_SUBST(POW_LIBM)): Likewise.
83598         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83599
83600 2000-01-23  Jim Meyering  <meyering@lucent.com>
83601
83602         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83603         obstack.c.
83604
83605 2000-01-22  Jim Meyering  <meyering@lucent.com>
83606
83607         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83608
83609         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83610
83611         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83612         configure.in
83613         (AC_CHECK_HEADERS): Likewise for sh-utils.
83614         (AC_CHECK_HEADERS): Likewise for textutils.
83615         Merge the three lists of headers.
83616
83617         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83618         from fileutils' configure.in.
83619
83620         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83621         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83622         check-decl.m4.
83623
83624         * m4/check-decl.m4: Use #if rather than #ifdef.
83625         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83626         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83627         (_jm_DECL_HEADERS): Define new function.
83628         (jm_CHECK_DECLARATIONS): Require it.
83629
83630 2000-01-22  Jim Meyering  <meyering@lucent.com>
83631
83632         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83633         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83634         Required for some AIX systems.  Reported by Christian Krackowizer.
83635         [TESTING] (main): New function.
83636
83637         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83638         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83639         letters.
83640
83641         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83642         iswprint.
83643
83644         * lib/strverscmp.c (ISDIGIT): Define.
83645         (strverscmp): Use ISDIGIT, not isdigit.
83646
83647 2000-01-19  Jim Meyering  <meyering@lucent.com>
83648
83649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83650         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83651         defines `struct timespec' in <sys/time.h>
83652
83653         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83654         Thanks to Akim for explaining.
83655
83656 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83657
83658         * lib/nanosleep.c (nanosleep):
83659         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83660         POSIX.1 doesn't require SA_INTERRUPT and some systems
83661         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83662         it's been part of POSIX.1 since day 1 (in 1988).
83663
83664 2000-01-17  Jim Meyering  <meyering@lucent.com>
83665
83666         * lib/interlock: Remove unused file.  Reported by François Pinard.
83667
83668 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83669
83670         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83671         alert, backslash, formfeed, and vertical tab unnecessarily in
83672         shell quoting style.
83673
83674 2000-01-16  Jim Meyering  <meyering@lucent.com>
83675
83676         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83677         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83678         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83679         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83680
83681 2000-01-16  Jim Meyering  <meyering@lucent.com>
83682
83683         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83684         because the latter didn't work.
83685
83686 2000-01-15  Jim Meyering  <meyering@lucent.com>
83687
83688         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83689         (AC_REPLACE_FUNCS): Add memcpy and memset.
83690         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83691         Add strpbrk.
83692         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83693
83694 2000-01-12  Jim Meyering  <meyering@lucent.com>
83695
83696         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83697         (jm_PREREQ): Use it.
83698         (jm_PREREQ_READUTMP): New macro.
83699         (jm_PREREQ): Use it.
83700
83701 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83702
83703         Quote multibyte characters correctly.
83704         * m4/c-bs-a.m4: New file.
83705         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83706         (jm_PREREQ): Use it.
83707
83708 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83709
83710         * m4/uintmax_t.m4: Port to autoconf 2.13.
83711
83712 2000-01-08  Jim Meyering  <meyering@ascend.com>
83713
83714         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83715         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83716
83717 2000-01-04  Jim Meyering  <meyering@ascend.com>
83718
83719         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83720         jm_STRUCT_DIRENT_D_TYPE.
83721         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83722         jm_STRUCT_DIRENT_D_INO.
83723         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83724         jm_STRUCT_UTIMBUF.
83725         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83726         renamings.
83727         * m4/utime.m4: Likewise.
83728
83729         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83730         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83731
83732 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83733
83734         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83735         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83736
83737 2000-01-02  Jim Meyering  <meyering@ascend.com>
83738
83739         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83740         remember if this is necessary.
83741
83742 1999-12-26  Jim Meyering  <meyering@ascend.com>
83743
83744         * m4/jm-macros.m4: Use it here.
83745         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83746
83747 1999-12-23  Jim Meyering  <meyering@ascend.com>
83748
83749         * m4/jm-macros.m4: Check for clock_gettime (moved from
83750         fileutils/configure.in)
83751         Check for gettimeofday.
83752
83753 1999-12-20  Jim Meyering  <meyering@ascend.com>
83754
83755         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83756         autoconf-2.14a-1999-12-20.
83757
83758 1999-12-19  Jim Meyering  <meyering@ascend.com>
83759
83760         * m4/lstat-slash.m4: New file.
83761         * m4/jm-macros.m4: Use the new macro:
83762         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83763
83764 1999-12-07  Jim Meyering  <meyering@ascend.com>
83765
83766         * m4/perl.m4: Require that File::Compare be available, too.
83767         Too many systems seem to lack it.
83768
83769         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83770         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83771
83772 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83773
83774         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83775         problem with the QNX 4.25 shell, which doesn't propagate exit
83776         status of failed commands inside shell assignments.
83777
83778 1999-11-17  Jim Meyering  <meyering@ascend.com>
83779
83780         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83781
83782 1999-11-07  Jim Meyering  <meyering@ascend.com>
83783
83784         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83785
83786 1999-11-06  Jim Meyering  <meyering@ascend.com>
83787
83788         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83789         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83790
83791 1999-11-05  Jim Meyering  <meyering@ascend.com>
83792
83793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83794         configure.in of textutils, fileutils, and sh-utils into this one
83795         (shared between those packages) file.
83796         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83797         AC_STRUCT_ST_BLKSIZE.
83798
83799 1999-11-03  Jim Meyering  <meyering@ascend.com>
83800
83801         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83802         of AC_CHECK_TYPE checks includes unistd.h.
83803         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83804         Suggestion from Akim Demaille.
83805
83806 1999-10-30  Jim Meyering  <meyering@ascend.com>
83807
83808         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83809         m4-quoted string.
83810         * m4/ls-mntd-fs.m4: Likewise.
83811         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83812         * m4/jm-winsz1.m4: Likewise.
83813
83814         * m4/const.m4: Remove file, since the fix made it into the experimental
83815         version of autoconf.
83816         * m4/mktime.m4: Likewise.
83817
83818         * m4/check-type.m4: Remove file, now that the latest version of
83819         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83820
83821         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83822         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83823         AC_CHECK_TYPE.
83824
83825 1999-10-04  Jim Meyering  <meyering@ascend.com>
83826
83827         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83828
83829 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83830
83831         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83832         2.95.1 bug with HP-UX 10.20.
83833
83834 1999-09-17  Jim Meyering  <meyering@ascend.com>
83835
83836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83837         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83838         due to missing strdup (against sh-utils-2.0).
83839
83840 1999-08-29  Jim Meyering  <meyering@ascend.com>
83841
83842         * m4/jm-macros.m4: Require jm_BISON.
83843         * m4/bison.m4: New file.
83844
83845 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83846
83847         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83848         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83849
83850 1999-08-05  Jim Meyering  <meyering@ascend.com>
83851
83852         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83853         to avoid conflicts with `conftest' on 8+3 filesystems.
83854         Suggestion from Eli Zaretskii.
83855
83856 1999-08-04  Jim Meyering  <meyering@ascend.com>
83857
83858         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83859         fileutils and sh-utils (textutils's getline test was inadequate).
83860         (AM_FUNC_GETLINE): Run this test.
83861         (AC_CHECK_FUNCS): Check for getdelim.
83862         Reported by Bob Proulx.
83863
83864 1999-08-02  Jim Meyering  <meyering@ascend.com>
83865
83866         * m4/jm-macros.m4: Add a comment.
83867
83868 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83869
83870         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83871         <inttypes.h> defines strtoumax as a macro (and not as a
83872         function).
83873
83874 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83875
83876         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83877         that we can shift, multiply and divide unsigned long long
83878         values; Ultrix cc can't do it.
83879
83880 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83881
83882         * m4/mktime.m4: New file, which is a preview of what should appear
83883         in the next public autoconf release.
83884
83885 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83886
83887         * m4/lfs.m4: Remove this file.
83888         * m4/largefile.m4: New file.  It contains the old contents of
83889         lfs.m4, except that all names with prefix AC_LFS have been
83890         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83891         compatible with future autoconf versions.  Also, some minor m4
83892         quoting problems have been fixed.
83893
83894 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83895
83896         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83897         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83898         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83899         and simplify the shell code.
83900
83901 1999-08-01  Jim Meyering  <meyering@ascend.com>
83902
83903         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83904         m4.
83905
83906 1999-07-20  Jim Meyering  <meyering@ascend.com>
83907
83908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83909
83910 1999-07-15  Jim Meyering  <meyering@ascend.com>
83911
83912         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83913
83914 1999-05-22  Jim Meyering  <meyering@ascend.com>
83915
83916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83917
83918 1999-05-20  Jim Meyering  <meyering@ascend.com>
83919
83920         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83921         Add a colon after each `then' in case $4 is empty.
83922
83923 1999-05-16  Jim Meyering  <meyering@ascend.com>
83924
83925         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83926
83927 1999-05-10  Jim Meyering  <meyering@ascend.com>
83928
83929         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83930
83931         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83932         AC_FUNC_MKTIME.
83933
83934 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83935
83936         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83937
83938 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83939
83940         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83941         not CPPFLAGS, so that linking works correctly in IRIX.
83942
83943 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83944
83945         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83946
83947 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83948
83949         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83950         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83952         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83953         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83954
83955         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83956
83957 1999-04-20  Jim Meyering  <meyering@ascend.com>
83958
83959         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83960         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83961         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83962
83963 1999-04-18  Jim Meyering  <meyering@ascend.com>
83964
83965         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83966         * m4/jm-macros.m4: Use it.
83967
83968 1999-04-06  Jim Meyering  <meyering@ascend.com>
83969
83970         * m4/strftime.m4: Remove test for %f.
83971
83972 1999-03-29  Jim Meyering  <meyering@ascend.com>
83973
83974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83975         superset of the AC_TYPE_* checks in the textutils, fileutils,
83976         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83977         AC_TYPE_PID_T.
83978
83979 1999-03-28  Jim Meyering  <meyering@ascend.com>
83980
83981         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83982         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83983         replaced e.g., in the *.sh files of the sh-utils.
83984
83985 1999-03-20  Jim Meyering  <meyering@ascend.com>
83986
83987         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83988         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83989         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83990
83991 1999-03-19  Jim Meyering  <meyering@ascend.com>
83992
83993         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83994
83995 1999-03-12  Jim Meyering  <meyering@ascend.com>
83996
83997         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83998
83999 1999-03-07  Jim Meyering  <meyering@ascend.com>
84000
84001         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84002         declared.
84003
84004 1999-02-17  Jim Meyering  <meyering@ascend.com>
84005
84006         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84007         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84008
84009 1999-02-07  Jim Meyering  <meyering@ascend.com>
84010
84011         * m4/group-member.m4: New file -- extracted from sh-utils'
84012         configure.in.
84013
84014         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84015         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84016
84017 1999-02-06  Jim Meyering  <meyering@ascend.com>
84018
84019         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84020         * m4/fnmatch.m4: Likewise.
84021         * m4/getgroups.m4: Likewise.
84022         * m4/lstat.m4: Likewise.
84023         * m4/malloc.m4: Likewise.
84024         * m4/putenv.m4: Likewise.
84025         * m4/realloc.m4: Likewise.
84026         * m4/regex.m4: Likewise.
84027         * m4/stat.m4: Likewise.
84028         * m4/strftime.m4: Likewise.
84029         Suggestion from Alain Magloire.
84030
84031         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84032         * m4/fnmatch.m4: Likewise.
84033         * m4/getgroups.m4: Likewise.
84034         * m4/getline.m4: Likewise.
84035         * m4/lstat.m4: Likewise.
84036         * m4/malloc.m4: Likewise.
84037         * m4/memcmp.m4: Likewise.
84038         * m4/putenv.m4: Likewise.
84039         * m4/realloc.m4: Likewise.
84040         * m4/regex.m4: Likewise.
84041         * m4/stat.m4: Likewise.
84042         * m4/strftime.m4: Likewise.
84043         Suggestion from Alain Magloire.
84044
84045         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84046         an argument.
84047
84048         * m4/regex.m4: Add a run-time Test for proper operation of
84049         re_compile_pattern.
84050
84051 1999-01-31  Jim Meyering  <meyering@ascend.com>
84052
84053         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84054
84055 1999-01-30  Jim Meyering  <meyering@ascend.com>
84056
84057         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84058
84059         * m4/jm-mktime.m4: Make this a wrapper around the official
84060         AM_FUNC_MKTIME rather than my private copy, now that the official one
84061         is up to date.
84062         * m4/mktime.m4: Remove file.
84063
84064         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84065         * m4/uptime.m4: Likewise.
84066         * m4/uintmax_t.m4: Likewise.
84067
84068 1999-01-28  Jim Meyering  <meyering@ascend.com>
84069
84070         * m4/jm-macros.m4: Use jm_AFS.
84071         * m4/afs.m4: New file (from fileutils' configure.in).
84072
84073         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84074         * m4/chown.m4: Likewise.
84075         * m4/d-ino.m4: Likewise.
84076         * m4/d-type.m4: Likewise.
84077         * m4/fnmatch.m4: Likewise.
84078         * m4/getgroups.m4: Likewise.
84079         * m4/gettext.m4: Likewise.
84080         * m4/jm-mktime.m4: Likewise.
84081         * m4/jm-winsz2.m4: Likewise.
84082         * m4/lcmessage.m4: Likewise.
84083         * m4/ls-mntd-fs.m4: Likewise.
84084         * m4/malloc.m4: Likewise.
84085         * m4/memcmp.m4: Likewise.
84086         * m4/putenv.m4: Likewise.
84087         * m4/realloc.m4: Likewise.
84088         * m4/st_mtim.m4: Likewise.
84089         * m4/strftime.m4: Likewise.
84090
84091 1999-01-16  Jim Meyering  <meyering@ascend.com>
84092
84093         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84094         (ARGMATCH_DIE_DECL): Define.
84095
84096 1999-01-12  Jim Meyering  <meyering@ascend.com>
84097
84098         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84099         Reported by Lars Hecking.
84100
84101 1999-01-10  Jim Meyering  <meyering@ascend.com>
84102
84103         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84104         gross kludge.
84105         * m4/inttypes_h.m4: Likewise.
84106         * m4/lstat.m4: Likewise.
84107         * m4/malloc.m4: Likewise.
84108         * m4/readdir.m4: Likewise.
84109         * m4/realloc.m4: Likewise.
84110         * m4/st_dm_mode.m4: Likewise.
84111         * m4/stat.m4: Likewise.
84112         * m4/utimbuf.m4: Likewise.
84113         * m4/utimes.m4: Likewise.
84114
84115         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84116         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84117         comments in config.h.in are meaningful.
84118
84119         * m4/jm-macros.m4: Require autoconf-2.13 here.
84120
84121         * m4/regex.m4: By default, don't use the included regex.c on systems
84122         with glibc 2.  Suggestion from Uli Drepper.
84123
84124 1999-01-02  Jim Meyering  <meyering@ascend.com>
84125
84126         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84127
84128 1998-12-18  Jim Meyering  <meyering@ascend.com>
84129
84130         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84131         Based on a suggestion from Lars Hecking.
84132
84133 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84134
84135         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84136
84137 1998-11-16  Jim Meyering  <meyering@ascend.com>
84138
84139         * m4/lfs.m4: Double-quote the `uname...` expression.
84140
84141 1998-11-14  Jim Meyering  <meyering@ascend.com>
84142
84143         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84144         * m4/stat.m4: Likewise.
84145
84146 1998-11-03  Jim Meyering  <meyering@ascend.com>
84147
84148         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84149         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84150
84151 1998-10-18  Jim Meyering  <meyering@ascend.com>
84152
84153         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84154
84155 1998-10-17  Jim Meyering  <meyering@ascend.com>
84156
84157         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84158         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84159         calls for those previously hard-coded headers.  Instead, take a new
84160         parameter.
84161         (jm_CHECK_DECLARATIONS): Reflect interface change.
84162         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84163         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84164
84165         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84166
84167 1998-10-14  Jim Meyering  <meyering@ascend.com>
84168
84169         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84170         instead of "TZ=America/Vancouver".  From Paul Eggert.
84171
84172 1998-10-11  Jim Meyering  <meyering@ascend.com>
84173
84174         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84175         This adds a test for a recently added compatibility fix for mktime.c.
84176         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84177
84178 1998-09-27  Jim Meyering  <meyering@ascend.com>
84179
84180         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84181
84182         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84183         ../configure.in, including a change from Gordon Matzigkeit to allow
84184         cross-compiling for the Hurd.
84185
84186         * m4/glibc.m4: New file/macro to test for the GNU C Library
84187         versions 1 and 2.  From Gordon Matzigkeit.
84188         Indent.
84189
84190 1998-09-21  Jim Meyering  <meyering@ascend.com>
84191
84192         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84193
84194 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84195
84196         Port nanosecond-resolution times to UnixWare 2.1.2 and
84197         pedantic Solaris 2.6.
84198
84199         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84200         AC_STRUCT_ST_MTIM.
84201         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84202         Generate name of ns member, instead of just 1 or undef.
84203         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84204
84205 1998-08-15  Jim Meyering  <meyering@ascend.com>
84206
84207         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84208         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84209         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84210         instead of jm_TYPE_SSIZE_T.
84211
84212 1998-08-12  Jim Meyering  <meyering@ascend.com>
84213
84214         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84215
84216 1998-08-02  Jim Meyering  <meyering@ascend.com>
84217
84218         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84219         in acconfig.h manually.
84220
84221 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84222
84223         * m4/st_mtim.m4: New file.
84224
84225 1998-07-28  Jim Meyering  <meyering@ascend.com>
84226
84227         * m4/utimes.m4: Undef stat.
84228
84229 1998-07-25  Jim Meyering  <meyering@ascend.com>
84230
84231         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84232         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84233
84234 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84235
84236         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84237         uid and gid actually remain unchanged.
84238
84239 1998-07-07  Jim Meyering  <meyering@ascend.com>
84240
84241         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84242
84243 1998-07-04  Jim Meyering  <meyering@ascend.com>
84244
84245         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84246         to prove that this macro can be used in packages without regex.c.
84247
84248 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84249
84250         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84251         is to be used.
84252
84253 1998-07-03  Jim Meyering  <meyering@ascend.com>
84254
84255         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84256
84257         * m4/gettext.m4: New file -- from gettext-0.10.35.
84258         * m4/lcmessage.m4: Likewise.
84259         * m4/progtest.m4: Likewise.
84260
84261         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84262         * m4/jm-macros.m4: Require the new macro.
84263
84264 1998-06-29  Jim Meyering  <meyering@ascend.com>
84265
84266         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84267         for the definition of NGROUPS (used in a system header included
84268         by sys/mount.h).
84269
84270 1998-06-28  Jim Meyering  <meyering@ascend.com>
84271
84272         * m4/ls-mntd-fs.m4: New file.
84273         * m4/fstypename.m4: New file.
84274
84275         * m4/jm-macros.m4: Require the new macro.
84276         * m4/jm-glibc-io.m4: New file.
84277
84278 1998-05-19  Jim Meyering  <meyering@ascend.com>
84279
84280         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84281         * m4/lchown.m4: New file.
84282
84283         * m4/Makefile.am.in: New file.
84284         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84285
84286 1998-05-14  Jim Meyering  <meyering@ascend.com>
84287
84288         * m4/Makefile.am (EXTRA_DIST): Add them.
84289         * m4/jm-macros.m4: New file.
84290         * m4/utimbuf.m4: New file.
84291
84292 1998-05-12  Jim Meyering  <meyering@ascend.com>
84293
84294         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84295
84296 1998-05-11  Jim Meyering  <meyering@ascend.com>
84297
84298         * m4/isc-posix.m4: New file.
84299
84300 1998-05-10  Jim Meyering  <meyering@ascend.com>
84301
84302         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84303
84304 1998-05-09  Jim Meyering  <meyering@ascend.com>
84305
84306         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84307         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84308         with automake.
84309
84310         * m4/ssize_t.m4: New file.
84311         * m4/mktime.m4: Remove file -- the new automake has this now.
84312
84313 1998-04-26  Jim Meyering  <meyering@ascend.com>
84314
84315         * m4/assert.m4: New file.
84316         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84317
84318 1998-04-05  Jim Meyering  <meyering@ascend.com>
84319
84320         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84321         (jm_PREREQ): Use it here.
84322
84323 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84324
84325         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84326         in acconfig.h.
84327
84328 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84329
84330         * m4/prereq.m4: New file.
84331         * m4/error.m4: New file.
84332         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84333
84334 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84335
84336         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84337         cache-check for the same variable -- that defeated the purpose of
84338         the test; the test program was never run.  This was a problem only
84339         on systems with losing getline functions -- HP-UX 10.20 is one.
84340         Reported by Bjorn Helgaas.
84341
84342 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84343
84344         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84345
84346 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84347
84348         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84349
84350         * m4/const.m4: New file.  Use an initializer in this declaration
84351         typedef int charset[2]; const charset x;
84352         Reported by Bob Glickstein.
84353
84354 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84355
84356         * m4/chown.m4: Fix reversed types on -1 args to chown.
84357         From Kaveh Ghazi.
84358
84359 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84360
84361         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84362         Add lseek and memchr.
84363
84364         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84365         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84366         have a 20-character limit on names.
84367
84368 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84369
84370         * m4/inttypes_h.m4: New file.
84371         * m4/uintmax_t.m4: New file.
84372         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84373
84374
84375         -----
84376
84377         Local Variables:
84378         coding: utf-8
84379         End:
84380
84381         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84382
84383         Copying and distribution of this file, with or without
84384         modification, are permitted provided the copyright notice
84385         and this notice are preserved.